matterviz 0.3.4 → 0.3.6
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/.vscode/launch.json +13 -0
- package/.vscodeignore +7 -0
- package/dist/assets/STLExporter-BpTH3YHE.js +8 -0
- package/dist/assets/browser-DdDecX_W.js +1 -0
- package/dist/assets/export-qgn-H9y6.js +2 -0
- package/dist/assets/main-DiKYzti2.css +1 -0
- package/dist/assets/moyo_wasm_bg-0ocwg7xY.wasm +0 -0
- package/dist/extension.js +31293 -0
- package/dist/src/lib/FilePicker.svelte +360 -0
- package/dist/src/lib/MillerIndexInput.svelte +66 -0
- package/dist/src/lib/api/mp.ts +26 -0
- package/dist/src/lib/api/optimade.ts +204 -0
- package/dist/src/lib/app.css +247 -0
- package/dist/src/lib/brillouin/BrillouinZone.svelte +549 -0
- package/dist/src/lib/brillouin/BrillouinZoneControls.svelte +144 -0
- package/dist/src/lib/brillouin/BrillouinZoneExportPane.svelte +146 -0
- package/dist/src/lib/brillouin/BrillouinZoneInfoPane.svelte +146 -0
- package/dist/src/lib/brillouin/BrillouinZoneScene.svelte +476 -0
- package/dist/src/lib/brillouin/BrillouinZoneTooltip.svelte +92 -0
- package/dist/src/lib/brillouin/compute.ts +529 -0
- package/dist/src/lib/brillouin/index.ts +8 -0
- package/dist/src/lib/brillouin/types.ts +51 -0
- package/dist/src/lib/chempot-diagram/ChemPotDiagram.svelte +327 -0
- package/dist/src/lib/chempot-diagram/ChemPotDiagram2D.svelte +846 -0
- package/dist/src/lib/chempot-diagram/ChemPotDiagram3D.svelte +3193 -0
- package/dist/src/lib/chempot-diagram/async-compute.svelte.ts +94 -0
- package/dist/src/lib/chempot-diagram/chempot-worker.ts +11 -0
- package/dist/src/lib/chempot-diagram/color.ts +42 -0
- package/dist/src/lib/chempot-diagram/compute.ts +1014 -0
- package/dist/src/lib/chempot-diagram/index.ts +6 -0
- package/dist/src/lib/chempot-diagram/pointer.ts +56 -0
- package/dist/src/lib/chempot-diagram/temperature.ts +77 -0
- package/dist/src/lib/chempot-diagram/types.ts +130 -0
- package/dist/src/lib/colors/index.ts +249 -0
- package/dist/src/lib/composition/BarChart.svelte +297 -0
- package/dist/src/lib/composition/BubbleChart.svelte +218 -0
- package/dist/src/lib/composition/Composition.svelte +165 -0
- package/dist/src/lib/composition/Formula.svelte +268 -0
- package/dist/src/lib/composition/FormulaFilter.svelte +1257 -0
- package/dist/src/lib/composition/PieChart.svelte +323 -0
- package/dist/src/lib/composition/format.ts +155 -0
- package/dist/src/lib/composition/index.ts +37 -0
- package/dist/src/lib/composition/parse.ts +605 -0
- package/dist/src/lib/constants.ts +134 -0
- package/dist/src/lib/controls.ts +42 -0
- package/dist/src/lib/convex-hull/ConvexHull.svelte +157 -0
- package/dist/src/lib/convex-hull/ConvexHull2D.svelte +825 -0
- package/dist/src/lib/convex-hull/ConvexHull3D.svelte +1801 -0
- package/dist/src/lib/convex-hull/ConvexHull4D.svelte +1398 -0
- package/dist/src/lib/convex-hull/ConvexHullControls.svelte +535 -0
- package/dist/src/lib/convex-hull/ConvexHullInfoPane.svelte +125 -0
- package/dist/src/lib/convex-hull/ConvexHullStats.svelte +929 -0
- package/dist/src/lib/convex-hull/ConvexHullTooltip.svelte +131 -0
- package/dist/src/lib/convex-hull/GasPressureControls.svelte +247 -0
- package/dist/src/lib/convex-hull/StructurePopup.svelte +151 -0
- package/dist/src/lib/convex-hull/TemperatureSlider.svelte +140 -0
- package/dist/src/lib/convex-hull/barycentric-coords.ts +246 -0
- package/dist/src/lib/convex-hull/demo-temperature.ts +63 -0
- package/dist/src/lib/convex-hull/gas-thermodynamics.ts +405 -0
- package/dist/src/lib/convex-hull/helpers.ts +932 -0
- package/dist/src/lib/convex-hull/index.ts +202 -0
- package/dist/src/lib/convex-hull/thermodynamics.ts +2192 -0
- package/dist/src/lib/convex-hull/types.ts +267 -0
- package/dist/src/lib/coordination/CoordinationBarPlot.svelte +311 -0
- package/dist/src/lib/coordination/calc-coordination.ts +93 -0
- package/dist/src/lib/coordination/index.ts +9 -0
- package/dist/src/lib/effects.svelte.ts +48 -0
- package/dist/src/lib/element/BohrAtom.svelte +147 -0
- package/dist/src/lib/element/ElementHeading.svelte +26 -0
- package/dist/src/lib/element/ElementPhoto.svelte +57 -0
- package/dist/src/lib/element/ElementStats.svelte +80 -0
- package/dist/src/lib/element/ElementTile.svelte +484 -0
- package/dist/src/lib/element/data.json.gz.d.ts +4 -0
- package/dist/src/lib/element/data.ts +14 -0
- package/dist/src/lib/element/index.ts +8 -0
- package/dist/src/lib/element/types.ts +62 -0
- package/dist/src/lib/feedback/ClickFeedback.svelte +58 -0
- package/dist/src/lib/feedback/DragOverlay.svelte +42 -0
- package/dist/src/lib/feedback/index.ts +4 -0
- package/dist/src/lib/fermi-surface/FermiSlice.svelte +189 -0
- package/dist/src/lib/fermi-surface/FermiSurface.svelte +600 -0
- package/dist/src/lib/fermi-surface/FermiSurfaceControls.svelte +448 -0
- package/dist/src/lib/fermi-surface/FermiSurfaceScene.svelte +794 -0
- package/dist/src/lib/fermi-surface/FermiSurfaceTooltip.svelte +111 -0
- package/dist/src/lib/fermi-surface/compute.ts +728 -0
- package/dist/src/lib/fermi-surface/constants.ts +32 -0
- package/dist/src/lib/fermi-surface/export.ts +64 -0
- package/dist/src/lib/fermi-surface/index.ts +14 -0
- package/dist/src/lib/fermi-surface/marching-cubes.ts +3 -0
- package/dist/src/lib/fermi-surface/parse.ts +574 -0
- package/dist/src/lib/fermi-surface/symmetry.ts +56 -0
- package/dist/src/lib/fermi-surface/types.ts +159 -0
- package/dist/src/lib/heatmap-matrix/HeatmapMatrix.svelte +1545 -0
- package/dist/src/lib/heatmap-matrix/HeatmapMatrixControls.svelte +225 -0
- package/dist/src/lib/heatmap-matrix/index.ts +167 -0
- package/dist/src/lib/heatmap-matrix/shared.ts +7 -0
- package/dist/src/lib/icons.ts +650 -0
- package/dist/src/lib/index.ts +61 -0
- package/dist/src/lib/io/decompress.ts +92 -0
- package/dist/src/lib/io/export.ts +385 -0
- package/dist/src/lib/io/fetch.ts +46 -0
- package/dist/src/lib/io/file-drop.ts +51 -0
- package/dist/src/lib/io/index.ts +7 -0
- package/dist/src/lib/io/is-binary.ts +24 -0
- package/dist/src/lib/io/types.ts +8 -0
- package/dist/src/lib/io/url-drop.ts +141 -0
- package/dist/src/lib/isosurface/Isosurface.svelte +285 -0
- package/dist/src/lib/isosurface/IsosurfaceControls.svelte +277 -0
- package/dist/src/lib/isosurface/index.ts +7 -0
- package/dist/src/lib/isosurface/parse.ts +656 -0
- package/dist/src/lib/isosurface/slice.ts +175 -0
- package/dist/src/lib/isosurface/types.ts +309 -0
- package/dist/src/lib/labels.ts +320 -0
- package/dist/src/lib/layout/FullscreenToggle.svelte +50 -0
- package/dist/src/lib/layout/InfoCard.svelte +120 -0
- package/dist/src/lib/layout/InfoTag.svelte +185 -0
- package/dist/src/lib/layout/PropertyFilter.svelte +246 -0
- package/dist/src/lib/layout/SettingsSection.svelte +148 -0
- package/dist/src/lib/layout/SubpageGrid.svelte +82 -0
- package/dist/src/lib/layout/fullscreen.ts +65 -0
- package/dist/src/lib/layout/index.ts +11 -0
- package/dist/src/lib/layout/json-tree/JsonNode.svelte +548 -0
- package/dist/src/lib/layout/json-tree/JsonTree.svelte +1230 -0
- package/dist/src/lib/layout/json-tree/JsonValue.svelte +334 -0
- package/dist/src/lib/layout/json-tree/index.ts +3 -0
- package/dist/src/lib/layout/json-tree/types.ts +126 -0
- package/dist/src/lib/layout/json-tree/utils.ts +682 -0
- package/dist/src/lib/marching-cubes.ts +614 -0
- package/dist/src/lib/math.ts +1081 -0
- package/dist/src/lib/overlays/ContextMenu.svelte +162 -0
- package/dist/src/lib/overlays/CopyButton.svelte +45 -0
- package/dist/src/lib/overlays/DragControlTab.svelte +98 -0
- package/dist/src/lib/overlays/DraggablePane.svelte +487 -0
- package/dist/src/lib/overlays/InfoPaneCards.svelte +149 -0
- package/dist/src/lib/overlays/index.ts +3 -0
- package/dist/src/lib/periodic-table/PeriodicTable.svelte +469 -0
- package/dist/src/lib/periodic-table/PeriodicTableControls.svelte +557 -0
- package/dist/src/lib/periodic-table/PropertySelect.svelte +37 -0
- package/dist/src/lib/periodic-table/index.ts +12 -0
- package/dist/src/lib/phase-diagram/IsobaricBinaryPhaseDiagram.svelte +1086 -0
- package/dist/src/lib/phase-diagram/PhaseDiagramControls.svelte +444 -0
- package/dist/src/lib/phase-diagram/PhaseDiagramEditorPane.svelte +126 -0
- package/dist/src/lib/phase-diagram/PhaseDiagramExportPane.svelte +184 -0
- package/dist/src/lib/phase-diagram/PhaseDiagramTooltip.svelte +391 -0
- package/dist/src/lib/phase-diagram/TdbInfoPanel.svelte +203 -0
- package/dist/src/lib/phase-diagram/build-diagram.ts +186 -0
- package/dist/src/lib/phase-diagram/colors.ts +58 -0
- package/dist/src/lib/phase-diagram/diagram-input.ts +40 -0
- package/dist/src/lib/phase-diagram/index.ts +13 -0
- package/dist/src/lib/phase-diagram/parse.ts +348 -0
- package/dist/src/lib/phase-diagram/svg-to-diagram.ts +1023 -0
- package/dist/src/lib/phase-diagram/types.ts +144 -0
- package/dist/src/lib/phase-diagram/utils.ts +775 -0
- package/dist/src/lib/plot/AxisLabel.svelte +51 -0
- package/dist/src/lib/plot/BarPlot.svelte +2113 -0
- package/dist/src/lib/plot/BarPlotControls.svelte +66 -0
- package/dist/src/lib/plot/BinnedScatterPlot.svelte +1114 -0
- package/dist/src/lib/plot/ColorBar.svelte +721 -0
- package/dist/src/lib/plot/ColorScaleSelect.svelte +54 -0
- package/dist/src/lib/plot/ElementScatter.svelte +63 -0
- package/dist/src/lib/plot/FillArea.svelte +223 -0
- package/dist/src/lib/plot/Histogram.svelte +1558 -0
- package/dist/src/lib/plot/HistogramControls.svelte +212 -0
- package/dist/src/lib/plot/InteractiveAxisLabel.svelte +96 -0
- package/dist/src/lib/plot/Line.svelte +84 -0
- package/dist/src/lib/plot/PlotAxis.svelte +169 -0
- package/dist/src/lib/plot/PlotControls.svelte +537 -0
- package/dist/src/lib/plot/PlotLegend.svelte +569 -0
- package/dist/src/lib/plot/PlotTooltip.svelte +67 -0
- package/dist/src/lib/plot/PortalSelect.svelte +253 -0
- package/dist/src/lib/plot/ReferenceLine3D.svelte +156 -0
- package/dist/src/lib/plot/ReferencePlane.svelte +175 -0
- package/dist/src/lib/plot/ScatterPlot.svelte +2778 -0
- package/dist/src/lib/plot/ScatterPlot3D.svelte +529 -0
- package/dist/src/lib/plot/ScatterPlot3DControls.svelte +437 -0
- package/dist/src/lib/plot/ScatterPlot3DScene.svelte +912 -0
- package/dist/src/lib/plot/ScatterPlotControls.svelte +306 -0
- package/dist/src/lib/plot/ScatterPoint.svelte +182 -0
- package/dist/src/lib/plot/SpacegroupBarPlot.svelte +293 -0
- package/dist/src/lib/plot/Surface3D.svelte +197 -0
- package/dist/src/lib/plot/ZeroLines.svelte +97 -0
- package/dist/src/lib/plot/ZoomRect.svelte +23 -0
- package/dist/src/lib/plot/adaptive-density.ts +316 -0
- package/dist/src/lib/plot/auto-place.ts +184 -0
- package/dist/src/lib/plot/axis-utils.ts +122 -0
- package/dist/src/lib/plot/binned-scatter-types.ts +83 -0
- package/dist/src/lib/plot/data-cleaning.ts +1069 -0
- package/dist/src/lib/plot/data-transform.ts +69 -0
- package/dist/src/lib/plot/defaults.ts +9 -0
- package/dist/src/lib/plot/fill-utils.ts +494 -0
- package/dist/src/lib/plot/hover-lock.svelte.ts +60 -0
- package/dist/src/lib/plot/index.ts +53 -0
- package/dist/src/lib/plot/interactions.ts +119 -0
- package/dist/src/lib/plot/layout.ts +425 -0
- package/dist/src/lib/plot/reference-line.ts +426 -0
- package/dist/src/lib/plot/scales.ts +654 -0
- package/dist/src/lib/plot/svg.ts +23 -0
- package/dist/src/lib/plot/types.ts +1144 -0
- package/dist/src/lib/plot/utils/label-placement.ts +541 -0
- package/dist/src/lib/plot/utils/series-visibility.ts +140 -0
- package/dist/src/lib/plot/utils.ts +11 -0
- package/dist/src/lib/rdf/RdfPlot.svelte +247 -0
- package/dist/src/lib/rdf/calc-rdf.ts +167 -0
- package/dist/src/lib/rdf/index.ts +27 -0
- package/dist/src/lib/sanitize.ts +126 -0
- package/dist/src/lib/settings.ts +1479 -0
- package/dist/src/lib/spectral/Bands.svelte +1040 -0
- package/dist/src/lib/spectral/BandsAndDos.svelte +134 -0
- package/dist/src/lib/spectral/BrillouinBandsDos.svelte +252 -0
- package/dist/src/lib/spectral/Dos.svelte +697 -0
- package/dist/src/lib/spectral/helpers.ts +1381 -0
- package/dist/src/lib/spectral/index.ts +8 -0
- package/dist/src/lib/spectral/types.ts +112 -0
- package/dist/src/lib/state.svelte.ts +64 -0
- package/dist/src/lib/structure/Arrow.svelte +72 -0
- package/dist/src/lib/structure/AtomLegend.svelte +815 -0
- package/dist/src/lib/structure/Bond.svelte +140 -0
- package/dist/src/lib/structure/CanvasTooltip.svelte +33 -0
- package/dist/src/lib/structure/CellSelect.svelte +349 -0
- package/dist/src/lib/structure/Cylinder.svelte +45 -0
- package/dist/src/lib/structure/Lattice.svelte +196 -0
- package/dist/src/lib/structure/Structure.svelte +2248 -0
- package/dist/src/lib/structure/StructureControls.svelte +1273 -0
- package/dist/src/lib/structure/StructureExportPane.svelte +252 -0
- package/dist/src/lib/structure/StructureInfoPane.svelte +737 -0
- package/dist/src/lib/structure/StructureScene.svelte +2255 -0
- package/dist/src/lib/structure/atom-properties.ts +316 -0
- package/dist/src/lib/structure/bond-order-perception.ts +447 -0
- package/dist/src/lib/structure/bonding.ts +944 -0
- package/dist/src/lib/structure/export.ts +861 -0
- package/dist/src/lib/structure/index.ts +291 -0
- package/dist/src/lib/structure/label-placement.ts +130 -0
- package/dist/src/lib/structure/measure.ts +45 -0
- package/dist/src/lib/structure/parse.ts +1705 -0
- package/dist/src/lib/structure/partial-occupancy.ts +183 -0
- package/dist/src/lib/structure/pbc.ts +164 -0
- package/dist/src/lib/structure/supercell.ts +226 -0
- package/dist/src/lib/structure/validation.ts +11 -0
- package/dist/src/lib/symmetry/SymmetryStats.svelte +226 -0
- package/dist/src/lib/symmetry/WyckoffTable.svelte +120 -0
- package/dist/src/lib/symmetry/cell-transform.ts +118 -0
- package/dist/src/lib/symmetry/index.ts +348 -0
- package/dist/src/lib/symmetry/spacegroups.ts +404 -0
- package/dist/src/lib/table/HeatmapTable.svelte +1833 -0
- package/dist/src/lib/table/ToggleMenu.svelte +385 -0
- package/dist/src/lib/table/index.ts +139 -0
- package/dist/src/lib/theme/ThemeControl.svelte +53 -0
- package/dist/src/lib/theme/index.ts +107 -0
- package/dist/src/lib/theme/themes.mjs +297 -0
- package/dist/src/lib/time.ts +71 -0
- package/dist/src/lib/tooltip/TooltipContent.svelte +58 -0
- package/dist/src/lib/tooltip/index.ts +2 -0
- package/dist/src/lib/tooltip/types.ts +13 -0
- package/dist/src/lib/trajectory/Trajectory.svelte +1545 -0
- package/dist/src/lib/trajectory/TrajectoryError.svelte +128 -0
- package/dist/src/lib/trajectory/TrajectoryExportPane.svelte +357 -0
- package/dist/src/lib/trajectory/TrajectoryInfoPane.svelte +313 -0
- package/dist/src/lib/trajectory/constants.ts +7 -0
- package/dist/src/lib/trajectory/extract.ts +196 -0
- package/dist/src/lib/trajectory/format-detect.ts +96 -0
- package/dist/src/lib/trajectory/frame-reader.ts +456 -0
- package/dist/src/lib/trajectory/helpers.ts +217 -0
- package/dist/src/lib/trajectory/index.ts +218 -0
- package/dist/src/lib/trajectory/parse/ase.ts +109 -0
- package/dist/src/lib/trajectory/parse/hdf5.ts +173 -0
- package/dist/src/lib/trajectory/parse/index.ts +411 -0
- package/dist/src/lib/trajectory/parse/lammps.ts +215 -0
- package/dist/src/lib/trajectory/parse/vasp.ts +102 -0
- package/dist/src/lib/trajectory/parse/xyz.ts +143 -0
- package/dist/src/lib/trajectory/plotting.ts +599 -0
- package/dist/src/lib/trajectory/types.ts +13 -0
- package/dist/src/lib/utils.ts +56 -0
- package/dist/src/lib/xrd/XrdPlot.svelte +615 -0
- package/dist/src/lib/xrd/broadening.ts +130 -0
- package/dist/src/lib/xrd/calc-xrd.ts +397 -0
- package/dist/src/lib/xrd/index.ts +38 -0
- package/dist/src/lib/xrd/parse.ts +858 -0
- package/dist/webview.js +29421 -0
- package/icon.png +0 -0
- package/license +1 -1
- package/matterviz-0.3.2.vsix +0 -0
- package/matterviz-0.3.4.vsix +0 -0
- package/matterviz-0.3.5.vsix +0 -0
- package/package.json +1461 -231
- package/readme.md +171 -98
- package/scripts/sync-config.ts +101 -0
- package/src/declarations.d.ts +2 -0
- package/src/extension.ts +972 -0
- package/src/node-io.ts +65 -0
- package/src/types.ts +17 -0
- package/src/webview/JsonBrowser.svelte +1079 -0
- package/src/webview/PlotPanel.svelte +346 -0
- package/src/webview/detect.ts +444 -0
- package/src/webview/main.ts +764 -0
- package/src/webview/plot-utils.ts +250 -0
- package/test-fixtures/all-viz-types.json.gz +0 -0
- package/test-fixtures/plot-demo-data.json.gz +0 -0
- package/tests/detect.test.ts +604 -0
- package/tests/extension.test.ts +2041 -0
- package/tests/node-io.test.ts +39 -0
- package/tests/plot-utils.test.ts +302 -0
- package/tests/vite-plugin-json-gz.test.ts +114 -0
- package/tests/vscode-mock.ts +18 -0
- package/tests/webview.test.ts +231 -0
- package/tsconfig.json +20 -0
- package/vite-plugin-json-gz.ts +29 -0
- package/vite.config.ts +34 -0
- package/vite.extension.config.ts +34 -0
- package/dist/EmptyState.svelte.d.ts +0 -9
- package/dist/FilePicker.svelte +0 -360
- package/dist/FilePicker.svelte.d.ts +0 -17
- package/dist/Icon.svelte.d.ts +0 -13
- package/dist/MillerIndexInput.svelte +0 -66
- package/dist/MillerIndexInput.svelte.d.ts +0 -7
- package/dist/api/mp.d.ts +0 -6
- package/dist/api/mp.js +0 -22
- package/dist/api/optimade.d.ts +0 -45
- package/dist/api/optimade.js +0 -135
- package/dist/app.css +0 -240
- package/dist/brillouin/BrillouinZone.svelte +0 -543
- package/dist/brillouin/BrillouinZone.svelte.d.ts +0 -83
- package/dist/brillouin/BrillouinZoneControls.svelte +0 -144
- package/dist/brillouin/BrillouinZoneControls.svelte.d.ts +0 -17
- package/dist/brillouin/BrillouinZoneExportPane.svelte +0 -148
- package/dist/brillouin/BrillouinZoneExportPane.svelte.d.ts +0 -15
- package/dist/brillouin/BrillouinZoneInfoPane.svelte +0 -146
- package/dist/brillouin/BrillouinZoneInfoPane.svelte.d.ts +0 -13
- package/dist/brillouin/BrillouinZoneScene.svelte +0 -476
- package/dist/brillouin/BrillouinZoneScene.svelte.d.ts +0 -48
- package/dist/brillouin/BrillouinZoneTooltip.svelte +0 -92
- package/dist/brillouin/BrillouinZoneTooltip.svelte.d.ts +0 -8
- package/dist/brillouin/compute.d.ts +0 -17
- package/dist/brillouin/compute.js +0 -422
- package/dist/brillouin/index.d.ts +0 -8
- package/dist/brillouin/index.js +0 -8
- package/dist/brillouin/types.d.ts +0 -48
- package/dist/brillouin/types.js +0 -1
- package/dist/chempot-diagram/ChemPotDiagram.svelte +0 -327
- package/dist/chempot-diagram/ChemPotDiagram.svelte.d.ts +0 -13
- package/dist/chempot-diagram/ChemPotDiagram2D.svelte +0 -847
- package/dist/chempot-diagram/ChemPotDiagram2D.svelte.d.ts +0 -16
- package/dist/chempot-diagram/ChemPotDiagram3D.svelte +0 -3194
- package/dist/chempot-diagram/ChemPotDiagram3D.svelte.d.ts +0 -16
- package/dist/chempot-diagram/ChemPotScene3D.svelte.d.ts +0 -7
- package/dist/chempot-diagram/async-compute.svelte.d.ts +0 -3
- package/dist/chempot-diagram/async-compute.svelte.js +0 -77
- package/dist/chempot-diagram/chempot-worker.d.ts +0 -1
- package/dist/chempot-diagram/chempot-worker.js +0 -11
- package/dist/chempot-diagram/color.d.ts +0 -10
- package/dist/chempot-diagram/color.js +0 -32
- package/dist/chempot-diagram/compute.d.ts +0 -48
- package/dist/chempot-diagram/compute.js +0 -812
- package/dist/chempot-diagram/index.d.ts +0 -6
- package/dist/chempot-diagram/index.js +0 -6
- package/dist/chempot-diagram/pointer.d.ts +0 -16
- package/dist/chempot-diagram/pointer.js +0 -40
- package/dist/chempot-diagram/temperature.d.ts +0 -15
- package/dist/chempot-diagram/temperature.js +0 -36
- package/dist/chempot-diagram/types.d.ts +0 -86
- package/dist/chempot-diagram/types.js +0 -28
- package/dist/colors/index.d.ts +0 -47
- package/dist/colors/index.js +0 -203
- package/dist/composition/BarChart.svelte +0 -297
- package/dist/composition/BarChart.svelte.d.ts +0 -39
- package/dist/composition/BubbleChart.svelte +0 -218
- package/dist/composition/BubbleChart.svelte.d.ts +0 -28
- package/dist/composition/Composition.svelte +0 -164
- package/dist/composition/Composition.svelte.d.ts +0 -15
- package/dist/composition/Formula.svelte +0 -265
- package/dist/composition/Formula.svelte.d.ts +0 -19
- package/dist/composition/FormulaFilter.svelte +0 -1259
- package/dist/composition/FormulaFilter.svelte.d.ts +0 -51
- package/dist/composition/PieChart.svelte +0 -323
- package/dist/composition/PieChart.svelte.d.ts +0 -37
- package/dist/composition/format.d.ts +0 -15
- package/dist/composition/format.js +0 -109
- package/dist/composition/index.d.ts +0 -20
- package/dist/composition/index.js +0 -14
- package/dist/composition/parse.d.ts +0 -55
- package/dist/composition/parse.js +0 -459
- package/dist/constants.d.ts +0 -29
- package/dist/constants.js +0 -105
- package/dist/controls.d.ts +0 -14
- package/dist/controls.js +0 -30
- package/dist/convex-hull/ConvexHull.svelte +0 -157
- package/dist/convex-hull/ConvexHull.svelte.d.ts +0 -13
- package/dist/convex-hull/ConvexHull2D.svelte +0 -813
- package/dist/convex-hull/ConvexHull2D.svelte.d.ts +0 -11
- package/dist/convex-hull/ConvexHull3D.svelte +0 -1788
- package/dist/convex-hull/ConvexHull3D.svelte.d.ts +0 -8
- package/dist/convex-hull/ConvexHull4D.svelte +0 -1374
- package/dist/convex-hull/ConvexHull4D.svelte.d.ts +0 -8
- package/dist/convex-hull/ConvexHullControls.svelte +0 -546
- package/dist/convex-hull/ConvexHullControls.svelte.d.ts +0 -48
- package/dist/convex-hull/ConvexHullInfoPane.svelte +0 -115
- package/dist/convex-hull/ConvexHullInfoPane.svelte.d.ts +0 -18
- package/dist/convex-hull/ConvexHullStats.svelte +0 -905
- package/dist/convex-hull/ConvexHullStats.svelte.d.ts +0 -15
- package/dist/convex-hull/ConvexHullTooltip.svelte +0 -131
- package/dist/convex-hull/ConvexHullTooltip.svelte.d.ts +0 -33
- package/dist/convex-hull/GasPressureControls.svelte +0 -247
- package/dist/convex-hull/GasPressureControls.svelte.d.ts +0 -11
- package/dist/convex-hull/StructurePopup.svelte +0 -116
- package/dist/convex-hull/StructurePopup.svelte.d.ts +0 -18
- package/dist/convex-hull/TemperatureSlider.svelte +0 -137
- package/dist/convex-hull/TemperatureSlider.svelte.d.ts +0 -8
- package/dist/convex-hull/barycentric-coords.d.ts +0 -18
- package/dist/convex-hull/barycentric-coords.js +0 -182
- package/dist/convex-hull/demo-temperature.d.ts +0 -6
- package/dist/convex-hull/demo-temperature.js +0 -40
- package/dist/convex-hull/gas-thermodynamics.d.ts +0 -16
- package/dist/convex-hull/gas-thermodynamics.js +0 -316
- package/dist/convex-hull/helpers.d.ts +0 -103
- package/dist/convex-hull/helpers.js +0 -671
- package/dist/convex-hull/index.d.ts +0 -118
- package/dist/convex-hull/index.js +0 -57
- package/dist/convex-hull/thermodynamics.d.ts +0 -66
- package/dist/convex-hull/thermodynamics.js +0 -1752
- package/dist/convex-hull/types.d.ts +0 -162
- package/dist/convex-hull/types.js +0 -36
- package/dist/coordination/CoordinationBarPlot.svelte +0 -311
- package/dist/coordination/CoordinationBarPlot.svelte.d.ts +0 -30
- package/dist/coordination/calc-coordination.d.ts +0 -15
- package/dist/coordination/calc-coordination.js +0 -63
- package/dist/coordination/index.d.ts +0 -8
- package/dist/coordination/index.js +0 -7
- package/dist/element/BohrAtom.svelte +0 -149
- package/dist/element/BohrAtom.svelte.d.ts +0 -20
- package/dist/element/ElementHeading.svelte +0 -26
- package/dist/element/ElementHeading.svelte.d.ts +0 -8
- package/dist/element/ElementPhoto.svelte +0 -57
- package/dist/element/ElementPhoto.svelte.d.ts +0 -9
- package/dist/element/ElementStats.svelte +0 -80
- package/dist/element/ElementStats.svelte.d.ts +0 -8
- package/dist/element/ElementTile.svelte +0 -484
- package/dist/element/ElementTile.svelte.d.ts +0 -29
- package/dist/element/Nucleus.svelte.d.ts +0 -17
- package/dist/element/data.d.ts +0 -3
- package/dist/element/data.js +0 -2
- package/dist/element/data.json.gz.d.ts +0 -2
- package/dist/element/index.d.ts +0 -8
- package/dist/element/index.js +0 -8
- package/dist/element/types.d.ts +0 -57
- package/dist/element/types.js +0 -1
- package/dist/feedback/ClickFeedback.svelte +0 -58
- package/dist/feedback/ClickFeedback.svelte.d.ts +0 -12
- package/dist/feedback/DragOverlay.svelte +0 -42
- package/dist/feedback/DragOverlay.svelte.d.ts +0 -7
- package/dist/feedback/Spinner.svelte.d.ts +0 -7
- package/dist/feedback/StatusMessage.svelte.d.ts +0 -9
- package/dist/feedback/index.d.ts +0 -4
- package/dist/feedback/index.js +0 -4
- package/dist/fermi-surface/FermiSlice.svelte +0 -189
- package/dist/fermi-surface/FermiSlice.svelte.d.ts +0 -24
- package/dist/fermi-surface/FermiSurface.svelte +0 -597
- package/dist/fermi-surface/FermiSurface.svelte.d.ts +0 -83
- package/dist/fermi-surface/FermiSurfaceControls.svelte +0 -452
- package/dist/fermi-surface/FermiSurfaceControls.svelte.d.ts +0 -35
- package/dist/fermi-surface/FermiSurfaceScene.svelte +0 -792
- package/dist/fermi-surface/FermiSurfaceScene.svelte.d.ts +0 -50
- package/dist/fermi-surface/FermiSurfaceTooltip.svelte +0 -111
- package/dist/fermi-surface/FermiSurfaceTooltip.svelte.d.ts +0 -8
- package/dist/fermi-surface/compute.d.ts +0 -5
- package/dist/fermi-surface/compute.js +0 -538
- package/dist/fermi-surface/constants.d.ts +0 -9
- package/dist/fermi-surface/constants.js +0 -27
- package/dist/fermi-surface/export.d.ts +0 -5
- package/dist/fermi-surface/export.js +0 -63
- package/dist/fermi-surface/index.d.ts +0 -12
- package/dist/fermi-surface/index.js +0 -13
- package/dist/fermi-surface/marching-cubes.d.ts +0 -2
- package/dist/fermi-surface/marching-cubes.js +0 -2
- package/dist/fermi-surface/parse.d.ts +0 -2
- package/dist/fermi-surface/parse.js +0 -495
- package/dist/fermi-surface/symmetry.d.ts +0 -3
- package/dist/fermi-surface/symmetry.js +0 -46
- package/dist/fermi-surface/types.d.ts +0 -113
- package/dist/fermi-surface/types.js +0 -4
- package/dist/heatmap-matrix/HeatmapMatrix.svelte +0 -1527
- package/dist/heatmap-matrix/HeatmapMatrix.svelte.d.ts +0 -110
- package/dist/heatmap-matrix/HeatmapMatrixControls.svelte +0 -225
- package/dist/heatmap-matrix/HeatmapMatrixControls.svelte.d.ts +0 -30
- package/dist/heatmap-matrix/index.d.ts +0 -53
- package/dist/heatmap-matrix/index.js +0 -100
- package/dist/heatmap-matrix/shared.d.ts +0 -2
- package/dist/heatmap-matrix/shared.js +0 -4
- package/dist/icons.d.ts +0 -569
- package/dist/icons.js +0 -648
- package/dist/index.d.ts +0 -39
- package/dist/index.js +0 -39
- package/dist/io/decompress.d.ts +0 -10
- package/dist/io/decompress.js +0 -69
- package/dist/io/export.d.ts +0 -16
- package/dist/io/export.js +0 -312
- package/dist/io/fetch.d.ts +0 -5
- package/dist/io/fetch.js +0 -39
- package/dist/io/file-drop.d.ts +0 -7
- package/dist/io/file-drop.js +0 -43
- package/dist/io/index.d.ts +0 -7
- package/dist/io/index.js +0 -7
- package/dist/io/is-binary.d.ts +0 -1
- package/dist/io/is-binary.js +0 -5
- package/dist/io/types.d.ts +0 -8
- package/dist/io/types.js +0 -1
- package/dist/io/url-drop.d.ts +0 -2
- package/dist/io/url-drop.js +0 -117
- package/dist/isosurface/Isosurface.svelte +0 -285
- package/dist/isosurface/Isosurface.svelte.d.ts +0 -8
- package/dist/isosurface/IsosurfaceControls.svelte +0 -291
- package/dist/isosurface/IsosurfaceControls.svelte.d.ts +0 -9
- package/dist/isosurface/index.d.ts +0 -5
- package/dist/isosurface/index.js +0 -6
- package/dist/isosurface/parse.d.ts +0 -6
- package/dist/isosurface/parse.js +0 -553
- package/dist/isosurface/slice.d.ts +0 -11
- package/dist/isosurface/slice.js +0 -140
- package/dist/isosurface/types.d.ts +0 -56
- package/dist/isosurface/types.js +0 -227
- package/dist/labels.d.ts +0 -53
- package/dist/labels.js +0 -274
- package/dist/layout/FullscreenToggle.svelte +0 -50
- package/dist/layout/FullscreenToggle.svelte.d.ts +0 -7
- package/dist/layout/InfoCard.svelte +0 -120
- package/dist/layout/InfoCard.svelte.d.ts +0 -21
- package/dist/layout/InfoTag.svelte +0 -183
- package/dist/layout/InfoTag.svelte.d.ts +0 -19
- package/dist/layout/PropertyFilter.svelte +0 -244
- package/dist/layout/PropertyFilter.svelte.d.ts +0 -24
- package/dist/layout/SettingsSection.svelte +0 -148
- package/dist/layout/SettingsSection.svelte.d.ts +0 -17
- package/dist/layout/SubpageGrid.svelte +0 -82
- package/dist/layout/SubpageGrid.svelte.d.ts +0 -14
- package/dist/layout/fullscreen.d.ts +0 -9
- package/dist/layout/fullscreen.js +0 -53
- package/dist/layout/index.d.ts +0 -10
- package/dist/layout/index.js +0 -8
- package/dist/layout/json-tree/JsonNode.svelte +0 -547
- package/dist/layout/json-tree/JsonNode.svelte.d.ts +0 -11
- package/dist/layout/json-tree/JsonTree.svelte +0 -1222
- package/dist/layout/json-tree/JsonTree.svelte.d.ts +0 -6
- package/dist/layout/json-tree/JsonValue.svelte +0 -334
- package/dist/layout/json-tree/JsonValue.svelte.d.ts +0 -9
- package/dist/layout/json-tree/index.d.ts +0 -3
- package/dist/layout/json-tree/index.js +0 -3
- package/dist/layout/json-tree/types.d.ts +0 -73
- package/dist/layout/json-tree/types.js +0 -3
- package/dist/layout/json-tree/utils.d.ts +0 -29
- package/dist/layout/json-tree/utils.js +0 -648
- package/dist/marching-cubes.d.ts +0 -14
- package/dist/marching-cubes.js +0 -542
- package/dist/math.d.ts +0 -91
- package/dist/math.js +0 -896
- package/dist/overlays/ContextMenu.svelte +0 -162
- package/dist/overlays/ContextMenu.svelte.d.ts +0 -25
- package/dist/overlays/DraggablePane.svelte +0 -564
- package/dist/overlays/DraggablePane.svelte.d.ts +0 -36
- package/dist/overlays/index.d.ts +0 -2
- package/dist/overlays/index.js +0 -2
- package/dist/periodic-table/PeriodicTable.svelte +0 -469
- package/dist/periodic-table/PeriodicTable.svelte.d.ts +0 -55
- package/dist/periodic-table/PeriodicTableControls.svelte +0 -557
- package/dist/periodic-table/PeriodicTableControls.svelte.d.ts +0 -24
- package/dist/periodic-table/PropertySelect.svelte +0 -37
- package/dist/periodic-table/PropertySelect.svelte.d.ts +0 -13
- package/dist/periodic-table/TableInset.svelte.d.ts +0 -9
- package/dist/periodic-table/index.d.ts +0 -10
- package/dist/periodic-table/index.js +0 -4
- package/dist/phase-diagram/IsobaricBinaryPhaseDiagram.svelte +0 -1086
- package/dist/phase-diagram/IsobaricBinaryPhaseDiagram.svelte.d.ts +0 -44
- package/dist/phase-diagram/PhaseDiagramControls.svelte +0 -451
- package/dist/phase-diagram/PhaseDiagramControls.svelte.d.ts +0 -30
- package/dist/phase-diagram/PhaseDiagramEditorPane.svelte +0 -126
- package/dist/phase-diagram/PhaseDiagramEditorPane.svelte.d.ts +0 -15
- package/dist/phase-diagram/PhaseDiagramExportPane.svelte +0 -192
- package/dist/phase-diagram/PhaseDiagramExportPane.svelte.d.ts +0 -19
- package/dist/phase-diagram/PhaseDiagramTooltip.svelte +0 -392
- package/dist/phase-diagram/PhaseDiagramTooltip.svelte.d.ts +0 -16
- package/dist/phase-diagram/TdbInfoPanel.svelte +0 -203
- package/dist/phase-diagram/TdbInfoPanel.svelte.d.ts +0 -12
- package/dist/phase-diagram/build-diagram.d.ts +0 -11
- package/dist/phase-diagram/build-diagram.js +0 -167
- package/dist/phase-diagram/colors.d.ts +0 -35
- package/dist/phase-diagram/colors.js +0 -51
- package/dist/phase-diagram/diagram-input.d.ts +0 -33
- package/dist/phase-diagram/diagram-input.js +0 -3
- package/dist/phase-diagram/index.d.ts +0 -13
- package/dist/phase-diagram/index.js +0 -13
- package/dist/phase-diagram/parse.d.ts +0 -55
- package/dist/phase-diagram/parse.js +0 -276
- package/dist/phase-diagram/svg-to-diagram.d.ts +0 -2
- package/dist/phase-diagram/svg-to-diagram.js +0 -869
- package/dist/phase-diagram/types.d.ts +0 -99
- package/dist/phase-diagram/types.js +0 -1
- package/dist/phase-diagram/utils.d.ts +0 -118
- package/dist/phase-diagram/utils.js +0 -606
- package/dist/plot/AxisLabel.svelte +0 -51
- package/dist/plot/AxisLabel.svelte.d.ts +0 -16
- package/dist/plot/BarPlot.svelte +0 -2256
- package/dist/plot/BarPlot.svelte.d.ts +0 -82
- package/dist/plot/BarPlotControls.svelte +0 -66
- package/dist/plot/BarPlotControls.svelte.d.ts +0 -18
- package/dist/plot/ColorBar.svelte +0 -719
- package/dist/plot/ColorBar.svelte.d.ts +0 -31
- package/dist/plot/ColorScaleSelect.svelte +0 -54
- package/dist/plot/ColorScaleSelect.svelte.d.ts +0 -15
- package/dist/plot/ElementScatter.svelte +0 -63
- package/dist/plot/ElementScatter.svelte.d.ts +0 -14
- package/dist/plot/FillArea.svelte +0 -226
- package/dist/plot/FillArea.svelte.d.ts +0 -20
- package/dist/plot/Histogram.svelte +0 -1654
- package/dist/plot/Histogram.svelte.d.ts +0 -50
- package/dist/plot/HistogramControls.svelte +0 -212
- package/dist/plot/HistogramControls.svelte.d.ts +0 -22
- package/dist/plot/InteractiveAxisLabel.svelte +0 -94
- package/dist/plot/InteractiveAxisLabel.svelte.d.ts +0 -14
- package/dist/plot/Line.svelte +0 -85
- package/dist/plot/Line.svelte.d.ts +0 -15
- package/dist/plot/PlotControls.svelte +0 -537
- package/dist/plot/PlotControls.svelte.d.ts +0 -4
- package/dist/plot/PlotLegend.svelte +0 -498
- package/dist/plot/PlotLegend.svelte.d.ts +0 -25
- package/dist/plot/PlotTooltip.svelte +0 -67
- package/dist/plot/PlotTooltip.svelte.d.ts +0 -17
- package/dist/plot/PortalSelect.svelte +0 -253
- package/dist/plot/PortalSelect.svelte.d.ts +0 -16
- package/dist/plot/ReferenceLine.svelte.d.ts +0 -20
- package/dist/plot/ReferenceLine3D.svelte +0 -154
- package/dist/plot/ReferenceLine3D.svelte.d.ts +0 -14
- package/dist/plot/ReferencePlane.svelte +0 -178
- package/dist/plot/ReferencePlane.svelte.d.ts +0 -14
- package/dist/plot/ScatterPlot.svelte +0 -2831
- package/dist/plot/ScatterPlot.svelte.d.ts +0 -92
- package/dist/plot/ScatterPlot3D.svelte +0 -499
- package/dist/plot/ScatterPlot3D.svelte.d.ts +0 -94
- package/dist/plot/ScatterPlot3DControls.svelte +0 -437
- package/dist/plot/ScatterPlot3DControls.svelte.d.ts +0 -20
- package/dist/plot/ScatterPlot3DScene.svelte +0 -912
- package/dist/plot/ScatterPlot3DScene.svelte.d.ts +0 -74
- package/dist/plot/ScatterPlotControls.svelte +0 -307
- package/dist/plot/ScatterPlotControls.svelte.d.ts +0 -17
- package/dist/plot/ScatterPoint.svelte +0 -185
- package/dist/plot/ScatterPoint.svelte.d.ts +0 -19
- package/dist/plot/SpacegroupBarPlot.svelte +0 -292
- package/dist/plot/SpacegroupBarPlot.svelte.d.ts +0 -9
- package/dist/plot/Surface3D.svelte +0 -200
- package/dist/plot/Surface3D.svelte.d.ts +0 -13
- package/dist/plot/ZeroLines.svelte +0 -96
- package/dist/plot/ZeroLines.svelte.d.ts +0 -32
- package/dist/plot/ZoomRect.svelte +0 -23
- package/dist/plot/ZoomRect.svelte.d.ts +0 -8
- package/dist/plot/axis-utils.d.ts +0 -19
- package/dist/plot/axis-utils.js +0 -80
- package/dist/plot/data-cleaning.d.ts +0 -37
- package/dist/plot/data-cleaning.js +0 -855
- package/dist/plot/data-transform.d.ts +0 -16
- package/dist/plot/data-transform.js +0 -45
- package/dist/plot/defaults.d.ts +0 -19
- package/dist/plot/defaults.js +0 -9
- package/dist/plot/fill-utils.d.ts +0 -51
- package/dist/plot/fill-utils.js +0 -337
- package/dist/plot/hover-lock.svelte.d.ts +0 -14
- package/dist/plot/hover-lock.svelte.js +0 -46
- package/dist/plot/index.d.ts +0 -43
- package/dist/plot/index.js +0 -37
- package/dist/plot/interactions.d.ts +0 -12
- package/dist/plot/interactions.js +0 -100
- package/dist/plot/layout.d.ts +0 -60
- package/dist/plot/layout.js +0 -230
- package/dist/plot/reference-line.d.ts +0 -60
- package/dist/plot/reference-line.js +0 -316
- package/dist/plot/scales.d.ts +0 -48
- package/dist/plot/scales.js +0 -484
- package/dist/plot/svg.d.ts +0 -1
- package/dist/plot/svg.js +0 -11
- package/dist/plot/types.d.ts +0 -863
- package/dist/plot/types.js +0 -103
- package/dist/plot/utils/label-placement.d.ts +0 -47
- package/dist/plot/utils/label-placement.js +0 -256
- package/dist/plot/utils/series-visibility.d.ts +0 -9
- package/dist/plot/utils/series-visibility.js +0 -67
- package/dist/plot/utils.d.ts +0 -1
- package/dist/plot/utils.js +0 -14
- package/dist/rdf/RdfPlot.svelte +0 -247
- package/dist/rdf/RdfPlot.svelte.d.ts +0 -27
- package/dist/rdf/calc-rdf.d.ts +0 -4
- package/dist/rdf/calc-rdf.js +0 -111
- package/dist/rdf/index.d.ts +0 -23
- package/dist/rdf/index.js +0 -2
- package/dist/sanitize.d.ts +0 -4
- package/dist/sanitize.js +0 -107
- package/dist/settings.d.ts +0 -253
- package/dist/settings.js +0 -1123
- package/dist/spectral/Bands.svelte +0 -1040
- package/dist/spectral/Bands.svelte.d.ts +0 -40
- package/dist/spectral/BandsAndDos.svelte +0 -128
- package/dist/spectral/BandsAndDos.svelte.d.ts +0 -18
- package/dist/spectral/BrillouinBandsDos.svelte +0 -248
- package/dist/spectral/BrillouinBandsDos.svelte.d.ts +0 -20
- package/dist/spectral/Dos.svelte +0 -697
- package/dist/spectral/Dos.svelte.d.ts +0 -29
- package/dist/spectral/helpers.d.ts +0 -117
- package/dist/spectral/helpers.js +0 -1023
- package/dist/spectral/index.d.ts +0 -6
- package/dist/spectral/index.js +0 -7
- package/dist/spectral/types.d.ts +0 -84
- package/dist/spectral/types.js +0 -2
- package/dist/state.svelte.d.ts +0 -25
- package/dist/state.svelte.js +0 -45
- package/dist/structure/Arrow.svelte +0 -72
- package/dist/structure/Arrow.svelte.d.ts +0 -15
- package/dist/structure/AtomLegend.svelte +0 -798
- package/dist/structure/AtomLegend.svelte.d.ts +0 -34
- package/dist/structure/Bond.svelte +0 -140
- package/dist/structure/Bond.svelte.d.ts +0 -9
- package/dist/structure/CanvasTooltip.svelte +0 -33
- package/dist/structure/CanvasTooltip.svelte.d.ts +0 -12
- package/dist/structure/CellSelect.svelte +0 -351
- package/dist/structure/CellSelect.svelte.d.ts +0 -13
- package/dist/structure/Cylinder.svelte +0 -45
- package/dist/structure/Cylinder.svelte.d.ts +0 -10
- package/dist/structure/Lattice.svelte +0 -196
- package/dist/structure/Lattice.svelte.d.ts +0 -17
- package/dist/structure/Structure.svelte +0 -1857
- package/dist/structure/Structure.svelte.d.ts +0 -83
- package/dist/structure/StructureControls.svelte +0 -1184
- package/dist/structure/StructureControls.svelte.d.ts +0 -31
- package/dist/structure/StructureExportPane.svelte +0 -251
- package/dist/structure/StructureExportPane.svelte.d.ts +0 -17
- package/dist/structure/StructureInfoPane.svelte +0 -434
- package/dist/structure/StructureInfoPane.svelte.d.ts +0 -18
- package/dist/structure/StructureScene.svelte +0 -1574
- package/dist/structure/StructureScene.svelte.d.ts +0 -104
- package/dist/structure/atom-properties.d.ts +0 -37
- package/dist/structure/atom-properties.js +0 -198
- package/dist/structure/bonding.d.ts +0 -33
- package/dist/structure/bonding.js +0 -304
- package/dist/structure/export.d.ts +0 -20
- package/dist/structure/export.js +0 -725
- package/dist/structure/ferrox-wasm-types.d.ts +0 -46
- package/dist/structure/ferrox-wasm-types.js +0 -18
- package/dist/structure/ferrox-wasm.d.ts +0 -94
- package/dist/structure/ferrox-wasm.js +0 -249
- package/dist/structure/index.d.ts +0 -110
- package/dist/structure/index.js +0 -168
- package/dist/structure/measure.d.ts +0 -6
- package/dist/structure/measure.js +0 -29
- package/dist/structure/parse.d.ts +0 -65
- package/dist/structure/parse.js +0 -1374
- package/dist/structure/partial-occupancy.d.ts +0 -25
- package/dist/structure/partial-occupancy.js +0 -99
- package/dist/structure/pbc.d.ts +0 -9
- package/dist/structure/pbc.js +0 -123
- package/dist/structure/supercell.d.ts +0 -8
- package/dist/structure/supercell.js +0 -137
- package/dist/structure/validation.d.ts +0 -2
- package/dist/structure/validation.js +0 -10
- package/dist/symmetry/SymmetryStats.svelte +0 -226
- package/dist/symmetry/SymmetryStats.svelte.d.ts +0 -21
- package/dist/symmetry/WyckoffTable.svelte +0 -113
- package/dist/symmetry/WyckoffTable.svelte.d.ts +0 -11
- package/dist/symmetry/cell-transform.d.ts +0 -12
- package/dist/symmetry/cell-transform.js +0 -77
- package/dist/symmetry/index.d.ts +0 -43
- package/dist/symmetry/index.js +0 -229
- package/dist/symmetry/spacegroups.d.ts +0 -9
- package/dist/symmetry/spacegroups.js +0 -394
- package/dist/table/HeatmapTable.svelte +0 -1854
- package/dist/table/HeatmapTable.svelte.d.ts +0 -49
- package/dist/table/ToggleMenu.svelte +0 -376
- package/dist/table/ToggleMenu.svelte.d.ts +0 -11
- package/dist/table/index.d.ts +0 -74
- package/dist/table/index.js +0 -38
- package/dist/theme/ThemeControl.svelte +0 -53
- package/dist/theme/ThemeControl.svelte.d.ts +0 -9
- package/dist/theme/index.d.ts +0 -29
- package/dist/theme/index.js +0 -79
- package/dist/theme/themes.mjs +0 -285
- package/dist/time.d.ts +0 -4
- package/dist/time.js +0 -70
- package/dist/tooltip/TooltipContent.svelte +0 -58
- package/dist/tooltip/TooltipContent.svelte.d.ts +0 -31
- package/dist/tooltip/index.d.ts +0 -2
- package/dist/tooltip/index.js +0 -2
- package/dist/tooltip/types.d.ts +0 -8
- package/dist/tooltip/types.js +0 -1
- package/dist/trajectory/Trajectory.svelte +0 -1517
- package/dist/trajectory/Trajectory.svelte.d.ts +0 -77
- package/dist/trajectory/TrajectoryError.svelte +0 -128
- package/dist/trajectory/TrajectoryError.svelte.d.ts +0 -13
- package/dist/trajectory/TrajectoryExportPane.svelte +0 -357
- package/dist/trajectory/TrajectoryExportPane.svelte.d.ts +0 -17
- package/dist/trajectory/TrajectoryInfoPane.svelte +0 -387
- package/dist/trajectory/TrajectoryInfoPane.svelte.d.ts +0 -17
- package/dist/trajectory/constants.d.ts +0 -6
- package/dist/trajectory/constants.js +0 -7
- package/dist/trajectory/extract.d.ts +0 -5
- package/dist/trajectory/extract.js +0 -162
- package/dist/trajectory/format-detect.d.ts +0 -9
- package/dist/trajectory/format-detect.js +0 -76
- package/dist/trajectory/frame-reader.d.ts +0 -17
- package/dist/trajectory/frame-reader.js +0 -332
- package/dist/trajectory/helpers.d.ts +0 -14
- package/dist/trajectory/helpers.js +0 -172
- package/dist/trajectory/index.d.ts +0 -63
- package/dist/trajectory/index.js +0 -126
- package/dist/trajectory/parse/ase.d.ts +0 -2
- package/dist/trajectory/parse/ase.js +0 -77
- package/dist/trajectory/parse/hdf5.d.ts +0 -2
- package/dist/trajectory/parse/hdf5.js +0 -129
- package/dist/trajectory/parse/index.d.ts +0 -12
- package/dist/trajectory/parse/index.js +0 -299
- package/dist/trajectory/parse/lammps.d.ts +0 -5
- package/dist/trajectory/parse/lammps.js +0 -179
- package/dist/trajectory/parse/vasp.d.ts +0 -2
- package/dist/trajectory/parse/vasp.js +0 -68
- package/dist/trajectory/parse/xyz.d.ts +0 -2
- package/dist/trajectory/parse/xyz.js +0 -110
- package/dist/trajectory/plotting.d.ts +0 -28
- package/dist/trajectory/plotting.js +0 -423
- package/dist/trajectory/types.d.ts +0 -11
- package/dist/trajectory/types.js +0 -1
- package/dist/utils.d.ts +0 -5
- package/dist/utils.js +0 -36
- package/dist/xrd/XrdPlot.svelte +0 -615
- package/dist/xrd/XrdPlot.svelte.d.ts +0 -28
- package/dist/xrd/broadening.d.ts +0 -20
- package/dist/xrd/broadening.js +0 -97
- package/dist/xrd/calc-xrd.d.ts +0 -37
- package/dist/xrd/calc-xrd.js +0 -337
- package/dist/xrd/index.d.ts +0 -37
- package/dist/xrd/index.js +0 -4
- package/dist/xrd/parse.d.ts +0 -13
- package/dist/xrd/parse.js +0 -749
- /package/dist/{EmptyState.svelte → src/lib/EmptyState.svelte} +0 -0
- /package/dist/{Icon.svelte → src/lib/Icon.svelte} +0 -0
- /package/dist/{chempot-diagram → src/lib/chempot-diagram}/ChemPotScene3D.svelte +0 -0
- /package/dist/{colors → src/lib/colors}/alloy-colors.json +0 -0
- /package/dist/{colors → src/lib/colors}/dark-mode-colors.json +0 -0
- /package/dist/{colors → src/lib/colors}/jmol-colors.json +0 -0
- /package/dist/{colors → src/lib/colors}/muted-colors.json +0 -0
- /package/dist/{colors → src/lib/colors}/pastel-colors.json +0 -0
- /package/dist/{colors → src/lib/colors}/vesta-colors.json +0 -0
- /package/dist/{element → src/lib/element}/Nucleus.svelte +0 -0
- /package/dist/{element → src/lib/element}/data.json +0 -0
- /package/dist/{element → src/lib/element}/data.json.gz +0 -0
- /package/dist/{element → src/lib/element}/data.schema.json +0 -0
- /package/dist/{element-image-urls.json → src/lib/element-image-urls.json} +0 -0
- /package/dist/{feedback → src/lib/feedback}/Spinner.svelte +0 -0
- /package/dist/{feedback → src/lib/feedback}/StatusMessage.svelte +0 -0
- /package/dist/{periodic-table → src/lib/periodic-table}/TableInset.svelte +0 -0
- /package/dist/{plot → src/lib/plot}/ReferenceLine.svelte +0 -0
- /package/dist/{xrd → src/lib/xrd}/atomic_scattering_params.json +0 -0
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import type { CellSnippet, ExportData, InitialSort, Label, Pagination, RowData, Search, SortHint, SpecialCells } from './';
|
|
2
|
-
import type { Snippet } from 'svelte';
|
|
3
|
-
import type { HTMLAttributes } from 'svelte/elements';
|
|
4
|
-
type $$ComponentProps = HTMLAttributes<HTMLDivElement> & {
|
|
5
|
-
data: RowData[];
|
|
6
|
-
columns?: Label[];
|
|
7
|
-
sort_hint?: SortHint;
|
|
8
|
-
cell?: CellSnippet;
|
|
9
|
-
special_cells?: SpecialCells;
|
|
10
|
-
controls?: Snippet;
|
|
11
|
-
initial_sort?: InitialSort;
|
|
12
|
-
sort?: {
|
|
13
|
-
column: string;
|
|
14
|
-
dir: `asc` | `desc`;
|
|
15
|
-
};
|
|
16
|
-
fixed_header?: boolean;
|
|
17
|
-
default_num_format?: string;
|
|
18
|
-
show_heatmap?: boolean;
|
|
19
|
-
heatmap_class?: string;
|
|
20
|
-
onrowclick?: (event: MouseEvent | KeyboardEvent, row: RowData) => void;
|
|
21
|
-
onrowdblclick?: (event: MouseEvent, row: RowData) => void;
|
|
22
|
-
column_order?: string[];
|
|
23
|
-
export_data?: ExportData;
|
|
24
|
-
show_column_toggle?: boolean;
|
|
25
|
-
search?: Search;
|
|
26
|
-
show_row_select?: boolean;
|
|
27
|
-
pagination?: Pagination;
|
|
28
|
-
selected_rows?: RowData[];
|
|
29
|
-
hidden_columns?: string[];
|
|
30
|
-
scroll_style?: string;
|
|
31
|
-
root_style?: string;
|
|
32
|
-
onsort?: (column: string, dir: `asc` | `desc`) => Promise<RowData[]>;
|
|
33
|
-
onsorterror?: (error: unknown, column: string, dir: `asc` | `desc`) => void;
|
|
34
|
-
loading?: boolean;
|
|
35
|
-
sort_data?: boolean;
|
|
36
|
-
heatmap_opacity?: number;
|
|
37
|
-
empty_message?: string;
|
|
38
|
-
show_row_numbers?: boolean;
|
|
39
|
-
allow_better_toggle?: boolean;
|
|
40
|
-
show_controls?: boolean;
|
|
41
|
-
controls_open?: boolean;
|
|
42
|
-
header_cell?: Snippet<[{
|
|
43
|
-
col: Label;
|
|
44
|
-
}]>;
|
|
45
|
-
footer?: Snippet;
|
|
46
|
-
};
|
|
47
|
-
declare const HeatmapTable: import("svelte").Component<$$ComponentProps, {}, "sort" | "data" | "show_controls" | "controls_open" | "show_heatmap" | "column_order" | "selected_rows" | "hidden_columns" | "loading" | "heatmap_opacity">;
|
|
48
|
-
type HeatmapTable = ReturnType<typeof HeatmapTable>;
|
|
49
|
-
export default HeatmapTable;
|
|
@@ -1,376 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import Icon from '../Icon.svelte'
|
|
3
|
-
import { sanitize_html } from '../sanitize'
|
|
4
|
-
import type { Label } from './'
|
|
5
|
-
import { click_outside, tooltip } from 'svelte-multiselect/attachments'
|
|
6
|
-
import { slide } from 'svelte/transition'
|
|
7
|
-
|
|
8
|
-
let {
|
|
9
|
-
columns = $bindable([]),
|
|
10
|
-
column_panel_open = $bindable(false),
|
|
11
|
-
n_columns,
|
|
12
|
-
collapsed_sections = $bindable<string[]>([]),
|
|
13
|
-
on_reset,
|
|
14
|
-
}: {
|
|
15
|
-
columns: Label[]
|
|
16
|
-
column_panel_open?: boolean
|
|
17
|
-
// Number of grid columns for toggle layout
|
|
18
|
-
n_columns?: number
|
|
19
|
-
collapsed_sections?: string[]
|
|
20
|
-
// Called after reset with the section name (or undefined for global reset)
|
|
21
|
-
on_reset?: (section?: string) => void
|
|
22
|
-
} = $props()
|
|
23
|
-
|
|
24
|
-
const col_id = (col: Label) => col.key ?? col.label
|
|
25
|
-
|
|
26
|
-
// Snapshot default visibility when column set changes (new dataset).
|
|
27
|
-
// Compare by column keys to avoid re-snapshotting on internal columns = [...columns] reactivity.
|
|
28
|
-
// Intentionally non-reactive: mutated only inside snapshot_defaults() and compared manually.
|
|
29
|
-
let prev_col_keys = ``
|
|
30
|
-
let default_visibility: Record<string, boolean> = {}
|
|
31
|
-
function snapshot_defaults() {
|
|
32
|
-
default_visibility = {}
|
|
33
|
-
for (const col of columns) {
|
|
34
|
-
default_visibility[col_id(col)] = col.visible !== false
|
|
35
|
-
}
|
|
36
|
-
prev_col_keys = columns.map(col_id).join(`\0`)
|
|
37
|
-
}
|
|
38
|
-
snapshot_defaults()
|
|
39
|
-
|
|
40
|
-
$effect(() => {
|
|
41
|
-
const current_keys = columns.map(col_id).join(`\0`)
|
|
42
|
-
if (current_keys !== prev_col_keys) {
|
|
43
|
-
snapshot_defaults()
|
|
44
|
-
}
|
|
45
|
-
})
|
|
46
|
-
|
|
47
|
-
// Check if a column's visibility differs from its default
|
|
48
|
-
const is_changed = (col: Label) =>
|
|
49
|
-
(col.visible !== false) !== (default_visibility[col_id(col)] ?? true)
|
|
50
|
-
|
|
51
|
-
let has_any_changes = $derived(columns.some(is_changed))
|
|
52
|
-
|
|
53
|
-
// Reset columns to default visibility
|
|
54
|
-
function reset_columns(items: Label[]): void {
|
|
55
|
-
for (const col of items) {
|
|
56
|
-
col.visible = default_visibility[col_id(col)] ?? true
|
|
57
|
-
}
|
|
58
|
-
columns = [...columns]
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
function reset_all(): void {
|
|
62
|
-
reset_columns(columns)
|
|
63
|
-
on_reset?.()
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
function reset_section(section_name: string): void {
|
|
67
|
-
const section = sections.find((sec) => sec.name === section_name)
|
|
68
|
-
if (!section) return
|
|
69
|
-
reset_columns(section.items)
|
|
70
|
-
on_reset?.(section_name)
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// Group columns by their group property
|
|
74
|
-
let sections = $derived.by(() => {
|
|
75
|
-
const grouped: Record<string, Label[]> = {}
|
|
76
|
-
const ungrouped: Label[] = []
|
|
77
|
-
|
|
78
|
-
for (const col of columns) {
|
|
79
|
-
if (col.group) {
|
|
80
|
-
grouped[col.group] ??= []
|
|
81
|
-
grouped[col.group].push(col)
|
|
82
|
-
} else {
|
|
83
|
-
ungrouped.push(col)
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
const result = Object.entries(grouped).map(([name, items]) => ({ name, items }))
|
|
88
|
-
if (ungrouped.length > 0) result.push({ name: ``, items: ungrouped })
|
|
89
|
-
return result
|
|
90
|
-
})
|
|
91
|
-
|
|
92
|
-
// Check if any column defines a group (to decide whether to show sections)
|
|
93
|
-
let has_sections = $derived(columns.some((col) => col.group))
|
|
94
|
-
|
|
95
|
-
function toggle_section(name: string) {
|
|
96
|
-
collapsed_sections = collapsed_sections.includes(name)
|
|
97
|
-
? collapsed_sections.filter((s) => s !== name)
|
|
98
|
-
: [...collapsed_sections, name]
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
function toggle_column_visibility(col: Label, event: Event) {
|
|
102
|
-
if (!(event.target instanceof HTMLInputElement)) return
|
|
103
|
-
col.visible = event.target.checked
|
|
104
|
-
columns = [...columns] // trigger reactivity on parent binding
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// Grid template for section items
|
|
108
|
-
let grid_template = $derived(
|
|
109
|
-
n_columns
|
|
110
|
-
? `repeat(${n_columns}, max-content)`
|
|
111
|
-
: `repeat(auto-fill, minmax(135px, 1fr))`,
|
|
112
|
-
)
|
|
113
|
-
|
|
114
|
-
// Reposition dropdown: left-aligned by default, switch to right if it overflows viewport
|
|
115
|
-
let details_el: HTMLElement | undefined
|
|
116
|
-
$effect(() => {
|
|
117
|
-
if (!column_panel_open || !details_el) return
|
|
118
|
-
// Re-run when section state changes while open
|
|
119
|
-
void n_columns
|
|
120
|
-
void collapsed_sections
|
|
121
|
-
void sections
|
|
122
|
-
const dropdown = details_el.querySelector<HTMLElement>(
|
|
123
|
-
`.column-menu, .sections-container`,
|
|
124
|
-
)
|
|
125
|
-
if (!dropdown) return
|
|
126
|
-
// Reset to left-aligned
|
|
127
|
-
dropdown.style.left = `0`
|
|
128
|
-
dropdown.style.right = `auto`
|
|
129
|
-
requestAnimationFrame(() => {
|
|
130
|
-
const rect = dropdown.getBoundingClientRect()
|
|
131
|
-
if (rect.right > window.innerWidth) {
|
|
132
|
-
dropdown.style.left = `auto`
|
|
133
|
-
dropdown.style.right = `0`
|
|
134
|
-
}
|
|
135
|
-
})
|
|
136
|
-
})
|
|
137
|
-
</script>
|
|
138
|
-
|
|
139
|
-
{#snippet toggle_item(col: Label)}
|
|
140
|
-
<label
|
|
141
|
-
class="toggle-label"
|
|
142
|
-
class:disabled={col.disabled}
|
|
143
|
-
{@attach tooltip({ content: col.description })}
|
|
144
|
-
>
|
|
145
|
-
<input
|
|
146
|
-
type="checkbox"
|
|
147
|
-
checked={col.visible !== false}
|
|
148
|
-
disabled={col.disabled}
|
|
149
|
-
onchange={(event) => toggle_column_visibility(col, event)}
|
|
150
|
-
/>
|
|
151
|
-
{@html sanitize_html(col.label)}
|
|
152
|
-
</label>
|
|
153
|
-
{/snippet}
|
|
154
|
-
|
|
155
|
-
<svelte:window
|
|
156
|
-
onkeydown={(event) => {
|
|
157
|
-
if (event.key === `Escape` && column_panel_open) {
|
|
158
|
-
column_panel_open = false
|
|
159
|
-
event.preventDefault()
|
|
160
|
-
}
|
|
161
|
-
}}
|
|
162
|
-
/>
|
|
163
|
-
|
|
164
|
-
<details
|
|
165
|
-
class="column-toggles"
|
|
166
|
-
bind:this={details_el}
|
|
167
|
-
bind:open={column_panel_open}
|
|
168
|
-
{@attach click_outside({ callback: () => (column_panel_open = false) })}
|
|
169
|
-
>
|
|
170
|
-
<summary aria-expanded={column_panel_open}>
|
|
171
|
-
Columns <Icon icon="Columns" />
|
|
172
|
-
{#if has_any_changes}
|
|
173
|
-
<button
|
|
174
|
-
class="reset-btn"
|
|
175
|
-
onclick={(event) => {
|
|
176
|
-
event.stopPropagation()
|
|
177
|
-
event.preventDefault()
|
|
178
|
-
reset_all()
|
|
179
|
-
}}
|
|
180
|
-
type="button"
|
|
181
|
-
aria-label="Reset all columns to defaults"
|
|
182
|
-
{@attach tooltip()}
|
|
183
|
-
>
|
|
184
|
-
<Icon icon="Reset" width="12px" />
|
|
185
|
-
</button>
|
|
186
|
-
{/if}
|
|
187
|
-
</summary>
|
|
188
|
-
|
|
189
|
-
{#if has_sections}
|
|
190
|
-
<div class="sections-container" role="group">
|
|
191
|
-
{#each sections as section (section.name)}
|
|
192
|
-
{@const is_collapsed = section.name !== `` &&
|
|
193
|
-
collapsed_sections.includes(section.name)}
|
|
194
|
-
<div class="section">
|
|
195
|
-
{#if section.name}
|
|
196
|
-
<div class="section-header-row">
|
|
197
|
-
<button
|
|
198
|
-
class="section-header"
|
|
199
|
-
aria-expanded={!is_collapsed}
|
|
200
|
-
onclick={() => toggle_section(section.name)}
|
|
201
|
-
type="button"
|
|
202
|
-
>
|
|
203
|
-
<span class="collapse-icon">{is_collapsed ? `▶` : `▼`}</span>
|
|
204
|
-
{section.name}
|
|
205
|
-
</button>
|
|
206
|
-
{#if section.items.some(is_changed)}
|
|
207
|
-
<button
|
|
208
|
-
class="reset-btn"
|
|
209
|
-
onclick={() => reset_section(section.name)}
|
|
210
|
-
type="button"
|
|
211
|
-
aria-label="Reset {section.name} to defaults"
|
|
212
|
-
{@attach tooltip()}
|
|
213
|
-
>
|
|
214
|
-
<Icon icon="Reset" width="12px" />
|
|
215
|
-
</button>
|
|
216
|
-
{/if}
|
|
217
|
-
</div>
|
|
218
|
-
{/if}
|
|
219
|
-
{#if !is_collapsed}
|
|
220
|
-
<div
|
|
221
|
-
class="section-items"
|
|
222
|
-
style:grid-template-columns={grid_template}
|
|
223
|
-
transition:slide={{ duration: 200 }}
|
|
224
|
-
>
|
|
225
|
-
{#each section.items as col, idx (col.key ?? col.label ?? idx)}
|
|
226
|
-
{@render toggle_item(col)}
|
|
227
|
-
{/each}
|
|
228
|
-
</div>
|
|
229
|
-
{/if}
|
|
230
|
-
</div>
|
|
231
|
-
{/each}
|
|
232
|
-
</div>
|
|
233
|
-
{:else}
|
|
234
|
-
<div class="column-menu" role="group" style:grid-template-columns={grid_template}>
|
|
235
|
-
{#each columns as col, idx (col.key ?? col.label ?? idx)}
|
|
236
|
-
{@render toggle_item(col)}
|
|
237
|
-
{/each}
|
|
238
|
-
</div>
|
|
239
|
-
{/if}
|
|
240
|
-
</details>
|
|
241
|
-
|
|
242
|
-
<style>
|
|
243
|
-
.column-toggles {
|
|
244
|
-
position: relative;
|
|
245
|
-
summary {
|
|
246
|
-
background: var(--tgl-btn-bg, var(--btn-bg));
|
|
247
|
-
padding: 0 6pt;
|
|
248
|
-
margin: 4pt 0;
|
|
249
|
-
border-radius: var(--tgl-border-radius, 4pt);
|
|
250
|
-
cursor: pointer;
|
|
251
|
-
display: flex;
|
|
252
|
-
align-items: center;
|
|
253
|
-
gap: 4px;
|
|
254
|
-
&:hover {
|
|
255
|
-
background: var(--tgl-hover-bg, var(--nav-bg));
|
|
256
|
-
}
|
|
257
|
-
&::-webkit-details-marker {
|
|
258
|
-
display: none;
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
/* Shared dropdown styling */
|
|
263
|
-
.column-menu,
|
|
264
|
-
.sections-container {
|
|
265
|
-
font-size: var(--tgl-font-size, 1.1em);
|
|
266
|
-
position: absolute;
|
|
267
|
-
left: 0;
|
|
268
|
-
top: calc(100% + 1pt);
|
|
269
|
-
background: var(--tgl-dropdown-bg, var(--page-bg));
|
|
270
|
-
border: 1px solid
|
|
271
|
-
var(--tgl-dropdown-border, color-mix(in srgb, currentColor 10%, transparent));
|
|
272
|
-
border-radius: var(--tgl-border-radius, 4pt);
|
|
273
|
-
box-shadow: var(
|
|
274
|
-
--tgl-dropdown-shadow,
|
|
275
|
-
0 4px 12px color-mix(in srgb, currentColor 8%, transparent)
|
|
276
|
-
);
|
|
277
|
-
min-width: 150px;
|
|
278
|
-
max-height: var(--tgl-dropdown-max-height, min(70vh, 600px));
|
|
279
|
-
overflow-y: auto;
|
|
280
|
-
z-index: 1;
|
|
281
|
-
}
|
|
282
|
-
.column-menu {
|
|
283
|
-
padding: 3pt 5pt;
|
|
284
|
-
display: grid;
|
|
285
|
-
}
|
|
286
|
-
.sections-container {
|
|
287
|
-
padding: 6pt 8pt;
|
|
288
|
-
display: flex;
|
|
289
|
-
flex-direction: column;
|
|
290
|
-
gap: 8px;
|
|
291
|
-
}
|
|
292
|
-
.reset-btn {
|
|
293
|
-
display: flex;
|
|
294
|
-
align-items: center;
|
|
295
|
-
justify-content: center;
|
|
296
|
-
padding: 2pt;
|
|
297
|
-
border: none;
|
|
298
|
-
border-radius: var(--tgl-border-radius, 3pt);
|
|
299
|
-
background: transparent;
|
|
300
|
-
cursor: pointer;
|
|
301
|
-
color: inherit;
|
|
302
|
-
opacity: 0.5;
|
|
303
|
-
flex-shrink: 0;
|
|
304
|
-
&:hover {
|
|
305
|
-
background: color-mix(in srgb, currentColor 12%, transparent);
|
|
306
|
-
opacity: 1;
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
summary .reset-btn {
|
|
310
|
-
margin-left: auto;
|
|
311
|
-
}
|
|
312
|
-
.section-header-row {
|
|
313
|
-
display: flex;
|
|
314
|
-
align-items: center;
|
|
315
|
-
gap: 4px;
|
|
316
|
-
margin-bottom: 4pt;
|
|
317
|
-
padding: 2pt 4pt;
|
|
318
|
-
border-radius: var(--tgl-border-radius, 3pt);
|
|
319
|
-
background: var(
|
|
320
|
-
--tgl-section-header-bg,
|
|
321
|
-
color-mix(in srgb, currentColor 5%, transparent)
|
|
322
|
-
);
|
|
323
|
-
&:hover {
|
|
324
|
-
background: var(
|
|
325
|
-
--tgl-section-header-hover-bg,
|
|
326
|
-
color-mix(in srgb, currentColor 12%, transparent)
|
|
327
|
-
);
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
.section-header {
|
|
331
|
-
display: flex;
|
|
332
|
-
align-items: center;
|
|
333
|
-
gap: 4px;
|
|
334
|
-
font-weight: 600;
|
|
335
|
-
font-size: 0.9em;
|
|
336
|
-
padding: 0;
|
|
337
|
-
border: none;
|
|
338
|
-
background: transparent;
|
|
339
|
-
cursor: pointer;
|
|
340
|
-
flex: 1;
|
|
341
|
-
text-align: left;
|
|
342
|
-
color: inherit;
|
|
343
|
-
}
|
|
344
|
-
.collapse-icon {
|
|
345
|
-
font-size: 0.7em;
|
|
346
|
-
width: 1em;
|
|
347
|
-
flex-shrink: 0;
|
|
348
|
-
}
|
|
349
|
-
.section-items {
|
|
350
|
-
display: grid;
|
|
351
|
-
}
|
|
352
|
-
.toggle-label {
|
|
353
|
-
display: inline-block;
|
|
354
|
-
margin: 1px 2px;
|
|
355
|
-
border-radius: 3px;
|
|
356
|
-
line-height: 1.3em;
|
|
357
|
-
height: 1.3em;
|
|
358
|
-
white-space: nowrap;
|
|
359
|
-
overflow: hidden;
|
|
360
|
-
text-overflow: ellipsis;
|
|
361
|
-
&:hover:not(.disabled) {
|
|
362
|
-
background: var(--tgl-hover-bg, var(--nav-bg));
|
|
363
|
-
}
|
|
364
|
-
&.disabled {
|
|
365
|
-
opacity: 0.5;
|
|
366
|
-
cursor: not-allowed;
|
|
367
|
-
input {
|
|
368
|
-
cursor: not-allowed;
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
details :global(:is(sub, sup)) {
|
|
373
|
-
transform: translate(-3pt, 6pt);
|
|
374
|
-
font-size: 0.7em;
|
|
375
|
-
}
|
|
376
|
-
</style>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Label } from './';
|
|
2
|
-
type $$ComponentProps = {
|
|
3
|
-
columns: Label[];
|
|
4
|
-
column_panel_open?: boolean;
|
|
5
|
-
n_columns?: number;
|
|
6
|
-
collapsed_sections?: string[];
|
|
7
|
-
on_reset?: (section?: string) => void;
|
|
8
|
-
};
|
|
9
|
-
declare const ToggleMenu: import("svelte").Component<$$ComponentProps, {}, "columns" | "column_panel_open" | "collapsed_sections">;
|
|
10
|
-
type ToggleMenu = ReturnType<typeof ToggleMenu>;
|
|
11
|
-
export default ToggleMenu;
|
package/dist/table/index.d.ts
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import * as d3sc from 'd3-scale-chromatic';
|
|
2
|
-
import type { Snippet } from 'svelte';
|
|
3
|
-
export { default as HeatmapTable } from './HeatmapTable.svelte';
|
|
4
|
-
export { default as ToggleMenu } from './ToggleMenu.svelte';
|
|
5
|
-
export type CellVal = string | number | boolean | undefined | null | Record<string, unknown> | {
|
|
6
|
-
[key: string]: string | number | null | undefined | boolean;
|
|
7
|
-
}[];
|
|
8
|
-
export type RowData = {
|
|
9
|
-
style?: string;
|
|
10
|
-
class?: string;
|
|
11
|
-
[key: string]: CellVal;
|
|
12
|
-
};
|
|
13
|
-
export type Label = {
|
|
14
|
-
label: string;
|
|
15
|
-
key?: string;
|
|
16
|
-
group?: string;
|
|
17
|
-
description?: string;
|
|
18
|
-
format?: string;
|
|
19
|
-
better?: `higher` | `lower`;
|
|
20
|
-
color_scale?: keyof typeof d3sc | null;
|
|
21
|
-
scale_type?: `linear` | `log`;
|
|
22
|
-
sticky?: boolean;
|
|
23
|
-
visible?: boolean;
|
|
24
|
-
sortable?: boolean;
|
|
25
|
-
show_sort_indicator?: boolean;
|
|
26
|
-
disabled?: boolean;
|
|
27
|
-
style?: string;
|
|
28
|
-
cell_style?: string;
|
|
29
|
-
};
|
|
30
|
-
export type CellSnippetArgs = {
|
|
31
|
-
row: RowData;
|
|
32
|
-
col: Label;
|
|
33
|
-
val: CellVal;
|
|
34
|
-
};
|
|
35
|
-
export type CellSnippet = Snippet<[CellSnippetArgs]>;
|
|
36
|
-
export type SpecialCells = Record<string, CellSnippet>;
|
|
37
|
-
export type SortState = {
|
|
38
|
-
column: string;
|
|
39
|
-
ascending: boolean;
|
|
40
|
-
};
|
|
41
|
-
export type MultiSortState = SortState[];
|
|
42
|
-
export type SortHint = string | {
|
|
43
|
-
text: string;
|
|
44
|
-
position?: `top` | `bottom`;
|
|
45
|
-
permanent?: boolean;
|
|
46
|
-
style?: string;
|
|
47
|
-
class?: string;
|
|
48
|
-
};
|
|
49
|
-
export type InitialSort = string | {
|
|
50
|
-
column: string;
|
|
51
|
-
direction?: `asc` | `desc`;
|
|
52
|
-
};
|
|
53
|
-
export type Pagination = boolean | {
|
|
54
|
-
page_size?: number;
|
|
55
|
-
page_sizes?: number[];
|
|
56
|
-
};
|
|
57
|
-
export type Search = boolean | {
|
|
58
|
-
placeholder?: string;
|
|
59
|
-
expanded?: boolean;
|
|
60
|
-
};
|
|
61
|
-
export type ExportData = boolean | {
|
|
62
|
-
formats?: (`csv` | `json`)[];
|
|
63
|
-
filename?: string;
|
|
64
|
-
};
|
|
65
|
-
export type OnSortCallback = (column: string, dir: `asc` | `desc`) => Promise<RowData[]>;
|
|
66
|
-
export declare const strip_html: (str: string) => string;
|
|
67
|
-
export declare function calc_cell_color(val: number | null | undefined, // cell value
|
|
68
|
-
all_values: CellVal[], // all values in the column
|
|
69
|
-
better: `higher` | `lower` | undefined, // sort direction
|
|
70
|
-
color_scale?: keyof typeof d3sc | null, // color scale name
|
|
71
|
-
scale_type?: `linear` | `log`): {
|
|
72
|
-
bg: string | null;
|
|
73
|
-
text: string | null;
|
|
74
|
-
};
|
package/dist/table/index.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { pick_contrast_color } from '../colors';
|
|
2
|
-
import { max, min } from 'd3-array';
|
|
3
|
-
import { scaleLog, scaleSequential } from 'd3-scale';
|
|
4
|
-
import * as d3sc from 'd3-scale-chromatic';
|
|
5
|
-
export { default as HeatmapTable } from './HeatmapTable.svelte';
|
|
6
|
-
export { default as ToggleMenu } from './ToggleMenu.svelte';
|
|
7
|
-
// Strip HTML tags from a string (for search, export, etc.)
|
|
8
|
-
export const strip_html = (str) => str.replace(/<[^>]*>/g, ``);
|
|
9
|
-
// Calculate table cell background color based on its value and column config
|
|
10
|
-
export function calc_cell_color(val, // cell value
|
|
11
|
-
all_values, // all values in the column
|
|
12
|
-
better, // sort direction
|
|
13
|
-
color_scale = `interpolateViridis`, // color scale name
|
|
14
|
-
scale_type = `linear`) {
|
|
15
|
-
// Skip color calculation for null/undefined/NaN values or if color_scale is null
|
|
16
|
-
if (val == null || Number.isNaN(val) || color_scale === null) {
|
|
17
|
-
return { bg: null, text: null };
|
|
18
|
-
}
|
|
19
|
-
// Log scale cannot handle non-positive values, return null colors
|
|
20
|
-
if (scale_type === `log` && val <= 0) {
|
|
21
|
-
return { bg: null, text: null };
|
|
22
|
-
}
|
|
23
|
-
const numeric_vals = all_values.filter((v) => typeof v === `number` && !Number.isNaN(v) && (scale_type === `log` ? v > 0 : true));
|
|
24
|
-
if (numeric_vals.length === 0)
|
|
25
|
-
return { bg: null, text: null };
|
|
26
|
-
const range = [min(numeric_vals) ?? 0, max(numeric_vals) ?? 1];
|
|
27
|
-
// Reverse the range if lower values are better
|
|
28
|
-
if (better === `lower`)
|
|
29
|
-
range.reverse();
|
|
30
|
-
// Get interpolator function, fallback to viridis if not a valid function
|
|
31
|
-
const scale_fn = d3sc[color_scale];
|
|
32
|
-
const interpolator = (typeof scale_fn === `function` ? scale_fn : d3sc.interpolateViridis);
|
|
33
|
-
// Use log scale for positive values, otherwise linear/sequential scale
|
|
34
|
-
const bg = scale_type === `log` && range[0] > 0 && range[1] > 0
|
|
35
|
-
? interpolator(scaleLog().domain(range).range([0, 1]).clamp(true)(val))
|
|
36
|
-
: scaleSequential().domain(range).interpolator(interpolator)(val);
|
|
37
|
-
return { bg, text: pick_contrast_color({ bg_color: bg }) };
|
|
38
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { theme_state } from '../state.svelte'
|
|
3
|
-
import type { HTMLAttributes } from 'svelte/elements'
|
|
4
|
-
import type { ThemeMode } from './index'
|
|
5
|
-
import { apply_theme_to_dom, save_theme_preference, THEME_OPTIONS } from './index'
|
|
6
|
-
|
|
7
|
-
let { theme_mode = $bindable(theme_state.mode), onchange = () => {}, ...rest }:
|
|
8
|
-
& Omit<HTMLAttributes<HTMLSelectElement>, `onchange`>
|
|
9
|
-
& {
|
|
10
|
-
theme_mode?: ThemeMode // Current theme mode (now bindable to global state)
|
|
11
|
-
onchange?: (mode: ThemeMode) => void // Callback when theme changes
|
|
12
|
-
} = $props()
|
|
13
|
-
|
|
14
|
-
$effect(() => { // Sync and save to local storage when theme changes
|
|
15
|
-
const prev = theme_state.mode
|
|
16
|
-
if (prev === theme_mode) return
|
|
17
|
-
theme_state.mode = theme_mode
|
|
18
|
-
save_theme_preference(theme_mode)
|
|
19
|
-
apply_theme_to_dom(theme_mode)
|
|
20
|
-
onchange(theme_mode)
|
|
21
|
-
})
|
|
22
|
-
</script>
|
|
23
|
-
|
|
24
|
-
<select bind:value={theme_mode} {...rest} class="theme-control {rest.class ?? ``}">
|
|
25
|
-
{#each THEME_OPTIONS as { label, icon, value } (value)}
|
|
26
|
-
<option {value}>{icon} {label}</option>
|
|
27
|
-
{/each}
|
|
28
|
-
</select>
|
|
29
|
-
|
|
30
|
-
<style>
|
|
31
|
-
.theme-control {
|
|
32
|
-
position: fixed;
|
|
33
|
-
bottom: 1em;
|
|
34
|
-
left: 1em;
|
|
35
|
-
z-index: var(--theme-control-z-index, 2);
|
|
36
|
-
background: var(--btn-bg);
|
|
37
|
-
border: var(--pane-border);
|
|
38
|
-
color: var(--text-color);
|
|
39
|
-
border-radius: var(--theme-control-border-radius, var(--border-radius, 3pt));
|
|
40
|
-
padding: var(--theme-control-padding, 1pt 2pt);
|
|
41
|
-
backdrop-filter: blur(10px);
|
|
42
|
-
transition: all 0.2s ease;
|
|
43
|
-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
44
|
-
}
|
|
45
|
-
.theme-control:hover {
|
|
46
|
-
background: var(--btn-bg-hover);
|
|
47
|
-
border: var(--pane-border);
|
|
48
|
-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
49
|
-
}
|
|
50
|
-
.theme-control:focus {
|
|
51
|
-
outline: 0.5px solid var(--accent-color);
|
|
52
|
-
}
|
|
53
|
-
</style>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
-
import type { ThemeMode } from './index';
|
|
3
|
-
type $$ComponentProps = Omit<HTMLAttributes<HTMLSelectElement>, `onchange`> & {
|
|
4
|
-
theme_mode?: ThemeMode;
|
|
5
|
-
onchange?: (mode: ThemeMode) => void;
|
|
6
|
-
};
|
|
7
|
-
declare const ThemeControl: import("svelte").Component<$$ComponentProps, {}, "theme_mode">;
|
|
8
|
-
type ThemeControl = ReturnType<typeof ThemeControl>;
|
|
9
|
-
export default ThemeControl;
|
package/dist/theme/index.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export declare const COLOR_THEMES: {
|
|
2
|
-
readonly light: "light";
|
|
3
|
-
readonly dark: "dark";
|
|
4
|
-
readonly white: "white";
|
|
5
|
-
readonly black: "black";
|
|
6
|
-
};
|
|
7
|
-
export declare const AUTO_THEME: "auto";
|
|
8
|
-
export type ThemeType = `light` | `dark`;
|
|
9
|
-
export declare const THEME_TYPE: Record<ThemeName, ThemeType>;
|
|
10
|
-
export type ThemeName = keyof typeof COLOR_THEMES;
|
|
11
|
-
export type ThemeMode = ThemeName | typeof AUTO_THEME;
|
|
12
|
-
export interface ThemeOption {
|
|
13
|
-
value: ThemeMode;
|
|
14
|
-
label: string;
|
|
15
|
-
icon: string;
|
|
16
|
-
}
|
|
17
|
-
export declare const THEME_OPTIONS: ThemeOption[];
|
|
18
|
-
export declare const is_valid_theme_mode: (value: string) => value is ThemeMode;
|
|
19
|
-
export declare const is_valid_theme_name: (value: string) => value is ThemeName;
|
|
20
|
-
export declare const resolve_theme_mode: (mode: ThemeMode, system_preference?: ThemeType) => ThemeName;
|
|
21
|
-
export declare const get_theme_preference: () => ThemeMode;
|
|
22
|
-
export declare const save_theme_preference: (mode: ThemeMode) => void;
|
|
23
|
-
export declare const get_system_mode: () => ThemeType;
|
|
24
|
-
export declare const apply_theme_to_dom: (mode: ThemeMode) => void;
|
|
25
|
-
export declare const light_theme: () => any;
|
|
26
|
-
export declare const dark_theme: () => any;
|
|
27
|
-
export declare const white_theme: () => any;
|
|
28
|
-
export declare const black_theme: () => any;
|
|
29
|
-
export declare const get_theme_by_name: (name: ThemeName) => any;
|