@ggts-sh/svelte 0.43.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/LICENSE +21 -0
- package/README.md +97 -0
- package/bin/ggts-codemod.js +47 -0
- package/dist/GGPlot.svelte +491 -0
- package/dist/GGPlot.svelte.d.ts +67 -0
- package/dist/a11y/CanvasA11y.svelte +115 -0
- package/dist/a11y/CanvasA11y.svelte.d.ts +15 -0
- package/dist/a11y/canvas-a11y.d.ts +1 -0
- package/dist/a11y/canvas-a11y.js +2 -0
- package/dist/assembly/assemble.d.ts +1 -0
- package/dist/assembly/assemble.js +1 -0
- package/dist/assembly/labels.d.ts +43 -0
- package/dist/assembly/labels.js +126 -0
- package/dist/assembly/layout.d.ts +158 -0
- package/dist/assembly/layout.js +175 -0
- package/dist/chrome/StatusChrome.svelte +125 -0
- package/dist/chrome/StatusChrome.svelte.d.ts +16 -0
- package/dist/chrome/ToolRail.svelte +293 -0
- package/dist/chrome/ToolRail.svelte.d.ts +26 -0
- package/dist/chrome/chrome-state.svelte.d.ts +63 -0
- package/dist/chrome/chrome-state.svelte.js +158 -0
- package/dist/chrome/theme-css.d.ts +16 -0
- package/dist/chrome/theme-css.js +16 -0
- package/dist/codemod/cli.d.ts +16 -0
- package/dist/codemod/cli.js +150 -0
- package/dist/codemod/edits.d.ts +28 -0
- package/dist/codemod/edits.js +36 -0
- package/dist/codemod/index.d.ts +10 -0
- package/dist/codemod/index.js +10 -0
- package/dist/codemod/migrate-plot-props-rewrite.d.ts +86 -0
- package/dist/codemod/migrate-plot-props-rewrite.js +228 -0
- package/dist/codemod/migrate-plot-props.d.ts +38 -0
- package/dist/codemod/migrate-plot-props.js +159 -0
- package/dist/coord/Coord.svelte +21 -0
- package/dist/coord/Coord.svelte.d.ts +16 -0
- package/dist/coord/CoordCartesian.svelte +11 -0
- package/dist/coord/CoordCartesian.svelte.d.ts +18 -0
- package/dist/coord/CoordFixed.svelte +17 -0
- package/dist/coord/CoordFixed.svelte.d.ts +10 -0
- package/dist/coord/CoordFlip.svelte +11 -0
- package/dist/coord/CoordFlip.svelte.d.ts +18 -0
- package/dist/coord/CoordPolar.svelte +16 -0
- package/dist/coord/CoordPolar.svelte.d.ts +9 -0
- package/dist/coord/CoordRadial.svelte +16 -0
- package/dist/coord/CoordRadial.svelte.d.ts +9 -0
- package/dist/coord/CoordSf.svelte +16 -0
- package/dist/coord/CoordSf.svelte.d.ts +9 -0
- package/dist/coord/CoordTransform.svelte +16 -0
- package/dist/coord/CoordTransform.svelte.d.ts +9 -0
- package/dist/data/index.d.ts +1 -0
- package/dist/data/index.js +2 -0
- package/dist/diagnostics/composition.d.ts +112 -0
- package/dist/diagnostics/composition.js +203 -0
- package/dist/diagnostics/deprecation.d.ts +58 -0
- package/dist/diagnostics/deprecation.js +27 -0
- package/dist/diagnostics/plot-engine-diagnostics.svelte.d.ts +44 -0
- package/dist/diagnostics/plot-engine-diagnostics.svelte.js +193 -0
- package/dist/facet/Facet.svelte +23 -0
- package/dist/facet/Facet.svelte.d.ts +16 -0
- package/dist/facet/FacetGrid.svelte +32 -0
- package/dist/facet/FacetGrid.svelte.d.ts +16 -0
- package/dist/facet/FacetWrap.svelte +32 -0
- package/dist/facet/FacetWrap.svelte.d.ts +16 -0
- package/dist/fonts/RobotoCondensed-Bold.ttf +0 -0
- package/dist/fonts/RobotoCondensed-Light.ttf +0 -0
- package/dist/fonts/RobotoCondensed-Regular.ttf +0 -0
- package/dist/fonts/THIRD_PARTY_NOTICES.txt +416 -0
- package/dist/geoms/GeomAbline.svelte +25 -0
- package/dist/geoms/GeomAbline.svelte.d.ts +7 -0
- package/dist/geoms/GeomArea.svelte +12 -0
- package/dist/geoms/GeomArea.svelte.d.ts +7 -0
- package/dist/geoms/GeomBar.svelte +12 -0
- package/dist/geoms/GeomBar.svelte.d.ts +7 -0
- package/dist/geoms/GeomBin2d.svelte +21 -0
- package/dist/geoms/GeomBin2d.svelte.d.ts +7 -0
- package/dist/geoms/GeomBlank.svelte +12 -0
- package/dist/geoms/GeomBlank.svelte.d.ts +7 -0
- package/dist/geoms/GeomBoxplot.svelte +25 -0
- package/dist/geoms/GeomBoxplot.svelte.d.ts +7 -0
- package/dist/geoms/GeomCol.svelte +12 -0
- package/dist/geoms/GeomCol.svelte.d.ts +7 -0
- package/dist/geoms/GeomContour.svelte +25 -0
- package/dist/geoms/GeomContour.svelte.d.ts +7 -0
- package/dist/geoms/GeomCount.svelte +12 -0
- package/dist/geoms/GeomCount.svelte.d.ts +7 -0
- package/dist/geoms/GeomCrossbar.svelte +25 -0
- package/dist/geoms/GeomCrossbar.svelte.d.ts +7 -0
- package/dist/geoms/GeomCurve.svelte +21 -0
- package/dist/geoms/GeomCurve.svelte.d.ts +7 -0
- package/dist/geoms/GeomDensity.svelte +25 -0
- package/dist/geoms/GeomDensity.svelte.d.ts +7 -0
- package/dist/geoms/GeomDensity2d.svelte +25 -0
- package/dist/geoms/GeomDensity2d.svelte.d.ts +7 -0
- package/dist/geoms/GeomDensity2dFilled.svelte +25 -0
- package/dist/geoms/GeomDensity2dFilled.svelte.d.ts +7 -0
- package/dist/geoms/GeomDotplot.svelte +25 -0
- package/dist/geoms/GeomDotplot.svelte.d.ts +7 -0
- package/dist/geoms/GeomErrorbar.svelte +25 -0
- package/dist/geoms/GeomErrorbar.svelte.d.ts +7 -0
- package/dist/geoms/GeomFreqpoly.svelte +25 -0
- package/dist/geoms/GeomFreqpoly.svelte.d.ts +7 -0
- package/dist/geoms/GeomFunction.svelte +25 -0
- package/dist/geoms/GeomFunction.svelte.d.ts +7 -0
- package/dist/geoms/GeomHex.svelte +21 -0
- package/dist/geoms/GeomHex.svelte.d.ts +7 -0
- package/dist/geoms/GeomHistogram.svelte +25 -0
- package/dist/geoms/GeomHistogram.svelte.d.ts +7 -0
- package/dist/geoms/GeomHline.svelte +12 -0
- package/dist/geoms/GeomHline.svelte.d.ts +7 -0
- package/dist/geoms/GeomJitter.svelte +35 -0
- package/dist/geoms/GeomJitter.svelte.d.ts +13 -0
- package/dist/geoms/GeomLabel.svelte +12 -0
- package/dist/geoms/GeomLabel.svelte.d.ts +7 -0
- package/dist/geoms/GeomLine.svelte +12 -0
- package/dist/geoms/GeomLine.svelte.d.ts +7 -0
- package/dist/geoms/GeomLinerange.svelte +25 -0
- package/dist/geoms/GeomLinerange.svelte.d.ts +7 -0
- package/dist/geoms/GeomMap.svelte +21 -0
- package/dist/geoms/GeomMap.svelte.d.ts +7 -0
- package/dist/geoms/GeomPath.svelte +12 -0
- package/dist/geoms/GeomPath.svelte.d.ts +7 -0
- package/dist/geoms/GeomPoint.svelte +12 -0
- package/dist/geoms/GeomPoint.svelte.d.ts +7 -0
- package/dist/geoms/GeomPointrange.svelte +25 -0
- package/dist/geoms/GeomPointrange.svelte.d.ts +7 -0
- package/dist/geoms/GeomPolygon.svelte +25 -0
- package/dist/geoms/GeomPolygon.svelte.d.ts +7 -0
- package/dist/geoms/GeomQq.svelte +21 -0
- package/dist/geoms/GeomQq.svelte.d.ts +7 -0
- package/dist/geoms/GeomQqLine.svelte +25 -0
- package/dist/geoms/GeomQqLine.svelte.d.ts +7 -0
- package/dist/geoms/GeomQuantile.svelte +25 -0
- package/dist/geoms/GeomQuantile.svelte.d.ts +7 -0
- package/dist/geoms/GeomRaster.svelte +25 -0
- package/dist/geoms/GeomRaster.svelte.d.ts +7 -0
- package/dist/geoms/GeomRect.svelte +12 -0
- package/dist/geoms/GeomRect.svelte.d.ts +7 -0
- package/dist/geoms/GeomRibbon.svelte +16 -0
- package/dist/geoms/GeomRibbon.svelte.d.ts +7 -0
- package/dist/geoms/GeomRug.svelte +21 -0
- package/dist/geoms/GeomRug.svelte.d.ts +7 -0
- package/dist/geoms/GeomRule.svelte +12 -0
- package/dist/geoms/GeomRule.svelte.d.ts +7 -0
- package/dist/geoms/GeomSegment.svelte +16 -0
- package/dist/geoms/GeomSegment.svelte.d.ts +7 -0
- package/dist/geoms/GeomSf.svelte +21 -0
- package/dist/geoms/GeomSf.svelte.d.ts +7 -0
- package/dist/geoms/GeomSfLabel.svelte +25 -0
- package/dist/geoms/GeomSfLabel.svelte.d.ts +7 -0
- package/dist/geoms/GeomSfText.svelte +25 -0
- package/dist/geoms/GeomSfText.svelte.d.ts +7 -0
- package/dist/geoms/GeomSmooth.svelte +25 -0
- package/dist/geoms/GeomSmooth.svelte.d.ts +7 -0
- package/dist/geoms/GeomSpoke.svelte +21 -0
- package/dist/geoms/GeomSpoke.svelte.d.ts +7 -0
- package/dist/geoms/GeomStep.svelte +12 -0
- package/dist/geoms/GeomStep.svelte.d.ts +7 -0
- package/dist/geoms/GeomText.svelte +12 -0
- package/dist/geoms/GeomText.svelte.d.ts +7 -0
- package/dist/geoms/GeomTile.svelte +21 -0
- package/dist/geoms/GeomTile.svelte.d.ts +7 -0
- package/dist/geoms/GeomViolin.svelte +25 -0
- package/dist/geoms/GeomViolin.svelte.d.ts +7 -0
- package/dist/geoms/GeomVline.svelte +12 -0
- package/dist/geoms/GeomVline.svelte.d.ts +7 -0
- package/dist/geoms/factory.svelte.d.ts +41 -0
- package/dist/geoms/factory.svelte.js +60 -0
- package/dist/geoms/registry.svelte.d.ts +71 -0
- package/dist/geoms/registry.svelte.js +177 -0
- package/dist/guides/GuideAxis.svelte +20 -0
- package/dist/guides/GuideAxis.svelte.d.ts +14 -0
- package/dist/guides/GuideColorbar.svelte +22 -0
- package/dist/guides/GuideColorbar.svelte.d.ts +13 -0
- package/dist/guides/GuideColorsteps.svelte +22 -0
- package/dist/guides/GuideColorsteps.svelte.d.ts +13 -0
- package/dist/guides/GuideLegend.svelte +90 -0
- package/dist/guides/GuideLegend.svelte.d.ts +37 -0
- package/dist/guides/GuideNone.svelte +19 -0
- package/dist/guides/GuideNone.svelte.d.ts +7 -0
- package/dist/guides/Guides.svelte +14 -0
- package/dist/guides/Guides.svelte.d.ts +13 -0
- package/dist/guides/factory.svelte.d.ts +36 -0
- package/dist/guides/factory.svelte.js +15 -0
- package/dist/index.d.ts +418 -0
- package/dist/index.js +376 -0
- package/dist/inspection/Inspect.svelte +71 -0
- package/dist/inspection/Inspect.svelte.d.ts +36 -0
- package/dist/inspection/Tooltip.svelte +439 -0
- package/dist/inspection/Tooltip.svelte.d.ts +32 -0
- package/dist/inspection/apply.d.ts +120 -0
- package/dist/inspection/apply.js +99 -0
- package/dist/inspection/coordinator.d.ts +51 -0
- package/dist/inspection/coordinator.js +354 -0
- package/dist/inspection/display-members.d.ts +1 -0
- package/dist/inspection/display-members.js +2 -0
- package/dist/inspection/frame.d.ts +90 -0
- package/dist/inspection/frame.js +76 -0
- package/dist/inspection/group-total.d.ts +1 -0
- package/dist/inspection/group-total.js +2 -0
- package/dist/inspection/inspect-guide-axes.d.ts +10 -0
- package/dist/inspection/inspect-guide-axes.js +24 -0
- package/dist/inspection/inspection-reconcile.svelte.d.ts +37 -0
- package/dist/inspection/inspection-reconcile.svelte.js +33 -0
- package/dist/inspection/inspection-state.svelte.d.ts +86 -0
- package/dist/inspection/inspection-state.svelte.js +347 -0
- package/dist/inspection/inspection-traversal.svelte.d.ts +29 -0
- package/dist/inspection/inspection-traversal.svelte.js +52 -0
- package/dist/inspection/pointer-inspect.d.ts +74 -0
- package/dist/inspection/pointer-inspect.js +158 -0
- package/dist/inspection/resolver.d.ts +3 -0
- package/dist/inspection/resolver.js +4 -0
- package/dist/inspection/teardown.d.ts +199 -0
- package/dist/inspection/teardown.js +181 -0
- package/dist/inspection/tooltip-chrome.d.ts +19 -0
- package/dist/inspection/tooltip-chrome.js +17 -0
- package/dist/inspection/tooltip-motion.d.ts +25 -0
- package/dist/inspection/tooltip-motion.js +32 -0
- package/dist/inspection/tooltip-presence.svelte.d.ts +49 -0
- package/dist/inspection/tooltip-presence.svelte.js +110 -0
- package/dist/inspection/tooltip-total.d.ts +1 -0
- package/dist/inspection/tooltip-total.js +2 -0
- package/dist/interaction/capability-resolution.svelte.d.ts +42 -0
- package/dist/interaction/capability-resolution.svelte.js +40 -0
- package/dist/interaction/capability.d.ts +129 -0
- package/dist/interaction/capability.js +134 -0
- package/dist/interaction/controller.svelte.d.ts +4 -0
- package/dist/interaction/controller.svelte.js +43 -0
- package/dist/interaction/inspect-geom-advisories.d.ts +10 -0
- package/dist/interaction/inspect-geom-advisories.js +10 -0
- package/dist/interaction/interaction-context.svelte.d.ts +57 -0
- package/dist/interaction/interaction-context.svelte.js +4 -0
- package/dist/interaction/interaction-diagnostics.d.ts +11 -0
- package/dist/interaction/interaction-diagnostics.js +173 -0
- package/dist/interaction/interaction-states.svelte.d.ts +84 -0
- package/dist/interaction/interaction-states.svelte.js +55 -0
- package/dist/interaction/interaction.d.ts +304 -0
- package/dist/interaction/interaction.js +7 -0
- package/dist/interaction/normalize-interaction-config.d.ts +9 -0
- package/dist/interaction/normalize-interaction-config.js +112 -0
- package/dist/interaction/reducer.d.ts +97 -0
- package/dist/interaction/reducer.js +117 -0
- package/dist/interaction/resolve-inspect-capability.d.ts +40 -0
- package/dist/interaction/resolve-inspect-capability.js +50 -0
- package/dist/interaction/scoped-store.svelte.d.ts +73 -0
- package/dist/interaction/scoped-store.svelte.js +93 -0
- package/dist/interaction/target.d.ts +91 -0
- package/dist/interaction/target.js +68 -0
- package/dist/interaction/transition-owner.d.ts +19 -0
- package/dist/interaction/transition-owner.js +10 -0
- package/dist/interaction/wiring-advisories.d.ts +33 -0
- package/dist/interaction/wiring-advisories.js +46 -0
- package/dist/interval/BoundsEditor.svelte +332 -0
- package/dist/interval/BoundsEditor.svelte.d.ts +10 -0
- package/dist/interval/bounds-editor.d.ts +1 -0
- package/dist/interval/bounds-editor.js +2 -0
- package/dist/interval/consumption.d.ts +1 -0
- package/dist/interval/consumption.js +2 -0
- package/dist/interval/interval-bounds-state.svelte.d.ts +53 -0
- package/dist/interval/interval-bounds-state.svelte.js +117 -0
- package/dist/interval/interval-state-helpers.d.ts +10 -0
- package/dist/interval/interval-state-helpers.js +34 -0
- package/dist/interval/interval-state.svelte.d.ts +60 -0
- package/dist/interval/interval-state.svelte.js +360 -0
- package/dist/interval/interval.d.ts +1 -0
- package/dist/interval/interval.js +2 -0
- package/dist/interval/precise-bounds.d.ts +1 -0
- package/dist/interval/precise-bounds.js +2 -0
- package/dist/interval/query.d.ts +1 -0
- package/dist/interval/query.js +2 -0
- package/dist/labs/Labs.svelte +29 -0
- package/dist/labs/Labs.svelte.d.ts +16 -0
- package/dist/layers/fold.d.ts +2 -0
- package/dist/layers/fold.js +1 -0
- package/dist/layers/grammar-families.d.ts +2 -0
- package/dist/layers/grammar-families.js +1 -0
- package/dist/layers/plot-layer-contract.d.ts +1 -0
- package/dist/layers/plot-layer-contract.js +29 -0
- package/dist/layers/plot-layer.svelte.d.ts +42 -0
- package/dist/layers/plot-layer.svelte.js +34 -0
- package/dist/layers/types.d.ts +2 -0
- package/dist/layers/types.js +1 -0
- package/dist/legend/Legend.svelte +24 -0
- package/dist/legend/Legend.svelte.d.ts +5 -0
- package/dist/legend/LegendFilters.svelte +196 -0
- package/dist/legend/LegendFilters.svelte.d.ts +8 -0
- package/dist/legend/LegendTargets.svelte +393 -0
- package/dist/legend/LegendTargets.svelte.d.ts +31 -0
- package/dist/legend/entry-key-index.d.ts +1 -0
- package/dist/legend/entry-key-index.js +2 -0
- package/dist/legend/entry-key-index.svelte.d.ts +34 -0
- package/dist/legend/entry-key-index.svelte.js +35 -0
- package/dist/legend/filter-state.svelte.d.ts +66 -0
- package/dist/legend/filter-state.svelte.js +284 -0
- package/dist/legend/filter.d.ts +1 -0
- package/dist/legend/filter.js +2 -0
- package/dist/legend/focus-emphasis.d.ts +72 -0
- package/dist/legend/focus-emphasis.js +91 -0
- package/dist/legend/focus-plans.d.ts +89 -0
- package/dist/legend/focus-plans.js +72 -0
- package/dist/legend/focus-reconcile.svelte.d.ts +53 -0
- package/dist/legend/focus-reconcile.svelte.js +113 -0
- package/dist/legend/focus-state.svelte.d.ts +73 -0
- package/dist/legend/focus-state.svelte.js +338 -0
- package/dist/legend/focus.d.ts +1 -0
- package/dist/legend/focus.js +2 -0
- package/dist/legend/resolve-legend-capability.d.ts +52 -0
- package/dist/legend/resolve-legend-capability.js +68 -0
- package/dist/legend/resolve-legend-filter.d.ts +65 -0
- package/dist/legend/resolve-legend-filter.js +54 -0
- package/dist/legend/resolve-legend-focus.d.ts +58 -0
- package/dist/legend/resolve-legend-focus.js +36 -0
- package/dist/legend/surface.d.ts +190 -0
- package/dist/legend/surface.js +158 -0
- package/dist/plot-engine-deriveds.svelte.d.ts +75 -0
- package/dist/plot-engine-deriveds.svelte.js +166 -0
- package/dist/plot-engine.svelte.d.ts +116 -0
- package/dist/plot-engine.svelte.js +316 -0
- package/dist/plot-props.d.ts +144 -0
- package/dist/plot-props.js +81 -0
- package/dist/runtime/announcer.svelte.d.ts +17 -0
- package/dist/runtime/announcer.svelte.js +28 -0
- package/dist/runtime/paint.d.ts +38 -0
- package/dist/runtime/paint.js +45 -0
- package/dist/runtime/resolve-datum-key.d.ts +53 -0
- package/dist/runtime/resolve-datum-key.js +73 -0
- package/dist/runtime/runtime.svelte.d.ts +37 -0
- package/dist/runtime/runtime.svelte.js +233 -0
- package/dist/runtime/semantic-candidate-projection.svelte.d.ts +29 -0
- package/dist/runtime/semantic-candidate-projection.svelte.js +137 -0
- package/dist/runtime/semantic-data-identity.d.ts +64 -0
- package/dist/runtime/semantic-data-identity.js +153 -0
- package/dist/runtime/semantic-keys-projection.d.ts +22 -0
- package/dist/runtime/semantic-keys-projection.js +40 -0
- package/dist/runtime/semantic-keys-resolve.d.ts +69 -0
- package/dist/runtime/semantic-keys-resolve.js +122 -0
- package/dist/runtime/semantic-keys.svelte.d.ts +30 -0
- package/dist/runtime/semantic-keys.svelte.js +69 -0
- package/dist/runtime/semantic-source-identity.d.ts +9 -0
- package/dist/runtime/semantic-source-identity.js +16 -0
- package/dist/scale/Scale.svelte +26 -0
- package/dist/scale/Scale.svelte.d.ts +21 -0
- package/dist/scale/ScaleAlphaBinned.svelte +14 -0
- package/dist/scale/ScaleAlphaBinned.svelte.d.ts +4 -0
- package/dist/scale/ScaleAlphaContinuous.svelte +14 -0
- package/dist/scale/ScaleAlphaContinuous.svelte.d.ts +4 -0
- package/dist/scale/ScaleAlphaDate.svelte +15 -0
- package/dist/scale/ScaleAlphaDate.svelte.d.ts +5 -0
- package/dist/scale/ScaleAlphaDatetime.svelte +15 -0
- package/dist/scale/ScaleAlphaDatetime.svelte.d.ts +5 -0
- package/dist/scale/ScaleAlphaDiscrete.svelte +14 -0
- package/dist/scale/ScaleAlphaDiscrete.svelte.d.ts +4 -0
- package/dist/scale/ScaleAlphaIdentity.svelte +14 -0
- package/dist/scale/ScaleAlphaIdentity.svelte.d.ts +4 -0
- package/dist/scale/ScaleAlphaManual.svelte +14 -0
- package/dist/scale/ScaleAlphaManual.svelte.d.ts +4 -0
- package/dist/scale/ScaleColorBinned.svelte +14 -0
- package/dist/scale/ScaleColorBinned.svelte.d.ts +3 -0
- package/dist/scale/ScaleColorBrewer.svelte +14 -0
- package/dist/scale/ScaleColorBrewer.svelte.d.ts +4 -0
- package/dist/scale/ScaleColorContinuous.svelte +14 -0
- package/dist/scale/ScaleColorContinuous.svelte.d.ts +4 -0
- package/dist/scale/ScaleColorDate.svelte +15 -0
- package/dist/scale/ScaleColorDate.svelte.d.ts +5 -0
- package/dist/scale/ScaleColorDatetime.svelte +15 -0
- package/dist/scale/ScaleColorDatetime.svelte.d.ts +5 -0
- package/dist/scale/ScaleColorDiscrete.svelte +14 -0
- package/dist/scale/ScaleColorDiscrete.svelte.d.ts +4 -0
- package/dist/scale/ScaleColorDistiller.svelte +14 -0
- package/dist/scale/ScaleColorDistiller.svelte.d.ts +4 -0
- package/dist/scale/ScaleColorFermenter.svelte +14 -0
- package/dist/scale/ScaleColorFermenter.svelte.d.ts +4 -0
- package/dist/scale/ScaleColorGradient.svelte +11 -0
- package/dist/scale/ScaleColorGradient.svelte.d.ts +4 -0
- package/dist/scale/ScaleColorGradient2.svelte +14 -0
- package/dist/scale/ScaleColorGradient2.svelte.d.ts +4 -0
- package/dist/scale/ScaleColorGradientn.svelte +14 -0
- package/dist/scale/ScaleColorGradientn.svelte.d.ts +4 -0
- package/dist/scale/ScaleColorGrey.svelte +11 -0
- package/dist/scale/ScaleColorGrey.svelte.d.ts +4 -0
- package/dist/scale/ScaleColorHue.svelte +11 -0
- package/dist/scale/ScaleColorHue.svelte.d.ts +4 -0
- package/dist/scale/ScaleColorIdentity.svelte +14 -0
- package/dist/scale/ScaleColorIdentity.svelte.d.ts +4 -0
- package/dist/scale/ScaleColorLog10.svelte +14 -0
- package/dist/scale/ScaleColorLog10.svelte.d.ts +4 -0
- package/dist/scale/ScaleColorManual.svelte +14 -0
- package/dist/scale/ScaleColorManual.svelte.d.ts +4 -0
- package/dist/scale/ScaleColorOrdinal.svelte +14 -0
- package/dist/scale/ScaleColorOrdinal.svelte.d.ts +3 -0
- package/dist/scale/ScaleColorSqrt.svelte +14 -0
- package/dist/scale/ScaleColorSqrt.svelte.d.ts +4 -0
- package/dist/scale/ScaleColorSteps.svelte +11 -0
- package/dist/scale/ScaleColorSteps.svelte.d.ts +4 -0
- package/dist/scale/ScaleColorSteps2.svelte +11 -0
- package/dist/scale/ScaleColorSteps2.svelte.d.ts +4 -0
- package/dist/scale/ScaleColorStepsn.svelte +11 -0
- package/dist/scale/ScaleColorStepsn.svelte.d.ts +4 -0
- package/dist/scale/ScaleColorViridisB.svelte +11 -0
- package/dist/scale/ScaleColorViridisB.svelte.d.ts +4 -0
- package/dist/scale/ScaleColorViridisC.svelte +11 -0
- package/dist/scale/ScaleColorViridisC.svelte.d.ts +4 -0
- package/dist/scale/ScaleColorViridisD.svelte +11 -0
- package/dist/scale/ScaleColorViridisD.svelte.d.ts +4 -0
- package/dist/scale/ScaleFillBinned.svelte +11 -0
- package/dist/scale/ScaleFillBinned.svelte.d.ts +3 -0
- package/dist/scale/ScaleFillBrewer.svelte +11 -0
- package/dist/scale/ScaleFillBrewer.svelte.d.ts +4 -0
- package/dist/scale/ScaleFillContinuous.svelte +14 -0
- package/dist/scale/ScaleFillContinuous.svelte.d.ts +4 -0
- package/dist/scale/ScaleFillDate.svelte +12 -0
- package/dist/scale/ScaleFillDate.svelte.d.ts +5 -0
- package/dist/scale/ScaleFillDatetime.svelte +15 -0
- package/dist/scale/ScaleFillDatetime.svelte.d.ts +5 -0
- package/dist/scale/ScaleFillDiscrete.svelte +14 -0
- package/dist/scale/ScaleFillDiscrete.svelte.d.ts +4 -0
- package/dist/scale/ScaleFillDistiller.svelte +14 -0
- package/dist/scale/ScaleFillDistiller.svelte.d.ts +4 -0
- package/dist/scale/ScaleFillFermenter.svelte +14 -0
- package/dist/scale/ScaleFillFermenter.svelte.d.ts +4 -0
- package/dist/scale/ScaleFillGradient.svelte +11 -0
- package/dist/scale/ScaleFillGradient.svelte.d.ts +4 -0
- package/dist/scale/ScaleFillGradient2.svelte +14 -0
- package/dist/scale/ScaleFillGradient2.svelte.d.ts +4 -0
- package/dist/scale/ScaleFillGradientn.svelte +14 -0
- package/dist/scale/ScaleFillGradientn.svelte.d.ts +4 -0
- package/dist/scale/ScaleFillGrey.svelte +11 -0
- package/dist/scale/ScaleFillGrey.svelte.d.ts +4 -0
- package/dist/scale/ScaleFillHue.svelte +11 -0
- package/dist/scale/ScaleFillHue.svelte.d.ts +4 -0
- package/dist/scale/ScaleFillIdentity.svelte +14 -0
- package/dist/scale/ScaleFillIdentity.svelte.d.ts +4 -0
- package/dist/scale/ScaleFillLog10.svelte +14 -0
- package/dist/scale/ScaleFillLog10.svelte.d.ts +4 -0
- package/dist/scale/ScaleFillManual.svelte +11 -0
- package/dist/scale/ScaleFillManual.svelte.d.ts +4 -0
- package/dist/scale/ScaleFillOrdinal.svelte +14 -0
- package/dist/scale/ScaleFillOrdinal.svelte.d.ts +3 -0
- package/dist/scale/ScaleFillSqrt.svelte +14 -0
- package/dist/scale/ScaleFillSqrt.svelte.d.ts +4 -0
- package/dist/scale/ScaleFillSteps.svelte +11 -0
- package/dist/scale/ScaleFillSteps.svelte.d.ts +4 -0
- package/dist/scale/ScaleFillSteps2.svelte +11 -0
- package/dist/scale/ScaleFillSteps2.svelte.d.ts +4 -0
- package/dist/scale/ScaleFillStepsn.svelte +11 -0
- package/dist/scale/ScaleFillStepsn.svelte.d.ts +4 -0
- package/dist/scale/ScaleFillViridisB.svelte +11 -0
- package/dist/scale/ScaleFillViridisB.svelte.d.ts +4 -0
- package/dist/scale/ScaleFillViridisC.svelte +11 -0
- package/dist/scale/ScaleFillViridisC.svelte.d.ts +4 -0
- package/dist/scale/ScaleFillViridisD.svelte +11 -0
- package/dist/scale/ScaleFillViridisD.svelte.d.ts +4 -0
- package/dist/scale/ScaleLinetypeBinned.svelte +15 -0
- package/dist/scale/ScaleLinetypeBinned.svelte.d.ts +4 -0
- package/dist/scale/ScaleLinetypeDiscrete.svelte +15 -0
- package/dist/scale/ScaleLinetypeDiscrete.svelte.d.ts +4 -0
- package/dist/scale/ScaleLinetypeIdentity.svelte +15 -0
- package/dist/scale/ScaleLinetypeIdentity.svelte.d.ts +4 -0
- package/dist/scale/ScaleLinetypeManual.svelte +15 -0
- package/dist/scale/ScaleLinetypeManual.svelte.d.ts +4 -0
- package/dist/scale/ScaleLinewidthBinned.svelte +14 -0
- package/dist/scale/ScaleLinewidthBinned.svelte.d.ts +4 -0
- package/dist/scale/ScaleLinewidthContinuous.svelte +14 -0
- package/dist/scale/ScaleLinewidthContinuous.svelte.d.ts +4 -0
- package/dist/scale/ScaleLinewidthDate.svelte +15 -0
- package/dist/scale/ScaleLinewidthDate.svelte.d.ts +5 -0
- package/dist/scale/ScaleLinewidthDatetime.svelte +15 -0
- package/dist/scale/ScaleLinewidthDatetime.svelte.d.ts +5 -0
- package/dist/scale/ScaleLinewidthDiscrete.svelte +14 -0
- package/dist/scale/ScaleLinewidthDiscrete.svelte.d.ts +4 -0
- package/dist/scale/ScaleLinewidthIdentity.svelte +14 -0
- package/dist/scale/ScaleLinewidthIdentity.svelte.d.ts +4 -0
- package/dist/scale/ScaleLinewidthManual.svelte +14 -0
- package/dist/scale/ScaleLinewidthManual.svelte.d.ts +4 -0
- package/dist/scale/ScaleRadius.svelte +11 -0
- package/dist/scale/ScaleRadius.svelte.d.ts +4 -0
- package/dist/scale/ScaleShapeBinned.svelte +15 -0
- package/dist/scale/ScaleShapeBinned.svelte.d.ts +4 -0
- package/dist/scale/ScaleShapeDiscrete.svelte +15 -0
- package/dist/scale/ScaleShapeDiscrete.svelte.d.ts +4 -0
- package/dist/scale/ScaleShapeIdentity.svelte +15 -0
- package/dist/scale/ScaleShapeIdentity.svelte.d.ts +4 -0
- package/dist/scale/ScaleShapeManual.svelte +15 -0
- package/dist/scale/ScaleShapeManual.svelte.d.ts +4 -0
- package/dist/scale/ScaleSizeArea.svelte +11 -0
- package/dist/scale/ScaleSizeArea.svelte.d.ts +4 -0
- package/dist/scale/ScaleSizeBinned.svelte +14 -0
- package/dist/scale/ScaleSizeBinned.svelte.d.ts +4 -0
- package/dist/scale/ScaleSizeBinnedArea.svelte +14 -0
- package/dist/scale/ScaleSizeBinnedArea.svelte.d.ts +4 -0
- package/dist/scale/ScaleSizeContinuous.svelte +14 -0
- package/dist/scale/ScaleSizeContinuous.svelte.d.ts +4 -0
- package/dist/scale/ScaleSizeDate.svelte +15 -0
- package/dist/scale/ScaleSizeDate.svelte.d.ts +5 -0
- package/dist/scale/ScaleSizeDatetime.svelte +15 -0
- package/dist/scale/ScaleSizeDatetime.svelte.d.ts +5 -0
- package/dist/scale/ScaleSizeDiscrete.svelte +14 -0
- package/dist/scale/ScaleSizeDiscrete.svelte.d.ts +4 -0
- package/dist/scale/ScaleSizeIdentity.svelte +14 -0
- package/dist/scale/ScaleSizeIdentity.svelte.d.ts +4 -0
- package/dist/scale/ScaleSizeManual.svelte +14 -0
- package/dist/scale/ScaleSizeManual.svelte.d.ts +4 -0
- package/dist/scale/ScaleXBinned.svelte +14 -0
- package/dist/scale/ScaleXBinned.svelte.d.ts +4 -0
- package/dist/scale/ScaleXContinuous.svelte +14 -0
- package/dist/scale/ScaleXContinuous.svelte.d.ts +4 -0
- package/dist/scale/ScaleXDate.svelte +12 -0
- package/dist/scale/ScaleXDate.svelte.d.ts +5 -0
- package/dist/scale/ScaleXDatetime.svelte +12 -0
- package/dist/scale/ScaleXDatetime.svelte.d.ts +5 -0
- package/dist/scale/ScaleXDiscrete.svelte +14 -0
- package/dist/scale/ScaleXDiscrete.svelte.d.ts +4 -0
- package/dist/scale/ScaleXLog10.svelte +14 -0
- package/dist/scale/ScaleXLog10.svelte.d.ts +4 -0
- package/dist/scale/ScaleXMonthDay.svelte +12 -0
- package/dist/scale/ScaleXMonthDay.svelte.d.ts +5 -0
- package/dist/scale/ScaleXReverse.svelte +15 -0
- package/dist/scale/ScaleXReverse.svelte.d.ts +4 -0
- package/dist/scale/ScaleXSqrt.svelte +14 -0
- package/dist/scale/ScaleXSqrt.svelte.d.ts +4 -0
- package/dist/scale/ScaleXTime.svelte +12 -0
- package/dist/scale/ScaleXTime.svelte.d.ts +5 -0
- package/dist/scale/ScaleYBinned.svelte +14 -0
- package/dist/scale/ScaleYBinned.svelte.d.ts +4 -0
- package/dist/scale/ScaleYContinuous.svelte +14 -0
- package/dist/scale/ScaleYContinuous.svelte.d.ts +4 -0
- package/dist/scale/ScaleYDate.svelte +12 -0
- package/dist/scale/ScaleYDate.svelte.d.ts +5 -0
- package/dist/scale/ScaleYDatetime.svelte +12 -0
- package/dist/scale/ScaleYDatetime.svelte.d.ts +5 -0
- package/dist/scale/ScaleYDiscrete.svelte +14 -0
- package/dist/scale/ScaleYDiscrete.svelte.d.ts +4 -0
- package/dist/scale/ScaleYLog10.svelte +14 -0
- package/dist/scale/ScaleYLog10.svelte.d.ts +4 -0
- package/dist/scale/ScaleYMonthDay.svelte +12 -0
- package/dist/scale/ScaleYMonthDay.svelte.d.ts +5 -0
- package/dist/scale/ScaleYReverse.svelte +15 -0
- package/dist/scale/ScaleYReverse.svelte.d.ts +4 -0
- package/dist/scale/ScaleYSqrt.svelte +14 -0
- package/dist/scale/ScaleYSqrt.svelte.d.ts +4 -0
- package/dist/scale/ScaleYTime.svelte +12 -0
- package/dist/scale/ScaleYTime.svelte.d.ts +5 -0
- package/dist/scene/Axis.svelte +159 -0
- package/dist/scene/Axis.svelte.d.ts +12 -0
- package/dist/scene/Batch.svelte +252 -0
- package/dist/scene/Batch.svelte.d.ts +23 -0
- package/dist/scene/InteractionOverlay.svelte +402 -0
- package/dist/scene/InteractionOverlay.svelte.d.ts +44 -0
- package/dist/scene/Legend.svelte +278 -0
- package/dist/scene/Legend.svelte.d.ts +8 -0
- package/dist/scene/MarkStrata.svelte +129 -0
- package/dist/scene/MarkStrata.svelte.d.ts +15 -0
- package/dist/scene/SceneOverlays.svelte +118 -0
- package/dist/scene/SceneOverlays.svelte.d.ts +49 -0
- package/dist/scene/SceneView.svelte +478 -0
- package/dist/scene/SceneView.svelte.d.ts +32 -0
- package/dist/scene/batch-presentation.svelte.d.ts +111 -0
- package/dist/scene/batch-presentation.svelte.js +207 -0
- package/dist/scene/geometry.d.ts +2 -0
- package/dist/scene/geometry.js +3 -0
- package/dist/scene/stratum-paint.d.ts +25 -0
- package/dist/scene/stratum-paint.js +40 -0
- package/dist/selection/selection-state.svelte.d.ts +23 -0
- package/dist/selection/selection-state.svelte.js +73 -0
- package/dist/selection/selection.d.ts +1 -0
- package/dist/selection/selection.js +2 -0
- package/dist/surface/CaptureSurface.svelte +109 -0
- package/dist/surface/CaptureSurface.svelte.d.ts +27 -0
- package/dist/surface/area-brush.d.ts +48 -0
- package/dist/surface/area-brush.js +44 -0
- package/dist/surface/brush-finish.d.ts +49 -0
- package/dist/surface/brush-finish.js +44 -0
- package/dist/surface/keyboard.d.ts +97 -0
- package/dist/surface/keyboard.js +105 -0
- package/dist/surface/pointer.d.ts +241 -0
- package/dist/surface/pointer.js +179 -0
- package/dist/surface/surface-description.d.ts +10 -0
- package/dist/surface/surface-description.js +11 -0
- package/dist/surface/surface-handlers.svelte.d.ts +53 -0
- package/dist/surface/surface-handlers.svelte.js +418 -0
- package/dist/surface/surface-state.svelte.d.ts +90 -0
- package/dist/surface/surface-state.svelte.js +161 -0
- package/dist/theme/Theme.svelte +27 -0
- package/dist/theme/Theme.svelte.d.ts +23 -0
- package/dist/theme/ThemeBase.svelte +13 -0
- package/dist/theme/ThemeBase.svelte.d.ts +8 -0
- package/dist/theme/ThemeBw.svelte +13 -0
- package/dist/theme/ThemeBw.svelte.d.ts +8 -0
- package/dist/theme/ThemeClassic.svelte +13 -0
- package/dist/theme/ThemeClassic.svelte.d.ts +8 -0
- package/dist/theme/ThemeClean.svelte +13 -0
- package/dist/theme/ThemeClean.svelte.d.ts +8 -0
- package/dist/theme/ThemeDark.svelte +13 -0
- package/dist/theme/ThemeDark.svelte.d.ts +8 -0
- package/dist/theme/ThemeDefault.svelte +13 -0
- package/dist/theme/ThemeDefault.svelte.d.ts +8 -0
- package/dist/theme/ThemeEconomist.svelte +13 -0
- package/dist/theme/ThemeEconomist.svelte.d.ts +8 -0
- package/dist/theme/ThemeEconomistwhite.svelte +13 -0
- package/dist/theme/ThemeEconomistwhite.svelte.d.ts +8 -0
- package/dist/theme/ThemeFew.svelte +13 -0
- package/dist/theme/ThemeFew.svelte.d.ts +8 -0
- package/dist/theme/ThemeFivethirtyeight.svelte +14 -0
- package/dist/theme/ThemeFivethirtyeight.svelte.d.ts +9 -0
- package/dist/theme/ThemeGgplot2.svelte +13 -0
- package/dist/theme/ThemeGgplot2.svelte.d.ts +8 -0
- package/dist/theme/ThemeGray.svelte +13 -0
- package/dist/theme/ThemeGray.svelte.d.ts +8 -0
- package/dist/theme/ThemeGrey.svelte +13 -0
- package/dist/theme/ThemeGrey.svelte.d.ts +8 -0
- package/dist/theme/ThemeHc.svelte +13 -0
- package/dist/theme/ThemeHc.svelte.d.ts +8 -0
- package/dist/theme/ThemeHcdark.svelte +13 -0
- package/dist/theme/ThemeHcdark.svelte.d.ts +8 -0
- package/dist/theme/ThemeHrbr.svelte +13 -0
- package/dist/theme/ThemeHrbr.svelte.d.ts +8 -0
- package/dist/theme/ThemeIgray.svelte +13 -0
- package/dist/theme/ThemeIgray.svelte.d.ts +8 -0
- package/dist/theme/ThemeLight.svelte +13 -0
- package/dist/theme/ThemeLight.svelte.d.ts +8 -0
- package/dist/theme/ThemeLinedraw.svelte +13 -0
- package/dist/theme/ThemeLinedraw.svelte.d.ts +8 -0
- package/dist/theme/ThemeMap.svelte +13 -0
- package/dist/theme/ThemeMap.svelte.d.ts +8 -0
- package/dist/theme/ThemeMinimal.svelte +13 -0
- package/dist/theme/ThemeMinimal.svelte.d.ts +8 -0
- package/dist/theme/ThemePander.svelte +13 -0
- package/dist/theme/ThemePander.svelte.d.ts +8 -0
- package/dist/theme/ThemeSolarized.svelte +13 -0
- package/dist/theme/ThemeSolarized.svelte.d.ts +8 -0
- package/dist/theme/ThemeSolarized2.svelte +13 -0
- package/dist/theme/ThemeSolarized2.svelte.d.ts +8 -0
- package/dist/theme/ThemeSolarized2dark.svelte +13 -0
- package/dist/theme/ThemeSolarized2dark.svelte.d.ts +8 -0
- package/dist/theme/ThemeSolarizeddark.svelte +14 -0
- package/dist/theme/ThemeSolarizeddark.svelte.d.ts +9 -0
- package/dist/theme/ThemeSolid.svelte +13 -0
- package/dist/theme/ThemeSolid.svelte.d.ts +8 -0
- package/dist/theme/ThemeStata.svelte +13 -0
- package/dist/theme/ThemeStata.svelte.d.ts +8 -0
- package/dist/theme/ThemeStatas1color.svelte +13 -0
- package/dist/theme/ThemeStatas1color.svelte.d.ts +8 -0
- package/dist/theme/ThemeTest.svelte +14 -0
- package/dist/theme/ThemeTest.svelte.d.ts +9 -0
- package/dist/theme/ThemeTufte.svelte +13 -0
- package/dist/theme/ThemeTufte.svelte.d.ts +8 -0
- package/dist/theme/ThemeVoid.svelte +14 -0
- package/dist/theme/ThemeVoid.svelte.d.ts +9 -0
- package/dist/theme/ThemeWsj.svelte +13 -0
- package/dist/theme/ThemeWsj.svelte.d.ts +8 -0
- package/dist/theme/factory.svelte.d.ts +36 -0
- package/dist/theme/factory.svelte.js +100 -0
- package/dist/zoom/zoom-state.svelte.d.ts +44 -0
- package/dist/zoom/zoom-state.svelte.js +121 -0
- package/dist/zoom/zoom.d.ts +1 -0
- package/dist/zoom/zoom.js +2 -0
- package/package.json +83 -0
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { createInteractionReducer } from "../interaction/reducer.js";
|
|
2
|
+
import { resolveChooseToolAction, resolveEffectiveTool } from "../interaction/capability.js";
|
|
3
|
+
import { shouldClosePinnedOnOutsidePointer } from "../inspection/teardown.js";
|
|
4
|
+
import { buildSurfaceDescription } from "./surface-description.js";
|
|
5
|
+
import { isAreaAwaitingSecond, isAreaBrushing } from "./pointer.js";
|
|
6
|
+
import { createSurfaceHandlers } from "./surface-handlers.svelte.js";
|
|
7
|
+
// ---------------------------------------------------------------------------
|
|
8
|
+
// Factory
|
|
9
|
+
// ---------------------------------------------------------------------------
|
|
10
|
+
/**
|
|
11
|
+
* Create the surface controller. Construction registers deriveds and
|
|
12
|
+
* window-teardown + tool-sync effects.
|
|
13
|
+
*
|
|
14
|
+
* Construction-order note: deps must not be invoked during construction —
|
|
15
|
+
* construction-read discipline enforced by the armed-getter suite.
|
|
16
|
+
*/
|
|
17
|
+
export function createSurfaceState(context, options) {
|
|
18
|
+
let reducerRevision = $state(0);
|
|
19
|
+
let brushRect = $state(null);
|
|
20
|
+
// Handlers are created first and receive the reducer via a thunk — the
|
|
21
|
+
// reducer's onPointerFrame calls back into handlers.applyAreaMove (the
|
|
22
|
+
// module boundary replaces the original hoisted function declaration).
|
|
23
|
+
const handlers = createSurfaceHandlers({
|
|
24
|
+
context,
|
|
25
|
+
reducer: () => reducer,
|
|
26
|
+
activeTool: () => activeTool,
|
|
27
|
+
brushing: () => brushing,
|
|
28
|
+
areaAwaitingSecond: () => areaAwaitingSecond,
|
|
29
|
+
getBrushRect: () => brushRect,
|
|
30
|
+
setBrushRect: (rect) => {
|
|
31
|
+
brushRect = rect;
|
|
32
|
+
},
|
|
33
|
+
chooseTool,
|
|
34
|
+
inspection: options.inspection,
|
|
35
|
+
interval: options.interval,
|
|
36
|
+
zoom: options.zoom,
|
|
37
|
+
emitSelection: options.emitSelection,
|
|
38
|
+
togglePointKeys: options.togglePointKeys,
|
|
39
|
+
pointSelectEnabled: options.pointSelectEnabled,
|
|
40
|
+
});
|
|
41
|
+
// Reducer is created INSIDE the factory (original host position ~516).
|
|
42
|
+
const reducer = createInteractionReducer({
|
|
43
|
+
onChange: () => {
|
|
44
|
+
reducerRevision += 1;
|
|
45
|
+
},
|
|
46
|
+
scheduleFrame: (callback) => requestAnimationFrame(callback),
|
|
47
|
+
cancelFrame: (handle) => {
|
|
48
|
+
cancelAnimationFrame(handle);
|
|
49
|
+
},
|
|
50
|
+
onPointerFrame: (action) => {
|
|
51
|
+
if (action.type === "move-area") {
|
|
52
|
+
handlers.applyAreaMove(action.point);
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
return options.inspection().onInspectPointerFrame(action);
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
// Construction-safe: own state + inspectConfig only.
|
|
59
|
+
const activeTool = $derived.by(() => {
|
|
60
|
+
void reducerRevision;
|
|
61
|
+
return reducer.state.tool;
|
|
62
|
+
});
|
|
63
|
+
// Lazy pin read: only consult inspectConfig on the inspect tool branch so
|
|
64
|
+
// non-inspect tools do not subscribe to inspect config (dependency tracking).
|
|
65
|
+
const surfaceDescription = $derived.by(() => buildSurfaceDescription(activeTool, activeTool === "inspect" && context.inspectConfig()?.pin === true));
|
|
66
|
+
// Private — no remaining host consumer after extraction (codex P2-7).
|
|
67
|
+
const brushing = $derived.by(() => {
|
|
68
|
+
void reducerRevision;
|
|
69
|
+
return isAreaBrushing(reducer.state.area.kind);
|
|
70
|
+
});
|
|
71
|
+
const areaAwaitingSecond = $derived.by(() => {
|
|
72
|
+
void reducerRevision;
|
|
73
|
+
return isAreaAwaitingSecond(reducer.state.area.kind);
|
|
74
|
+
});
|
|
75
|
+
function clearBrush() {
|
|
76
|
+
brushRect = null;
|
|
77
|
+
}
|
|
78
|
+
function chooseTool(next) {
|
|
79
|
+
// Decision table is pure (interaction/capability); this switch owns side effects.
|
|
80
|
+
const action = resolveChooseToolAction({
|
|
81
|
+
next,
|
|
82
|
+
available: options.availableTools(),
|
|
83
|
+
isControlled: options.toolProp() !== undefined,
|
|
84
|
+
});
|
|
85
|
+
switch (action.type) {
|
|
86
|
+
case "ignore":
|
|
87
|
+
return;
|
|
88
|
+
case "request":
|
|
89
|
+
context.ontoolchange()?.(next);
|
|
90
|
+
return;
|
|
91
|
+
case "apply":
|
|
92
|
+
reducer.dispatch({ type: "set-tool", tool: next });
|
|
93
|
+
brushRect = null;
|
|
94
|
+
// set-tool already full-cancels the schedule; clear inspect payload only
|
|
95
|
+
// (preserve pinned stash — matches prior clearQueuedPointer-only path).
|
|
96
|
+
options.inspection().cancelPointerInspect({ pendingPinned: "preserve" });
|
|
97
|
+
context.ontoolchange()?.(next);
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
// Window outside-pointer / blur teardown + tool-sync (formerly host-phased
|
|
102
|
+
// registerSurfaceEffects — registered at construction, #627).
|
|
103
|
+
$effect(() => {
|
|
104
|
+
// No-op cleanup keeps every code path returning a teardown (consistent-return).
|
|
105
|
+
if (!options.surfaceInteractive())
|
|
106
|
+
return () => { };
|
|
107
|
+
const onOutsidePointer = (event) => {
|
|
108
|
+
if (!shouldClosePinnedOnOutsidePointer({
|
|
109
|
+
inspectionState: options.inspection().inspection?.state,
|
|
110
|
+
targetInsideRoot: context.root()?.contains(event.target) === true,
|
|
111
|
+
}))
|
|
112
|
+
return;
|
|
113
|
+
options.inspection().closeInspection("pointer", false);
|
|
114
|
+
};
|
|
115
|
+
const cancelDraft = () => {
|
|
116
|
+
brushRect = null;
|
|
117
|
+
options.inspection().cancelPointerInspect({ pendingPinned: "preserve" });
|
|
118
|
+
handlers.clearTouchInspect();
|
|
119
|
+
reducer.cancelScheduledPointer();
|
|
120
|
+
reducer.dispatch({ type: "cancel-area" });
|
|
121
|
+
};
|
|
122
|
+
window.addEventListener("pointerdown", onOutsidePointer);
|
|
123
|
+
window.addEventListener("blur", cancelDraft);
|
|
124
|
+
return () => {
|
|
125
|
+
window.removeEventListener("pointerdown", onOutsidePointer);
|
|
126
|
+
window.removeEventListener("blur", cancelDraft);
|
|
127
|
+
};
|
|
128
|
+
});
|
|
129
|
+
$effect(() => {
|
|
130
|
+
const next = resolveEffectiveTool(options.toolProp() ?? options.initialTool(), options.availableTools());
|
|
131
|
+
reducer.dispatch({ type: "set-tool", tool: next });
|
|
132
|
+
});
|
|
133
|
+
return {
|
|
134
|
+
get reducer() {
|
|
135
|
+
return reducer;
|
|
136
|
+
},
|
|
137
|
+
get activeTool() {
|
|
138
|
+
return activeTool;
|
|
139
|
+
},
|
|
140
|
+
get surfaceDescription() {
|
|
141
|
+
return surfaceDescription;
|
|
142
|
+
},
|
|
143
|
+
get brushRect() {
|
|
144
|
+
return brushRect;
|
|
145
|
+
},
|
|
146
|
+
get areaAwaitingSecond() {
|
|
147
|
+
return areaAwaitingSecond;
|
|
148
|
+
},
|
|
149
|
+
clearBrush,
|
|
150
|
+
chooseTool,
|
|
151
|
+
onPointerMove: handlers.onPointerMove,
|
|
152
|
+
onPointerDown: handlers.onPointerDown,
|
|
153
|
+
onPointerUp: handlers.onPointerUp,
|
|
154
|
+
onPointerLeave: handlers.onPointerLeave,
|
|
155
|
+
onPointerCancel: handlers.onPointerCancel,
|
|
156
|
+
onLostPointerCapture: handlers.onLostPointerCapture,
|
|
157
|
+
onCaptureClick: handlers.onCaptureClick,
|
|
158
|
+
onSurfaceKeyDown: handlers.onSurfaceKeyDown,
|
|
159
|
+
onSurfaceBlur: handlers.onSurfaceBlur,
|
|
160
|
+
};
|
|
161
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* <Theme> — declaration-only theme layer for <GGPlot> (#659).
|
|
4
|
+
* Generic escape hatch: pass `name` and/or role overrides. Named shells
|
|
5
|
+
* (<ThemeDark/>, …) are preferred when the base theme is known at authoring
|
|
6
|
+
* time; use this form for reactive/dynamic names
|
|
7
|
+
* (`<Theme name={currentTheme}/>`).
|
|
8
|
+
*
|
|
9
|
+
* Emits NO markup; registers a live theme layer during component init and
|
|
10
|
+
* unregisters on destroy. Inert without a <GGPlot> ancestor.
|
|
11
|
+
*
|
|
12
|
+
* Canonical PortableSpec form: no role overrides → ThemeName string; any
|
|
13
|
+
* role override → ThemeSpec object with only defined keys.
|
|
14
|
+
*/
|
|
15
|
+
import type { ThemeName, ThemeSpec } from "@ggts-sh/spec";
|
|
16
|
+
|
|
17
|
+
import { createThemeLayer, type ThemeRoleKey } from "./factory.svelte.js";
|
|
18
|
+
|
|
19
|
+
type Props = {
|
|
20
|
+
name?: ThemeName;
|
|
21
|
+
} & {
|
|
22
|
+
[K in ThemeRoleKey]?: ThemeSpec[K];
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const props: Props = $props();
|
|
26
|
+
createThemeLayer(() => props);
|
|
27
|
+
</script>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <Theme> — declaration-only theme layer for <GGPlot> (#659).
|
|
3
|
+
* Generic escape hatch: pass `name` and/or role overrides. Named shells
|
|
4
|
+
* (<ThemeDark/>, …) are preferred when the base theme is known at authoring
|
|
5
|
+
* time; use this form for reactive/dynamic names
|
|
6
|
+
* (`<Theme name={currentTheme}/>`).
|
|
7
|
+
*
|
|
8
|
+
* Emits NO markup; registers a live theme layer during component init and
|
|
9
|
+
* unregisters on destroy. Inert without a <GGPlot> ancestor.
|
|
10
|
+
*
|
|
11
|
+
* Canonical PortableSpec form: no role overrides → ThemeName string; any
|
|
12
|
+
* role override → ThemeSpec object with only defined keys.
|
|
13
|
+
*/
|
|
14
|
+
import type { ThemeName, ThemeSpec } from "@ggts-sh/spec";
|
|
15
|
+
import { type ThemeRoleKey } from "./factory.svelte.js";
|
|
16
|
+
type Props = {
|
|
17
|
+
name?: ThemeName;
|
|
18
|
+
} & {
|
|
19
|
+
[K in ThemeRoleKey]?: ThemeSpec[K];
|
|
20
|
+
};
|
|
21
|
+
declare const Theme: import("svelte").Component<Props, {}, "">;
|
|
22
|
+
type Theme = ReturnType<typeof Theme>;
|
|
23
|
+
export default Theme;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* <ThemeBase> — declaration-only "base" theme layer for <GGPlot>.
|
|
4
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
5
|
+
*/
|
|
6
|
+
import {
|
|
7
|
+
createNamedThemeLayer,
|
|
8
|
+
type NamedThemeLayerProps,
|
|
9
|
+
} from "./factory.svelte.js";
|
|
10
|
+
|
|
11
|
+
const props: NamedThemeLayerProps = $props();
|
|
12
|
+
createNamedThemeLayer("base", () => props);
|
|
13
|
+
</script>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <ThemeBase> — declaration-only "base" theme layer for <GGPlot>.
|
|
3
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
4
|
+
*/
|
|
5
|
+
import { type NamedThemeLayerProps } from "./factory.svelte.js";
|
|
6
|
+
declare const ThemeBase: import("svelte").Component<NamedThemeLayerProps, {}, "">;
|
|
7
|
+
type ThemeBase = ReturnType<typeof ThemeBase>;
|
|
8
|
+
export default ThemeBase;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* <ThemeBw> — declaration-only "bw" theme layer for <GGPlot>.
|
|
4
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
5
|
+
*/
|
|
6
|
+
import {
|
|
7
|
+
createNamedThemeLayer,
|
|
8
|
+
type NamedThemeLayerProps,
|
|
9
|
+
} from "./factory.svelte.js";
|
|
10
|
+
|
|
11
|
+
const props: NamedThemeLayerProps = $props();
|
|
12
|
+
createNamedThemeLayer("bw", () => props);
|
|
13
|
+
</script>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <ThemeBw> — declaration-only "bw" theme layer for <GGPlot>.
|
|
3
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
4
|
+
*/
|
|
5
|
+
import { type NamedThemeLayerProps } from "./factory.svelte.js";
|
|
6
|
+
declare const ThemeBw: import("svelte").Component<NamedThemeLayerProps, {}, "">;
|
|
7
|
+
type ThemeBw = ReturnType<typeof ThemeBw>;
|
|
8
|
+
export default ThemeBw;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* <ThemeClassic> — declaration-only "classic" theme layer for <GGPlot>.
|
|
4
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
5
|
+
*/
|
|
6
|
+
import {
|
|
7
|
+
createNamedThemeLayer,
|
|
8
|
+
type NamedThemeLayerProps,
|
|
9
|
+
} from "./factory.svelte.js";
|
|
10
|
+
|
|
11
|
+
const props: NamedThemeLayerProps = $props();
|
|
12
|
+
createNamedThemeLayer("classic", () => props);
|
|
13
|
+
</script>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <ThemeClassic> — declaration-only "classic" theme layer for <GGPlot>.
|
|
3
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
4
|
+
*/
|
|
5
|
+
import { type NamedThemeLayerProps } from "./factory.svelte.js";
|
|
6
|
+
declare const ThemeClassic: import("svelte").Component<NamedThemeLayerProps, {}, "">;
|
|
7
|
+
type ThemeClassic = ReturnType<typeof ThemeClassic>;
|
|
8
|
+
export default ThemeClassic;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* <ThemeClean> — declaration-only "clean" theme layer for <GGPlot>.
|
|
4
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
5
|
+
*/
|
|
6
|
+
import {
|
|
7
|
+
createNamedThemeLayer,
|
|
8
|
+
type NamedThemeLayerProps,
|
|
9
|
+
} from "./factory.svelte.js";
|
|
10
|
+
|
|
11
|
+
const props: NamedThemeLayerProps = $props();
|
|
12
|
+
createNamedThemeLayer("clean", () => props);
|
|
13
|
+
</script>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <ThemeClean> — declaration-only "clean" theme layer for <GGPlot>.
|
|
3
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
4
|
+
*/
|
|
5
|
+
import { type NamedThemeLayerProps } from "./factory.svelte.js";
|
|
6
|
+
declare const ThemeClean: import("svelte").Component<NamedThemeLayerProps, {}, "">;
|
|
7
|
+
type ThemeClean = ReturnType<typeof ThemeClean>;
|
|
8
|
+
export default ThemeClean;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* <ThemeDark> — declaration-only "dark" theme layer for <GGPlot>.
|
|
4
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
5
|
+
*/
|
|
6
|
+
import {
|
|
7
|
+
createNamedThemeLayer,
|
|
8
|
+
type NamedThemeLayerProps,
|
|
9
|
+
} from "./factory.svelte.js";
|
|
10
|
+
|
|
11
|
+
const props: NamedThemeLayerProps = $props();
|
|
12
|
+
createNamedThemeLayer("dark", () => props);
|
|
13
|
+
</script>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <ThemeDark> — declaration-only "dark" theme layer for <GGPlot>.
|
|
3
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
4
|
+
*/
|
|
5
|
+
import { type NamedThemeLayerProps } from "./factory.svelte.js";
|
|
6
|
+
declare const ThemeDark: import("svelte").Component<NamedThemeLayerProps, {}, "">;
|
|
7
|
+
type ThemeDark = ReturnType<typeof ThemeDark>;
|
|
8
|
+
export default ThemeDark;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* <ThemeDefault> — declaration-only "default" theme layer for <GGPlot>.
|
|
4
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
5
|
+
*/
|
|
6
|
+
import {
|
|
7
|
+
createNamedThemeLayer,
|
|
8
|
+
type NamedThemeLayerProps,
|
|
9
|
+
} from "./factory.svelte.js";
|
|
10
|
+
|
|
11
|
+
const props: NamedThemeLayerProps = $props();
|
|
12
|
+
createNamedThemeLayer("default", () => props);
|
|
13
|
+
</script>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <ThemeDefault> — declaration-only "default" theme layer for <GGPlot>.
|
|
3
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
4
|
+
*/
|
|
5
|
+
import { type NamedThemeLayerProps } from "./factory.svelte.js";
|
|
6
|
+
declare const ThemeDefault: import("svelte").Component<NamedThemeLayerProps, {}, "">;
|
|
7
|
+
type ThemeDefault = ReturnType<typeof ThemeDefault>;
|
|
8
|
+
export default ThemeDefault;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* <ThemeEconomist> — declaration-only "economist" theme layer for <GGPlot>.
|
|
4
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
5
|
+
*/
|
|
6
|
+
import {
|
|
7
|
+
createNamedThemeLayer,
|
|
8
|
+
type NamedThemeLayerProps,
|
|
9
|
+
} from "./factory.svelte.js";
|
|
10
|
+
|
|
11
|
+
const props: NamedThemeLayerProps = $props();
|
|
12
|
+
createNamedThemeLayer("economist", () => props);
|
|
13
|
+
</script>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <ThemeEconomist> — declaration-only "economist" theme layer for <GGPlot>.
|
|
3
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
4
|
+
*/
|
|
5
|
+
import { type NamedThemeLayerProps } from "./factory.svelte.js";
|
|
6
|
+
declare const ThemeEconomist: import("svelte").Component<NamedThemeLayerProps, {}, "">;
|
|
7
|
+
type ThemeEconomist = ReturnType<typeof ThemeEconomist>;
|
|
8
|
+
export default ThemeEconomist;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* <ThemeEconomistwhite> — declaration-only "economist_white" theme layer for <GGPlot>.
|
|
4
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
5
|
+
*/
|
|
6
|
+
import {
|
|
7
|
+
createNamedThemeLayer,
|
|
8
|
+
type NamedThemeLayerProps,
|
|
9
|
+
} from "./factory.svelte.js";
|
|
10
|
+
|
|
11
|
+
const props: NamedThemeLayerProps = $props();
|
|
12
|
+
createNamedThemeLayer("economist_white", () => props);
|
|
13
|
+
</script>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <ThemeEconomistwhite> — declaration-only "economist_white" theme layer for <GGPlot>.
|
|
3
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
4
|
+
*/
|
|
5
|
+
import { type NamedThemeLayerProps } from "./factory.svelte.js";
|
|
6
|
+
declare const ThemeEconomistwhite: import("svelte").Component<NamedThemeLayerProps, {}, "">;
|
|
7
|
+
type ThemeEconomistwhite = ReturnType<typeof ThemeEconomistwhite>;
|
|
8
|
+
export default ThemeEconomistwhite;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* <ThemeFew> — declaration-only "few" theme layer for <GGPlot>.
|
|
4
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
5
|
+
*/
|
|
6
|
+
import {
|
|
7
|
+
createNamedThemeLayer,
|
|
8
|
+
type NamedThemeLayerProps,
|
|
9
|
+
} from "./factory.svelte.js";
|
|
10
|
+
|
|
11
|
+
const props: NamedThemeLayerProps = $props();
|
|
12
|
+
createNamedThemeLayer("few", () => props);
|
|
13
|
+
</script>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <ThemeFew> — declaration-only "few" theme layer for <GGPlot>.
|
|
3
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
4
|
+
*/
|
|
5
|
+
import { type NamedThemeLayerProps } from "./factory.svelte.js";
|
|
6
|
+
declare const ThemeFew: import("svelte").Component<NamedThemeLayerProps, {}, "">;
|
|
7
|
+
type ThemeFew = ReturnType<typeof ThemeFew>;
|
|
8
|
+
export default ThemeFew;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* <ThemeFivethirtyeight> — declaration-only "fivethirtyeight" theme layer
|
|
4
|
+
* for <GGPlot>. Accepts optional role overrides (`ink`, `paper`, …).
|
|
5
|
+
* Emits NO markup.
|
|
6
|
+
*/
|
|
7
|
+
import {
|
|
8
|
+
createNamedThemeLayer,
|
|
9
|
+
type NamedThemeLayerProps,
|
|
10
|
+
} from "./factory.svelte.js";
|
|
11
|
+
|
|
12
|
+
const props: NamedThemeLayerProps = $props();
|
|
13
|
+
createNamedThemeLayer("fivethirtyeight", () => props);
|
|
14
|
+
</script>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <ThemeFivethirtyeight> — declaration-only "fivethirtyeight" theme layer
|
|
3
|
+
* for <GGPlot>. Accepts optional role overrides (`ink`, `paper`, …).
|
|
4
|
+
* Emits NO markup.
|
|
5
|
+
*/
|
|
6
|
+
import { type NamedThemeLayerProps } from "./factory.svelte.js";
|
|
7
|
+
declare const ThemeFivethirtyeight: import("svelte").Component<NamedThemeLayerProps, {}, "">;
|
|
8
|
+
type ThemeFivethirtyeight = ReturnType<typeof ThemeFivethirtyeight>;
|
|
9
|
+
export default ThemeFivethirtyeight;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* <ThemeGgplot2> — declaration-only "ggplot2" theme layer for <GGPlot>.
|
|
4
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
5
|
+
*/
|
|
6
|
+
import {
|
|
7
|
+
createNamedThemeLayer,
|
|
8
|
+
type NamedThemeLayerProps,
|
|
9
|
+
} from "./factory.svelte.js";
|
|
10
|
+
|
|
11
|
+
const props: NamedThemeLayerProps = $props();
|
|
12
|
+
createNamedThemeLayer("ggplot2", () => props);
|
|
13
|
+
</script>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <ThemeGgplot2> — declaration-only "ggplot2" theme layer for <GGPlot>.
|
|
3
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
4
|
+
*/
|
|
5
|
+
import { type NamedThemeLayerProps } from "./factory.svelte.js";
|
|
6
|
+
declare const ThemeGgplot2: import("svelte").Component<NamedThemeLayerProps, {}, "">;
|
|
7
|
+
type ThemeGgplot2 = ReturnType<typeof ThemeGgplot2>;
|
|
8
|
+
export default ThemeGgplot2;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* <ThemeGray> — declaration-only "gray" theme layer for <GGPlot>
|
|
4
|
+
* (US spelling; alias of the ggplot2 grey-panel look). Emits NO markup.
|
|
5
|
+
*/
|
|
6
|
+
import {
|
|
7
|
+
createNamedThemeLayer,
|
|
8
|
+
type NamedThemeLayerProps,
|
|
9
|
+
} from "./factory.svelte.js";
|
|
10
|
+
|
|
11
|
+
const props: NamedThemeLayerProps = $props();
|
|
12
|
+
createNamedThemeLayer("gray", () => props);
|
|
13
|
+
</script>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <ThemeGray> — declaration-only "gray" theme layer for <GGPlot>
|
|
3
|
+
* (US spelling; alias of the ggplot2 grey-panel look). Emits NO markup.
|
|
4
|
+
*/
|
|
5
|
+
import { type NamedThemeLayerProps } from "./factory.svelte.js";
|
|
6
|
+
declare const ThemeGray: import("svelte").Component<NamedThemeLayerProps, {}, "">;
|
|
7
|
+
type ThemeGray = ReturnType<typeof ThemeGray>;
|
|
8
|
+
export default ThemeGray;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* <ThemeGrey> — declaration-only "grey" theme layer for <GGPlot>
|
|
4
|
+
* (UK spelling; alias of the ggplot2 grey-panel look). Emits NO markup.
|
|
5
|
+
*/
|
|
6
|
+
import {
|
|
7
|
+
createNamedThemeLayer,
|
|
8
|
+
type NamedThemeLayerProps,
|
|
9
|
+
} from "./factory.svelte.js";
|
|
10
|
+
|
|
11
|
+
const props: NamedThemeLayerProps = $props();
|
|
12
|
+
createNamedThemeLayer("grey", () => props);
|
|
13
|
+
</script>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <ThemeGrey> — declaration-only "grey" theme layer for <GGPlot>
|
|
3
|
+
* (UK spelling; alias of the ggplot2 grey-panel look). Emits NO markup.
|
|
4
|
+
*/
|
|
5
|
+
import { type NamedThemeLayerProps } from "./factory.svelte.js";
|
|
6
|
+
declare const ThemeGrey: import("svelte").Component<NamedThemeLayerProps, {}, "">;
|
|
7
|
+
type ThemeGrey = ReturnType<typeof ThemeGrey>;
|
|
8
|
+
export default ThemeGrey;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* <ThemeHc> — declaration-only "hc" theme layer for <GGPlot>.
|
|
4
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
5
|
+
*/
|
|
6
|
+
import {
|
|
7
|
+
createNamedThemeLayer,
|
|
8
|
+
type NamedThemeLayerProps,
|
|
9
|
+
} from "./factory.svelte.js";
|
|
10
|
+
|
|
11
|
+
const props: NamedThemeLayerProps = $props();
|
|
12
|
+
createNamedThemeLayer("hc", () => props);
|
|
13
|
+
</script>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <ThemeHc> — declaration-only "hc" theme layer for <GGPlot>.
|
|
3
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
4
|
+
*/
|
|
5
|
+
import { type NamedThemeLayerProps } from "./factory.svelte.js";
|
|
6
|
+
declare const ThemeHc: import("svelte").Component<NamedThemeLayerProps, {}, "">;
|
|
7
|
+
type ThemeHc = ReturnType<typeof ThemeHc>;
|
|
8
|
+
export default ThemeHc;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* <ThemeHcdark> — declaration-only "hcdark" theme layer for <GGPlot>.
|
|
4
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
5
|
+
*/
|
|
6
|
+
import {
|
|
7
|
+
createNamedThemeLayer,
|
|
8
|
+
type NamedThemeLayerProps,
|
|
9
|
+
} from "./factory.svelte.js";
|
|
10
|
+
|
|
11
|
+
const props: NamedThemeLayerProps = $props();
|
|
12
|
+
createNamedThemeLayer("hcdark", () => props);
|
|
13
|
+
</script>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <ThemeHcdark> — declaration-only "hcdark" theme layer for <GGPlot>.
|
|
3
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
4
|
+
*/
|
|
5
|
+
import { type NamedThemeLayerProps } from "./factory.svelte.js";
|
|
6
|
+
declare const ThemeHcdark: import("svelte").Component<NamedThemeLayerProps, {}, "">;
|
|
7
|
+
type ThemeHcdark = ReturnType<typeof ThemeHcdark>;
|
|
8
|
+
export default ThemeHcdark;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* <ThemeHrbr> — declaration-only "hrbr" theme layer for <GGPlot>.
|
|
4
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
5
|
+
*/
|
|
6
|
+
import {
|
|
7
|
+
createNamedThemeLayer,
|
|
8
|
+
type NamedThemeLayerProps,
|
|
9
|
+
} from "./factory.svelte.js";
|
|
10
|
+
|
|
11
|
+
const props: NamedThemeLayerProps = $props();
|
|
12
|
+
createNamedThemeLayer("hrbr", () => props);
|
|
13
|
+
</script>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <ThemeHrbr> — declaration-only "hrbr" theme layer for <GGPlot>.
|
|
3
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
4
|
+
*/
|
|
5
|
+
import { type NamedThemeLayerProps } from "./factory.svelte.js";
|
|
6
|
+
declare const ThemeHrbr: import("svelte").Component<NamedThemeLayerProps, {}, "">;
|
|
7
|
+
type ThemeHrbr = ReturnType<typeof ThemeHrbr>;
|
|
8
|
+
export default ThemeHrbr;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* <ThemeIgray> — declaration-only "igray" theme layer for <GGPlot>.
|
|
4
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
5
|
+
*/
|
|
6
|
+
import {
|
|
7
|
+
createNamedThemeLayer,
|
|
8
|
+
type NamedThemeLayerProps,
|
|
9
|
+
} from "./factory.svelte.js";
|
|
10
|
+
|
|
11
|
+
const props: NamedThemeLayerProps = $props();
|
|
12
|
+
createNamedThemeLayer("igray", () => props);
|
|
13
|
+
</script>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <ThemeIgray> — declaration-only "igray" theme layer for <GGPlot>.
|
|
3
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
4
|
+
*/
|
|
5
|
+
import { type NamedThemeLayerProps } from "./factory.svelte.js";
|
|
6
|
+
declare const ThemeIgray: import("svelte").Component<NamedThemeLayerProps, {}, "">;
|
|
7
|
+
type ThemeIgray = ReturnType<typeof ThemeIgray>;
|
|
8
|
+
export default ThemeIgray;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* <ThemeLight> — declaration-only "light" theme layer for <GGPlot>.
|
|
4
|
+
* Accepts optional role overrides (`ink`, `paper`, …). Emits NO markup.
|
|
5
|
+
*/
|
|
6
|
+
import {
|
|
7
|
+
createNamedThemeLayer,
|
|
8
|
+
type NamedThemeLayerProps,
|
|
9
|
+
} from "./factory.svelte.js";
|
|
10
|
+
|
|
11
|
+
const props: NamedThemeLayerProps = $props();
|
|
12
|
+
createNamedThemeLayer("light", () => props);
|
|
13
|
+
</script>
|