@pibbl/core 0.0.1 → 0.0.3-alpha.109.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/THIRD_PARTY_NOTICES.txt +81 -0
- package/dist/features/machines/animation.d.ts +64 -0
- package/dist/features/machines/animation.js +55 -0
- package/dist/features/machines/animation.js.map +7 -0
- package/dist/features/machines/animation.mjs +1 -0
- package/dist/features/machines/assign.d.ts +16 -0
- package/dist/features/machines/assign.js +15 -0
- package/dist/features/machines/assign.js.map +7 -0
- package/dist/features/machines/callback.d.ts +9 -0
- package/dist/features/machines/callback.js +7 -0
- package/dist/features/machines/callback.js.map +7 -0
- package/dist/features/machines/hook.d.ts +30 -0
- package/dist/features/machines/hook.js +37 -0
- package/dist/features/machines/hook.js.map +7 -0
- package/dist/features/machines/index.d.ts +6 -0
- package/dist/features/machines/index.js +12 -0
- package/dist/features/machines/index.js.map +7 -0
- package/dist/features/machines/index.mjs +1 -0
- package/dist/features/machines/runtime.d.ts +18 -0
- package/dist/features/machines/runtime.js +363 -0
- package/dist/features/machines/runtime.js.map +7 -0
- package/dist/features/machines/types.d.ts +164 -0
- package/dist/features/physics/2d-geometry.d.ts +3 -3
- package/dist/features/physics/2d-geometry.js.map +1 -1
- package/dist/features/physics/2d-testing.d.ts +1 -1
- package/dist/features/physics/2d-testing.js +2 -2
- package/dist/features/physics/2d-testing.js.map +2 -2
- package/dist/features/physics/2d.d.ts +115 -62
- package/dist/features/physics/2d.js +59 -28
- package/dist/features/physics/2d.js.map +2 -2
- package/dist/features/physics/lib/2d/canvas/components.js +25 -21
- package/dist/features/physics/lib/2d/canvas/components.js.map +2 -2
- package/dist/features/physics/lib/2d/canvas/presentation.js +1 -2
- package/dist/features/physics/lib/2d/canvas/presentation.js.map +2 -2
- package/dist/features/physics/lib/2d/collision/casts.js +4 -2
- package/dist/features/physics/lib/2d/collision/casts.js.map +2 -2
- package/dist/features/physics/lib/2d/query-types.d.ts +6 -0
- package/dist/features/physics/lib/2d/runtime/controller.d.ts +7 -6
- package/dist/features/physics/lib/2d/runtime/controller.js +1 -1
- package/dist/features/physics/lib/2d/runtime/controller.js.map +2 -2
- package/dist/features/physics/lib/2d/runtime/obstacles.js +9 -11
- package/dist/features/physics/lib/2d/runtime/obstacles.js.map +2 -2
- package/dist/features/physics/lib/2d/shapes.js +8 -9
- package/dist/features/physics/lib/2d/shapes.js.map +2 -2
- package/dist/features/physics/lib/2d/types.d.ts +8 -30
- package/dist/features/physics/lib/2d/world/queries.d.ts +7 -6
- package/dist/features/physics/lib/2d/world/queries.js.map +2 -2
- package/dist/features/physics/lib/2d/world/rapier.js +22 -26
- package/dist/features/physics/lib/2d/world/rapier.js.map +2 -2
- package/dist/features/sprites/formats/aseprite.d.ts +5 -0
- package/dist/features/sprites/formats/texture-packer.d.ts +5 -0
- package/dist/features/sprites/index.d.ts +6 -0
- package/dist/features/sprites/loader.d.ts +25 -0
- package/dist/features/sprites/loader.js +6 -3
- package/dist/features/sprites/loader.js.map +2 -2
- package/dist/features/sprites/model.d.ts +75 -0
- package/dist/features/sprites/sprite.d.ts +22 -0
- package/dist/features/textures/index.d.ts +12 -2
- package/dist/features/textures/index.js +33 -1
- package/dist/features/textures/index.js.map +2 -2
- package/dist/features/textures/lib/chemical-field.d.ts +56 -0
- package/dist/features/textures/lib/chemical-field.js +154 -0
- package/dist/features/textures/lib/chemical-field.js.map +7 -0
- package/dist/features/textures/lib/chemical-recipes.d.ts +119 -0
- package/dist/features/textures/lib/chemical-recipes.js +275 -0
- package/dist/features/textures/lib/chemical-recipes.js.map +7 -0
- package/dist/features/textures/lib/definitions.d.ts +3 -18
- package/dist/features/textures/lib/definitions.js +17 -24
- package/dist/features/textures/lib/definitions.js.map +2 -2
- package/dist/features/textures/lib/geometric-patterns.d.ts +149 -0
- package/dist/features/textures/lib/geometric-patterns.js +305 -0
- package/dist/features/textures/lib/geometric-patterns.js.map +7 -0
- package/dist/features/textures/lib/gray-scott.d.ts +55 -0
- package/dist/features/textures/lib/gray-scott.js +37 -0
- package/dist/features/textures/lib/gray-scott.js.map +7 -0
- package/dist/features/textures/lib/palette.js +1 -3
- package/dist/features/textures/lib/palette.js.map +2 -2
- package/dist/features/textures/lib/patterns.d.ts +123 -0
- package/dist/features/textures/lib/patterns.js +344 -0
- package/dist/features/textures/lib/patterns.js.map +7 -0
- package/dist/features/textures/lib/rain-drops.js +2 -1
- package/dist/features/textures/lib/rain-drops.js.map +2 -2
- package/dist/features/textures/lib/reaction-diffusion.d.ts +3 -2
- package/dist/features/textures/lib/reaction-diffusion.js +9 -20
- package/dist/features/textures/lib/reaction-diffusion.js.map +2 -2
- package/dist/features/textures/lib/simulation.d.ts +10 -4
- package/dist/features/textures/lib/simulation.js +23 -13
- package/dist/features/textures/lib/simulation.js.map +2 -2
- package/dist/features/textures/lib/wasm/electric.js +8 -1
- package/dist/features/textures/lib/wasm/electric.js.map +2 -2
- package/dist/features/textures/lib/water-surface.js +1 -3
- package/dist/features/textures/lib/water-surface.js.map +2 -2
- package/dist/features/viz/index.d.ts +92 -5
- package/dist/features/viz/index.js +202 -4
- package/dist/features/viz/index.js.map +2 -2
- package/dist/features/viz/inspection/bar.d.ts +79 -0
- package/dist/features/viz/inspection/bar.js +49 -0
- package/dist/features/viz/inspection/bar.js.map +7 -0
- package/dist/features/viz/inspection/candle.d.ts +156 -0
- package/dist/features/viz/inspection/candle.js +120 -0
- package/dist/features/viz/inspection/candle.js.map +7 -0
- package/dist/features/viz/inspection/capture-types.d.ts +65 -0
- package/dist/features/viz/inspection/capture.d.ts +16 -0
- package/dist/features/viz/inspection/capture.js +49 -0
- package/dist/features/viz/inspection/capture.js.map +7 -0
- package/dist/features/viz/inspection/handler.d.ts +36 -0
- package/dist/features/viz/inspection/handler.js +91 -0
- package/dist/features/viz/inspection/handler.js.map +7 -0
- package/dist/features/viz/inspection/ohlc-bar.d.ts +132 -0
- package/dist/features/viz/inspection/ohlc-bar.js +118 -0
- package/dist/features/viz/inspection/ohlc-bar.js.map +7 -0
- package/dist/features/viz/inspection/owned-ref.d.ts +16 -0
- package/dist/features/viz/inspection/owned-ref.js +99 -0
- package/dist/features/viz/inspection/owned-ref.js.map +7 -0
- package/dist/features/viz/inspection/painted-point.d.ts +22 -0
- package/dist/features/viz/inspection/painted-point.js +29 -0
- package/dist/features/viz/inspection/painted-point.js.map +7 -0
- package/dist/features/viz/inspection/queries.d.ts +100 -0
- package/dist/features/viz/inspection/queries.js +192 -0
- package/dist/features/viz/inspection/queries.js.map +7 -0
- package/dist/features/viz/inspection/query-types.d.ts +177 -0
- package/dist/features/viz/inspection/volume.d.ts +104 -0
- package/dist/features/viz/inspection/volume.js +95 -0
- package/dist/features/viz/inspection/volume.js.map +7 -0
- package/dist/features/viz/inspection.d.ts +19 -0
- package/dist/features/viz/inspection.js +54 -0
- package/dist/features/viz/inspection.js.map +7 -0
- package/dist/features/viz/inspection.mjs +1 -0
- package/dist/features/viz/lib/area-series.d.ts +62 -0
- package/dist/features/viz/lib/area-series.js +120 -0
- package/dist/features/viz/lib/area-series.js.map +7 -0
- package/dist/features/viz/lib/axis-labels.d.ts +2 -0
- package/dist/features/viz/lib/axis-labels.js +41 -0
- package/dist/features/viz/lib/axis-labels.js.map +7 -0
- package/dist/features/viz/lib/axis-title.d.ts +23 -0
- package/dist/features/viz/lib/axis-title.js +24 -0
- package/dist/features/viz/lib/axis-title.js.map +7 -0
- package/dist/features/viz/lib/axis.d.ts +1 -1
- package/dist/features/viz/lib/axis.js +50 -50
- package/dist/features/viz/lib/axis.js.map +2 -2
- package/dist/features/viz/lib/bar-scale.d.ts +7 -0
- package/dist/features/viz/lib/bar-scale.js +34 -0
- package/dist/features/viz/lib/bar-scale.js.map +7 -0
- package/dist/features/viz/lib/bar-series.d.ts +3 -1
- package/dist/features/viz/lib/bar-series.js +21 -5
- package/dist/features/viz/lib/bar-series.js.map +2 -2
- package/dist/features/viz/lib/baseline-series.d.ts +55 -0
- package/dist/features/viz/lib/baseline-series.js +136 -0
- package/dist/features/viz/lib/baseline-series.js.map +7 -0
- package/dist/features/viz/lib/candlestick-series.d.ts +62 -0
- package/dist/features/viz/lib/candlestick-series.js +150 -0
- package/dist/features/viz/lib/candlestick-series.js.map +7 -0
- package/dist/features/viz/lib/censored-point-series.d.ts +71 -0
- package/dist/features/viz/lib/censored-point-series.js +129 -0
- package/dist/features/viz/lib/censored-point-series.js.map +7 -0
- package/dist/features/viz/lib/chart-lines.d.ts +41 -0
- package/dist/features/viz/lib/chart-lines.js +32 -0
- package/dist/features/viz/lib/chart-lines.js.map +7 -0
- package/dist/features/viz/lib/color-context.d.ts +4 -0
- package/dist/features/viz/lib/color-context.js +41 -0
- package/dist/features/viz/lib/color-context.js.map +7 -0
- package/dist/features/viz/lib/color-math.d.ts +4 -0
- package/dist/features/viz/lib/color-math.js +31 -0
- package/dist/features/viz/lib/color-math.js.map +7 -0
- package/dist/features/viz/lib/color-types.d.ts +53 -0
- package/dist/features/viz/lib/curve-definition.d.ts +49 -0
- package/dist/features/viz/lib/curve-definition.js +142 -0
- package/dist/features/viz/lib/curve-definition.js.map +7 -0
- package/dist/features/viz/lib/diverging-color-scale.d.ts +11 -0
- package/dist/features/viz/lib/diverging-color-scale.js +51 -0
- package/dist/features/viz/lib/diverging-color-scale.js.map +7 -0
- package/dist/features/viz/lib/domain-navigation.d.ts +40 -0
- package/dist/features/viz/lib/domain-navigation.js +77 -0
- package/dist/features/viz/lib/domain-navigation.js.map +7 -0
- package/dist/features/viz/lib/editable-chart-elements.d.ts +178 -0
- package/dist/features/viz/lib/editable-chart-elements.js +733 -0
- package/dist/features/viz/lib/editable-chart-elements.js.map +7 -0
- package/dist/features/viz/lib/financial-aggregation.d.ts +127 -0
- package/dist/features/viz/lib/financial-aggregation.js +116 -0
- package/dist/features/viz/lib/financial-aggregation.js.map +7 -0
- package/dist/features/viz/lib/financial-autoscale.d.ts +64 -0
- package/dist/features/viz/lib/financial-autoscale.js +61 -0
- package/dist/features/viz/lib/financial-autoscale.js.map +7 -0
- package/dist/features/viz/lib/financial-comparison.d.ts +62 -0
- package/dist/features/viz/lib/financial-comparison.js +98 -0
- package/dist/features/viz/lib/financial-comparison.js.map +7 -0
- package/dist/features/viz/lib/financial-geometry.d.ts +77 -0
- package/dist/features/viz/lib/financial-geometry.js +67 -0
- package/dist/features/viz/lib/financial-geometry.js.map +7 -0
- package/dist/features/viz/lib/financial-indicators.d.ts +114 -0
- package/dist/features/viz/lib/financial-indicators.js +135 -0
- package/dist/features/viz/lib/financial-indicators.js.map +7 -0
- package/dist/features/viz/lib/financial-oscillators.d.ts +171 -0
- package/dist/features/viz/lib/financial-oscillators.js +265 -0
- package/dist/features/viz/lib/financial-oscillators.js.map +7 -0
- package/dist/features/viz/lib/graph/bipartite.d.ts +14 -0
- package/dist/features/viz/lib/graph/bipartite.js +250 -0
- package/dist/features/viz/lib/graph/bipartite.js.map +7 -0
- package/dist/features/viz/lib/graph/chord.d.ts +44 -0
- package/dist/features/viz/lib/graph/chord.js +348 -0
- package/dist/features/viz/lib/graph/chord.js.map +7 -0
- package/dist/features/viz/lib/graph/dependency.d.ts +26 -0
- package/dist/features/viz/lib/graph/dependency.js +140 -0
- package/dist/features/viz/lib/graph/dependency.js.map +7 -0
- package/dist/features/viz/lib/graph/force.d.ts +28 -0
- package/dist/features/viz/lib/graph/force.js +580 -0
- package/dist/features/viz/lib/graph/force.js.map +7 -0
- package/dist/features/viz/lib/graph/hierarchy.d.ts +21 -0
- package/dist/features/viz/lib/graph/hierarchy.js +112 -0
- package/dist/features/viz/lib/graph/hierarchy.js.map +7 -0
- package/dist/features/viz/lib/graph/icicle.d.ts +16 -0
- package/dist/features/viz/lib/graph/icicle.js +153 -0
- package/dist/features/viz/lib/graph/icicle.js.map +7 -0
- package/dist/features/viz/lib/graph/matrix.d.ts +30 -0
- package/dist/features/viz/lib/graph/matrix.js +243 -0
- package/dist/features/viz/lib/graph/matrix.js.map +7 -0
- package/dist/features/viz/lib/graph/neighborhood.d.ts +11 -0
- package/dist/features/viz/lib/graph/neighborhood.js +281 -0
- package/dist/features/viz/lib/graph/neighborhood.js.map +7 -0
- package/dist/features/viz/lib/graph/routes.d.ts +35 -0
- package/dist/features/viz/lib/graph/routes.js +101 -0
- package/dist/features/viz/lib/graph/routes.js.map +7 -0
- package/dist/features/viz/lib/graph/sankey.d.ts +44 -0
- package/dist/features/viz/lib/graph/sankey.js +341 -0
- package/dist/features/viz/lib/graph/sankey.js.map +7 -0
- package/dist/features/viz/lib/graph/shared.d.ts +59 -0
- package/dist/features/viz/lib/graph/shared.js +301 -0
- package/dist/features/viz/lib/graph/shared.js.map +7 -0
- package/dist/features/viz/lib/graph/tree.d.ts +11 -0
- package/dist/features/viz/lib/graph/tree.js +232 -0
- package/dist/features/viz/lib/graph/tree.js.map +7 -0
- package/dist/features/viz/lib/graph/treemap.d.ts +20 -0
- package/dist/features/viz/lib/graph/treemap.js +227 -0
- package/dist/features/viz/lib/graph/treemap.js.map +7 -0
- package/dist/features/viz/lib/graph/types.d.ts +1097 -0
- package/dist/features/viz/lib/hover-card.js +8 -9
- package/dist/features/viz/lib/hover-card.js.map +2 -2
- package/dist/features/viz/lib/hover-data.d.ts +1 -1
- package/dist/features/viz/lib/hover-data.js +6 -3
- package/dist/features/viz/lib/hover-data.js.map +2 -2
- package/dist/features/viz/lib/hover-types.d.ts +5 -5
- package/dist/features/viz/lib/interval-band-series.d.ts +49 -0
- package/dist/features/viz/lib/interval-band-series.js +136 -0
- package/dist/features/viz/lib/interval-band-series.js.map +7 -0
- package/dist/features/viz/lib/interval-diamond-series.d.ts +43 -0
- package/dist/features/viz/lib/interval-diamond-series.js +122 -0
- package/dist/features/viz/lib/interval-diamond-series.js.map +7 -0
- package/dist/features/viz/lib/interval-series.d.ts +79 -0
- package/dist/features/viz/lib/interval-series.js +158 -0
- package/dist/features/viz/lib/interval-series.js.map +7 -0
- package/dist/features/viz/lib/layout-pie.js +9 -13
- package/dist/features/viz/lib/layout-pie.js.map +2 -2
- package/dist/features/viz/lib/line-series.d.ts +1 -1
- package/dist/features/viz/lib/line-series.js +47 -28
- package/dist/features/viz/lib/line-series.js.map +2 -2
- package/dist/features/viz/lib/linear-scale-component.d.ts +7 -0
- package/dist/features/viz/lib/linear-scale-component.js +18 -0
- package/dist/features/viz/lib/linear-scale-component.js.map +7 -0
- package/dist/features/viz/lib/linear-scale.js +1 -1
- package/dist/features/viz/lib/linear-scale.js.map +2 -2
- package/dist/features/viz/lib/log-scale-component.d.ts +7 -0
- package/dist/features/viz/lib/log-scale-component.js +19 -0
- package/dist/features/viz/lib/log-scale-component.js.map +7 -0
- package/dist/features/viz/lib/log-scale.d.ts +2 -0
- package/dist/features/viz/lib/log-scale.js +53 -0
- package/dist/features/viz/lib/log-scale.js.map +7 -0
- package/dist/features/viz/lib/monotone-curve.d.ts +11 -0
- package/dist/features/viz/lib/monotone-curve.js +63 -0
- package/dist/features/viz/lib/monotone-curve.js.map +7 -0
- package/dist/features/viz/lib/nearest.d.ts +9 -9
- package/dist/features/viz/lib/nearest.js.map +1 -1
- package/dist/features/viz/lib/numeric-range-interpolation.d.ts +15 -0
- package/dist/features/viz/lib/numeric-range-interpolation.js +36 -0
- package/dist/features/viz/lib/numeric-range-interpolation.js.map +7 -0
- package/dist/features/viz/lib/numeric-ticks.d.ts +38 -0
- package/dist/features/viz/lib/numeric-ticks.js +54 -0
- package/dist/features/viz/lib/numeric-ticks.js.map +7 -0
- package/dist/features/viz/lib/ohlc-bar-series.d.ts +55 -0
- package/dist/features/viz/lib/ohlc-bar-series.js +168 -0
- package/dist/features/viz/lib/ohlc-bar-series.js.map +7 -0
- package/dist/features/viz/lib/paired-series.d.ts +44 -0
- package/dist/features/viz/lib/paired-series.js +93 -0
- package/dist/features/viz/lib/paired-series.js.map +7 -0
- package/dist/features/viz/lib/pie-layout.js +2 -1
- package/dist/features/viz/lib/pie-layout.js.map +2 -2
- package/dist/features/viz/lib/plot-series.js +11 -6
- package/dist/features/viz/lib/plot-series.js.map +2 -2
- package/dist/features/viz/lib/plot-types.d.ts +4 -3
- package/dist/features/viz/lib/point-scale-component.d.ts +7 -0
- package/dist/features/viz/lib/point-scale-component.js +19 -0
- package/dist/features/viz/lib/point-scale-component.js.map +7 -0
- package/dist/features/viz/lib/point-scale.d.ts +2 -0
- package/dist/features/viz/lib/point-scale.js +45 -0
- package/dist/features/viz/lib/point-scale.js.map +7 -0
- package/dist/features/viz/lib/point-series.d.ts +1 -1
- package/dist/features/viz/lib/point-series.js +36 -9
- package/dist/features/viz/lib/point-series.js.map +2 -2
- package/dist/features/viz/lib/point-types.d.ts +5 -2
- package/dist/features/viz/lib/reference-band.d.ts +16 -0
- package/dist/features/viz/lib/reference-band.js +30 -0
- package/dist/features/viz/lib/reference-band.js.map +7 -0
- package/dist/features/viz/lib/scale-adjust.js +9 -4
- package/dist/features/viz/lib/scale-adjust.js.map +2 -2
- package/dist/features/viz/lib/scale-context.d.ts +5 -4
- package/dist/features/viz/lib/scale-context.js +15 -11
- package/dist/features/viz/lib/scale-context.js.map +2 -2
- package/dist/features/viz/lib/scale-provider.d.ts +2 -0
- package/dist/features/viz/lib/scale-provider.js +13 -0
- package/dist/features/viz/lib/scale-provider.js.map +7 -0
- package/dist/features/viz/lib/scale-ticks.d.ts +5 -0
- package/dist/features/viz/lib/scale-ticks.js +64 -0
- package/dist/features/viz/lib/scale-ticks.js.map +7 -0
- package/dist/features/viz/lib/scale-view.d.ts +4 -0
- package/dist/features/viz/lib/scale-view.js +21 -0
- package/dist/features/viz/lib/scale-view.js.map +7 -0
- package/dist/features/viz/lib/sequential-color-scale.d.ts +11 -0
- package/dist/features/viz/lib/sequential-color-scale.js +49 -0
- package/dist/features/viz/lib/sequential-color-scale.js.map +7 -0
- package/dist/features/viz/lib/series-position.d.ts +12 -0
- package/dist/features/viz/lib/series-position.js +44 -0
- package/dist/features/viz/lib/series-position.js.map +7 -0
- package/dist/features/viz/lib/step-curves.d.ts +19 -0
- package/dist/features/viz/lib/step-curves.js +53 -0
- package/dist/features/viz/lib/step-curves.js.map +7 -0
- package/dist/features/viz/lib/symlog-scale-component.d.ts +7 -0
- package/dist/features/viz/lib/symlog-scale-component.js +19 -0
- package/dist/features/viz/lib/symlog-scale-component.js.map +7 -0
- package/dist/features/viz/lib/symlog-scale.d.ts +2 -0
- package/dist/features/viz/lib/symlog-scale.js +38 -0
- package/dist/features/viz/lib/symlog-scale.js.map +7 -0
- package/dist/features/viz/lib/threshold-color-scale.d.ts +43 -0
- package/dist/features/viz/lib/threshold-color-scale.js +59 -0
- package/dist/features/viz/lib/threshold-color-scale.js.map +7 -0
- package/dist/features/viz/lib/trading-time-mapping.d.ts +32 -0
- package/dist/features/viz/lib/trading-time-mapping.js +89 -0
- package/dist/features/viz/lib/trading-time-mapping.js.map +7 -0
- package/dist/features/viz/lib/trading-time-scale.d.ts +83 -0
- package/dist/features/viz/lib/trading-time-scale.js +96 -0
- package/dist/features/viz/lib/trading-time-scale.js.map +7 -0
- package/dist/features/viz/lib/trajectory-series.d.ts +71 -0
- package/dist/features/viz/lib/trajectory-series.js +111 -0
- package/dist/features/viz/lib/trajectory-series.js.map +7 -0
- package/dist/features/viz/lib/types.d.ts +114 -21
- package/dist/features/viz/lib/use-bar-scale.d.ts +8 -0
- package/dist/features/viz/lib/use-bar-scale.js +9 -0
- package/dist/features/viz/lib/use-bar-scale.js.map +7 -0
- package/dist/features/viz/lib/use-continuous-scale.d.ts +8 -0
- package/dist/features/viz/lib/use-continuous-scale.js +14 -0
- package/dist/features/viz/lib/use-continuous-scale.js.map +7 -0
- package/dist/features/viz/lib/use-linear-scale.d.ts +8 -0
- package/dist/features/viz/lib/use-linear-scale.js +9 -0
- package/dist/features/viz/lib/use-linear-scale.js.map +7 -0
- package/dist/features/viz/lib/use-log-scale.d.ts +8 -0
- package/dist/features/viz/lib/use-log-scale.js +9 -0
- package/dist/features/viz/lib/use-log-scale.js.map +7 -0
- package/dist/features/viz/lib/use-point-scale.d.ts +8 -0
- package/dist/features/viz/lib/use-point-scale.js +9 -0
- package/dist/features/viz/lib/use-point-scale.js.map +7 -0
- package/dist/features/viz/lib/use-symlog-scale.d.ts +8 -0
- package/dist/features/viz/lib/use-symlog-scale.js +9 -0
- package/dist/features/viz/lib/use-symlog-scale.js.map +7 -0
- package/dist/features/viz/lib/use-utc-scale.d.ts +8 -0
- package/dist/features/viz/lib/use-utc-scale.js +9 -0
- package/dist/features/viz/lib/use-utc-scale.js.map +7 -0
- package/dist/features/viz/lib/utc-labels.d.ts +12 -0
- package/dist/features/viz/lib/utc-labels.js +27 -0
- package/dist/features/viz/lib/utc-labels.js.map +7 -0
- package/dist/features/viz/lib/utc-scale-component.d.ts +7 -0
- package/dist/features/viz/lib/utc-scale-component.js +18 -0
- package/dist/features/viz/lib/utc-scale-component.js.map +7 -0
- package/dist/features/viz/lib/utc-scale.d.ts +21 -0
- package/dist/features/viz/lib/utc-scale.js +124 -0
- package/dist/features/viz/lib/utc-scale.js.map +7 -0
- package/dist/features/viz/lib/volume-series.d.ts +59 -0
- package/dist/features/viz/lib/volume-series.js +117 -0
- package/dist/features/viz/lib/volume-series.js.map +7 -0
- package/dist/features/viz/lib/weighted-point-series.d.ts +71 -0
- package/dist/features/viz/lib/weighted-point-series.js +169 -0
- package/dist/features/viz/lib/weighted-point-series.js.map +7 -0
- package/dist/filters/backdrop-contrast-gpu.d.ts +5 -0
- package/dist/filters/backdrop-contrast-gpu.js +33 -0
- package/dist/filters/backdrop-contrast-gpu.js.map +7 -0
- package/dist/filters/backdrop-contrast.d.ts +21 -0
- package/dist/filters/backdrop-contrast.js +61 -0
- package/dist/filters/backdrop-contrast.js.map +7 -0
- package/dist/filters/displacement.js +1 -1
- package/dist/filters/displacement.js.map +2 -2
- package/dist/filters/emboss-gpu.d.ts +4 -0
- package/dist/filters/emboss-gpu.js +39 -0
- package/dist/filters/emboss-gpu.js.map +7 -0
- package/dist/filters/emboss.d.ts +32 -0
- package/dist/filters/emboss.js +104 -0
- package/dist/filters/emboss.js.map +7 -0
- package/dist/filters/filter-executor.d.ts +11 -4
- package/dist/filters/filter-executor.js +104 -49
- package/dist/filters/filter-executor.js.map +2 -2
- package/dist/filters/reflected-light.js +1 -1
- package/dist/filters/reflected-light.js.map +2 -2
- package/dist/filters/reflection-gpu.d.ts +3 -1
- package/dist/filters/reflection-gpu.js +5 -2
- package/dist/filters/reflection-gpu.js.map +2 -2
- package/dist/filters/render-backdrop-contrast-boundary.d.ts +31 -0
- package/dist/filters/render-backdrop-contrast-boundary.js +116 -0
- package/dist/filters/render-backdrop-contrast-boundary.js.map +7 -0
- package/dist/filters/render-emboss-boundary.d.ts +13 -0
- package/dist/filters/render-emboss-boundary.js +131 -0
- package/dist/filters/render-emboss-boundary.js.map +7 -0
- package/dist/filters.d.ts +9 -5
- package/dist/filters.js +4 -0
- package/dist/filters.js.map +2 -2
- package/dist/index.d.ts +10 -6
- package/dist/index.js +18 -2
- package/dist/index.js.map +2 -2
- package/dist/internal.d.ts +4 -0
- package/dist/internal.js +6 -0
- package/dist/internal.js.map +2 -2
- package/dist/layout-kernel.d.ts +12 -0
- package/dist/layout-kernel.js +11 -0
- package/dist/layout-kernel.js.map +7 -0
- package/dist/layout-kernel.mjs +1 -0
- package/dist/lib/animation/definition.d.ts +5 -3
- package/dist/lib/animation/definition.js +29 -4
- package/dist/lib/animation/definition.js.map +2 -2
- package/dist/lib/animation/playback.d.ts +8 -0
- package/dist/lib/animation/playback.js +33 -11
- package/dist/lib/animation/playback.js.map +2 -2
- package/dist/lib/animation/spring.d.ts +3 -1
- package/dist/lib/animation/spring.js.map +2 -2
- package/dist/lib/animation/types.d.ts +29 -73
- package/dist/lib/backend/types.d.ts +13 -1
- package/dist/lib/backend/types.js.map +2 -2
- package/dist/lib/components/arc-geometry.js +2 -1
- package/dist/lib/components/arc-geometry.js.map +2 -2
- package/dist/lib/components/g.js +2 -0
- package/dist/lib/components/g.js.map +2 -2
- package/dist/lib/components/html-box.js +2 -1
- package/dist/lib/components/html-box.js.map +2 -2
- package/dist/lib/components/img.js +3 -3
- package/dist/lib/components/img.js.map +2 -2
- package/dist/lib/components/layer.js +98 -16
- package/dist/lib/components/layer.js.map +3 -3
- package/dist/lib/components/text.d.ts +16 -0
- package/dist/lib/components/text.js +131 -24
- package/dist/lib/components/text.js.map +2 -2
- package/dist/lib/define-primitive.d.ts +4 -2
- package/dist/lib/define-primitive.js +3 -1
- package/dist/lib/define-primitive.js.map +2 -2
- package/dist/lib/element/metadata.d.ts +9 -0
- package/dist/lib/element/metadata.js +19 -0
- package/dist/lib/element/metadata.js.map +2 -2
- package/dist/lib/element/resolve-primitive-inputs.d.ts +2 -0
- package/dist/lib/element/resolve-primitive-inputs.js +17 -4
- package/dist/lib/element/resolve-primitive-inputs.js.map +2 -2
- package/dist/lib/events/event-facade.d.ts +18 -0
- package/dist/lib/events/event-facade.js +28 -2
- package/dist/lib/events/event-facade.js.map +2 -2
- package/dist/lib/events/hit-test.js +2 -1
- package/dist/lib/events/hit-test.js.map +2 -2
- package/dist/lib/events/propagation.d.ts +2 -1
- package/dist/lib/events/propagation.js +22 -16
- package/dist/lib/events/propagation.js.map +2 -2
- package/dist/lib/events/registrations.d.ts +10 -0
- package/dist/lib/events/registrations.js +160 -5
- package/dist/lib/events/registrations.js.map +2 -2
- package/dist/lib/execute-render.js +25 -1
- package/dist/lib/execute-render.js.map +2 -2
- package/dist/lib/filter/filter-region.js +3 -10
- package/dist/lib/filter/filter-region.js.map +2 -2
- package/dist/lib/focus/focus-manager.d.ts +8 -1
- package/dist/lib/focus/focus-manager.js +87 -43
- package/dist/lib/focus/focus-manager.js.map +2 -2
- package/dist/lib/focus/geometry.d.ts +2 -0
- package/dist/lib/focus/geometry.js +6 -0
- package/dist/lib/focus/geometry.js.map +2 -2
- package/dist/lib/geometry/path-bend-guide.js +1 -1
- package/dist/lib/geometry/path-bend-guide.js.map +2 -2
- package/dist/lib/geometry/path-geometry.js +12 -11
- package/dist/lib/geometry/path-geometry.js.map +2 -2
- package/dist/lib/geometry/path-transforms.js +17 -21
- package/dist/lib/geometry/path-transforms.js.map +2 -2
- package/dist/lib/geometry/path-warp-bezier.js +3 -1
- package/dist/lib/geometry/path-warp-bezier.js.map +2 -2
- package/dist/lib/geometry/path-warp.js +1 -1
- package/dist/lib/geometry/path-warp.js.map +2 -2
- package/dist/lib/global-state.js +2 -0
- package/dist/lib/global-state.js.map +2 -2
- package/dist/lib/hooks/use-animated-value.d.ts +11 -21
- package/dist/lib/hooks/use-animated-value.js +23 -70
- package/dist/lib/hooks/use-animated-value.js.map +3 -3
- package/dist/lib/hooks/use-playback.js +1 -0
- package/dist/lib/hooks/use-playback.js.map +2 -2
- package/dist/lib/html/html-events.d.ts +32 -0
- package/dist/lib/html/html-events.js +179 -0
- package/dist/lib/html/html-events.js.map +7 -0
- package/dist/lib/html/html-service.d.ts +8 -2
- package/dist/lib/html/html-service.js +198 -65
- package/dist/lib/html/html-service.js.map +2 -2
- package/dist/lib/html/overlay-config.js +7 -6
- package/dist/lib/html/overlay-config.js.map +2 -2
- package/dist/lib/html/types.d.ts +29 -2
- package/dist/lib/layout/absolute.d.ts +11 -5
- package/dist/lib/layout/absolute.js +329 -55
- package/dist/lib/layout/absolute.js.map +3 -3
- package/dist/lib/layout/allocation-checkpoint-owner.d.ts +11 -0
- package/dist/lib/layout/allocation-checkpoint-owner.js +86 -0
- package/dist/lib/layout/allocation-checkpoint-owner.js.map +7 -0
- package/dist/lib/layout/allocation-checkpoint.d.ts +53 -0
- package/dist/lib/layout/allocation-checkpoint.js +463 -0
- package/dist/lib/layout/allocation-checkpoint.js.map +7 -0
- package/dist/lib/layout/allocation-dependencies.d.ts +30 -0
- package/dist/lib/layout/allocation-dependencies.js +90 -0
- package/dist/lib/layout/allocation-dependencies.js.map +7 -0
- package/dist/lib/layout/allocation-revision.d.ts +13 -0
- package/dist/lib/layout/allocation-revision.js +67 -0
- package/dist/lib/layout/allocation-revision.js.map +7 -0
- package/dist/lib/layout/box-insets.d.ts +17 -0
- package/dist/lib/layout/box-insets.js +138 -0
- package/dist/lib/layout/box-insets.js.map +7 -0
- package/dist/lib/layout/box-sizing.d.ts +16 -0
- package/dist/lib/layout/box-sizing.js +77 -0
- package/dist/lib/layout/box-sizing.js.map +7 -0
- package/dist/lib/layout/box.js +42 -12
- package/dist/lib/layout/box.js.map +2 -2
- package/dist/lib/layout/canvas-measurement.d.ts +13 -0
- package/dist/lib/layout/canvas-measurement.js +57 -0
- package/dist/lib/layout/canvas-measurement.js.map +7 -0
- package/dist/lib/layout/context.d.ts +35 -6
- package/dist/lib/layout/context.js +72 -3
- package/dist/lib/layout/context.js.map +2 -2
- package/dist/lib/layout/define-layout-component.d.ts +23 -0
- package/dist/lib/layout/define-layout-component.js +84 -0
- package/dist/lib/layout/define-layout-component.js.map +7 -0
- package/dist/lib/layout/flex-allocation-cache.d.ts +42 -0
- package/dist/lib/layout/flex-baseline-mode.d.ts +2 -0
- package/dist/lib/layout/flex-baseline-mode.js +7 -0
- package/dist/lib/layout/flex-baseline-mode.js.map +7 -0
- package/dist/lib/layout/flex.d.ts +50 -15
- package/dist/lib/layout/flex.js +2124 -195
- package/dist/lib/layout/flex.js.map +3 -3
- package/dist/lib/layout/flow.js +225 -49
- package/dist/lib/layout/flow.js.map +2 -2
- package/dist/lib/layout/geometry-publication.d.ts +53 -0
- package/dist/lib/layout/geometry-publication.js +244 -0
- package/dist/lib/layout/geometry-publication.js.map +7 -0
- package/dist/lib/layout/grid-kernel.d.ts +63 -0
- package/dist/lib/layout/grid-kernel.js +168 -0
- package/dist/lib/layout/grid-kernel.js.map +7 -0
- package/dist/lib/layout/grid.d.ts +63 -4
- package/dist/lib/layout/grid.js +767 -171
- package/dist/lib/layout/grid.js.map +3 -3
- package/dist/lib/layout/measure.d.ts +55 -3
- package/dist/lib/layout/measure.js +448 -15
- package/dist/lib/layout/measure.js.map +2 -2
- package/dist/lib/layout/overlay.js +81 -23
- package/dist/lib/layout/overlay.js.map +2 -2
- package/dist/lib/layout/participation.d.ts +27 -0
- package/dist/lib/layout/participation.js +188 -0
- package/dist/lib/layout/participation.js.map +7 -0
- package/dist/lib/layout/place-child.js +1 -1
- package/dist/lib/layout/place-child.js.map +2 -2
- package/dist/lib/layout/positioning-diagnostics.d.ts +1 -1
- package/dist/lib/layout/positioning-diagnostics.js +13 -2
- package/dist/lib/layout/positioning-diagnostics.js.map +2 -2
- package/dist/lib/layout/prepared-root.d.ts +121 -0
- package/dist/lib/layout/prepared-root.js +360 -0
- package/dist/lib/layout/prepared-root.js.map +7 -0
- package/dist/lib/layout/standalone-kernel.d.ts +60 -0
- package/dist/lib/layout/standalone-kernel.js +722 -0
- package/dist/lib/layout/standalone-kernel.js.map +7 -0
- package/dist/lib/layout/topology.d.ts +21 -0
- package/dist/lib/layout/topology.js +113 -0
- package/dist/lib/layout/topology.js.map +7 -0
- package/dist/lib/layout/types.d.ts +5 -0
- package/dist/lib/layout/wasm/artifact.d.ts +1 -0
- package/dist/lib/layout/wasm/artifact.js +5 -0
- package/dist/lib/layout/wasm/artifact.js.map +7 -0
- package/dist/lib/layout/wasm/bytes.d.ts +1 -0
- package/dist/lib/layout/wasm/bytes.js +5 -0
- package/dist/lib/layout/wasm/bytes.js.map +7 -0
- package/dist/lib/layout/wasm/embedded.d.ts +2 -0
- package/dist/lib/layout/wasm/embedded.js +12 -0
- package/dist/lib/layout/wasm/embedded.js.map +7 -0
- package/dist/lib/layout/wasm/layout.wasm +0 -0
- package/dist/lib/layout/wasm/module.d.ts +8 -0
- package/dist/lib/layout/wasm/module.js +70 -0
- package/dist/lib/layout/wasm/module.js.map +7 -0
- package/dist/lib/layout/wasm/region.d.ts +267 -0
- package/dist/lib/layout/wasm/region.js +1018 -0
- package/dist/lib/layout/wasm/region.js.map +7 -0
- package/dist/lib/manipulation/controller.js +4 -7
- package/dist/lib/manipulation/controller.js.map +2 -2
- package/dist/lib/manipulation/frame.js +1 -1
- package/dist/lib/manipulation/frame.js.map +2 -2
- package/dist/lib/manipulation/handles.js +32 -33
- package/dist/lib/manipulation/handles.js.map +2 -2
- package/dist/lib/manipulation/solve.js +12 -10
- package/dist/lib/manipulation/solve.js.map +2 -2
- package/dist/lib/mount-pibbl.js +1 -0
- package/dist/lib/mount-pibbl.js.map +2 -2
- package/dist/lib/mount-prepared-pibbl.d.ts +5 -0
- package/dist/lib/mount-prepared-pibbl.js +29 -0
- package/dist/lib/mount-prepared-pibbl.js.map +7 -0
- package/dist/lib/mount-request.d.ts +8 -0
- package/dist/lib/mount-request.js +41 -0
- package/dist/lib/mount-request.js.map +7 -0
- package/dist/lib/pibbl.d.ts +21 -13
- package/dist/lib/pibbl.js +18 -16
- package/dist/lib/pibbl.js.map +2 -2
- package/dist/lib/recording/recording.d.ts +43 -0
- package/dist/lib/recording/recording.js +555 -0
- package/dist/lib/recording/recording.js.map +7 -0
- package/dist/lib/recording/types.d.ts +118 -0
- package/dist/lib/recording/wasm-bytes.d.ts +1 -0
- package/dist/lib/recording/wasm-bytes.js +5 -0
- package/dist/lib/recording/wasm-bytes.js.map +7 -0
- package/dist/lib/recording/worker-source.d.ts +1 -0
- package/dist/lib/recording/worker-source.js +5 -0
- package/dist/lib/recording/worker-source.js.map +7 -0
- package/dist/lib/render-layer/controller.d.ts +9 -3
- package/dist/lib/render-layer/controller.js +259 -110
- package/dist/lib/render-layer/controller.js.map +2 -2
- package/dist/lib/render-transaction.d.ts +12 -2
- package/dist/lib/render-transaction.js +69 -1
- package/dist/lib/render-transaction.js.map +2 -2
- package/dist/lib/render.js +32 -8
- package/dist/lib/render.js.map +2 -2
- package/dist/lib/scheduler/realm-scheduler.d.ts +2 -0
- package/dist/lib/scheduler/realm-scheduler.js +55 -26
- package/dist/lib/scheduler/realm-scheduler.js.map +2 -2
- package/dist/lib/scheduler/renderer-participant.js +1 -0
- package/dist/lib/scheduler/renderer-participant.js.map +2 -2
- package/dist/lib/series-inspection-frame.d.ts +18 -0
- package/dist/lib/series-inspection-frame.js +70 -0
- package/dist/lib/series-inspection-frame.js.map +7 -0
- package/dist/lib/signals/edge.d.ts +7 -4
- package/dist/lib/signals/edge.js +25 -3
- package/dist/lib/signals/edge.js.map +2 -2
- package/dist/lib/signals/graph.d.ts +16 -2
- package/dist/lib/signals/graph.js +54 -12
- package/dist/lib/signals/graph.js.map +2 -2
- package/dist/lib/signals/input-provision.d.ts +15 -0
- package/dist/lib/signals/input-provision.js +53 -3
- package/dist/lib/signals/input-provision.js.map +2 -2
- package/dist/lib/signals/render-consumer.d.ts +3 -0
- package/dist/lib/signals/render-consumer.js +22 -14
- package/dist/lib/signals/render-consumer.js.map +2 -2
- package/dist/lib/style/positioning.d.ts +50 -2
- package/dist/lib/style/positioning.js +28 -4
- package/dist/lib/style/positioning.js.map +2 -2
- package/dist/lib/style/resolve-built-in.d.ts +4 -3
- package/dist/lib/style/resolve-built-in.js +17 -3
- package/dist/lib/style/resolve-built-in.js.map +2 -2
- package/dist/lib/style/resolve-dispatch.d.ts +3 -0
- package/dist/lib/style/resolve-dispatch.js +77 -4
- package/dist/lib/style/resolve-dispatch.js.map +2 -2
- package/dist/lib/style/resolve-length.d.ts +2 -0
- package/dist/lib/style/resolve-length.js +13 -9
- package/dist/lib/style/resolve-length.js.map +2 -2
- package/dist/lib/style/sizing-length.d.ts +51 -0
- package/dist/lib/style/sizing-length.js +77 -0
- package/dist/lib/style/sizing-length.js.map +7 -0
- package/dist/lib/style/types.d.ts +63 -25
- package/dist/lib/surface/root-surface.js +10 -6
- package/dist/lib/surface/root-surface.js.map +2 -2
- package/dist/lib/textures/texture.js +10 -8
- package/dist/lib/textures/texture.js.map +2 -2
- package/dist/lib/transitions/capture.js +4 -1
- package/dist/lib/transitions/capture.js.map +2 -2
- package/dist/lib/transitions/embers-physics.js +17 -10
- package/dist/lib/transitions/embers-physics.js.map +2 -2
- package/dist/lib/types.d.ts +110 -1
- package/dist/sync.d.ts +16 -0
- package/dist/sync.js +13 -0
- package/dist/sync.js.map +7 -0
- package/dist/sync.mjs +1 -0
- package/package.json +43 -6
- package/dist/features/viz/lib/scale.d.ts +0 -11
- package/dist/features/viz/lib/scale.js +0 -80
- package/dist/features/viz/lib/scale.js.map +0 -7
- package/dist/features/viz/lib/use-scale.d.ts +0 -20
- package/dist/features/viz/lib/use-scale.js +0 -10
- package/dist/features/viz/lib/use-scale.js.map +0 -7
|
@@ -1,10 +1,23 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export
|
|
1
|
+
export { LinearScale } from "./lib/linear-scale-component.js";
|
|
2
|
+
export { BarScale } from "./lib/bar-scale.js";
|
|
3
|
+
export { UTCScale } from "./lib/utc-scale-component.js";
|
|
4
|
+
export { useLinearScale } from "./lib/use-linear-scale.js";
|
|
5
|
+
export { useBarScale } from "./lib/use-bar-scale.js";
|
|
6
|
+
export { useUTCScale } from "./lib/use-utc-scale.js";
|
|
7
|
+
export type { ScaleId, LinearDomain, BandCategory, BandDomain, BarScaleProps, BandScaleRange, ResolvedBandScale, ScaleRange, ScaleLayoutStyle, LinearScaleProps, ResolvedLinearScale, ResolvedScale, } from "./lib/types.js";
|
|
4
8
|
export { Axis } from "./lib/axis.js";
|
|
5
9
|
export { LineSeries } from "./lib/line-series.js";
|
|
10
|
+
export { AreaSeries } from "./lib/area-series.js";
|
|
11
|
+
export type { AreaSeriesProps, AreaSeriesStyle } from "./lib/area-series.js";
|
|
12
|
+
export { IntervalBandSeries } from "./lib/interval-band-series.js";
|
|
13
|
+
export type { IntervalBandSeriesProps } from "./lib/interval-band-series.js";
|
|
14
|
+
export { HorizontalIntervalSeries, VerticalIntervalSeries, } from "./lib/interval-series.js";
|
|
15
|
+
export type { IntervalSeriesStyle, IntervalSeriesProps, HorizontalIntervalSeriesProps, VerticalIntervalSeriesProps, } from "./lib/interval-series.js";
|
|
16
|
+
export type { SeriesCurve } from "./lib/curve-definition.js";
|
|
17
|
+
export { stepBefore, stepAfter, stepMidpoint } from "./lib/step-curves.js";
|
|
18
|
+
export { monotoneX } from "./lib/monotone-curve.js";
|
|
6
19
|
export { ScaleAdjust } from "./lib/scale-adjust.js";
|
|
7
|
-
export type { AxisStyle, AxisProps, LineCoordinate, LineAccessor, LineCurve, LineSeriesStyle, LineSeriesProps, ScaleAdjustProps, } from "./lib/types.js";
|
|
20
|
+
export type { AxisStyle, AxisProps, LineCoordinate, LineAccessor, SeriesAccessor, SeriesCoordinate, LineCurve, LineSeriesStyle, LineSeriesProps, ScaleAdjustProps, } from "./lib/types.js";
|
|
8
21
|
export { PointSeries } from "./lib/point-series.js";
|
|
9
22
|
export type { PointAccessor, PointMarkStyle, PointSeriesStyle, PointStyleResolver, PointSeriesProps, } from "./lib/point-types.js";
|
|
10
23
|
export { PlotSeries } from "./lib/plot-series.js";
|
|
@@ -25,4 +38,78 @@ export type { BarThresholdFill, BarCategoryAccessor, BarSeriesStyle, BarStyleRes
|
|
|
25
38
|
export { pieSlices } from "./lib/pie-slices.js";
|
|
26
39
|
export type { PieOptions, PieSliceGeometry } from "./lib/pie-slices.js";
|
|
27
40
|
export { PieLayout, PieSlice, PieLabel } from "./lib/pie-layout.js";
|
|
28
|
-
export type { PieLayoutProps, PieLayoutStyle, PieLayoutSlice, PieLabelPlacement, PieLabelLayout, PieSliceProps, PieSliceStyle, PieLabelProps, PieLabelStyle } from "./lib/pie-types.js";
|
|
41
|
+
export type { PieLayoutProps, PieLayoutStyle, PieLayoutSlice, PieLabelPlacement, PieLabelLayout, PieSliceProps, PieSliceStyle, PieLabelProps, PieLabelStyle, } from "./lib/pie-types.js";
|
|
42
|
+
export { extent, niceUTCDomain } from "./lib/utc-scale.js";
|
|
43
|
+
export type { NumericDomain, UtcDomain, UTCScaleProps, ResolvedUtcScale, ResolvedContinuousScale, } from "./lib/types.js";
|
|
44
|
+
export { linearTicks, niceLinearDomain, formatNumber, } from "./lib/numeric-ticks.js";
|
|
45
|
+
export type { LinearTickOptions, NumberFormatOptions, } from "./lib/numeric-ticks.js";
|
|
46
|
+
export { interpolateNumericRange } from "./lib/numeric-range-interpolation.js";
|
|
47
|
+
export { visibleOhlcPriceExtent, padLinearDomain, } from "./lib/financial-autoscale.js";
|
|
48
|
+
export type { VisibleOhlcPriceExtentOptions, PadLinearDomainOptions, } from "./lib/financial-autoscale.js";
|
|
49
|
+
export { percentageReturns, indexTo100 } from "./lib/financial-comparison.js";
|
|
50
|
+
export type { ComparisonBaseOptions, PercentageReturnPoint, IndexedValuePoint, } from "./lib/financial-comparison.js";
|
|
51
|
+
export { aggregateOhlcv, sessionVwap } from "./lib/financial-aggregation.js";
|
|
52
|
+
export type { OhlcvBucket, OhlcvSource, AggregatedOhlcvPoint, AggregateOhlcvOptions, SessionIdentifier, SessionAccessor, SessionVwapOptions, SessionVwapPoint, } from "./lib/financial-aggregation.js";
|
|
53
|
+
export { RangeNavigator, EditableReferenceLine, EditableReferenceBand, EditableTrendLine, } from "./lib/editable-chart-elements.js";
|
|
54
|
+
export type { ChartAnchor, RangeNavigatorProps, RangeNavigatorStyle, EditableReferenceLineProps, EditableReferenceLineStyle, EditableReferenceBandProps, EditableReferenceBandStyle, EditableTrendLineProps, EditableTrendLineStyle, } from "./lib/editable-chart-elements.js";
|
|
55
|
+
export { simpleMovingAverage, exponentialMovingAverage, bollingerBands, } from "./lib/financial-indicators.js";
|
|
56
|
+
export type { MovingAverageOptions, BollingerBandsOptions, MovingAveragePoint, BollingerBandPoint, } from "./lib/financial-indicators.js";
|
|
57
|
+
export { relativeStrengthIndex, movingAverageConvergenceDivergence, stochasticOscillator, } from "./lib/financial-oscillators.js";
|
|
58
|
+
export type { OscillatorOptions, RelativeStrengthIndexOptions, MovingAverageConvergenceDivergenceOptions, StochasticOscillatorOptions, RelativeStrengthIndexPoint, MovingAverageConvergenceDivergencePoint, StochasticOscillatorPoint, } from "./lib/financial-oscillators.js";
|
|
59
|
+
export { utcTickLabels } from "./lib/utc-labels.js";
|
|
60
|
+
export type { UTCTickLabelOptions } from "./lib/utc-labels.js";
|
|
61
|
+
export { LogScale } from "./lib/log-scale-component.js";
|
|
62
|
+
export { useLogScale } from "./lib/use-log-scale.js";
|
|
63
|
+
export type { LogScaleProps, ResolvedLogScale } from "./lib/types.js";
|
|
64
|
+
export { SymlogScale } from "./lib/symlog-scale-component.js";
|
|
65
|
+
export { useSymlogScale } from "./lib/use-symlog-scale.js";
|
|
66
|
+
export type { SymlogScaleProps, ResolvedSymlogScale } from "./lib/types.js";
|
|
67
|
+
export { PointScale } from "./lib/point-scale-component.js";
|
|
68
|
+
export { usePointScale } from "./lib/use-point-scale.js";
|
|
69
|
+
export type { PointScaleProps, ResolvedPointScale } from "./lib/types.js";
|
|
70
|
+
export { GridLines, ReferenceLine } from "./lib/chart-lines.js";
|
|
71
|
+
export type { ChartLineProps, GridLinesProps, ReferenceLineProps, } from "./lib/chart-lines.js";
|
|
72
|
+
export { ReferenceBand } from "./lib/reference-band.js";
|
|
73
|
+
export type { ReferenceBandProps } from "./lib/reference-band.js";
|
|
74
|
+
export { AxisTitle } from "./lib/axis-title.js";
|
|
75
|
+
export type { AxisTitleProps } from "./lib/axis-title.js";
|
|
76
|
+
export { panDomain, zoomDomain } from "./lib/domain-navigation.js";
|
|
77
|
+
export type { DomainNavigationConstraints, PanDomainOptions, ZoomDomainOptions, } from "./lib/domain-navigation.js";
|
|
78
|
+
export { SequentialColorScale, useSequentialColorScale, } from "./lib/sequential-color-scale.js";
|
|
79
|
+
export { DivergingColorScale, useDivergingColorScale, } from "./lib/diverging-color-scale.js";
|
|
80
|
+
export type { ColorScaleStop, SequentialColorScaleProps, DivergingColorScaleProps, ResolvedSequentialColorScale, ResolvedDivergingColorScale, } from "./lib/color-types.js";
|
|
81
|
+
export { ThresholdColorScale, useThresholdColorScale, } from "./lib/threshold-color-scale.js";
|
|
82
|
+
export type { ThresholdColorBand, ThresholdColorScaleProps, ResolvedThresholdColorScale, } from "./lib/threshold-color-scale.js";
|
|
83
|
+
export { VolumeSeries } from "./lib/volume-series.js";
|
|
84
|
+
export type { VolumeSeriesProps, VolumeSeriesStyle, } from "./lib/volume-series.js";
|
|
85
|
+
export { TradingTimeScale, useTradingTimeScale, } from "./lib/trading-time-scale.js";
|
|
86
|
+
export type { TradingTimeScaleProps, ResolvedTradingTimeScale, } from "./lib/trading-time-scale.js";
|
|
87
|
+
export { CandlestickSeries } from "./lib/candlestick-series.js";
|
|
88
|
+
export type { CandlestickSeriesProps, CandlestickSeriesStyle, CandleBodyStyle, CandleWickStyle, } from "./lib/candlestick-series.js";
|
|
89
|
+
export { OhlcBarSeries } from "./lib/ohlc-bar-series.js";
|
|
90
|
+
export type { OhlcBarSeriesProps, OhlcBarSeriesStyle, } from "./lib/ohlc-bar-series.js";
|
|
91
|
+
export { BaselineSeries } from "./lib/baseline-series.js";
|
|
92
|
+
export type { BaselineSeriesProps, BaselineSeriesStyle, BaselineSideStyle, } from "./lib/baseline-series.js";
|
|
93
|
+
export { IntervalDiamondSeries } from "./lib/interval-diamond-series.js";
|
|
94
|
+
export type { IntervalDiamondSeriesProps, IntervalDiamondSeriesStyle, } from "./lib/interval-diamond-series.js";
|
|
95
|
+
export { CensoredPointSeries } from "./lib/censored-point-series.js";
|
|
96
|
+
export type { CensoringStatus, CensoringAccessor, CensoredPointSeriesProps, CensoredPointSeriesStyle, } from "./lib/censored-point-series.js";
|
|
97
|
+
export { WeightedPointSeries } from "./lib/weighted-point-series.js";
|
|
98
|
+
export type { WeightedPointSeriesProps, WeightedPointSeriesStyle, WeightAccessor, } from "./lib/weighted-point-series.js";
|
|
99
|
+
export { TrajectorySeries } from "./lib/trajectory-series.js";
|
|
100
|
+
export type { TrajectorySeriesProps, TrajectorySeriesStyle, TrajectoryGroupAccessor, } from "./lib/trajectory-series.js";
|
|
101
|
+
export { PairedSeries } from "./lib/paired-series.js";
|
|
102
|
+
export type { PairedSeriesProps, PairedSeriesStyle, } from "./lib/paired-series.js";
|
|
103
|
+
export type { VizKey, Accessor, Bounds, Point, Style, MarkStyle, NodeStyle, EdgeStyle, LabelStyle, FrameStyle, LabelGeometry, GraphData, GraphAccessors, GraphNodeGeometry, GraphRoute, GraphEdgeGeometry, GraphLayout, GraphPresentation, MarkInteraction, GraphNodeProps, GraphEdgeProps, GraphLabelProps, GraphViewProps, DependencyStyle, DependencyOptions, DependencyGraphProps, ForceSettings, ForceOptions, ForceLayout, ForceNetworkController, ForceStyle, ForceNetworkProps, ForceHookOptions, HierarchyAccessors, TreeEdge, TreeNodeGeometry, TreeLayout, TreeStyle, TreeOptions, TidyTreeProps, MatrixData, MatrixAccessors, MatrixCellGeometry, MatrixLayout, MatrixStyle, MatrixOptions, AdjacencyMatrixProps, MatrixCellProps, SankeyNodeGeometry, SankeyFlowGeometry, SankeyLayout, SankeyAccessors, SankeyStyle, SankeyOptions, SankeyProps, BipartiteData, BipartiteAccessors, BipartiteEdgeGeometry, BipartiteLayout, BipartiteStyle, BipartiteOptions, BipartiteGraphProps, PartitionAccessors, PartitionCellGeometry, PartitionLayout, PartitionPresentation, TreemapStyle, TreemapOptions, TreemapProps, PartitionCellProps, NeighborhoodStyle, NeighborhoodOptions, NeighborhoodNodeGeometry, NeighborhoodLayout, RadialNeighborhoodProps, IcicleStyle, IcicleOptions, IcicleProps, ChordData, ChordAccessors, ChordArc, ChordBandGeometry, ChordRibbonGeometry, ChordLayout, ChordStyle, ChordOptions, ChordDiagramProps, ForceSimulation, ForceSimulationFactory, Size, } from './lib/graph/types.js';
|
|
104
|
+
export { GraphNode, GraphEdge, GraphLabel, GraphView, defaultGraphNodeStyle, defaultGraphEdgeStyle, defaultGraphLabelStyle } from './lib/graph/shared.js';
|
|
105
|
+
export { straightGraphRoute, orthogonalGraphRoute, curvedGraphRoute } from './lib/graph/routes.js';
|
|
106
|
+
export { layoutDependencies, DependencyGraph } from './lib/graph/dependency.js';
|
|
107
|
+
export { layoutMatrix, AdjacencyMatrix, MatrixCell, defaultMatrixCellStyle } from './lib/graph/matrix.js';
|
|
108
|
+
export { layoutSankey, Sankey, SankeyNode, SankeyFlow, defaultSankeyNodeStyle, defaultSankeyFlowStyle } from './lib/graph/sankey.js';
|
|
109
|
+
export { layoutBipartite, BipartiteGraph } from './lib/graph/bipartite.js';
|
|
110
|
+
export { layoutChords, ChordDiagram, ChordBand, ChordRibbon, defaultChordBandStyle, defaultChordRibbonStyle } from './lib/graph/chord.js';
|
|
111
|
+
export { layoutTree, TidyTree } from './lib/graph/tree.js';
|
|
112
|
+
export { layoutTreemap, Treemap, TreemapCell, defaultPartitionCellStyle } from './lib/graph/treemap.js';
|
|
113
|
+
export { layoutIcicle, Icicle, IcicleCell } from './lib/graph/icicle.js';
|
|
114
|
+
export { layoutNeighborhood, RadialNeighborhood } from './lib/graph/neighborhood.js';
|
|
115
|
+
export { createForceSimulation, layoutForceNetwork, useForceNetwork, ForceNetwork } from './lib/graph/force.js';
|
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { LinearScale } from "./lib/linear-scale-component.js";
|
|
2
|
+
import { BarScale } from "./lib/bar-scale.js";
|
|
3
|
+
import { UTCScale } from "./lib/utc-scale-component.js";
|
|
4
|
+
import { useLinearScale } from "./lib/use-linear-scale.js";
|
|
5
|
+
import { useBarScale } from "./lib/use-bar-scale.js";
|
|
6
|
+
import { useUTCScale } from "./lib/use-utc-scale.js";
|
|
3
7
|
import { Axis } from "./lib/axis.js";
|
|
4
8
|
import { LineSeries } from "./lib/line-series.js";
|
|
9
|
+
import { AreaSeries } from "./lib/area-series.js";
|
|
10
|
+
import { IntervalBandSeries } from "./lib/interval-band-series.js";
|
|
11
|
+
import {
|
|
12
|
+
HorizontalIntervalSeries,
|
|
13
|
+
VerticalIntervalSeries
|
|
14
|
+
} from "./lib/interval-series.js";
|
|
15
|
+
import { stepBefore, stepAfter, stepMidpoint } from "./lib/step-curves.js";
|
|
16
|
+
import { monotoneX } from "./lib/monotone-curve.js";
|
|
5
17
|
import { ScaleAdjust } from "./lib/scale-adjust.js";
|
|
6
18
|
import { PointSeries } from "./lib/point-series.js";
|
|
7
19
|
import { PlotSeries } from "./lib/plot-series.js";
|
|
@@ -18,28 +30,214 @@ import { AnchoredLayout } from "./lib/anchored-layout.js";
|
|
|
18
30
|
import { BarSeries } from "./lib/bar-series.js";
|
|
19
31
|
import { pieSlices } from "./lib/pie-slices.js";
|
|
20
32
|
import { PieLayout, PieSlice, PieLabel } from "./lib/pie-layout.js";
|
|
33
|
+
import { extent, niceUTCDomain } from "./lib/utc-scale.js";
|
|
34
|
+
import {
|
|
35
|
+
linearTicks,
|
|
36
|
+
niceLinearDomain,
|
|
37
|
+
formatNumber
|
|
38
|
+
} from "./lib/numeric-ticks.js";
|
|
39
|
+
import { interpolateNumericRange } from "./lib/numeric-range-interpolation.js";
|
|
40
|
+
import {
|
|
41
|
+
visibleOhlcPriceExtent,
|
|
42
|
+
padLinearDomain
|
|
43
|
+
} from "./lib/financial-autoscale.js";
|
|
44
|
+
import { percentageReturns, indexTo100 } from "./lib/financial-comparison.js";
|
|
45
|
+
import { aggregateOhlcv, sessionVwap } from "./lib/financial-aggregation.js";
|
|
46
|
+
import {
|
|
47
|
+
RangeNavigator,
|
|
48
|
+
EditableReferenceLine,
|
|
49
|
+
EditableReferenceBand,
|
|
50
|
+
EditableTrendLine
|
|
51
|
+
} from "./lib/editable-chart-elements.js";
|
|
52
|
+
import {
|
|
53
|
+
simpleMovingAverage,
|
|
54
|
+
exponentialMovingAverage,
|
|
55
|
+
bollingerBands
|
|
56
|
+
} from "./lib/financial-indicators.js";
|
|
57
|
+
import {
|
|
58
|
+
relativeStrengthIndex,
|
|
59
|
+
movingAverageConvergenceDivergence,
|
|
60
|
+
stochasticOscillator
|
|
61
|
+
} from "./lib/financial-oscillators.js";
|
|
62
|
+
import { utcTickLabels } from "./lib/utc-labels.js";
|
|
63
|
+
import { LogScale } from "./lib/log-scale-component.js";
|
|
64
|
+
import { useLogScale } from "./lib/use-log-scale.js";
|
|
65
|
+
import { SymlogScale } from "./lib/symlog-scale-component.js";
|
|
66
|
+
import { useSymlogScale } from "./lib/use-symlog-scale.js";
|
|
67
|
+
import { PointScale } from "./lib/point-scale-component.js";
|
|
68
|
+
import { usePointScale } from "./lib/use-point-scale.js";
|
|
69
|
+
import { GridLines, ReferenceLine } from "./lib/chart-lines.js";
|
|
70
|
+
import { ReferenceBand } from "./lib/reference-band.js";
|
|
71
|
+
import { AxisTitle } from "./lib/axis-title.js";
|
|
72
|
+
import { panDomain, zoomDomain } from "./lib/domain-navigation.js";
|
|
73
|
+
import {
|
|
74
|
+
SequentialColorScale,
|
|
75
|
+
useSequentialColorScale
|
|
76
|
+
} from "./lib/sequential-color-scale.js";
|
|
77
|
+
import {
|
|
78
|
+
DivergingColorScale,
|
|
79
|
+
useDivergingColorScale
|
|
80
|
+
} from "./lib/diverging-color-scale.js";
|
|
81
|
+
import {
|
|
82
|
+
ThresholdColorScale,
|
|
83
|
+
useThresholdColorScale
|
|
84
|
+
} from "./lib/threshold-color-scale.js";
|
|
85
|
+
import { VolumeSeries } from "./lib/volume-series.js";
|
|
86
|
+
import {
|
|
87
|
+
TradingTimeScale,
|
|
88
|
+
useTradingTimeScale
|
|
89
|
+
} from "./lib/trading-time-scale.js";
|
|
90
|
+
import { CandlestickSeries } from "./lib/candlestick-series.js";
|
|
91
|
+
import { OhlcBarSeries } from "./lib/ohlc-bar-series.js";
|
|
92
|
+
import { BaselineSeries } from "./lib/baseline-series.js";
|
|
93
|
+
import { IntervalDiamondSeries } from "./lib/interval-diamond-series.js";
|
|
94
|
+
import { CensoredPointSeries } from "./lib/censored-point-series.js";
|
|
95
|
+
import { WeightedPointSeries } from "./lib/weighted-point-series.js";
|
|
96
|
+
import { TrajectorySeries } from "./lib/trajectory-series.js";
|
|
97
|
+
import { PairedSeries } from "./lib/paired-series.js";
|
|
98
|
+
import { GraphNode, GraphEdge, GraphLabel, GraphView, defaultGraphNodeStyle, defaultGraphEdgeStyle, defaultGraphLabelStyle } from "./lib/graph/shared.js";
|
|
99
|
+
import { straightGraphRoute, orthogonalGraphRoute, curvedGraphRoute } from "./lib/graph/routes.js";
|
|
100
|
+
import { layoutDependencies, DependencyGraph } from "./lib/graph/dependency.js";
|
|
101
|
+
import { layoutMatrix, AdjacencyMatrix, MatrixCell, defaultMatrixCellStyle } from "./lib/graph/matrix.js";
|
|
102
|
+
import { layoutSankey, Sankey, SankeyNode, SankeyFlow, defaultSankeyNodeStyle, defaultSankeyFlowStyle } from "./lib/graph/sankey.js";
|
|
103
|
+
import { layoutBipartite, BipartiteGraph } from "./lib/graph/bipartite.js";
|
|
104
|
+
import { layoutChords, ChordDiagram, ChordBand, ChordRibbon, defaultChordBandStyle, defaultChordRibbonStyle } from "./lib/graph/chord.js";
|
|
105
|
+
import { layoutTree, TidyTree } from "./lib/graph/tree.js";
|
|
106
|
+
import { layoutTreemap, Treemap, TreemapCell, defaultPartitionCellStyle } from "./lib/graph/treemap.js";
|
|
107
|
+
import { layoutIcicle, Icicle, IcicleCell } from "./lib/graph/icicle.js";
|
|
108
|
+
import { layoutNeighborhood, RadialNeighborhood } from "./lib/graph/neighborhood.js";
|
|
109
|
+
import { createForceSimulation, layoutForceNetwork, useForceNetwork, ForceNetwork } from "./lib/graph/force.js";
|
|
21
110
|
export {
|
|
111
|
+
AdjacencyMatrix,
|
|
22
112
|
AnchoredLayout,
|
|
113
|
+
AreaSeries,
|
|
23
114
|
Axis,
|
|
115
|
+
AxisTitle,
|
|
116
|
+
BarScale,
|
|
24
117
|
BarSeries,
|
|
118
|
+
BaselineSeries,
|
|
119
|
+
BipartiteGraph,
|
|
120
|
+
CandlestickSeries,
|
|
121
|
+
CensoredPointSeries,
|
|
122
|
+
ChordBand,
|
|
123
|
+
ChordDiagram,
|
|
124
|
+
ChordRibbon,
|
|
125
|
+
DependencyGraph,
|
|
126
|
+
DivergingColorScale,
|
|
127
|
+
EditableReferenceBand,
|
|
128
|
+
EditableReferenceLine,
|
|
129
|
+
EditableTrendLine,
|
|
130
|
+
ForceNetwork,
|
|
131
|
+
GraphEdge,
|
|
132
|
+
GraphLabel,
|
|
133
|
+
GraphNode,
|
|
134
|
+
GraphView,
|
|
135
|
+
GridLines,
|
|
136
|
+
HorizontalIntervalSeries,
|
|
25
137
|
HoverCard,
|
|
26
138
|
HoverData,
|
|
139
|
+
Icicle,
|
|
140
|
+
IcicleCell,
|
|
141
|
+
IntervalBandSeries,
|
|
142
|
+
IntervalDiamondSeries,
|
|
27
143
|
LineSeries,
|
|
144
|
+
LinearScale,
|
|
145
|
+
LogScale,
|
|
146
|
+
MatrixCell,
|
|
147
|
+
OhlcBarSeries,
|
|
148
|
+
PairedSeries,
|
|
28
149
|
PieLabel,
|
|
29
150
|
PieLayout,
|
|
30
151
|
PieSlice,
|
|
31
152
|
PlotSeries,
|
|
153
|
+
PointScale,
|
|
32
154
|
PointSeries,
|
|
33
|
-
|
|
155
|
+
RadialNeighborhood,
|
|
156
|
+
RangeNavigator,
|
|
157
|
+
ReferenceBand,
|
|
158
|
+
ReferenceLine,
|
|
159
|
+
Sankey,
|
|
160
|
+
SankeyFlow,
|
|
161
|
+
SankeyNode,
|
|
34
162
|
ScaleAdjust,
|
|
163
|
+
SequentialColorScale,
|
|
164
|
+
SymlogScale,
|
|
165
|
+
ThresholdColorScale,
|
|
166
|
+
TidyTree,
|
|
167
|
+
TradingTimeScale,
|
|
168
|
+
TrajectorySeries,
|
|
169
|
+
Treemap,
|
|
170
|
+
TreemapCell,
|
|
171
|
+
UTCScale,
|
|
172
|
+
VerticalIntervalSeries,
|
|
173
|
+
VolumeSeries,
|
|
174
|
+
WeightedPointSeries,
|
|
175
|
+
aggregateOhlcv,
|
|
176
|
+
bollingerBands,
|
|
35
177
|
closestPoint,
|
|
36
178
|
closestX,
|
|
179
|
+
createForceSimulation,
|
|
180
|
+
curvedGraphRoute,
|
|
181
|
+
defaultChordBandStyle,
|
|
182
|
+
defaultChordRibbonStyle,
|
|
183
|
+
defaultGraphEdgeStyle,
|
|
184
|
+
defaultGraphLabelStyle,
|
|
185
|
+
defaultGraphNodeStyle,
|
|
186
|
+
defaultMatrixCellStyle,
|
|
187
|
+
defaultPartitionCellStyle,
|
|
188
|
+
defaultSankeyFlowStyle,
|
|
189
|
+
defaultSankeyNodeStyle,
|
|
37
190
|
defineSeries,
|
|
191
|
+
exponentialMovingAverage,
|
|
192
|
+
extent,
|
|
193
|
+
formatNumber,
|
|
194
|
+
indexTo100,
|
|
195
|
+
interpolateNumericRange,
|
|
38
196
|
interpolateX,
|
|
197
|
+
layoutBipartite,
|
|
198
|
+
layoutChords,
|
|
199
|
+
layoutDependencies,
|
|
200
|
+
layoutForceNetwork,
|
|
201
|
+
layoutIcicle,
|
|
202
|
+
layoutMatrix,
|
|
203
|
+
layoutNeighborhood,
|
|
204
|
+
layoutSankey,
|
|
205
|
+
layoutTree,
|
|
206
|
+
layoutTreemap,
|
|
39
207
|
linearInterpolation,
|
|
208
|
+
linearTicks,
|
|
209
|
+
monotoneX,
|
|
210
|
+
movingAverageConvergenceDivergence,
|
|
40
211
|
nearestDomainValue,
|
|
41
212
|
nearestPoint,
|
|
213
|
+
niceLinearDomain,
|
|
214
|
+
niceUTCDomain,
|
|
215
|
+
orthogonalGraphRoute,
|
|
216
|
+
padLinearDomain,
|
|
217
|
+
panDomain,
|
|
218
|
+
percentageReturns,
|
|
42
219
|
pieSlices,
|
|
43
|
-
|
|
220
|
+
relativeStrengthIndex,
|
|
221
|
+
sessionVwap,
|
|
222
|
+
simpleMovingAverage,
|
|
223
|
+
stepAfter,
|
|
224
|
+
stepBefore,
|
|
225
|
+
stepMidpoint,
|
|
226
|
+
stochasticOscillator,
|
|
227
|
+
straightGraphRoute,
|
|
228
|
+
useBarScale,
|
|
229
|
+
useDivergingColorScale,
|
|
230
|
+
useForceNetwork,
|
|
231
|
+
useLinearScale,
|
|
232
|
+
useLogScale,
|
|
233
|
+
usePointScale,
|
|
234
|
+
useSequentialColorScale,
|
|
235
|
+
useSymlogScale,
|
|
236
|
+
useThresholdColorScale,
|
|
237
|
+
useTradingTimeScale,
|
|
238
|
+
useUTCScale,
|
|
239
|
+
utcTickLabels,
|
|
240
|
+
visibleOhlcPriceExtent,
|
|
241
|
+
zoomDomain
|
|
44
242
|
};
|
|
45
243
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/features/viz/index.ts"],
|
|
4
|
-
"sourcesContent": ["export { Scale } from \"./lib/scale.js\";\nexport { useScale } from \"./lib/use-scale.js\";\nexport type {\n ScaleId,\n LinearDomain,\n BandCategory,\n BandDomain,\n BandScaleProps,\n BandScaleRange,\n ResolvedBandScale,\n ScaleRange,\n ScaleLayoutStyle,\n LinearScaleProps,\n ScaleProps,\n ResolvedLinearScale,\n ResolvedScale,\n} from \"./lib/types.js\";\nexport { Axis } from \"./lib/axis.js\";\nexport { LineSeries } from \"./lib/line-series.js\";\nexport { ScaleAdjust } from \"./lib/scale-adjust.js\";\nexport type {\n AxisStyle,\n AxisProps,\n LineCoordinate,\n LineAccessor,\n LineCurve,\n LineSeriesStyle,\n LineSeriesProps,\n ScaleAdjustProps,\n} from \"./lib/types.js\";\nexport { PointSeries } from \"./lib/point-series.js\";\nexport type {\n PointAccessor,\n PointMarkStyle,\n PointSeriesStyle,\n PointStyleResolver,\n PointSeriesProps,\n} from \"./lib/point-types.js\";\nexport { PlotSeries } from \"./lib/plot-series.js\";\nexport type { PlotSeriesProps, PlotKeyAccessor } from \"./lib/plot-types.js\";\nexport { nearestDomainValue, nearestPoint } from \"./lib/nearest.js\";\nexport type { NearestPointOptions, NearestPoint } from \"./lib/nearest.js\";\n\nexport { HoverData } from \"./lib/hover-data.js\";\nexport { defineSeries, closestPoint } from \"./lib/hover-queries.js\";\nexport type {\n HoverQueryContext,\n HoverQuery,\n HoverDataProps,\n HoverSeries,\n HoverPoint,\n HoverHit,\n HoverSeriesMap,\n ClosestPointHit,\n ClosestPointOptions,\n} from \"./lib/hover-types.js\";\n\nexport { HoverCard } from \"./lib/hover-card.js\";\nexport type {\n HoverCardProps,\n HoverCardStyle,\n HoverBounds,\n HoverPlacement,\n} from \"./lib/hover-card.js\";\n\nexport {\n closestX,\n interpolateX,\n linearInterpolation,\n} from \"./lib/hover-queries.js\";\nexport type {\n ClosestXOptions,\n ClosestXHit,\n HoverInterpolation,\n InterpolateXOptions,\n HoverSample,\n} from \"./lib/hover-types.js\";\n\nexport { AnchoredLayout } from \"./lib/anchored-layout.js\";\nexport type {\n AnchoredItem,\n AnchoredPlacement,\n AnchoredLayoutProps,\n} from \"./lib/anchored-layout.js\";\n\nexport { BarSeries } from \"./lib/bar-series.js\";\nexport type {\n BarThresholdFill,\n BarCategoryAccessor,\n BarSeriesStyle,\n BarStyleResolver,\n BarSeriesProps,\n} from \"./lib/bar-series.js\";\n\nexport { pieSlices } from \"./lib/pie-slices.js\";\nexport type { PieOptions, PieSliceGeometry } from \"./lib/pie-slices.js\";\n\nexport { PieLayout, PieSlice, PieLabel } from \"./lib/pie-layout.js\";\nexport type { PieLayoutProps, PieLayoutStyle, PieLayoutSlice, PieLabelPlacement, PieLabelLayout, PieSliceProps, PieSliceStyle, PieLabelProps, PieLabelStyle } from \"./lib/pie-types.js\";\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,
|
|
4
|
+
"sourcesContent": ["export { LinearScale } from \"./lib/linear-scale-component.js\";\nexport { BarScale } from \"./lib/bar-scale.js\";\nexport { UTCScale } from \"./lib/utc-scale-component.js\";\nexport { useLinearScale } from \"./lib/use-linear-scale.js\";\nexport { useBarScale } from \"./lib/use-bar-scale.js\";\nexport { useUTCScale } from \"./lib/use-utc-scale.js\";\nexport type {\n ScaleId,\n LinearDomain,\n BandCategory,\n BandDomain,\n BarScaleProps,\n BandScaleRange,\n ResolvedBandScale,\n ScaleRange,\n ScaleLayoutStyle,\n LinearScaleProps,\n ResolvedLinearScale,\n ResolvedScale,\n} from \"./lib/types.js\";\nexport { Axis } from \"./lib/axis.js\";\nexport { LineSeries } from \"./lib/line-series.js\";\nexport { AreaSeries } from \"./lib/area-series.js\";\nexport type { AreaSeriesProps, AreaSeriesStyle } from \"./lib/area-series.js\";\nexport { IntervalBandSeries } from \"./lib/interval-band-series.js\";\nexport type { IntervalBandSeriesProps } from \"./lib/interval-band-series.js\";\nexport {\n HorizontalIntervalSeries,\n VerticalIntervalSeries,\n} from \"./lib/interval-series.js\";\nexport type {\n IntervalSeriesStyle,\n IntervalSeriesProps,\n HorizontalIntervalSeriesProps,\n VerticalIntervalSeriesProps,\n} from \"./lib/interval-series.js\";\nexport type { SeriesCurve } from \"./lib/curve-definition.js\";\nexport { stepBefore, stepAfter, stepMidpoint } from \"./lib/step-curves.js\";\nexport { monotoneX } from \"./lib/monotone-curve.js\";\nexport { ScaleAdjust } from \"./lib/scale-adjust.js\";\nexport type {\n AxisStyle,\n AxisProps,\n LineCoordinate,\n LineAccessor,\n SeriesAccessor,\n SeriesCoordinate,\n LineCurve,\n LineSeriesStyle,\n LineSeriesProps,\n ScaleAdjustProps,\n} from \"./lib/types.js\";\nexport { PointSeries } from \"./lib/point-series.js\";\nexport type {\n PointAccessor,\n PointMarkStyle,\n PointSeriesStyle,\n PointStyleResolver,\n PointSeriesProps,\n} from \"./lib/point-types.js\";\nexport { PlotSeries } from \"./lib/plot-series.js\";\nexport type { PlotSeriesProps, PlotKeyAccessor } from \"./lib/plot-types.js\";\nexport { nearestDomainValue, nearestPoint } from \"./lib/nearest.js\";\nexport type { NearestPointOptions, NearestPoint } from \"./lib/nearest.js\";\n\nexport { HoverData } from \"./lib/hover-data.js\";\nexport { defineSeries, closestPoint } from \"./lib/hover-queries.js\";\nexport type {\n HoverQueryContext,\n HoverQuery,\n HoverDataProps,\n HoverSeries,\n HoverPoint,\n HoverHit,\n HoverSeriesMap,\n ClosestPointHit,\n ClosestPointOptions,\n} from \"./lib/hover-types.js\";\n\nexport { HoverCard } from \"./lib/hover-card.js\";\nexport type {\n HoverCardProps,\n HoverCardStyle,\n HoverBounds,\n HoverPlacement,\n} from \"./lib/hover-card.js\";\n\nexport {\n closestX,\n interpolateX,\n linearInterpolation,\n} from \"./lib/hover-queries.js\";\nexport type {\n ClosestXOptions,\n ClosestXHit,\n HoverInterpolation,\n InterpolateXOptions,\n HoverSample,\n} from \"./lib/hover-types.js\";\n\nexport { AnchoredLayout } from \"./lib/anchored-layout.js\";\nexport type {\n AnchoredItem,\n AnchoredPlacement,\n AnchoredLayoutProps,\n} from \"./lib/anchored-layout.js\";\n\nexport { BarSeries } from \"./lib/bar-series.js\";\nexport type {\n BarThresholdFill,\n BarCategoryAccessor,\n BarSeriesStyle,\n BarStyleResolver,\n BarSeriesProps,\n} from \"./lib/bar-series.js\";\n\nexport { pieSlices } from \"./lib/pie-slices.js\";\nexport type { PieOptions, PieSliceGeometry } from \"./lib/pie-slices.js\";\n\nexport { PieLayout, PieSlice, PieLabel } from \"./lib/pie-layout.js\";\nexport type {\n PieLayoutProps,\n PieLayoutStyle,\n PieLayoutSlice,\n PieLabelPlacement,\n PieLabelLayout,\n PieSliceProps,\n PieSliceStyle,\n PieLabelProps,\n PieLabelStyle,\n} from \"./lib/pie-types.js\";\n\nexport { extent, niceUTCDomain } from \"./lib/utc-scale.js\";\nexport type {\n NumericDomain,\n UtcDomain,\n UTCScaleProps,\n ResolvedUtcScale,\n ResolvedContinuousScale,\n} from \"./lib/types.js\";\n\nexport {\n linearTicks,\n niceLinearDomain,\n formatNumber,\n} from \"./lib/numeric-ticks.js\";\nexport type {\n LinearTickOptions,\n NumberFormatOptions,\n} from \"./lib/numeric-ticks.js\";\nexport { interpolateNumericRange } from \"./lib/numeric-range-interpolation.js\";\nexport {\n visibleOhlcPriceExtent,\n padLinearDomain,\n} from \"./lib/financial-autoscale.js\";\nexport type {\n VisibleOhlcPriceExtentOptions,\n PadLinearDomainOptions,\n} from \"./lib/financial-autoscale.js\";\nexport { percentageReturns, indexTo100 } from \"./lib/financial-comparison.js\";\nexport type {\n ComparisonBaseOptions,\n PercentageReturnPoint,\n IndexedValuePoint,\n} from \"./lib/financial-comparison.js\";\nexport { aggregateOhlcv, sessionVwap } from \"./lib/financial-aggregation.js\";\nexport type {\n OhlcvBucket,\n OhlcvSource,\n AggregatedOhlcvPoint,\n AggregateOhlcvOptions,\n SessionIdentifier,\n SessionAccessor,\n SessionVwapOptions,\n SessionVwapPoint,\n} from \"./lib/financial-aggregation.js\";\nexport {\n RangeNavigator,\n EditableReferenceLine,\n EditableReferenceBand,\n EditableTrendLine,\n} from \"./lib/editable-chart-elements.js\";\nexport type {\n ChartAnchor,\n RangeNavigatorProps,\n RangeNavigatorStyle,\n EditableReferenceLineProps,\n EditableReferenceLineStyle,\n EditableReferenceBandProps,\n EditableReferenceBandStyle,\n EditableTrendLineProps,\n EditableTrendLineStyle,\n} from \"./lib/editable-chart-elements.js\";\nexport {\n simpleMovingAverage,\n exponentialMovingAverage,\n bollingerBands,\n} from \"./lib/financial-indicators.js\";\nexport type {\n MovingAverageOptions,\n BollingerBandsOptions,\n MovingAveragePoint,\n BollingerBandPoint,\n} from \"./lib/financial-indicators.js\";\nexport {\n relativeStrengthIndex,\n movingAverageConvergenceDivergence,\n stochasticOscillator,\n} from \"./lib/financial-oscillators.js\";\nexport type {\n OscillatorOptions,\n RelativeStrengthIndexOptions,\n MovingAverageConvergenceDivergenceOptions,\n StochasticOscillatorOptions,\n RelativeStrengthIndexPoint,\n MovingAverageConvergenceDivergencePoint,\n StochasticOscillatorPoint,\n} from \"./lib/financial-oscillators.js\";\n\nexport { utcTickLabels } from \"./lib/utc-labels.js\";\nexport type { UTCTickLabelOptions } from \"./lib/utc-labels.js\";\n\nexport { LogScale } from \"./lib/log-scale-component.js\";\nexport { useLogScale } from \"./lib/use-log-scale.js\";\nexport type { LogScaleProps, ResolvedLogScale } from \"./lib/types.js\";\n\nexport { SymlogScale } from \"./lib/symlog-scale-component.js\";\nexport { useSymlogScale } from \"./lib/use-symlog-scale.js\";\nexport type { SymlogScaleProps, ResolvedSymlogScale } from \"./lib/types.js\";\n\nexport { PointScale } from \"./lib/point-scale-component.js\";\nexport { usePointScale } from \"./lib/use-point-scale.js\";\nexport type { PointScaleProps, ResolvedPointScale } from \"./lib/types.js\";\nexport { GridLines, ReferenceLine } from \"./lib/chart-lines.js\";\nexport type {\n ChartLineProps,\n GridLinesProps,\n ReferenceLineProps,\n} from \"./lib/chart-lines.js\";\nexport { ReferenceBand } from \"./lib/reference-band.js\";\nexport type { ReferenceBandProps } from \"./lib/reference-band.js\";\nexport { AxisTitle } from \"./lib/axis-title.js\";\nexport type { AxisTitleProps } from \"./lib/axis-title.js\";\n\nexport { panDomain, zoomDomain } from \"./lib/domain-navigation.js\";\nexport type {\n DomainNavigationConstraints,\n PanDomainOptions,\n ZoomDomainOptions,\n} from \"./lib/domain-navigation.js\";\n\nexport {\n SequentialColorScale,\n useSequentialColorScale,\n} from \"./lib/sequential-color-scale.js\";\nexport {\n DivergingColorScale,\n useDivergingColorScale,\n} from \"./lib/diverging-color-scale.js\";\nexport type {\n ColorScaleStop,\n SequentialColorScaleProps,\n DivergingColorScaleProps,\n ResolvedSequentialColorScale,\n ResolvedDivergingColorScale,\n} from \"./lib/color-types.js\";\n\nexport {\n ThresholdColorScale,\n useThresholdColorScale,\n} from \"./lib/threshold-color-scale.js\";\nexport type {\n ThresholdColorBand,\n ThresholdColorScaleProps,\n ResolvedThresholdColorScale,\n} from \"./lib/threshold-color-scale.js\";\n\nexport { VolumeSeries } from \"./lib/volume-series.js\";\nexport type {\n VolumeSeriesProps,\n VolumeSeriesStyle,\n} from \"./lib/volume-series.js\";\n\nexport {\n TradingTimeScale,\n useTradingTimeScale,\n} from \"./lib/trading-time-scale.js\";\nexport type {\n TradingTimeScaleProps,\n ResolvedTradingTimeScale,\n} from \"./lib/trading-time-scale.js\";\nexport { CandlestickSeries } from \"./lib/candlestick-series.js\";\nexport type {\n CandlestickSeriesProps,\n CandlestickSeriesStyle,\n CandleBodyStyle,\n CandleWickStyle,\n} from \"./lib/candlestick-series.js\";\nexport { OhlcBarSeries } from \"./lib/ohlc-bar-series.js\";\nexport type {\n OhlcBarSeriesProps,\n OhlcBarSeriesStyle,\n} from \"./lib/ohlc-bar-series.js\";\n\nexport { BaselineSeries } from \"./lib/baseline-series.js\";\nexport type {\n BaselineSeriesProps,\n BaselineSeriesStyle,\n BaselineSideStyle,\n} from \"./lib/baseline-series.js\";\nexport { IntervalDiamondSeries } from \"./lib/interval-diamond-series.js\";\nexport type {\n IntervalDiamondSeriesProps,\n IntervalDiamondSeriesStyle,\n} from \"./lib/interval-diamond-series.js\";\nexport { CensoredPointSeries } from \"./lib/censored-point-series.js\";\nexport type {\n CensoringStatus,\n CensoringAccessor,\n CensoredPointSeriesProps,\n CensoredPointSeriesStyle,\n} from \"./lib/censored-point-series.js\";\nexport { WeightedPointSeries } from \"./lib/weighted-point-series.js\";\nexport type {\n WeightedPointSeriesProps,\n WeightedPointSeriesStyle,\n WeightAccessor,\n} from \"./lib/weighted-point-series.js\";\nexport { TrajectorySeries } from \"./lib/trajectory-series.js\";\nexport type {\n TrajectorySeriesProps,\n TrajectorySeriesStyle,\n TrajectoryGroupAccessor,\n} from \"./lib/trajectory-series.js\";\nexport { PairedSeries } from \"./lib/paired-series.js\";\nexport type {\n PairedSeriesProps,\n PairedSeriesStyle,\n} from \"./lib/paired-series.js\";\n\n// Graph visualization: public geometry, marks, layouts, and reference compositions.\nexport type {\n VizKey,\n Accessor,\n Bounds,\n Point,\n Style,\n MarkStyle,\n NodeStyle,\n EdgeStyle,\n LabelStyle,\n FrameStyle,\n LabelGeometry,\n GraphData,\n GraphAccessors,\n GraphNodeGeometry,\n GraphRoute,\n GraphEdgeGeometry,\n GraphLayout,\n GraphPresentation,\n MarkInteraction,\n GraphNodeProps,\n GraphEdgeProps,\n GraphLabelProps,\n GraphViewProps,\n DependencyStyle,\n DependencyOptions,\n DependencyGraphProps,\n ForceSettings,\n ForceOptions,\n ForceLayout,\n ForceNetworkController,\n ForceStyle,\n ForceNetworkProps,\n ForceHookOptions,\n HierarchyAccessors,\n TreeEdge,\n TreeNodeGeometry,\n TreeLayout,\n TreeStyle,\n TreeOptions,\n TidyTreeProps,\n MatrixData,\n MatrixAccessors,\n MatrixCellGeometry,\n MatrixLayout,\n MatrixStyle,\n MatrixOptions,\n AdjacencyMatrixProps,\n MatrixCellProps,\n SankeyNodeGeometry,\n SankeyFlowGeometry,\n SankeyLayout,\n SankeyAccessors,\n SankeyStyle,\n SankeyOptions,\n SankeyProps,\n BipartiteData,\n BipartiteAccessors,\n BipartiteEdgeGeometry,\n BipartiteLayout,\n BipartiteStyle,\n BipartiteOptions,\n BipartiteGraphProps,\n PartitionAccessors,\n PartitionCellGeometry,\n PartitionLayout,\n PartitionPresentation,\n TreemapStyle,\n TreemapOptions,\n TreemapProps,\n PartitionCellProps,\n NeighborhoodStyle,\n NeighborhoodOptions,\n NeighborhoodNodeGeometry,\n NeighborhoodLayout,\n RadialNeighborhoodProps,\n IcicleStyle,\n IcicleOptions,\n IcicleProps,\n ChordData,\n ChordAccessors,\n ChordArc,\n ChordBandGeometry,\n ChordRibbonGeometry,\n ChordLayout,\n ChordStyle,\n ChordOptions,\n ChordDiagramProps,\n ForceSimulation,\n ForceSimulationFactory,\n Size,\n} from './lib/graph/types.js';\nexport { GraphNode, GraphEdge, GraphLabel, GraphView, defaultGraphNodeStyle, defaultGraphEdgeStyle, defaultGraphLabelStyle } from './lib/graph/shared.js';\nexport { straightGraphRoute, orthogonalGraphRoute, curvedGraphRoute } from './lib/graph/routes.js';\nexport { layoutDependencies, DependencyGraph } from './lib/graph/dependency.js';\nexport { layoutMatrix, AdjacencyMatrix, MatrixCell, defaultMatrixCellStyle } from './lib/graph/matrix.js';\nexport { layoutSankey, Sankey, SankeyNode, SankeyFlow, defaultSankeyNodeStyle, defaultSankeyFlowStyle } from './lib/graph/sankey.js';\nexport { layoutBipartite, BipartiteGraph } from './lib/graph/bipartite.js';\nexport { layoutChords, ChordDiagram, ChordBand, ChordRibbon, defaultChordBandStyle, defaultChordRibbonStyle } from './lib/graph/chord.js';\nexport { layoutTree, TidyTree } from './lib/graph/tree.js';\nexport { layoutTreemap, Treemap, TreemapCell, defaultPartitionCellStyle } from './lib/graph/treemap.js';\nexport { layoutIcicle, Icicle, IcicleCell } from './lib/graph/icicle.js';\nexport { layoutNeighborhood, RadialNeighborhood } from './lib/graph/neighborhood.js';\nexport { createForceSimulation, layoutForceNetwork, useForceNetwork, ForceNetwork } from './lib/graph/force.js';\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,mBAAmB;AAC5B,SAAS,gBAAgB;AACzB,SAAS,gBAAgB;AACzB,SAAS,sBAAsB;AAC/B,SAAS,mBAAmB;AAC5B,SAAS,mBAAmB;AAe5B,SAAS,YAAY;AACrB,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAE3B,SAAS,0BAA0B;AAEnC;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAQP,SAAS,YAAY,WAAW,oBAAoB;AACpD,SAAS,iBAAiB;AAC1B,SAAS,mBAAmB;AAa5B,SAAS,mBAAmB;AAQ5B,SAAS,kBAAkB;AAE3B,SAAS,oBAAoB,oBAAoB;AAGjD,SAAS,iBAAiB;AAC1B,SAAS,cAAc,oBAAoB;AAa3C,SAAS,iBAAiB;AAQ1B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AASP,SAAS,sBAAsB;AAO/B,SAAS,iBAAiB;AAS1B,SAAS,iBAAiB;AAG1B,SAAS,WAAW,UAAU,gBAAgB;AAa9C,SAAS,QAAQ,qBAAqB;AAStC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAKP,SAAS,+BAA+B;AACxC;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAKP,SAAS,mBAAmB,kBAAkB;AAM9C,SAAS,gBAAgB,mBAAmB;AAW5C;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAYP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAWP,SAAS,qBAAqB;AAG9B,SAAS,gBAAgB;AACzB,SAAS,mBAAmB;AAG5B,SAAS,mBAAmB;AAC5B,SAAS,sBAAsB;AAG/B,SAAS,kBAAkB;AAC3B,SAAS,qBAAqB;AAE9B,SAAS,WAAW,qBAAqB;AAMzC,SAAS,qBAAqB;AAE9B,SAAS,iBAAiB;AAG1B,SAAS,WAAW,kBAAkB;AAOtC;AAAA,EACE;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OACK;AASP;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAOP,SAAS,oBAAoB;AAM7B;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAKP,SAAS,yBAAyB;AAOlC,SAAS,qBAAqB;AAM9B,SAAS,sBAAsB;AAM/B,SAAS,6BAA6B;AAKtC,SAAS,2BAA2B;AAOpC,SAAS,2BAA2B;AAMpC,SAAS,wBAAwB;AAMjC,SAAS,oBAAoB;AAmG7B,SAAS,WAAW,WAAW,YAAY,WAAW,uBAAuB,uBAAuB,8BAA8B;AAClI,SAAS,oBAAoB,sBAAsB,wBAAwB;AAC3E,SAAS,oBAAoB,uBAAuB;AACpD,SAAS,cAAc,iBAAiB,YAAY,8BAA8B;AAClF,SAAS,cAAc,QAAQ,YAAY,YAAY,wBAAwB,8BAA8B;AAC7G,SAAS,iBAAiB,sBAAsB;AAChD,SAAS,cAAc,cAAc,WAAW,aAAa,uBAAuB,+BAA+B;AACnH,SAAS,YAAY,gBAAgB;AACrC,SAAS,eAAe,SAAS,aAAa,iCAAiC;AAC/E,SAAS,cAAc,QAAQ,kBAAkB;AACjD,SAAS,oBAAoB,0BAA0B;AACvD,SAAS,uBAAuB,oBAAoB,iBAAiB,oBAAoB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { LayoutBox } from "@pibbl/core";
|
|
2
|
+
import type { BarSeriesProps } from "../lib/bar-series.js";
|
|
3
|
+
import type { BandCategory } from "../lib/types.js";
|
|
4
|
+
import type { RenderedSeriesPoint } from "./query-types.js";
|
|
5
|
+
/** Original range/value/grouped bar with its captured endpoints and local paint bounds.
|
|
6
|
+
* @see {@link BarRenderedSeries}
|
|
7
|
+
*/
|
|
8
|
+
export interface PaintedBarHit<D> {
|
|
9
|
+
/** Caller-owned original record. */
|
|
10
|
+
readonly datum: D;
|
|
11
|
+
/** Original zero-based source position. */
|
|
12
|
+
readonly sourceIndex: number;
|
|
13
|
+
/** Original discrete category, without numeric coercion. */
|
|
14
|
+
readonly category: BandCategory;
|
|
15
|
+
/** Original subgroup when grouping is enabled. */
|
|
16
|
+
readonly group: BandCategory | undefined;
|
|
17
|
+
/** Data-space starting endpoint, including an ordinary bar's baseline. */
|
|
18
|
+
readonly valueStart: number;
|
|
19
|
+
/** Data-space ending endpoint. */
|
|
20
|
+
readonly valueEnd: number;
|
|
21
|
+
/** Logical rectangle bounds before world transforms. */
|
|
22
|
+
readonly boundsLocal: Readonly<LayoutBox>;
|
|
23
|
+
}
|
|
24
|
+
/** @internal Captured rectangle paint flags used only for geometric lookup. */
|
|
25
|
+
export interface CapturedBarMark<D> extends PaintedBarHit<D> {
|
|
26
|
+
/** Whether this rectangle paints its interior. */
|
|
27
|
+
readonly fill: boolean;
|
|
28
|
+
/** Painted stroke width in local logical units. */
|
|
29
|
+
readonly strokeWidthLocal: number;
|
|
30
|
+
}
|
|
31
|
+
/** A borrowed committed categorical bar generation; contains no numeric category mapping.
|
|
32
|
+
* @see {@link PaintedBarHit}
|
|
33
|
+
*/
|
|
34
|
+
export interface BarRenderedSeries<D> {
|
|
35
|
+
/** Original records and geometry in source paint order. */
|
|
36
|
+
readonly marks: readonly CapturedBarMark<D>[];
|
|
37
|
+
/** Throws after replacement or disposal. */
|
|
38
|
+
assertLive(): void;
|
|
39
|
+
/** Converts root logical units into this generation's local geometry.
|
|
40
|
+
* @param point - Root-logical Canvas point.
|
|
41
|
+
* @returns Local point or undefined for a singular transform.
|
|
42
|
+
*/
|
|
43
|
+
localAtRoot(point: Readonly<RenderedSeriesPoint>): Readonly<RenderedSeriesPoint> | undefined;
|
|
44
|
+
/** Tests a local point against every committed clip/layer bound.
|
|
45
|
+
* @param point - Local-logical Canvas point.
|
|
46
|
+
* @returns Whether the point is inside every clip and layer bound.
|
|
47
|
+
*/
|
|
48
|
+
anchorInsideClips(point: Readonly<RenderedSeriesPoint>): boolean;
|
|
49
|
+
}
|
|
50
|
+
/** Mount-owned optional categorical-bar capture.
|
|
51
|
+
* @see {@link BarRenderedSeries}
|
|
52
|
+
*/
|
|
53
|
+
export interface BarInspectionRef<D> {
|
|
54
|
+
/** Returns the last successful generation.
|
|
55
|
+
* @returns Borrowed bar geometry or undefined before paint/after disposal.
|
|
56
|
+
*/
|
|
57
|
+
rendered(): BarRenderedSeries<D> | undefined;
|
|
58
|
+
/** @internal Records candidate values and paint geometry without executing a search.
|
|
59
|
+
* @param input - Source-ordered captured rectangle marks.
|
|
60
|
+
*/
|
|
61
|
+
capture(input: readonly CapturedBarMark<D>[]): void;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Owns opt-in capture for ordinary, range or grouped categorical bars.
|
|
65
|
+
* @param _inputs - Bar inputs used for datum inference; no data is read or subscribed here.
|
|
66
|
+
* @returns A stable ref to pass to one BarSeries inspection prop; captured endpoints share one fixed contract.
|
|
67
|
+
* @see {@link BarInspectionRef}
|
|
68
|
+
*/
|
|
69
|
+
export declare function useBarInspection<D>(_inputs: Pick<BarSeriesProps<D>, "data" | "category">): BarInspectionRef<D>;
|
|
70
|
+
/**
|
|
71
|
+
* Finds the last-painted bar covering a root-logical point in this explicit series.
|
|
72
|
+
* @param rendered - Borrowed committed categorical bar values and rectangle geometry.
|
|
73
|
+
* @param options - Root-logical query point; respects every clip, fill/stroke and source order.
|
|
74
|
+
* @returns Original record, category/group, endpoints and local bounds, or undefined for gaps and singular transforms.
|
|
75
|
+
* @see {@link PaintedBarHit}
|
|
76
|
+
*/
|
|
77
|
+
export declare function paintedBarAt<D>(rendered: BarRenderedSeries<D>, options: {
|
|
78
|
+
rootPoint: Readonly<RenderedSeriesPoint>;
|
|
79
|
+
}): PaintedBarHit<D> | undefined;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { useRenderedRef } from "./owned-ref.js";
|
|
2
|
+
function useBarInspection(_inputs) {
|
|
3
|
+
return useRenderedRef(
|
|
4
|
+
"barSeriesInspection",
|
|
5
|
+
(marks, geometry) => Object.freeze({
|
|
6
|
+
marks: Object.freeze(marks.slice()),
|
|
7
|
+
assertLive: geometry.assertLive,
|
|
8
|
+
localAtRoot: geometry.localAtRoot,
|
|
9
|
+
anchorInsideClips: geometry.anchorInsideClips
|
|
10
|
+
})
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
function paintedBarAt(rendered, options) {
|
|
14
|
+
rendered.assertLive();
|
|
15
|
+
if (!Number.isFinite(options.rootPoint.x) || !Number.isFinite(options.rootPoint.y))
|
|
16
|
+
throw new RangeError("paintedBarAt rootPoint must be finite.");
|
|
17
|
+
const point = rendered.localAtRoot(options.rootPoint);
|
|
18
|
+
if (!point || !rendered.anchorInsideClips(point)) return void 0;
|
|
19
|
+
for (let index = rendered.marks.length - 1; index >= 0; index--) {
|
|
20
|
+
const mark = rendered.marks[index], b = mark.boundsLocal, half = mark.strokeWidthLocal / 2;
|
|
21
|
+
const inside = point.x >= b.x && point.x <= b.x + b.width && point.y >= b.y && point.y <= b.y + b.height;
|
|
22
|
+
const outline = half > 0 && point.x >= b.x - half && point.x <= b.x + b.width + half && point.y >= b.y - half && point.y <= b.y + b.height + half && !(point.x > b.x + half && point.x < b.x + b.width - half && point.y > b.y + half && point.y < b.y + b.height - half);
|
|
23
|
+
if (!(mark.fill && inside || outline)) continue;
|
|
24
|
+
const {
|
|
25
|
+
datum,
|
|
26
|
+
sourceIndex,
|
|
27
|
+
category,
|
|
28
|
+
group,
|
|
29
|
+
valueStart,
|
|
30
|
+
valueEnd,
|
|
31
|
+
boundsLocal
|
|
32
|
+
} = mark;
|
|
33
|
+
return Object.freeze({
|
|
34
|
+
datum,
|
|
35
|
+
sourceIndex,
|
|
36
|
+
category,
|
|
37
|
+
group,
|
|
38
|
+
valueStart,
|
|
39
|
+
valueEnd,
|
|
40
|
+
boundsLocal
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
return void 0;
|
|
44
|
+
}
|
|
45
|
+
export {
|
|
46
|
+
paintedBarAt,
|
|
47
|
+
useBarInspection
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=bar.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/features/viz/inspection/bar.ts"],
|
|
4
|
+
"sourcesContent": ["import type { LayoutBox } from \"@pibbl/core\";\nimport type { BarSeriesProps } from \"../lib/bar-series.js\";\nimport type { BandCategory } from \"../lib/types.js\";\nimport type { RenderedSeriesPoint } from \"./query-types.js\";\nimport { useRenderedRef } from \"./owned-ref.js\";\n\n/** Original range/value/grouped bar with its captured endpoints and local paint bounds.\n * @see {@link BarRenderedSeries}\n */\nexport interface PaintedBarHit<D> {\n /** Caller-owned original record. */\n readonly datum: D;\n /** Original zero-based source position. */\n readonly sourceIndex: number;\n /** Original discrete category, without numeric coercion. */\n readonly category: BandCategory;\n /** Original subgroup when grouping is enabled. */\n readonly group: BandCategory | undefined;\n /** Data-space starting endpoint, including an ordinary bar's baseline. */\n readonly valueStart: number;\n /** Data-space ending endpoint. */\n readonly valueEnd: number;\n /** Logical rectangle bounds before world transforms. */\n readonly boundsLocal: Readonly<LayoutBox>;\n}\n/** @internal Captured rectangle paint flags used only for geometric lookup. */\nexport interface CapturedBarMark<D> extends PaintedBarHit<D> {\n /** Whether this rectangle paints its interior. */\n readonly fill: boolean;\n /** Painted stroke width in local logical units. */\n readonly strokeWidthLocal: number;\n}\n/** A borrowed committed categorical bar generation; contains no numeric category mapping.\n * @see {@link PaintedBarHit}\n */\nexport interface BarRenderedSeries<D> {\n /** Original records and geometry in source paint order. */\n readonly marks: readonly CapturedBarMark<D>[];\n /** Throws after replacement or disposal. */\n assertLive(): void;\n /** Converts root logical units into this generation's local geometry.\n * @param point - Root-logical Canvas point.\n * @returns Local point or undefined for a singular transform.\n */\n localAtRoot(\n point: Readonly<RenderedSeriesPoint>,\n ): Readonly<RenderedSeriesPoint> | undefined;\n /** Tests a local point against every committed clip/layer bound.\n * @param point - Local-logical Canvas point.\n * @returns Whether the point is inside every clip and layer bound.\n */\n anchorInsideClips(point: Readonly<RenderedSeriesPoint>): boolean;\n}\n/** Mount-owned optional categorical-bar capture.\n * @see {@link BarRenderedSeries}\n */\nexport interface BarInspectionRef<D> {\n /** Returns the last successful generation.\n * @returns Borrowed bar geometry or undefined before paint/after disposal.\n */\n rendered(): BarRenderedSeries<D> | undefined;\n /** @internal Records candidate values and paint geometry without executing a search.\n * @param input - Source-ordered captured rectangle marks.\n */\n capture(input: readonly CapturedBarMark<D>[]): void;\n}\n\n/**\n * Owns opt-in capture for ordinary, range or grouped categorical bars.\n * @param _inputs - Bar inputs used for datum inference; no data is read or subscribed here.\n * @returns A stable ref to pass to one BarSeries inspection prop; captured endpoints share one fixed contract.\n * @see {@link BarInspectionRef}\n */\nexport function useBarInspection<D>(\n _inputs: Pick<BarSeriesProps<D>, \"data\" | \"category\">,\n): BarInspectionRef<D> {\n return useRenderedRef<readonly CapturedBarMark<D>[], BarRenderedSeries<D>>(\n \"barSeriesInspection\",\n (marks, geometry) =>\n Object.freeze({\n marks: Object.freeze(marks.slice()),\n assertLive: geometry.assertLive,\n localAtRoot: geometry.localAtRoot,\n anchorInsideClips: geometry.anchorInsideClips,\n }),\n );\n}\n\n/**\n * Finds the last-painted bar covering a root-logical point in this explicit series.\n * @param rendered - Borrowed committed categorical bar values and rectangle geometry.\n * @param options - Root-logical query point; respects every clip, fill/stroke and source order.\n * @returns Original record, category/group, endpoints and local bounds, or undefined for gaps and singular transforms.\n * @see {@link PaintedBarHit}\n */\nexport function paintedBarAt<D>(\n rendered: BarRenderedSeries<D>,\n options: { rootPoint: Readonly<RenderedSeriesPoint> },\n): PaintedBarHit<D> | undefined {\n rendered.assertLive();\n if (\n !Number.isFinite(options.rootPoint.x) ||\n !Number.isFinite(options.rootPoint.y)\n )\n throw new RangeError(\"paintedBarAt rootPoint must be finite.\");\n const point = rendered.localAtRoot(options.rootPoint);\n if (!point || !rendered.anchorInsideClips(point)) return undefined;\n for (let index = rendered.marks.length - 1; index >= 0; index--) {\n const mark = rendered.marks[index],\n b = mark.boundsLocal,\n half = mark.strokeWidthLocal / 2;\n const inside =\n point.x >= b.x &&\n point.x <= b.x + b.width &&\n point.y >= b.y &&\n point.y <= b.y + b.height;\n const outline =\n half > 0 &&\n point.x >= b.x - half &&\n point.x <= b.x + b.width + half &&\n point.y >= b.y - half &&\n point.y <= b.y + b.height + half &&\n !(\n point.x > b.x + half &&\n point.x < b.x + b.width - half &&\n point.y > b.y + half &&\n point.y < b.y + b.height - half\n );\n if (!((mark.fill && inside) || outline)) continue;\n const {\n datum,\n sourceIndex,\n category,\n group,\n valueStart,\n valueEnd,\n boundsLocal,\n } = mark;\n return Object.freeze({\n datum,\n sourceIndex,\n category,\n group,\n valueStart,\n valueEnd,\n boundsLocal,\n });\n }\n return undefined;\n}\n"],
|
|
5
|
+
"mappings": "AAIA,SAAS,sBAAsB;AAqExB,SAAS,iBACd,SACqB;AACrB,SAAO;AAAA,IACL;AAAA,IACA,CAAC,OAAO,aACN,OAAO,OAAO;AAAA,MACZ,OAAO,OAAO,OAAO,MAAM,MAAM,CAAC;AAAA,MAClC,YAAY,SAAS;AAAA,MACrB,aAAa,SAAS;AAAA,MACtB,mBAAmB,SAAS;AAAA,IAC9B,CAAC;AAAA,EACL;AACF;AASO,SAAS,aACd,UACA,SAC8B;AAC9B,WAAS,WAAW;AACpB,MACE,CAAC,OAAO,SAAS,QAAQ,UAAU,CAAC,KACpC,CAAC,OAAO,SAAS,QAAQ,UAAU,CAAC;AAEpC,UAAM,IAAI,WAAW,wCAAwC;AAC/D,QAAM,QAAQ,SAAS,YAAY,QAAQ,SAAS;AACpD,MAAI,CAAC,SAAS,CAAC,SAAS,kBAAkB,KAAK,EAAG,QAAO;AACzD,WAAS,QAAQ,SAAS,MAAM,SAAS,GAAG,SAAS,GAAG,SAAS;AAC/D,UAAM,OAAO,SAAS,MAAM,KAAK,GAC/B,IAAI,KAAK,aACT,OAAO,KAAK,mBAAmB;AACjC,UAAM,SACJ,MAAM,KAAK,EAAE,KACb,MAAM,KAAK,EAAE,IAAI,EAAE,SACnB,MAAM,KAAK,EAAE,KACb,MAAM,KAAK,EAAE,IAAI,EAAE;AACrB,UAAM,UACJ,OAAO,KACP,MAAM,KAAK,EAAE,IAAI,QACjB,MAAM,KAAK,EAAE,IAAI,EAAE,QAAQ,QAC3B,MAAM,KAAK,EAAE,IAAI,QACjB,MAAM,KAAK,EAAE,IAAI,EAAE,SAAS,QAC5B,EACE,MAAM,IAAI,EAAE,IAAI,QAChB,MAAM,IAAI,EAAE,IAAI,EAAE,QAAQ,QAC1B,MAAM,IAAI,EAAE,IAAI,QAChB,MAAM,IAAI,EAAE,IAAI,EAAE,SAAS;AAE/B,QAAI,EAAG,KAAK,QAAQ,UAAW,SAAU;AACzC,UAAM;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF,IAAI;AACJ,WAAO,OAAO,OAAO;AAAA,MACnB;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF,CAAC;AAAA,EACH;AACA,SAAO;AACT;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|