https://github.com/cheminfo/react-optics-diagrams

React components for displaying optical design diagrams.

https://github.com/cheminfo/react-optics-diagrams

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.9%) to scientific vocabulary
Last synced: 9 months ago · JSON representation

Repository

React components for displaying optical design diagrams.

Basic Info
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 8
  • Releases: 7
Created about 1 year ago · Last pushed 9 months ago
Metadata Files
Readme Changelog License

README.md

react-optics-diagrams

CI Status

React components for displaying optical design diagrams.

Currently the following diagrams are provided:

  1. SpotDiagram - A single spot diagram for displaying the result of a geometrical ray trace
  2. SpotDiagramGrid - A grid of spot diagrams, one for each combination of a design's wavelength and field point

Quickstart

Installation

console npm install react-optics-diagrams

Use

Use the component diagrams like you would any other React component. For example, as a script:

```typescript // ... const rayTraceResults: RayTraceResults = data;

const props = { rayTraceResults, wavelengths: [ { value: 0.4861, units: 'µm' }, { value: 0.5876, units: 'µm' }, { value: 0.6563, units: 'µm' }, ], fieldSpecs: [ { value: 0.0, units: 'deg', type: 'angle' } as const, { value: 5.0, units: 'deg', type: 'angle' } as const, ], };

ReactDOM.createRoot(document.getElementById('app') as HTMLElement).render( , ); ```

This will create a grid of spot diagrams that looks like the following, one for each field and wavelength combination.

A grid of spot diagrams, one for each field and wavelength combination.

Development

Demo

See the demo folder for examples.

Common Commands

```console

Run the demo on the development server

npm run dev

Run tests

npm run test ```

Owner

  • Name: Cheminfo
  • Login: cheminfo
  • Kind: organization

GitHub Events

Total
  • Release event: 5
  • Watch event: 1
  • Delete event: 39
  • Member event: 1
  • Issue comment event: 68
  • Push event: 37
  • Pull request review event: 4
  • Pull request event: 87
  • Create event: 52
Last Year
  • Release event: 5
  • Watch event: 1
  • Delete event: 39
  • Member event: 1
  • Issue comment event: 68
  • Push event: 37
  • Pull request review event: 4
  • Pull request event: 87
  • Create event: 52

Issues and Pull Requests

Last synced: 9 months ago

All Time
  • Total issues: 0
  • Total pull requests: 49
  • Average time to close issues: N/A
  • Average time to close pull requests: 6 days
  • Total issue authors: 0
  • Total pull request authors: 4
  • Average comments per issue: 0
  • Average comments per pull request: 0.71
  • Merged pull requests: 11
  • Bot issues: 0
  • Bot pull requests: 40
Past Year
  • Issues: 0
  • Pull requests: 49
  • Average time to close issues: N/A
  • Average time to close pull requests: 6 days
  • Issue authors: 0
  • Pull request authors: 4
  • Average comments per issue: 0
  • Average comments per pull request: 0.71
  • Merged pull requests: 11
  • Bot issues: 0
  • Bot pull requests: 40
Top Authors
Issue Authors
Pull Request Authors
  • dependabot[bot] (40)
  • cheminfo-bot (4)
  • lpatiny (4)
  • kmdouglass (1)
Top Labels
Issue Labels
Pull Request Labels
dependencies (40) javascript (38) autorelease: pending (4) github_actions (2)

Packages

  • Total packages: 1
  • Total downloads:
    • npm 24 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 7
  • Total maintainers: 2
npmjs.org: react-optics-diagrams

React components for displaying optical design diagrams.

  • Versions: 7
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 24 Last month
Rankings
Dependent repos count: 24.7%
Average: 30.2%
Dependent packages count: 35.7%
Maintainers (2)
Last synced: 9 months ago