@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,153 @@
|
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
2
|
+
if (self === void 0) {
|
|
3
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
+
}
|
|
5
|
+
return self;
|
|
6
|
+
}
|
|
7
|
+
function _call_super(_this, derived, args) {
|
|
8
|
+
derived = _get_prototype_of(derived);
|
|
9
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
+
}
|
|
11
|
+
function _class_call_check(instance, Constructor) {
|
|
12
|
+
if (!(instance instanceof Constructor)) {
|
|
13
|
+
throw new TypeError("Cannot call a class as a function");
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function _defineProperties(target, props) {
|
|
17
|
+
for(var i = 0; i < props.length; i++){
|
|
18
|
+
var descriptor = props[i];
|
|
19
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
20
|
+
descriptor.configurable = true;
|
|
21
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
22
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
26
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
27
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
28
|
+
return Constructor;
|
|
29
|
+
}
|
|
30
|
+
function _get(target, property, receiver) {
|
|
31
|
+
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
32
|
+
_get = Reflect.get;
|
|
33
|
+
} else {
|
|
34
|
+
_get = function get(target, property, receiver) {
|
|
35
|
+
var base = _super_prop_base(target, property);
|
|
36
|
+
if (!base) return;
|
|
37
|
+
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
38
|
+
if (desc.get) {
|
|
39
|
+
return desc.get.call(receiver || target);
|
|
40
|
+
}
|
|
41
|
+
return desc.value;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
return _get(target, property, receiver || target);
|
|
45
|
+
}
|
|
46
|
+
function _get_prototype_of(o) {
|
|
47
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
48
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
49
|
+
};
|
|
50
|
+
return _get_prototype_of(o);
|
|
51
|
+
}
|
|
52
|
+
function _inherits(subClass, superClass) {
|
|
53
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
54
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
55
|
+
}
|
|
56
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
57
|
+
constructor: {
|
|
58
|
+
value: subClass,
|
|
59
|
+
writable: true,
|
|
60
|
+
configurable: true
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
64
|
+
}
|
|
65
|
+
function _possible_constructor_return(self, call) {
|
|
66
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
67
|
+
return call;
|
|
68
|
+
}
|
|
69
|
+
return _assert_this_initialized(self);
|
|
70
|
+
}
|
|
71
|
+
function _set_prototype_of(o, p) {
|
|
72
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
73
|
+
o.__proto__ = p;
|
|
74
|
+
return o;
|
|
75
|
+
};
|
|
76
|
+
return _set_prototype_of(o, p);
|
|
77
|
+
}
|
|
78
|
+
function _super_prop_base(object, property) {
|
|
79
|
+
while(!Object.prototype.hasOwnProperty.call(object, property)){
|
|
80
|
+
object = _get_prototype_of(object);
|
|
81
|
+
if (object === null) break;
|
|
82
|
+
}
|
|
83
|
+
return object;
|
|
84
|
+
}
|
|
85
|
+
function _type_of(obj) {
|
|
86
|
+
"@swc/helpers - typeof";
|
|
87
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
88
|
+
}
|
|
89
|
+
function _is_native_reflect_construct() {
|
|
90
|
+
try {
|
|
91
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
92
|
+
} catch (_) {}
|
|
93
|
+
return (_is_native_reflect_construct = function() {
|
|
94
|
+
return !!result;
|
|
95
|
+
})();
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
`makeChart(def)` — produce a Viz-extending chart class from a
|
|
99
|
+
ChartDefinition value.
|
|
100
|
+
|
|
101
|
+
The class is identical for every chart: its constructor runs
|
|
102
|
+
`applyDefinition(this, def)`, its `_draw` runs the shared Viz pipeline
|
|
103
|
+
then the chart's own layout stage via `runChartDraw`, and its
|
|
104
|
+
`_thresholdFunction` delegates to `def.thresholdFunction` if present.
|
|
105
|
+
|
|
106
|
+
A chart's `index.ts` becomes literally `export default makeChart(def)`.
|
|
107
|
+
*/ import { applyDefinition } from "./applyDefinition.js";
|
|
108
|
+
import { runChartDraw } from "../pipeline/runChartDraw.js";
|
|
109
|
+
import Viz from "../viz/Viz.js";
|
|
110
|
+
/**
|
|
111
|
+
`makeChart(def, Base?)` — produce a chart class from a def value.
|
|
112
|
+
|
|
113
|
+
`Base` defaults to `Viz`; pass an existing chart class to inherit a
|
|
114
|
+
specialization (e.g. `makeChart(donutDef, Pie)` for Donut).
|
|
115
|
+
*/ export function makeChart(def) {
|
|
116
|
+
var Base = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Viz;
|
|
117
|
+
var Chart = /*#__PURE__*/ function(Base) {
|
|
118
|
+
"use strict";
|
|
119
|
+
_inherits(Chart, Base);
|
|
120
|
+
function Chart() {
|
|
121
|
+
_class_call_check(this, Chart);
|
|
122
|
+
var _this;
|
|
123
|
+
_this = _call_super(this, Chart);
|
|
124
|
+
applyDefinition(_this, def);
|
|
125
|
+
return _this;
|
|
126
|
+
}
|
|
127
|
+
_create_class(Chart, [
|
|
128
|
+
{
|
|
129
|
+
key: "_draw",
|
|
130
|
+
value: function _draw(callback) {
|
|
131
|
+
_get(_get_prototype_of(Chart.prototype), "_draw", this).call(this, callback);
|
|
132
|
+
if (def.layoutStage) {
|
|
133
|
+
runChartDraw(this, def, def.layoutStage, def.chartTransform);
|
|
134
|
+
}
|
|
135
|
+
return this;
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
key: "_thresholdFunction",
|
|
140
|
+
value: function _thresholdFunction(data) {
|
|
141
|
+
return def.thresholdFunction ? def.thresholdFunction(this, data) : data;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
]);
|
|
145
|
+
return Chart;
|
|
146
|
+
}(Base);
|
|
147
|
+
Object.defineProperty(Chart, "name", {
|
|
148
|
+
value: def.name
|
|
149
|
+
});
|
|
150
|
+
return Chart;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
//# sourceMappingURL=makeChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/charts/definition/makeChart.ts"],"sourcesContent":["/**\n `makeChart(def)` — produce a Viz-extending chart class from a\n ChartDefinition value.\n\n The class is identical for every chart: its constructor runs\n `applyDefinition(this, def)`, its `_draw` runs the shared Viz pipeline\n then the chart's own layout stage via `runChartDraw`, and its\n `_thresholdFunction` delegates to `def.thresholdFunction` if present.\n\n A chart's `index.ts` becomes literally `export default makeChart(def)`.\n*/\n\nimport {applyDefinition} from \"./applyDefinition.js\";\nimport {runChartDraw} from \"../pipeline/runChartDraw.js\";\nimport Viz from \"../viz/Viz.js\";\nimport type {ChartDefinition} from \"./ChartDefinition.js\";\nimport type {VizInstance} from \"../viz/vizTypes.js\";\n\n// The generated chart class extends a runtime-chosen base and overrides\n// `_draw`/`_thresholdFunction` with looser signatures, which a concrete\n// `new () => VizInstance` constructor type can't express; `any` is the factory\n// escape hatch (call sites still get the real `Viz` API via the class itself).\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype AnyViz = any;\ntype VizCtor = new () => AnyViz;\n\n/**\n `makeChart(def, Base?)` — produce a chart class from a def value.\n\n `Base` defaults to `Viz`; pass an existing chart class to inherit a\n specialization (e.g. `makeChart(donutDef, Pie)` for Donut).\n*/\nexport function makeChart(def: ChartDefinition, Base: VizCtor = Viz): VizCtor {\n class Chart extends (Base as VizCtor) {\n constructor() {\n super();\n applyDefinition(this as unknown as VizInstance, def);\n }\n\n _draw(callback?: () => void) {\n (super._draw as (...args: unknown[]) => unknown)(callback);\n if (def.layoutStage) {\n runChartDraw(this as unknown as VizInstance, def, def.layoutStage, def.chartTransform);\n }\n return this;\n }\n\n _thresholdFunction(data: unknown[]) {\n return def.thresholdFunction\n ? def.thresholdFunction(this as unknown as VizInstance, data)\n : data;\n }\n }\n Object.defineProperty(Chart, \"name\", {value: def.name});\n return Chart;\n}\n"],"names":["applyDefinition","runChartDraw","Viz","makeChart","def","Base","Chart","_draw","callback","layoutStage","chartTransform","_thresholdFunction","data","thresholdFunction","Object","defineProperty","value","name"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;AAUA,GAEA,SAAQA,eAAe,QAAO,uBAAuB;AACrD,SAAQC,YAAY,QAAO,8BAA8B;AACzD,OAAOC,SAAS,gBAAgB;AAYhC;;;;;AAKA,GACA,OAAO,SAASC,UAAUC,GAAoB;QAAEC,OAAAA,iEAAgBH;IAC9D,IAAA,AAAMI,sBAAN;;kBAAMA;iBAAAA;oCAAAA;;oBAEF,kBAFEA;YAGFN,uBAAgDI;;;sBAH9CE;;gBAMJC,KAAAA;uBAAAA,SAAAA,MAAMC,QAAqB;oBACxB,uBAPCF,kBAOKC,SAAN,IAAK,aAA2CC;oBACjD,IAAIJ,IAAIK,WAAW,EAAE;wBACnBR,aAAa,IAAI,EAA4BG,KAAKA,IAAIK,WAAW,EAAEL,IAAIM,cAAc;oBACvF;oBACA,OAAO,IAAI;gBACb;;;gBAEAC,KAAAA;uBAAAA,SAAAA,mBAAmBC,IAAe;oBAChC,OAAOR,IAAIS,iBAAiB,GACxBT,IAAIS,iBAAiB,CAAC,IAAI,EAA4BD,QACtDA;gBACN;;;eAlBIN;MAAeD;IAoBrBS,OAAOC,cAAc,CAACT,OAAO,QAAQ;QAACU,OAAOZ,IAAIa,IAAI;IAAA;IACrD,OAAOX;AACT"}
|
|
@@ -36,6 +36,10 @@ function _non_iterable_rest() {
|
|
|
36
36
|
function _sliced_to_array(arr, i) {
|
|
37
37
|
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
38
38
|
}
|
|
39
|
+
function _type_of(obj) {
|
|
40
|
+
"@swc/helpers - typeof";
|
|
41
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
42
|
+
}
|
|
39
43
|
function _unsupported_iterable_to_array(o, minLen) {
|
|
40
44
|
if (!o) return;
|
|
41
45
|
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
@@ -44,104 +48,206 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
44
48
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
45
49
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
46
50
|
}
|
|
47
|
-
import { select } from "d3-selection";
|
|
48
51
|
import { zoomTransform } from "d3-zoom";
|
|
49
|
-
import { attrize
|
|
50
|
-
|
|
52
|
+
import { attrize } from "@d3plus/dom";
|
|
53
|
+
import { chartBounds } from "../features/chartGeometry.js";
|
|
51
54
|
/**
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
0,
|
|
74
|
-
0
|
|
75
|
-
],
|
|
76
|
-
[
|
|
77
|
-
width,
|
|
78
|
-
height
|
|
79
|
-
]
|
|
80
|
-
]).on("zoom", function(event) {
|
|
81
|
-
return zoomed.bind(_this)(event.transform);
|
|
82
|
-
});
|
|
83
|
-
this._zoomToBounds = zoomToBounds.bind(this);
|
|
84
|
-
var control = select(this._select.node().parentNode).selectAll("div.d3plus-zoom-control").data(this._zoom ? [
|
|
85
|
-
0
|
|
86
|
-
] : []);
|
|
87
|
-
var controlEnter = control.enter().append("div").attr("class", "d3plus-zoom-control");
|
|
88
|
-
control.exit().remove();
|
|
89
|
-
control = control.merge(controlEnter).style("position", "absolute").style("top", "".concat(this._margin.top, "px")).style("left", "".concat(this._margin.left, "px"));
|
|
90
|
-
controlEnter.append("div").attr("class", "zoom-control zoom-in");
|
|
91
|
-
control.select(".zoom-in").on("click", zoomMath.bind(this, this._zoomFactor)).html("+");
|
|
92
|
-
controlEnter.append("div").attr("class", "zoom-control zoom-out");
|
|
93
|
-
control.select(".zoom-out").on("click", zoomMath.bind(this, 1 / this._zoomFactor)).html("-");
|
|
94
|
-
controlEnter.append("div").attr("class", "zoom-control zoom-reset");
|
|
95
|
-
control.select(".zoom-reset").on("click", zoomMath.bind(this, 0)).html("↺");
|
|
96
|
-
controlEnter.append("div").attr("class", "zoom-control zoom-brush");
|
|
97
|
-
control.select(".zoom-brush").on("click", function(_event) {
|
|
98
|
-
select(_event.currentTarget).classed("active", !brushing).call(stylize, brushing ? that._zoomControlStyle || {} : that._zoomControlStyleActive || {});
|
|
99
|
-
zoomEvents.bind(that)(!brushing);
|
|
100
|
-
}).html("¤");
|
|
101
|
-
control.selectAll(".zoom-control").call(stylize, that._zoomControlStyle).on("mouseenter", function(_event) {
|
|
102
|
-
select(_event.currentTarget).call(stylize, that._zoomControlStyleHover || {});
|
|
103
|
-
}).on("mouseleave", function(_event) {
|
|
104
|
-
var el = select(_event.currentTarget);
|
|
105
|
-
el.call(stylize, el.classed("active") ? that._zoomControlStyleActive || {} : that._zoomControlStyle || {});
|
|
106
|
-
});
|
|
107
|
-
this._zoomBrush.extent([
|
|
108
|
-
[
|
|
109
|
-
0,
|
|
110
|
-
0
|
|
111
|
-
],
|
|
112
|
-
[
|
|
113
|
-
width,
|
|
114
|
-
height
|
|
115
|
-
]
|
|
116
|
-
]).filter(function(event) {
|
|
117
|
-
return !event.button && event.detail < 2;
|
|
118
|
-
}).handleSize(this._zoomBrushHandleSize).on("start", brushStart.bind(this)).on("brush", brushBrush.bind(this)).on("end", brushEnd.bind(this));
|
|
119
|
-
var brushGroup = this._container.selectAll("g.brush").data([
|
|
120
|
-
0
|
|
121
|
-
]);
|
|
122
|
-
this._brushGroup = brushGroup.enter().append("g").attr("class", "brush").merge(brushGroup).call(this._zoomBrush);
|
|
123
|
-
zoomEvents.bind(this)();
|
|
124
|
-
if (this._renderTiles) this._renderTiles(zoomTransform(this._container.node()), 0);
|
|
55
|
+
Brush mode is per-chart, not global. Previously a module-level
|
|
56
|
+
`let brushing = false` was shared across all chart instances on the
|
|
57
|
+
page — toggling brush on chart A silently flipped chart B's state.
|
|
58
|
+
Now lives on `viz._brushing` and is read/written via helpers.
|
|
59
|
+
*/ function isBrushing(viz) {
|
|
60
|
+
return Boolean(viz._brushing);
|
|
61
|
+
}
|
|
62
|
+
function setBrushing(viz, value) {
|
|
63
|
+
viz._brushing = value;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
Apply a plain key/value style object to a real DOM element. v4 uses
|
|
67
|
+
HtmlOverlay nodes for the zoom-control buttons, so the d3-selection
|
|
68
|
+
`stylize` helper isn't reachable from the scene-graph escape hook.
|
|
69
|
+
*/ function applyStyleObj(el, styles) {
|
|
70
|
+
if (!styles) return;
|
|
71
|
+
for(var k in styles){
|
|
72
|
+
var v = styles[k];
|
|
73
|
+
if (v === undefined || v === null || v === false) continue;
|
|
74
|
+
el.style[k] = String(v);
|
|
75
|
+
}
|
|
125
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
@name zoomFeature
|
|
79
|
+
Sets up zoom + brush event behaviors and the zoom-control buttons.
|
|
80
|
+
|
|
81
|
+
Runs as a post-draw `FeatureModule`: `runVizPipeline` invokes it via
|
|
82
|
+
`runLayout` *after* `_draw()` has rendered the chart body and
|
|
83
|
+
`ensureZoomDom` has mounted `viz._container` / `viz._zoomGroup`. It
|
|
84
|
+
claims zero margin (positioning itself inside the existing
|
|
85
|
+
`viz._margin`) and emits no layout panel — instead it does two things
|
|
86
|
+
the margin-negotiation features don't:
|
|
87
|
+
|
|
88
|
+
1. Installs stateful D3 zoom + brush behaviors (`viz._zoomBehavior`,
|
|
89
|
+
`viz._zoomBrush`) and wires `viz._zoomToBounds`. d3-zoom binds to
|
|
90
|
+
the SVG element directly via `viz._container.call(zoomBehavior)`.
|
|
91
|
+
2. Returns the four control buttons (in/out/reset/brush) as an
|
|
92
|
+
`htmlOverlay` scene-node panel; `runVizPipeline` appends it to
|
|
93
|
+
`viz._featurePanels`. `onMount` is
|
|
94
|
+
the scene's interactive-HTML escape hook: it wires the click/hover
|
|
95
|
+
handlers + applies the user's zoomControl style configs. `onMount`
|
|
96
|
+
fires ONCE per host element (after innerHTML is written, so the
|
|
97
|
+
`.zoom-in` / `.zoom-out` querySelectors below resolve), not per
|
|
98
|
+
draw — the html string is constant, so listeners attached here
|
|
99
|
+
survive every subsequent draw (renderers only rewrite innerHTML
|
|
100
|
+
when it differs from the current value).
|
|
101
|
+
*/ export var zoomFeature = {
|
|
102
|
+
name: "zoom",
|
|
103
|
+
layout: function layout(param) {
|
|
104
|
+
var viz = param.viz;
|
|
105
|
+
if (!viz._container || !viz._zoomGroup) return {
|
|
106
|
+
panel: null,
|
|
107
|
+
margin: {}
|
|
108
|
+
};
|
|
109
|
+
var bounds = chartBounds(viz);
|
|
110
|
+
var height = viz._zoomHeight || bounds.height, that = viz, width = viz._zoomWidth || bounds.width;
|
|
111
|
+
viz._zoomBehavior.extent([
|
|
112
|
+
[
|
|
113
|
+
0,
|
|
114
|
+
0
|
|
115
|
+
],
|
|
116
|
+
[
|
|
117
|
+
width,
|
|
118
|
+
height
|
|
119
|
+
]
|
|
120
|
+
]).scaleExtent([
|
|
121
|
+
1,
|
|
122
|
+
viz.schema.zoomMax
|
|
123
|
+
]).translateExtent([
|
|
124
|
+
[
|
|
125
|
+
0,
|
|
126
|
+
0
|
|
127
|
+
],
|
|
128
|
+
[
|
|
129
|
+
width,
|
|
130
|
+
height
|
|
131
|
+
]
|
|
132
|
+
]).on("zoom", function(event) {
|
|
133
|
+
return zoomed.bind(viz)(event.transform);
|
|
134
|
+
});
|
|
135
|
+
viz._zoomToBounds = zoomToBounds.bind(viz);
|
|
136
|
+
var panel = null;
|
|
137
|
+
if (viz.schema.zoom) {
|
|
138
|
+
panel = {
|
|
139
|
+
type: "htmlOverlay",
|
|
140
|
+
key: "viz-zoom-controls",
|
|
141
|
+
x: viz._margin.left,
|
|
142
|
+
y: viz._margin.top,
|
|
143
|
+
className: "d3plus-zoom-control",
|
|
144
|
+
html: '<div class="zoom-control zoom-in">+</div>' + '<div class="zoom-control zoom-out">-</div>' + '<div class="zoom-control zoom-reset">↺</div>' + '<div class="zoom-control zoom-brush">¤</div>',
|
|
145
|
+
// Declarative click wiring — clicks bubble, so the renderer's
|
|
146
|
+
// delegated dispatcher can route them by selector. The four
|
|
147
|
+
// handlers below are the single source of truth for what each
|
|
148
|
+
// zoom button does. Hover styles can't be delegated (mouseenter
|
|
149
|
+
// / mouseleave don't bubble), so they live in onMount below as
|
|
150
|
+
// a per-button binding.
|
|
151
|
+
events: {
|
|
152
|
+
".zoom-in": {
|
|
153
|
+
click: function click() {
|
|
154
|
+
return zoomMath.bind(that)(that.schema.zoomFactor);
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
".zoom-out": {
|
|
158
|
+
click: function click() {
|
|
159
|
+
return zoomMath.bind(that)(1 / that.schema.zoomFactor);
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
".zoom-reset": {
|
|
163
|
+
click: function click() {
|
|
164
|
+
return zoomMath.bind(that)(0);
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
".zoom-brush": {
|
|
168
|
+
click: function click(e) {
|
|
169
|
+
// The overlay dispatches clicks via delegation, so `e.currentTarget`
|
|
170
|
+
// is the host wrapper that encloses all four buttons — not the
|
|
171
|
+
// clicked button. Styling/toggling the wrapper would paint the
|
|
172
|
+
// active background around the whole control stack and offset it by
|
|
173
|
+
// the base margin/border. Resolve the actual button from the event
|
|
174
|
+
// target, the same way the dispatcher matches (`target.closest`).
|
|
175
|
+
var btn = e.target.closest(".zoom-brush");
|
|
176
|
+
if (!btn) return;
|
|
177
|
+
var willBrush = !isBrushing(that);
|
|
178
|
+
var isActive = btn.classList.toggle("active", willBrush);
|
|
179
|
+
applyStyleObj(btn, isActive ? that.schema.zoomControlStyleActive || {} : that.schema.zoomControlStyle || {});
|
|
180
|
+
zoomEvents.bind(that)(willBrush);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
// onMount fires AFTER innerHTML is written so the querySelectorAll
|
|
185
|
+
// matches. Applies base styles + binds non-delegable hover events
|
|
186
|
+
// per button (mouseenter/mouseleave don't bubble through
|
|
187
|
+
// delegated event listeners).
|
|
188
|
+
onMount: function onMount(host) {
|
|
189
|
+
var buttons = host.querySelectorAll(".zoom-control");
|
|
190
|
+
buttons.forEach(function(btn) {
|
|
191
|
+
applyStyleObj(btn, that.schema.zoomControlStyle || {});
|
|
192
|
+
btn.addEventListener("mouseenter", function() {
|
|
193
|
+
applyStyleObj(btn, that.schema.zoomControlStyleHover || {});
|
|
194
|
+
});
|
|
195
|
+
btn.addEventListener("mouseleave", function() {
|
|
196
|
+
applyStyleObj(btn, btn.classList.contains("active") ? that.schema.zoomControlStyleActive || {} : that.schema.zoomControlStyle || {});
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
viz._zoomBrush.extent([
|
|
203
|
+
[
|
|
204
|
+
0,
|
|
205
|
+
0
|
|
206
|
+
],
|
|
207
|
+
[
|
|
208
|
+
width,
|
|
209
|
+
height
|
|
210
|
+
]
|
|
211
|
+
]).filter(function(event) {
|
|
212
|
+
return !event.button && event.detail < 2;
|
|
213
|
+
}).handleSize(viz.schema.zoomBrushHandleSize).on("start", brushStart.bind(viz)).on("brush", brushBrush.bind(viz)).on("end", brushEnd.bind(viz));
|
|
214
|
+
var brushGroup = viz._container.selectAll("g.brush").data([
|
|
215
|
+
0
|
|
216
|
+
]);
|
|
217
|
+
viz._brushGroup = brushGroup.enter().append("g").attr("class", "brush").merge(brushGroup).call(viz._zoomBrush);
|
|
218
|
+
zoomEvents.bind(viz)();
|
|
219
|
+
if (viz._renderTiles) viz._renderTiles(zoomTransform((viz._zoomEventTarget || viz._container).node()), 0);
|
|
220
|
+
return {
|
|
221
|
+
panel: panel,
|
|
222
|
+
margin: {}
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
};
|
|
126
226
|
/**
|
|
127
227
|
@name zoomEvents
|
|
128
228
|
Handles adding/removing zoom event listeners.
|
|
129
229
|
@private
|
|
130
230
|
*/ function zoomEvents() {
|
|
131
231
|
var brush = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
|
|
132
|
-
|
|
133
|
-
if (
|
|
232
|
+
setBrushing(this, brush);
|
|
233
|
+
if (brush) this._brushGroup.style("display", "inline");
|
|
134
234
|
else this._brushGroup.style("display", "none");
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
235
|
+
// The element d3-zoom binds its pointer listeners to. Defaults to the compute
|
|
236
|
+
// `<svg>` container; on the Canvas backend it's the <canvas> (see
|
|
237
|
+
// `bindCanvasZoom`), because the canvas is the interaction surface there —
|
|
238
|
+
// the svg is made pointer-events:none so hover events reach the canvas for
|
|
239
|
+
// tooltip picking.
|
|
240
|
+
var tgt = this._zoomEventTarget || this._container;
|
|
241
|
+
if (!brush && this.schema.zoom) {
|
|
242
|
+
tgt.call(this._zoomBehavior);
|
|
243
|
+
if (!this.schema.zoomScroll) {
|
|
244
|
+
tgt.on("wheel.zoom", null);
|
|
139
245
|
}
|
|
140
|
-
if (!this.
|
|
141
|
-
|
|
246
|
+
if (!this.schema.zoomPan) {
|
|
247
|
+
tgt.on("mousedown.zoom mousemove.zoom", null).on("touchstart.zoom touchmove.zoom touchend.zoom touchcancel.zoom", null);
|
|
142
248
|
}
|
|
143
249
|
} else {
|
|
144
|
-
|
|
250
|
+
tgt.on(".zoom", null);
|
|
145
251
|
}
|
|
146
252
|
}
|
|
147
253
|
/**
|
|
@@ -155,7 +261,36 @@ var brushing = false;
|
|
|
155
261
|
if (!duration) this._zoomGroup.attr("transform", transform);
|
|
156
262
|
else this._zoomGroup.transition().duration(duration).attr("transform", transform);
|
|
157
263
|
}
|
|
158
|
-
|
|
264
|
+
// Thread the zoom transform into the scene graph so Network/Geomap
|
|
265
|
+
// pan/zoom shows up under the scene renderer. The
|
|
266
|
+
// `_zoomGroup.attr("transform", …)` write above remains for tests and
|
|
267
|
+
// consumers reading the SVG directly; the scene-side update below is
|
|
268
|
+
// what users see.
|
|
269
|
+
var t = transform;
|
|
270
|
+
if (t && (typeof t === "undefined" ? "undefined" : _type_of(t)) === "object" && "k" in t) {
|
|
271
|
+
var _t_x, _t_y, _t_k;
|
|
272
|
+
// Nullish-coalesce rather than `||` so a legitimate zero (a deliberate
|
|
273
|
+
// collapse-to-zero scale, or pan transform at origin) doesn't get
|
|
274
|
+
// silently rewritten to the default.
|
|
275
|
+
this._zoomTransform = {
|
|
276
|
+
x: (_t_x = t.x) !== null && _t_x !== void 0 ? _t_x : 0,
|
|
277
|
+
y: (_t_y = t.y) !== null && _t_y !== void 0 ? _t_y : 0,
|
|
278
|
+
scale: (_t_k = t.k) !== null && _t_k !== void 0 ? _t_k : 1
|
|
279
|
+
};
|
|
280
|
+
} else if (t === false) {
|
|
281
|
+
this._zoomTransform = undefined;
|
|
282
|
+
}
|
|
283
|
+
// Repaint the scene so the new transform takes effect. Pass the
|
|
284
|
+
// caller's `duration` through — d3-zoom dispatches `"zoom"` events
|
|
285
|
+
// with duration=0 (per pixel of pan/wheel), so we MUST NOT use the
|
|
286
|
+
// chart-level `_duration` (default 600 ms) for those: it would queue
|
|
287
|
+
// a 600 ms transition per event, causing visible lag + setTimeout
|
|
288
|
+
// accumulation. Programmatic zooms (zoomMath, zoomToBounds) pass an
|
|
289
|
+
// explicit duration when they want animation.
|
|
290
|
+
if (this._drawSceneToTarget && this._sceneRenderer) {
|
|
291
|
+
this._drawSceneToTarget(duration);
|
|
292
|
+
}
|
|
293
|
+
if (this._renderTiles) this._renderTiles(zoomTransform((this._zoomEventTarget || this._container).node()), duration);
|
|
159
294
|
}
|
|
160
295
|
/**
|
|
161
296
|
@name zoomMath
|
|
@@ -166,7 +301,7 @@ var brushing = false;
|
|
|
166
301
|
if (!this._container) return;
|
|
167
302
|
var center = this._zoomBehavior.extent().bind(document)()[1].map(function(d) {
|
|
168
303
|
return d / 2;
|
|
169
|
-
}), scaleExtent = this._zoomBehavior.scaleExtent(), t = zoomTransform(this._container.node());
|
|
304
|
+
}), scaleExtent = this._zoomBehavior.scaleExtent(), t = zoomTransform((this._zoomEventTarget || this._container).node());
|
|
170
305
|
if (!factor) {
|
|
171
306
|
t.k = scaleExtent[0];
|
|
172
307
|
t.x = 0;
|
|
@@ -186,7 +321,7 @@ var brushing = false;
|
|
|
186
321
|
t.y += center[1] - (translate0[1] * t.k + t.y);
|
|
187
322
|
}
|
|
188
323
|
}
|
|
189
|
-
zoomed.bind(this)(t, this.
|
|
324
|
+
zoomed.bind(this)(t, this.schema.duration);
|
|
190
325
|
}
|
|
191
326
|
/**
|
|
192
327
|
@name zoomToBounds
|
|
@@ -194,20 +329,20 @@ var brushing = false;
|
|
|
194
329
|
@param bounds
|
|
195
330
|
@private
|
|
196
331
|
*/ function zoomToBounds(bounds) {
|
|
197
|
-
var duration = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.
|
|
198
|
-
var scaleExtent = this._zoomBehavior.scaleExtent(), t = zoomTransform(this._container.node());
|
|
332
|
+
var duration = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.schema.duration;
|
|
333
|
+
var scaleExtent = this._zoomBehavior.scaleExtent(), t = zoomTransform((this._zoomEventTarget || this._container).node());
|
|
199
334
|
if (bounds) {
|
|
200
335
|
var _this__zoomBehavior_translateExtent_ = _sliced_to_array(this._zoomBehavior.translateExtent()[1], 2), width = _this__zoomBehavior_translateExtent_[0], height = _this__zoomBehavior_translateExtent_[1], dx = bounds[1][0] - bounds[0][0], dy = bounds[1][1] - bounds[0][1];
|
|
201
336
|
var k = Math.min(scaleExtent[1], 1 / Math.max(dx / width, dy / height));
|
|
202
337
|
var xMod, yMod;
|
|
203
338
|
if (dx / dy < width / height) {
|
|
204
|
-
k *= (height - this.
|
|
339
|
+
k *= (height - this.schema.zoomPadding * 2) / height;
|
|
205
340
|
xMod = (width - dx * k) / 2 / k;
|
|
206
|
-
yMod = this.
|
|
341
|
+
yMod = this.schema.zoomPadding / k;
|
|
207
342
|
} else {
|
|
208
|
-
k *= (width - this.
|
|
343
|
+
k *= (width - this.schema.zoomPadding * 2) / width;
|
|
209
344
|
yMod = (height - dy * k) / 2 / k;
|
|
210
|
-
xMod = this.
|
|
345
|
+
xMod = this.schema.zoomPadding / k;
|
|
211
346
|
}
|
|
212
347
|
t.x = (t.x - bounds[0][0] + xMod) * (t.k * k / t.k);
|
|
213
348
|
t.y = (t.y - bounds[0][1] + yMod) * (t.k * k / t.k);
|
|
@@ -247,8 +382,8 @@ var brushing = false;
|
|
|
247
382
|
Overrides the default brush styles.
|
|
248
383
|
@private
|
|
249
384
|
*/ function brushStyle() {
|
|
250
|
-
this._brushGroup.selectAll(".selection").call(attrize, this.
|
|
251
|
-
this._brushGroup.selectAll(".handle").call(attrize, this.
|
|
385
|
+
this._brushGroup.selectAll(".selection").call(attrize, this.schema.zoomBrushSelectionStyle || {});
|
|
386
|
+
this._brushGroup.selectAll(".handle").call(attrize, this.schema.zoomBrushHandleStyle || {});
|
|
252
387
|
}
|
|
253
388
|
|
|
254
389
|
//# sourceMappingURL=zoomControls.js.map
|