@d3plus/core 3.1.6 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9924 -78528
- package/es/index.js +8 -0
- package/es/index.js.map +1 -1
- package/es/internal.js +54 -0
- package/es/internal.js.map +1 -0
- package/es/src/charts/AreaPlot/index.js +36 -0
- package/es/src/charts/AreaPlot/index.js.map +1 -0
- package/es/src/charts/BarChart/index.js +48 -0
- package/es/src/charts/BarChart/index.js.map +1 -0
- package/es/src/charts/BoxWhisker/index.js +52 -0
- package/es/src/charts/BoxWhisker/index.js.map +1 -0
- package/es/src/charts/BumpChart/index.js +81 -0
- package/es/src/charts/BumpChart/index.js.map +1 -0
- package/es/src/charts/Donut/index.js +42 -0
- package/es/src/charts/Donut/index.js.map +1 -0
- package/es/src/charts/Geomap/applyLayout.js +208 -0
- package/es/src/charts/Geomap/applyLayout.js.map +1 -0
- package/es/src/charts/Geomap/emit.js +169 -0
- package/es/src/charts/Geomap/emit.js.map +1 -0
- package/es/src/charts/Geomap/index.js +521 -0
- package/es/src/charts/Geomap/index.js.map +1 -0
- package/es/src/charts/LinePlot/index.js +32 -0
- package/es/src/charts/LinePlot/index.js.map +1 -0
- package/es/src/charts/Matrix/applyLayout.js +92 -0
- package/es/src/charts/Matrix/applyLayout.js.map +1 -0
- package/es/src/charts/Matrix/emit.js +44 -0
- package/es/src/charts/Matrix/emit.js.map +1 -0
- package/es/src/charts/Matrix/index.js +154 -0
- package/es/src/charts/Matrix/index.js.map +1 -0
- package/es/src/charts/Network/applyLayout.js +322 -0
- package/es/src/charts/Network/applyLayout.js.map +1 -0
- package/es/src/charts/Network/emit.js +273 -0
- package/es/src/charts/Network/emit.js.map +1 -0
- package/es/src/charts/Network/index.js +422 -0
- package/es/src/charts/Network/index.js.map +1 -0
- package/es/src/charts/Pack/applyLayout.js +46 -0
- package/es/src/charts/Pack/applyLayout.js.map +1 -0
- package/es/src/charts/Pack/emit.js +116 -0
- package/es/src/charts/Pack/emit.js.map +1 -0
- package/es/src/charts/Pack/index.js +194 -0
- package/es/src/charts/Pack/index.js.map +1 -0
- package/es/src/charts/Pack/recursionCircles.js +18 -0
- package/es/src/charts/Pack/recursionCircles.js.map +1 -0
- package/es/src/charts/Pie/applyLayout.js +44 -0
- package/es/src/charts/Pie/applyLayout.js.map +1 -0
- package/es/src/charts/Pie/emit.js +111 -0
- package/es/src/charts/Pie/emit.js.map +1 -0
- package/es/src/charts/Pie/index.js +134 -0
- package/es/src/charts/Pie/index.js.map +1 -0
- package/es/src/charts/Plot/draw.js +424 -0
- package/es/src/charts/Plot/draw.js.map +1 -0
- package/es/src/charts/Plot/index.js +827 -0
- package/es/src/charts/Plot/index.js.map +1 -0
- package/es/src/charts/Plot/labelPlacement.js +36 -0
- package/es/src/charts/Plot/labelPlacement.js.map +1 -0
- package/es/src/charts/Plot/pipeline.js +594 -0
- package/es/src/charts/Plot/pipeline.js.map +1 -0
- package/es/src/charts/Plot/pipelineDomains.js +254 -0
- package/es/src/charts/Plot/pipelineDomains.js.map +1 -0
- package/es/src/charts/Plot/pipelineLineLabels.js +210 -0
- package/es/src/charts/Plot/pipelineLineLabels.js.map +1 -0
- package/es/src/charts/Plot/shapeDefaults.js +189 -0
- package/es/src/charts/Plot/shapeDefaults.js.map +1 -0
- package/es/src/charts/Plot/stackHelpers.js +52 -0
- package/es/src/charts/Plot/stackHelpers.js.map +1 -0
- package/es/src/charts/Priestley/applyLayout.js +121 -0
- package/es/src/charts/Priestley/applyLayout.js.map +1 -0
- package/es/src/charts/Priestley/emit.js +129 -0
- package/es/src/charts/Priestley/emit.js.map +1 -0
- package/es/src/charts/Priestley/index.js +97 -0
- package/es/src/charts/Priestley/index.js.map +1 -0
- package/es/src/charts/Radar/applyLayout.js +326 -0
- package/es/src/charts/Radar/applyLayout.js.map +1 -0
- package/es/src/charts/Radar/emit.js +28 -0
- package/es/src/charts/Radar/emit.js.map +1 -0
- package/es/src/charts/Radar/index.js +98 -0
- package/es/src/charts/Radar/index.js.map +1 -0
- package/es/src/charts/RadialMatrix/applyLayout.js +132 -0
- package/es/src/charts/RadialMatrix/applyLayout.js.map +1 -0
- package/es/src/charts/RadialMatrix/emit.js +33 -0
- package/es/src/charts/RadialMatrix/emit.js.map +1 -0
- package/es/src/charts/RadialMatrix/index.js +144 -0
- package/es/src/charts/RadialMatrix/index.js.map +1 -0
- package/es/src/charts/Rings/applyLayout.js +508 -0
- package/es/src/charts/Rings/applyLayout.js.map +1 -0
- package/es/src/charts/Rings/emit.js +222 -0
- package/es/src/charts/Rings/emit.js.map +1 -0
- package/es/src/charts/Rings/index.js +245 -0
- package/es/src/charts/Rings/index.js.map +1 -0
- package/es/src/charts/Sankey/applyLayout.js +107 -0
- package/es/src/charts/Sankey/applyLayout.js.map +1 -0
- package/es/src/charts/Sankey/emit.js +134 -0
- package/es/src/charts/Sankey/emit.js.map +1 -0
- package/es/src/charts/Sankey/index.js +219 -0
- package/es/src/charts/Sankey/index.js.map +1 -0
- package/es/src/charts/StackedArea/index.js +27 -0
- package/es/src/charts/StackedArea/index.js.map +1 -0
- package/es/src/charts/Tree/applyLayout.js +233 -0
- package/es/src/charts/Tree/applyLayout.js.map +1 -0
- package/es/src/charts/Tree/emit.js +257 -0
- package/es/src/charts/Tree/emit.js.map +1 -0
- package/es/src/charts/Tree/index.js +105 -0
- package/es/src/charts/Tree/index.js.map +1 -0
- package/es/src/charts/Treemap/applyLayout.js +85 -0
- package/es/src/charts/Treemap/applyLayout.js.map +1 -0
- package/es/src/charts/Treemap/emit.js +141 -0
- package/es/src/charts/Treemap/emit.js.map +1 -0
- package/es/src/charts/Treemap/index.js +177 -0
- package/es/src/charts/Treemap/index.js.map +1 -0
- package/es/src/charts/Treemap/thresholdFunction.js +112 -0
- package/es/src/charts/Treemap/thresholdFunction.js.map +1 -0
- package/es/src/charts/definition/ChartDefinition.js +12 -0
- package/es/src/charts/definition/ChartDefinition.js.map +1 -0
- package/es/src/charts/definition/applyDefinition.js +107 -0
- package/es/src/charts/definition/applyDefinition.js.map +1 -0
- package/es/src/charts/definition/makeChart.js +153 -0
- package/es/src/charts/definition/makeChart.js.map +1 -0
- package/es/src/charts/drawSteps/zoomControls.js +231 -96
- package/es/src/charts/drawSteps/zoomControls.js.map +1 -1
- package/es/src/charts/events/click.legend.js +2 -2
- package/es/src/charts/events/click.legend.js.map +1 -1
- package/es/src/charts/events/click.shape.js +5 -5
- package/es/src/charts/events/click.shape.js.map +1 -1
- package/es/src/charts/events/mouseenter.js +20 -1
- package/es/src/charts/events/mouseenter.js.map +1 -1
- package/es/src/charts/events/mouseleave.js +19 -4
- package/es/src/charts/events/mouseleave.js.map +1 -1
- package/es/src/charts/events/mousemove.legend.js +10 -10
- package/es/src/charts/events/mousemove.legend.js.map +1 -1
- package/es/src/charts/events/mousemove.shape.js +14 -8
- package/es/src/charts/events/mousemove.shape.js.map +1 -1
- package/es/src/charts/events/touchstart.body.js.map +1 -1
- package/es/src/charts/features/axes.js +432 -0
- package/es/src/charts/features/axes.js.map +1 -0
- package/es/src/charts/features/chartGeometry.js +66 -0
- package/es/src/charts/features/chartGeometry.js.map +1 -0
- package/es/src/charts/features/colorScaleBucket.js +92 -0
- package/es/src/charts/features/colorScaleBucket.js.map +1 -0
- package/es/src/charts/features/emitHelpers.js +217 -0
- package/es/src/charts/features/emitHelpers.js.map +1 -0
- package/es/src/charts/features/ensureZoomDom.js +71 -0
- package/es/src/charts/features/ensureZoomDom.js.map +1 -0
- package/es/src/charts/features/features.js +650 -0
- package/es/src/charts/features/features.js.map +1 -0
- package/es/src/charts/features/featuresLegend.js +180 -0
- package/es/src/charts/features/featuresLegend.js.map +1 -0
- package/es/src/charts/features/legendLabel.js +12 -0
- package/es/src/charts/features/legendLabel.js.map +1 -0
- package/es/src/charts/features/lineLabels.js +154 -0
- package/es/src/charts/features/lineLabels.js.map +1 -0
- package/es/src/charts/features/plotPaint.js +512 -0
- package/es/src/charts/features/plotPaint.js.map +1 -0
- package/es/src/charts/features/shapeEmit.js +273 -0
- package/es/src/charts/features/shapeEmit.js.map +1 -0
- package/es/src/charts/helpers/matrixData.js +3 -3
- package/es/src/charts/helpers/matrixData.js.map +1 -1
- package/es/src/charts/index.js +21 -21
- package/es/src/charts/index.js.map +1 -1
- package/es/src/charts/pipeline/resolveSpec.js +44 -0
- package/es/src/charts/pipeline/resolveSpec.js.map +1 -0
- package/es/src/charts/pipeline/runChartDraw.js +109 -0
- package/es/src/charts/pipeline/runChartDraw.js.map +1 -0
- package/es/src/charts/pipeline/runVizPipeline.js +84 -0
- package/es/src/charts/pipeline/runVizPipeline.js.map +1 -0
- package/es/src/charts/pipeline/stages.js +103 -0
- package/es/src/charts/pipeline/stages.js.map +1 -0
- package/es/src/charts/pipeline/vizContext.js +29 -0
- package/es/src/charts/pipeline/vizContext.js.map +1 -0
- package/es/src/charts/pipeline/vizDraw.js +37 -0
- package/es/src/charts/pipeline/vizDraw.js.map +1 -0
- package/es/src/charts/pipeline/vizDrawPure.js +174 -0
- package/es/src/charts/pipeline/vizDrawPure.js.map +1 -0
- package/es/src/charts/pipeline/vizPreDraw.js +145 -0
- package/es/src/charts/pipeline/vizPreDraw.js.map +1 -0
- package/es/src/charts/pipeline/vizPreDrawPure.js +279 -0
- package/es/src/charts/pipeline/vizPreDrawPure.js.map +1 -0
- package/es/src/charts/plotBuffers/Bar.js +4 -4
- package/es/src/charts/plotBuffers/Bar.js.map +1 -1
- package/es/src/charts/plotBuffers/Box.js +4 -4
- package/es/src/charts/plotBuffers/Box.js.map +1 -1
- package/es/src/charts/plotBuffers/Circle.js +2 -2
- package/es/src/charts/plotBuffers/Circle.js.map +1 -1
- package/es/src/charts/plotBuffers/Line.js +5 -5
- package/es/src/charts/plotBuffers/Line.js.map +1 -1
- package/es/src/charts/plotBuffers/Rect.js +2 -2
- package/es/src/charts/plotBuffers/Rect.js.map +1 -1
- package/es/src/charts/plotBuffers/discreteBuffer.js +1 -2
- package/es/src/charts/plotBuffers/discreteBuffer.js.map +1 -1
- package/es/src/charts/plotBuffers/numericBuffer.js +1 -2
- package/es/src/charts/plotBuffers/numericBuffer.js.map +1 -1
- package/es/src/charts/viz/Viz.js +985 -0
- package/es/src/charts/viz/Viz.js.map +1 -0
- package/es/src/charts/viz/VizBase.js +447 -0
- package/es/src/charts/viz/VizBase.js.map +1 -0
- package/es/src/charts/viz/VizBaseConfig.js +504 -0
- package/es/src/charts/viz/VizBaseConfig.js.map +1 -0
- package/es/src/charts/viz/interactionOpacity.js +247 -0
- package/es/src/charts/viz/interactionOpacity.js.map +1 -0
- package/es/src/charts/viz/ordinalColor.js +71 -0
- package/es/src/charts/viz/ordinalColor.js.map +1 -0
- package/es/src/charts/viz/trailCatchup.js +127 -0
- package/es/src/charts/viz/trailCatchup.js.map +1 -0
- package/es/src/charts/viz/vizDefaults.js +602 -0
- package/es/src/charts/viz/vizDefaults.js.map +1 -0
- package/es/src/charts/viz/vizRender.js +251 -0
- package/es/src/charts/viz/vizRender.js.map +1 -0
- package/es/src/charts/viz/vizTypes.js +28 -0
- package/es/src/charts/viz/vizTypes.js.map +1 -0
- package/es/src/components/Axis/Axis.js +691 -0
- package/es/src/components/Axis/Axis.js.map +1 -0
- package/es/src/components/Axis/AxisBottom.js.map +1 -0
- package/es/src/components/Axis/AxisLeft.js.map +1 -0
- package/es/src/components/Axis/AxisRight.js.map +1 -0
- package/es/src/components/Axis/AxisTop.js.map +1 -0
- package/es/src/components/Axis/axisLayout.js +208 -0
- package/es/src/components/Axis/axisLayout.js.map +1 -0
- package/es/src/components/Axis/axisLayoutLabels.js +177 -0
- package/es/src/components/Axis/axisLayoutLabels.js.map +1 -0
- package/es/src/components/Axis/axisLayoutScale.js +374 -0
- package/es/src/components/Axis/axisLayoutScale.js.map +1 -0
- package/es/src/components/Axis/axisRender.js +535 -0
- package/es/src/components/Axis/axisRender.js.map +1 -0
- package/es/src/components/ColorScale/ColorScale.js +506 -0
- package/es/src/components/ColorScale/ColorScale.js.map +1 -0
- package/es/src/components/ColorScale/colorScaleRender.js +277 -0
- package/es/src/components/ColorScale/colorScaleRender.js.map +1 -0
- package/es/src/components/ColorScale/colorScaleScale.js +274 -0
- package/es/src/components/ColorScale/colorScaleScale.js.map +1 -0
- package/es/src/components/Legend/Legend.js +445 -0
- package/es/src/components/Legend/Legend.js.map +1 -0
- package/es/src/components/Legend/legendConfig.js +87 -0
- package/es/src/components/Legend/legendConfig.js.map +1 -0
- package/es/src/components/Legend/legendRender.js +245 -0
- package/es/src/components/Legend/legendRender.js.map +1 -0
- package/es/src/components/Message.js.map +1 -1
- package/es/src/components/TextBox.js +655 -453
- package/es/src/components/TextBox.js.map +1 -1
- package/es/src/components/Timeline/Timeline.js +674 -0
- package/es/src/components/Timeline/Timeline.js.map +1 -0
- package/es/src/components/Timeline/timelineConfig.js +115 -0
- package/es/src/components/Timeline/timelineConfig.js.map +1 -0
- package/es/src/components/Timeline/timelineRender.js +267 -0
- package/es/src/components/Timeline/timelineRender.js.map +1 -0
- package/es/src/components/Tooltip.js +288 -249
- package/es/src/components/Tooltip.js.map +1 -1
- package/es/src/components/index.js +8 -8
- package/es/src/components/index.js.map +1 -1
- package/es/src/fluent.js +265 -0
- package/es/src/fluent.js.map +1 -0
- package/es/src/shapes/Area.js +96 -114
- package/es/src/shapes/Area.js.map +1 -1
- package/es/src/shapes/Bar.js +71 -86
- package/es/src/shapes/Bar.js.map +1 -1
- package/es/src/shapes/Box.js +295 -190
- package/es/src/shapes/Box.js.map +1 -1
- package/es/src/shapes/Circle.js +84 -35
- package/es/src/shapes/Circle.js.map +1 -1
- package/es/src/shapes/Image.js +164 -85
- package/es/src/shapes/Image.js.map +1 -1
- package/es/src/shapes/Line.js +51 -94
- package/es/src/shapes/Line.js.map +1 -1
- package/es/src/shapes/Path.js +33 -41
- package/es/src/shapes/Path.js.map +1 -1
- package/es/src/shapes/Rect.js +86 -37
- package/es/src/shapes/Rect.js.map +1 -1
- package/es/src/shapes/Shape.js +655 -678
- package/es/src/shapes/Shape.js.map +1 -1
- package/es/src/shapes/Whisker.js +156 -61
- package/es/src/shapes/Whisker.js.map +1 -1
- package/es/src/shapes/buildLabelData.js +125 -0
- package/es/src/shapes/buildLabelData.js.map +1 -0
- package/es/src/shapes/emitLabels.js +84 -0
- package/es/src/shapes/emitLabels.js.map +1 -0
- package/es/src/shapes/hitAreaNode.js +37 -0
- package/es/src/shapes/hitAreaNode.js.map +1 -0
- package/es/src/shapes/sceneSort.js +57 -0
- package/es/src/shapes/sceneSort.js.map +1 -0
- package/es/src/shapes/shapeConfig.js +31 -0
- package/es/src/shapes/shapeConfig.js.map +1 -0
- package/es/src/utils/BaseClass.js +35 -19
- package/es/src/utils/BaseClass.js.map +1 -1
- package/es/src/utils/D3Scale.js +16 -0
- package/es/src/utils/D3Scale.js.map +1 -0
- package/es/src/utils/D3plusConfig.js.map +1 -1
- package/es/src/utils/configPrep.js +8 -3
- package/es/src/utils/configPrep.js.map +1 -1
- package/es/src/utils/getProp.js +1 -1
- package/es/src/utils/getProp.js.map +1 -1
- package/es/src/utils/index.js +1 -0
- package/es/src/utils/index.js.map +1 -1
- package/es/src/utils/paintComponentScene.js +59 -0
- package/es/src/utils/paintComponentScene.js.map +1 -0
- package/es/umd-entry.js +16 -0
- package/es/umd-entry.js.map +1 -0
- package/package.json +15 -10
- package/types/index.d.ts +3 -1
- package/types/internal.d.ts +54 -0
- package/types/src/charts/AreaPlot/index.d.ts +10 -0
- package/types/src/charts/BarChart/index.d.ts +10 -0
- package/types/src/charts/BoxWhisker/index.d.ts +11 -0
- package/types/src/charts/BumpChart/index.d.ts +11 -0
- package/types/src/charts/ChartDefinition.d.ts +75 -0
- package/types/src/charts/Donut/index.d.ts +13 -0
- package/types/src/charts/Geomap/applyLayout.d.ts +7 -0
- package/types/src/charts/Geomap/emit.d.ts +7 -0
- package/types/src/charts/Geomap/index.d.ts +14 -0
- package/types/src/charts/Geomap.d.ts +6 -0
- package/types/src/charts/LinePlot/index.d.ts +10 -0
- package/types/src/charts/Matrix/applyLayout.d.ts +9 -0
- package/types/src/charts/Matrix/emit.d.ts +6 -0
- package/types/src/charts/Matrix/index.d.ts +14 -0
- package/types/src/charts/Matrix.d.ts +0 -26
- package/types/src/charts/Network/applyLayout.d.ts +10 -0
- package/types/src/charts/Network/emit.d.ts +6 -0
- package/types/src/charts/Network/index.d.ts +7 -0
- package/types/src/charts/Network.d.ts +0 -24
- package/types/src/charts/Pack/applyLayout.d.ts +16 -0
- package/types/src/charts/Pack/emit.d.ts +6 -0
- package/types/src/charts/Pack/index.d.ts +15 -0
- package/types/src/charts/Pack/recursionCircles.d.ts +7 -0
- package/types/src/charts/Pack.d.ts +0 -13
- package/types/src/charts/Pie/applyLayout.d.ts +8 -0
- package/types/src/charts/Pie/emit.d.ts +5 -0
- package/types/src/charts/Pie/index.d.ts +14 -0
- package/types/src/charts/Pie.d.ts +0 -27
- package/types/src/charts/Plot/draw.d.ts +2 -0
- package/types/src/charts/Plot/index.d.ts +167 -0
- package/types/src/charts/Plot/labelPlacement.d.ts +15 -0
- package/types/src/charts/Plot/pipeline.d.ts +70 -0
- package/types/src/charts/Plot/pipelineDomains.d.ts +2 -0
- package/types/src/charts/Plot/pipelineLineLabels.d.ts +2 -0
- package/types/src/charts/Plot/shapeDefaults.d.ts +64 -0
- package/types/src/charts/Plot/stackHelpers.d.ts +24 -0
- package/types/src/charts/Plot.d.ts +23 -72
- package/types/src/charts/Priestley/applyLayout.d.ts +21 -0
- package/types/src/charts/Priestley/emit.d.ts +6 -0
- package/types/src/charts/Priestley/index.d.ts +14 -0
- package/types/src/charts/Radar/applyLayout.d.ts +10 -0
- package/types/src/charts/Radar/emit.d.ts +7 -0
- package/types/src/charts/Radar/index.d.ts +14 -0
- package/types/src/charts/RadialMatrix/applyLayout.d.ts +11 -0
- package/types/src/charts/RadialMatrix/emit.d.ts +6 -0
- package/types/src/charts/RadialMatrix/index.d.ts +14 -0
- package/types/src/charts/RadialMatrix.d.ts +0 -15
- package/types/src/charts/Rings/applyLayout.d.ts +2 -0
- package/types/src/charts/Rings/emit.d.ts +7 -0
- package/types/src/charts/Rings/index.d.ts +15 -0
- package/types/src/charts/Rings.d.ts +0 -13
- package/types/src/charts/Sankey/applyLayout.d.ts +7 -0
- package/types/src/charts/Sankey/emit.d.ts +6 -0
- package/types/src/charts/Sankey/index.d.ts +7 -0
- package/types/src/charts/Sankey.d.ts +0 -4
- package/types/src/charts/StackedArea/index.d.ts +10 -0
- package/types/src/charts/Tree/applyLayout.d.ts +2 -0
- package/types/src/charts/Tree/emit.d.ts +7 -0
- package/types/src/charts/Tree/index.d.ts +14 -0
- package/types/src/charts/Tree.d.ts +0 -16
- package/types/src/charts/Treemap/applyLayout.d.ts +16 -0
- package/types/src/charts/Treemap/emit.d.ts +6 -0
- package/types/src/charts/Treemap/index.d.ts +18 -0
- package/types/src/charts/Treemap/thresholdFunction.d.ts +25 -0
- package/types/src/charts/Treemap.d.ts +4 -13
- package/types/src/charts/Viz.d.ts +49 -361
- package/types/src/charts/VizBase.d.ts +158 -0
- package/types/src/charts/VizBaseConfig.d.ts +148 -0
- package/types/src/charts/applyDefinition.d.ts +13 -0
- package/types/src/charts/axes.d.ts +134 -0
- package/types/src/charts/chartGeometry.d.ts +58 -0
- package/types/src/charts/definition/ChartDefinition.d.ts +84 -0
- package/types/src/charts/definition/applyDefinition.d.ts +13 -0
- package/types/src/charts/definition/makeChart.d.ts +22 -0
- package/types/src/charts/drawSteps/zoomControls.d.ts +25 -5
- package/types/src/charts/emitHelpers.d.ts +122 -0
- package/types/src/charts/ensureZoomDom.d.ts +39 -0
- package/types/src/charts/events/click.legend.d.ts +1 -1
- package/types/src/charts/events/click.shape.d.ts +1 -1
- package/types/src/charts/events/mouseenter.d.ts +1 -1
- package/types/src/charts/events/mouseleave.d.ts +1 -1
- package/types/src/charts/events/mousemove.legend.d.ts +1 -1
- package/types/src/charts/events/mousemove.shape.d.ts +1 -1
- package/types/src/charts/events/touchstart.body.d.ts +1 -1
- package/types/src/charts/factories.d.ts +73 -0
- package/types/src/charts/features/axes.d.ts +134 -0
- package/types/src/charts/features/chartGeometry.d.ts +58 -0
- package/types/src/charts/features/colorScaleBucket.d.ts +43 -0
- package/types/src/charts/features/colorScaleBucketShare.d.ts +16 -0
- package/types/src/charts/features/emitHelpers.d.ts +123 -0
- package/types/src/charts/features/ensureZoomDom.d.ts +39 -0
- package/types/src/charts/features/features.d.ts +152 -0
- package/types/src/charts/features/featuresLegend.d.ts +12 -0
- package/types/src/charts/features/legendLabel.d.ts +11 -0
- package/types/src/charts/features/lineLabels.d.ts +40 -0
- package/types/src/charts/features/plotPaint.d.ts +233 -0
- package/types/src/charts/features/shapeEmit.d.ts +61 -0
- package/types/src/charts/features.d.ts +152 -0
- package/types/src/charts/featuresLegend.d.ts +12 -0
- package/types/src/charts/helpers/matrixData.d.ts +1 -1
- package/types/src/charts/index.d.ts +21 -21
- package/types/src/charts/legendLabel.d.ts +11 -0
- package/types/src/charts/lineLabels.d.ts +40 -0
- package/types/src/charts/makeChart.d.ts +22 -0
- package/types/src/charts/pipeline/resolveSpec.d.ts +51 -0
- package/types/src/charts/pipeline/runChartDraw.d.ts +38 -0
- package/types/src/charts/pipeline/runVizPipeline.d.ts +31 -0
- package/types/src/charts/pipeline/stages.d.ts +160 -0
- package/types/src/charts/pipeline/vizContext.d.ts +45 -0
- package/types/src/charts/pipeline/vizDraw.d.ts +25 -0
- package/types/src/charts/pipeline/vizDrawPure.d.ts +46 -0
- package/types/src/charts/pipeline/vizPreDraw.d.ts +22 -0
- package/types/src/charts/pipeline/vizPreDrawPure.d.ts +68 -0
- package/types/src/charts/plotBuffers/Bar.d.ts +6 -5
- package/types/src/charts/plotBuffers/Box.d.ts +6 -5
- package/types/src/charts/plotBuffers/Circle.d.ts +6 -5
- package/types/src/charts/plotBuffers/Line.d.ts +6 -5
- package/types/src/charts/plotBuffers/Rect.d.ts +6 -5
- package/types/src/charts/plotBuffers/discreteBuffer.d.ts +2 -1
- package/types/src/charts/plotBuffers/numericBuffer.d.ts +2 -1
- package/types/src/charts/plotPaint.d.ts +233 -0
- package/types/src/charts/resolveSpec.d.ts +50 -0
- package/types/src/charts/runChartDraw.d.ts +38 -0
- package/types/src/charts/runVizPipeline.d.ts +31 -0
- package/types/src/charts/shapeEmit.d.ts +61 -0
- package/types/src/charts/stages.d.ts +117 -0
- package/types/src/charts/viz/Viz.d.ts +111 -0
- package/types/src/charts/viz/VizBase.d.ts +160 -0
- package/types/src/charts/viz/VizBaseConfig.d.ts +157 -0
- package/types/src/charts/viz/interactionOpacity.d.ts +23 -0
- package/types/src/charts/viz/ordinalColor.d.ts +14 -0
- package/types/src/charts/viz/trailCatchup.d.ts +14 -0
- package/types/src/charts/viz/vizDefaults.d.ts +8 -0
- package/types/src/charts/viz/vizRender.d.ts +8 -0
- package/types/src/charts/viz/vizTypes.d.ts +250 -0
- package/types/src/charts/vizContext.d.ts +46 -0
- package/types/src/charts/vizDefaults.d.ts +8 -0
- package/types/src/charts/vizDraw.d.ts +25 -0
- package/types/src/charts/vizDrawPure.d.ts +17 -0
- package/types/src/charts/vizPreDraw.d.ts +22 -0
- package/types/src/charts/vizPreDrawPure.d.ts +40 -0
- package/types/src/charts/vizRender.d.ts +8 -0
- package/types/src/charts/vizTypes.d.ts +202 -0
- package/types/src/components/Axis/Axis.d.ts +182 -0
- package/types/src/components/Axis/AxisBottom.d.ts +11 -0
- package/types/src/components/Axis/AxisLeft.d.ts +11 -0
- package/types/src/components/Axis/AxisRight.d.ts +11 -0
- package/types/src/components/Axis/AxisTop.d.ts +11 -0
- package/types/src/components/Axis/axisLayout.d.ts +29 -0
- package/types/src/components/Axis/axisLayoutLabels.d.ts +70 -0
- package/types/src/components/Axis/axisLayoutScale.d.ts +14 -0
- package/types/src/components/Axis/axisRender.d.ts +68 -0
- package/types/src/components/Axis.d.ts +68 -194
- package/types/src/components/ColorScale/ColorScale.d.ts +100 -0
- package/types/src/components/ColorScale/colorScaleRender.d.ts +15 -0
- package/types/src/components/ColorScale/colorScaleScale.d.ts +19 -0
- package/types/src/components/ColorScale.d.ts +1 -129
- package/types/src/components/Legend/Legend.d.ts +95 -0
- package/types/src/components/Legend/legendConfig.d.ts +7 -0
- package/types/src/components/Legend/legendRender.d.ts +16 -0
- package/types/src/components/Legend.d.ts +9 -73
- package/types/src/components/TextBox.d.ts +25 -218
- package/types/src/components/Timeline/Timeline.d.ts +118 -0
- package/types/src/components/Timeline/timelineConfig.d.ts +6 -0
- package/types/src/components/Timeline/timelineRender.d.ts +24 -0
- package/types/src/components/Timeline.d.ts +7 -81
- package/types/src/components/Tooltip.d.ts +20 -200
- package/types/src/components/axisLayout.d.ts +27 -0
- package/types/src/components/axisLayoutLabels.d.ts +42 -0
- package/types/src/components/axisLayoutScale.d.ts +12 -0
- package/types/src/components/axisRender.d.ts +65 -0
- package/types/src/components/colorScaleRender.d.ts +15 -0
- package/types/src/components/colorScaleScale.d.ts +19 -0
- package/types/src/components/index.d.ts +8 -8
- package/types/src/components/legendConfig.d.ts +7 -0
- package/types/src/components/legendRender.d.ts +16 -0
- package/types/src/components/timelineConfig.d.ts +6 -0
- package/types/src/components/timelineRender.d.ts +14 -0
- package/types/src/fluent.d.ts +94 -0
- package/types/src/shapes/Area.d.ts +15 -27
- package/types/src/shapes/Bar.d.ts +13 -33
- package/types/src/shapes/Box.d.ts +17 -56
- package/types/src/shapes/Circle.d.ts +11 -17
- package/types/src/shapes/Image.d.ts +18 -84
- package/types/src/shapes/Line.d.ts +12 -22
- package/types/src/shapes/Path.d.ts +12 -19
- package/types/src/shapes/Rect.d.ts +11 -27
- package/types/src/shapes/Shape.d.ts +46 -257
- package/types/src/shapes/Whisker.d.ts +15 -42
- package/types/src/shapes/buildLabelData.d.ts +50 -0
- package/types/src/shapes/emitLabels.d.ts +16 -0
- package/types/src/shapes/hitAreaNode.d.ts +19 -0
- package/types/src/shapes/sceneSort.d.ts +20 -0
- package/types/src/shapes/shapeConfig.d.ts +226 -0
- package/types/src/utils/BaseClass.d.ts +13 -7
- package/types/src/utils/D3Scale.d.ts +48 -0
- package/types/src/utils/D3plusConfig.d.ts +270 -15
- package/types/src/utils/configPrep.d.ts +7 -4
- package/types/src/utils/getProp.d.ts +3 -1
- package/types/src/utils/index.d.ts +3 -1
- package/types/src/utils/paintComponentScene.d.ts +28 -0
- package/types/umd-entry.d.ts +15 -0
- package/umd/d3plus-core.full.js +30966 -19051
- package/umd/d3plus-core.full.js.map +1 -1
- package/umd/d3plus-core.full.min.js +5400 -2949
- package/umd/d3plus-core.js +17364 -10534
- package/umd/d3plus-core.js.map +1 -1
- package/umd/d3plus-core.min.js +3494 -1877
- package/es/src/charts/AreaPlot.js +0 -85
- package/es/src/charts/AreaPlot.js.map +0 -1
- package/es/src/charts/BarChart.js +0 -92
- package/es/src/charts/BarChart.js.map +0 -1
- package/es/src/charts/BoxWhisker.js +0 -92
- package/es/src/charts/BoxWhisker.js.map +0 -1
- package/es/src/charts/BumpChart.js +0 -147
- package/es/src/charts/BumpChart.js.map +0 -1
- package/es/src/charts/Donut.js +0 -84
- package/es/src/charts/Donut.js.map +0 -1
- package/es/src/charts/Geomap.js +0 -766
- package/es/src/charts/Geomap.js.map +0 -1
- package/es/src/charts/LinePlot.js +0 -83
- package/es/src/charts/LinePlot.js.map +0 -1
- package/es/src/charts/Matrix.js +0 -341
- package/es/src/charts/Matrix.js.map +0 -1
- package/es/src/charts/Network.js +0 -796
- package/es/src/charts/Network.js.map +0 -1
- package/es/src/charts/Pack.js +0 -308
- package/es/src/charts/Pack.js.map +0 -1
- package/es/src/charts/Pie.js +0 -232
- package/es/src/charts/Pie.js.map +0 -1
- package/es/src/charts/Plot.js +0 -2114
- package/es/src/charts/Plot.js.map +0 -1
- package/es/src/charts/Priestley.js +0 -296
- package/es/src/charts/Priestley.js.map +0 -1
- package/es/src/charts/Radar.js +0 -420
- package/es/src/charts/Radar.js.map +0 -1
- package/es/src/charts/RadialMatrix.js +0 -383
- package/es/src/charts/RadialMatrix.js.map +0 -1
- package/es/src/charts/Rings.js +0 -788
- package/es/src/charts/Rings.js.map +0 -1
- package/es/src/charts/Sankey.js +0 -461
- package/es/src/charts/Sankey.js.map +0 -1
- package/es/src/charts/StackedArea.js +0 -80
- package/es/src/charts/StackedArea.js.map +0 -1
- package/es/src/charts/Tree.js +0 -347
- package/es/src/charts/Tree.js.map +0 -1
- package/es/src/charts/Treemap.js +0 -454
- package/es/src/charts/Treemap.js.map +0 -1
- package/es/src/charts/Viz.js +0 -1832
- package/es/src/charts/Viz.js.map +0 -1
- package/es/src/charts/drawSteps/drawAttribution.js +0 -16
- package/es/src/charts/drawSteps/drawAttribution.js.map +0 -1
- package/es/src/charts/drawSteps/drawBack.js +0 -24
- package/es/src/charts/drawSteps/drawBack.js.map +0 -1
- package/es/src/charts/drawSteps/drawColorScale.js +0 -75
- package/es/src/charts/drawSteps/drawColorScale.js.map +0 -1
- package/es/src/charts/drawSteps/drawLegend.js +0 -122
- package/es/src/charts/drawSteps/drawLegend.js.map +0 -1
- package/es/src/charts/drawSteps/drawSubtitle.js +0 -31
- package/es/src/charts/drawSteps/drawSubtitle.js.map +0 -1
- package/es/src/charts/drawSteps/drawTimeline.js +0 -85
- package/es/src/charts/drawSteps/drawTimeline.js.map +0 -1
- package/es/src/charts/drawSteps/drawTitle.js +0 -31
- package/es/src/charts/drawSteps/drawTitle.js.map +0 -1
- package/es/src/charts/drawSteps/drawTotal.js +0 -32
- package/es/src/charts/drawSteps/drawTotal.js.map +0 -1
- package/es/src/components/Axis.js +0 -1457
- package/es/src/components/Axis.js.map +0 -1
- package/es/src/components/AxisBottom.js.map +0 -1
- package/es/src/components/AxisLeft.js.map +0 -1
- package/es/src/components/AxisRight.js.map +0 -1
- package/es/src/components/AxisTop.js.map +0 -1
- package/es/src/components/ColorScale.js +0 -843
- package/es/src/components/ColorScale.js.map +0 -1
- package/es/src/components/Legend.js +0 -622
- package/es/src/components/Legend.js.map +0 -1
- package/es/src/components/Timeline.js +0 -695
- package/es/src/components/Timeline.js.map +0 -1
- /package/es/src/components/{AxisBottom.js → Axis/AxisBottom.js} +0 -0
- /package/es/src/components/{AxisLeft.js → Axis/AxisLeft.js} +0 -0
- /package/es/src/components/{AxisRight.js → Axis/AxisRight.js} +0 -0
- /package/es/src/components/{AxisTop.js → Axis/AxisTop.js} +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { GroupNode } from "@d3plus/render";
|
|
2
|
+
import type Timeline from "./Timeline.js";
|
|
3
|
+
/**
|
|
4
|
+
Standalone paint for the Timeline's scene (axis ticks/domain line/labels
|
|
5
|
+
plus the play button's pixels). Inside a Viz the parent composes this via
|
|
6
|
+
`toScene()`; on its own the Timeline `_managesOwnScenePaint`, so
|
|
7
|
+
`Axis.render()` skips the scene and only the brush + play-button hit DOM
|
|
8
|
+
would show. This mounts (or reuses) an SvgRenderer on the Timeline's
|
|
9
|
+
container and draws the passed scene beneath that interactive DOM.
|
|
10
|
+
*/
|
|
11
|
+
export declare function paintTimelineScene(tl: Timeline, root: GroupNode): void;
|
|
12
|
+
/** Coerces ticks/data to dates and resolves the tick format. */
|
|
13
|
+
export declare function prepareTicks(tl: Timeline): {
|
|
14
|
+
ticks: unknown[];
|
|
15
|
+
tickFormat: (d: Date) => string;
|
|
16
|
+
};
|
|
17
|
+
/** Measures the widest tick label, driving the auto button/tick decision. */
|
|
18
|
+
export declare function measureTicksWidth(tl: Timeline, ticks: unknown[], tickFormat: (d: Date) => string): void;
|
|
19
|
+
/** Resolves button-vs-tick behavior and sets the scale/domain/range. */
|
|
20
|
+
export declare function configureScale(tl: Timeline, ticks: unknown[], playButtonWidth: number): boolean;
|
|
21
|
+
/** Builds the d3-brush, computes the active selection, and mounts the brush group. */
|
|
22
|
+
export declare function setupBrush(tl: Timeline, hiddenHandles: boolean, height: string, y: string): void;
|
|
23
|
+
/** Renders the play button TextBox into its own group. */
|
|
24
|
+
export declare function renderPlayButton(tl: Timeline, playButtonWidth: number): void;
|
|
@@ -1,28 +1,13 @@
|
|
|
1
|
+
import type { GroupNode } from "@d3plus/render";
|
|
1
2
|
import { Axis, TextBox } from "../components/index.js";
|
|
2
3
|
/**
|
|
3
4
|
Creates an interactive timeline brush component for selecting time periods within a visualization.
|
|
4
5
|
*/
|
|
5
6
|
export default class Timeline extends Axis {
|
|
6
|
-
_brushing: boolean;
|
|
7
|
-
_brushFilter: (event: unknown) => boolean;
|
|
8
|
-
_brushMin: () => number;
|
|
9
|
-
_buttonAlign: string;
|
|
10
|
-
_buttonBehavior: string;
|
|
11
7
|
_buttonBehaviorCurrent: string;
|
|
12
|
-
_buttonPadding: number;
|
|
13
|
-
_buttonHeight: number;
|
|
14
|
-
_handleConfig: Record<string, unknown>;
|
|
15
|
-
_handleSize: number;
|
|
16
8
|
_hiddenHandles: boolean;
|
|
17
|
-
_on: Record<string, (...args: unknown[]) => unknown>;
|
|
18
|
-
_playButton: boolean;
|
|
19
9
|
_playButtonClass: TextBox;
|
|
20
|
-
_playButtonConfig: Record<string, unknown>;
|
|
21
|
-
_playButtonInterval: number;
|
|
22
10
|
_playTimer: ReturnType<typeof setInterval> | false;
|
|
23
|
-
_selection: unknown;
|
|
24
|
-
_selectionConfig: Record<string, unknown>;
|
|
25
|
-
_snapping: boolean;
|
|
26
11
|
_brush: any;
|
|
27
12
|
_brushGroup: any;
|
|
28
13
|
_paddingLeft: number;
|
|
@@ -62,61 +47,22 @@ export default class Timeline extends Axis {
|
|
|
62
47
|
@private
|
|
63
48
|
*/
|
|
64
49
|
_updateBrushLimit(domain: unknown[]): unknown[];
|
|
50
|
+
/**
|
|
51
|
+
Extends the native Axis scene with the Timeline-specific brush selection
|
|
52
|
+
overlay (snapshotted, since d3-brush manages its DOM directly) and the
|
|
53
|
+
play-button TextBox (native).
|
|
54
|
+
*/
|
|
55
|
+
toScene(): GroupNode;
|
|
65
56
|
/**
|
|
66
57
|
Draws the timeline.
|
|
67
58
|
@param callback Optional callback invoked after rendering completes.
|
|
68
59
|
*/
|
|
69
60
|
render(callback?: (...args: unknown[]) => unknown): this;
|
|
70
|
-
/**
|
|
71
|
-
Button padding.
|
|
72
|
-
*/
|
|
73
|
-
buttonPadding(): number;
|
|
74
|
-
buttonPadding(_: number): this;
|
|
75
|
-
/**
|
|
76
|
-
Toggles the brushing value.
|
|
77
|
-
*/
|
|
78
|
-
brushing(): boolean;
|
|
79
|
-
brushing(_: boolean): this;
|
|
80
|
-
/**
|
|
81
|
-
Brush event filter.
|
|
82
|
-
|
|
83
|
-
@example
|
|
84
|
-
function() {
|
|
85
|
-
return !event.button && event.detail < 2;
|
|
86
|
-
}
|
|
87
|
-
*/
|
|
88
|
-
brushFilter(): (event: unknown) => boolean;
|
|
89
|
-
brushFilter(_: (event: unknown) => boolean): this;
|
|
90
|
-
/**
|
|
91
|
-
The minimum number of ticks that can be highlighted when using "ticks" buttonBehavior. Helpful when using x/y plots where you don't want the user to select less than 2 time periods.
|
|
92
|
-
*/
|
|
93
|
-
brushMin(): () => number;
|
|
94
|
-
brushMin(_: (() => number) | number): this;
|
|
95
|
-
/**
|
|
96
|
-
Toggles the horizontal alignment of the button timeline. Accepted values are `"start"`, `"middle"` and `"end"`.
|
|
97
|
-
*/
|
|
98
|
-
buttonAlign(): string;
|
|
99
|
-
buttonAlign(_: string): this;
|
|
100
|
-
/**
|
|
101
|
-
Toggles the style of the timeline. Accepted values are `"auto"`, `"buttons"` and `"ticks"`.
|
|
102
|
-
*/
|
|
103
|
-
buttonBehavior(): string;
|
|
104
|
-
buttonBehavior(_: string): this;
|
|
105
|
-
/**
|
|
106
|
-
Button height.
|
|
107
|
-
*/
|
|
108
|
-
buttonHeight(): number;
|
|
109
|
-
buttonHeight(_: number): this;
|
|
110
61
|
/**
|
|
111
62
|
Handle style.
|
|
112
63
|
*/
|
|
113
64
|
handleConfig(): Record<string, unknown>;
|
|
114
65
|
handleConfig(_: Record<string, unknown>): this;
|
|
115
|
-
/**
|
|
116
|
-
Handle size.
|
|
117
|
-
*/
|
|
118
|
-
handleSize(): number;
|
|
119
|
-
handleSize(_: number): this;
|
|
120
66
|
/**
|
|
121
67
|
Event listener for the specified brush event *typename*. Mirrors the core [d3-brush](https://github.com/d3/d3-brush#brush_on) behavior.
|
|
122
68
|
*/
|
|
@@ -124,34 +70,14 @@ export default class Timeline extends Axis {
|
|
|
124
70
|
on(_: string): ((...args: unknown[]) => unknown) | undefined;
|
|
125
71
|
on(_: string, f: (...args: unknown[]) => unknown): this;
|
|
126
72
|
on(_: Record<string, (...args: unknown[]) => unknown>): this;
|
|
127
|
-
/**
|
|
128
|
-
Determines the visibility of the play button to the left the of timeline, which will cycle through the available periods at a rate defined by the playButtonInterval method.
|
|
129
|
-
*/
|
|
130
|
-
playButton(): boolean;
|
|
131
|
-
playButton(_: boolean): this;
|
|
132
73
|
/**
|
|
133
74
|
The config Object for the Rect class used to create the playButton.
|
|
134
75
|
*/
|
|
135
76
|
playButtonConfig(): Record<string, unknown>;
|
|
136
77
|
playButtonConfig(_: Record<string, unknown>): this;
|
|
137
|
-
/**
|
|
138
|
-
The value, in milliseconds, to use when cycling through the available time periods when the user clicks the playButton.
|
|
139
|
-
*/
|
|
140
|
-
playButtonInterval(): number;
|
|
141
|
-
playButtonInterval(_: number): this;
|
|
142
78
|
/**
|
|
143
79
|
Selection style.
|
|
144
80
|
*/
|
|
145
81
|
selectionConfig(): Record<string, unknown>;
|
|
146
82
|
selectionConfig(_: Record<string, unknown>): this;
|
|
147
|
-
/**
|
|
148
|
-
Selection. Defaults to the most recent year in the timeline.
|
|
149
|
-
*/
|
|
150
|
-
selection(): unknown;
|
|
151
|
-
selection(_: unknown): this;
|
|
152
|
-
/**
|
|
153
|
-
Toggles the snapping value.
|
|
154
|
-
*/
|
|
155
|
-
snapping(): boolean;
|
|
156
|
-
snapping(_: boolean): this;
|
|
157
83
|
}
|
|
@@ -5,22 +5,17 @@ import { BaseClass } from "../utils/index.js";
|
|
|
5
5
|
Creates HTML tooltips in the body of a webpage.
|
|
6
6
|
*/
|
|
7
7
|
export default class Tooltip extends BaseClass {
|
|
8
|
-
|
|
9
|
-
_arrowStyle: Record<string, string>;
|
|
10
|
-
_background: (d: DataPoint, i?: number) => DataPoint[keyof DataPoint];
|
|
11
|
-
_body: (d: DataPoint, i?: number) => DataPoint[keyof DataPoint];
|
|
12
|
-
_bodyStyle: Record<string, string>;
|
|
13
|
-
_border: (d: DataPoint, i?: number) => DataPoint[keyof DataPoint];
|
|
14
|
-
_borderRadius: (d: DataPoint, i?: number) => DataPoint[keyof DataPoint];
|
|
15
|
-
_className: string;
|
|
8
|
+
[key: string]: any;
|
|
16
9
|
_data: DataPoint[];
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
10
|
+
/** v4: optional per-chart parent element (default: global #d3plus-portal). */
|
|
11
|
+
_parentEl?: HTMLElement;
|
|
12
|
+
/**
|
|
13
|
+
* v4: this Tooltip's own portal div (a `.d3plus-tooltip-portal` appended to
|
|
14
|
+
* `<body>`). Tracked per-instance so that charts each own a distinct portal
|
|
15
|
+
* — and so `parent()` switches only remove THIS instance's portal, not a
|
|
16
|
+
* sibling Tooltip's.
|
|
17
|
+
*/
|
|
18
|
+
_portalEl?: HTMLElement;
|
|
24
19
|
_tooltipRefs: Record<string, {
|
|
25
20
|
reference: VirtualElement | HTMLElement;
|
|
26
21
|
arrowEl: HTMLElement;
|
|
@@ -28,20 +23,6 @@ export default class Tooltip extends BaseClass {
|
|
|
28
23
|
arrowHeight: number;
|
|
29
24
|
arrowDistance: number;
|
|
30
25
|
}>;
|
|
31
|
-
_position: (d: DataPoint, i?: number) => number[] | HTMLElement;
|
|
32
|
-
_tableStyle: Record<string, string>;
|
|
33
|
-
_tbody: unknown[];
|
|
34
|
-
_tbodyStyle: Record<string, string>;
|
|
35
|
-
_thead: unknown[];
|
|
36
|
-
_theadStyle: Record<string, string>;
|
|
37
|
-
_title: (d: DataPoint, i?: number) => DataPoint[keyof DataPoint];
|
|
38
|
-
_titleStyle: Record<string, string>;
|
|
39
|
-
_tooltipStyle: Record<string, string>;
|
|
40
|
-
_trStyle: Record<string, unknown>;
|
|
41
|
-
_tdStyle: Record<string, string>;
|
|
42
|
-
_maxWidth: (d: DataPoint, i?: number) => DataPoint[keyof DataPoint];
|
|
43
|
-
_minWidth: (d: DataPoint, i?: number) => DataPoint[keyof DataPoint];
|
|
44
|
-
_width: (d: DataPoint, i?: number) => DataPoint[keyof DataPoint];
|
|
45
26
|
/**
|
|
46
27
|
Invoked when creating a new class instance, and sets any default parameters.
|
|
47
28
|
@private
|
|
@@ -53,126 +34,36 @@ export default class Tooltip extends BaseClass {
|
|
|
53
34
|
*/
|
|
54
35
|
render(callback?: (...args: unknown[]) => unknown): this;
|
|
55
36
|
/**
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
@example <caption>default accessor</caption>
|
|
59
|
-
function value(d) {
|
|
60
|
-
return d.arrow || "";
|
|
61
|
-
}
|
|
62
|
-
*/
|
|
63
|
-
arrow(): (d: DataPoint, i?: number) => DataPoint[keyof DataPoint];
|
|
64
|
-
arrow(_: ((d: DataPoint, i?: number) => DataPoint[keyof DataPoint]) | string): this;
|
|
65
|
-
/**
|
|
66
|
-
CSS styles applied to the arrow element.
|
|
67
|
-
|
|
68
|
-
@example <caption>default styles</caption>
|
|
69
|
-
{
|
|
70
|
-
"content": "",
|
|
71
|
-
"border-width": "10px",
|
|
72
|
-
"border-style": "solid",
|
|
73
|
-
"border-color": "rgba(255, 255, 255, 0.75) transparent transparent transparent",
|
|
74
|
-
"position": "absolute"
|
|
75
|
-
}
|
|
37
|
+
CSS styles applied to the arrow element.
|
|
76
38
|
*/
|
|
77
39
|
arrowStyle(): Record<string, string>;
|
|
78
40
|
arrowStyle(_: Record<string, string>): this;
|
|
79
|
-
/**
|
|
80
|
-
The background color accessor for each tooltip.
|
|
81
|
-
*/
|
|
82
|
-
background(): (d: DataPoint, i?: number) => DataPoint[keyof DataPoint];
|
|
83
|
-
background(_: ((d: DataPoint, i?: number) => DataPoint[keyof DataPoint]) | string): this;
|
|
84
|
-
/**
|
|
85
|
-
The body content accessor for each tooltip.
|
|
86
|
-
|
|
87
|
-
@example <caption>default accessor</caption>
|
|
88
|
-
function value(d) {
|
|
89
|
-
return d.body || "";
|
|
90
|
-
}
|
|
91
|
-
*/
|
|
92
|
-
body(): (d: DataPoint, i?: number) => DataPoint[keyof DataPoint];
|
|
93
|
-
body(_: ((d: DataPoint, i?: number) => DataPoint[keyof DataPoint]) | string): this;
|
|
94
41
|
/**
|
|
95
42
|
CSS styles applied to the body element.
|
|
96
|
-
|
|
97
|
-
@example <caption>default styles</caption>
|
|
98
|
-
{
|
|
99
|
-
"font-size": "12px",
|
|
100
|
-
"font-weight": "400"
|
|
101
|
-
}
|
|
102
43
|
*/
|
|
103
44
|
bodyStyle(): Record<string, string>;
|
|
104
45
|
bodyStyle(_: Record<string, string>): this;
|
|
105
46
|
/**
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
borderRadius(): (d: DataPoint, i?: number) => DataPoint[keyof DataPoint];
|
|
114
|
-
borderRadius(_: ((d: DataPoint, i?: number) => DataPoint[keyof DataPoint]) | string): this;
|
|
115
|
-
/**
|
|
116
|
-
The CSS class name applied to the tooltip container.
|
|
47
|
+
Parent element that scopes the tooltip's portal. Default (unset) uses
|
|
48
|
+
the global `<div id="d3plus-portal">` appended to `<body>`. When set,
|
|
49
|
+
tooltips mount inside a `.d3plus-tooltip-portal` child of the given
|
|
50
|
+
element instead — so multiple charts on a page don't fight over the
|
|
51
|
+
global portal, and tooltips destroy cleanly when the chart goes away.
|
|
52
|
+
|
|
53
|
+
Viz auto-sets this when rendering: chart.tooltipClass.parent(chart._select.node().parentNode).
|
|
117
54
|
*/
|
|
118
|
-
|
|
119
|
-
|
|
55
|
+
parent(): HTMLElement | undefined;
|
|
56
|
+
parent(_: HTMLElement | null | undefined): this;
|
|
120
57
|
/**
|
|
121
58
|
The data array used to create tooltips.
|
|
122
59
|
*/
|
|
123
60
|
data(): DataPoint[];
|
|
124
61
|
data(_: DataPoint[]): this;
|
|
125
|
-
/**
|
|
126
|
-
The footer content accessor for each tooltip.
|
|
127
|
-
|
|
128
|
-
@example <caption>default accessor</caption>
|
|
129
|
-
function value(d) {
|
|
130
|
-
return d.footer || "";
|
|
131
|
-
}
|
|
132
|
-
*/
|
|
133
|
-
footer(): (d: DataPoint, i?: number) => DataPoint[keyof DataPoint];
|
|
134
|
-
footer(_: ((d: DataPoint, i?: number) => DataPoint[keyof DataPoint]) | string): this;
|
|
135
62
|
/**
|
|
136
63
|
CSS styles applied to the footer element.
|
|
137
|
-
|
|
138
|
-
@example <caption>default styles</caption>
|
|
139
|
-
{
|
|
140
|
-
"font-size": "12px",
|
|
141
|
-
"font-weight": "400"
|
|
142
|
-
}
|
|
143
64
|
*/
|
|
144
65
|
footerStyle(): Record<string, string>;
|
|
145
66
|
footerStyle(_: Record<string, string>): this;
|
|
146
|
-
/**
|
|
147
|
-
The height accessor for each tooltip.
|
|
148
|
-
*/
|
|
149
|
-
height(): (d: DataPoint, i?: number) => DataPoint[keyof DataPoint];
|
|
150
|
-
height(_: ((d: DataPoint, i?: number) => DataPoint[keyof DataPoint]) | string): this;
|
|
151
|
-
/**
|
|
152
|
-
The unique id accessor for each tooltip.
|
|
153
|
-
|
|
154
|
-
@example <caption>default accessor</caption>
|
|
155
|
-
function value(d, i) {
|
|
156
|
-
return d.id || "" + i;
|
|
157
|
-
}
|
|
158
|
-
*/
|
|
159
|
-
id(): (d: DataPoint, i: number) => string;
|
|
160
|
-
id(_: ((d: DataPoint, i: number) => string) | string): this;
|
|
161
|
-
/**
|
|
162
|
-
The pixel offset between the tooltip and its anchor point.
|
|
163
|
-
*/
|
|
164
|
-
offset(): (d: DataPoint, i?: number) => DataPoint[keyof DataPoint];
|
|
165
|
-
offset(_: ((d: DataPoint, i?: number) => DataPoint[keyof DataPoint]) | number): this;
|
|
166
|
-
/**
|
|
167
|
-
The inner padding of each tooltip.
|
|
168
|
-
*/
|
|
169
|
-
padding(): (d: DataPoint, i?: number) => DataPoint[keyof DataPoint];
|
|
170
|
-
padding(_: ((d: DataPoint, i?: number) => DataPoint[keyof DataPoint]) | string): this;
|
|
171
|
-
/**
|
|
172
|
-
The pointer-events CSS property for each tooltip.
|
|
173
|
-
*/
|
|
174
|
-
pointerEvents(): (d: DataPoint, i?: number) => DataPoint[keyof DataPoint];
|
|
175
|
-
pointerEvents(_: ((d: DataPoint, i?: number) => DataPoint[keyof DataPoint]) | string): this;
|
|
176
67
|
/**
|
|
177
68
|
The position of each tooltip. Can be an HTMLElement to anchor to, a selection string, or coordinate points in reference to the client viewport (not the overall page).
|
|
178
69
|
|
|
@@ -185,82 +76,26 @@ export default class Tooltip extends BaseClass {
|
|
|
185
76
|
position(_: ((d: DataPoint, i?: number) => number[] | HTMLElement) | number[] | HTMLElement | string): this;
|
|
186
77
|
/**
|
|
187
78
|
CSS styles applied to the table element.
|
|
188
|
-
|
|
189
|
-
@example <caption>default styles</caption>
|
|
190
|
-
{
|
|
191
|
-
"border-collapse": "collapse",
|
|
192
|
-
"border-spacing": "0",
|
|
193
|
-
"width": "100%"
|
|
194
|
-
}
|
|
195
79
|
*/
|
|
196
80
|
tableStyle(): Record<string, string>;
|
|
197
81
|
tableStyle(_: Record<string, string>): this;
|
|
198
|
-
/**
|
|
199
|
-
The table body contents as an array of functions or strings.
|
|
200
|
-
*/
|
|
201
|
-
tbody(): unknown[];
|
|
202
|
-
tbody(_: unknown[]): this;
|
|
203
82
|
/**
|
|
204
83
|
CSS styles applied to the table body element.
|
|
205
|
-
|
|
206
|
-
@example <caption>default styles</caption>
|
|
207
|
-
{
|
|
208
|
-
"font-size": "12px",
|
|
209
|
-
"font-weight": "600",
|
|
210
|
-
"text-align": "center"
|
|
211
|
-
}
|
|
212
84
|
*/
|
|
213
85
|
tbodyStyle(): Record<string, string>;
|
|
214
86
|
tbodyStyle(_: Record<string, string>): this;
|
|
215
|
-
/**
|
|
216
|
-
The table head contents as an array of functions or strings.
|
|
217
|
-
*/
|
|
218
|
-
thead(): unknown[];
|
|
219
|
-
thead(_: unknown[]): this;
|
|
220
87
|
/**
|
|
221
88
|
CSS styles applied to the table head element.
|
|
222
|
-
|
|
223
|
-
@example <caption>default styles</caption>
|
|
224
|
-
{
|
|
225
|
-
"font-size": "12px",
|
|
226
|
-
"font-weight": "600",
|
|
227
|
-
"text-align": "center"
|
|
228
|
-
}
|
|
229
89
|
*/
|
|
230
90
|
theadStyle(): Record<string, string>;
|
|
231
91
|
theadStyle(_: Record<string, string>): this;
|
|
232
|
-
/**
|
|
233
|
-
The title content accessor for each tooltip.
|
|
234
|
-
|
|
235
|
-
@example <caption>default accessor</caption>
|
|
236
|
-
function value(d) {
|
|
237
|
-
return d.title || "";
|
|
238
|
-
}
|
|
239
|
-
*/
|
|
240
|
-
title(): (d: DataPoint, i?: number) => DataPoint[keyof DataPoint];
|
|
241
|
-
title(_: ((d: DataPoint, i?: number) => DataPoint[keyof DataPoint]) | string): this;
|
|
242
92
|
/**
|
|
243
93
|
CSS styles applied to the title element.
|
|
244
|
-
|
|
245
|
-
@example <caption>default styles</caption>
|
|
246
|
-
{
|
|
247
|
-
"font-size": "14px",
|
|
248
|
-
"font-weight": "600",
|
|
249
|
-
"padding-bottom": "5px"
|
|
250
|
-
}
|
|
251
94
|
*/
|
|
252
95
|
titleStyle(): Record<string, string>;
|
|
253
96
|
titleStyle(_: Record<string, string>): this;
|
|
254
97
|
/**
|
|
255
98
|
Overall CSS styles applied to the tooltip container.
|
|
256
|
-
|
|
257
|
-
@example <caption>default styles</caption>
|
|
258
|
-
{
|
|
259
|
-
"font-family": "'Inter', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif",
|
|
260
|
-
"font-size": "14px",
|
|
261
|
-
"font-weight": "600",
|
|
262
|
-
"padding-bottom": "5px"
|
|
263
|
-
}
|
|
264
99
|
*/
|
|
265
100
|
tooltipStyle(): Record<string, string>;
|
|
266
101
|
tooltipStyle(_: Record<string, string>): this;
|
|
@@ -279,19 +114,4 @@ export default class Tooltip extends BaseClass {
|
|
|
279
114
|
*/
|
|
280
115
|
tdStyle(): Record<string, string>;
|
|
281
116
|
tdStyle(_: Record<string, string>): this;
|
|
282
|
-
/**
|
|
283
|
-
The max-width accessor for each tooltip.
|
|
284
|
-
*/
|
|
285
|
-
maxWidth(): (d: DataPoint, i?: number) => DataPoint[keyof DataPoint];
|
|
286
|
-
maxWidth(_: ((d: DataPoint, i?: number) => DataPoint[keyof DataPoint]) | string): this;
|
|
287
|
-
/**
|
|
288
|
-
The min-width accessor for each tooltip.
|
|
289
|
-
*/
|
|
290
|
-
minWidth(): (d: DataPoint, i?: number) => DataPoint[keyof DataPoint];
|
|
291
|
-
minWidth(_: ((d: DataPoint, i?: number) => DataPoint[keyof DataPoint]) | string): this;
|
|
292
|
-
/**
|
|
293
|
-
The width accessor for each tooltip.
|
|
294
|
-
*/
|
|
295
|
-
width(): (d: DataPoint, i?: number) => DataPoint[keyof DataPoint];
|
|
296
|
-
width(_: ((d: DataPoint, i?: number) => DataPoint[keyof DataPoint]) | string): this;
|
|
297
117
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
Result of `measureAxis()`. Holds layout artifacts the paint phase of
|
|
3
|
+
`Axis.render()` (and any caller that wants to construct a paint loop)
|
|
4
|
+
needs to consume. Most layout state also mutates onto the input `axis`
|
|
5
|
+
(`_d3Scale`, `_outerBounds`, `_margin`, etc.) so instance methods and
|
|
6
|
+
callers reading those slots stay in sync.
|
|
7
|
+
*/
|
|
8
|
+
export interface AxisLayoutResult {
|
|
9
|
+
ticks: any[];
|
|
10
|
+
labels: any[];
|
|
11
|
+
range: number[];
|
|
12
|
+
textData: any[];
|
|
13
|
+
tickFormat: (d: any) => string;
|
|
14
|
+
hBuff: number;
|
|
15
|
+
wBuff: number;
|
|
16
|
+
tickGet: (d: any, i?: number) => any;
|
|
17
|
+
labelHeight: number;
|
|
18
|
+
bounds: Record<string, number>;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
The standalone axis layout pass. Accepts any object satisfying the
|
|
22
|
+
Axis-instance shape (the production `Axis` class is the canonical input).
|
|
23
|
+
Pure compute — no DOM, no rendering. Mutates the input to set
|
|
24
|
+
`_d3Scale`/`_outerBounds`/`_margin`/etc. for callers that read those off
|
|
25
|
+
the instance afterward.
|
|
26
|
+
*/
|
|
27
|
+
export declare function measureAxis(axis: any): AxisLayoutResult;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
interface LabelLayoutCtx {
|
|
2
|
+
horizontal: boolean;
|
|
3
|
+
hBuff: number;
|
|
4
|
+
p: number;
|
|
5
|
+
tickFormat: (d: any) => any;
|
|
6
|
+
}
|
|
7
|
+
/** Applies the axis title's wrapped height to the orient-side margin. */
|
|
8
|
+
export declare function applyTitleMargin(axis: any, ctx: {
|
|
9
|
+
range: any[];
|
|
10
|
+
p: number;
|
|
11
|
+
height: string;
|
|
12
|
+
margin: Record<string, number>;
|
|
13
|
+
}): void;
|
|
14
|
+
/** Resolves the tick height/width buffers from the shape config. */
|
|
15
|
+
export declare function computeBuffers(axis: any, ticks: any[], tickGet: any, height: string): {
|
|
16
|
+
hBuff: number;
|
|
17
|
+
wBuff: number;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
Measures every label, computes per-label space, sizes via `textWrap`, and
|
|
21
|
+
resolves truncation (and optional offset). Returns the `textData` array.
|
|
22
|
+
*/
|
|
23
|
+
export declare function createTextData(axis: any, ctx: LabelLayoutCtx & {
|
|
24
|
+
labels: any[];
|
|
25
|
+
rangeOuter: number[];
|
|
26
|
+
offset?: number;
|
|
27
|
+
}): any[];
|
|
28
|
+
/** Derives `_outerBounds` + axis margins from the measured text data. */
|
|
29
|
+
export declare function computeAxisBounds(axis: any, ctx: {
|
|
30
|
+
textData: any[];
|
|
31
|
+
rangeOuter: number[];
|
|
32
|
+
hBuff: number;
|
|
33
|
+
horizontal: boolean;
|
|
34
|
+
p: number;
|
|
35
|
+
width: string;
|
|
36
|
+
height: string;
|
|
37
|
+
x: string;
|
|
38
|
+
y: string;
|
|
39
|
+
opposite: string;
|
|
40
|
+
margin: Record<string, number>;
|
|
41
|
+
}): any;
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Builds the tick label formatter (user-supplied or scale-derived). */
|
|
2
|
+
export declare function buildTickFormat(axis: any, timeLocaleObj: any, getTicks: () => any[]): (d: any) => any;
|
|
3
|
+
/**
|
|
4
|
+
Builds the scale, applies rounding/log adjustments, resolves ticks/labels,
|
|
5
|
+
and filters colliding ticks. Mutates `axis` and returns the layout locals
|
|
6
|
+
the caller threads through the rest of `measureAxis`.
|
|
7
|
+
*/
|
|
8
|
+
export declare function setAxisScale(axis: any, rangeOuter: number[], tickGet: any, newRangeArg?: any): {
|
|
9
|
+
range: any[];
|
|
10
|
+
ticks: any[];
|
|
11
|
+
labels: any[];
|
|
12
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { GroupNode, Paint } from "@d3plus/render";
|
|
2
|
+
import type Axis from "./Axis.js";
|
|
3
|
+
export declare const isNegative: (d: number) => boolean;
|
|
4
|
+
/**
|
|
5
|
+
* Calculates ticks from a given scale (negative and/or positive)
|
|
6
|
+
* @param {scale} scale A d3-scale object
|
|
7
|
+
* @private
|
|
8
|
+
*/
|
|
9
|
+
export declare function calculateTicks(this: Axis, scale: any, minorTicks?: boolean): unknown[];
|
|
10
|
+
/** Laid-out artifacts produced by `measureAxis` that the paint phase consumes. */
|
|
11
|
+
export interface AxisMeasure {
|
|
12
|
+
ticks: unknown[];
|
|
13
|
+
labels: unknown[];
|
|
14
|
+
range: number[];
|
|
15
|
+
textData: any[];
|
|
16
|
+
tickFormat: (d: unknown) => string;
|
|
17
|
+
hBuff: number;
|
|
18
|
+
labelHeight: number;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
Builds the per-tick config array consumed by the tick Shape. Extracted from
|
|
22
|
+
`Axis.render` so the render method stays under the per-function line budget;
|
|
23
|
+
behavior is identical.
|
|
24
|
+
@private
|
|
25
|
+
*/
|
|
26
|
+
export declare function buildTickData(axis: Axis, measure: AxisMeasure): any[];
|
|
27
|
+
/**
|
|
28
|
+
Instantiates and renders the compute-mode tick Shape from `tickData`.
|
|
29
|
+
Extracted from `Axis.render`; behavior is identical.
|
|
30
|
+
@private
|
|
31
|
+
*/
|
|
32
|
+
export declare function configureTickShape(axis: Axis, tickData: any[]): void;
|
|
33
|
+
/**
|
|
34
|
+
Renders the axis title TextBox in compute mode. Extracted from
|
|
35
|
+
`Axis.render`; behavior is identical.
|
|
36
|
+
@private
|
|
37
|
+
*/
|
|
38
|
+
export declare function renderAxisTitle(axis: Axis, measure: AxisMeasure, group: any): void;
|
|
39
|
+
/**
|
|
40
|
+
Converts an attribute-style config (e.g. gridConfig, barConfig) into a Paint.
|
|
41
|
+
@private
|
|
42
|
+
*/
|
|
43
|
+
export declare function configToPaint(axis: Axis, cfg: Record<string, unknown>, datum?: unknown, index?: number): Paint;
|
|
44
|
+
/**
|
|
45
|
+
Replicates _gridPosition's math to compute each gridline's endpoints in the
|
|
46
|
+
axis's internal coordinate space.
|
|
47
|
+
@private
|
|
48
|
+
*/
|
|
49
|
+
export declare function gridLinePoints(axis: Axis): {
|
|
50
|
+
points: [number, number][];
|
|
51
|
+
}[];
|
|
52
|
+
/**
|
|
53
|
+
Replicates _barPosition's math to compute the domain-bar endpoints.
|
|
54
|
+
@private
|
|
55
|
+
*/
|
|
56
|
+
export declare function barLinePoints(axis: Axis): {
|
|
57
|
+
points: [number, number][];
|
|
58
|
+
} | null;
|
|
59
|
+
/**
|
|
60
|
+
Produces a backend-agnostic scene graph for the axis with no DOM dependency:
|
|
61
|
+
gridlines + domain bar emitted natively, tick marks/labels composed from the
|
|
62
|
+
tick Shape's toScene(), and the title from the title TextBox's toScene().
|
|
63
|
+
@private
|
|
64
|
+
*/
|
|
65
|
+
export declare function axisToScene(axis: Axis): GroupNode;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { D3Selection } from "@d3plus/dom";
|
|
2
|
+
import type ColorScale from "./ColorScale.js";
|
|
3
|
+
import type { ColorScaleCompute } from "./colorScaleScale.js";
|
|
4
|
+
/** Shared <g> groups and transition params created by ColorScale.render. */
|
|
5
|
+
export interface ColorScaleGroups {
|
|
6
|
+
labelGroup: D3Selection;
|
|
7
|
+
rectGroup: D3Selection;
|
|
8
|
+
legendGroup: D3Selection;
|
|
9
|
+
groupParams: Record<string, unknown>;
|
|
10
|
+
gradient: boolean;
|
|
11
|
+
}
|
|
12
|
+
/** Renders the smooth-gradient (and bucketed-rect) ColorScale variant. */
|
|
13
|
+
export declare function renderGradient(cs: ColorScale, compute: ColorScaleCompute, groups: ColorScaleGroups): void;
|
|
14
|
+
/** Renders the discrete legend ColorScale variant (jenks/buckets/quantile). */
|
|
15
|
+
export declare function renderLegendVariant(cs: ColorScale, compute: ColorScaleCompute, groups: ColorScaleGroups): void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type ColorScale from "./ColorScale.js";
|
|
2
|
+
/** Computed values shared between the scale solve and the render branches. */
|
|
3
|
+
export interface ColorScaleCompute {
|
|
4
|
+
allValues: number[];
|
|
5
|
+
domain: number[];
|
|
6
|
+
ticks: number[] | undefined;
|
|
7
|
+
labels: number[] | undefined;
|
|
8
|
+
colors: any;
|
|
9
|
+
horizontal: boolean;
|
|
10
|
+
height: string;
|
|
11
|
+
width: string;
|
|
12
|
+
x: string;
|
|
13
|
+
y: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
Solves the color scale (jenks or linear) for the current ColorScale config,
|
|
17
|
+
assigning `_colorScale` and returning the values the render branches need.
|
|
18
|
+
*/
|
|
19
|
+
export declare function computeColorScale(cs: ColorScale): ColorScaleCompute;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { default as Axis } from "./Axis.js";
|
|
2
|
-
export { default as AxisBottom } from "./AxisBottom.js";
|
|
3
|
-
export { default as AxisLeft } from "./AxisLeft.js";
|
|
4
|
-
export { default as AxisRight } from "./AxisRight.js";
|
|
5
|
-
export { default as AxisTop } from "./AxisTop.js";
|
|
6
|
-
export { default as ColorScale } from "./ColorScale.js";
|
|
7
|
-
export { default as Legend } from "./Legend.js";
|
|
1
|
+
export { default as Axis } from "./Axis/Axis.js";
|
|
2
|
+
export { default as AxisBottom } from "./Axis/AxisBottom.js";
|
|
3
|
+
export { default as AxisLeft } from "./Axis/AxisLeft.js";
|
|
4
|
+
export { default as AxisRight } from "./Axis/AxisRight.js";
|
|
5
|
+
export { default as AxisTop } from "./Axis/AxisTop.js";
|
|
6
|
+
export { default as ColorScale } from "./ColorScale/ColorScale.js";
|
|
7
|
+
export { default as Legend } from "./Legend/Legend.js";
|
|
8
8
|
export { default as Message } from "./Message.js";
|
|
9
9
|
export { default as TextBox } from "./TextBox.js";
|
|
10
|
-
export { default as Timeline } from "./Timeline.js";
|
|
10
|
+
export { default as Timeline } from "./Timeline/Timeline.js";
|
|
11
11
|
export { default as Tooltip } from "./Tooltip.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type Legend from "./Legend.js";
|
|
2
|
+
/**
|
|
3
|
+
Builds the Legend's default `shapeConfig` object. The accessors close over
|
|
4
|
+
the `legend` instance so they read live `_lineData` / `_outerBounds` /
|
|
5
|
+
`_rtl` / `_titleHeight` state during render.
|
|
6
|
+
*/
|
|
7
|
+
export declare function buildLegendShapeConfig(legend: Legend): Record<string, unknown>;
|