react-cheminfo 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -22
- package/bin/check-deploy.mjs +132 -0
- package/bin/check-tokens.mjs +16 -29
- package/bin/cli.mjs +43 -0
- package/lib/about/core/about.d.ts +27 -0
- package/lib/about/core/about.d.ts.map +1 -1
- package/lib/about/core/about.js +3 -0
- package/lib/about/core/about.js.map +1 -1
- package/lib/about/core/index.d.ts +3 -1
- package/lib/about/core/index.d.ts.map +1 -1
- package/lib/about/core/index.js +1 -0
- package/lib/about/core/index.js.map +1 -1
- package/lib/about/core/providers.d.ts +31 -0
- package/lib/about/core/providers.d.ts.map +1 -0
- package/lib/about/core/providers.js +28 -0
- package/lib/about/core/providers.js.map +1 -0
- package/lib/about/ui/AboutCitations.d.ts +4 -2
- package/lib/about/ui/AboutCitations.d.ts.map +1 -1
- package/lib/about/ui/AboutCitations.js +6 -20
- package/lib/about/ui/AboutCitations.js.map +1 -1
- package/lib/about/ui/AboutPage.d.ts +11 -3
- package/lib/about/ui/AboutPage.d.ts.map +1 -1
- package/lib/about/ui/AboutPage.js +15 -5
- package/lib/about/ui/AboutPage.js.map +1 -1
- package/lib/about/ui/AboutProvidedBy.d.ts +18 -0
- package/lib/about/ui/AboutProvidedBy.d.ts.map +1 -0
- package/lib/about/ui/AboutProvidedBy.js +81 -0
- package/lib/about/ui/AboutProvidedBy.js.map +1 -0
- package/lib/about/ui/index.d.ts +2 -0
- package/lib/about/ui/index.d.ts.map +1 -1
- package/lib/about/ui/index.js +1 -0
- package/lib/about/ui/index.js.map +1 -1
- package/lib/capsule/ui/CapsuleFilter.d.ts +48 -8
- package/lib/capsule/ui/CapsuleFilter.d.ts.map +1 -1
- package/lib/capsule/ui/CapsuleFilter.js +43 -12
- package/lib/capsule/ui/CapsuleFilter.js.map +1 -1
- package/lib/capsule/ui/index.d.ts +1 -1
- package/lib/capsule/ui/index.d.ts.map +1 -1
- package/lib/capsule/ui/index.js.map +1 -1
- package/lib/chart/core/chartAxisPair.d.ts +33 -0
- package/lib/chart/core/chartAxisPair.d.ts.map +1 -0
- package/lib/chart/core/chartAxisPair.js +35 -0
- package/lib/chart/core/chartAxisPair.js.map +1 -0
- package/lib/chart/core/chartAxisScale.d.ts.map +1 -1
- package/lib/chart/core/chartAxisScale.js +4 -9
- package/lib/chart/core/chartAxisScale.js.map +1 -1
- package/lib/chart/core/chartBins.d.ts.map +1 -1
- package/lib/chart/core/chartBins.js +2 -9
- package/lib/chart/core/chartBins.js.map +1 -1
- package/lib/chart/core/chartGroups.d.ts +16 -0
- package/lib/chart/core/chartGroups.d.ts.map +1 -0
- package/lib/chart/core/chartGroups.js +22 -0
- package/lib/chart/core/chartGroups.js.map +1 -0
- package/lib/chart/core/chartLabels.d.ts.map +1 -1
- package/lib/chart/core/chartLabels.js +3 -8
- package/lib/chart/core/chartLabels.js.map +1 -1
- package/lib/chart/core/chartPalette.d.ts +2 -2
- package/lib/chart/core/chartPalette.d.ts.map +1 -1
- package/lib/chart/core/chartPalette.js +4 -4
- package/lib/chart/core/chartPalette.js.map +1 -1
- package/lib/chart/core/chartScale.d.ts +12 -0
- package/lib/chart/core/chartScale.d.ts.map +1 -1
- package/lib/chart/core/chartScale.js +15 -0
- package/lib/chart/core/chartScale.js.map +1 -1
- package/lib/chart/core/matrix.d.ts +9 -0
- package/lib/chart/core/matrix.d.ts.map +1 -1
- package/lib/chart/core/matrix.js +23 -0
- package/lib/chart/core/matrix.js.map +1 -1
- package/lib/chart/ui/ChartAxis.js +3 -3
- package/lib/chart/ui/ChartAxis.js.map +1 -1
- package/lib/chart/ui/ChartFrame.d.ts +12 -0
- package/lib/chart/ui/ChartFrame.d.ts.map +1 -1
- package/lib/chart/ui/ChartFrame.js +9 -26
- package/lib/chart/ui/ChartFrame.js.map +1 -1
- package/lib/chart/ui/ChartSeriesMarks.d.ts.map +1 -1
- package/lib/chart/ui/ChartSeriesMarks.js +6 -6
- package/lib/chart/ui/ChartSeriesMarks.js.map +1 -1
- package/lib/chart/ui/ChartTrackingLayer.d.ts.map +1 -1
- package/lib/chart/ui/ChartTrackingLayer.js +2 -2
- package/lib/chart/ui/ChartTrackingLayer.js.map +1 -1
- package/lib/chart/ui/TrackedLineChart.d.ts +6 -1
- package/lib/chart/ui/TrackedLineChart.d.ts.map +1 -1
- package/lib/chart/ui/TrackedLineChart.js +2 -2
- package/lib/chart/ui/TrackedLineChart.js.map +1 -1
- package/lib/chart/ui/TrackedStickChart.d.ts +5 -1
- package/lib/chart/ui/TrackedStickChart.d.ts.map +1 -1
- package/lib/chart/ui/TrackedStickChart.js +2 -2
- package/lib/chart/ui/TrackedStickChart.js.map +1 -1
- package/lib/chart/ui/chartFrameGeometry.d.ts +19 -0
- package/lib/chart/ui/chartFrameGeometry.d.ts.map +1 -0
- package/lib/chart/ui/chartFrameGeometry.js +41 -0
- package/lib/chart/ui/chartFrameGeometry.js.map +1 -0
- package/lib/chart/ui/index.d.ts +3 -1
- package/lib/chart/ui/index.d.ts.map +1 -1
- package/lib/chart/ui/index.js +1 -0
- package/lib/chart/ui/index.js.map +1 -1
- package/lib/chart/ui/stickChartModel.d.ts +3 -12
- package/lib/chart/ui/stickChartModel.d.ts.map +1 -1
- package/lib/chart/ui/stickChartModel.js +19 -21
- package/lib/chart/ui/stickChartModel.js.map +1 -1
- package/lib/chart/ui/useWheelZoom.d.ts +2 -1
- package/lib/chart/ui/useWheelZoom.d.ts.map +1 -1
- package/lib/chart/ui/useWheelZoom.js +26 -45
- package/lib/chart/ui/useWheelZoom.js.map +1 -1
- package/lib/chart/ui/wheelDwell.d.ts +77 -0
- package/lib/chart/ui/wheelDwell.d.ts.map +1 -0
- package/lib/chart/ui/wheelDwell.js +85 -0
- package/lib/chart/ui/wheelDwell.js.map +1 -0
- package/lib/chrome/ui/NavLink.d.ts.map +1 -1
- package/lib/chrome/ui/NavLink.js +5 -2
- package/lib/chrome/ui/NavLink.js.map +1 -1
- package/lib/chrome/ui/NavMenuButton.d.ts +6 -0
- package/lib/chrome/ui/NavMenuButton.d.ts.map +1 -1
- package/lib/chrome/ui/NavMenuButton.js +10 -3
- package/lib/chrome/ui/NavMenuButton.js.map +1 -1
- package/lib/chrome/ui/SiteHeader.d.ts +10 -0
- package/lib/chrome/ui/SiteHeader.d.ts.map +1 -1
- package/lib/chrome/ui/SiteHeader.js +7 -2
- package/lib/chrome/ui/SiteHeader.js.map +1 -1
- package/lib/chrome/ui/navItem.d.ts +5 -3
- package/lib/chrome/ui/navItem.d.ts.map +1 -1
- package/lib/chrome/ui/navItem.js.map +1 -1
- package/lib/citation/core/index.d.ts +1 -0
- package/lib/citation/core/index.d.ts.map +1 -1
- package/lib/citation/core/index.js +1 -0
- package/lib/citation/core/index.js.map +1 -1
- package/lib/citation/core/openchemlibPaper.d.ts +10 -0
- package/lib/citation/core/openchemlibPaper.d.ts.map +1 -0
- package/lib/citation/core/openchemlibPaper.js +29 -0
- package/lib/citation/core/openchemlibPaper.js.map +1 -0
- package/lib/citation/core/platformPaper.d.ts +2 -2
- package/lib/citation/core/platformPaper.js +2 -2
- package/lib/clipboard/core/clipboardItem.d.ts +13 -0
- package/lib/clipboard/core/clipboardItem.d.ts.map +1 -0
- package/lib/clipboard/core/clipboardItem.js +26 -0
- package/lib/clipboard/core/clipboardItem.js.map +1 -0
- package/lib/clipboard/core/index.d.ts +3 -0
- package/lib/clipboard/core/index.d.ts.map +1 -1
- package/lib/clipboard/core/index.js +1 -0
- package/lib/clipboard/core/index.js.map +1 -1
- package/lib/clipboard/core/writeBlobToClipboard.d.ts +23 -0
- package/lib/clipboard/core/writeBlobToClipboard.d.ts.map +1 -0
- package/lib/clipboard/core/writeBlobToClipboard.js +29 -0
- package/lib/clipboard/core/writeBlobToClipboard.js.map +1 -0
- package/lib/clipboard/core/writeToClipboard.d.ts +22 -7
- package/lib/clipboard/core/writeToClipboard.d.ts.map +1 -1
- package/lib/clipboard/core/writeToClipboard.js +20 -7
- package/lib/clipboard/core/writeToClipboard.js.map +1 -1
- package/lib/clipboard/ui/CodeBlock.d.ts +1 -0
- package/lib/clipboard/ui/CodeBlock.d.ts.map +1 -1
- package/lib/clipboard/ui/CodeBlock.js +5 -11
- package/lib/clipboard/ui/CodeBlock.js.map +1 -1
- package/lib/clipboard/ui/CopyButton.d.ts +8 -1
- package/lib/clipboard/ui/CopyButton.d.ts.map +1 -1
- package/lib/clipboard/ui/CopyButton.js +31 -8
- package/lib/clipboard/ui/CopyButton.js.map +1 -1
- package/lib/clipboard/ui/CopyableValue.d.ts +51 -0
- package/lib/clipboard/ui/CopyableValue.d.ts.map +1 -0
- package/lib/clipboard/ui/CopyableValue.js +51 -0
- package/lib/clipboard/ui/CopyableValue.js.map +1 -0
- package/lib/clipboard/ui/copyFeedback.d.ts +38 -0
- package/lib/clipboard/ui/copyFeedback.d.ts.map +1 -0
- package/lib/clipboard/ui/copyFeedback.js +40 -0
- package/lib/clipboard/ui/copyFeedback.js.map +1 -0
- package/lib/clipboard/ui/index.d.ts +3 -1
- package/lib/clipboard/ui/index.d.ts.map +1 -1
- package/lib/clipboard/ui/index.js +1 -0
- package/lib/clipboard/ui/index.js.map +1 -1
- package/lib/clipboard/ui/useCopyToClipboard.d.ts +23 -7
- package/lib/clipboard/ui/useCopyToClipboard.d.ts.map +1 -1
- package/lib/clipboard/ui/useCopyToClipboard.js +33 -20
- package/lib/clipboard/ui/useCopyToClipboard.js.map +1 -1
- package/lib/color/core/hex.d.ts +10 -0
- package/lib/color/core/hex.d.ts.map +1 -1
- package/lib/color/core/hex.js +19 -3
- package/lib/color/core/hex.js.map +1 -1
- package/lib/color/core/hsv.d.ts.map +1 -1
- package/lib/color/core/hsv.js +4 -10
- package/lib/color/core/hsv.js.map +1 -1
- package/lib/color/core/index.d.ts +2 -2
- package/lib/color/core/index.d.ts.map +1 -1
- package/lib/color/core/index.js +2 -2
- package/lib/color/core/index.js.map +1 -1
- package/lib/color/core/interpolate.d.ts.map +1 -1
- package/lib/color/core/interpolate.js +2 -6
- package/lib/color/core/interpolate.js.map +1 -1
- package/lib/color/core/scale.d.ts +0 -28
- package/lib/color/core/scale.d.ts.map +1 -1
- package/lib/color/core/scale.js +3 -38
- package/lib/color/core/scale.js.map +1 -1
- package/lib/color/core/scaleText.d.ts.map +1 -1
- package/lib/color/core/scaleText.js +4 -5
- package/lib/color/core/scaleText.js.map +1 -1
- package/lib/color/ui/ColorScaleBar.d.ts +5 -0
- package/lib/color/ui/ColorScaleBar.d.ts.map +1 -1
- package/lib/color/ui/ColorScaleBar.js +2 -2
- package/lib/color/ui/ColorScaleBar.js.map +1 -1
- package/lib/color/ui/ColorScaleEditor.d.ts +5 -0
- package/lib/color/ui/ColorScaleEditor.d.ts.map +1 -1
- package/lib/color/ui/ColorScaleEditor.js +9 -13
- package/lib/color/ui/ColorScaleEditor.js.map +1 -1
- package/lib/color/ui/ColorScaleEntry.d.ts +28 -0
- package/lib/color/ui/ColorScaleEntry.d.ts.map +1 -0
- package/lib/color/ui/ColorScaleEntry.js +28 -0
- package/lib/color/ui/ColorScaleEntry.js.map +1 -0
- package/lib/color/ui/ColorScaleLegend.d.ts +14 -3
- package/lib/color/ui/ColorScaleLegend.d.ts.map +1 -1
- package/lib/color/ui/ColorScaleLegend.js +46 -16
- package/lib/color/ui/ColorScaleLegend.js.map +1 -1
- package/lib/color/ui/ColorScaleSelect.d.ts +5 -0
- package/lib/color/ui/ColorScaleSelect.d.ts.map +1 -1
- package/lib/color/ui/ColorScaleSelect.js +7 -36
- package/lib/color/ui/ColorScaleSelect.js.map +1 -1
- package/lib/confirm/ui/ConfirmButton.d.ts +34 -0
- package/lib/confirm/ui/ConfirmButton.d.ts.map +1 -0
- package/lib/confirm/ui/ConfirmButton.js +32 -0
- package/lib/confirm/ui/ConfirmButton.js.map +1 -0
- package/lib/confirm/ui/index.d.ts +3 -0
- package/lib/confirm/ui/index.d.ts.map +1 -0
- package/lib/confirm/ui/index.js +2 -0
- package/lib/confirm/ui/index.js.map +1 -0
- package/lib/core.d.ts +3 -1
- package/lib/core.d.ts.map +1 -1
- package/lib/core.js +5 -1
- package/lib/core.js.map +1 -1
- package/lib/credits/core/credits.d.ts +8 -3
- package/lib/credits/core/credits.d.ts.map +1 -1
- package/lib/credits/core/credits.js +9 -3
- package/lib/credits/core/credits.js.map +1 -1
- package/lib/credits/ui/CreditsList.d.ts.map +1 -1
- package/lib/credits/ui/CreditsList.js +4 -2
- package/lib/credits/ui/CreditsList.js.map +1 -1
- package/lib/delimited/core/index.d.ts +2 -4
- package/lib/delimited/core/index.d.ts.map +1 -1
- package/lib/delimited/core/index.js +2 -3
- package/lib/delimited/core/index.js.map +1 -1
- package/lib/delimited/ui/DelimitedTextDialog.d.ts.map +1 -1
- package/lib/delimited/ui/DelimitedTextDialog.js +2 -2
- package/lib/delimited/ui/DelimitedTextDialog.js.map +1 -1
- package/lib/delimited/ui/DelimitedTextPanel.d.ts +5 -0
- package/lib/delimited/ui/DelimitedTextPanel.d.ts.map +1 -1
- package/lib/delimited/ui/DelimitedTextPanel.js +10 -6
- package/lib/delimited/ui/DelimitedTextPanel.js.map +1 -1
- package/lib/deploy/core/checkDeploy.d.ts +20 -0
- package/lib/deploy/core/checkDeploy.d.ts.map +1 -0
- package/lib/deploy/core/checkDeploy.js +74 -0
- package/lib/deploy/core/checkDeploy.js.map +1 -0
- package/lib/deploy/core/composeDocument.d.ts +40 -0
- package/lib/deploy/core/composeDocument.d.ts.map +1 -0
- package/lib/deploy/core/composeDocument.js +125 -0
- package/lib/deploy/core/composeDocument.js.map +1 -0
- package/lib/deploy/core/composeFile.d.ts +25 -0
- package/lib/deploy/core/composeFile.d.ts.map +1 -0
- package/lib/deploy/core/composeFile.js +138 -0
- package/lib/deploy/core/composeFile.js.map +1 -0
- package/lib/deploy/core/envExample.d.ts +10 -0
- package/lib/deploy/core/envExample.d.ts.map +1 -0
- package/lib/deploy/core/envExample.js +36 -0
- package/lib/deploy/core/envExample.js.map +1 -0
- package/lib/deploy/core/index.d.ts +4 -0
- package/lib/deploy/core/index.d.ts.map +1 -0
- package/lib/deploy/core/index.js +3 -0
- package/lib/deploy/core/index.js.map +1 -0
- package/lib/deploy/core/markers.d.ts +10 -0
- package/lib/deploy/core/markers.d.ts.map +1 -0
- package/lib/deploy/core/markers.js +21 -0
- package/lib/deploy/core/markers.js.map +1 -0
- package/lib/deploy/core/types.d.ts +70 -0
- package/lib/deploy/core/types.d.ts.map +1 -0
- package/lib/deploy/core/types.js +10 -0
- package/lib/deploy/core/types.js.map +1 -0
- package/lib/disclosure/ui/CollapsibleSection.d.ts.map +1 -1
- package/lib/disclosure/ui/CollapsibleSection.js +2 -3
- package/lib/disclosure/ui/CollapsibleSection.js.map +1 -1
- package/lib/download/ui/FigureDownloadPanel.d.ts +6 -0
- package/lib/download/ui/FigureDownloadPanel.d.ts.map +1 -1
- package/lib/download/ui/FigureDownloadPanel.js +8 -4
- package/lib/download/ui/FigureDownloadPanel.js.map +1 -1
- package/lib/ecosystem/core/groups.d.ts +30 -0
- package/lib/ecosystem/core/groups.d.ts.map +1 -0
- package/lib/ecosystem/core/groups.js +42 -0
- package/lib/ecosystem/core/groups.js.map +1 -0
- package/lib/ecosystem/core/index.d.ts +7 -3
- package/lib/ecosystem/core/index.d.ts.map +1 -1
- package/lib/ecosystem/core/index.js +4 -3
- package/lib/ecosystem/core/index.js.map +1 -1
- package/lib/ecosystem/core/lookup.d.ts +21 -0
- package/lib/ecosystem/core/lookup.d.ts.map +1 -1
- package/lib/ecosystem/core/lookup.js +29 -0
- package/lib/ecosystem/core/lookup.js.map +1 -1
- package/lib/ecosystem/core/nameColors.d.ts +33 -0
- package/lib/ecosystem/core/nameColors.d.ts.map +1 -0
- package/lib/ecosystem/core/nameColors.js +23 -0
- package/lib/ecosystem/core/nameColors.js.map +1 -0
- package/lib/ecosystem/core/sites.d.ts +2 -47
- package/lib/ecosystem/core/sites.d.ts.map +1 -1
- package/lib/ecosystem/core/sites.js +34 -4
- package/lib/ecosystem/core/sites.js.map +1 -1
- package/lib/ecosystem/core/tokens.d.ts +0 -8
- package/lib/ecosystem/core/tokens.d.ts.map +1 -1
- package/lib/ecosystem/core/tokens.js +0 -10
- package/lib/ecosystem/core/tokens.js.map +1 -1
- package/lib/ecosystem/core/types.d.ts +71 -0
- package/lib/ecosystem/core/types.d.ts.map +1 -0
- package/lib/ecosystem/core/types.js +2 -0
- package/lib/ecosystem/core/types.js.map +1 -0
- package/lib/ecosystem/ui/EcosystemButton.d.ts +6 -0
- package/lib/ecosystem/ui/EcosystemButton.d.ts.map +1 -1
- package/lib/ecosystem/ui/EcosystemButton.js +3 -2
- package/lib/ecosystem/ui/EcosystemButton.js.map +1 -1
- package/lib/ecosystem/ui/EcosystemLinks.d.ts +12 -6
- package/lib/ecosystem/ui/EcosystemLinks.d.ts.map +1 -1
- package/lib/ecosystem/ui/EcosystemLinks.js +27 -21
- package/lib/ecosystem/ui/EcosystemLinks.js.map +1 -1
- package/lib/ecosystem/ui/EcosystemMenu.d.ts +15 -5
- package/lib/ecosystem/ui/EcosystemMenu.d.ts.map +1 -1
- package/lib/ecosystem/ui/EcosystemMenu.js +19 -24
- package/lib/ecosystem/ui/EcosystemMenu.js.map +1 -1
- package/lib/ecosystem/ui/SiteGroupGrid.d.ts +30 -0
- package/lib/ecosystem/ui/SiteGroupGrid.d.ts.map +1 -0
- package/lib/ecosystem/ui/SiteGroupGrid.js +23 -0
- package/lib/ecosystem/ui/SiteGroupGrid.js.map +1 -0
- package/lib/ecosystem/ui/SiteGroupSection.d.ts +20 -0
- package/lib/ecosystem/ui/SiteGroupSection.d.ts.map +1 -0
- package/lib/ecosystem/ui/SiteGroupSection.js +44 -0
- package/lib/ecosystem/ui/SiteGroupSection.js.map +1 -0
- package/lib/ecosystem/ui/SiteTheme.d.ts +1 -0
- package/lib/ecosystem/ui/SiteTheme.d.ts.map +1 -1
- package/lib/ecosystem/ui/SiteTheme.js.map +1 -1
- package/lib/ecosystem/ui/SiteTile.d.ts +6 -0
- package/lib/ecosystem/ui/SiteTile.d.ts.map +1 -1
- package/lib/ecosystem/ui/SiteTile.js +14 -8
- package/lib/ecosystem/ui/SiteTile.js.map +1 -1
- package/lib/ecosystem/ui/Wordmark.d.ts +1 -0
- package/lib/ecosystem/ui/Wordmark.d.ts.map +1 -1
- package/lib/ecosystem/ui/Wordmark.js +5 -5
- package/lib/ecosystem/ui/Wordmark.js.map +1 -1
- package/lib/ecosystem/ui/ecosystemStyles.d.ts +4 -0
- package/lib/ecosystem/ui/ecosystemStyles.d.ts.map +1 -0
- package/lib/ecosystem/ui/ecosystemStyles.js +9 -0
- package/lib/ecosystem/ui/ecosystemStyles.js.map +1 -0
- package/lib/ecosystem/ui/glyphs.d.ts.map +1 -1
- package/lib/ecosystem/ui/glyphs.js +7 -3
- package/lib/ecosystem/ui/glyphs.js.map +1 -1
- package/lib/ecosystem/ui/marks.d.ts +6 -0
- package/lib/ecosystem/ui/marks.d.ts.map +1 -1
- package/lib/ecosystem/ui/marks.js +2 -2
- package/lib/ecosystem/ui/marks.js.map +1 -1
- package/lib/error/core/index.d.ts +2 -0
- package/lib/error/core/index.d.ts.map +1 -0
- package/lib/error/core/index.js +2 -0
- package/lib/error/core/index.js.map +1 -0
- package/lib/error/core/toError.d.ts +18 -0
- package/lib/error/core/toError.d.ts.map +1 -0
- package/lib/error/{ui → core}/toError.js +12 -3
- package/lib/error/core/toError.js.map +1 -0
- package/lib/error/ui/ErrorBoundary.d.ts.map +1 -1
- package/lib/error/ui/ErrorBoundary.js +1 -1
- package/lib/error/ui/ErrorBoundary.js.map +1 -1
- package/lib/error/ui/index.d.ts +1 -1
- package/lib/error/ui/index.d.ts.map +1 -1
- package/lib/error/ui/index.js.map +1 -1
- package/lib/format/core/clamp.d.ts +15 -0
- package/lib/format/core/clamp.d.ts.map +1 -0
- package/lib/format/core/clamp.js +23 -0
- package/lib/format/core/clamp.js.map +1 -0
- package/lib/format/core/index.d.ts +8 -1
- package/lib/format/core/index.d.ts.map +1 -1
- package/lib/format/core/index.js +5 -1
- package/lib/format/core/index.js.map +1 -1
- package/lib/format/core/numbers.d.ts +25 -8
- package/lib/format/core/numbers.d.ts.map +1 -1
- package/lib/format/core/numbers.js +35 -13
- package/lib/format/core/numbers.js.map +1 -1
- package/lib/format/core/relativeTime.d.ts +29 -0
- package/lib/format/core/relativeTime.d.ts.map +1 -0
- package/lib/format/core/relativeTime.js +52 -0
- package/lib/format/core/relativeTime.js.map +1 -0
- package/lib/format/core/roundTo.d.ts +12 -0
- package/lib/format/core/roundTo.d.ts.map +1 -0
- package/lib/format/core/roundTo.js +25 -0
- package/lib/format/core/roundTo.js.map +1 -0
- package/lib/format/core/superscript.d.ts +12 -0
- package/lib/format/core/superscript.d.ts.map +1 -0
- package/lib/format/core/superscript.js +23 -0
- package/lib/format/core/superscript.js.map +1 -0
- package/lib/format/core/units.d.ts +22 -2
- package/lib/format/core/units.d.ts.map +1 -1
- package/lib/format/core/units.js +25 -6
- package/lib/format/core/units.js.map +1 -1
- package/lib/help/ui/HelpBody.d.ts +18 -7
- package/lib/help/ui/HelpBody.d.ts.map +1 -1
- package/lib/help/ui/HelpBody.js +24 -2
- package/lib/help/ui/HelpBody.js.map +1 -1
- package/lib/help/ui/HelpIcon.d.ts +16 -2
- package/lib/help/ui/HelpIcon.d.ts.map +1 -1
- package/lib/help/ui/HelpIcon.js +4 -2
- package/lib/help/ui/HelpIcon.js.map +1 -1
- package/lib/help/ui/HelpToolbarButton.d.ts.map +1 -1
- package/lib/help/ui/HelpToolbarButton.js +2 -1
- package/lib/help/ui/HelpToolbarButton.js.map +1 -1
- package/lib/help/ui/HelpTooltip.d.ts +5 -0
- package/lib/help/ui/HelpTooltip.d.ts.map +1 -1
- package/lib/help/ui/HelpTooltip.js +2 -2
- package/lib/help/ui/HelpTooltip.js.map +1 -1
- package/lib/help/ui/helpName.d.ts +9 -0
- package/lib/help/ui/helpName.d.ts.map +1 -0
- package/lib/help/ui/helpName.js +10 -0
- package/lib/help/ui/helpName.js.map +1 -0
- package/lib/hooks/ui/activationKey.d.ts +34 -0
- package/lib/hooks/ui/activationKey.d.ts.map +1 -0
- package/lib/hooks/ui/activationKey.js +39 -0
- package/lib/hooks/ui/activationKey.js.map +1 -0
- package/lib/hooks/ui/activeHeading.d.ts +21 -0
- package/lib/hooks/ui/activeHeading.d.ts.map +1 -0
- package/lib/hooks/ui/activeHeading.js +24 -0
- package/lib/hooks/ui/activeHeading.js.map +1 -0
- package/lib/hooks/ui/asyncState.d.ts +31 -0
- package/lib/hooks/ui/asyncState.d.ts.map +1 -0
- package/lib/hooks/ui/asyncState.js +28 -0
- package/lib/hooks/ui/asyncState.js.map +1 -0
- package/lib/hooks/ui/documentListNavigation.d.ts +54 -0
- package/lib/hooks/ui/documentListNavigation.d.ts.map +1 -0
- package/lib/hooks/ui/documentListNavigation.js +41 -0
- package/lib/hooks/ui/documentListNavigation.js.map +1 -0
- package/lib/hooks/ui/elementTarget.d.ts +14 -0
- package/lib/hooks/ui/elementTarget.d.ts.map +1 -0
- package/lib/hooks/ui/elementTarget.js +11 -0
- package/lib/hooks/ui/elementTarget.js.map +1 -0
- package/lib/hooks/ui/index.d.ts +15 -0
- package/lib/hooks/ui/index.d.ts.map +1 -1
- package/lib/hooks/ui/index.js +6 -0
- package/lib/hooks/ui/index.js.map +1 -1
- package/lib/hooks/ui/keyTargets.d.ts +17 -0
- package/lib/hooks/ui/keyTargets.d.ts.map +1 -0
- package/lib/hooks/ui/keyTargets.js +59 -0
- package/lib/hooks/ui/keyTargets.js.map +1 -0
- package/lib/hooks/ui/listNavigation.d.ts +2 -3
- package/lib/hooks/ui/listNavigation.d.ts.map +1 -1
- package/lib/hooks/ui/listNavigation.js +8 -13
- package/lib/hooks/ui/listNavigation.js.map +1 -1
- package/lib/hooks/ui/pollingController.d.ts +63 -0
- package/lib/hooks/ui/pollingController.d.ts.map +1 -0
- package/lib/hooks/ui/pollingController.js +86 -0
- package/lib/hooks/ui/pollingController.js.map +1 -0
- package/lib/hooks/ui/useActiveHeading.d.ts +29 -0
- package/lib/hooks/ui/useActiveHeading.d.ts.map +1 -0
- package/lib/hooks/ui/useActiveHeading.js +50 -0
- package/lib/hooks/ui/useActiveHeading.js.map +1 -0
- package/lib/hooks/ui/useAsync.d.ts +19 -0
- package/lib/hooks/ui/useAsync.d.ts.map +1 -0
- package/lib/hooks/ui/useAsync.js +36 -0
- package/lib/hooks/ui/useAsync.js.map +1 -0
- package/lib/hooks/ui/useDocumentListNavigation.d.ts +28 -0
- package/lib/hooks/ui/useDocumentListNavigation.d.ts.map +1 -0
- package/lib/hooks/ui/useDocumentListNavigation.js +53 -0
- package/lib/hooks/ui/useDocumentListNavigation.js.map +1 -0
- package/lib/hooks/ui/usePolling.d.ts +30 -0
- package/lib/hooks/ui/usePolling.d.ts.map +1 -0
- package/lib/hooks/ui/usePolling.js +52 -0
- package/lib/hooks/ui/usePolling.js.map +1 -0
- package/lib/hooks/ui/useResizeObserver.d.ts +5 -3
- package/lib/hooks/ui/useResizeObserver.d.ts.map +1 -1
- package/lib/hooks/ui/useResizeObserver.js +7 -4
- package/lib/hooks/ui/useResizeObserver.js.map +1 -1
- package/lib/molecule3d/core/exportImage.d.ts +29 -0
- package/lib/molecule3d/core/exportImage.d.ts.map +1 -0
- package/lib/molecule3d/core/exportImage.js +42 -0
- package/lib/molecule3d/core/exportImage.js.map +1 -0
- package/lib/molecule3d/core/gestures.d.ts +17 -0
- package/lib/molecule3d/core/gestures.d.ts.map +1 -0
- package/lib/molecule3d/core/gestures.js +23 -0
- package/lib/molecule3d/core/gestures.js.map +1 -0
- package/lib/molecule3d/core/index.d.ts +9 -0
- package/lib/molecule3d/core/index.d.ts.map +1 -0
- package/lib/molecule3d/core/index.js +5 -0
- package/lib/molecule3d/core/index.js.map +1 -0
- package/lib/molecule3d/core/measurement.d.ts +30 -0
- package/lib/molecule3d/core/measurement.d.ts.map +1 -0
- package/lib/molecule3d/core/measurement.js +24 -0
- package/lib/molecule3d/core/measurement.js.map +1 -0
- package/lib/molecule3d/core/settings.d.ts +120 -0
- package/lib/molecule3d/core/settings.d.ts.map +1 -0
- package/lib/molecule3d/core/settings.js +133 -0
- package/lib/molecule3d/core/settings.js.map +1 -0
- package/lib/molecule3d/ui/Molecule3DExport.d.ts +21 -0
- package/lib/molecule3d/ui/Molecule3DExport.d.ts.map +1 -0
- package/lib/molecule3d/ui/Molecule3DExport.js +32 -0
- package/lib/molecule3d/ui/Molecule3DExport.js.map +1 -0
- package/lib/molecule3d/ui/Molecule3DHelp.d.ts +11 -0
- package/lib/molecule3d/ui/Molecule3DHelp.d.ts.map +1 -0
- package/lib/molecule3d/ui/Molecule3DHelp.js +43 -0
- package/lib/molecule3d/ui/Molecule3DHelp.js.map +1 -0
- package/lib/molecule3d/ui/Molecule3DOptions.d.ts +21 -0
- package/lib/molecule3d/ui/Molecule3DOptions.d.ts.map +1 -0
- package/lib/molecule3d/ui/Molecule3DOptions.js +65 -0
- package/lib/molecule3d/ui/Molecule3DOptions.js.map +1 -0
- package/lib/molecule3d/ui/Molecule3DSurfaceColors.d.ts +21 -0
- package/lib/molecule3d/ui/Molecule3DSurfaceColors.d.ts.map +1 -0
- package/lib/molecule3d/ui/Molecule3DSurfaceColors.js +69 -0
- package/lib/molecule3d/ui/Molecule3DSurfaceColors.js.map +1 -0
- package/lib/molecule3d/ui/Molecule3DToolbar.d.ts +33 -0
- package/lib/molecule3d/ui/Molecule3DToolbar.d.ts.map +1 -0
- package/lib/molecule3d/ui/Molecule3DToolbar.js +57 -0
- package/lib/molecule3d/ui/Molecule3DToolbar.js.map +1 -0
- package/lib/molecule3d/ui/MoleculeCanvas3D.d.ts +20 -0
- package/lib/molecule3d/ui/MoleculeCanvas3D.d.ts.map +1 -0
- package/lib/molecule3d/ui/MoleculeCanvas3D.js +132 -0
- package/lib/molecule3d/ui/MoleculeCanvas3D.js.map +1 -0
- package/lib/molecule3d/ui/MoleculeViewer3D.d.ts +26 -0
- package/lib/molecule3d/ui/MoleculeViewer3D.d.ts.map +1 -0
- package/lib/molecule3d/ui/MoleculeViewer3D.js +56 -0
- package/lib/molecule3d/ui/MoleculeViewer3D.js.map +1 -0
- package/lib/molecule3d/ui/camera.d.ts +29 -0
- package/lib/molecule3d/ui/camera.d.ts.map +1 -0
- package/lib/molecule3d/ui/camera.js +58 -0
- package/lib/molecule3d/ui/camera.js.map +1 -0
- package/lib/molecule3d/ui/drawScene.d.ts +15 -0
- package/lib/molecule3d/ui/drawScene.d.ts.map +1 -0
- package/lib/molecule3d/ui/drawScene.js +34 -0
- package/lib/molecule3d/ui/drawScene.js.map +1 -0
- package/lib/molecule3d/ui/exportMoleculeImage.d.ts +21 -0
- package/lib/molecule3d/ui/exportMoleculeImage.d.ts.map +1 -0
- package/lib/molecule3d/ui/exportMoleculeImage.js +26 -0
- package/lib/molecule3d/ui/exportMoleculeImage.js.map +1 -0
- package/lib/molecule3d/ui/index.d.ts +11 -0
- package/lib/molecule3d/ui/index.d.ts.map +1 -0
- package/lib/molecule3d/ui/index.js +10 -0
- package/lib/molecule3d/ui/index.js.map +1 -0
- package/lib/molecule3d/ui/measurements.d.ts +46 -0
- package/lib/molecule3d/ui/measurements.d.ts.map +1 -0
- package/lib/molecule3d/ui/measurements.js +148 -0
- package/lib/molecule3d/ui/measurements.js.map +1 -0
- package/lib/molecule3d/ui/molecule3dIcons.d.ts +29 -0
- package/lib/molecule3d/ui/molecule3dIcons.d.ts.map +1 -0
- package/lib/molecule3d/ui/molecule3dIcons.js +47 -0
- package/lib/molecule3d/ui/molecule3dIcons.js.map +1 -0
- package/lib/molecule3d/ui/moleculeViewer3DProps.d.ts +93 -0
- package/lib/molecule3d/ui/moleculeViewer3DProps.d.ts.map +1 -0
- package/lib/molecule3d/ui/moleculeViewer3DProps.js +2 -0
- package/lib/molecule3d/ui/moleculeViewer3DProps.js.map +1 -0
- package/lib/molecule3d/ui/polarityColorTheme.d.ts +20 -0
- package/lib/molecule3d/ui/polarityColorTheme.d.ts.map +1 -0
- package/lib/molecule3d/ui/polarityColorTheme.js +105 -0
- package/lib/molecule3d/ui/polarityColorTheme.js.map +1 -0
- package/lib/molecule3d/ui/renderMolecule.d.ts +38 -0
- package/lib/molecule3d/ui/renderMolecule.d.ts.map +1 -0
- package/lib/molecule3d/ui/renderMolecule.js +135 -0
- package/lib/molecule3d/ui/renderMolecule.js.map +1 -0
- package/lib/molecule3d/ui/renderSurface.d.ts +22 -0
- package/lib/molecule3d/ui/renderSurface.d.ts.map +1 -0
- package/lib/molecule3d/ui/renderSurface.js +69 -0
- package/lib/molecule3d/ui/renderSurface.js.map +1 -0
- package/lib/molecule3d/ui/useControlledState.d.ts +11 -0
- package/lib/molecule3d/ui/useControlledState.d.ts.map +1 -0
- package/lib/molecule3d/ui/useControlledState.js +25 -0
- package/lib/molecule3d/ui/useControlledState.js.map +1 -0
- package/lib/molecule3d/ui/useImageExport.d.ts +20 -0
- package/lib/molecule3d/ui/useImageExport.d.ts.map +1 -0
- package/lib/molecule3d/ui/useImageExport.js +29 -0
- package/lib/molecule3d/ui/useImageExport.js.map +1 -0
- package/lib/molecule3d/ui/usePolarSurfaceArea.d.ts +11 -0
- package/lib/molecule3d/ui/usePolarSurfaceArea.d.ts.map +1 -0
- package/lib/molecule3d/ui/usePolarSurfaceArea.js +37 -0
- package/lib/molecule3d/ui/usePolarSurfaceArea.js.map +1 -0
- package/lib/molecule3d/ui/viewer.d.ts +99 -0
- package/lib/molecule3d/ui/viewer.d.ts.map +1 -0
- package/lib/molecule3d/ui/viewer.js +203 -0
- package/lib/molecule3d/ui/viewer.js.map +1 -0
- package/lib/molecule3d/ui/viewerTypes.d.ts +57 -0
- package/lib/molecule3d/ui/viewerTypes.d.ts.map +1 -0
- package/lib/molecule3d/ui/viewerTypes.js +6 -0
- package/lib/molecule3d/ui/viewerTypes.js.map +1 -0
- package/lib/molecule3d.d.ts +11 -0
- package/lib/molecule3d.d.ts.map +1 -0
- package/lib/molecule3d.js +11 -0
- package/lib/molecule3d.js.map +1 -0
- package/lib/orbital/core/atomicGrid.d.ts +3 -2
- package/lib/orbital/core/atomicGrid.d.ts.map +1 -1
- package/lib/orbital/core/atomicGrid.js +3 -2
- package/lib/orbital/core/atomicGrid.js.map +1 -1
- package/lib/orbital/core/atomicOrbitals.d.ts +1 -8
- package/lib/orbital/core/atomicOrbitals.d.ts.map +1 -1
- package/lib/orbital/core/atomicOrbitals.js +1 -1
- package/lib/orbital/core/atomicOrbitals.js.map +1 -1
- package/lib/orbital/core/constants.d.ts +3 -0
- package/lib/orbital/core/constants.d.ts.map +1 -1
- package/lib/orbital/core/electronConfiguration.d.ts +4 -12
- package/lib/orbital/core/electronConfiguration.d.ts.map +1 -1
- package/lib/orbital/core/electronConfiguration.js +26 -38
- package/lib/orbital/core/electronConfiguration.js.map +1 -1
- package/lib/orbital/core/grid.d.ts +3 -0
- package/lib/orbital/core/grid.d.ts.map +1 -1
- package/lib/orbital/core/grid.js.map +1 -1
- package/lib/orbital/core/index.d.ts +2 -0
- package/lib/orbital/core/index.d.ts.map +1 -1
- package/lib/orbital/core/index.js +1 -0
- package/lib/orbital/core/index.js.map +1 -1
- package/lib/orbital/core/isovalue.d.ts +3 -2
- package/lib/orbital/core/isovalue.d.ts.map +1 -1
- package/lib/orbital/core/isovalue.js +3 -2
- package/lib/orbital/core/isovalue.js.map +1 -1
- package/lib/orbital/core/occupancy.d.ts.map +1 -1
- package/lib/orbital/core/occupancy.js +2 -3
- package/lib/orbital/core/occupancy.js.map +1 -1
- package/lib/orbital/core/palette.d.ts +8 -4
- package/lib/orbital/core/palette.d.ts.map +1 -1
- package/lib/orbital/core/palette.js +3 -3
- package/lib/orbital/core/palette.js.map +1 -1
- package/lib/orbital/core/radialDistribution.d.ts +51 -0
- package/lib/orbital/core/radialDistribution.d.ts.map +1 -0
- package/lib/orbital/core/radialDistribution.js +47 -0
- package/lib/orbital/core/radialDistribution.js.map +1 -0
- package/lib/orbital/core/realHarmonics.d.ts +3 -3
- package/lib/orbital/core/realHarmonics.js +3 -3
- package/lib/orbital/ui/AtomicOrbitalCanvas.d.ts +5 -3
- package/lib/orbital/ui/AtomicOrbitalCanvas.d.ts.map +1 -1
- package/lib/orbital/ui/AtomicOrbitalCanvas.js +27 -85
- package/lib/orbital/ui/AtomicOrbitalCanvas.js.map +1 -1
- package/lib/orbital/ui/AtomicOrbitalControls.d.ts +23 -0
- package/lib/orbital/ui/AtomicOrbitalControls.d.ts.map +1 -0
- package/lib/orbital/ui/AtomicOrbitalControls.js +40 -0
- package/lib/orbital/ui/AtomicOrbitalControls.js.map +1 -0
- package/lib/orbital/ui/AtomicOrbitalViewer.d.ts +6 -0
- package/lib/orbital/ui/AtomicOrbitalViewer.d.ts.map +1 -1
- package/lib/orbital/ui/AtomicOrbitalViewer.js +23 -14
- package/lib/orbital/ui/AtomicOrbitalViewer.js.map +1 -1
- package/lib/orbital/ui/RadialPlot.d.ts +79 -0
- package/lib/orbital/ui/RadialPlot.d.ts.map +1 -0
- package/lib/orbital/ui/RadialPlot.js +59 -0
- package/lib/orbital/ui/RadialPlot.js.map +1 -0
- package/lib/orbital/ui/RadialPlotMarks.d.ts +31 -0
- package/lib/orbital/ui/RadialPlotMarks.d.ts.map +1 -0
- package/lib/orbital/ui/RadialPlotMarks.js +22 -0
- package/lib/orbital/ui/RadialPlotMarks.js.map +1 -0
- package/lib/orbital/ui/camera.d.ts +0 -6
- package/lib/orbital/ui/camera.d.ts.map +1 -1
- package/lib/orbital/ui/camera.js +1 -1
- package/lib/orbital/ui/camera.js.map +1 -1
- package/lib/orbital/ui/index.d.ts +3 -1
- package/lib/orbital/ui/index.d.ts.map +1 -1
- package/lib/orbital/ui/index.js +1 -0
- package/lib/orbital/ui/index.js.map +1 -1
- package/lib/orbital/ui/orbitalCanvasHelpers.d.ts +24 -0
- package/lib/orbital/ui/orbitalCanvasHelpers.d.ts.map +1 -0
- package/lib/orbital/ui/orbitalCanvasHelpers.js +34 -0
- package/lib/orbital/ui/orbitalCanvasHelpers.js.map +1 -0
- package/lib/orbital/ui/orbitalPluginSpec.d.ts +20 -0
- package/lib/orbital/ui/orbitalPluginSpec.d.ts.map +1 -0
- package/lib/orbital/ui/orbitalPluginSpec.js +34 -0
- package/lib/orbital/ui/orbitalPluginSpec.js.map +1 -0
- package/lib/orbital/ui/radialPlotGeometry.d.ts +41 -0
- package/lib/orbital/ui/radialPlotGeometry.d.ts.map +1 -0
- package/lib/orbital/ui/radialPlotGeometry.js +80 -0
- package/lib/orbital/ui/radialPlotGeometry.js.map +1 -0
- package/lib/orbital/ui/renderAxes.d.ts +2 -2
- package/lib/orbital/ui/renderAxes.d.ts.map +1 -1
- package/lib/orbital/ui/renderAxes.js +11 -11
- package/lib/orbital/ui/renderAxes.js.map +1 -1
- package/lib/orbital/ui/renderVolume.d.ts +2 -2
- package/lib/orbital/ui/renderVolume.d.ts.map +1 -1
- package/lib/orbital/ui/renderVolume.js +9 -9
- package/lib/orbital/ui/renderVolume.js.map +1 -1
- package/lib/orbital/ui/serial.d.ts +2 -1
- package/lib/orbital/ui/serial.d.ts.map +1 -1
- package/lib/orbital/ui/viewer.d.ts +4 -11
- package/lib/orbital/ui/viewer.d.ts.map +1 -1
- package/lib/orbital/ui/viewer.js +5 -27
- package/lib/orbital/ui/viewer.js.map +1 -1
- package/lib/orbital.d.ts +5 -4
- package/lib/orbital.d.ts.map +1 -1
- package/lib/orbital.js +5 -4
- package/lib/orbital.js.map +1 -1
- package/lib/overlay/core/index.d.ts +2 -1
- package/lib/overlay/core/index.d.ts.map +1 -1
- package/lib/overlay/core/index.js +1 -1
- package/lib/overlay/core/index.js.map +1 -1
- package/lib/overlay/core/overlayCollapse.d.ts +25 -0
- package/lib/overlay/core/overlayCollapse.d.ts.map +1 -1
- package/lib/overlay/core/overlayCollapse.js +17 -0
- package/lib/overlay/core/overlayCollapse.js.map +1 -1
- package/lib/overlay/core/placeOverlayCard.d.ts.map +1 -1
- package/lib/overlay/core/placeOverlayCard.js +2 -4
- package/lib/overlay/core/placeOverlayCard.js.map +1 -1
- package/lib/overlay/ui/OverlayBar.d.ts +3 -6
- package/lib/overlay/ui/OverlayBar.d.ts.map +1 -1
- package/lib/overlay/ui/OverlayBar.js +2 -3
- package/lib/overlay/ui/OverlayBar.js.map +1 -1
- package/lib/overlay/ui/OverlayBarButton.d.ts +2 -1
- package/lib/overlay/ui/OverlayBarButton.d.ts.map +1 -1
- package/lib/overlay/ui/OverlayBarButton.js.map +1 -1
- package/lib/overlay/ui/OverlayBarCard.d.ts +2 -1
- package/lib/overlay/ui/OverlayBarCard.d.ts.map +1 -1
- package/lib/overlay/ui/OverlayChip.d.ts.map +1 -1
- package/lib/overlay/ui/OverlayChip.js +3 -3
- package/lib/overlay/ui/OverlayChip.js.map +1 -1
- package/lib/overlay/ui/OverlayIconButton.d.ts +2 -1
- package/lib/overlay/ui/OverlayIconButton.d.ts.map +1 -1
- package/lib/overlay/ui/OverlayIconButton.js +5 -4
- package/lib/overlay/ui/OverlayIconButton.js.map +1 -1
- package/lib/overlay/ui/OverlayLayer.d.ts.map +1 -1
- package/lib/overlay/ui/OverlayLayer.js +2 -1
- package/lib/overlay/ui/OverlayLayer.js.map +1 -1
- package/lib/overlay/ui/OverlayLegend.d.ts.map +1 -1
- package/lib/overlay/ui/OverlayLegend.js +2 -1
- package/lib/overlay/ui/OverlayLegend.js.map +1 -1
- package/lib/overlay/ui/OverlayNumber.d.ts.map +1 -1
- package/lib/overlay/ui/OverlayNumber.js +9 -11
- package/lib/overlay/ui/OverlayNumber.js.map +1 -1
- package/lib/overlay/ui/OverlayPanel.d.ts.map +1 -1
- package/lib/overlay/ui/OverlayPanel.js +4 -3
- package/lib/overlay/ui/OverlayPanel.js.map +1 -1
- package/lib/overlay/ui/OverlayRow.d.ts +2 -2
- package/lib/overlay/ui/OverlayRow.d.ts.map +1 -1
- package/lib/overlay/ui/OverlayRow.js +2 -2
- package/lib/overlay/ui/OverlayRow.js.map +1 -1
- package/lib/overlay/ui/OverlayToggle.d.ts.map +1 -1
- package/lib/overlay/ui/OverlayToggle.js.map +1 -1
- package/lib/overlay/ui/OverlayValueButton.d.ts +2 -3
- package/lib/overlay/ui/OverlayValueButton.d.ts.map +1 -1
- package/lib/overlay/ui/OverlayValueButton.js +5 -7
- package/lib/overlay/ui/OverlayValueButton.js.map +1 -1
- package/lib/overlay/ui/overlayBarShape.d.ts +1 -34
- package/lib/overlay/ui/overlayBarShape.d.ts.map +1 -1
- package/lib/overlay/ui/overlayBarShape.js +2 -40
- package/lib/overlay/ui/overlayBarShape.js.map +1 -1
- package/lib/overlay/ui/overlayControlStyles.d.ts +9 -2
- package/lib/overlay/ui/overlayControlStyles.d.ts.map +1 -1
- package/lib/overlay/ui/overlayControlStyles.js +4 -1
- package/lib/overlay/ui/overlayControlStyles.js.map +1 -1
- package/lib/overlay/ui/overlayPanelContext.d.ts.map +1 -1
- package/lib/overlay/ui/overlayPanelContext.js.map +1 -1
- package/lib/overlay/ui/overlayPanelStyles.d.ts +11 -4
- package/lib/overlay/ui/overlayPanelStyles.d.ts.map +1 -1
- package/lib/overlay/ui/overlayPanelStyles.js +9 -3
- package/lib/overlay/ui/overlayPanelStyles.js.map +1 -1
- package/lib/overlay/ui/overlayPillStyles.d.ts +2 -1
- package/lib/overlay/ui/overlayPillStyles.d.ts.map +1 -1
- package/lib/overlay/ui/overlayRowStyles.d.ts +2 -10
- package/lib/overlay/ui/overlayRowStyles.d.ts.map +1 -1
- package/lib/overlay/ui/overlayRowStyles.js +1 -1
- package/lib/overlay/ui/overlayRowStyles.js.map +1 -1
- package/lib/overlay/ui/overlaySurface.d.ts.map +1 -1
- package/lib/overlay/ui/overlaySurface.js.map +1 -1
- package/lib/overlay/ui/overlaySwitchStyles.d.ts +2 -1
- package/lib/overlay/ui/overlaySwitchStyles.d.ts.map +1 -1
- package/lib/overlay/ui/overlayValueStyles.d.ts +19 -7
- package/lib/overlay/ui/overlayValueStyles.d.ts.map +1 -1
- package/lib/overlay/ui/overlayValueStyles.js +45 -52
- package/lib/overlay/ui/overlayValueStyles.js.map +1 -1
- package/lib/overlay/ui/useOverlayInteraction.d.ts +31 -0
- package/lib/overlay/ui/useOverlayInteraction.d.ts.map +1 -0
- package/lib/overlay/ui/useOverlayInteraction.js +21 -0
- package/lib/overlay/ui/useOverlayInteraction.js.map +1 -0
- package/lib/pedagogy/core/bucketProgressStore.d.ts +51 -0
- package/lib/pedagogy/core/bucketProgressStore.d.ts.map +1 -0
- package/lib/pedagogy/core/bucketProgressStore.js +42 -0
- package/lib/pedagogy/core/bucketProgressStore.js.map +1 -0
- package/lib/pedagogy/core/glossary.d.ts +31 -9
- package/lib/pedagogy/core/glossary.d.ts.map +1 -1
- package/lib/pedagogy/core/glossary.js +12 -4
- package/lib/pedagogy/core/glossary.js.map +1 -1
- package/lib/pedagogy/core/glossarySearch.d.ts +23 -0
- package/lib/pedagogy/core/glossarySearch.d.ts.map +1 -0
- package/lib/pedagogy/core/glossarySearch.js +52 -0
- package/lib/pedagogy/core/glossarySearch.js.map +1 -0
- package/lib/pedagogy/core/index.d.ts +8 -2
- package/lib/pedagogy/core/index.d.ts.map +1 -1
- package/lib/pedagogy/core/index.js +5 -2
- package/lib/pedagogy/core/index.js.map +1 -1
- package/lib/pedagogy/core/inlineMarks.d.ts +57 -0
- package/lib/pedagogy/core/inlineMarks.d.ts.map +1 -0
- package/lib/pedagogy/core/inlineMarks.js +78 -0
- package/lib/pedagogy/core/inlineMarks.js.map +1 -0
- package/lib/pedagogy/core/progress.d.ts +18 -18
- package/lib/pedagogy/core/progress.d.ts.map +1 -1
- package/lib/pedagogy/core/progress.js +25 -51
- package/lib/pedagogy/core/progress.js.map +1 -1
- package/lib/pedagogy/core/types.d.ts +4 -0
- package/lib/pedagogy/core/types.d.ts.map +1 -1
- package/lib/pedagogy/core/validation.d.ts +3 -0
- package/lib/pedagogy/core/validation.d.ts.map +1 -1
- package/lib/pedagogy/core/validation.js.map +1 -1
- package/lib/pedagogy/ui/ExerciseActions.d.ts +1 -0
- package/lib/pedagogy/ui/ExerciseActions.d.ts.map +1 -1
- package/lib/pedagogy/ui/ExerciseActions.js.map +1 -1
- package/lib/pedagogy/ui/ExerciseProgressHeader.d.ts +1 -0
- package/lib/pedagogy/ui/ExerciseProgressHeader.d.ts.map +1 -1
- package/lib/pedagogy/ui/ExerciseProgressHeader.js +2 -1
- package/lib/pedagogy/ui/ExerciseProgressHeader.js.map +1 -1
- package/lib/pedagogy/ui/ExerciseTags.d.ts +14 -0
- package/lib/pedagogy/ui/ExerciseTags.d.ts.map +1 -1
- package/lib/pedagogy/ui/ExerciseTags.js +4 -4
- package/lib/pedagogy/ui/ExerciseTags.js.map +1 -1
- package/lib/pedagogy/ui/GlossaryDefinition.d.ts +39 -0
- package/lib/pedagogy/ui/GlossaryDefinition.d.ts.map +1 -0
- package/lib/pedagogy/ui/GlossaryDefinition.js +59 -0
- package/lib/pedagogy/ui/GlossaryDefinition.js.map +1 -0
- package/lib/pedagogy/ui/GlossaryIndex.d.ts +59 -0
- package/lib/pedagogy/ui/GlossaryIndex.d.ts.map +1 -0
- package/lib/pedagogy/ui/GlossaryIndex.js +63 -0
- package/lib/pedagogy/ui/GlossaryIndex.js.map +1 -0
- package/lib/pedagogy/ui/GlossaryProvider.d.ts +22 -6
- package/lib/pedagogy/ui/GlossaryProvider.d.ts.map +1 -1
- package/lib/pedagogy/ui/GlossaryProvider.js +12 -4
- package/lib/pedagogy/ui/GlossaryProvider.js.map +1 -1
- package/lib/pedagogy/ui/GlossaryText.d.ts +22 -21
- package/lib/pedagogy/ui/GlossaryText.d.ts.map +1 -1
- package/lib/pedagogy/ui/GlossaryText.js +21 -61
- package/lib/pedagogy/ui/GlossaryText.js.map +1 -1
- package/lib/pedagogy/ui/HintLadder.d.ts +6 -0
- package/lib/pedagogy/ui/HintLadder.d.ts.map +1 -1
- package/lib/pedagogy/ui/HintLadder.js +4 -5
- package/lib/pedagogy/ui/HintLadder.js.map +1 -1
- package/lib/pedagogy/ui/InlineText.d.ts +28 -0
- package/lib/pedagogy/ui/InlineText.d.ts.map +1 -0
- package/lib/pedagogy/ui/InlineText.js +19 -0
- package/lib/pedagogy/ui/InlineText.js.map +1 -0
- package/lib/pedagogy/ui/ReferenceGrid.d.ts +1 -0
- package/lib/pedagogy/ui/ReferenceGrid.d.ts.map +1 -1
- package/lib/pedagogy/ui/ReferenceGrid.js +2 -3
- package/lib/pedagogy/ui/ReferenceGrid.js.map +1 -1
- package/lib/pedagogy/ui/ReferenceSectionBlock.d.ts +4 -0
- package/lib/pedagogy/ui/ReferenceSectionBlock.d.ts.map +1 -1
- package/lib/pedagogy/ui/ReferenceSectionBlock.js +10 -15
- package/lib/pedagogy/ui/ReferenceSectionBlock.js.map +1 -1
- package/lib/pedagogy/ui/SyntaxTooltip.d.ts +15 -16
- package/lib/pedagogy/ui/SyntaxTooltip.d.ts.map +1 -1
- package/lib/pedagogy/ui/SyntaxTooltip.js +16 -12
- package/lib/pedagogy/ui/SyntaxTooltip.js.map +1 -1
- package/lib/pedagogy/ui/TestCaseList.d.ts +1 -0
- package/lib/pedagogy/ui/TestCaseList.d.ts.map +1 -1
- package/lib/pedagogy/ui/TestCaseList.js +4 -3
- package/lib/pedagogy/ui/TestCaseList.js.map +1 -1
- package/lib/pedagogy/ui/TutorialStepStrip.d.ts +3 -0
- package/lib/pedagogy/ui/TutorialStepStrip.d.ts.map +1 -1
- package/lib/pedagogy/ui/TutorialStepStrip.js +11 -10
- package/lib/pedagogy/ui/TutorialStepStrip.js.map +1 -1
- package/lib/pedagogy/ui/exampleText.d.ts +12 -0
- package/lib/pedagogy/ui/exampleText.d.ts.map +1 -0
- package/lib/pedagogy/ui/exampleText.js +17 -0
- package/lib/pedagogy/ui/exampleText.js.map +1 -0
- package/lib/pedagogy/ui/glossaryContext.d.ts +23 -6
- package/lib/pedagogy/ui/glossaryContext.d.ts.map +1 -1
- package/lib/pedagogy/ui/glossaryContext.js +8 -5
- package/lib/pedagogy/ui/glossaryContext.js.map +1 -1
- package/lib/pedagogy/ui/index.d.ts +9 -1
- package/lib/pedagogy/ui/index.d.ts.map +1 -1
- package/lib/pedagogy/ui/index.js +4 -1
- package/lib/pedagogy/ui/index.js.map +1 -1
- package/lib/pedagogy/ui/inlineSegments.d.ts +27 -0
- package/lib/pedagogy/ui/inlineSegments.d.ts.map +1 -0
- package/lib/pedagogy/ui/inlineSegments.js +42 -0
- package/lib/pedagogy/ui/inlineSegments.js.map +1 -0
- package/lib/pedagogy/ui/pedagogyStyle.d.ts +31 -0
- package/lib/pedagogy/ui/pedagogyStyle.d.ts.map +1 -0
- package/lib/pedagogy/ui/pedagogyStyle.js +33 -0
- package/lib/pedagogy/ui/pedagogyStyle.js.map +1 -0
- package/lib/periodic/core/categories.d.ts +1 -1
- package/lib/periodic/core/categories.d.ts.map +1 -1
- package/lib/periodic/core/elements.d.ts +2 -0
- package/lib/periodic/core/elements.d.ts.map +1 -1
- package/lib/periodic/core/elements.js.map +1 -1
- package/lib/periodic/core/layout.d.ts +4 -0
- package/lib/periodic/core/layout.d.ts.map +1 -1
- package/lib/periodic/core/layout.js +9 -9
- package/lib/periodic/core/layout.js.map +1 -1
- package/lib/periodic/ui/CategoryLegend.d.ts +5 -0
- package/lib/periodic/ui/CategoryLegend.d.ts.map +1 -1
- package/lib/periodic/ui/CategoryLegend.js +4 -3
- package/lib/periodic/ui/CategoryLegend.js.map +1 -1
- package/lib/periodic/ui/ElementCell.d.ts +7 -1
- package/lib/periodic/ui/ElementCell.d.ts.map +1 -1
- package/lib/periodic/ui/ElementCell.js +2 -2
- package/lib/periodic/ui/ElementCell.js.map +1 -1
- package/lib/periodic/ui/PeriodicTable.d.ts +8 -2
- package/lib/periodic/ui/PeriodicTable.d.ts.map +1 -1
- package/lib/periodic/ui/PeriodicTable.js +2 -2
- package/lib/periodic/ui/PeriodicTable.js.map +1 -1
- package/lib/periodic/ui/PeriodicTableChrome.d.ts +3 -2
- package/lib/periodic/ui/PeriodicTableChrome.d.ts.map +1 -1
- package/lib/periodic/ui/PeriodicTableChrome.js +4 -3
- package/lib/periodic/ui/PeriodicTableChrome.js.map +1 -1
- package/lib/projection/core/explainedShares.d.ts +1 -1
- package/lib/projection/core/explainedShares.d.ts.map +1 -1
- package/lib/projection/core/fillCopy.d.ts +12 -0
- package/lib/projection/core/fillCopy.d.ts.map +1 -0
- package/lib/projection/core/fillCopy.js +18 -0
- package/lib/projection/core/fillCopy.js.map +1 -0
- package/lib/projection/core/index.d.ts +7 -3
- package/lib/projection/core/index.d.ts.map +1 -1
- package/lib/projection/core/index.js +5 -2
- package/lib/projection/core/index.js.map +1 -1
- package/lib/projection/core/loadingProfiles.d.ts +7 -1
- package/lib/projection/core/loadingProfiles.d.ts.map +1 -1
- package/lib/projection/core/loadingProfiles.js +3 -4
- package/lib/projection/core/loadingProfiles.js.map +1 -1
- package/lib/projection/core/mergeProjectionCopy.d.ts +10 -0
- package/lib/projection/core/mergeProjectionCopy.d.ts.map +1 -0
- package/lib/projection/core/mergeProjectionCopy.js +30 -0
- package/lib/projection/core/mergeProjectionCopy.js.map +1 -0
- package/lib/projection/core/pcaColumns.d.ts +23 -0
- package/lib/projection/core/pcaColumns.d.ts.map +1 -0
- package/lib/projection/core/pcaColumns.js +73 -0
- package/lib/projection/core/pcaColumns.js.map +1 -0
- package/lib/projection/core/pcaLike.d.ts +29 -4
- package/lib/projection/core/pcaLike.d.ts.map +1 -1
- package/lib/projection/core/pcaResult.d.ts +8 -5
- package/lib/projection/core/pcaResult.d.ts.map +1 -1
- package/lib/projection/core/pcaResult.js +10 -35
- package/lib/projection/core/pcaResult.js.map +1 -1
- package/lib/projection/core/projectionCopy.d.ts +26 -20
- package/lib/projection/core/projectionCopy.d.ts.map +1 -1
- package/lib/projection/core/projectionCopy.js +12 -45
- package/lib/projection/core/projectionCopy.js.map +1 -1
- package/lib/projection/core/projectionOptions.d.ts +0 -15
- package/lib/projection/core/projectionOptions.d.ts.map +1 -1
- package/lib/projection/core/projectionOptions.js +0 -88
- package/lib/projection/core/projectionOptions.js.map +1 -1
- package/lib/projection/core/projectionPanelWords.d.ts +91 -0
- package/lib/projection/core/projectionPanelWords.d.ts.map +1 -0
- package/lib/projection/core/projectionPanelWords.js +56 -0
- package/lib/projection/core/projectionPanelWords.js.map +1 -0
- package/lib/projection/core/projectionResult.d.ts +1 -1
- package/lib/projection/core/projectionResult.d.ts.map +1 -1
- package/lib/projection/core/projectionStrings.d.ts +0 -30
- package/lib/projection/core/projectionStrings.d.ts.map +1 -1
- package/lib/projection/core/projectionStrings.js +0 -50
- package/lib/projection/core/projectionStrings.js.map +1 -1
- package/lib/projection/core/resolveProjectionOptions.d.ts +17 -0
- package/lib/projection/core/resolveProjectionOptions.d.ts.map +1 -0
- package/lib/projection/core/resolveProjectionOptions.js +79 -0
- package/lib/projection/core/resolveProjectionOptions.js.map +1 -0
- package/lib/projection/core/variableAxis.d.ts.map +1 -1
- package/lib/projection/core/variableAxis.js +4 -17
- package/lib/projection/core/variableAxis.js.map +1 -1
- package/lib/projection/ui/ProjectionBar.d.ts +2 -1
- package/lib/projection/ui/ProjectionBar.d.ts.map +1 -1
- package/lib/projection/ui/ProjectionBar.js +2 -2
- package/lib/projection/ui/ProjectionMapCaption.d.ts +2 -1
- package/lib/projection/ui/ProjectionMapCaption.d.ts.map +1 -1
- package/lib/projection/ui/ProjectionMapControls.d.ts.map +1 -1
- package/lib/projection/ui/ProjectionMapControls.js +6 -24
- package/lib/projection/ui/ProjectionMapControls.js.map +1 -1
- package/lib/projection/ui/ProjectionMapLegend.d.ts +2 -1
- package/lib/projection/ui/ProjectionMapLegend.d.ts.map +1 -1
- package/lib/projection/ui/ProjectionMapMore.d.ts +2 -1
- package/lib/projection/ui/ProjectionMapMore.d.ts.map +1 -1
- package/lib/projection/ui/ProjectionMapMore.js +4 -37
- package/lib/projection/ui/ProjectionMapMore.js.map +1 -1
- package/lib/projection/ui/ProjectionMapTab.d.ts +3 -2
- package/lib/projection/ui/ProjectionMapTab.d.ts.map +1 -1
- package/lib/projection/ui/ProjectionPairsControls.d.ts +2 -1
- package/lib/projection/ui/ProjectionPairsControls.d.ts.map +1 -1
- package/lib/projection/ui/ProjectionPairsMore.d.ts +2 -1
- package/lib/projection/ui/ProjectionPairsMore.d.ts.map +1 -1
- package/lib/projection/ui/ProjectionPairsMore.js +2 -3
- package/lib/projection/ui/ProjectionPairsMore.js.map +1 -1
- package/lib/projection/ui/ProjectionPairsTab.d.ts +2 -1
- package/lib/projection/ui/ProjectionPairsTab.d.ts.map +1 -1
- package/lib/projection/ui/ProjectionPairsTab.js +2 -1
- package/lib/projection/ui/ProjectionPairsTab.js.map +1 -1
- package/lib/projection/ui/ProjectionPanel.d.ts +3 -2
- package/lib/projection/ui/ProjectionPanel.d.ts.map +1 -1
- package/lib/projection/ui/ProjectionPanel.js.map +1 -1
- package/lib/projection/ui/ProjectionReadout.d.ts +2 -1
- package/lib/projection/ui/ProjectionReadout.d.ts.map +1 -1
- package/lib/projection/ui/ProjectionSharesAxis.d.ts +25 -0
- package/lib/projection/ui/ProjectionSharesAxis.d.ts.map +1 -0
- package/lib/projection/ui/ProjectionSharesAxis.js +20 -0
- package/lib/projection/ui/ProjectionSharesAxis.js.map +1 -0
- package/lib/projection/ui/ProjectionSharesMarks.d.ts +5 -22
- package/lib/projection/ui/ProjectionSharesMarks.d.ts.map +1 -1
- package/lib/projection/ui/ProjectionSharesMarks.js +27 -29
- package/lib/projection/ui/ProjectionSharesMarks.js.map +1 -1
- package/lib/projection/ui/ProjectionSharesMore.d.ts +2 -1
- package/lib/projection/ui/ProjectionSharesMore.d.ts.map +1 -1
- package/lib/projection/ui/ProjectionSharesMore.js +2 -3
- package/lib/projection/ui/ProjectionSharesMore.js.map +1 -1
- package/lib/projection/ui/ProjectionSharesTab.d.ts +2 -1
- package/lib/projection/ui/ProjectionSharesTab.d.ts.map +1 -1
- package/lib/projection/ui/ProjectionSharesTab.js +3 -2
- package/lib/projection/ui/ProjectionSharesTab.js.map +1 -1
- package/lib/projection/ui/ProjectionSpaceControls.d.ts.map +1 -1
- package/lib/projection/ui/ProjectionSpaceControls.js +8 -25
- package/lib/projection/ui/ProjectionSpaceControls.js.map +1 -1
- package/lib/projection/ui/ProjectionSpaceMore.d.ts +2 -1
- package/lib/projection/ui/ProjectionSpaceMore.d.ts.map +1 -1
- package/lib/projection/ui/ProjectionSpaceMore.js +4 -31
- package/lib/projection/ui/ProjectionSpaceMore.js.map +1 -1
- package/lib/projection/ui/ProjectionSpaceTab.d.ts +3 -2
- package/lib/projection/ui/ProjectionSpaceTab.d.ts.map +1 -1
- package/lib/projection/ui/ProjectionSurface.d.ts +2 -1
- package/lib/projection/ui/ProjectionSurface.d.ts.map +1 -1
- package/lib/projection/ui/ProjectionTabStrip.d.ts +2 -1
- package/lib/projection/ui/ProjectionTabStrip.d.ts.map +1 -1
- package/lib/projection/ui/ProjectionTabStrip.js +15 -5
- package/lib/projection/ui/ProjectionTabStrip.js.map +1 -1
- package/lib/projection/ui/ProjectionVariablesControls.d.ts +2 -1
- package/lib/projection/ui/ProjectionVariablesControls.d.ts.map +1 -1
- package/lib/projection/ui/ProjectionVariablesMore.d.ts +2 -1
- package/lib/projection/ui/ProjectionVariablesMore.d.ts.map +1 -1
- package/lib/projection/ui/ProjectionVariablesMore.js +4 -15
- package/lib/projection/ui/ProjectionVariablesMore.js.map +1 -1
- package/lib/projection/ui/ProjectionVariablesTab.d.ts +3 -3
- package/lib/projection/ui/ProjectionVariablesTab.d.ts.map +1 -1
- package/lib/projection/ui/ProjectionVariablesTab.js +1 -1
- package/lib/projection/ui/ProjectionVariablesTab.js.map +1 -1
- package/lib/projection/ui/ProjectionViewer.d.ts +2 -6
- package/lib/projection/ui/ProjectionViewer.d.ts.map +1 -1
- package/lib/projection/ui/ProjectionViewer.js +6 -6
- package/lib/projection/ui/ProjectionViewer.js.map +1 -1
- package/lib/projection/ui/projectionAxisChoices.d.ts +12 -0
- package/lib/projection/ui/projectionAxisChoices.d.ts.map +1 -0
- package/lib/projection/ui/projectionAxisChoices.js +26 -0
- package/lib/projection/ui/projectionAxisChoices.js.map +1 -0
- package/lib/projection/ui/projectionBarReadings.d.ts +10 -1
- package/lib/projection/ui/projectionBarReadings.d.ts.map +1 -1
- package/lib/projection/ui/projectionBarReadings.js +25 -8
- package/lib/projection/ui/projectionBarReadings.js.map +1 -1
- package/lib/projection/ui/projectionBarSlots.d.ts +3 -2
- package/lib/projection/ui/projectionBarSlots.d.ts.map +1 -1
- package/lib/projection/ui/projectionBarStyles.d.ts +2 -2
- package/lib/projection/ui/projectionBarStyles.js +2 -2
- package/lib/projection/ui/projectionEllipse.d.ts +21 -7
- package/lib/projection/ui/projectionEllipse.d.ts.map +1 -1
- package/lib/projection/ui/projectionEllipse.js +45 -18
- package/lib/projection/ui/projectionEllipse.js.map +1 -1
- package/lib/projection/ui/projectionFormat.d.ts.map +1 -1
- package/lib/projection/ui/projectionFormat.js +2 -1
- package/lib/projection/ui/projectionFormat.js.map +1 -1
- package/lib/projection/ui/projectionMapChoices.d.ts +4 -2
- package/lib/projection/ui/projectionMapChoices.d.ts.map +1 -1
- package/lib/projection/ui/projectionMapChoices.js +5 -4
- package/lib/projection/ui/projectionMapChoices.js.map +1 -1
- package/lib/projection/ui/projectionMapChrome.d.ts +2 -1
- package/lib/projection/ui/projectionMapChrome.d.ts.map +1 -1
- package/lib/projection/ui/projectionMapChrome.js +17 -19
- package/lib/projection/ui/projectionMapChrome.js.map +1 -1
- package/lib/projection/ui/projectionMapModel.d.ts +2 -1
- package/lib/projection/ui/projectionMapModel.d.ts.map +1 -1
- package/lib/projection/ui/projectionMapModel.js.map +1 -1
- package/lib/projection/ui/projectionMapView.d.ts +2 -1
- package/lib/projection/ui/projectionMapView.d.ts.map +1 -1
- package/lib/projection/ui/projectionPairsCeiling.d.ts +2 -1
- package/lib/projection/ui/projectionPairsCeiling.d.ts.map +1 -1
- package/lib/projection/ui/projectionTabInfo.d.ts +5 -17
- package/lib/projection/ui/projectionTabInfo.d.ts.map +1 -1
- package/lib/projection/ui/projectionTabInfo.js +7 -8
- package/lib/projection/ui/projectionTabInfo.js.map +1 -1
- package/lib/projection/ui/projectionTabModels.d.ts +5 -1
- package/lib/projection/ui/projectionTabModels.d.ts.map +1 -1
- package/lib/projection/ui/projectionTabModels.js +4 -2
- package/lib/projection/ui/projectionTabModels.js.map +1 -1
- package/lib/projection/ui/projectionVariablesModel.d.ts +3 -3
- package/lib/projection/ui/projectionVariablesModel.d.ts.map +1 -1
- package/lib/projection/ui/projectionVariablesModel.js +3 -2
- package/lib/projection/ui/projectionVariablesModel.js.map +1 -1
- package/lib/projection/ui/projectionVariablesWords.d.ts.map +1 -1
- package/lib/projection/ui/projectionVariablesWords.js +1 -1
- package/lib/projection/ui/projectionVariablesWords.js.map +1 -1
- package/lib/projection/ui/projectionViewChoices.d.ts.map +1 -1
- package/lib/projection/ui/projectionViewChoices.js +4 -7
- package/lib/projection/ui/projectionViewChoices.js.map +1 -1
- package/lib/projection/ui/projectionViewerProps.d.ts +1 -1
- package/lib/projection/ui/projectionViewerProps.d.ts.map +1 -1
- package/lib/projection/ui/projectionWordChoices.d.ts +31 -0
- package/lib/projection/ui/projectionWordChoices.d.ts.map +1 -0
- package/lib/projection/ui/projectionWordChoices.js +48 -0
- package/lib/projection/ui/projectionWordChoices.js.map +1 -0
- package/lib/projection/ui/useProjectionState.d.ts +2 -1
- package/lib/projection/ui/useProjectionState.d.ts.map +1 -1
- package/lib/projection/ui/useProjectionState.js +1 -1
- package/lib/projection/ui/useProjectionState.js.map +1 -1
- package/lib/router/core/address.d.ts +15 -6
- package/lib/router/core/address.d.ts.map +1 -1
- package/lib/router/core/address.js +20 -7
- package/lib/router/core/address.js.map +1 -1
- package/lib/router/core/basePath.d.ts.map +1 -1
- package/lib/router/core/basePath.js +3 -3
- package/lib/router/core/basePath.js.map +1 -1
- package/lib/router/core/history.d.ts +69 -0
- package/lib/router/core/history.d.ts.map +1 -0
- package/lib/router/core/history.js +122 -0
- package/lib/router/core/history.js.map +1 -0
- package/lib/router/core/index.d.ts +7 -2
- package/lib/router/core/index.d.ts.map +1 -1
- package/lib/router/core/index.js +4 -1
- package/lib/router/core/index.js.map +1 -1
- package/lib/router/core/query.d.ts +36 -6
- package/lib/router/core/query.d.ts.map +1 -1
- package/lib/router/core/query.js +67 -19
- package/lib/router/core/query.js.map +1 -1
- package/lib/router/core/siteAddresses.d.ts +49 -0
- package/lib/router/core/siteAddresses.d.ts.map +1 -0
- package/lib/router/core/siteAddresses.js +47 -0
- package/lib/router/core/siteAddresses.js.map +1 -0
- package/lib/router/core/tabRouter.d.ts +9 -0
- package/lib/router/core/tabRouter.d.ts.map +1 -1
- package/lib/router/core/tabRouter.js +15 -6
- package/lib/router/core/tabRouter.js.map +1 -1
- package/lib/router/ui/index.d.ts +2 -0
- package/lib/router/ui/index.d.ts.map +1 -0
- package/lib/router/ui/index.js +2 -0
- package/lib/router/ui/index.js.map +1 -0
- package/lib/router/ui/useTabRoute.d.ts +12 -0
- package/lib/router/ui/useTabRoute.d.ts.map +1 -0
- package/lib/router/ui/useTabRoute.js +20 -0
- package/lib/router/ui/useTabRoute.js.map +1 -0
- package/lib/scatter/core/confidenceEllipse.d.ts +26 -19
- package/lib/scatter/core/confidenceEllipse.d.ts.map +1 -1
- package/lib/scatter/core/confidenceEllipse.js +63 -85
- package/lib/scatter/core/confidenceEllipse.js.map +1 -1
- package/lib/scatter/core/ellipseAxes.d.ts +40 -0
- package/lib/scatter/core/ellipseAxes.d.ts.map +1 -0
- package/lib/scatter/core/ellipseAxes.js +57 -0
- package/lib/scatter/core/ellipseAxes.js.map +1 -0
- package/lib/scatter/core/ellipseProjection.js +1 -1
- package/lib/scatter/core/ellipseProjection.js.map +1 -1
- package/lib/scatter/core/index.d.ts +7 -2
- package/lib/scatter/core/index.d.ts.map +1 -1
- package/lib/scatter/core/index.js +3 -1
- package/lib/scatter/core/index.js.map +1 -1
- package/lib/scatter/core/lassoPath.d.ts.map +1 -1
- package/lib/scatter/core/lassoPath.js +2 -3
- package/lib/scatter/core/lassoPath.js.map +1 -1
- package/lib/scatter/core/scatterGroupMoments.d.ts +42 -0
- package/lib/scatter/core/scatterGroupMoments.d.ts.map +1 -0
- package/lib/scatter/core/scatterGroupMoments.js +101 -0
- package/lib/scatter/core/scatterGroupMoments.js.map +1 -0
- package/lib/scatter/{ui → core}/scatterGroupSpread.d.ts +17 -15
- package/lib/scatter/core/scatterGroupSpread.d.ts.map +1 -0
- package/lib/scatter/core/scatterGroupSpread.js +79 -0
- package/lib/scatter/core/scatterGroupSpread.js.map +1 -0
- package/lib/scatter/core/screenPoints.d.ts +13 -0
- package/lib/scatter/core/screenPoints.d.ts.map +1 -1
- package/lib/scatter/core/screenPoints.js +34 -1
- package/lib/scatter/core/screenPoints.js.map +1 -1
- package/lib/scatter/ui/ScatterEllipseLayer.d.ts +3 -9
- package/lib/scatter/ui/ScatterEllipseLayer.d.ts.map +1 -1
- package/lib/scatter/ui/ScatterEllipseLayer.js +17 -49
- package/lib/scatter/ui/ScatterEllipseLayer.js.map +1 -1
- package/lib/scatter/ui/ScatterLabelLayer.d.ts.map +1 -1
- package/lib/scatter/ui/ScatterLabelLayer.js +3 -7
- package/lib/scatter/ui/ScatterLabelLayer.js.map +1 -1
- package/lib/scatter/ui/ScatterMarkLayer.d.ts +0 -1
- package/lib/scatter/ui/ScatterMarkLayer.d.ts.map +1 -1
- package/lib/scatter/ui/ScatterMarkLayer.js +5 -28
- package/lib/scatter/ui/ScatterMarkLayer.js.map +1 -1
- package/lib/scatter/ui/ScatterMatrix.d.ts +0 -1
- package/lib/scatter/ui/ScatterMatrix.d.ts.map +1 -1
- package/lib/scatter/ui/ScatterMatrix.js +5 -10
- package/lib/scatter/ui/ScatterMatrix.js.map +1 -1
- package/lib/scatter/ui/ScatterMatrixCell.js +1 -1
- package/lib/scatter/ui/ScatterMatrixCell.js.map +1 -1
- package/lib/scatter/ui/ScatterMatrixDiagonal.d.ts +1 -1
- package/lib/scatter/ui/ScatterMatrixDiagonal.d.ts.map +1 -1
- package/lib/scatter/ui/ScatterMatrixDiagonal.js +2 -1
- package/lib/scatter/ui/ScatterMatrixDiagonal.js.map +1 -1
- package/lib/scatter/ui/ScatterOverlayLayers.d.ts +22 -0
- package/lib/scatter/ui/ScatterOverlayLayers.d.ts.map +1 -0
- package/lib/scatter/ui/ScatterOverlayLayers.js +16 -0
- package/lib/scatter/ui/ScatterOverlayLayers.js.map +1 -0
- package/lib/scatter/ui/ScatterPlot.d.ts +0 -1
- package/lib/scatter/ui/ScatterPlot.d.ts.map +1 -1
- package/lib/scatter/ui/ScatterPlot.js +29 -53
- package/lib/scatter/ui/ScatterPlot.js.map +1 -1
- package/lib/scatter/ui/ScatterPointLayer.d.ts +12 -0
- package/lib/scatter/ui/ScatterPointLayer.d.ts.map +1 -1
- package/lib/scatter/ui/ScatterPointLayer.js +13 -13
- package/lib/scatter/ui/ScatterPointLayer.js.map +1 -1
- package/lib/scatter/ui/index.d.ts +7 -6
- package/lib/scatter/ui/index.d.ts.map +1 -1
- package/lib/scatter/ui/index.js +0 -1
- package/lib/scatter/ui/index.js.map +1 -1
- package/lib/scatter/ui/scatterFigureProps.d.ts +185 -0
- package/lib/scatter/ui/scatterFigureProps.d.ts.map +1 -0
- package/lib/scatter/ui/scatterFigureProps.js +10 -0
- package/lib/scatter/ui/scatterFigureProps.js.map +1 -0
- package/lib/scatter/ui/scatterInteractionTypes.d.ts +117 -0
- package/lib/scatter/ui/scatterInteractionTypes.d.ts.map +1 -0
- package/lib/scatter/ui/scatterInteractionTypes.js +6 -0
- package/lib/scatter/ui/scatterInteractionTypes.js.map +1 -0
- package/lib/scatter/ui/scatterLabels.d.ts.map +1 -1
- package/lib/scatter/ui/scatterLabels.js +4 -17
- package/lib/scatter/ui/scatterLabels.js.map +1 -1
- package/lib/scatter/ui/scatterMarkGlyph.d.ts.map +1 -1
- package/lib/scatter/ui/scatterMarkGlyph.js +6 -6
- package/lib/scatter/ui/scatterMarkGlyph.js.map +1 -1
- package/lib/scatter/ui/scatterMatrixDots.d.ts.map +1 -1
- package/lib/scatter/ui/scatterMatrixDots.js +21 -16
- package/lib/scatter/ui/scatterMatrixDots.js.map +1 -1
- package/lib/scatter/ui/scatterMatrixLayout.d.ts +1 -1
- package/lib/scatter/ui/scatterMatrixLayout.js +1 -1
- package/lib/scatter/ui/scatterMatrixOutlines.d.ts.map +1 -1
- package/lib/scatter/ui/scatterMatrixOutlines.js +1 -1
- package/lib/scatter/ui/scatterMatrixOutlines.js.map +1 -1
- package/lib/scatter/ui/scatterMatrixProps.d.ts +7 -2
- package/lib/scatter/ui/scatterMatrixProps.d.ts.map +1 -1
- package/lib/scatter/ui/scatterOutlineShape.d.ts.map +1 -1
- package/lib/scatter/ui/scatterOutlineShape.js +5 -5
- package/lib/scatter/ui/scatterOutlineShape.js.map +1 -1
- package/lib/scatter/ui/scatterPlotModel.d.ts +25 -8
- package/lib/scatter/ui/scatterPlotModel.d.ts.map +1 -1
- package/lib/scatter/ui/scatterPlotModel.js +36 -23
- package/lib/scatter/ui/scatterPlotModel.js.map +1 -1
- package/lib/scatter/ui/scatterPlotProps.d.ts +9 -174
- package/lib/scatter/ui/scatterPlotProps.d.ts.map +1 -1
- package/lib/scatter/ui/scatterPlotProps.js +4 -4
- package/lib/scatter/ui/useCapturedPointer.d.ts +60 -0
- package/lib/scatter/ui/useCapturedPointer.d.ts.map +1 -0
- package/lib/scatter/ui/useCapturedPointer.js +87 -0
- package/lib/scatter/ui/useCapturedPointer.js.map +1 -0
- package/lib/scatter/ui/useLassoGesture.d.ts +4 -9
- package/lib/scatter/ui/useLassoGesture.d.ts.map +1 -1
- package/lib/scatter/ui/useLassoGesture.js +39 -83
- package/lib/scatter/ui/useLassoGesture.js.map +1 -1
- package/lib/scatter/ui/useScatterFrame.d.ts.map +1 -1
- package/lib/scatter/ui/useScatterFrame.js +2 -16
- package/lib/scatter/ui/useScatterFrame.js.map +1 -1
- package/lib/scatter/ui/useScatterInteraction.d.ts +1 -94
- package/lib/scatter/ui/useScatterInteraction.d.ts.map +1 -1
- package/lib/scatter/ui/useScatterInteraction.js +26 -4
- package/lib/scatter/ui/useScatterInteraction.js.map +1 -1
- package/lib/scatter/ui/useScatterLabels.d.ts +45 -0
- package/lib/scatter/ui/useScatterLabels.d.ts.map +1 -0
- package/lib/scatter/ui/useScatterLabels.js +32 -0
- package/lib/scatter/ui/useScatterLabels.js.map +1 -0
- package/lib/scatter3d/core/confidenceEllipsoid.d.ts +4 -5
- package/lib/scatter3d/core/confidenceEllipsoid.d.ts.map +1 -1
- package/lib/scatter3d/core/confidenceEllipsoid.js +33 -68
- package/lib/scatter3d/core/confidenceEllipsoid.js.map +1 -1
- package/lib/scatter3d/core/ellipsoidSilhouette.d.ts +4 -5
- package/lib/scatter3d/core/ellipsoidSilhouette.d.ts.map +1 -1
- package/lib/scatter3d/core/ellipsoidSilhouette.js +8 -14
- package/lib/scatter3d/core/ellipsoidSilhouette.js.map +1 -1
- package/lib/scatter3d/core/index.d.ts +4 -4
- package/lib/scatter3d/core/index.js +4 -4
- package/lib/scatter3d/ui/CloudFrameLayer.js +3 -1
- package/lib/scatter3d/ui/CloudFrameLayer.js.map +1 -1
- package/lib/scatter3d/ui/CloudShellLayer.d.ts +5 -6
- package/lib/scatter3d/ui/CloudShellLayer.d.ts.map +1 -1
- package/lib/scatter3d/ui/CloudShellLayer.js +5 -6
- package/lib/scatter3d/ui/CloudShellLayer.js.map +1 -1
- package/lib/scatter3d/ui/ScatterCloud.d.ts +6 -7
- package/lib/scatter3d/ui/ScatterCloud.d.ts.map +1 -1
- package/lib/scatter3d/ui/ScatterCloud.js +38 -76
- package/lib/scatter3d/ui/ScatterCloud.js.map +1 -1
- package/lib/scatter3d/ui/cloudGeometry.d.ts +16 -5
- package/lib/scatter3d/ui/cloudGeometry.d.ts.map +1 -1
- package/lib/scatter3d/ui/cloudGeometry.js +38 -20
- package/lib/scatter3d/ui/cloudGeometry.js.map +1 -1
- package/lib/scatter3d/ui/cloudShellStyles.d.ts +3 -5
- package/lib/scatter3d/ui/cloudShellStyles.d.ts.map +1 -1
- package/lib/scatter3d/ui/cloudShellStyles.js +9 -10
- package/lib/scatter3d/ui/cloudShellStyles.js.map +1 -1
- package/lib/scatter3d/ui/cloudZoom.d.ts.map +1 -1
- package/lib/scatter3d/ui/cloudZoom.js +2 -3
- package/lib/scatter3d/ui/cloudZoom.js.map +1 -1
- package/lib/scatter3d/ui/index.d.ts +1 -3
- package/lib/scatter3d/ui/index.d.ts.map +1 -1
- package/lib/scatter3d/ui/index.js +0 -1
- package/lib/scatter3d/ui/index.js.map +1 -1
- package/lib/scatter3d/ui/orbitDragTrack.d.ts +83 -0
- package/lib/scatter3d/ui/orbitDragTrack.d.ts.map +1 -0
- package/lib/scatter3d/ui/orbitDragTrack.js +91 -0
- package/lib/scatter3d/ui/orbitDragTrack.js.map +1 -0
- package/lib/scatter3d/ui/scatterCloudModel.d.ts +3 -3
- package/lib/scatter3d/ui/scatterCloudModel.d.ts.map +1 -1
- package/lib/scatter3d/ui/scatterCloudModel.js +5 -4
- package/lib/scatter3d/ui/scatterCloudModel.js.map +1 -1
- package/lib/scatter3d/ui/scatterCloudProps.d.ts +7 -106
- package/lib/scatter3d/ui/scatterCloudProps.d.ts.map +1 -1
- package/lib/scatter3d/ui/scatterCloudProps.js +3 -3
- package/lib/scatter3d/ui/useOrbitDrag.d.ts +5 -5
- package/lib/scatter3d/ui/useOrbitDrag.d.ts.map +1 -1
- package/lib/scatter3d/ui/useOrbitDrag.js +41 -98
- package/lib/scatter3d/ui/useOrbitDrag.js.map +1 -1
- package/lib/seo/core/documentMeta.d.ts.map +1 -1
- package/lib/seo/core/documentMeta.js +2 -5
- package/lib/seo/core/documentMeta.js.map +1 -1
- package/lib/seo/core/index.d.ts +5 -2
- package/lib/seo/core/index.d.ts.map +1 -1
- package/lib/seo/core/index.js +4 -2
- package/lib/seo/core/index.js.map +1 -1
- package/lib/seo/core/noscript.js +1 -1
- package/lib/seo/core/noscript.js.map +1 -1
- package/lib/seo/core/plainDescription.d.ts +37 -0
- package/lib/seo/core/plainDescription.d.ts.map +1 -0
- package/lib/seo/core/plainDescription.js +80 -0
- package/lib/seo/core/plainDescription.js.map +1 -0
- package/lib/seo/core/routes.d.ts +9 -17
- package/lib/seo/core/routes.d.ts.map +1 -1
- package/lib/seo/core/routes.js +30 -27
- package/lib/seo/core/routes.js.map +1 -1
- package/lib/seo/core/siteFiles.d.ts.map +1 -1
- package/lib/seo/core/siteFiles.js +1 -1
- package/lib/seo/core/siteFiles.js.map +1 -1
- package/lib/seo/core/startDocumentMeta.d.ts +3 -4
- package/lib/seo/core/startDocumentMeta.d.ts.map +1 -1
- package/lib/seo/core/startDocumentMeta.js +3 -4
- package/lib/seo/core/startDocumentMeta.js.map +1 -1
- package/lib/seo/core/trackingScript.d.ts +15 -0
- package/lib/seo/core/trackingScript.d.ts.map +1 -0
- package/lib/seo/core/trackingScript.js +24 -0
- package/lib/seo/core/trackingScript.js.map +1 -0
- package/lib/seo/vite/ogCard.d.ts.map +1 -1
- package/lib/seo/vite/ogCard.js +11 -8
- package/lib/seo/vite/ogCard.js.map +1 -1
- package/lib/seo/vite/prerender.d.ts.map +1 -1
- package/lib/seo/vite/prerender.js +2 -1
- package/lib/seo/vite/prerender.js.map +1 -1
- package/lib/share/core/config.d.ts +10 -1
- package/lib/share/core/config.d.ts.map +1 -1
- package/lib/share/core/config.js +19 -1
- package/lib/share/core/config.js.map +1 -1
- package/lib/share/core/index.d.ts +7 -3
- package/lib/share/core/index.d.ts.map +1 -1
- package/lib/share/core/index.js +4 -2
- package/lib/share/core/index.js.map +1 -1
- package/lib/share/core/params.d.ts +27 -0
- package/lib/share/core/params.d.ts.map +1 -1
- package/lib/share/core/params.js +37 -0
- package/lib/share/core/params.js.map +1 -1
- package/lib/share/core/preferences.d.ts +107 -0
- package/lib/share/core/preferences.d.ts.map +1 -0
- package/lib/share/core/preferences.js +130 -0
- package/lib/share/core/preferences.js.map +1 -0
- package/lib/share/core/presets.d.ts +50 -0
- package/lib/share/core/presets.d.ts.map +1 -0
- package/lib/share/core/presets.js +39 -0
- package/lib/share/core/presets.js.map +1 -0
- package/lib/share/core/vocabulary.d.ts +8 -0
- package/lib/share/core/vocabulary.d.ts.map +1 -1
- package/lib/share/ui/ShareButton.d.ts.map +1 -1
- package/lib/share/ui/ShareButton.js +3 -1
- package/lib/share/ui/ShareButton.js.map +1 -1
- package/lib/share/ui/ShareConfigOptions.d.ts +21 -0
- package/lib/share/ui/ShareConfigOptions.d.ts.map +1 -0
- package/lib/share/ui/ShareConfigOptions.js +22 -0
- package/lib/share/ui/ShareConfigOptions.js.map +1 -0
- package/lib/share/ui/ShareDialog.d.ts +15 -1
- package/lib/share/ui/ShareDialog.d.ts.map +1 -1
- package/lib/share/ui/ShareDialog.js +4 -1
- package/lib/share/ui/ShareDialog.js.map +1 -1
- package/lib/share/ui/ShareDialogContent.d.ts.map +1 -1
- package/lib/share/ui/ShareDialogContent.js +37 -18
- package/lib/share/ui/ShareDialogContent.js.map +1 -1
- package/lib/share/ui/SharePresetTabs.d.ts +20 -0
- package/lib/share/ui/SharePresetTabs.d.ts.map +1 -0
- package/lib/share/ui/SharePresetTabs.js +25 -0
- package/lib/share/ui/SharePresetTabs.js.map +1 -0
- package/lib/shared/ui/MenuButton.d.ts +1 -0
- package/lib/shared/ui/MenuButton.d.ts.map +1 -1
- package/lib/shared/ui/MenuButton.js.map +1 -1
- package/lib/shared/ui/joinClassNames.d.ts +12 -0
- package/lib/shared/ui/joinClassNames.d.ts.map +1 -0
- package/lib/shared/ui/joinClassNames.js +20 -0
- package/lib/shared/ui/joinClassNames.js.map +1 -0
- package/lib/slides/core/familyFrame.d.ts +19 -0
- package/lib/slides/core/familyFrame.d.ts.map +1 -0
- package/lib/slides/core/familyFrame.js +44 -0
- package/lib/slides/core/familyFrame.js.map +1 -0
- package/lib/slides/core/index.d.ts +1 -1
- package/lib/slides/core/index.d.ts.map +1 -1
- package/lib/slides/core/index.js +1 -1
- package/lib/slides/core/index.js.map +1 -1
- package/lib/slides/ui/BackToSlides.d.ts +5 -0
- package/lib/slides/ui/BackToSlides.d.ts.map +1 -1
- package/lib/slides/ui/BackToSlides.js +3 -2
- package/lib/slides/ui/BackToSlides.js.map +1 -1
- package/lib/slides/ui/EmbedSlide.d.ts.map +1 -1
- package/lib/slides/ui/EmbedSlide.js +1 -13
- package/lib/slides/ui/EmbedSlide.js.map +1 -1
- package/lib/slides/ui/SlideBody.d.ts +5 -3
- package/lib/slides/ui/SlideBody.d.ts.map +1 -1
- package/lib/slides/ui/SlideBody.js +14 -4
- package/lib/slides/ui/SlideBody.js.map +1 -1
- package/lib/slides/ui/Slideshow.d.ts +2 -6
- package/lib/slides/ui/Slideshow.d.ts.map +1 -1
- package/lib/slides/ui/Slideshow.js +7 -37
- package/lib/slides/ui/Slideshow.js.map +1 -1
- package/lib/slides/ui/SlideshowBar.d.ts +1 -1
- package/lib/slides/ui/SlideshowBar.d.ts.map +1 -1
- package/lib/slides/ui/SlideshowBar.js +3 -3
- package/lib/slides/ui/SlideshowBar.js.map +1 -1
- package/lib/slides/ui/TalkList.d.ts +5 -0
- package/lib/slides/ui/TalkList.d.ts.map +1 -1
- package/lib/slides/ui/TalkList.js +3 -2
- package/lib/slides/ui/TalkList.js.map +1 -1
- package/lib/slides/ui/index.d.ts +1 -0
- package/lib/slides/ui/index.d.ts.map +1 -1
- package/lib/slides/ui/slideSanitizeSchema.d.ts +11 -0
- package/lib/slides/ui/slideSanitizeSchema.d.ts.map +1 -0
- package/lib/slides/ui/slideSanitizeSchema.js +28 -0
- package/lib/slides/ui/slideSanitizeSchema.js.map +1 -0
- package/lib/slides/ui/useSlideshowFullscreen.d.ts +26 -0
- package/lib/slides/ui/useSlideshowFullscreen.d.ts.map +1 -0
- package/lib/slides/ui/useSlideshowFullscreen.js +39 -0
- package/lib/slides/ui/useSlideshowFullscreen.js.map +1 -0
- package/lib/spectra/core/axisEntries.d.ts +15 -0
- package/lib/spectra/core/axisEntries.d.ts.map +1 -1
- package/lib/spectra/core/axisEntries.js +15 -0
- package/lib/spectra/core/axisEntries.js.map +1 -1
- package/lib/spectra/core/chainProblems.d.ts.map +1 -1
- package/lib/spectra/core/chainProblems.js +57 -23
- package/lib/spectra/core/chainProblems.js.map +1 -1
- package/lib/spectra/core/filterCatalog.d.ts +4 -5
- package/lib/spectra/core/filterCatalog.d.ts.map +1 -1
- package/lib/spectra/core/filterCatalog.js +4 -5
- package/lib/spectra/core/filterCatalog.js.map +1 -1
- package/lib/spectra/core/filterChain.d.ts +43 -9
- package/lib/spectra/core/filterChain.d.ts.map +1 -1
- package/lib/spectra/core/filterChain.js +41 -27
- package/lib/spectra/core/filterChain.js.map +1 -1
- package/lib/spectra/core/filterEntries.d.ts +14 -1
- package/lib/spectra/core/filterEntries.d.ts.map +1 -1
- package/lib/spectra/core/filterEntries.js +20 -6
- package/lib/spectra/core/filterEntries.js.map +1 -1
- package/lib/spectra/core/index.d.ts +6 -3
- package/lib/spectra/core/index.d.ts.map +1 -1
- package/lib/spectra/core/index.js +2 -1
- package/lib/spectra/core/index.js.map +1 -1
- package/lib/spectra/core/matrixCatalog.d.ts +64 -0
- package/lib/spectra/core/matrixCatalog.d.ts.map +1 -0
- package/lib/spectra/core/matrixCatalog.js +76 -0
- package/lib/spectra/core/matrixCatalog.js.map +1 -0
- package/lib/spectra/core/principalComponents.d.ts.map +1 -1
- package/lib/spectra/core/principalComponents.js +6 -24
- package/lib/spectra/core/principalComponents.js.map +1 -1
- package/lib/spectra/core/problems.d.ts +25 -4
- package/lib/spectra/core/problems.d.ts.map +1 -1
- package/lib/spectra/core/problems.js +16 -5
- package/lib/spectra/core/problems.js.map +1 -1
- package/lib/spectra/core/settings.d.ts +12 -14
- package/lib/spectra/core/settings.d.ts.map +1 -1
- package/lib/spectra/core/settings.js +4 -4
- package/lib/spectra/core/settings.js.map +1 -1
- package/lib/spectra/core/settingsProblems.d.ts +1 -5
- package/lib/spectra/core/settingsProblems.d.ts.map +1 -1
- package/lib/spectra/core/settingsProblems.js +45 -50
- package/lib/spectra/core/settingsProblems.js.map +1 -1
- package/lib/spectra/core/stepProblems.d.ts +3 -3
- package/lib/spectra/core/stepProblems.d.ts.map +1 -1
- package/lib/spectra/core/stepProblems.js +29 -44
- package/lib/spectra/core/stepProblems.js.map +1 -1
- package/lib/spectra/core/zones.d.ts +35 -0
- package/lib/spectra/core/zones.d.ts.map +1 -0
- package/lib/spectra/core/zones.js +49 -0
- package/lib/spectra/core/zones.js.map +1 -0
- package/lib/spectra/ui/CalculationRows.d.ts +2 -1
- package/lib/spectra/ui/CalculationRows.d.ts.map +1 -1
- package/lib/spectra/ui/CalculationRows.js +29 -63
- package/lib/spectra/ui/CalculationRows.js.map +1 -1
- package/lib/spectra/ui/EditableRows.d.ts +47 -0
- package/lib/spectra/ui/EditableRows.d.ts.map +1 -0
- package/lib/spectra/ui/EditableRows.js +30 -0
- package/lib/spectra/ui/EditableRows.js.map +1 -0
- package/lib/spectra/ui/FilterChainEditor.d.ts +5 -0
- package/lib/spectra/ui/FilterChainEditor.d.ts.map +1 -1
- package/lib/spectra/ui/FilterChainEditor.js +19 -34
- package/lib/spectra/ui/FilterChainEditor.js.map +1 -1
- package/lib/spectra/ui/FilterChoiceControl.d.ts +2 -1
- package/lib/spectra/ui/FilterChoiceControl.d.ts.map +1 -1
- package/lib/spectra/ui/FilterChoiceControl.js +3 -30
- package/lib/spectra/ui/FilterChoiceControl.js.map +1 -1
- package/lib/spectra/ui/FilterFieldControl.d.ts +5 -2
- package/lib/spectra/ui/FilterFieldControl.d.ts.map +1 -1
- package/lib/spectra/ui/FilterFieldControl.js +5 -37
- package/lib/spectra/ui/FilterFieldControl.js.map +1 -1
- package/lib/spectra/ui/FilterRow.d.ts +2 -1
- package/lib/spectra/ui/FilterRow.d.ts.map +1 -1
- package/lib/spectra/ui/FilterRow.js +8 -10
- package/lib/spectra/ui/FilterRow.js.map +1 -1
- package/lib/spectra/ui/MatrixFilterRows.d.ts +2 -1
- package/lib/spectra/ui/MatrixFilterRows.d.ts.map +1 -1
- package/lib/spectra/ui/MatrixFilterRows.js +27 -36
- package/lib/spectra/ui/MatrixFilterRows.js.map +1 -1
- package/lib/spectra/ui/NormalizationEditor.d.ts +2 -1
- package/lib/spectra/ui/NormalizationEditor.d.ts.map +1 -1
- package/lib/spectra/ui/NormalizationEditor.js +9 -18
- package/lib/spectra/ui/NormalizationEditor.js.map +1 -1
- package/lib/spectra/ui/NumberField.d.ts +2 -1
- package/lib/spectra/ui/NumberField.d.ts.map +1 -1
- package/lib/spectra/ui/NumberField.js +2 -16
- package/lib/spectra/ui/NumberField.js.map +1 -1
- package/lib/spectra/ui/PostProcessingEditor.d.ts +2 -1
- package/lib/spectra/ui/PostProcessingEditor.d.ts.map +1 -1
- package/lib/spectra/ui/PostProcessingEditor.js +4 -4
- package/lib/spectra/ui/PostProcessingEditor.js.map +1 -1
- package/lib/spectra/ui/PrincipalComponentSelect.d.ts +5 -0
- package/lib/spectra/ui/PrincipalComponentSelect.d.ts.map +1 -1
- package/lib/spectra/ui/PrincipalComponentSelect.js +7 -30
- package/lib/spectra/ui/PrincipalComponentSelect.js.map +1 -1
- package/lib/spectra/ui/ProblemList.d.ts +7 -1
- package/lib/spectra/ui/ProblemList.d.ts.map +1 -1
- package/lib/spectra/ui/ProblemList.js +6 -4
- package/lib/spectra/ui/ProblemList.js.map +1 -1
- package/lib/spectra/ui/RangeRows.d.ts +2 -1
- package/lib/spectra/ui/RangeRows.d.ts.map +1 -1
- package/lib/spectra/ui/RangeRows.js +31 -60
- package/lib/spectra/ui/RangeRows.js.map +1 -1
- package/lib/spectra/ui/ScaleFields.d.ts +2 -1
- package/lib/spectra/ui/ScaleFields.d.ts.map +1 -1
- package/lib/spectra/ui/ScaleFields.js +6 -35
- package/lib/spectra/ui/ScaleFields.js.map +1 -1
- package/lib/spectra/ui/SettingsPart.d.ts +2 -1
- package/lib/spectra/ui/SettingsPart.d.ts.map +1 -1
- package/lib/spectra/ui/SettingsPart.js +6 -9
- package/lib/spectra/ui/SettingsPart.js.map +1 -1
- package/lib/spectra/ui/SpectraSettingsEditor.d.ts +5 -0
- package/lib/spectra/ui/SpectraSettingsEditor.d.ts.map +1 -1
- package/lib/spectra/ui/SpectraSettingsEditor.js +2 -2
- package/lib/spectra/ui/SpectraSettingsEditor.js.map +1 -1
- package/lib/spectra/ui/SpectrumSelection.d.ts +2 -1
- package/lib/spectra/ui/SpectrumSelection.d.ts.map +1 -1
- package/lib/spectra/ui/SpectrumSelection.js +2 -19
- package/lib/spectra/ui/SpectrumSelection.js.map +1 -1
- package/lib/spectra/ui/XWindowFields.d.ts +26 -0
- package/lib/spectra/ui/XWindowFields.d.ts.map +1 -0
- package/lib/spectra/ui/XWindowFields.js +24 -0
- package/lib/spectra/ui/XWindowFields.js.map +1 -0
- package/lib/spectra/ui/ZoneRows.d.ts +10 -15
- package/lib/spectra/ui/ZoneRows.d.ts.map +1 -1
- package/lib/spectra/ui/ZoneRows.js +23 -57
- package/lib/spectra/ui/ZoneRows.js.map +1 -1
- package/lib/spectra/ui/fieldStyles.d.ts +54 -0
- package/lib/spectra/ui/fieldStyles.d.ts.map +1 -0
- package/lib/spectra/ui/fieldStyles.js +61 -0
- package/lib/spectra/ui/fieldStyles.js.map +1 -0
- package/lib/spectra/ui/problemsAbout.d.ts +8 -8
- package/lib/spectra/ui/problemsAbout.d.ts.map +1 -1
- package/lib/spectra/ui/problemsAbout.js +8 -8
- package/lib/spectra/ui/problemsAbout.js.map +1 -1
- package/lib/spectra/ui/rowKeys.d.ts +24 -10
- package/lib/spectra/ui/rowKeys.d.ts.map +1 -1
- package/lib/spectra/ui/rowKeys.js +32 -16
- package/lib/spectra/ui/rowKeys.js.map +1 -1
- package/lib/spectra/ui/scaleOptions.d.ts +5 -0
- package/lib/spectra/ui/scaleOptions.d.ts.map +1 -1
- package/lib/spectra/ui/scaleOptions.js +11 -10
- package/lib/spectra/ui/scaleOptions.js.map +1 -1
- package/lib/spectra.d.ts +13 -0
- package/lib/spectra.d.ts.map +1 -0
- package/lib/spectra.js +13 -0
- package/lib/spectra.js.map +1 -0
- package/lib/state/core/index.d.ts +5 -0
- package/lib/state/core/index.d.ts.map +1 -0
- package/lib/state/core/index.js +3 -0
- package/lib/state/core/index.js.map +1 -0
- package/lib/state/core/mergeStored.d.ts.map +1 -0
- package/lib/state/core/mergeStored.js.map +1 -0
- package/lib/state/core/persistBucket.d.ts.map +1 -0
- package/lib/state/core/persistBucket.js +36 -0
- package/lib/state/core/persistBucket.js.map +1 -0
- package/lib/state/core/persistSignalBucket.d.ts +51 -0
- package/lib/state/core/persistSignalBucket.d.ts.map +1 -0
- package/lib/state/core/persistSignalBucket.js +79 -0
- package/lib/state/core/persistSignalBucket.js.map +1 -0
- package/lib/state/core/storageEntry.d.ts +36 -0
- package/lib/state/core/storageEntry.d.ts.map +1 -0
- package/lib/state/core/storageEntry.js +93 -0
- package/lib/state/core/storageEntry.js.map +1 -0
- package/lib/structure/core/atomLabels.d.ts +41 -0
- package/lib/structure/core/atomLabels.d.ts.map +1 -0
- package/lib/structure/core/atomLabels.js +43 -0
- package/lib/structure/core/atomLabels.js.map +1 -0
- package/lib/structure/core/editorValue.d.ts +5 -1
- package/lib/structure/core/editorValue.d.ts.map +1 -1
- package/lib/structure/core/editorValue.js.map +1 -1
- package/lib/structure/core/index.d.ts +7 -2
- package/lib/structure/core/index.d.ts.map +1 -1
- package/lib/structure/core/index.js +4 -2
- package/lib/structure/core/index.js.map +1 -1
- package/lib/structure/core/readStructure.d.ts +1 -0
- package/lib/structure/core/readStructure.d.ts.map +1 -1
- package/lib/structure/core/readStructure.js.map +1 -1
- package/lib/structure/core/structureError.d.ts +25 -0
- package/lib/structure/core/structureError.d.ts.map +1 -0
- package/lib/structure/core/structureError.js +47 -0
- package/lib/structure/core/structureError.js.map +1 -0
- package/lib/structure/core/structureSource.d.ts +20 -5
- package/lib/structure/core/structureSource.d.ts.map +1 -1
- package/lib/structure/core/structureSource.js.map +1 -1
- package/lib/structure/ui/EditorCanvas.d.ts +2 -1
- package/lib/structure/ui/EditorCanvas.d.ts.map +1 -1
- package/lib/structure/ui/Structure.d.ts +32 -0
- package/lib/structure/ui/Structure.d.ts.map +1 -1
- package/lib/structure/ui/Structure.js +2 -2
- package/lib/structure/ui/Structure.js.map +1 -1
- package/lib/structure/ui/StructureEditor.d.ts +9 -2
- package/lib/structure/ui/StructureEditor.d.ts.map +1 -1
- package/lib/structure/ui/StructureEditor.js +3 -2
- package/lib/structure/ui/StructureEditor.js.map +1 -1
- package/lib/structure/ui/StructurePlaceholder.d.ts +2 -1
- package/lib/structure/ui/StructurePlaceholder.d.ts.map +1 -1
- package/lib/structure/ui/StructurePlaceholder.js +2 -1
- package/lib/structure/ui/StructurePlaceholder.js.map +1 -1
- package/lib/structure/ui/StructureSvg.d.ts +27 -6
- package/lib/structure/ui/StructureSvg.d.ts.map +1 -1
- package/lib/structure/ui/StructureSvg.js +60 -19
- package/lib/structure/ui/StructureSvg.js.map +1 -1
- package/lib/structure/ui/useToolbarFloor.d.ts +1 -0
- package/lib/structure/ui/useToolbarFloor.d.ts.map +1 -1
- package/lib/structure/ui/useToolbarFloor.js.map +1 -1
- package/lib/tokens/core/checkTokens.d.ts +12 -4
- package/lib/tokens/core/checkTokens.d.ts.map +1 -1
- package/lib/tokens/core/checkTokens.js +29 -43
- package/lib/tokens/core/checkTokens.js.map +1 -1
- package/lib/tokens/core/colors.d.ts +2 -1
- package/lib/tokens/core/colors.d.ts.map +1 -1
- package/lib/tokens/core/cssReading.d.ts +62 -0
- package/lib/tokens/core/cssReading.d.ts.map +1 -0
- package/lib/tokens/core/cssReading.js +129 -0
- package/lib/tokens/core/cssReading.js.map +1 -0
- package/lib/tokens/core/familyTokens.d.ts +60 -0
- package/lib/tokens/core/familyTokens.d.ts.map +1 -0
- package/lib/tokens/core/familyTokens.js +63 -0
- package/lib/tokens/core/familyTokens.js.map +1 -0
- package/lib/tokens/core/index.d.ts +4 -1
- package/lib/tokens/core/index.d.ts.map +1 -1
- package/lib/tokens/core/index.js +1 -0
- package/lib/tokens/core/index.js.map +1 -1
- package/lib/tokens/core/rules.d.ts +3 -2
- package/lib/tokens/core/rules.d.ts.map +1 -1
- package/lib/tokens/core/types.d.ts +3 -0
- package/lib/tokens/core/types.d.ts.map +1 -0
- package/lib/tokens/core/types.js +2 -0
- package/lib/tokens/core/types.js.map +1 -0
- package/lib/ui.d.ts +4 -2
- package/lib/ui.d.ts.map +1 -1
- package/lib/ui.js +3 -2
- package/lib/ui.js.map +1 -1
- package/lib/worker/core/chunks.d.ts +58 -0
- package/lib/worker/core/chunks.d.ts.map +1 -0
- package/lib/worker/core/chunks.js +77 -0
- package/lib/worker/core/chunks.js.map +1 -0
- package/lib/worker/core/index.d.ts +6 -2
- package/lib/worker/core/index.d.ts.map +1 -1
- package/lib/worker/core/index.js +2 -0
- package/lib/worker/core/index.js.map +1 -1
- package/lib/worker/core/messages.d.ts +46 -4
- package/lib/worker/core/messages.d.ts.map +1 -1
- package/lib/worker/core/messages.js +42 -1
- package/lib/worker/core/messages.js.map +1 -1
- package/lib/worker/core/serveWorkerRequests.d.ts +45 -0
- package/lib/worker/core/serveWorkerRequests.d.ts.map +1 -0
- package/lib/worker/core/serveWorkerRequests.js +88 -0
- package/lib/worker/core/serveWorkerRequests.js.map +1 -0
- package/lib/worker/core/workerChannel.d.ts +12 -61
- package/lib/worker/core/workerChannel.d.ts.map +1 -1
- package/lib/worker/core/workerChannel.js +175 -88
- package/lib/worker/core/workerChannel.js.map +1 -1
- package/lib/worker/core/workerChannelParts.d.ts +105 -0
- package/lib/worker/core/workerChannelParts.d.ts.map +1 -0
- package/lib/worker/core/workerChannelParts.js +93 -0
- package/lib/worker/core/workerChannelParts.js.map +1 -0
- package/lib/worker/core/workerChannelTypes.d.ts +118 -0
- package/lib/worker/core/workerChannelTypes.d.ts.map +1 -0
- package/lib/worker/core/workerChannelTypes.js +2 -0
- package/lib/worker/core/workerChannelTypes.js.map +1 -0
- package/package.json +15 -6
- package/src/about/core/about.ts +32 -0
- package/src/about/core/index.ts +3 -1
- package/src/about/core/providers.ts +45 -0
- package/src/about/ui/AboutCitations.tsx +10 -36
- package/src/about/ui/AboutPage.tsx +37 -8
- package/src/about/ui/AboutProvidedBy.tsx +165 -0
- package/src/about/ui/index.ts +2 -0
- package/src/capsule/ui/CapsuleFilter.tsx +167 -42
- package/src/capsule/ui/index.ts +8 -1
- package/src/chart/core/chartAxisPair.ts +47 -0
- package/src/chart/core/chartAxisScale.ts +4 -8
- package/src/chart/core/chartBins.ts +2 -6
- package/src/chart/core/chartGroups.ts +24 -0
- package/src/chart/core/chartLabels.ts +4 -8
- package/src/chart/core/chartPalette.ts +7 -7
- package/src/chart/core/chartScale.ts +17 -0
- package/src/chart/core/matrix.ts +24 -0
- package/src/chart/ui/ChartAxis.tsx +5 -2
- package/src/chart/ui/ChartFrame.tsx +22 -31
- package/src/chart/ui/ChartSeriesMarks.tsx +6 -7
- package/src/chart/ui/ChartTrackingLayer.tsx +2 -3
- package/src/chart/ui/TrackedLineChart.tsx +17 -2
- package/src/chart/ui/TrackedStickChart.tsx +8 -3
- package/src/chart/ui/chartFrameGeometry.ts +53 -0
- package/src/chart/ui/index.ts +3 -4
- package/src/chart/ui/stickChartModel.ts +20 -23
- package/src/chart/ui/useWheelZoom.ts +29 -43
- package/src/chart/ui/wheelDwell.ts +123 -0
- package/src/chrome/ui/NavLink.tsx +19 -3
- package/src/chrome/ui/NavMenuButton.tsx +25 -4
- package/src/chrome/ui/SiteHeader.tsx +23 -0
- package/src/chrome/ui/navItem.ts +5 -3
- package/src/citation/core/index.ts +1 -0
- package/src/citation/core/openchemlibPaper.ts +33 -0
- package/src/citation/core/platformPaper.ts +2 -2
- package/src/clipboard/core/clipboardItem.ts +28 -0
- package/src/clipboard/core/index.ts +3 -0
- package/src/clipboard/core/writeBlobToClipboard.ts +43 -0
- package/src/clipboard/core/writeToClipboard.ts +39 -7
- package/src/clipboard/ui/CodeBlock.tsx +14 -10
- package/src/clipboard/ui/CopyButton.tsx +53 -13
- package/src/clipboard/ui/CopyableValue.tsx +138 -0
- package/src/clipboard/ui/copyFeedback.ts +68 -0
- package/src/clipboard/ui/index.ts +3 -1
- package/src/clipboard/ui/useCopyToClipboard.ts +54 -26
- package/src/color/core/hex.ts +19 -3
- package/src/color/core/hsv.ts +5 -9
- package/src/color/core/index.ts +2 -7
- package/src/color/core/interpolate.ts +3 -6
- package/src/color/core/scale.ts +5 -52
- package/src/color/core/scaleText.ts +5 -4
- package/src/color/ui/ColorScaleBar.tsx +7 -0
- package/src/color/ui/ColorScaleEditor.tsx +17 -15
- package/src/color/ui/ColorScaleEntry.tsx +67 -0
- package/src/color/ui/ColorScaleLegend.tsx +86 -31
- package/src/color/ui/ColorScaleSelect.tsx +19 -66
- package/src/confirm/ui/ConfirmButton.tsx +83 -0
- package/src/confirm/ui/index.ts +2 -0
- package/src/core.ts +5 -1
- package/src/credits/core/credits.ts +10 -3
- package/src/credits/ui/CreditsList.tsx +4 -4
- package/src/delimited/core/index.ts +6 -7
- package/src/delimited/ui/DelimitedTextDialog.tsx +8 -1
- package/src/delimited/ui/DelimitedTextPanel.tsx +15 -5
- package/src/deploy/core/checkDeploy.ts +84 -0
- package/src/deploy/core/composeDocument.ts +181 -0
- package/src/deploy/core/composeFile.ts +195 -0
- package/src/deploy/core/envExample.ts +46 -0
- package/src/deploy/core/index.ts +8 -0
- package/src/deploy/core/markers.ts +21 -0
- package/src/deploy/core/types.ts +87 -0
- package/src/disclosure/ui/CollapsibleSection.tsx +3 -5
- package/src/download/ui/FigureDownloadPanel.tsx +14 -3
- package/src/ecosystem/core/groups.ts +59 -0
- package/src/ecosystem/core/index.ts +12 -3
- package/src/ecosystem/core/lookup.ts +38 -0
- package/src/ecosystem/core/nameColors.ts +50 -0
- package/src/ecosystem/core/sites.ts +41 -72
- package/src/ecosystem/core/tokens.ts +0 -11
- package/src/ecosystem/core/types.ts +94 -0
- package/src/ecosystem/ui/EcosystemButton.tsx +9 -2
- package/src/ecosystem/ui/EcosystemLinks.tsx +67 -49
- package/src/ecosystem/ui/EcosystemMenu.tsx +30 -37
- package/src/ecosystem/ui/SiteGroupGrid.tsx +65 -0
- package/src/ecosystem/ui/SiteGroupSection.tsx +64 -0
- package/src/ecosystem/ui/SiteTheme.tsx +1 -0
- package/src/ecosystem/ui/SiteTile.tsx +29 -9
- package/src/ecosystem/ui/Wordmark.tsx +12 -12
- package/src/ecosystem/ui/ecosystemStyles.ts +11 -0
- package/src/ecosystem/ui/glyphs.tsx +29 -10
- package/src/ecosystem/ui/marks.tsx +15 -1
- package/src/error/core/index.ts +1 -0
- package/src/error/{ui → core}/toError.ts +13 -3
- package/src/error/ui/ErrorBoundary.tsx +2 -1
- package/src/error/ui/index.ts +4 -1
- package/src/format/core/clamp.ts +24 -0
- package/src/format/core/index.ts +8 -0
- package/src/format/core/numbers.ts +51 -13
- package/src/format/core/relativeTime.ts +80 -0
- package/src/format/core/roundTo.ts +27 -0
- package/src/format/core/superscript.ts +22 -0
- package/src/format/core/units.ts +53 -6
- package/src/help/ui/HelpBody.tsx +55 -19
- package/src/help/ui/HelpIcon.tsx +30 -8
- package/src/help/ui/HelpToolbarButton.tsx +2 -1
- package/src/help/ui/HelpTooltip.tsx +7 -0
- package/src/help/ui/helpName.ts +11 -0
- package/src/hooks/ui/activationKey.ts +58 -0
- package/src/hooks/ui/activeHeading.ts +30 -0
- package/src/hooks/ui/asyncState.ts +38 -0
- package/src/hooks/ui/documentListNavigation.ts +87 -0
- package/src/hooks/ui/elementTarget.ts +18 -0
- package/src/hooks/ui/index.ts +22 -0
- package/src/hooks/ui/keyTargets.ts +73 -0
- package/src/hooks/ui/listNavigation.ts +10 -16
- package/src/hooks/ui/pollingController.ts +139 -0
- package/src/hooks/ui/useActiveHeading.ts +73 -0
- package/src/hooks/ui/useAsync.ts +44 -0
- package/src/hooks/ui/useDocumentListNavigation.ts +70 -0
- package/src/hooks/ui/usePolling.ts +97 -0
- package/src/hooks/ui/useResizeObserver.ts +9 -5
- package/src/molecule3d/core/exportImage.ts +50 -0
- package/src/molecule3d/core/gestures.ts +35 -0
- package/src/molecule3d/core/index.ts +35 -0
- package/src/molecule3d/core/measurement.ts +43 -0
- package/src/molecule3d/core/settings.ts +214 -0
- package/src/molecule3d/ui/Molecule3DExport.tsx +65 -0
- package/src/molecule3d/ui/Molecule3DHelp.tsx +77 -0
- package/src/molecule3d/ui/Molecule3DOptions.tsx +168 -0
- package/src/molecule3d/ui/Molecule3DSurfaceColors.tsx +150 -0
- package/src/molecule3d/ui/Molecule3DToolbar.tsx +190 -0
- package/src/molecule3d/ui/MoleculeCanvas3D.tsx +235 -0
- package/src/molecule3d/ui/MoleculeViewer3D.tsx +84 -0
- package/src/molecule3d/ui/camera.ts +76 -0
- package/src/molecule3d/ui/drawScene.ts +43 -0
- package/src/molecule3d/ui/exportMoleculeImage.ts +49 -0
- package/src/molecule3d/ui/index.ts +11 -0
- package/src/molecule3d/ui/measurements.ts +178 -0
- package/src/molecule3d/ui/molecule3dIcons.tsx +108 -0
- package/src/molecule3d/ui/moleculeViewer3DProps.ts +98 -0
- package/src/molecule3d/ui/polarityColorTheme.ts +125 -0
- package/src/molecule3d/ui/renderMolecule.ts +179 -0
- package/src/molecule3d/ui/renderSurface.ts +88 -0
- package/src/molecule3d/ui/useControlledState.ts +31 -0
- package/src/molecule3d/ui/useImageExport.ts +50 -0
- package/src/molecule3d/ui/usePolarSurfaceArea.ts +47 -0
- package/src/molecule3d/ui/viewer.ts +240 -0
- package/src/molecule3d/ui/viewerTypes.ts +60 -0
- package/src/molecule3d.ts +11 -0
- package/src/orbital/core/atomicGrid.ts +3 -2
- package/src/orbital/core/atomicOrbitals.ts +2 -5
- package/src/orbital/core/constants.ts +3 -0
- package/src/orbital/core/electronConfiguration.ts +29 -40
- package/src/orbital/core/grid.ts +3 -0
- package/src/orbital/core/index.ts +5 -0
- package/src/orbital/core/isovalue.ts +3 -2
- package/src/orbital/core/occupancy.ts +2 -4
- package/src/orbital/core/palette.ts +10 -6
- package/src/orbital/core/radialDistribution.ts +97 -0
- package/src/orbital/core/realHarmonics.ts +3 -3
- package/src/orbital/ui/AtomicOrbitalCanvas.tsx +35 -112
- package/src/orbital/ui/AtomicOrbitalControls.tsx +81 -0
- package/src/orbital/ui/AtomicOrbitalViewer.tsx +22 -22
- package/src/orbital/ui/RadialPlot.tsx +183 -0
- package/src/orbital/ui/RadialPlotMarks.tsx +129 -0
- package/src/orbital/ui/camera.ts +1 -1
- package/src/orbital/ui/index.ts +3 -1
- package/src/orbital/ui/orbitalCanvasHelpers.ts +42 -0
- package/src/orbital/ui/orbitalPluginSpec.ts +47 -0
- package/src/orbital/ui/radialPlotGeometry.ts +131 -0
- package/src/orbital/ui/renderAxes.ts +14 -14
- package/src/orbital/ui/renderVolume.ts +13 -13
- package/src/orbital/ui/serial.ts +1 -1
- package/src/orbital/ui/viewer.ts +6 -36
- package/src/orbital.ts +5 -4
- package/src/overlay/core/index.ts +2 -1
- package/src/overlay/core/overlayCollapse.ts +32 -0
- package/src/overlay/core/placeOverlayCard.ts +3 -3
- package/src/overlay/ui/OverlayBar.tsx +6 -12
- package/src/overlay/ui/OverlayBarButton.tsx +2 -1
- package/src/overlay/ui/OverlayBarCard.tsx +1 -1
- package/src/overlay/ui/OverlayChip.tsx +3 -6
- package/src/overlay/ui/OverlayIconButton.tsx +6 -8
- package/src/overlay/ui/OverlayLayer.tsx +2 -3
- package/src/overlay/ui/OverlayLegend.tsx +2 -1
- package/src/overlay/ui/OverlayNumber.tsx +13 -9
- package/src/overlay/ui/OverlayPanel.tsx +8 -7
- package/src/overlay/ui/OverlayRow.tsx +6 -2
- package/src/overlay/ui/OverlayToggle.tsx +1 -0
- package/src/overlay/ui/OverlayValueButton.tsx +5 -10
- package/src/overlay/ui/overlayBarShape.ts +1 -60
- package/src/overlay/ui/overlayControlStyles.ts +13 -3
- package/src/overlay/ui/overlayPanelContext.ts +3 -0
- package/src/overlay/ui/overlayPanelStyles.ts +10 -4
- package/src/overlay/ui/overlayPillStyles.ts +1 -1
- package/src/overlay/ui/overlayRowStyles.ts +2 -2
- package/src/overlay/ui/overlaySurface.ts +2 -0
- package/src/overlay/ui/overlaySwitchStyles.ts +1 -1
- package/src/overlay/ui/overlayValueStyles.ts +68 -54
- package/src/overlay/ui/useOverlayInteraction.ts +46 -0
- package/src/pedagogy/core/bucketProgressStore.ts +83 -0
- package/src/pedagogy/core/glossary.ts +40 -16
- package/src/pedagogy/core/glossarySearch.ts +67 -0
- package/src/pedagogy/core/index.ts +16 -2
- package/src/pedagogy/core/inlineMarks.ts +117 -0
- package/src/pedagogy/core/progress.ts +48 -57
- package/src/pedagogy/core/types.ts +4 -0
- package/src/pedagogy/core/validation.ts +3 -0
- package/src/pedagogy/ui/ExerciseActions.tsx +1 -0
- package/src/pedagogy/ui/ExerciseProgressHeader.tsx +3 -1
- package/src/pedagogy/ui/ExerciseTags.tsx +18 -2
- package/src/pedagogy/ui/GlossaryDefinition.tsx +136 -0
- package/src/pedagogy/ui/GlossaryIndex.tsx +171 -0
- package/src/pedagogy/ui/GlossaryProvider.tsx +36 -8
- package/src/pedagogy/ui/GlossaryText.tsx +62 -113
- package/src/pedagogy/ui/HintLadder.tsx +11 -3
- package/src/pedagogy/ui/InlineText.tsx +39 -0
- package/src/pedagogy/ui/ReferenceGrid.tsx +4 -5
- package/src/pedagogy/ui/ReferenceSectionBlock.tsx +19 -17
- package/src/pedagogy/ui/SyntaxTooltip.tsx +32 -28
- package/src/pedagogy/ui/TestCaseList.tsx +5 -3
- package/src/pedagogy/ui/TutorialStepStrip.tsx +14 -10
- package/src/pedagogy/ui/exampleText.ts +18 -0
- package/src/pedagogy/ui/glossaryContext.ts +26 -6
- package/src/pedagogy/ui/index.ts +14 -1
- package/src/pedagogy/ui/inlineSegments.tsx +69 -0
- package/src/pedagogy/ui/pedagogyStyle.ts +53 -0
- package/src/periodic/core/categories.ts +1 -1
- package/src/periodic/core/elements.ts +2 -0
- package/src/periodic/core/layout.ts +16 -10
- package/src/periodic/ui/CategoryLegend.tsx +9 -3
- package/src/periodic/ui/ElementCell.tsx +9 -1
- package/src/periodic/ui/PeriodicTable.tsx +10 -3
- package/src/periodic/ui/PeriodicTableChrome.tsx +6 -5
- package/src/projection/core/explainedShares.ts +1 -1
- package/src/projection/core/fillCopy.ts +21 -0
- package/src/projection/core/index.ts +12 -10
- package/src/projection/core/loadingProfiles.ts +10 -4
- package/src/projection/core/mergeProjectionCopy.ts +39 -0
- package/src/projection/core/pcaColumns.ts +84 -0
- package/src/projection/core/pcaLike.ts +30 -4
- package/src/projection/core/pcaResult.ts +17 -45
- package/src/projection/core/projectionCopy.ts +50 -65
- package/src/projection/core/projectionOptions.ts +0 -131
- package/src/projection/core/projectionPanelWords.ts +152 -0
- package/src/projection/core/projectionResult.ts +1 -1
- package/src/projection/core/projectionStrings.ts +0 -52
- package/src/projection/core/resolveProjectionOptions.ts +132 -0
- package/src/projection/core/variableAxis.ts +5 -14
- package/src/projection/ui/ProjectionBar.tsx +3 -3
- package/src/projection/ui/ProjectionMapCaption.tsx +1 -1
- package/src/projection/ui/ProjectionMapControls.tsx +8 -32
- package/src/projection/ui/ProjectionMapLegend.tsx +1 -1
- package/src/projection/ui/ProjectionMapMore.tsx +23 -55
- package/src/projection/ui/ProjectionMapTab.tsx +2 -2
- package/src/projection/ui/ProjectionPairsControls.tsx +1 -1
- package/src/projection/ui/ProjectionPairsMore.tsx +5 -6
- package/src/projection/ui/ProjectionPairsTab.tsx +5 -4
- package/src/projection/ui/ProjectionPanel.tsx +3 -3
- package/src/projection/ui/ProjectionReadout.tsx +1 -1
- package/src/projection/ui/ProjectionSharesAxis.tsx +67 -0
- package/src/projection/ui/ProjectionSharesMarks.tsx +36 -78
- package/src/projection/ui/ProjectionSharesMore.tsx +3 -7
- package/src/projection/ui/ProjectionSharesTab.tsx +4 -2
- package/src/projection/ui/ProjectionSpaceControls.tsx +18 -34
- package/src/projection/ui/ProjectionSpaceMore.tsx +34 -57
- package/src/projection/ui/ProjectionSpaceTab.tsx +2 -2
- package/src/projection/ui/ProjectionSurface.tsx +1 -1
- package/src/projection/ui/ProjectionTabStrip.tsx +40 -7
- package/src/projection/ui/ProjectionVariablesControls.tsx +1 -1
- package/src/projection/ui/ProjectionVariablesMore.tsx +12 -30
- package/src/projection/ui/ProjectionVariablesTab.tsx +2 -4
- package/src/projection/ui/ProjectionViewer.tsx +6 -13
- package/src/projection/ui/projectionAxisChoices.ts +31 -0
- package/src/projection/ui/projectionBarReadings.ts +31 -10
- package/src/projection/ui/projectionBarSlots.tsx +2 -2
- package/src/projection/ui/projectionBarStyles.ts +2 -2
- package/src/projection/ui/projectionEllipse.ts +57 -17
- package/src/projection/ui/projectionFormat.ts +3 -1
- package/src/projection/ui/projectionMapChoices.ts +6 -4
- package/src/projection/ui/projectionMapChrome.ts +18 -23
- package/src/projection/ui/projectionMapModel.ts +2 -4
- package/src/projection/ui/projectionMapView.ts +1 -1
- package/src/projection/ui/projectionPairsCeiling.ts +1 -1
- package/src/projection/ui/projectionTabInfo.ts +7 -8
- package/src/projection/ui/projectionTabModels.ts +8 -3
- package/src/projection/ui/projectionVariablesModel.ts +6 -5
- package/src/projection/ui/projectionVariablesWords.ts +1 -1
- package/src/projection/ui/projectionViewChoices.ts +4 -9
- package/src/projection/ui/projectionViewerProps.ts +2 -1
- package/src/projection/ui/projectionWordChoices.ts +66 -0
- package/src/projection/ui/useProjectionState.ts +2 -2
- package/src/router/core/address.ts +24 -8
- package/src/router/core/basePath.ts +4 -2
- package/src/router/core/history.ts +160 -0
- package/src/router/core/index.ts +18 -6
- package/src/router/core/query.ts +77 -20
- package/src/router/core/siteAddresses.ts +98 -0
- package/src/router/core/tabRouter.ts +23 -6
- package/src/router/ui/index.ts +1 -0
- package/src/router/ui/useTabRoute.ts +35 -0
- package/src/scatter/core/confidenceEllipse.ts +80 -109
- package/src/scatter/core/ellipseAxes.ts +85 -0
- package/src/scatter/core/ellipseProjection.ts +1 -1
- package/src/scatter/core/index.ts +12 -2
- package/src/scatter/core/lassoPath.ts +3 -2
- package/src/scatter/core/scatterGroupMoments.ts +127 -0
- package/src/scatter/core/scatterGroupSpread.ts +131 -0
- package/src/scatter/core/screenPoints.ts +38 -1
- package/src/scatter/ui/ScatterEllipseLayer.tsx +24 -68
- package/src/scatter/ui/ScatterLabelLayer.tsx +8 -12
- package/src/scatter/ui/ScatterMarkLayer.tsx +7 -35
- package/src/scatter/ui/ScatterMatrix.tsx +9 -17
- package/src/scatter/ui/ScatterMatrixCell.tsx +1 -1
- package/src/scatter/ui/ScatterMatrixDiagonal.tsx +3 -2
- package/src/scatter/ui/ScatterOverlayLayers.tsx +40 -0
- package/src/scatter/ui/ScatterPlot.tsx +35 -126
- package/src/scatter/ui/ScatterPointLayer.tsx +28 -15
- package/src/scatter/ui/index.ts +11 -17
- package/src/scatter/ui/scatterFigureProps.ts +191 -0
- package/src/scatter/ui/scatterInteractionTypes.ts +127 -0
- package/src/scatter/ui/scatterLabels.ts +4 -15
- package/src/scatter/ui/scatterMarkGlyph.tsx +7 -8
- package/src/scatter/ui/scatterMatrixDots.tsx +20 -16
- package/src/scatter/ui/scatterMatrixLayout.ts +1 -1
- package/src/scatter/ui/scatterMatrixOutlines.tsx +1 -1
- package/src/scatter/ui/scatterMatrixProps.ts +8 -2
- package/src/scatter/ui/scatterOutlineShape.tsx +12 -13
- package/src/scatter/ui/scatterPlotModel.ts +59 -35
- package/src/scatter/ui/scatterPlotProps.ts +13 -177
- package/src/scatter/ui/useCapturedPointer.ts +157 -0
- package/src/scatter/ui/useLassoGesture.ts +58 -118
- package/src/scatter/ui/useScatterFrame.ts +5 -24
- package/src/scatter/ui/useScatterInteraction.ts +35 -101
- package/src/scatter/ui/useScatterLabels.ts +88 -0
- package/src/scatter3d/core/confidenceEllipsoid.ts +35 -73
- package/src/scatter3d/core/ellipsoidSilhouette.ts +9 -15
- package/src/scatter3d/core/index.ts +4 -4
- package/src/scatter3d/ui/CloudFrameLayer.tsx +6 -1
- package/src/scatter3d/ui/CloudShellLayer.tsx +5 -6
- package/src/scatter3d/ui/ScatterCloud.tsx +52 -117
- package/src/scatter3d/ui/cloudGeometry.ts +44 -21
- package/src/scatter3d/ui/cloudShellStyles.ts +9 -10
- package/src/scatter3d/ui/cloudZoom.ts +3 -2
- package/src/scatter3d/ui/index.ts +1 -3
- package/src/scatter3d/ui/orbitDragTrack.ts +133 -0
- package/src/scatter3d/ui/scatterCloudModel.ts +6 -5
- package/src/scatter3d/ui/scatterCloudProps.ts +10 -110
- package/src/scatter3d/ui/useOrbitDrag.ts +63 -125
- package/src/seo/core/documentMeta.ts +3 -6
- package/src/seo/core/index.ts +5 -12
- package/src/seo/core/noscript.ts +4 -2
- package/src/seo/core/plainDescription.ts +107 -0
- package/src/seo/core/routes.ts +34 -29
- package/src/seo/core/siteFiles.ts +1 -1
- package/src/seo/core/startDocumentMeta.ts +3 -4
- package/src/seo/core/trackingScript.ts +25 -0
- package/src/seo/vite/ogCard.ts +11 -9
- package/src/seo/vite/prerender.ts +2 -1
- package/src/share/core/config.ts +24 -1
- package/src/share/core/index.ts +17 -0
- package/src/share/core/params.ts +54 -0
- package/src/share/core/preferences.ts +211 -0
- package/src/share/core/presets.ts +89 -0
- package/src/share/core/vocabulary.ts +8 -0
- package/src/share/ui/ShareButton.tsx +8 -2
- package/src/share/ui/ShareConfigOptions.tsx +68 -0
- package/src/share/ui/ShareDialog.tsx +19 -1
- package/src/share/ui/ShareDialogContent.tsx +64 -39
- package/src/share/ui/SharePresetTabs.tsx +70 -0
- package/src/shared/ui/MenuButton.tsx +1 -0
- package/src/shared/ui/joinClassNames.ts +20 -0
- package/src/slides/core/familyFrame.ts +44 -0
- package/src/slides/core/index.ts +1 -6
- package/src/slides/ui/BackToSlides.tsx +8 -2
- package/src/slides/ui/EmbedSlide.tsx +1 -13
- package/src/slides/ui/SlideBody.tsx +21 -4
- package/src/slides/ui/Slideshow.tsx +13 -50
- package/src/slides/ui/SlideshowBar.tsx +4 -4
- package/src/slides/ui/TalkList.tsx +8 -1
- package/src/slides/ui/index.ts +1 -0
- package/src/slides/ui/slideSanitizeSchema.ts +29 -0
- package/src/slides/ui/useSlideshowFullscreen.ts +59 -0
- package/src/spectra/core/axisEntries.ts +17 -0
- package/src/spectra/core/chainProblems.ts +89 -50
- package/src/spectra/core/filterCatalog.ts +4 -5
- package/src/spectra/core/filterChain.ts +88 -23
- package/src/spectra/core/filterEntries.ts +22 -7
- package/src/spectra/core/index.ts +9 -8
- package/src/spectra/core/matrixCatalog.ts +111 -0
- package/src/spectra/core/principalComponents.ts +7 -21
- package/src/spectra/core/problems.ts +43 -6
- package/src/spectra/core/settings.ts +19 -16
- package/src/spectra/core/settingsProblems.ts +64 -55
- package/src/spectra/core/stepProblems.ts +34 -50
- package/src/spectra/core/zones.ts +64 -0
- package/src/spectra/ui/CalculationRows.tsx +45 -99
- package/src/spectra/ui/EditableRows.tsx +118 -0
- package/src/spectra/ui/FilterChainEditor.tsx +26 -55
- package/src/spectra/ui/FilterChoiceControl.tsx +12 -36
- package/src/spectra/ui/FilterFieldControl.tsx +6 -39
- package/src/spectra/ui/FilterRow.tsx +10 -21
- package/src/spectra/ui/MatrixFilterRows.tsx +40 -50
- package/src/spectra/ui/NormalizationEditor.tsx +13 -35
- package/src/spectra/ui/NumberField.tsx +5 -20
- package/src/spectra/ui/PostProcessingEditor.tsx +5 -5
- package/src/spectra/ui/PrincipalComponentSelect.tsx +18 -33
- package/src/spectra/ui/ProblemList.tsx +22 -8
- package/src/spectra/ui/RangeRows.tsx +46 -125
- package/src/spectra/ui/ScaleFields.tsx +16 -67
- package/src/spectra/ui/SettingsPart.tsx +8 -13
- package/src/spectra/ui/SpectraSettingsEditor.tsx +8 -2
- package/src/spectra/ui/SpectrumSelection.tsx +10 -25
- package/src/spectra/ui/XWindowFields.tsx +73 -0
- package/src/spectra/ui/ZoneRows.tsx +41 -106
- package/src/spectra/ui/fieldStyles.ts +72 -0
- package/src/spectra/ui/problemsAbout.ts +9 -11
- package/src/spectra/ui/rowKeys.ts +51 -20
- package/src/spectra/ui/scaleOptions.ts +16 -10
- package/src/spectra.ts +13 -0
- package/src/state/core/index.ts +11 -0
- package/src/state/{ui → core}/persistBucket.ts +13 -62
- package/src/state/core/persistSignalBucket.ts +118 -0
- package/src/state/core/storageEntry.ts +93 -0
- package/src/structure/core/atomLabels.ts +63 -0
- package/src/structure/core/editorValue.ts +5 -1
- package/src/structure/core/index.ts +11 -2
- package/src/structure/core/readStructure.ts +1 -0
- package/src/structure/core/structureError.ts +58 -0
- package/src/structure/core/structureSource.ts +20 -5
- package/src/structure/ui/EditorCanvas.tsx +1 -1
- package/src/structure/ui/Structure.tsx +41 -0
- package/src/structure/ui/StructureEditor.tsx +13 -4
- package/src/structure/ui/StructurePlaceholder.tsx +4 -2
- package/src/structure/ui/StructureSvg.tsx +118 -42
- package/src/structure/ui/useToolbarFloor.ts +1 -0
- package/src/tokens/core/checkTokens.ts +48 -51
- package/src/tokens/core/colors.ts +1 -1
- package/src/tokens/core/cssReading.ts +166 -0
- package/src/tokens/core/familyTokens.ts +69 -0
- package/src/tokens/core/index.ts +9 -5
- package/src/tokens/core/rules.ts +2 -2
- package/src/tokens/core/types.ts +7 -0
- package/src/ui.ts +8 -2
- package/src/worker/core/chunks.ts +126 -0
- package/src/worker/core/index.ts +20 -3
- package/src/worker/core/messages.ts +79 -4
- package/src/worker/core/serveWorkerRequests.ts +144 -0
- package/src/worker/core/workerChannel.ts +209 -177
- package/src/worker/core/workerChannelParts.ts +183 -0
- package/src/worker/core/workerChannelTypes.ts +129 -0
- package/styles/chrome.css +82 -0
- package/lib/delimited/core/rowsToDelimited.d.ts +0 -59
- package/lib/delimited/core/rowsToDelimited.d.ts.map +0 -1
- package/lib/delimited/core/rowsToDelimited.js +0 -87
- package/lib/delimited/core/rowsToDelimited.js.map +0 -1
- package/lib/ecosystem/core/links.d.ts +0 -11
- package/lib/ecosystem/core/links.d.ts.map +0 -1
- package/lib/ecosystem/core/links.js +0 -28
- package/lib/ecosystem/core/links.js.map +0 -1
- package/lib/error/ui/toError.d.ts +0 -11
- package/lib/error/ui/toError.d.ts.map +0 -1
- package/lib/error/ui/toError.js.map +0 -1
- package/lib/pedagogy/core/jsonStorage.d.ts +0 -21
- package/lib/pedagogy/core/jsonStorage.d.ts.map +0 -1
- package/lib/pedagogy/core/jsonStorage.js +0 -55
- package/lib/pedagogy/core/jsonStorage.js.map +0 -1
- package/lib/projection/ui/projectionCloudChoices.d.ts +0 -18
- package/lib/projection/ui/projectionCloudChoices.d.ts.map +0 -1
- package/lib/projection/ui/projectionCloudChoices.js +0 -19
- package/lib/projection/ui/projectionCloudChoices.js.map +0 -1
- package/lib/projection/ui/projectionEllipsoid.d.ts +0 -38
- package/lib/projection/ui/projectionEllipsoid.d.ts.map +0 -1
- package/lib/projection/ui/projectionEllipsoid.js +0 -71
- package/lib/projection/ui/projectionEllipsoid.js.map +0 -1
- package/lib/router/core/pageAddresses.d.ts +0 -50
- package/lib/router/core/pageAddresses.d.ts.map +0 -1
- package/lib/router/core/pageAddresses.js +0 -56
- package/lib/router/core/pageAddresses.js.map +0 -1
- package/lib/scatter/ui/scatterGroupSpread.d.ts.map +0 -1
- package/lib/scatter/ui/scatterGroupSpread.js +0 -147
- package/lib/scatter/ui/scatterGroupSpread.js.map +0 -1
- package/lib/scatter3d/ui/CloudPointLayer.d.ts +0 -62
- package/lib/scatter3d/ui/CloudPointLayer.d.ts.map +0 -1
- package/lib/scatter3d/ui/CloudPointLayer.js +0 -67
- package/lib/scatter3d/ui/CloudPointLayer.js.map +0 -1
- package/lib/spectra/ui/matrixSteps.d.ts +0 -61
- package/lib/spectra/ui/matrixSteps.d.ts.map +0 -1
- package/lib/spectra/ui/matrixSteps.js +0 -92
- package/lib/spectra/ui/matrixSteps.js.map +0 -1
- package/lib/state/ui/index.d.ts +0 -3
- package/lib/state/ui/index.d.ts.map +0 -1
- package/lib/state/ui/index.js +0 -2
- package/lib/state/ui/index.js.map +0 -1
- package/lib/state/ui/mergeStored.d.ts.map +0 -1
- package/lib/state/ui/mergeStored.js.map +0 -1
- package/lib/state/ui/persistBucket.d.ts.map +0 -1
- package/lib/state/ui/persistBucket.js +0 -90
- package/lib/state/ui/persistBucket.js.map +0 -1
- package/src/delimited/core/rowsToDelimited.ts +0 -135
- package/src/ecosystem/core/links.ts +0 -29
- package/src/pedagogy/core/jsonStorage.ts +0 -51
- package/src/projection/ui/projectionCloudChoices.ts +0 -23
- package/src/projection/ui/projectionEllipsoid.ts +0 -78
- package/src/router/core/pageAddresses.ts +0 -106
- package/src/scatter/ui/scatterGroupSpread.ts +0 -206
- package/src/scatter3d/ui/CloudPointLayer.tsx +0 -132
- package/src/spectra/ui/matrixSteps.ts +0 -128
- package/src/state/ui/index.ts +0 -6
- /package/lib/state/{ui → core}/mergeStored.d.ts +0 -0
- /package/lib/state/{ui → core}/mergeStored.js +0 -0
- /package/lib/state/{ui → core}/persistBucket.d.ts +0 -0
- /package/src/state/{ui → core}/mergeStored.ts +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* The toolbars floating over the molecule canvas: the view — reset, spin,
|
|
4
|
+
* surface, and the options, export and help popovers — in one vertical
|
|
5
|
+
* react-science `Toolbar`, and the measuring tools with their own clear button
|
|
6
|
+
* in a second one under it.
|
|
7
|
+
*/
|
|
8
|
+
import { Card } from '@blueprintjs/core';
|
|
9
|
+
import { Toolbar } from 'react-science/ui';
|
|
10
|
+
import { MEASUREMENT_ATOM_COUNTS, MEASUREMENT_KINDS, MEASUREMENT_LABELS, } from "../core/measurement.js";
|
|
11
|
+
import { Molecule3DHelp } from "./Molecule3DHelp.js";
|
|
12
|
+
import { ClearMeasurementsIcon, MeasureIcon, SurfaceIcon, } from "./molecule3dIcons.js";
|
|
13
|
+
/**
|
|
14
|
+
* The two toolbars; either is left out when none of its tools is on.
|
|
15
|
+
* @param props - See {@link Molecule3DToolbarProps}.
|
|
16
|
+
* @returns The toolbars, stacked.
|
|
17
|
+
*/
|
|
18
|
+
export function Molecule3DToolbar(props) {
|
|
19
|
+
const { tools, measureKind, onMeasureKindChange, measurementCount, onClearMeasurements, spinning, onSpinningChange, showSurface, onShowSurfaceChange, onResetView, options, exportPanel, } = props;
|
|
20
|
+
const hasView = tools.spin ||
|
|
21
|
+
tools.surface ||
|
|
22
|
+
tools.reset ||
|
|
23
|
+
tools.options ||
|
|
24
|
+
tools.export ||
|
|
25
|
+
tools.help;
|
|
26
|
+
return (_jsxs("div", { style: COLUMN_STYLE, children: [hasView && (_jsx(Card, { elevation: 1, style: CARD_STYLE, children: _jsxs(Toolbar, { vertical: true, "aria-label": "View", children: [tools.reset && (_jsx(Toolbar.Item, { icon: "zoom-to-fit", "aria-label": "Reset view", tooltip: "Reset view", tooltipProps: TOOLTIP_PROPS, onClick: onResetView })), tools.spin && (_jsx(Toolbar.Item, { icon: "refresh", active: spinning, "aria-label": "Spin", tooltip: "Spin", tooltipProps: TOOLTIP_PROPS, onClick: () => {
|
|
27
|
+
onSpinningChange(!spinning);
|
|
28
|
+
} })), tools.surface && (_jsx(Toolbar.Item, { icon: _jsx(SurfaceIcon, {}), active: showSurface, "aria-label": "Surface", tooltip: "Molecular surface", tooltipProps: TOOLTIP_PROPS, onClick: () => {
|
|
29
|
+
onShowSurfaceChange(!showSurface);
|
|
30
|
+
} })), tools.options && (_jsx(Toolbar.PopoverItem, { placement: "right-start", content: options, itemProps: {
|
|
31
|
+
icon: 'cog',
|
|
32
|
+
'aria-label': 'Display options',
|
|
33
|
+
tooltip: 'Display options',
|
|
34
|
+
tooltipProps: TOOLTIP_PROPS,
|
|
35
|
+
} })), tools.export && (_jsx(Toolbar.PopoverItem, { placement: "right-start", content: exportPanel, itemProps: {
|
|
36
|
+
icon: 'download',
|
|
37
|
+
'aria-label': 'Export image',
|
|
38
|
+
tooltip: 'Export image',
|
|
39
|
+
tooltipProps: TOOLTIP_PROPS,
|
|
40
|
+
} })), tools.help && (_jsx(Toolbar.PopoverItem, { placement: "right-start", content: _jsx(Molecule3DHelp, {}), itemProps: {
|
|
41
|
+
icon: 'help',
|
|
42
|
+
'aria-label': 'Mouse and keyboard',
|
|
43
|
+
tooltip: 'Mouse and keyboard',
|
|
44
|
+
tooltipProps: TOOLTIP_PROPS,
|
|
45
|
+
} }))] }) })), tools.measure && (_jsx(Card, { elevation: 1, style: CARD_STYLE, children: _jsxs(Toolbar, { vertical: true, "aria-label": "Measure", children: [MEASUREMENT_KINDS.map((kind) => (_jsx(Toolbar.Item, { icon: _jsx(MeasureIcon, { kind: kind }), active: measureKind === kind, "aria-label": MEASUREMENT_LABELS[kind], tooltip: `${MEASUREMENT_LABELS[kind]}: click ${MEASUREMENT_ATOM_COUNTS[kind]} atoms`, tooltipProps: TOOLTIP_PROPS, onClick: () => {
|
|
46
|
+
onMeasureKindChange(measureKind === kind ? null : kind);
|
|
47
|
+
} }, kind))), _jsx(Toolbar.Item, { icon: _jsx(ClearMeasurementsIcon, {}), disabled: measurementCount === 0, "aria-label": "Remove all measurements", tooltip: "Remove all measurements", tooltipProps: TOOLTIP_PROPS, onClick: onClearMeasurements })] }) }))] }));
|
|
48
|
+
}
|
|
49
|
+
const TOOLTIP_PROPS = { placement: 'right' };
|
|
50
|
+
const COLUMN_STYLE = {
|
|
51
|
+
display: 'flex',
|
|
52
|
+
flexDirection: 'column',
|
|
53
|
+
gap: 6,
|
|
54
|
+
pointerEvents: 'auto',
|
|
55
|
+
};
|
|
56
|
+
const CARD_STYLE = { padding: 0 };
|
|
57
|
+
//# sourceMappingURL=Molecule3DToolbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Molecule3DToolbar.js","sourceRoot":"","sources":["../../../src/molecule3d/ui/Molecule3DToolbar.tsx"],"names":[],"mappings":";AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAG3C,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAsB,CAAC;AACtD,OAAO,EACL,qBAAqB,EACrB,WAAW,EACX,WAAW,GACZ,MAAM,sBAAuB,CAAC;AAoB/B;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAA6B;IAC7D,MAAM,EACJ,KAAK,EACL,WAAW,EACX,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,QAAQ,EACR,gBAAgB,EAChB,WAAW,EACX,mBAAmB,EACnB,WAAW,EACX,OAAO,EACP,WAAW,GACZ,GAAG,KAAK,CAAC;IACV,MAAM,OAAO,GACX,KAAK,CAAC,IAAI;QACV,KAAK,CAAC,OAAO;QACb,KAAK,CAAC,KAAK;QACX,KAAK,CAAC,OAAO;QACb,KAAK,CAAC,MAAM;QACZ,KAAK,CAAC,IAAI,CAAC;IAEb,OAAO,CACL,eAAK,KAAK,EAAE,YAAY,aACrB,OAAO,IAAI,CACV,KAAC,IAAI,IAAC,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,UAAU,YACnC,MAAC,OAAO,IAAC,QAAQ,sBAAY,MAAM,aAChC,KAAK,CAAC,KAAK,IAAI,CACd,KAAC,OAAO,CAAC,IAAI,IACX,IAAI,EAAC,aAAa,gBACP,YAAY,EACvB,OAAO,EAAC,YAAY,EACpB,YAAY,EAAE,aAAa,EAC3B,OAAO,EAAE,WAAW,GACpB,CACH,EACA,KAAK,CAAC,IAAI,IAAI,CACb,KAAC,OAAO,CAAC,IAAI,IACX,IAAI,EAAC,SAAS,EACd,MAAM,EAAE,QAAQ,gBACL,MAAM,EACjB,OAAO,EAAC,MAAM,EACd,YAAY,EAAE,aAAa,EAC3B,OAAO,EAAE,GAAG,EAAE;gCACZ,gBAAgB,CAAC,CAAC,QAAQ,CAAC,CAAC;4BAC9B,CAAC,GACD,CACH,EACA,KAAK,CAAC,OAAO,IAAI,CAChB,KAAC,OAAO,CAAC,IAAI,IACX,IAAI,EAAE,KAAC,WAAW,KAAG,EACrB,MAAM,EAAE,WAAW,gBACR,SAAS,EACpB,OAAO,EAAC,mBAAmB,EAC3B,YAAY,EAAE,aAAa,EAC3B,OAAO,EAAE,GAAG,EAAE;gCACZ,mBAAmB,CAAC,CAAC,WAAW,CAAC,CAAC;4BACpC,CAAC,GACD,CACH,EACA,KAAK,CAAC,OAAO,IAAI,CAChB,KAAC,OAAO,CAAC,WAAW,IAClB,SAAS,EAAC,aAAa,EACvB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE;gCACT,IAAI,EAAE,KAAK;gCACX,YAAY,EAAE,iBAAiB;gCAC/B,OAAO,EAAE,iBAAiB;gCAC1B,YAAY,EAAE,aAAa;6BAC5B,GACD,CACH,EACA,KAAK,CAAC,MAAM,IAAI,CACf,KAAC,OAAO,CAAC,WAAW,IAClB,SAAS,EAAC,aAAa,EACvB,OAAO,EAAE,WAAW,EACpB,SAAS,EAAE;gCACT,IAAI,EAAE,UAAU;gCAChB,YAAY,EAAE,cAAc;gCAC5B,OAAO,EAAE,cAAc;gCACvB,YAAY,EAAE,aAAa;6BAC5B,GACD,CACH,EACA,KAAK,CAAC,IAAI,IAAI,CACb,KAAC,OAAO,CAAC,WAAW,IAClB,SAAS,EAAC,aAAa,EACvB,OAAO,EAAE,KAAC,cAAc,KAAG,EAC3B,SAAS,EAAE;gCACT,IAAI,EAAE,MAAM;gCACZ,YAAY,EAAE,oBAAoB;gCAClC,OAAO,EAAE,oBAAoB;gCAC7B,YAAY,EAAE,aAAa;6BAC5B,GACD,CACH,IACO,GACL,CACR,EACA,KAAK,CAAC,OAAO,IAAI,CAChB,KAAC,IAAI,IAAC,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,UAAU,YACnC,MAAC,OAAO,IAAC,QAAQ,sBAAY,SAAS,aACnC,iBAAiB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAC/B,KAAC,OAAO,CAAC,IAAI,IAEX,IAAI,EAAE,KAAC,WAAW,IAAC,IAAI,EAAE,IAAI,GAAI,EACjC,MAAM,EAAE,WAAW,KAAK,IAAI,gBAChB,kBAAkB,CAAC,IAAI,CAAC,EACpC,OAAO,EAAE,GAAG,kBAAkB,CAAC,IAAI,CAAC,WAAW,uBAAuB,CAAC,IAAI,CAAC,QAAQ,EACpF,YAAY,EAAE,aAAa,EAC3B,OAAO,EAAE,GAAG,EAAE;gCACZ,mBAAmB,CAAC,WAAW,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;4BAC1D,CAAC,IARI,IAAI,CAST,CACH,CAAC,EACF,KAAC,OAAO,CAAC,IAAI,IACX,IAAI,EAAE,KAAC,qBAAqB,KAAG,EAC/B,QAAQ,EAAE,gBAAgB,KAAK,CAAC,gBACrB,yBAAyB,EACpC,OAAO,EAAC,yBAAyB,EACjC,YAAY,EAAE,aAAa,EAC3B,OAAO,EAAE,mBAAmB,GAC5B,IACM,GACL,CACR,IACG,CACP,CAAC;AACJ,CAAC;AAED,MAAM,aAAa,GAAG,EAAE,SAAS,EAAE,OAAO,EAAW,CAAC;AAEtD,MAAM,YAAY,GAAkB;IAClC,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,QAAQ;IACvB,GAAG,EAAE,CAAC;IACN,aAAa,EAAE,MAAM;CACtB,CAAC;AAEF,MAAM,UAAU,GAAkB,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The molstar canvas of `MoleculeViewer3D`, with its toolbars over it.
|
|
3
|
+
*
|
|
4
|
+
* Reached through `React.lazy`, so a page that never shows a molecule never
|
|
5
|
+
* downloads molstar.
|
|
6
|
+
*/
|
|
7
|
+
import type { ReactElement } from 'react';
|
|
8
|
+
import type { MoleculeViewer3DProps } from './moleculeViewer3DProps.ts';
|
|
9
|
+
/** Props of {@link MoleculeCanvas3D}. */
|
|
10
|
+
export interface MoleculeCanvas3DProps extends Omit<MoleculeViewer3DProps, 'fallback' | 'renderUnsupported'> {
|
|
11
|
+
/** Called with a drawing failure, and with `null` once a draw succeeds. */
|
|
12
|
+
onFailureChange: (message: string | null) => void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Mount one molstar canvas and keep it showing what the props describe.
|
|
16
|
+
* @param props - See {@link MoleculeCanvas3DProps}.
|
|
17
|
+
* @returns The canvas with its toolbars.
|
|
18
|
+
*/
|
|
19
|
+
export declare function MoleculeCanvas3D(props: MoleculeCanvas3DProps): ReactElement;
|
|
20
|
+
//# sourceMappingURL=MoleculeCanvas3D.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MoleculeCanvas3D.d.ts","sourceRoot":"","sources":["../../../src/molecule3d/ui/MoleculeCanvas3D.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAC;AAezD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAOxE,yCAAyC;AACzC,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CACjD,qBAAqB,EACrB,UAAU,GAAG,mBAAmB,CACjC;IACC,2EAA2E;IAC3E,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CACnD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,YAAY,CAuK3E"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
3
|
+
import { normalizeMolecule3DSettings, resolveMolecule3DTools, } from "../core/settings.js";
|
|
4
|
+
import { Molecule3DExport } from "./Molecule3DExport.js";
|
|
5
|
+
import { Molecule3DOptions } from "./Molecule3DOptions.js";
|
|
6
|
+
import { Molecule3DToolbar } from "./Molecule3DToolbar.js";
|
|
7
|
+
import { DEFAULT_SPIN_SPEED } from "./camera.js";
|
|
8
|
+
import { drawScene } from "./drawScene.js";
|
|
9
|
+
import { useControlledState } from "./useControlledState.js";
|
|
10
|
+
import { useImageExport } from "./useImageExport.js";
|
|
11
|
+
import { usePolarSurfaceArea } from "./usePolarSurfaceArea.js";
|
|
12
|
+
import { createMolecule3DViewer } from "./viewer.js";
|
|
13
|
+
/**
|
|
14
|
+
* Mount one molstar canvas and keep it showing what the props describe.
|
|
15
|
+
* @param props - See {@link MoleculeCanvas3DProps}.
|
|
16
|
+
* @returns The canvas with its toolbars.
|
|
17
|
+
*/
|
|
18
|
+
export function MoleculeCanvas3D(props) {
|
|
19
|
+
const { molfile, tools: toolsProp, settings: settingsProp, defaultSettings, onSettingsChange, spinning: spinningProp, defaultSpinning = false, onSpinningChange, spinSpeed = DEFAULT_SPIN_SPEED, measurements: measurementsProp, onMeasurementsChange, fileName = 'molecule', background, minHeight = 320, onFailureChange, } = props;
|
|
20
|
+
const tools = resolveMolecule3DTools(toolsProp);
|
|
21
|
+
const [settings, setSettings] = useControlledState(settingsProp, () => normalizeMolecule3DSettings(defaultSettings), onSettingsChange);
|
|
22
|
+
const [spinning, setSpinning] = useControlledState(spinningProp, defaultSpinning, onSpinningChange);
|
|
23
|
+
const [measurements, setMeasurements] = useControlledState(measurementsProp, NO_MEASUREMENTS, onMeasurementsChange);
|
|
24
|
+
const [measureKind, setMeasureKind] = useState(null);
|
|
25
|
+
const polarSurfaceArea = usePolarSurfaceArea(molfile, settings.surfaceColoring === 'polarity');
|
|
26
|
+
// A callback ref: the element arriving is what creates the viewer, and every
|
|
27
|
+
// effect keyed on it runs again, in order, after the viewer exists.
|
|
28
|
+
const [container, setContainer] = useState(null);
|
|
29
|
+
const viewerRef = useRef(null);
|
|
30
|
+
const framedRef = useRef(null);
|
|
31
|
+
// The viewer is created once, so what its callbacks read is kept fresh here.
|
|
32
|
+
const latest = useRef({
|
|
33
|
+
measurements,
|
|
34
|
+
setMeasurements,
|
|
35
|
+
onFailureChange,
|
|
36
|
+
background,
|
|
37
|
+
});
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
latest.current = {
|
|
40
|
+
measurements,
|
|
41
|
+
setMeasurements,
|
|
42
|
+
onFailureChange,
|
|
43
|
+
background,
|
|
44
|
+
};
|
|
45
|
+
});
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
if (container === null)
|
|
48
|
+
return;
|
|
49
|
+
const viewer = createMolecule3DViewer(container, {
|
|
50
|
+
background: latest.current.background,
|
|
51
|
+
onMeasure: (measurement) => {
|
|
52
|
+
const current = latest.current;
|
|
53
|
+
current.setMeasurements([...current.measurements, measurement]);
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
viewerRef.current = viewer;
|
|
57
|
+
const observer = new ResizeObserver(() => {
|
|
58
|
+
viewer.handleResize();
|
|
59
|
+
});
|
|
60
|
+
observer.observe(container);
|
|
61
|
+
return () => {
|
|
62
|
+
observer.disconnect();
|
|
63
|
+
viewerRef.current = null;
|
|
64
|
+
viewer.dispose();
|
|
65
|
+
};
|
|
66
|
+
}, [container]);
|
|
67
|
+
// One animation frame of coalescing, so dragging a slider costs one rebuild.
|
|
68
|
+
useEffect(() => {
|
|
69
|
+
const viewer = viewerRef.current;
|
|
70
|
+
if (container === null || viewer === null)
|
|
71
|
+
return;
|
|
72
|
+
let cancelled = false;
|
|
73
|
+
const frame = requestAnimationFrame(() => {
|
|
74
|
+
// Framed on a new molecule or a new viewer, never on a restyle: a slider
|
|
75
|
+
// that snapped the camera back would undo the reader's orientation.
|
|
76
|
+
const framed = framedRef.current;
|
|
77
|
+
const frameCamera = molfile !== null &&
|
|
78
|
+
(framed?.molfile !== molfile || framed.viewer !== viewer);
|
|
79
|
+
framedRef.current = molfile === null ? null : { molfile, viewer };
|
|
80
|
+
void drawScene(viewer, molfile, settings, measurements, frameCamera)
|
|
81
|
+
.then(() => {
|
|
82
|
+
if (!cancelled)
|
|
83
|
+
latest.current.onFailureChange(null);
|
|
84
|
+
})
|
|
85
|
+
.catch((error) => {
|
|
86
|
+
if (cancelled)
|
|
87
|
+
return;
|
|
88
|
+
latest.current.onFailureChange(error instanceof Error ? error.message : String(error));
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
return () => {
|
|
92
|
+
cancelled = true;
|
|
93
|
+
cancelAnimationFrame(frame);
|
|
94
|
+
};
|
|
95
|
+
}, [container, molfile, settings, measurements]);
|
|
96
|
+
useEffect(() => {
|
|
97
|
+
void viewerRef.current?.setSpin(spinning, spinSpeed);
|
|
98
|
+
}, [container, spinning, spinSpeed]);
|
|
99
|
+
useEffect(() => {
|
|
100
|
+
void viewerRef.current?.setMeasureKind(measureKind);
|
|
101
|
+
}, [container, measureKind]);
|
|
102
|
+
const resetView = useCallback(() => {
|
|
103
|
+
void viewerRef.current?.resetCamera();
|
|
104
|
+
}, []);
|
|
105
|
+
const { canvasSize, exportImage } = useImageExport(container, viewerRef, fileName);
|
|
106
|
+
return (_jsxs("div", { style: { ...STAGE_STYLE, minHeight }, children: [_jsx("div", { ref: setContainer, style: CANVAS_STYLE, "data-testid": "molecule3d" }), molfile !== null && (_jsx("div", { style: OVERLAY_STYLE, children: _jsx(Molecule3DToolbar, { tools: tools, measureKind: measureKind, onMeasureKindChange: setMeasureKind, measurementCount: measurements.length, onClearMeasurements: () => {
|
|
107
|
+
setMeasurements(NO_MEASUREMENTS);
|
|
108
|
+
}, spinning: spinning, onSpinningChange: setSpinning, showSurface: settings.showSurface, onShowSurfaceChange: (showSurface) => {
|
|
109
|
+
setSettings({ ...settings, showSurface });
|
|
110
|
+
}, onResetView: resetView, options: _jsx(Molecule3DOptions, { settings: settings, onChange: setSettings, polarSurfaceArea: polarSurfaceArea }), exportPanel: _jsx(Molecule3DExport, { getSize: canvasSize, onExport: exportImage }) }) }))] }));
|
|
111
|
+
}
|
|
112
|
+
const NO_MEASUREMENTS = [];
|
|
113
|
+
const STAGE_STYLE = {
|
|
114
|
+
position: 'relative',
|
|
115
|
+
flex: '1 0 auto',
|
|
116
|
+
width: '100%',
|
|
117
|
+
borderRadius: 3,
|
|
118
|
+
overflow: 'hidden',
|
|
119
|
+
};
|
|
120
|
+
/** molstar inserts its canvas here, which therefore has a size of its own. */
|
|
121
|
+
const CANVAS_STYLE = { position: 'absolute', inset: 0 };
|
|
122
|
+
const OVERLAY_STYLE = {
|
|
123
|
+
position: 'absolute',
|
|
124
|
+
top: 8,
|
|
125
|
+
left: 8,
|
|
126
|
+
zIndex: 2,
|
|
127
|
+
display: 'flex',
|
|
128
|
+
alignItems: 'flex-start',
|
|
129
|
+
gap: 8,
|
|
130
|
+
pointerEvents: 'none',
|
|
131
|
+
};
|
|
132
|
+
//# sourceMappingURL=MoleculeCanvas3D.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MoleculeCanvas3D.js","sourceRoot":"","sources":["../../../src/molecule3d/ui/MoleculeCanvas3D.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A molecule in three dimensions, with a toolbar to measure it, turn it, wrap
|
|
3
|
+
* it in its surface and restyle it — and what to say when there cannot be one.
|
|
4
|
+
*
|
|
5
|
+
* The WebGL probe runs before molstar is touched, so a machine without WebGL
|
|
6
|
+
* gets an explanation instead of a blank rectangle, and the canvas sits behind
|
|
7
|
+
* `React.lazy`, so a page that never reaches it never downloads molstar.
|
|
8
|
+
*
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import { MoleculeViewer3D } from 'react-cheminfo/molecule3d';
|
|
11
|
+
*
|
|
12
|
+
* <MoleculeViewer3D
|
|
13
|
+
* molfile={{ format: 'mol', data: molfile }}
|
|
14
|
+
* tools={{ measure: false }}
|
|
15
|
+
* />;
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
import type { ReactElement } from 'react';
|
|
19
|
+
import type { MoleculeViewer3DProps } from './moleculeViewer3DProps.ts';
|
|
20
|
+
/**
|
|
21
|
+
* The 3D molecule viewer.
|
|
22
|
+
* @param props - See {@link MoleculeViewer3DProps}.
|
|
23
|
+
* @returns The viewer, or an explanation of why this machine cannot show one.
|
|
24
|
+
*/
|
|
25
|
+
export declare function MoleculeViewer3D(props: MoleculeViewer3DProps): ReactElement;
|
|
26
|
+
//# sourceMappingURL=MoleculeViewer3D.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MoleculeViewer3D.d.ts","sourceRoot":"","sources":["../../../src/molecule3d/ui/MoleculeViewer3D.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAC;AAOzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAOxE;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,YAAY,CA6B3E"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* A molecule in three dimensions, with a toolbar to measure it, turn it, wrap
|
|
4
|
+
* it in its surface and restyle it — and what to say when there cannot be one.
|
|
5
|
+
*
|
|
6
|
+
* The WebGL probe runs before molstar is touched, so a machine without WebGL
|
|
7
|
+
* gets an explanation instead of a blank rectangle, and the canvas sits behind
|
|
8
|
+
* `React.lazy`, so a page that never reaches it never downloads molstar.
|
|
9
|
+
*
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import { MoleculeViewer3D } from 'react-cheminfo/molecule3d';
|
|
12
|
+
*
|
|
13
|
+
* <MoleculeViewer3D
|
|
14
|
+
* molfile={{ format: 'mol', data: molfile }}
|
|
15
|
+
* tools={{ measure: false }}
|
|
16
|
+
* />;
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
import { Callout } from '@blueprintjs/core';
|
|
20
|
+
import { Suspense, lazy, useState } from 'react';
|
|
21
|
+
// Deep import on purpose: `capability.ts` imports nothing, while the canvas
|
|
22
|
+
// pulls molstar in — which is exactly what this probe exists to avoid.
|
|
23
|
+
import { probeViewerCapability } from "../../orbital/ui/capability.js";
|
|
24
|
+
const MoleculeCanvas3D = lazy(async () => {
|
|
25
|
+
const module = await import("./MoleculeCanvas3D.js");
|
|
26
|
+
return { default: module.MoleculeCanvas3D };
|
|
27
|
+
});
|
|
28
|
+
/**
|
|
29
|
+
* The 3D molecule viewer.
|
|
30
|
+
* @param props - See {@link MoleculeViewer3DProps}.
|
|
31
|
+
* @returns The viewer, or an explanation of why this machine cannot show one.
|
|
32
|
+
*/
|
|
33
|
+
export function MoleculeViewer3D(props) {
|
|
34
|
+
const { fallback = 'Loading the 3D viewer…', renderUnsupported, ...canvas } = props;
|
|
35
|
+
const [capability] = useState(probeViewerCapability);
|
|
36
|
+
const [failure, setFailure] = useState(null);
|
|
37
|
+
if (!capability.supported) {
|
|
38
|
+
return (_jsx(Callout, { intent: "warning", compact: true, children: renderUnsupported?.(capability) ?? capability.message }));
|
|
39
|
+
}
|
|
40
|
+
return (_jsxs("div", { style: ROOT_STYLE, children: [_jsx(Suspense, { fallback: _jsx("div", { style: NOTE_STYLE, children: fallback }), children: _jsx(MoleculeCanvas3D, { ...canvas, onFailureChange: setFailure }) }), failure !== null && (_jsx(Callout, { intent: "danger", compact: true, title: "The viewer could not draw this", children: failure }))] }));
|
|
41
|
+
}
|
|
42
|
+
const ROOT_STYLE = {
|
|
43
|
+
display: 'flex',
|
|
44
|
+
flexDirection: 'column',
|
|
45
|
+
gap: 6,
|
|
46
|
+
flex: '1 0 auto',
|
|
47
|
+
minWidth: 0,
|
|
48
|
+
};
|
|
49
|
+
const NOTE_STYLE = {
|
|
50
|
+
display: 'flex',
|
|
51
|
+
alignItems: 'center',
|
|
52
|
+
justifyContent: 'center',
|
|
53
|
+
minHeight: 320,
|
|
54
|
+
fontSize: 13,
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=MoleculeViewer3D.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MoleculeViewer3D.js","sourceRoot":"","sources":["../../../src/molecule3d/ui/MoleculeViewer3D.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjD,4EAA4E;AAC5E,uEAAuE;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAIvE,MAAM,gBAAgB,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE;IACvC,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,uBAAwB,CAAC,CAAC;IACtD,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,gBAAgB,EAAE,CAAC;AAC9C,CAAC,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAA4B;IAC3D,MAAM,EACJ,QAAQ,GAAG,wBAAwB,EACnC,iBAAiB,EACjB,GAAG,MAAM,EACV,GAAG,KAAK,CAAC;IACV,MAAM,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAC,qBAAqB,CAAC,CAAC;IACrD,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IAE5D,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,CAAC;QAC1B,OAAO,CACL,KAAC,OAAO,IAAC,MAAM,EAAC,SAAS,EAAC,OAAO,kBAC9B,iBAAiB,EAAE,CAAC,UAAU,CAAC,IAAI,UAAU,CAAC,OAAO,GAC9C,CACX,CAAC;IACJ,CAAC;IAED,OAAO,CACL,eAAK,KAAK,EAAE,UAAU,aACpB,KAAC,QAAQ,IAAC,QAAQ,EAAE,cAAK,KAAK,EAAE,UAAU,YAAG,QAAQ,GAAO,YAC1D,KAAC,gBAAgB,OAAK,MAAM,EAAE,eAAe,EAAE,UAAU,GAAI,GACpD,EACV,OAAO,KAAK,IAAI,IAAI,CACnB,KAAC,OAAO,IAAC,MAAM,EAAC,QAAQ,EAAC,OAAO,QAAC,KAAK,EAAC,gCAAgC,YACpE,OAAO,GACA,CACX,IACG,CACP,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,GAAkB;IAChC,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,QAAQ;IACvB,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,CAAC;CACZ,CAAC;AAEF,MAAM,UAAU,GAAkB;IAChC,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,QAAQ;IACpB,cAAc,EAAE,QAAQ;IACxB,SAAS,EAAE,GAAG;IACd,QAAQ,EAAE,EAAE;CACb,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The two camera moves the molecule viewer needs: frame whatever is on screen,
|
|
3
|
+
* and the slow spin that makes a still picture of a 3D molecule readable.
|
|
4
|
+
*/
|
|
5
|
+
import type { PluginContext } from 'molstar/lib/mol-plugin/context.js';
|
|
6
|
+
/** Transition length used when the caller does not pick one, milliseconds. */
|
|
7
|
+
export declare const DEFAULT_CAMERA_DURATION = 250;
|
|
8
|
+
/** Turn rate used when the caller does not pick one, in molstar's spin unit. */
|
|
9
|
+
export declare const DEFAULT_SPIN_SPEED: number;
|
|
10
|
+
/**
|
|
11
|
+
* Frame everything currently in the scene.
|
|
12
|
+
*
|
|
13
|
+
* The canvas refreshes its visible bounding sphere only when its render loop
|
|
14
|
+
* commits the scene, one frame after the state tree has resolved. Reading the
|
|
15
|
+
* sphere now would centre and clip on whatever was drawn before — atoms cut by
|
|
16
|
+
* the near plane — so the framing is computed when molstar resolves the reset,
|
|
17
|
+
* after that commit.
|
|
18
|
+
* @param plugin - The molstar context.
|
|
19
|
+
* @param durationMilliseconds - Transition length. Pass 0 for an instant jump.
|
|
20
|
+
*/
|
|
21
|
+
export declare function resetCamera(plugin: PluginContext, durationMilliseconds?: number): void;
|
|
22
|
+
/**
|
|
23
|
+
* Turn the automatic spin on or off.
|
|
24
|
+
* @param plugin - The molstar context.
|
|
25
|
+
* @param spinning - Whether the scene should keep turning.
|
|
26
|
+
* @param speed - Turn rate, in molstar's own spin unit.
|
|
27
|
+
*/
|
|
28
|
+
export declare function setSpin(plugin: PluginContext, spinning: boolean, speed?: number): void;
|
|
29
|
+
//# sourceMappingURL=camera.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"camera.d.ts","sourceRoot":"","sources":["../../../src/molecule3d/ui/camera.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAEvE,8EAA8E;AAC9E,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAE3C,gFAAgF;AAChF,eAAO,MAAM,kBAAkB,QAAQ,CAAC;AAkBxC;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,aAAa,EACrB,oBAAoB,SAA0B,GAC7C,IAAI,CAWN;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CACrB,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,OAAO,EACjB,KAAK,SAAqB,GACzB,IAAI,CAQN"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The two camera moves the molecule viewer needs: frame whatever is on screen,
|
|
3
|
+
* and the slow spin that makes a still picture of a 3D molecule readable.
|
|
4
|
+
*/
|
|
5
|
+
import { Vec3 } from 'molstar/lib/mol-math/linear-algebra.js';
|
|
6
|
+
/** Transition length used when the caller does not pick one, milliseconds. */
|
|
7
|
+
export const DEFAULT_CAMERA_DURATION = 250;
|
|
8
|
+
/** Turn rate used when the caller does not pick one, in molstar's spin unit. */
|
|
9
|
+
export const DEFAULT_SPIN_SPEED = 1 / 3;
|
|
10
|
+
/**
|
|
11
|
+
* Fraction of the bounding sphere kept as breathing room around the model.
|
|
12
|
+
*
|
|
13
|
+
* `camera.reset()` frames the scene with molstar's own margin, which suits a
|
|
14
|
+
* protein filling a wide viewport and leaves a small molecule a speck in the
|
|
15
|
+
* middle. Framing the visible bounding sphere directly is what makes a single
|
|
16
|
+
* ethanol legible.
|
|
17
|
+
*/
|
|
18
|
+
const FRAMING_MARGIN = 0.08;
|
|
19
|
+
/** Axis the automatic spin turns about: screen up. */
|
|
20
|
+
const SPIN_AXIS = Vec3.create(0, 1, 0);
|
|
21
|
+
/** Smallest radius framed, in ångström, so a single atom is not a close-up. */
|
|
22
|
+
const MIN_FRAMING_RADIUS = 0.5;
|
|
23
|
+
/**
|
|
24
|
+
* Frame everything currently in the scene.
|
|
25
|
+
*
|
|
26
|
+
* The canvas refreshes its visible bounding sphere only when its render loop
|
|
27
|
+
* commits the scene, one frame after the state tree has resolved. Reading the
|
|
28
|
+
* sphere now would centre and clip on whatever was drawn before — atoms cut by
|
|
29
|
+
* the near plane — so the framing is computed when molstar resolves the reset,
|
|
30
|
+
* after that commit.
|
|
31
|
+
* @param plugin - The molstar context.
|
|
32
|
+
* @param durationMilliseconds - Transition length. Pass 0 for an instant jump.
|
|
33
|
+
*/
|
|
34
|
+
export function resetCamera(plugin, durationMilliseconds = DEFAULT_CAMERA_DURATION) {
|
|
35
|
+
plugin.canvas3d?.requestCameraReset({
|
|
36
|
+
durationMs: durationMilliseconds,
|
|
37
|
+
snapshot: (scene, camera) => {
|
|
38
|
+
const { center, radius } = scene.boundingSphereVisible;
|
|
39
|
+
return camera.getFocus(center, Math.max(radius * (1 + FRAMING_MARGIN), MIN_FRAMING_RADIUS));
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Turn the automatic spin on or off.
|
|
45
|
+
* @param plugin - The molstar context.
|
|
46
|
+
* @param spinning - Whether the scene should keep turning.
|
|
47
|
+
* @param speed - Turn rate, in molstar's own spin unit.
|
|
48
|
+
*/
|
|
49
|
+
export function setSpin(plugin, spinning, speed = DEFAULT_SPIN_SPEED) {
|
|
50
|
+
plugin.canvas3d?.setProps({
|
|
51
|
+
trackball: {
|
|
52
|
+
animate: spinning
|
|
53
|
+
? { name: 'spin', params: { speed, axis: SPIN_AXIS } }
|
|
54
|
+
: { name: 'off', params: {} },
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=camera.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"camera.js","sourceRoot":"","sources":["../../../src/molecule3d/ui/camera.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,wCAAwC,CAAC;AAG9D,8EAA8E;AAC9E,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CAAC;AAE3C,gFAAgF;AAChF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,GAAG,CAAC,CAAC;AAExC;;;;;;;GAOG;AACH,MAAM,cAAc,GAAG,IAAI,CAAC;AAE5B,sDAAsD;AACtD,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAEvC,+EAA+E;AAC/E,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAE/B;;;;;;;;;;GAUG;AACH,MAAM,UAAU,WAAW,CACzB,MAAqB,EACrB,oBAAoB,GAAG,uBAAuB;IAE9C,MAAM,CAAC,QAAQ,EAAE,kBAAkB,CAAC;QAClC,UAAU,EAAE,oBAAoB;QAChC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YAC1B,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC,qBAAqB,CAAC;YACvD,OAAO,MAAM,CAAC,QAAQ,CACpB,MAAM,EACN,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,cAAc,CAAC,EAAE,kBAAkB,CAAC,CAC5D,CAAC;QACJ,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,OAAO,CACrB,MAAqB,EACrB,QAAiB,EACjB,KAAK,GAAG,kBAAkB;IAE1B,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC;QACxB,SAAS,EAAE;YACT,OAAO,EAAE,QAAQ;gBACf,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;gBACtD,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE;SAChC;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Measurement } from '../core/measurement.ts';
|
|
2
|
+
import type { Molecule3DFile, Molecule3DSettings } from '../core/settings.ts';
|
|
3
|
+
import type { Molecule3DViewer } from './viewer.ts';
|
|
4
|
+
/**
|
|
5
|
+
* Draw the scene. `showMolecule` empties it, so the surface and the
|
|
6
|
+
* measurements are added after the model, and the camera is framed last.
|
|
7
|
+
* @param viewer - The viewer holding the canvas.
|
|
8
|
+
* @param molfile - What to draw, or `null` to empty the scene.
|
|
9
|
+
* @param settings - How to draw it.
|
|
10
|
+
* @param measurements - What to draw over it.
|
|
11
|
+
* @param frameCamera - Whether to frame the camera once everything is there.
|
|
12
|
+
* @returns Nothing; resolves once the scene is complete.
|
|
13
|
+
*/
|
|
14
|
+
export declare function drawScene(viewer: Molecule3DViewer, molfile: Molecule3DFile | null, settings: Molecule3DSettings, measurements: readonly Measurement[], frameCamera: boolean): Promise<void>;
|
|
15
|
+
//# sourceMappingURL=drawScene.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawScene.d.ts","sourceRoot":"","sources":["../../../src/molecule3d/ui/drawScene.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAG9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD;;;;;;;;;GASG;AACH,wBAAsB,SAAS,CAC7B,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,cAAc,GAAG,IAAI,EAC9B,QAAQ,EAAE,kBAAkB,EAC5B,YAAY,EAAE,SAAS,WAAW,EAAE,EACpC,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC,IAAI,CAAC,CAoBf"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { normalizeMolecule3DSettings } from "../core/settings.js";
|
|
2
|
+
/**
|
|
3
|
+
* Draw the scene. `showMolecule` empties it, so the surface and the
|
|
4
|
+
* measurements are added after the model, and the camera is framed last.
|
|
5
|
+
* @param viewer - The viewer holding the canvas.
|
|
6
|
+
* @param molfile - What to draw, or `null` to empty the scene.
|
|
7
|
+
* @param settings - How to draw it.
|
|
8
|
+
* @param measurements - What to draw over it.
|
|
9
|
+
* @param frameCamera - Whether to frame the camera once everything is there.
|
|
10
|
+
* @returns Nothing; resolves once the scene is complete.
|
|
11
|
+
*/
|
|
12
|
+
export async function drawScene(viewer, molfile, settings, measurements, frameCamera) {
|
|
13
|
+
if (molfile === null) {
|
|
14
|
+
await viewer.hideMolecule();
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
const safe = normalizeMolecule3DSettings(settings);
|
|
18
|
+
await viewer.showMolecule(molfile, {
|
|
19
|
+
representation: safe.representation,
|
|
20
|
+
sizeFactor: safe.sizeFactor,
|
|
21
|
+
});
|
|
22
|
+
if (safe.showSurface) {
|
|
23
|
+
await viewer.showSurface({
|
|
24
|
+
alpha: safe.surfaceAlpha,
|
|
25
|
+
probeRadius: safe.probeRadius,
|
|
26
|
+
coloring: safe.surfaceColoring,
|
|
27
|
+
color: safe.surfaceColor,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
await viewer.showMeasurements(measurements);
|
|
31
|
+
if (frameCamera)
|
|
32
|
+
await viewer.resetCamera();
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=drawScene.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawScene.js","sourceRoot":"","sources":["../../../src/molecule3d/ui/drawScene.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAIlE;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,SAAS,CAC7B,MAAwB,EACxB,OAA8B,EAC9B,QAA4B,EAC5B,YAAoC,EACpC,WAAoB;IAEpB,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QACrB,MAAM,MAAM,CAAC,YAAY,EAAE,CAAC;QAC5B,OAAO;IACT,CAAC;IACD,MAAM,IAAI,GAAG,2BAA2B,CAAC,QAAQ,CAAC,CAAC;IACnD,MAAM,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE;QACjC,cAAc,EAAE,IAAI,CAAC,cAAc;QACnC,UAAU,EAAE,IAAI,CAAC,UAAU;KAC5B,CAAC,CAAC;IACH,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;QACrB,MAAM,MAAM,CAAC,WAAW,CAAC;YACvB,KAAK,EAAE,IAAI,CAAC,YAAY;YACxB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,QAAQ,EAAE,IAAI,CAAC,eAAe;YAC9B,KAAK,EAAE,IAAI,CAAC,YAAY;SACzB,CAAC,CAAC;IACL,CAAC;IACD,MAAM,MAAM,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;IAC5C,IAAI,WAAW;QAAE,MAAM,MAAM,CAAC,WAAW,EAAE,CAAC;AAC9C,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { FigureFormat } from '../../download/core/downloadFigure.ts';
|
|
2
|
+
import type { ImageSize } from '../core/exportImage.ts';
|
|
3
|
+
import type { Molecule3DViewer } from './viewer.ts';
|
|
4
|
+
/** What {@link exportMoleculeImage} writes. */
|
|
5
|
+
export interface MoleculeImageRequest {
|
|
6
|
+
format: FigureFormat;
|
|
7
|
+
/** Multiple of the canvas on screen the picture is rendered at. */
|
|
8
|
+
scale: number;
|
|
9
|
+
/** Size of the canvas on screen, CSS pixels. */
|
|
10
|
+
size: ImageSize;
|
|
11
|
+
/** File name without its extension. */
|
|
12
|
+
fileName: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Render the scene and hand it to the browser as a file.
|
|
16
|
+
* @param viewer - The viewer holding the scene.
|
|
17
|
+
* @param request - See {@link MoleculeImageRequest}.
|
|
18
|
+
* @returns Nothing; resolves once the download has been started.
|
|
19
|
+
*/
|
|
20
|
+
export declare function exportMoleculeImage(viewer: Molecule3DViewer, request: MoleculeImageRequest): Promise<void>;
|
|
21
|
+
//# sourceMappingURL=exportMoleculeImage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exportMoleculeImage.d.ts","sourceRoot":"","sources":["../../../src/molecule3d/ui/exportMoleculeImage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAK1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,+CAA+C;AAC/C,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,YAAY,CAAC;IACrB,mEAAmE;IACnE,KAAK,EAAE,MAAM,CAAC;IACd,gDAAgD;IAChD,IAAI,EAAE,SAAS,CAAC;IAChB,uCAAuC;IACvC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,IAAI,CAAC,CAiBf"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { downloadBlob } from "../../download/core/downloadBlob.js";
|
|
2
|
+
import { FIGURE_PNG_TYPE } from "../../download/core/figurePng.js";
|
|
3
|
+
import { figurePixels } from "../../download/core/figureScale.js";
|
|
4
|
+
import { FIGURE_SVG_TYPE } from "../../download/core/figureSvg.js";
|
|
5
|
+
import { sanitizeFileName } from "../../download/core/sanitizeFileName.js";
|
|
6
|
+
import { dataUriBytes, rasterSvgMarkup } from "../core/exportImage.js";
|
|
7
|
+
/**
|
|
8
|
+
* Render the scene and hand it to the browser as a file.
|
|
9
|
+
* @param viewer - The viewer holding the scene.
|
|
10
|
+
* @param request - See {@link MoleculeImageRequest}.
|
|
11
|
+
* @returns Nothing; resolves once the download has been started.
|
|
12
|
+
*/
|
|
13
|
+
export async function exportMoleculeImage(viewer, request) {
|
|
14
|
+
const { format, scale, size, fileName } = request;
|
|
15
|
+
const pixels = figurePixels(size, scale);
|
|
16
|
+
const dataUri = await viewer.captureImage(pixels);
|
|
17
|
+
if (dataUri === undefined)
|
|
18
|
+
return;
|
|
19
|
+
const base = sanitizeFileName(fileName, 'molecule');
|
|
20
|
+
if (format === 'png') {
|
|
21
|
+
downloadBlob(new Blob([dataUriBytes(dataUri)], { type: FIGURE_PNG_TYPE }), `${base}.png`);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
downloadBlob(new Blob([rasterSvgMarkup(dataUri, pixels)], { type: FIGURE_SVG_TYPE }), `${base}.svg`);
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=exportMoleculeImage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exportMoleculeImage.js","sourceRoot":"","sources":["../../../src/molecule3d/ui/exportMoleculeImage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAEnE,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAE3E,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAevE;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,MAAwB,EACxB,OAA6B;IAE7B,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC;IAClD,MAAM,MAAM,GAAG,YAAY,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACzC,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IAClD,IAAI,OAAO,KAAK,SAAS;QAAE,OAAO;IAClC,MAAM,IAAI,GAAG,gBAAgB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;IACpD,IAAI,MAAM,KAAK,KAAK,EAAE,CAAC;QACrB,YAAY,CACV,IAAI,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,EAC5D,GAAG,IAAI,MAAM,CACd,CAAC;QACF,OAAO;IACT,CAAC;IACD,YAAY,CACV,IAAI,IAAI,CAAC,CAAC,eAAe,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,EACvE,GAAG,IAAI,MAAM,CACd,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a site imports to show a molecule in 3D.
|
|
3
|
+
*
|
|
4
|
+
* **Nothing exported here may pull molstar in statically.** The canvas and the
|
|
5
|
+
* viewer class are deliberately absent: re-exporting either would defeat the
|
|
6
|
+
* `React.lazy` boundary inside `MoleculeViewer3D`. Type-only re-exports are
|
|
7
|
+
* erased and so are safe.
|
|
8
|
+
*/
|
|
9
|
+
export { MoleculeViewer3D } from './MoleculeViewer3D.tsx';
|
|
10
|
+
export type { MoleculeViewer3DProps } from './moleculeViewer3DProps.ts';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule3d/ui/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,YAAY,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a site imports to show a molecule in 3D.
|
|
3
|
+
*
|
|
4
|
+
* **Nothing exported here may pull molstar in statically.** The canvas and the
|
|
5
|
+
* viewer class are deliberately absent: re-exporting either would defeat the
|
|
6
|
+
* `React.lazy` boundary inside `MoleculeViewer3D`. Type-only re-exports are
|
|
7
|
+
* erased and so are safe.
|
|
8
|
+
*/
|
|
9
|
+
export { MoleculeViewer3D } from "./MoleculeViewer3D.js";
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecule3d/ui/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAwB,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Distances, angles and dihedral angles over the displayed molecule.
|
|
3
|
+
*
|
|
4
|
+
* molstar ships the measuring itself — `managers.structure.measurement` draws
|
|
5
|
+
* the lines and labels — but its only way to pick the atoms is the panel of its
|
|
6
|
+
* own UI, which this component does not mount. That panel works from the
|
|
7
|
+
* selection history, and so does this module: while a tool is active the
|
|
8
|
+
* plugin is in selection mode, a click toggles one atom into the history
|
|
9
|
+
* instead of moving the camera, and once enough atoms are in it they become a
|
|
10
|
+
* measurement.
|
|
11
|
+
*/
|
|
12
|
+
import type { PluginContext } from 'molstar/lib/mol-plugin/context.js';
|
|
13
|
+
import type { Measurement, MeasurementKind } from '../core/measurement.ts';
|
|
14
|
+
/**
|
|
15
|
+
* Draw exactly `measurements` over the current molecule. An atom the structure
|
|
16
|
+
* does not have skips its measurement rather than failing the scene.
|
|
17
|
+
* @param plugin - The molstar context.
|
|
18
|
+
* @param measurements - Everything to show, replacing what is shown.
|
|
19
|
+
* @returns Nothing; resolves once every label is on screen.
|
|
20
|
+
*/
|
|
21
|
+
export declare function renderMeasurements(plugin: PluginContext, measurements: readonly Measurement[]): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Remove every measurement from the scene.
|
|
24
|
+
* @param plugin - The molstar context.
|
|
25
|
+
* @returns Nothing; resolves once the labels are gone.
|
|
26
|
+
*/
|
|
27
|
+
export declare function clearMeasurements(plugin: PluginContext): Promise<void>;
|
|
28
|
+
/** Turns the clicks on atoms into measurements, while a tool is active. */
|
|
29
|
+
export declare class MeasurementPicker {
|
|
30
|
+
#private;
|
|
31
|
+
/**
|
|
32
|
+
* Start listening to the selection history of `plugin`.
|
|
33
|
+
* @param plugin - The molstar context.
|
|
34
|
+
* @param onMeasure - Called with each measurement once its atoms are picked.
|
|
35
|
+
*/
|
|
36
|
+
constructor(plugin: PluginContext, onMeasure: (measurement: Measurement) => void);
|
|
37
|
+
/**
|
|
38
|
+
* Choose what the next clicks measure. Atoms already picked are dropped.
|
|
39
|
+
* @param kind - The measurement to build, or `null` to give clicks back to
|
|
40
|
+
* the camera.
|
|
41
|
+
*/
|
|
42
|
+
setKind(kind: MeasurementKind | null): void;
|
|
43
|
+
/** Stop listening to the plugin. */
|
|
44
|
+
dispose(): void;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=measurements.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"measurements.d.ts","sourceRoot":"","sources":["../../../src/molecule3d/ui/measurements.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAOH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAIvE,OAAO,KAAK,EAEV,WAAW,EACX,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAQhC;;;;;;GAMG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,aAAa,EACrB,YAAY,EAAE,SAAS,WAAW,EAAE,GACnC,OAAO,CAAC,IAAI,CAAC,CAiBf;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAQ5E;AAED,2EAA2E;AAC3E,qBAAa,iBAAiB;;IAM5B;;;;OAIG;gBAED,MAAM,EAAE,aAAa,EACrB,SAAS,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,IAAI;IAkB/C;;;;OAIG;IACH,OAAO,CAAC,IAAI,EAAE,eAAe,GAAG,IAAI,GAAG,IAAI;IAO3C,oCAAoC;IACpC,OAAO,IAAI,IAAI;CAqBhB"}
|