@d3plus/core 4.7.0 → 4.9.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 +1 -26117
- package/es/index.js +1 -3
- package/es/internal.js +148 -7
- package/es/src/charts/AreaPlot/index.js +7 -10
- package/es/src/charts/BarChart/index.js +50 -17
- package/es/src/charts/Beeswarm/index.js +39 -0
- package/es/src/charts/BoxWhisker/index.js +6 -16
- package/es/src/charts/Bullet/applyLayout.js +157 -0
- package/es/src/charts/Bullet/bulletGeometry.js +215 -0
- package/es/src/charts/Bullet/bulletLayout.js +111 -0
- package/es/src/charts/Bullet/bulletStyle.js +44 -0
- package/es/src/charts/Bullet/emit.js +258 -0
- package/es/src/charts/Bullet/index.js +268 -0
- package/es/src/charts/BumpChart/index.js +21 -49
- package/es/src/charts/Calendar/applyLayout.js +120 -0
- package/es/src/charts/Calendar/calendarDates.js +151 -0
- package/es/src/charts/Calendar/calendarFormat.js +40 -0
- package/es/src/charts/Calendar/calendarGrid.js +138 -0
- package/es/src/charts/Calendar/calendarInset.js +22 -0
- package/es/src/charts/Calendar/calendarLayout.js +242 -0
- package/es/src/charts/Calendar/emit.js +179 -0
- package/es/src/charts/Calendar/index.js +206 -0
- package/es/src/charts/Candlestick/aggregate.js +154 -0
- package/es/src/charts/Candlestick/buffer.js +83 -0
- package/es/src/charts/Candlestick/emit.js +198 -0
- package/es/src/charts/Candlestick/index.js +257 -0
- package/es/src/charts/Candlestick/ohlc.js +114 -0
- package/es/src/charts/Candlestick/periods.js +191 -0
- package/es/src/charts/Candlestick/tooltip.js +116 -0
- package/es/src/charts/Candlestick/volume.js +278 -0
- package/es/src/charts/Chord/applyLayout.js +75 -111
- package/es/src/charts/Chord/emit.js +82 -173
- package/es/src/charts/Chord/index.js +92 -106
- package/es/src/charts/Donut/index.js +6 -12
- package/es/src/charts/Dumbbell/emit.js +106 -0
- package/es/src/charts/Dumbbell/gapSort.js +79 -0
- package/es/src/charts/Dumbbell/index.js +84 -0
- package/es/src/charts/FanChart/index.js +28 -0
- package/es/src/charts/Funnel/applyLayout.js +103 -0
- package/es/src/charts/Funnel/emit.js +99 -0
- package/es/src/charts/Funnel/funnelFacet.js +53 -0
- package/es/src/charts/Funnel/funnelGeometry.js +171 -0
- package/es/src/charts/Funnel/funnelLabels.js +118 -0
- package/es/src/charts/Funnel/index.js +180 -0
- package/es/src/charts/Funnel/labelNodes.js +202 -0
- package/es/src/charts/Gauge/applyLayout.js +70 -0
- package/es/src/charts/Gauge/dialLayout.js +106 -0
- package/es/src/charts/Gauge/emit.js +214 -0
- package/es/src/charts/Gauge/emitDial.js +167 -0
- package/es/src/charts/Gauge/gaugeGeometry.js +157 -0
- package/es/src/charts/Gauge/index.js +148 -0
- package/es/src/charts/Geomap/applyLayout.js +42 -73
- package/es/src/charts/Geomap/basemapTheme.js +16 -31
- package/es/src/charts/Geomap/emit.js +94 -162
- package/es/src/charts/Geomap/index.js +186 -193
- package/es/src/charts/Geomap/projections.js +37 -0
- package/es/src/charts/Histogram/binData.js +60 -209
- package/es/src/charts/Histogram/index.js +104 -137
- package/es/src/charts/Icicle/applyLayout.js +124 -0
- package/es/src/charts/Icicle/emit.js +162 -0
- package/es/src/charts/Icicle/enterStagger.js +55 -0
- package/es/src/charts/Icicle/geometry.js +101 -0
- package/es/src/charts/Icicle/index.js +130 -0
- package/es/src/charts/Icicle/interaction.js +20 -0
- package/es/src/charts/Icicle/labelFit.js +55 -0
- package/es/src/charts/Icicle/layout.js +20 -0
- package/es/src/charts/LinePlot/index.js +1 -9
- package/es/src/charts/Lollipop/emit.js +85 -0
- package/es/src/charts/Lollipop/index.js +97 -0
- package/es/src/charts/Lollipop/stemLayout.js +97 -0
- package/es/src/charts/Marimekko/axis.js +46 -0
- package/es/src/charts/Marimekko/index.js +77 -0
- package/es/src/charts/Matrix/applyLayout.js +22 -27
- package/es/src/charts/Matrix/emit.js +33 -34
- package/es/src/charts/Matrix/index.js +56 -80
- package/es/src/charts/Network/applyLayout.js +95 -172
- package/es/src/charts/Network/emit.js +132 -266
- package/es/src/charts/Network/index.js +148 -132
- package/es/src/charts/Pack/applyLayout.js +12 -17
- package/es/src/charts/Pack/emit.js +44 -106
- package/es/src/charts/Pack/index.js +63 -107
- package/es/src/charts/Pack/recursionCircles.js +2 -5
- package/es/src/charts/ParallelCoordinates/applyLayout.js +99 -0
- package/es/src/charts/ParallelCoordinates/axes.js +213 -0
- package/es/src/charts/ParallelCoordinates/brushDom.js +187 -0
- package/es/src/charts/ParallelCoordinates/brushFilter.js +79 -0
- package/es/src/charts/ParallelCoordinates/dimensions.js +102 -0
- package/es/src/charts/ParallelCoordinates/emit.js +72 -0
- package/es/src/charts/ParallelCoordinates/format.js +23 -0
- package/es/src/charts/ParallelCoordinates/index.js +190 -0
- package/es/src/charts/ParallelCoordinates/lineStates.js +62 -0
- package/es/src/charts/ParallelCoordinates/paths.js +31 -0
- package/es/src/charts/ParallelCoordinates/titles.js +56 -0
- package/es/src/charts/Pie/applyLayout.js +20 -28
- package/es/src/charts/Pie/emit.js +109 -219
- package/es/src/charts/Pie/index.js +49 -78
- package/es/src/charts/Plot/axisInk.js +31 -0
- package/es/src/charts/Plot/barConfidence.js +273 -0
- package/es/src/charts/Plot/barWidth.js +255 -0
- package/es/src/charts/Plot/baselineBreak.js +139 -0
- package/es/src/charts/Plot/baselineDomain.js +120 -0
- package/es/src/charts/Plot/columnHighlight.js +39 -0
- package/es/src/charts/Plot/confidenceBands.js +143 -0
- package/es/src/charts/Plot/confidenceConfig.js +50 -0
- package/es/src/charts/Plot/confidenceTooltip.js +102 -0
- package/es/src/charts/Plot/curveLength.js +97 -0
- package/es/src/charts/Plot/discreteDomain.js +19 -0
- package/es/src/charts/Plot/discreteSpan.js +6 -24
- package/es/src/charts/Plot/domainClip.js +190 -0
- package/es/src/charts/Plot/draw.js +164 -295
- package/es/src/charts/Plot/facetScales.js +27 -0
- package/es/src/charts/Plot/fillBetween.js +233 -0
- package/es/src/charts/Plot/forecast.js +211 -0
- package/es/src/charts/Plot/forecastScene.js +316 -0
- package/es/src/charts/Plot/index.js +355 -930
- package/es/src/charts/Plot/insetRegion.js +5 -10
- package/es/src/charts/Plot/labelPlacement.js +12 -14
- package/es/src/charts/Plot/lineBands.js +48 -0
- package/es/src/charts/Plot/lineCurve.js +25 -0
- package/es/src/charts/Plot/openDomainEnds.js +92 -0
- package/es/src/charts/Plot/pipeline.js +143 -480
- package/es/src/charts/Plot/pipelineAxisLayout.js +132 -0
- package/es/src/charts/Plot/pipelineDomains.js +121 -239
- package/es/src/charts/Plot/pipelineLineLabels.js +81 -147
- package/es/src/charts/Plot/pipelineScales.js +177 -0
- package/es/src/charts/Plot/plotBreaks.js +223 -0
- package/es/src/charts/Plot/plotFacet.js +172 -0
- package/es/src/charts/Plot/plotInit.js +252 -0
- package/es/src/charts/Plot/plotZoom.js +105 -206
- package/es/src/charts/Plot/shapeDefaults.js +66 -81
- package/es/src/charts/Plot/sharedHover.js +185 -308
- package/es/src/charts/Plot/sharedHoverScene.js +115 -157
- package/es/src/charts/Plot/sharedTooltip.js +96 -104
- package/es/src/charts/Plot/stackEnter.js +87 -0
- package/es/src/charts/Plot/stackHelpers.js +36 -69
- package/es/src/charts/Plot/stackShareLabels.js +34 -88
- package/es/src/charts/Plot/stackShareTooltip.js +10 -15
- package/es/src/charts/Plot/swarm.js +96 -0
- package/es/src/charts/Plot/swarmLayout.js +102 -0
- package/es/src/charts/Plot/trendLines.js +105 -321
- package/es/src/charts/Plot/trendProjection.js +27 -69
- package/es/src/charts/Plot/trendScene.js +27 -171
- package/es/src/charts/Plot/trendTooltip.js +50 -132
- package/es/src/charts/PolarArea/applyLayout.js +26 -0
- package/es/src/charts/PolarArea/emit.js +12 -0
- package/es/src/charts/PolarArea/index.js +183 -0
- package/es/src/charts/Priestley/applyLayout.js +33 -53
- package/es/src/charts/Priestley/emit.js +50 -111
- package/es/src/charts/Priestley/index.js +35 -35
- package/es/src/charts/Pyramid/gutter.js +208 -0
- package/es/src/charts/Pyramid/index.js +373 -0
- package/es/src/charts/Pyramid/pyramidData.js +65 -0
- package/es/src/charts/Pyramid/scene.js +224 -0
- package/es/src/charts/Pyramid/stackOrder.js +39 -0
- package/es/src/charts/Radar/applyLayout.js +52 -291
- package/es/src/charts/Radar/axisDecorations.js +200 -0
- package/es/src/charts/Radar/axisLabels.js +109 -0
- package/es/src/charts/Radar/emit.js +23 -19
- package/es/src/charts/Radar/index.js +64 -45
- package/es/src/charts/Radar/levels.js +136 -0
- package/es/src/charts/Radar/rings.js +72 -0
- package/es/src/charts/RadialBar/applyLayout.js +47 -0
- package/es/src/charts/RadialBar/emit.js +38 -0
- package/es/src/charts/RadialBar/index.js +221 -0
- package/es/src/charts/RadialBar/trackLayout.js +330 -0
- package/es/src/charts/RadialBar/tracks.js +53 -0
- package/es/src/charts/RadialMatrix/applyLayout.js +42 -80
- package/es/src/charts/RadialMatrix/emit.js +23 -23
- package/es/src/charts/RadialMatrix/index.js +65 -67
- package/es/src/charts/Ridgeline/emit.js +75 -0
- package/es/src/charts/Ridgeline/index.js +55 -0
- package/es/src/charts/Rings/applyLayout.js +124 -266
- package/es/src/charts/Rings/emit.js +127 -236
- package/es/src/charts/Rings/index.js +118 -98
- package/es/src/charts/Rings/ringsGraph.js +88 -0
- package/es/src/charts/Rings/ringsSizing.js +41 -89
- package/es/src/charts/Sankey/applyLayout.js +32 -60
- package/es/src/charts/Sankey/emit.js +94 -150
- package/es/src/charts/Sankey/index.js +130 -104
- package/es/src/charts/Sankey/sankeyLayout.js +283 -0
- package/es/src/charts/StackedArea/index.js +3 -10
- package/es/src/charts/Sunburst/applyLayout.js +116 -0
- package/es/src/charts/Sunburst/emit.js +181 -0
- package/es/src/charts/Sunburst/geometry.js +98 -0
- package/es/src/charts/Sunburst/index.js +168 -0
- package/es/src/charts/Sunburst/interaction.js +23 -0
- package/es/src/charts/Sunburst/labelFit.js +159 -0
- package/es/src/charts/Sunburst/partition.js +32 -0
- package/es/src/charts/Tree/applyLayout.js +78 -130
- package/es/src/charts/Tree/emit.js +76 -184
- package/es/src/charts/Tree/index.js +26 -37
- package/es/src/charts/Treemap/applyLayout.js +34 -57
- package/es/src/charts/Treemap/emit.js +57 -136
- package/es/src/charts/Treemap/index.js +57 -95
- package/es/src/charts/Treemap/thresholdFunction.js +14 -75
- package/es/src/charts/Violin/emit.js +80 -0
- package/es/src/charts/Violin/index.js +88 -0
- package/es/src/charts/Violin/inner.js +196 -0
- package/es/src/charts/Violin/violinLayout.js +80 -0
- package/es/src/charts/Waffle/applyLayout.js +90 -0
- package/es/src/charts/Waffle/emit.js +89 -0
- package/es/src/charts/Waffle/index.js +170 -0
- package/es/src/charts/Waffle/tooltip.js +37 -0
- package/es/src/charts/Waffle/waffleLayout.js +104 -0
- package/es/src/charts/Waterfall/buffer.js +65 -0
- package/es/src/charts/Waterfall/connectors.js +103 -0
- package/es/src/charts/Waterfall/index.js +211 -0
- package/es/src/charts/Waterfall/labels.js +82 -0
- package/es/src/charts/Waterfall/state.js +147 -0
- package/es/src/charts/Waterfall/steps.js +138 -0
- package/es/src/charts/definition/ChartDefinition.js +2 -4
- package/es/src/charts/definition/applyDefinition.js +4 -88
- package/es/src/charts/definition/makeChart.js +35 -141
- package/es/src/charts/drawSteps/backControl.js +15 -14
- package/es/src/charts/drawSteps/bottomRightControls.js +39 -115
- package/es/src/charts/drawSteps/bottomRightControlsMarkup.js +60 -174
- package/es/src/charts/drawSteps/controlButtonStyle.js +39 -63
- package/es/src/charts/drawSteps/minimap.js +82 -139
- package/es/src/charts/drawSteps/minimapMarkup.js +13 -93
- package/es/src/charts/drawSteps/searchControls.js +48 -105
- package/es/src/charts/drawSteps/searchControlsMarkup.js +62 -176
- package/es/src/charts/drawSteps/tableView.js +23 -40
- package/es/src/charts/drawSteps/tableViewControl.js +2 -8
- package/es/src/charts/drawSteps/tableViewMarkup.js +152 -233
- package/es/src/charts/drawSteps/topLeftControls.js +8 -28
- package/es/src/charts/drawSteps/topLeftControlsMarkup.js +49 -119
- package/es/src/charts/drawSteps/zoomControls.js +72 -145
- package/es/src/charts/drawSteps/zoomControlsMarkup.js +59 -124
- package/es/src/charts/drawSteps/zoomGesture.js +17 -0
- package/es/src/charts/drawSteps/zoomShown.js +40 -0
- package/es/src/charts/events/click.legend.js +12 -23
- package/es/src/charts/events/click.shape.js +6 -11
- package/es/src/charts/events/mouseenter.js +14 -24
- package/es/src/charts/events/mouseleave.js +29 -14
- package/es/src/charts/events/mousemove.legend.js +20 -30
- package/es/src/charts/events/mousemove.shape.js +12 -21
- package/es/src/charts/events/touchstart.body.js +0 -2
- package/es/src/charts/facet/drawFacets.js +332 -0
- package/es/src/charts/facet/facetConfig.js +72 -0
- package/es/src/charts/facet/facetData.js +97 -0
- package/es/src/charts/facet/facetGrid.js +107 -0
- package/es/src/charts/facet/facetGutter.js +131 -0
- package/es/src/charts/facet/facetPanel.js +56 -0
- package/es/src/charts/facet/facetScene.js +111 -0
- package/es/src/charts/features/attributionFeature.js +38 -38
- package/es/src/charts/features/axes.js +105 -304
- package/es/src/charts/features/axesFinal.js +134 -0
- package/es/src/charts/features/axesMeasure.js +138 -0
- package/es/src/charts/features/backgroundImageEmit.js +61 -0
- package/es/src/charts/features/chartGeometry.js +3 -5
- package/es/src/charts/features/colorScaleBucket.js +17 -21
- package/es/src/charts/features/edgeArrows.js +36 -70
- package/es/src/charts/features/emitHelpers.js +42 -137
- package/es/src/charts/features/ensureZoomDom.js +27 -40
- package/es/src/charts/features/features.js +216 -256
- package/es/src/charts/features/featuresColorScale.js +40 -39
- package/es/src/charts/features/featuresLegend.js +152 -188
- package/es/src/charts/features/frozenAxis.js +14 -0
- package/es/src/charts/features/insetState.js +25 -90
- package/es/src/charts/features/legendCategory.js +61 -0
- package/es/src/charts/features/legendLabel.js +5 -9
- package/es/src/charts/features/lineLabels.js +20 -87
- package/es/src/charts/features/plotAnnotations.js +105 -0
- package/es/src/charts/features/plotEndLabels.js +209 -0
- package/es/src/charts/features/plotPaint.js +192 -404
- package/es/src/charts/features/sceneBounds.js +57 -164
- package/es/src/charts/features/shapeEmit.js +183 -184
- package/es/src/charts/features/shareKey.js +32 -0
- package/es/src/charts/features/sharedFields.js +38 -0
- package/es/src/charts/features/tooltipSwatch.js +99 -42
- package/es/src/charts/features/xAxisConfig.js +19 -0
- package/es/src/charts/features/zoomExtent.js +23 -108
- package/es/src/charts/helpers/densityChart.js +267 -0
- package/es/src/charts/helpers/densityData.js +116 -0
- package/es/src/charts/helpers/densityEnter.js +64 -0
- package/es/src/charts/helpers/matrixData.js +11 -82
- package/es/src/charts/helpers/tileAttributions.js +1 -3
- package/es/src/charts/helpers/valueTitle.js +29 -0
- package/es/src/charts/index.js +20 -2
- package/es/src/charts/partition/chartFields.js +43 -0
- package/es/src/charts/partition/hierarchy.js +174 -0
- package/es/src/charts/partition/interaction.js +158 -0
- package/es/src/charts/partition/labelWords.js +95 -0
- package/es/src/charts/partition/shade.js +56 -0
- package/es/src/charts/partition/zoom.js +80 -0
- package/es/src/charts/pipeline/drillMorph.js +16 -37
- package/es/src/charts/pipeline/insetPlacement.js +95 -188
- package/es/src/charts/pipeline/preDrawData.js +74 -0
- package/es/src/charts/pipeline/resolveSpec.js +1 -3
- package/es/src/charts/pipeline/runChartDraw.js +14 -69
- package/es/src/charts/pipeline/runVizPipeline.js +13 -35
- package/es/src/charts/pipeline/stages.js +24 -61
- package/es/src/charts/pipeline/vizDraw.js +165 -30
- package/es/src/charts/pipeline/vizPreDraw.js +145 -106
- package/es/src/charts/plotBuffers/Bar.js +7 -108
- package/es/src/charts/plotBuffers/Box.js +6 -102
- package/es/src/charts/plotBuffers/Circle.js +11 -14
- package/es/src/charts/plotBuffers/Line.js +7 -13
- package/es/src/charts/plotBuffers/Rect.js +11 -15
- package/es/src/charts/plotBuffers/defaultBuffers.js +12 -0
- package/es/src/charts/plotBuffers/discreteBuffer.js +5 -9
- package/es/src/charts/plotBuffers/numericBuffer.js +24 -33
- package/es/src/charts/plotBuffers/rectLikeBuffer.js +39 -0
- package/es/src/charts/polar/chrome.js +170 -0
- package/es/src/charts/polar/config.js +82 -0
- package/es/src/charts/polar/geometry.js +92 -0
- package/es/src/charts/polar/labels.js +124 -0
- package/es/src/charts/polar/polarFacet.js +43 -0
- package/es/src/charts/polar/wedgeLayout.js +140 -0
- package/es/src/charts/viz/Viz.js +503 -991
- package/es/src/charts/viz/VizBase.js +260 -613
- package/es/src/charts/viz/backgroundInk.js +17 -0
- package/es/src/charts/viz/interactionOpacity.js +92 -135
- package/es/src/charts/viz/labelDefaults.js +61 -0
- package/es/src/charts/viz/linkGroup.js +63 -237
- package/es/src/charts/viz/ordinalColor.js +12 -44
- package/es/src/charts/viz/reserveContainerSize.js +49 -0
- package/es/src/charts/viz/resetChromeBoxes.js +41 -0
- package/es/src/charts/viz/sceneRows.js +7 -9
- package/es/src/charts/viz/shapeClassTargets.js +33 -0
- package/es/src/charts/viz/shapeHover.js +9 -0
- package/es/src/charts/viz/simpleHover.js +14 -0
- package/es/src/charts/viz/trailCatchup.js +28 -87
- package/es/src/charts/viz/vizDefaults.js +113 -385
- package/es/src/charts/viz/vizFields.js +197 -0
- package/es/src/charts/viz/vizRender.js +84 -78
- package/es/src/charts/viz/vizTypes.js +1 -3
- package/es/src/charts/viz/vizVisibility.js +32 -51
- package/es/src/components/Axis/Axis.js +304 -469
- package/es/src/components/Axis/AxisBottom.js +9 -74
- package/es/src/components/Axis/AxisLeft.js +9 -74
- package/es/src/components/Axis/AxisRight.js +9 -74
- package/es/src/components/Axis/AxisTop.js +9 -74
- package/es/src/components/Axis/axisBreak.js +243 -0
- package/es/src/components/Axis/axisDefaults.js +65 -0
- package/es/src/components/Axis/axisEndLabels.js +60 -0
- package/es/src/components/Axis/axisLabelThinning.js +123 -0
- package/es/src/components/Axis/axisLayout.js +211 -160
- package/es/src/components/Axis/axisLayoutLabels.js +187 -108
- package/es/src/components/Axis/axisLayoutScale.js +130 -247
- package/es/src/components/Axis/axisRender.js +82 -411
- package/es/src/components/Axis/axisRounding.js +68 -0
- package/es/src/components/Axis/axisScene.js +184 -0
- package/es/src/components/Axis/brokenScale.js +183 -0
- package/es/src/components/Axis/gridStroke.js +10 -0
- package/es/src/components/Axis/timeValues.js +155 -0
- package/es/src/components/Axis/yearValues.js +32 -0
- package/es/src/components/ColorScale/ColorScale.js +187 -345
- package/es/src/components/ColorScale/colorScaleRender.js +72 -108
- package/es/src/components/ColorScale/colorScaleScale.js +101 -164
- package/es/src/components/Legend/Legend.js +164 -352
- package/es/src/components/Legend/legendConfig.js +43 -55
- package/es/src/components/Legend/legendRender.js +61 -109
- package/es/src/components/Message.js +50 -98
- package/es/src/components/SizeLegend/SizeLegend.js +188 -330
- package/es/src/components/SizeLegend/sizeLegendLayout.js +65 -161
- package/es/src/components/TextBox.js +156 -615
- package/es/src/components/Timeline/Timeline.js +345 -554
- package/es/src/components/Timeline/timelineConfig.js +23 -56
- package/es/src/components/Timeline/timelineRender.js +58 -112
- package/es/src/components/Tooltip.js +128 -607
- package/es/src/components/index.js +0 -2
- package/es/src/components/textBoxLayout.js +230 -0
- package/es/src/components/tooltipDom.js +218 -0
- package/es/src/fluent.js +177 -203
- package/es/src/shapes/Area.js +128 -329
- package/es/src/shapes/Bar.js +92 -245
- package/es/src/shapes/Box.js +231 -405
- package/es/src/shapes/Circle.js +46 -199
- package/es/src/shapes/Image.js +98 -210
- package/es/src/shapes/Line.js +73 -251
- package/es/src/shapes/Path.js +34 -149
- package/es/src/shapes/Rect.js +57 -210
- package/es/src/shapes/Shape.js +328 -655
- package/es/src/shapes/Whisker.js +166 -371
- package/es/src/shapes/buildLabelData.js +31 -80
- package/es/src/shapes/emitLabels.js +17 -49
- package/es/src/shapes/hitAreaNode.js +8 -10
- package/es/src/shapes/index.js +0 -2
- package/es/src/shapes/interactionPoints.js +5 -7
- package/es/src/shapes/sceneSort.js +61 -161
- package/es/src/shapes/shapeConfig.js +0 -2
- package/es/src/shapes/shapeOwners.js +37 -0
- package/es/src/shapes/shapeStandalone.js +71 -0
- package/es/src/shapes/textureKey.js +11 -61
- package/es/src/shapes/uniqueIds.js +19 -0
- package/es/src/shapes/validateShapeConfig.js +23 -119
- package/es/src/utils/AccessorFn.js +0 -2
- package/es/src/utils/BaseClass.js +114 -262
- package/es/src/utils/D3Scale.js +0 -2
- package/es/src/utils/D3plusConfig.js +0 -2
- package/es/src/utils/RESET.js +1 -3
- package/es/src/utils/accessor.js +2 -8
- package/es/src/utils/configDefault.js +1 -3
- package/es/src/utils/configPrep.js +15 -35
- package/es/src/utils/configWarnings.js +11 -13
- package/es/src/utils/constant.js +0 -2
- package/es/src/utils/getProp.js +0 -2
- package/es/src/utils/index.js +0 -2
- package/es/src/utils/paintComponentScene.js +12 -23
- package/es/src/utils/wholeWords.js +44 -0
- package/package.json +16 -25
- package/types/index.d.ts +12 -4
- package/types/internal.d.ts +210 -12
- package/types/src/charts/AreaPlot/index.d.ts +2 -1
- package/types/src/charts/BarChart/index.d.ts +4 -2
- package/types/src/charts/Beeswarm/index.d.ts +15 -0
- package/types/src/charts/Bullet/applyLayout.d.ts +65 -0
- package/types/src/charts/Bullet/bulletGeometry.d.ts +91 -0
- package/types/src/charts/Bullet/bulletLayout.d.ts +54 -0
- package/types/src/charts/Bullet/bulletStyle.d.ts +33 -0
- package/types/src/charts/Bullet/emit.d.ts +25 -0
- package/types/src/charts/Bullet/index.d.ts +40 -0
- package/types/src/charts/Calendar/applyLayout.d.ts +37 -0
- package/types/src/charts/Calendar/calendarDates.d.ts +68 -0
- package/types/src/charts/Calendar/calendarFormat.d.ts +24 -0
- package/types/src/charts/Calendar/calendarGrid.d.ts +84 -0
- package/types/src/charts/Calendar/calendarInset.d.ts +13 -0
- package/types/src/charts/Calendar/calendarLayout.d.ts +84 -0
- package/types/src/charts/Calendar/emit.d.ts +31 -0
- package/types/src/charts/Calendar/index.d.ts +26 -0
- package/types/src/charts/Candlestick/aggregate.d.ts +91 -0
- package/types/src/charts/Candlestick/buffer.d.ts +37 -0
- package/types/src/charts/Candlestick/emit.d.ts +54 -0
- package/types/src/charts/Candlestick/index.d.ts +16 -0
- package/types/src/charts/Candlestick/ohlc.d.ts +94 -0
- package/types/src/charts/Candlestick/periods.d.ts +84 -0
- package/types/src/charts/Candlestick/tooltip.d.ts +50 -0
- package/types/src/charts/Candlestick/volume.d.ts +129 -0
- package/types/src/charts/Chord/emit.d.ts +2 -2
- package/types/src/charts/Dumbbell/emit.d.ts +34 -0
- package/types/src/charts/Dumbbell/gapSort.d.ts +47 -0
- package/types/src/charts/Dumbbell/index.d.ts +21 -0
- package/types/src/charts/FanChart/index.d.ts +17 -0
- package/types/src/charts/Funnel/applyLayout.d.ts +89 -0
- package/types/src/charts/Funnel/emit.d.ts +29 -0
- package/types/src/charts/Funnel/funnelFacet.d.ts +33 -0
- package/types/src/charts/Funnel/funnelGeometry.d.ts +78 -0
- package/types/src/charts/Funnel/funnelLabels.d.ts +101 -0
- package/types/src/charts/Funnel/index.d.ts +30 -0
- package/types/src/charts/Funnel/labelNodes.d.ts +57 -0
- package/types/src/charts/Gauge/applyLayout.d.ts +41 -0
- package/types/src/charts/Gauge/dialLayout.d.ts +78 -0
- package/types/src/charts/Gauge/emit.d.ts +22 -0
- package/types/src/charts/Gauge/emitDial.d.ts +41 -0
- package/types/src/charts/Gauge/gaugeGeometry.d.ts +89 -0
- package/types/src/charts/Gauge/index.d.ts +21 -0
- package/types/src/charts/Geomap/projections.d.ts +8 -0
- package/types/src/charts/Histogram/binData.d.ts +9 -1
- package/types/src/charts/Icicle/applyLayout.d.ts +54 -0
- package/types/src/charts/Icicle/emit.d.ts +20 -0
- package/types/src/charts/Icicle/enterStagger.d.ts +30 -0
- package/types/src/charts/Icicle/geometry.d.ts +72 -0
- package/types/src/charts/Icicle/index.d.ts +25 -0
- package/types/src/charts/Icicle/interaction.d.ts +16 -0
- package/types/src/charts/Icicle/labelFit.d.ts +37 -0
- package/types/src/charts/Icicle/layout.d.ts +21 -0
- package/types/src/charts/Lollipop/emit.d.ts +19 -0
- package/types/src/charts/Lollipop/index.d.ts +17 -0
- package/types/src/charts/Lollipop/stemLayout.d.ts +82 -0
- package/types/src/charts/Marimekko/axis.d.ts +27 -0
- package/types/src/charts/Marimekko/index.d.ts +19 -0
- package/types/src/charts/ParallelCoordinates/applyLayout.d.ts +27 -0
- package/types/src/charts/ParallelCoordinates/axes.d.ts +40 -0
- package/types/src/charts/ParallelCoordinates/brushDom.d.ts +47 -0
- package/types/src/charts/ParallelCoordinates/brushFilter.d.ts +39 -0
- package/types/src/charts/ParallelCoordinates/dimensions.d.ts +63 -0
- package/types/src/charts/ParallelCoordinates/emit.d.ts +27 -0
- package/types/src/charts/ParallelCoordinates/format.d.ts +13 -0
- package/types/src/charts/ParallelCoordinates/index.d.ts +27 -0
- package/types/src/charts/ParallelCoordinates/lineStates.d.ts +21 -0
- package/types/src/charts/ParallelCoordinates/paths.d.ts +27 -0
- package/types/src/charts/ParallelCoordinates/titles.d.ts +21 -0
- package/types/src/charts/Plot/axisInk.d.ts +8 -0
- package/types/src/charts/Plot/barConfidence.d.ts +120 -0
- package/types/src/charts/Plot/barWidth.d.ts +119 -0
- package/types/src/charts/Plot/baselineBreak.d.ts +52 -0
- package/types/src/charts/Plot/baselineDomain.d.ts +67 -0
- package/types/src/charts/Plot/columnHighlight.d.ts +23 -0
- package/types/src/charts/Plot/confidenceBands.d.ts +72 -0
- package/types/src/charts/Plot/confidenceConfig.d.ts +16 -0
- package/types/src/charts/Plot/confidenceTooltip.d.ts +70 -0
- package/types/src/charts/Plot/curveLength.d.ts +27 -0
- package/types/src/charts/Plot/discreteDomain.d.ts +14 -0
- package/types/src/charts/Plot/domainClip.d.ts +21 -0
- package/types/src/charts/Plot/facetScales.d.ts +27 -0
- package/types/src/charts/Plot/fillBetween.d.ts +69 -0
- package/types/src/charts/Plot/forecast.d.ts +102 -0
- package/types/src/charts/Plot/forecastScene.d.ts +88 -0
- package/types/src/charts/Plot/index.d.ts +24 -5
- package/types/src/charts/Plot/lineBands.d.ts +7 -0
- package/types/src/charts/Plot/lineCurve.d.ts +15 -0
- package/types/src/charts/Plot/openDomainEnds.d.ts +25 -0
- package/types/src/charts/Plot/pipeline.d.ts +5 -30
- package/types/src/charts/Plot/pipelineAxisLayout.d.ts +2 -0
- package/types/src/charts/Plot/pipelineScales.d.ts +20 -0
- package/types/src/charts/Plot/plotBreaks.d.ts +61 -0
- package/types/src/charts/Plot/plotFacet.d.ts +36 -0
- package/types/src/charts/Plot/plotInit.d.ts +44 -0
- package/types/src/charts/Plot/plotZoom.d.ts +14 -8
- package/types/src/charts/Plot/sharedHover.d.ts +5 -0
- package/types/src/charts/Plot/sharedHoverScene.d.ts +3 -6
- package/types/src/charts/Plot/sharedTooltip.d.ts +13 -8
- package/types/src/charts/Plot/stackEnter.d.ts +42 -0
- package/types/src/charts/Plot/swarm.d.ts +66 -0
- package/types/src/charts/Plot/swarmLayout.d.ts +59 -0
- package/types/src/charts/PolarArea/applyLayout.d.ts +17 -0
- package/types/src/charts/PolarArea/emit.d.ts +3 -0
- package/types/src/charts/PolarArea/index.d.ts +19 -0
- package/types/src/charts/Pyramid/gutter.d.ts +76 -0
- package/types/src/charts/Pyramid/index.d.ts +19 -0
- package/types/src/charts/Pyramid/pyramidData.d.ts +48 -0
- package/types/src/charts/Pyramid/scene.d.ts +106 -0
- package/types/src/charts/Pyramid/stackOrder.d.ts +9 -0
- package/types/src/charts/Radar/applyLayout.d.ts +7 -5
- package/types/src/charts/Radar/axisDecorations.d.ts +67 -0
- package/types/src/charts/Radar/axisLabels.d.ts +79 -0
- package/types/src/charts/Radar/emit.d.ts +2 -2
- package/types/src/charts/Radar/index.d.ts +5 -1
- package/types/src/charts/Radar/levels.d.ts +68 -0
- package/types/src/charts/Radar/rings.d.ts +30 -0
- package/types/src/charts/RadialBar/applyLayout.d.ts +19 -0
- package/types/src/charts/RadialBar/emit.d.ts +6 -0
- package/types/src/charts/RadialBar/index.d.ts +21 -0
- package/types/src/charts/RadialBar/trackLayout.d.ts +46 -0
- package/types/src/charts/RadialBar/tracks.d.ts +32 -0
- package/types/src/charts/Ridgeline/emit.d.ts +11 -0
- package/types/src/charts/Ridgeline/index.d.ts +16 -0
- package/types/src/charts/Rings/index.d.ts +2 -0
- package/types/src/charts/Rings/ringsGraph.d.ts +72 -0
- package/types/src/charts/Sankey/applyLayout.d.ts +1 -1
- package/types/src/charts/Sankey/sankeyLayout.d.ts +57 -0
- package/types/src/charts/StackedArea/index.d.ts +2 -1
- package/types/src/charts/Sunburst/applyLayout.d.ts +67 -0
- package/types/src/charts/Sunburst/emit.d.ts +29 -0
- package/types/src/charts/Sunburst/geometry.d.ts +65 -0
- package/types/src/charts/Sunburst/index.d.ts +21 -0
- package/types/src/charts/Sunburst/interaction.d.ts +20 -0
- package/types/src/charts/Sunburst/labelFit.d.ts +73 -0
- package/types/src/charts/Sunburst/partition.d.ts +34 -0
- package/types/src/charts/Violin/emit.d.ts +4 -0
- package/types/src/charts/Violin/index.d.ts +16 -0
- package/types/src/charts/Violin/inner.d.ts +31 -0
- package/types/src/charts/Violin/violinLayout.d.ts +64 -0
- package/types/src/charts/Waffle/applyLayout.d.ts +36 -0
- package/types/src/charts/Waffle/emit.d.ts +29 -0
- package/types/src/charts/Waffle/index.d.ts +21 -0
- package/types/src/charts/Waffle/tooltip.d.ts +20 -0
- package/types/src/charts/Waffle/waffleLayout.d.ts +81 -0
- package/types/src/charts/Waterfall/buffer.d.ts +31 -0
- package/types/src/charts/Waterfall/connectors.d.ts +40 -0
- package/types/src/charts/Waterfall/index.d.ts +24 -0
- package/types/src/charts/Waterfall/labels.d.ts +59 -0
- package/types/src/charts/Waterfall/state.d.ts +62 -0
- package/types/src/charts/Waterfall/steps.d.ts +84 -0
- package/types/src/charts/definition/ChartDefinition.d.ts +28 -7
- package/types/src/charts/definition/makeChart.d.ts +3 -1
- package/types/src/charts/drawSteps/bottomRightControls.d.ts +19 -0
- package/types/src/charts/drawSteps/bottomRightControlsMarkup.d.ts +1 -1
- package/types/src/charts/drawSteps/controlButtonStyle.d.ts +21 -0
- package/types/src/charts/drawSteps/searchControlsMarkup.d.ts +2 -6
- package/types/src/charts/drawSteps/topLeftControlsMarkup.d.ts +10 -2
- package/types/src/charts/drawSteps/zoomControlsMarkup.d.ts +9 -0
- package/types/src/charts/drawSteps/zoomGesture.d.ts +17 -0
- package/types/src/charts/drawSteps/zoomShown.d.ts +32 -0
- package/types/src/charts/facet/drawFacets.d.ts +52 -0
- package/types/src/charts/facet/facetConfig.d.ts +178 -0
- package/types/src/charts/facet/facetData.d.ts +47 -0
- package/types/src/charts/facet/facetGrid.d.ts +62 -0
- package/types/src/charts/facet/facetGutter.d.ts +68 -0
- package/types/src/charts/facet/facetPanel.d.ts +24 -0
- package/types/src/charts/facet/facetScene.d.ts +39 -0
- package/types/src/charts/features/axes.d.ts +4 -89
- package/types/src/charts/features/axesFinal.d.ts +66 -0
- package/types/src/charts/features/axesMeasure.d.ts +88 -0
- package/types/src/charts/features/backgroundImageEmit.d.ts +32 -0
- package/types/src/charts/features/features.d.ts +40 -12
- package/types/src/charts/features/featuresLegend.d.ts +10 -2
- package/types/src/charts/features/frozenAxis.d.ts +8 -0
- package/types/src/charts/features/insetState.d.ts +3 -4
- package/types/src/charts/features/legendCategory.d.ts +36 -0
- package/types/src/charts/features/legendLabel.d.ts +3 -6
- package/types/src/charts/features/plotAnnotations.d.ts +38 -0
- package/types/src/charts/features/plotEndLabels.d.ts +108 -0
- package/types/src/charts/features/plotPaint.d.ts +10 -25
- package/types/src/charts/features/sceneBounds.d.ts +8 -2
- package/types/src/charts/features/shapeEmit.d.ts +14 -1
- package/types/src/charts/features/shareKey.d.ts +24 -0
- package/types/src/charts/features/sharedFields.d.ts +22 -0
- package/types/src/charts/features/tooltipSwatch.d.ts +36 -4
- package/types/src/charts/features/xAxisConfig.d.ts +6 -0
- package/types/src/charts/helpers/densityChart.d.ts +62 -0
- package/types/src/charts/helpers/densityData.d.ts +88 -0
- package/types/src/charts/helpers/densityEnter.d.ts +23 -0
- package/types/src/charts/helpers/valueTitle.d.ts +23 -0
- package/types/src/charts/index.d.ts +20 -0
- package/types/src/charts/partition/chartFields.d.ts +29 -0
- package/types/src/charts/partition/hierarchy.d.ts +109 -0
- package/types/src/charts/partition/interaction.d.ts +57 -0
- package/types/src/charts/partition/labelWords.d.ts +50 -0
- package/types/src/charts/partition/shade.d.ts +61 -0
- package/types/src/charts/partition/zoom.d.ts +51 -0
- package/types/src/charts/pipeline/preDrawData.d.ts +34 -0
- package/types/src/charts/pipeline/stages.d.ts +11 -3
- package/types/src/charts/pipeline/vizDraw.d.ts +25 -20
- package/types/src/charts/pipeline/vizPreDraw.d.ts +23 -17
- package/types/src/charts/plotBuffers/Bar.d.ts +9 -12
- package/types/src/charts/plotBuffers/Box.d.ts +8 -11
- package/types/src/charts/plotBuffers/defaultBuffers.d.ts +25 -0
- package/types/src/charts/plotBuffers/numericBuffer.d.ts +1 -1
- package/types/src/charts/plotBuffers/rectLikeBuffer.d.ts +25 -0
- package/types/src/charts/polar/chrome.d.ts +62 -0
- package/types/src/charts/polar/config.d.ts +21 -0
- package/types/src/charts/polar/geometry.d.ts +68 -0
- package/types/src/charts/polar/labels.d.ts +87 -0
- package/types/src/charts/polar/polarFacet.d.ts +33 -0
- package/types/src/charts/polar/wedgeLayout.d.ts +81 -0
- package/types/src/charts/viz/Viz.d.ts +24 -24
- package/types/src/charts/viz/VizBase.d.ts +59 -204
- package/types/src/charts/viz/backgroundInk.d.ts +15 -0
- package/types/src/charts/viz/labelDefaults.d.ts +11 -0
- package/types/src/charts/viz/reserveContainerSize.d.ts +15 -0
- package/types/src/charts/viz/resetChromeBoxes.d.ts +4 -0
- package/types/src/charts/viz/shapeClassTargets.d.ts +25 -0
- package/types/src/charts/viz/shapeHover.d.ts +10 -0
- package/types/src/charts/viz/simpleHover.d.ts +9 -0
- package/types/src/charts/viz/vizDefaults.d.ts +10 -0
- package/types/src/charts/viz/vizFields.d.ts +199 -0
- package/types/src/charts/viz/vizTypes.d.ts +107 -39
- package/types/src/components/Axis/Axis.d.ts +59 -4
- package/types/src/components/Axis/axisBreak.d.ts +86 -0
- package/types/src/components/Axis/axisDefaults.d.ts +11 -0
- package/types/src/components/Axis/axisEndLabels.d.ts +37 -0
- package/types/src/components/Axis/axisLabelThinning.d.ts +48 -0
- package/types/src/components/Axis/axisLayout.d.ts +10 -0
- package/types/src/components/Axis/axisLayoutLabels.d.ts +30 -0
- package/types/src/components/Axis/axisLayoutScale.d.ts +13 -2
- package/types/src/components/Axis/axisRender.d.ts +1 -30
- package/types/src/components/Axis/axisRounding.d.ts +14 -0
- package/types/src/components/Axis/axisScene.d.ts +33 -0
- package/types/src/components/Axis/brokenScale.d.ts +66 -0
- package/types/src/components/Axis/gridStroke.d.ts +8 -0
- package/types/src/components/Axis/timeValues.d.ts +63 -0
- package/types/src/components/Axis/yearValues.d.ts +21 -0
- package/types/src/components/TextBox.d.ts +1 -36
- package/types/src/components/textBoxLayout.d.ts +45 -0
- package/types/src/components/tooltipDom.d.ts +30 -0
- package/types/src/fluent.d.ts +103 -34
- package/types/src/shapes/Box.d.ts +12 -1
- package/types/src/shapes/Shape.d.ts +2 -3
- package/types/src/shapes/Whisker.d.ts +4 -1
- package/types/src/shapes/emitLabels.d.ts +15 -0
- package/types/src/shapes/shapeConfig.d.ts +35 -5
- package/types/src/shapes/shapeOwners.d.ts +10 -0
- package/types/src/shapes/shapeStandalone.d.ts +7 -0
- package/types/src/shapes/uniqueIds.d.ts +6 -0
- package/types/src/shapes/validateShapeConfig.d.ts +20 -3
- package/types/src/utils/BaseClass.d.ts +6 -0
- package/types/src/utils/D3Scale.d.ts +3 -0
- package/types/src/utils/D3plusConfig.d.ts +940 -99
- package/types/src/utils/configPrep.d.ts +3 -2
- package/types/src/utils/configWarnings.d.ts +5 -0
- package/types/src/utils/index.d.ts +1 -1
- package/types/src/utils/wholeWords.d.ts +28 -0
- package/umd/d3plus-core.full.js +74785 -75059
- package/umd/d3plus-core.full.min.js +2 -10702
- package/umd/d3plus-core.js +44707 -23629
- package/umd/d3plus-core.min.js +2 -6671
- package/es/index.js.map +0 -1
- package/es/internal.js.map +0 -1
- package/es/src/charts/AreaPlot/index.js.map +0 -1
- package/es/src/charts/BarChart/index.js.map +0 -1
- package/es/src/charts/BoxWhisker/index.js.map +0 -1
- package/es/src/charts/BumpChart/index.js.map +0 -1
- package/es/src/charts/Chord/applyLayout.js.map +0 -1
- package/es/src/charts/Chord/emit.js.map +0 -1
- package/es/src/charts/Chord/index.js.map +0 -1
- package/es/src/charts/Donut/index.js.map +0 -1
- package/es/src/charts/Geomap/applyLayout.js.map +0 -1
- package/es/src/charts/Geomap/basemapTheme.js.map +0 -1
- package/es/src/charts/Geomap/emit.js.map +0 -1
- package/es/src/charts/Geomap/index.js.map +0 -1
- package/es/src/charts/Histogram/binData.js.map +0 -1
- package/es/src/charts/Histogram/index.js.map +0 -1
- package/es/src/charts/LinePlot/index.js.map +0 -1
- package/es/src/charts/Matrix/applyLayout.js.map +0 -1
- package/es/src/charts/Matrix/emit.js.map +0 -1
- package/es/src/charts/Matrix/index.js.map +0 -1
- package/es/src/charts/Network/applyLayout.js.map +0 -1
- package/es/src/charts/Network/emit.js.map +0 -1
- package/es/src/charts/Network/index.js.map +0 -1
- package/es/src/charts/Pack/applyLayout.js.map +0 -1
- package/es/src/charts/Pack/emit.js.map +0 -1
- package/es/src/charts/Pack/index.js.map +0 -1
- package/es/src/charts/Pack/recursionCircles.js.map +0 -1
- package/es/src/charts/Pie/applyLayout.js.map +0 -1
- package/es/src/charts/Pie/emit.js.map +0 -1
- package/es/src/charts/Pie/index.js.map +0 -1
- package/es/src/charts/Plot/discreteSpan.js.map +0 -1
- package/es/src/charts/Plot/draw.js.map +0 -1
- package/es/src/charts/Plot/index.js.map +0 -1
- package/es/src/charts/Plot/insetRegion.js.map +0 -1
- package/es/src/charts/Plot/labelPlacement.js.map +0 -1
- package/es/src/charts/Plot/pipeline.js.map +0 -1
- package/es/src/charts/Plot/pipelineDomains.js.map +0 -1
- package/es/src/charts/Plot/pipelineLineLabels.js.map +0 -1
- package/es/src/charts/Plot/plotZoom.js.map +0 -1
- package/es/src/charts/Plot/shapeDefaults.js.map +0 -1
- package/es/src/charts/Plot/sharedHover.js.map +0 -1
- package/es/src/charts/Plot/sharedHoverScene.js.map +0 -1
- package/es/src/charts/Plot/sharedTooltip.js.map +0 -1
- package/es/src/charts/Plot/stackHelpers.js.map +0 -1
- package/es/src/charts/Plot/stackShareLabels.js.map +0 -1
- package/es/src/charts/Plot/stackShareTooltip.js.map +0 -1
- package/es/src/charts/Plot/trendLines.js.map +0 -1
- package/es/src/charts/Plot/trendProjection.js.map +0 -1
- package/es/src/charts/Plot/trendScene.js.map +0 -1
- package/es/src/charts/Plot/trendTooltip.js.map +0 -1
- package/es/src/charts/Priestley/applyLayout.js.map +0 -1
- package/es/src/charts/Priestley/emit.js.map +0 -1
- package/es/src/charts/Priestley/index.js.map +0 -1
- package/es/src/charts/Radar/applyLayout.js.map +0 -1
- package/es/src/charts/Radar/emit.js.map +0 -1
- package/es/src/charts/Radar/index.js.map +0 -1
- package/es/src/charts/RadialMatrix/applyLayout.js.map +0 -1
- package/es/src/charts/RadialMatrix/emit.js.map +0 -1
- package/es/src/charts/RadialMatrix/index.js.map +0 -1
- package/es/src/charts/Rings/applyLayout.js.map +0 -1
- package/es/src/charts/Rings/emit.js.map +0 -1
- package/es/src/charts/Rings/index.js.map +0 -1
- package/es/src/charts/Rings/ringsSizing.js.map +0 -1
- package/es/src/charts/Sankey/applyLayout.js.map +0 -1
- package/es/src/charts/Sankey/emit.js.map +0 -1
- package/es/src/charts/Sankey/index.js.map +0 -1
- package/es/src/charts/StackedArea/index.js.map +0 -1
- package/es/src/charts/Tree/applyLayout.js.map +0 -1
- package/es/src/charts/Tree/emit.js.map +0 -1
- package/es/src/charts/Tree/index.js.map +0 -1
- package/es/src/charts/Treemap/applyLayout.js.map +0 -1
- package/es/src/charts/Treemap/emit.js.map +0 -1
- package/es/src/charts/Treemap/index.js.map +0 -1
- package/es/src/charts/Treemap/thresholdFunction.js.map +0 -1
- package/es/src/charts/definition/ChartDefinition.js.map +0 -1
- package/es/src/charts/definition/applyDefinition.js.map +0 -1
- package/es/src/charts/definition/makeChart.js.map +0 -1
- package/es/src/charts/drawSteps/backControl.js.map +0 -1
- package/es/src/charts/drawSteps/bottomRightControls.js.map +0 -1
- package/es/src/charts/drawSteps/bottomRightControlsMarkup.js.map +0 -1
- package/es/src/charts/drawSteps/controlButtonStyle.js.map +0 -1
- package/es/src/charts/drawSteps/minimap.js.map +0 -1
- package/es/src/charts/drawSteps/minimapMarkup.js.map +0 -1
- package/es/src/charts/drawSteps/searchControls.js.map +0 -1
- package/es/src/charts/drawSteps/searchControlsMarkup.js.map +0 -1
- package/es/src/charts/drawSteps/tableView.js.map +0 -1
- package/es/src/charts/drawSteps/tableViewControl.js.map +0 -1
- package/es/src/charts/drawSteps/tableViewMarkup.js.map +0 -1
- package/es/src/charts/drawSteps/topLeftControls.js.map +0 -1
- package/es/src/charts/drawSteps/topLeftControlsMarkup.js.map +0 -1
- package/es/src/charts/drawSteps/zoomControls.js.map +0 -1
- package/es/src/charts/drawSteps/zoomControlsMarkup.js.map +0 -1
- package/es/src/charts/events/click.legend.js.map +0 -1
- package/es/src/charts/events/click.shape.js.map +0 -1
- package/es/src/charts/events/mouseenter.js.map +0 -1
- package/es/src/charts/events/mouseleave.js.map +0 -1
- package/es/src/charts/events/mousemove.legend.js.map +0 -1
- package/es/src/charts/events/mousemove.shape.js.map +0 -1
- package/es/src/charts/events/touchstart.body.js.map +0 -1
- package/es/src/charts/features/attributionFeature.js.map +0 -1
- package/es/src/charts/features/axes.js.map +0 -1
- package/es/src/charts/features/chartGeometry.js.map +0 -1
- package/es/src/charts/features/colorScaleBucket.js.map +0 -1
- package/es/src/charts/features/edgeArrows.js.map +0 -1
- package/es/src/charts/features/emitHelpers.js.map +0 -1
- package/es/src/charts/features/ensureZoomDom.js.map +0 -1
- package/es/src/charts/features/features.js.map +0 -1
- package/es/src/charts/features/featuresColorScale.js.map +0 -1
- package/es/src/charts/features/featuresLegend.js.map +0 -1
- package/es/src/charts/features/insetState.js.map +0 -1
- package/es/src/charts/features/legendLabel.js.map +0 -1
- package/es/src/charts/features/lineLabels.js.map +0 -1
- package/es/src/charts/features/plotPaint.js.map +0 -1
- package/es/src/charts/features/sceneBounds.js.map +0 -1
- package/es/src/charts/features/shapeEmit.js.map +0 -1
- package/es/src/charts/features/tooltipSwatch.js.map +0 -1
- package/es/src/charts/features/zoomExtent.js.map +0 -1
- package/es/src/charts/helpers/matrixData.js.map +0 -1
- package/es/src/charts/helpers/tileAttributions.js.map +0 -1
- package/es/src/charts/index.js.map +0 -1
- package/es/src/charts/pipeline/drillMorph.js.map +0 -1
- package/es/src/charts/pipeline/insetPlacement.js.map +0 -1
- package/es/src/charts/pipeline/resolveSpec.js.map +0 -1
- package/es/src/charts/pipeline/runChartDraw.js.map +0 -1
- package/es/src/charts/pipeline/runVizPipeline.js.map +0 -1
- package/es/src/charts/pipeline/stages.js.map +0 -1
- package/es/src/charts/pipeline/vizContext.js +0 -29
- package/es/src/charts/pipeline/vizContext.js.map +0 -1
- package/es/src/charts/pipeline/vizDraw.js.map +0 -1
- package/es/src/charts/pipeline/vizDrawPure.js +0 -220
- package/es/src/charts/pipeline/vizDrawPure.js.map +0 -1
- package/es/src/charts/pipeline/vizPreDraw.js.map +0 -1
- package/es/src/charts/pipeline/vizPreDrawPure.js +0 -279
- package/es/src/charts/pipeline/vizPreDrawPure.js.map +0 -1
- package/es/src/charts/plotBuffers/Bar.js.map +0 -1
- package/es/src/charts/plotBuffers/Box.js.map +0 -1
- package/es/src/charts/plotBuffers/Circle.js.map +0 -1
- package/es/src/charts/plotBuffers/Line.js.map +0 -1
- package/es/src/charts/plotBuffers/Rect.js.map +0 -1
- package/es/src/charts/plotBuffers/discreteBuffer.js.map +0 -1
- package/es/src/charts/plotBuffers/numericBuffer.js.map +0 -1
- package/es/src/charts/viz/Viz.js.map +0 -1
- package/es/src/charts/viz/VizBase.js.map +0 -1
- package/es/src/charts/viz/VizBaseConfig.js +0 -538
- package/es/src/charts/viz/VizBaseConfig.js.map +0 -1
- package/es/src/charts/viz/interactionOpacity.js.map +0 -1
- package/es/src/charts/viz/linkGroup.js.map +0 -1
- package/es/src/charts/viz/ordinalColor.js.map +0 -1
- package/es/src/charts/viz/sceneRows.js.map +0 -1
- package/es/src/charts/viz/trailCatchup.js.map +0 -1
- package/es/src/charts/viz/vizDefaults.js.map +0 -1
- package/es/src/charts/viz/vizRender.js.map +0 -1
- package/es/src/charts/viz/vizTypes.js.map +0 -1
- package/es/src/charts/viz/vizVisibility.js.map +0 -1
- package/es/src/components/Axis/Axis.js.map +0 -1
- package/es/src/components/Axis/AxisBottom.js.map +0 -1
- package/es/src/components/Axis/AxisLeft.js.map +0 -1
- package/es/src/components/Axis/AxisRight.js.map +0 -1
- package/es/src/components/Axis/AxisTop.js.map +0 -1
- package/es/src/components/Axis/axisLayout.js.map +0 -1
- package/es/src/components/Axis/axisLayoutLabels.js.map +0 -1
- package/es/src/components/Axis/axisLayoutScale.js.map +0 -1
- package/es/src/components/Axis/axisRender.js.map +0 -1
- package/es/src/components/ColorScale/ColorScale.js.map +0 -1
- package/es/src/components/ColorScale/colorScaleRender.js.map +0 -1
- package/es/src/components/ColorScale/colorScaleScale.js.map +0 -1
- package/es/src/components/Legend/Legend.js.map +0 -1
- package/es/src/components/Legend/legendConfig.js.map +0 -1
- package/es/src/components/Legend/legendRender.js.map +0 -1
- package/es/src/components/Message.js.map +0 -1
- package/es/src/components/SizeLegend/SizeLegend.js.map +0 -1
- package/es/src/components/SizeLegend/sizeLegendLayout.js.map +0 -1
- package/es/src/components/TextBox.js.map +0 -1
- package/es/src/components/Timeline/Timeline.js.map +0 -1
- package/es/src/components/Timeline/timelineConfig.js.map +0 -1
- package/es/src/components/Timeline/timelineRender.js.map +0 -1
- package/es/src/components/Tooltip.js.map +0 -1
- package/es/src/components/index.js.map +0 -1
- package/es/src/fluent.js.map +0 -1
- package/es/src/shapes/Area.js.map +0 -1
- package/es/src/shapes/Bar.js.map +0 -1
- package/es/src/shapes/Box.js.map +0 -1
- package/es/src/shapes/Circle.js.map +0 -1
- package/es/src/shapes/Image.js.map +0 -1
- package/es/src/shapes/Line.js.map +0 -1
- package/es/src/shapes/Path.js.map +0 -1
- package/es/src/shapes/Rect.js.map +0 -1
- package/es/src/shapes/Shape.js.map +0 -1
- package/es/src/shapes/Whisker.js.map +0 -1
- package/es/src/shapes/buildLabelData.js.map +0 -1
- package/es/src/shapes/emitLabels.js.map +0 -1
- package/es/src/shapes/hitAreaNode.js.map +0 -1
- package/es/src/shapes/index.js.map +0 -1
- package/es/src/shapes/interactionPoints.js.map +0 -1
- package/es/src/shapes/sceneSort.js.map +0 -1
- package/es/src/shapes/shapeConfig.js.map +0 -1
- package/es/src/shapes/textureKey.js.map +0 -1
- package/es/src/shapes/validateShapeConfig.js.map +0 -1
- package/es/src/utils/AccessorFn.js.map +0 -1
- package/es/src/utils/BaseClass.js.map +0 -1
- package/es/src/utils/D3Scale.js.map +0 -1
- package/es/src/utils/D3plusConfig.js.map +0 -1
- package/es/src/utils/RESET.js.map +0 -1
- package/es/src/utils/accessor.js.map +0 -1
- package/es/src/utils/configDefault.js.map +0 -1
- package/es/src/utils/configPrep.js.map +0 -1
- package/es/src/utils/configWarnings.js.map +0 -1
- package/es/src/utils/constant.js.map +0 -1
- package/es/src/utils/getProp.js.map +0 -1
- package/es/src/utils/index.js.map +0 -1
- package/es/src/utils/paintComponentScene.js.map +0 -1
- package/es/umd-entry.js +0 -16
- package/es/umd-entry.js.map +0 -1
- package/types/src/charts/AreaPlot.d.ts +0 -16
- package/types/src/charts/BarChart.d.ts +0 -16
- package/types/src/charts/BoxWhisker.d.ts +0 -11
- package/types/src/charts/BumpChart.d.ts +0 -36
- package/types/src/charts/ChartDefinition.d.ts +0 -75
- package/types/src/charts/Donut.d.ts +0 -11
- package/types/src/charts/Geomap.d.ts +0 -126
- package/types/src/charts/LinePlot.d.ts +0 -15
- package/types/src/charts/Matrix.d.ts +0 -48
- package/types/src/charts/Network.d.ts +0 -54
- package/types/src/charts/Pack.d.ts +0 -34
- package/types/src/charts/Pie.d.ts +0 -17
- package/types/src/charts/Plot.d.ts +0 -150
- package/types/src/charts/Priestley.d.ts +0 -37
- package/types/src/charts/Radar.d.ts +0 -38
- package/types/src/charts/RadialMatrix.d.ts +0 -63
- package/types/src/charts/Rings.d.ts +0 -61
- package/types/src/charts/Sankey.d.ts +0 -77
- package/types/src/charts/StackedArea.d.ts +0 -14
- package/types/src/charts/Tree.d.ts +0 -17
- package/types/src/charts/Treemap.d.ts +0 -42
- package/types/src/charts/Viz.d.ts +0 -90
- package/types/src/charts/VizBase.d.ts +0 -158
- package/types/src/charts/VizBaseConfig.d.ts +0 -148
- package/types/src/charts/applyDefinition.d.ts +0 -13
- package/types/src/charts/axes.d.ts +0 -134
- package/types/src/charts/chartGeometry.d.ts +0 -58
- package/types/src/charts/drawSteps/drawAttribution.d.ts +0 -7
- package/types/src/charts/drawSteps/drawBack.d.ts +0 -6
- package/types/src/charts/drawSteps/drawColorScale.d.ts +0 -6
- package/types/src/charts/drawSteps/drawLegend.d.ts +0 -12
- package/types/src/charts/drawSteps/drawSubtitle.d.ts +0 -7
- package/types/src/charts/drawSteps/drawTimeline.d.ts +0 -7
- package/types/src/charts/drawSteps/drawTitle.d.ts +0 -7
- package/types/src/charts/drawSteps/drawTotal.d.ts +0 -7
- package/types/src/charts/emitHelpers.d.ts +0 -122
- package/types/src/charts/ensureZoomDom.d.ts +0 -39
- package/types/src/charts/factories.d.ts +0 -73
- package/types/src/charts/features/colorScaleBucketShare.d.ts +0 -16
- package/types/src/charts/features.d.ts +0 -152
- package/types/src/charts/featuresLegend.d.ts +0 -12
- package/types/src/charts/legendLabel.d.ts +0 -11
- package/types/src/charts/lineLabels.d.ts +0 -40
- package/types/src/charts/makeChart.d.ts +0 -22
- package/types/src/charts/pipeline/vizContext.d.ts +0 -45
- package/types/src/charts/pipeline/vizDrawPure.d.ts +0 -46
- package/types/src/charts/pipeline/vizPreDrawPure.d.ts +0 -68
- package/types/src/charts/plotPaint.d.ts +0 -233
- package/types/src/charts/resolveSpec.d.ts +0 -50
- package/types/src/charts/runChartDraw.d.ts +0 -38
- package/types/src/charts/runVizPipeline.d.ts +0 -31
- package/types/src/charts/shapeEmit.d.ts +0 -61
- package/types/src/charts/stages.d.ts +0 -117
- package/types/src/charts/viz/VizBaseConfig.d.ts +0 -175
- package/types/src/charts/vizContext.d.ts +0 -46
- package/types/src/charts/vizDefaults.d.ts +0 -8
- package/types/src/charts/vizDraw.d.ts +0 -25
- package/types/src/charts/vizDrawPure.d.ts +0 -17
- package/types/src/charts/vizPreDraw.d.ts +0 -22
- package/types/src/charts/vizPreDrawPure.d.ts +0 -40
- package/types/src/charts/vizRender.d.ts +0 -8
- package/types/src/charts/vizTypes.d.ts +0 -202
- package/types/src/components/Axis.d.ts +0 -183
- package/types/src/components/AxisBottom.d.ts +0 -11
- package/types/src/components/AxisLeft.d.ts +0 -11
- package/types/src/components/AxisRight.d.ts +0 -11
- package/types/src/components/AxisTop.d.ts +0 -11
- package/types/src/components/ColorScale.d.ts +0 -80
- package/types/src/components/Legend.d.ts +0 -93
- package/types/src/components/Timeline.d.ts +0 -83
- package/types/src/components/axisLayout.d.ts +0 -27
- package/types/src/components/axisLayoutLabels.d.ts +0 -42
- package/types/src/components/axisLayoutScale.d.ts +0 -12
- package/types/src/components/axisRender.d.ts +0 -65
- package/types/src/components/colorScaleRender.d.ts +0 -15
- package/types/src/components/colorScaleScale.d.ts +0 -19
- package/types/src/components/legendConfig.d.ts +0 -7
- package/types/src/components/legendRender.d.ts +0 -16
- package/types/src/components/timelineConfig.d.ts +0 -6
- package/types/src/components/timelineRender.d.ts +0 -14
- package/umd/d3plus-core.full.js.map +0 -1
- package/umd/d3plus-core.js.map +0 -1
|
@@ -1,538 +0,0 @@
|
|
|
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_prototype_of(o) {
|
|
31
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
32
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
33
|
-
};
|
|
34
|
-
return _get_prototype_of(o);
|
|
35
|
-
}
|
|
36
|
-
function _inherits(subClass, superClass) {
|
|
37
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
38
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
39
|
-
}
|
|
40
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
41
|
-
constructor: {
|
|
42
|
-
value: subClass,
|
|
43
|
-
writable: true,
|
|
44
|
-
configurable: true
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
48
|
-
}
|
|
49
|
-
function _instanceof(left, right) {
|
|
50
|
-
"@swc/helpers - instanceof";
|
|
51
|
-
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
52
|
-
return !!right[Symbol.hasInstance](left);
|
|
53
|
-
} else {
|
|
54
|
-
return left instanceof right;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
function _possible_constructor_return(self, call) {
|
|
58
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
59
|
-
return call;
|
|
60
|
-
}
|
|
61
|
-
return _assert_this_initialized(self);
|
|
62
|
-
}
|
|
63
|
-
function _set_prototype_of(o, p) {
|
|
64
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
65
|
-
o.__proto__ = p;
|
|
66
|
-
return o;
|
|
67
|
-
};
|
|
68
|
-
return _set_prototype_of(o, p);
|
|
69
|
-
}
|
|
70
|
-
function _type_of(obj) {
|
|
71
|
-
"@swc/helpers - typeof";
|
|
72
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
73
|
-
}
|
|
74
|
-
function _is_native_reflect_construct() {
|
|
75
|
-
try {
|
|
76
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
77
|
-
} catch (_) {}
|
|
78
|
-
return (_is_native_reflect_construct = function() {
|
|
79
|
-
return !!result;
|
|
80
|
-
})();
|
|
81
|
-
}
|
|
82
|
-
import { merge as arrayMerge } from "d3-array";
|
|
83
|
-
import { addToQueue, unique } from "@d3plus/data";
|
|
84
|
-
import { assign } from "@d3plus/dom";
|
|
85
|
-
import { fontFamilyStringify } from "@d3plus/text";
|
|
86
|
-
import { accessor, BaseClass, constant } from "../../utils/index.js";
|
|
87
|
-
import { broadcastLink } from "./linkGroup.js";
|
|
88
|
-
var VizBaseConfig = /*#__PURE__*/ function(BaseClass) {
|
|
89
|
-
"use strict";
|
|
90
|
-
_inherits(VizBaseConfig, BaseClass);
|
|
91
|
-
function VizBaseConfig() {
|
|
92
|
-
_class_call_check(this, VizBaseConfig);
|
|
93
|
-
return _call_super(this, VizBaseConfig, arguments);
|
|
94
|
-
}
|
|
95
|
-
_create_class(VizBaseConfig, [
|
|
96
|
-
{
|
|
97
|
-
/**
|
|
98
|
-
The active callback function for highlighting shapes.
|
|
99
|
-
*/ key: "active",
|
|
100
|
-
value: function active(_) {
|
|
101
|
-
this._active = _;
|
|
102
|
-
if (this.schema.shapeConfig.activeOpacity !== 1) {
|
|
103
|
-
this._shapes.forEach(function(s) {
|
|
104
|
-
return s.active(_);
|
|
105
|
-
});
|
|
106
|
-
if (this.schema.legend) this._legendClass.active(_);
|
|
107
|
-
// See hover(): scene-rendered charts dim via the scene's
|
|
108
|
-
// interaction-opacity pass, so repaint to apply/clear active state.
|
|
109
|
-
if (this._sceneRenderer) this._scheduleSceneRepaint();
|
|
110
|
-
}
|
|
111
|
-
broadcastLink(this, "active", _);
|
|
112
|
-
return this;
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
/**
|
|
117
|
-
Custom aggregation methods for each data key.
|
|
118
|
-
*/ key: "aggs",
|
|
119
|
-
value: function aggs(_) {
|
|
120
|
-
return arguments.length ? (this.schema.aggs = assign(this.schema.aggs, _), this) : this.schema.aggs;
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
/**
|
|
125
|
-
Sets text to be shown positioned absolute on top of the visualization in the bottom-right corner. This is most often used in Geomaps to display the copyright of map tiles. The text is rendered as HTML, so any valid HTML string will render as expected (eg. anchor links work).
|
|
126
|
-
*/ key: "attribution",
|
|
127
|
-
value: function attribution(_) {
|
|
128
|
-
return arguments.length ? (this.schema.attribution = _, this) : this.schema.attribution;
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
/**
|
|
133
|
-
Overrides the "ⓘ" icon a long attribution collapses to (see `attribution`), which otherwise renders as an inline SVG. Accepts an HTML string — used as the toggle button's content — or a mount function, `(el: HTMLElement) => void | (() => void)`, called once with the button's reserved icon slot so a live component (a React tree via `createRoot(el).render(...)`, or anything else imperative) can be mounted into it. A returned cleanup function runs right before that slot is discarded, which happens whenever the credit's markup regenerates (its text or theme changes), not just once per chart.
|
|
134
|
-
*/ key: "attributionIcon",
|
|
135
|
-
value: function attributionIcon(_) {
|
|
136
|
-
return arguments.length ? (this.schema.attributionIcon = _, this) : this.schema.attributionIcon;
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
/**
|
|
141
|
-
Configuration object for the attribution style.
|
|
142
|
-
*/ key: "attributionStyle",
|
|
143
|
-
value: function attributionStyle(_) {
|
|
144
|
-
return arguments.length ? (this.schema.attributionStyle = assign(this.schema.attributionStyle, _), this) : this.schema.attributionStyle;
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
/**
|
|
149
|
-
Configuration object for the back button. Superseded by
|
|
150
|
-
`.backControlStyle()`/`.backControlClassName()` for the button's
|
|
151
|
-
appearance (it renders as a real `<button>`, like the zoom/search
|
|
152
|
-
controls, not a configurable text node) — kept for backwards
|
|
153
|
-
compatibility, but no longer affects how the button looks.
|
|
154
|
-
*/ key: "backConfig",
|
|
155
|
-
value: function backConfig(_) {
|
|
156
|
-
return arguments.length ? (this.schema.backConfig = assign(this.schema.backConfig, _), this) : this.schema.backConfig;
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
/**
|
|
161
|
-
An additional CSS class name (or space-separated list of class names) applied to the back button, alongside its fixed `back-control` class. Setting this automatically disables d3plus's built-in inline `backControlStyle` default (as long as you haven't already customized it yourself), so a host page's own button styling — Tailwind, Bootstrap, a design system — applies through the cascade with no other configuration needed.
|
|
162
|
-
*/ key: "backControlClassName",
|
|
163
|
-
value: function backControlClassName(_) {
|
|
164
|
-
return arguments.length ? (this.schema.backControlClassName = _, this) : this.schema.backControlClassName;
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
/**
|
|
169
|
-
An object containing CSS key/value pairs that is used to style the back button. Passing `false` will remove all default styling. Automatically skipped (as if `false`) once `.backControlClassName(...)` is set, unless you've explicitly customized this yourself.
|
|
170
|
-
*/ key: "backControlStyle",
|
|
171
|
-
value: function backControlStyle(_) {
|
|
172
|
-
return arguments.length ? (this.schema.backControlStyle = _, this) : this.schema.backControlStyle;
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
/**
|
|
177
|
-
Defines the main color to be used for each data point in a visualization. Can be either an accessor function or a string key to reference in each data point. If a color value is returned, it will be used as is. If a string is returned, a unique color will be assigned based on the string.
|
|
178
|
-
*/ key: "color",
|
|
179
|
-
value: function color(_) {
|
|
180
|
-
return arguments.length ? (this.schema.color = !_ || typeof _ === "function" ? _ : accessor(_), this) : this.schema.color;
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
/**
|
|
185
|
-
Defines the value to be used for a color scale. Can be either an accessor function or a string key to reference in each data point.
|
|
186
|
-
*/ key: "colorScale",
|
|
187
|
-
value: function colorScale(_) {
|
|
188
|
-
return arguments.length ? (this.schema.colorScale = !_ || typeof _ === "function" ? _ : accessor(_), this) : this.schema.colorScale;
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
/**
|
|
193
|
-
A pass-through to the config method of ColorScale.
|
|
194
|
-
*/ key: "colorScaleConfig",
|
|
195
|
-
value: function colorScaleConfig(_) {
|
|
196
|
-
return arguments.length ? (this.schema.colorScaleConfig = assign(this.schema.colorScaleConfig, _), this) : this.schema.colorScaleConfig;
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
/**
|
|
201
|
-
Tells the colorScale whether or not to use the internal padding defined by the visualization in it's positioning. For example, d3plus-plot will add padding on the left so that the colorScale appears centered above the x-axis. By default, this padding is only applied on screens larger than 600 pixels wide.
|
|
202
|
-
*/ key: "colorScalePadding",
|
|
203
|
-
value: function colorScalePadding(_) {
|
|
204
|
-
return arguments.length ? (this.schema.colorScalePadding = typeof _ === "function" ? _ : constant(_), this) : this.schema.colorScalePadding;
|
|
205
|
-
}
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
/**
|
|
209
|
-
Defines which side of the visualization to anchor the color scale. Acceptable values are `"top"`, `"bottom"`, `"left"`, `"right"`, and `false`. A `false` value will cause the color scale to not be displayed, but will still color shapes based on the scale.
|
|
210
|
-
*/ key: "colorScalePosition",
|
|
211
|
-
value: function colorScalePosition(_) {
|
|
212
|
-
return arguments.length ? (this.schema.colorScalePosition = typeof _ === "function" ? _ : constant(_), this) : this.schema.colorScalePosition;
|
|
213
|
-
}
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
/**
|
|
217
|
-
The maximum pixel size for drawing the color scale: width for horizontal scales and height for vertical scales.
|
|
218
|
-
*/ key: "colorScaleMaxSize",
|
|
219
|
-
value: function colorScaleMaxSize(_) {
|
|
220
|
-
return arguments.length ? (this.schema.colorScaleMaxSize = _, this) : this.schema.colorScaleMaxSize;
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
/**
|
|
225
|
-
The primary data array used to draw the visualization. The value passed should be an *Array* of objects or a *String* representing a filepath or URL to be loaded. The following filetypes are supported: `csv`, `tsv`, `txt`, and `json`.
|
|
226
|
-
|
|
227
|
-
If your data URL needs specific headers to be set, an Object with "url" and "headers" keys may also be passed.
|
|
228
|
-
|
|
229
|
-
Additionally, a custom formatting function can be passed as a second argument to this method. This custom function will be passed the data that has been loaded, as long as there are no errors. This function should return the final array of obejcts to be used as the primary data array. For example, some JSON APIs return the headers split from the data values to save bandwidth. These would need be joined using a custom formatter.
|
|
230
|
-
|
|
231
|
-
If you would like to specify certain configuration options based on the yet-to-be-loaded data, you can also return a full `config` object from the data formatter (including the new `data` array as a key in the object).
|
|
232
|
-
|
|
233
|
-
Defaults to an empty array (`[]`).
|
|
234
|
-
@param f The data array or a URL string to load data from.
|
|
235
|
-
*/ key: "data",
|
|
236
|
-
value: function data(_, f) {
|
|
237
|
-
if (arguments.length) {
|
|
238
|
-
addToQueue.bind(this)(_, f, "data");
|
|
239
|
-
this._hidden = [];
|
|
240
|
-
this._solo = [];
|
|
241
|
-
if (this._userData && JSON.stringify(_) !== JSON.stringify(this._userData)) {
|
|
242
|
-
this.schema.timeFilter = false;
|
|
243
|
-
this._timelineSelection = false;
|
|
244
|
-
}
|
|
245
|
-
this._userData = _;
|
|
246
|
-
return this;
|
|
247
|
-
}
|
|
248
|
-
return this._data;
|
|
249
|
-
}
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
/**
|
|
253
|
-
If the width and/or height of a Viz is not user-defined, it is determined by the size of it's parent element. When this method is set to `true`, the Viz will listen for the `window.onresize` event and adjust it's dimensions accordingly.
|
|
254
|
-
*/ key: "detectResize",
|
|
255
|
-
value: function detectResize(_) {
|
|
256
|
-
return arguments.length ? (this.schema.detectResize = _, this) : this.schema.detectResize;
|
|
257
|
-
}
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
/**
|
|
261
|
-
When resizing the browser window, this is the millisecond delay to trigger the resize event.
|
|
262
|
-
*/ key: "detectResizeDelay",
|
|
263
|
-
value: function detectResizeDelay(_) {
|
|
264
|
-
return arguments.length ? (this.schema.detectResizeDelay = _, this) : this.schema.detectResizeDelay;
|
|
265
|
-
}
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
/**
|
|
269
|
-
Toggles whether or not the Viz should try to detect if it visible in the current viewport. When this method is set to `true`, the Viz will only be rendered when it has entered the viewport either through scrolling or if it's display or visibility is changed.
|
|
270
|
-
*/ key: "detectVisible",
|
|
271
|
-
value: function detectVisible(_) {
|
|
272
|
-
return arguments.length ? (this.schema.detectVisible = _, this) : this.schema.detectVisible;
|
|
273
|
-
}
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
/**
|
|
277
|
-
The interval, in milliseconds, for checking if the visualization is visible on the page. When `detectVisible` defers a render until the visualization scrolls into view, this is also how long it must stay in view before it renders, so visualizations scrolled past quickly are never drawn.
|
|
278
|
-
*/ key: "detectVisibleInterval",
|
|
279
|
-
value: function detectVisibleInterval(_) {
|
|
280
|
-
return arguments.length ? (this.schema.detectVisibleInterval = _, this) : this.schema.detectVisibleInterval;
|
|
281
|
-
}
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
/**
|
|
285
|
-
When `true` (the default) and `detectVisible` is enabled, the Viz releases its DOM and scene while it is scrolled out of view and redraws when it returns, keeping the page light when there are many visualizations. Data and configuration are retained; interaction state such as zoom or selection is not, so set this to `false` to keep it. With `detectVisible` enabled, each chart's `<svg>` is also given `content-visibility: auto`, so the browser skips rendering its contents while it is far off-screen (this matters most when this is `false` and charts are kept). For a larger saving you can also apply `content-visibility: auto` and a `contain-intrinsic-size` to the container element yourself; that adds paint containment to an element you own, so it is not done automatically. Requires `IntersectionObserver`.
|
|
286
|
-
*/ key: "detectVisibleUnload",
|
|
287
|
-
value: function detectVisibleUnload(_) {
|
|
288
|
-
return arguments.length ? (this.schema.detectVisibleUnload = _, this) : this.schema.detectVisibleUnload;
|
|
289
|
-
}
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
/**
|
|
293
|
-
The font family used throughout the visualization.
|
|
294
|
-
*/ key: "fontFamily",
|
|
295
|
-
value: function fontFamily(_) {
|
|
296
|
-
var _this = this;
|
|
297
|
-
if (arguments.length) {
|
|
298
|
-
var labelConfig = {
|
|
299
|
-
fontFamily: _
|
|
300
|
-
};
|
|
301
|
-
var axisConfig = {
|
|
302
|
-
titleConfig: labelConfig,
|
|
303
|
-
shapeConfig: {
|
|
304
|
-
labelConfig: labelConfig
|
|
305
|
-
}
|
|
306
|
-
};
|
|
307
|
-
this.shapeConfig({
|
|
308
|
-
labelConfig: labelConfig
|
|
309
|
-
});
|
|
310
|
-
this.colorScaleConfig({
|
|
311
|
-
axisConfig: axisConfig
|
|
312
|
-
});
|
|
313
|
-
[
|
|
314
|
-
"axis",
|
|
315
|
-
"column",
|
|
316
|
-
"row",
|
|
317
|
-
"timeline",
|
|
318
|
-
"x",
|
|
319
|
-
"y",
|
|
320
|
-
"x2",
|
|
321
|
-
"y2"
|
|
322
|
-
].forEach(function(axis) {
|
|
323
|
-
var method = "".concat(axis, "Config");
|
|
324
|
-
if (_this[method]) _this[method](axisConfig);
|
|
325
|
-
});
|
|
326
|
-
[
|
|
327
|
-
"back",
|
|
328
|
-
"title",
|
|
329
|
-
"total",
|
|
330
|
-
"subtitle"
|
|
331
|
-
].forEach(function(label) {
|
|
332
|
-
var method = "".concat(label, "Config");
|
|
333
|
-
if (_this[method]) _this[method](labelConfig);
|
|
334
|
-
});
|
|
335
|
-
this.tooltipConfig({
|
|
336
|
-
tooltipStyle: {
|
|
337
|
-
"font-family": fontFamilyStringify(_)
|
|
338
|
-
}
|
|
339
|
-
});
|
|
340
|
-
this.schema.fontFamily = _;
|
|
341
|
-
return this;
|
|
342
|
-
}
|
|
343
|
-
return this.schema.fontFamily;
|
|
344
|
-
}
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
/**
|
|
348
|
-
Defines the mapping between data and shape. The value can be a String matching a key in each data point (default is "id"), or an accessor Function that returns a unique value for each data point. Additionally, an Array of these values may be provided if the visualization supports nested hierarchies.
|
|
349
|
-
*/ key: "groupBy",
|
|
350
|
-
value: function groupBy(_) {
|
|
351
|
-
var _this = this;
|
|
352
|
-
if (!arguments.length) return this.schema.groupBy;
|
|
353
|
-
this._groupByRaw = _;
|
|
354
|
-
var arr = _instanceof(_, Array) ? _ : [
|
|
355
|
-
_
|
|
356
|
-
];
|
|
357
|
-
return this.schema.groupBy = arr.map(function(k) {
|
|
358
|
-
if (typeof k === "function") return k;
|
|
359
|
-
else {
|
|
360
|
-
if (!_this.schema.aggs[k]) {
|
|
361
|
-
_this.schema.aggs[k] = function(a, c) {
|
|
362
|
-
var v = unique(a.map(c));
|
|
363
|
-
return v.length === 1 ? v[0] : v;
|
|
364
|
-
};
|
|
365
|
-
}
|
|
366
|
-
return accessor(k);
|
|
367
|
-
}
|
|
368
|
-
}), this;
|
|
369
|
-
}
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
/**
|
|
373
|
-
Defines the color used for legend shapes when the corresponding grouping is hidden from display (by clicking on the legend).
|
|
374
|
-
*/ key: "hiddenColor",
|
|
375
|
-
value: function hiddenColor(_) {
|
|
376
|
-
return arguments.length ? (this.schema.hiddenColor = typeof _ === "function" ? _ : constant(_), this) : this.schema.hiddenColor;
|
|
377
|
-
}
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
/**
|
|
381
|
-
Defines the opacity used for legend labels when the corresponding grouping is hidden from display (by clicking on the legend).
|
|
382
|
-
*/ key: "hiddenOpacity",
|
|
383
|
-
value: function hiddenOpacity(_) {
|
|
384
|
-
return arguments.length ? (this.schema.hiddenOpacity = typeof _ === "function" ? _ : constant(_), this) : this.schema.hiddenOpacity;
|
|
385
|
-
}
|
|
386
|
-
},
|
|
387
|
-
{
|
|
388
|
-
/**
|
|
389
|
-
The hover callback function for highlighting shapes on mouseover.
|
|
390
|
-
*/ key: "hover",
|
|
391
|
-
value: function hover(_) {
|
|
392
|
-
var _this = this;
|
|
393
|
-
var hoverFunction = this._hover = _;
|
|
394
|
-
if (this.schema.shapeConfig.hoverOpacity !== 1 && _ !== undefined) {
|
|
395
|
-
if (typeof _ === "function") {
|
|
396
|
-
var shapeData = arrayMerge(this._shapes.map(function(s) {
|
|
397
|
-
return s.data();
|
|
398
|
-
}));
|
|
399
|
-
shapeData = shapeData.concat(this._legendClass.data());
|
|
400
|
-
var activeData = _ ? shapeData.filter(_) : [];
|
|
401
|
-
// Build a Set<string> of activeIds for O(1) membership lookup.
|
|
402
|
-
// Previously `activeIds.filter((id, i) => activeIds.indexOf(id) === i)`
|
|
403
|
-
// was O(N²) dedup, and the hover predicate did `activeIds.includes(...)`
|
|
404
|
-
// — also O(N) per datum per repaint. With ~5k segments, hover
|
|
405
|
-
// dispatch was ~250 ms on a 2023 laptop; Set drops it to <5 ms.
|
|
406
|
-
var activeIds = new Set();
|
|
407
|
-
activeData.map(this._ids).forEach(function(ids) {
|
|
408
|
-
for(var x = 1; x <= ids.length; x++){
|
|
409
|
-
activeIds.add(JSON.stringify(ids.slice(0, x)));
|
|
410
|
-
}
|
|
411
|
-
});
|
|
412
|
-
if (activeIds.size) hoverFunction = function hoverFunction(d, i) {
|
|
413
|
-
return activeIds.has(JSON.stringify(_this._ids(d, i)));
|
|
414
|
-
};
|
|
415
|
-
}
|
|
416
|
-
this._shapes.forEach(function(s) {
|
|
417
|
-
return s.hover(hoverFunction);
|
|
418
|
-
});
|
|
419
|
-
if (this.schema.legend) this._legendClass.hover(hoverFunction);
|
|
420
|
-
}
|
|
421
|
-
// Scene-rendered charts emit into `_chartScene` (not `_shapes`), so the
|
|
422
|
-
// forEach above is a no-op for them. Repaint so the scene's
|
|
423
|
-
// interaction-opacity pass re-reads `_hover` and dims the non-matching
|
|
424
|
-
// nodes (or restores them when `_` is `false`). Also repaint for a
|
|
425
|
-
// colorScale-bucket hover even when per-shape dimming is off
|
|
426
|
-
// (`hoverOpacity: 1`, e.g. Geomap): the bucket highlight is applied by that
|
|
427
|
-
// same pass, so without a repaint the map would never re-compose. Coalesced
|
|
428
|
-
// to one paint per frame so a fast pointer sweep doesn't saturate the main
|
|
429
|
-
// thread.
|
|
430
|
-
if (this._sceneRenderer && _ !== undefined && (this.schema.shapeConfig.hoverOpacity !== 1 || this._hoverBucket)) this._scheduleSceneRepaint();
|
|
431
|
-
broadcastLink(this, "hover", _);
|
|
432
|
-
return this;
|
|
433
|
-
}
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
/**
|
|
437
|
-
Persistently emphasizes the data points matching the given predicate: the
|
|
438
|
-
matching marks keep their color while every other mark is de-emphasized to
|
|
439
|
-
a neutral gray (the "emphasis" form — highlight one series, gray the rest).
|
|
440
|
-
Unlike `hover`/`active` (transient, opacity-based), `highlight` is a
|
|
441
|
-
standing state that survives pointer movement. Pass `false` to clear it.
|
|
442
|
-
*/ key: "highlight",
|
|
443
|
-
value: function highlight(_) {
|
|
444
|
-
if (!arguments.length) return this._highlight;
|
|
445
|
-
this._highlight = _;
|
|
446
|
-
// Scene-rendered charts express de-emphasis via the scene's
|
|
447
|
-
// interaction-opacity pass, so repaint to apply/clear the gray treatment.
|
|
448
|
-
if (this._sceneRenderer) this._scheduleSceneRepaint();
|
|
449
|
-
broadcastLink(this, "highlight", _);
|
|
450
|
-
return this;
|
|
451
|
-
}
|
|
452
|
-
},
|
|
453
|
-
{
|
|
454
|
-
/**
|
|
455
|
-
Accessor function, or a constant string applied to every data point's
|
|
456
|
-
label (unlike `value`/`nodeId`/etc., a string here is not treated as a
|
|
457
|
-
per-datum object key — pass a function for that).
|
|
458
|
-
*/ key: "label",
|
|
459
|
-
value: function label(_) {
|
|
460
|
-
return arguments.length ? (this.schema.label = typeof _ === "function" ? _ : constant(_), this) : this.schema.label;
|
|
461
|
-
}
|
|
462
|
-
},
|
|
463
|
-
{
|
|
464
|
-
/**
|
|
465
|
-
Whether to display the legend.
|
|
466
|
-
*/ key: "legend",
|
|
467
|
-
value: function legend(_) {
|
|
468
|
-
return arguments.length ? (this.schema.legend = typeof _ === "function" ? _ : constant(_), this) : this.schema.legend;
|
|
469
|
-
}
|
|
470
|
-
},
|
|
471
|
-
{
|
|
472
|
-
/**
|
|
473
|
-
Configuration object passed to the legend's config method.
|
|
474
|
-
*/ key: "legendConfig",
|
|
475
|
-
value: function legendConfig(_) {
|
|
476
|
-
return arguments.length ? (this.schema.legendConfig = assign(this.schema.legendConfig, _), this) : this.schema.legendConfig;
|
|
477
|
-
}
|
|
478
|
-
},
|
|
479
|
-
{
|
|
480
|
-
/**
|
|
481
|
-
Defines the click functionality of categorical legend squares. When set to false, clicking will hide that category and shift+clicking will solo that category. When set to true, clicking with solo that category and shift+clicking will hide that category.
|
|
482
|
-
*/ key: "legendFilterInvert",
|
|
483
|
-
value: function legendFilterInvert(_) {
|
|
484
|
-
return arguments.length ? (this.schema.legendFilterInvert = typeof _ === "function" ? _ : constant(_), this) : this.schema.legendFilterInvert;
|
|
485
|
-
}
|
|
486
|
-
},
|
|
487
|
-
{
|
|
488
|
-
/**
|
|
489
|
-
Whether the chart may draw one of its legends inside the empty space around its marks instead of in a margin, for charts that leave room (Plot, Network, Pack, Pie, Rings, Tree, and Geomap). After the chart lays out, the size legend is tried first, then the legend, then the colorScale; the first that fits is drawn over a semi-transparent box (see `legendInsetConfig`), and any others keep their margins. Space enclosed by the marks, like the middle of a ring of points, is never used. A legend or colorScale whose position was set explicitly stays in that margin. Defaults to `true`; also accepts a function that receives the resolved chart config and returns a boolean.
|
|
490
|
-
*/ key: "legendInset",
|
|
491
|
-
value: function legendInset(_) {
|
|
492
|
-
return arguments.length ? (this.schema.legendInset = _, this) : this.schema.legendInset;
|
|
493
|
-
}
|
|
494
|
-
},
|
|
495
|
-
{
|
|
496
|
-
/**
|
|
497
|
-
Style of the box drawn behind a legend placed inside the chart (see `legendInset`): `fill` (defaults to the chart's background color), `fillOpacity` (0.85), `stroke` (defaults to a faint contrasting line), `strokeWidth` (1), `rx` (corner radius, 4), `margin` (space between the box's edge and the legend, 6), and `padding` (space kept between the box and the chart's marks and edges, 10).
|
|
498
|
-
*/ key: "legendInsetConfig",
|
|
499
|
-
value: function legendInsetConfig(_) {
|
|
500
|
-
return arguments.length ? (this.schema.legendInsetConfig = assign(this.schema.legendInsetConfig, _), this) : this.schema.legendInsetConfig;
|
|
501
|
-
}
|
|
502
|
-
},
|
|
503
|
-
{
|
|
504
|
-
/**
|
|
505
|
-
Tells the legend whether or not to use the internal padding defined by the visualization in it's positioning. For example, d3plus-plot will add padding on the left so that the legend appears centered underneath the x-axis. By default, this padding is only applied on screens larger than 600 pixels wide.
|
|
506
|
-
*/ key: "legendPadding",
|
|
507
|
-
value: function legendPadding(_) {
|
|
508
|
-
return arguments.length ? (this.schema.legendPadding = typeof _ === "function" ? _ : constant(_), this) : this.schema.legendPadding;
|
|
509
|
-
}
|
|
510
|
-
},
|
|
511
|
-
{
|
|
512
|
-
/**
|
|
513
|
-
Defines which side of the visualization to anchor the legend. Expected values are `"top"`, `"bottom"`, `"left"`, and `"right"`.
|
|
514
|
-
*/ key: "legendPosition",
|
|
515
|
-
value: function legendPosition(_) {
|
|
516
|
-
return arguments.length ? (this.schema.legendPosition = typeof _ === "function" ? _ : constant(_), this) : this.schema.legendPosition;
|
|
517
|
-
}
|
|
518
|
-
},
|
|
519
|
-
{
|
|
520
|
-
/**
|
|
521
|
-
Configuration object for the legend tooltip.
|
|
522
|
-
*/ key: "legendTooltip",
|
|
523
|
-
value: function legendTooltip(_) {
|
|
524
|
-
return arguments.length ? (this.schema.legendTooltip = assign(this.schema.legendTooltip, _), this) : this.schema.legendTooltip;
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
]);
|
|
528
|
-
return VizBaseConfig;
|
|
529
|
-
}(BaseClass);
|
|
530
|
-
/**
|
|
531
|
-
First half of the fluent config accessors shared by every Viz chart
|
|
532
|
-
(`active` through `legendTooltip`). Split from `VizBase` purely so each
|
|
533
|
-
file stays under the `max-lines` budget; the methods remain real prototype
|
|
534
|
-
methods, so `BaseClass.config()` reflection and polymorphic `this` chaining
|
|
535
|
-
are unchanged.
|
|
536
|
-
*/ export { VizBaseConfig as default };
|
|
537
|
-
|
|
538
|
-
//# sourceMappingURL=VizBaseConfig.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/charts/viz/VizBaseConfig.ts"],"sourcesContent":["import {merge as arrayMerge} from \"d3-array\";\n\nimport {addToQueue, unique} from \"@d3plus/data\";\nimport {assign} from \"@d3plus/dom\";\nimport {fontFamilyStringify} from \"@d3plus/text\";\nimport type {DataPoint} from \"@d3plus/data\";\n\nimport {accessor, BaseClass, constant} from \"../../utils/index.js\";\nimport {broadcastLink} from \"./linkGroup.js\";\nimport type {VizInstance} from \"./vizTypes.js\";\nimport type VizBase from \"./VizBase.js\";\n\n/**\n First half of the fluent config accessors shared by every Viz chart\n (`active` through `legendTooltip`). Split from `VizBase` purely so each\n file stays under the `max-lines` budget; the methods remain real prototype\n methods, so `BaseClass.config()` reflection and polymorphic `this` chaining\n are unchanged.\n*/\nexport default class VizBaseConfig extends BaseClass {\n // installFluent generates the config accessors (data, sum, x, …) and the\n // pipeline stamps derived `_`-prefixed state at runtime; the index signature\n // lets the chart code reach both through the type (same rationale as the\n // shape/component classes).\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n [key: string]: any;\n\n /**\n The active callback function for highlighting shapes.\n*/\n active(\n _?: ((d: DataPoint, i: number) => boolean) | false,\n ): this | ((d: DataPoint, i: number) => boolean) | false {\n this._active = _;\n\n if (this.schema.shapeConfig.activeOpacity !== 1) {\n this._shapes.forEach((s: {active: (...args: unknown[]) => unknown}) => s.active(_));\n if (this.schema.legend) this._legendClass.active(_);\n // See hover(): scene-rendered charts dim via the scene's\n // interaction-opacity pass, so repaint to apply/clear active state.\n if (this._sceneRenderer) this._scheduleSceneRepaint();\n }\n\n broadcastLink(this as unknown as VizInstance, \"active\", _);\n return this;\n }\n\n /**\n Custom aggregation methods for each data key.\n*/\n aggs(_?: Record<string, unknown>): this | Record<string, unknown> {\n return arguments.length\n ? ((this.schema.aggs = assign(this.schema.aggs, _!)), this)\n : this.schema.aggs;\n }\n\n /**\n Sets text to be shown positioned absolute on top of the visualization in the bottom-right corner. This is most often used in Geomaps to display the copyright of map tiles. The text is rendered as HTML, so any valid HTML string will render as expected (eg. anchor links work).\n*/\n attribution(_?: string | boolean): this | string | boolean {\n return arguments.length\n ? ((this.schema.attribution = _), this)\n : this.schema.attribution;\n }\n\n /**\n Overrides the \"ⓘ\" icon a long attribution collapses to (see `attribution`), which otherwise renders as an inline SVG. Accepts an HTML string — used as the toggle button's content — or a mount function, `(el: HTMLElement) => void | (() => void)`, called once with the button's reserved icon slot so a live component (a React tree via `createRoot(el).render(...)`, or anything else imperative) can be mounted into it. A returned cleanup function runs right before that slot is discarded, which happens whenever the credit's markup regenerates (its text or theme changes), not just once per chart.\n*/\n attributionIcon(\n _?: string | ((el: HTMLElement) => void | (() => void)),\n ): this | string | ((el: HTMLElement) => void | (() => void)) | undefined {\n return arguments.length\n ? ((this.schema.attributionIcon = _), this)\n : (this.schema.attributionIcon as\n | string\n | ((el: HTMLElement) => void | (() => void))\n | undefined);\n }\n\n /**\n Configuration object for the attribution style.\n*/\n attributionStyle(\n _?: Record<string, unknown>,\n ): this | Record<string, unknown> {\n return arguments.length\n ? ((this.schema.attributionStyle = assign(this.schema.attributionStyle, _!)), this)\n : this.schema.attributionStyle;\n }\n\n /**\n Configuration object for the back button. Superseded by\n `.backControlStyle()`/`.backControlClassName()` for the button's\n appearance (it renders as a real `<button>`, like the zoom/search\n controls, not a configurable text node) — kept for backwards\n compatibility, but no longer affects how the button looks.\n*/\n backConfig(_?: Record<string, unknown>): this | Record<string, unknown> {\n return arguments.length\n ? ((this.schema.backConfig = assign(this.schema.backConfig, _!)), this)\n : this.schema.backConfig;\n }\n\n /**\n An additional CSS class name (or space-separated list of class names) applied to the back button, alongside its fixed `back-control` class. Setting this automatically disables d3plus's built-in inline `backControlStyle` default (as long as you haven't already customized it yourself), so a host page's own button styling — Tailwind, Bootstrap, a design system — applies through the cascade with no other configuration needed.\n*/\n backControlClassName(_?: string): this | string {\n return arguments.length\n ? ((this.schema.backControlClassName = _), this)\n : this.schema.backControlClassName;\n }\n\n /**\n An object containing CSS key/value pairs that is used to style the back button. Passing `false` will remove all default styling. Automatically skipped (as if `false`) once `.backControlClassName(...)` is set, unless you've explicitly customized this yourself.\n*/\n backControlStyle(\n _?: Record<string, unknown> | false,\n ): this | Record<string, unknown> | false {\n return arguments.length\n ? ((this.schema.backControlStyle = _), this)\n : this.schema.backControlStyle;\n }\n\n /**\n Defines the main color to be used for each data point in a visualization. Can be either an accessor function or a string key to reference in each data point. If a color value is returned, it will be used as is. If a string is returned, a unique color will be assigned based on the string.\n*/\n color(\n _?:\n | string\n | ((d: DataPoint, i: number) => DataPoint[keyof DataPoint])\n | false,\n ):\n | this\n | string\n | ((d: DataPoint, i: number) => DataPoint[keyof DataPoint])\n | false {\n return arguments.length\n ? ((this.schema.color = !_ || typeof _ === \"function\" ? _ : accessor(_)), this)\n : this.schema.color;\n }\n\n /**\n Defines the value to be used for a color scale. Can be either an accessor function or a string key to reference in each data point.\n*/\n colorScale(\n _?:\n | string\n | ((d: DataPoint, i: number) => DataPoint[keyof DataPoint])\n | false,\n ):\n | this\n | string\n | ((d: DataPoint, i: number) => DataPoint[keyof DataPoint])\n | false {\n return arguments.length\n ? ((this.schema.colorScale = !_ || typeof _ === \"function\" ? _ : accessor(_)),\n this)\n : this.schema.colorScale;\n }\n\n /**\n A pass-through to the config method of ColorScale.\n*/\n colorScaleConfig(\n _?: Record<string, unknown>,\n ): this | Record<string, unknown> {\n return arguments.length\n ? ((this.schema.colorScaleConfig = assign(this.schema.colorScaleConfig, _!)), this)\n : this.schema.colorScaleConfig;\n }\n\n /**\n Tells the colorScale whether or not to use the internal padding defined by the visualization in it's positioning. For example, d3plus-plot will add padding on the left so that the colorScale appears centered above the x-axis. By default, this padding is only applied on screens larger than 600 pixels wide.\n*/\n colorScalePadding(\n _?: boolean | ((viz: VizBase) => boolean),\n ): this | boolean | ((viz: VizBase) => boolean) {\n return arguments.length\n ? ((this.schema.colorScalePadding = typeof _ === \"function\" ? _ : constant(_)),\n this)\n : this.schema.colorScalePadding;\n }\n\n /**\n Defines which side of the visualization to anchor the color scale. Acceptable values are `\"top\"`, `\"bottom\"`, `\"left\"`, `\"right\"`, and `false`. A `false` value will cause the color scale to not be displayed, but will still color shapes based on the scale.\n*/\n colorScalePosition(\n _?: string | boolean | (() => string | boolean),\n ): this | string | boolean | (() => string | boolean) {\n return arguments.length\n ? ((this.schema.colorScalePosition = typeof _ === \"function\" ? _ : constant(_)),\n this)\n : this.schema.colorScalePosition;\n }\n\n /**\n The maximum pixel size for drawing the color scale: width for horizontal scales and height for vertical scales.\n*/\n colorScaleMaxSize(_?: number): this | number {\n return arguments.length\n ? ((this.schema.colorScaleMaxSize = _), this)\n : this.schema.colorScaleMaxSize;\n }\n\n /**\n The primary data array used to draw the visualization. The value passed should be an *Array* of objects or a *String* representing a filepath or URL to be loaded. The following filetypes are supported: `csv`, `tsv`, `txt`, and `json`.\n\nIf your data URL needs specific headers to be set, an Object with \"url\" and \"headers\" keys may also be passed.\n\nAdditionally, a custom formatting function can be passed as a second argument to this method. This custom function will be passed the data that has been loaded, as long as there are no errors. This function should return the final array of obejcts to be used as the primary data array. For example, some JSON APIs return the headers split from the data values to save bandwidth. These would need be joined using a custom formatter.\n\nIf you would like to specify certain configuration options based on the yet-to-be-loaded data, you can also return a full `config` object from the data formatter (including the new `data` array as a key in the object).\n\nDefaults to an empty array (`[]`).\n @param f The data array or a URL string to load data from.\n */\n data(\n _?: DataPoint[] | string | {url: string; headers: Record<string, string>},\n f?: (data: DataPoint[]) => DataPoint[] | Record<string, unknown>,\n ): this | DataPoint[] {\n if (arguments.length) {\n addToQueue.bind(this as unknown as ThisParameterType<typeof addToQueue>)(\n _!,\n f,\n \"data\",\n );\n this._hidden = [];\n this._solo = [];\n if (\n this._userData &&\n JSON.stringify(_) !== JSON.stringify(this._userData)\n ) {\n this.schema.timeFilter = false;\n this._timelineSelection = false;\n }\n this._userData = _;\n return this;\n }\n return this._data;\n }\n\n /**\n If the width and/or height of a Viz is not user-defined, it is determined by the size of it's parent element. When this method is set to `true`, the Viz will listen for the `window.onresize` event and adjust it's dimensions accordingly.\n*/\n detectResize(_?: boolean): this | boolean {\n return arguments.length\n ? ((this.schema.detectResize = _), this)\n : this.schema.detectResize;\n }\n\n /**\n When resizing the browser window, this is the millisecond delay to trigger the resize event.\n*/\n detectResizeDelay(_?: number): this | number {\n return arguments.length\n ? ((this.schema.detectResizeDelay = _), this)\n : this.schema.detectResizeDelay;\n }\n\n /**\n Toggles whether or not the Viz should try to detect if it visible in the current viewport. When this method is set to `true`, the Viz will only be rendered when it has entered the viewport either through scrolling or if it's display or visibility is changed.\n*/\n detectVisible(_?: boolean): this | boolean {\n return arguments.length\n ? ((this.schema.detectVisible = _), this)\n : this.schema.detectVisible;\n }\n\n /**\n The interval, in milliseconds, for checking if the visualization is visible on the page. When `detectVisible` defers a render until the visualization scrolls into view, this is also how long it must stay in view before it renders, so visualizations scrolled past quickly are never drawn.\n*/\n detectVisibleInterval(_?: number): this | number {\n return arguments.length\n ? ((this.schema.detectVisibleInterval = _), this)\n : this.schema.detectVisibleInterval;\n }\n\n /**\n When `true` (the default) and `detectVisible` is enabled, the Viz releases its DOM and scene while it is scrolled out of view and redraws when it returns, keeping the page light when there are many visualizations. Data and configuration are retained; interaction state such as zoom or selection is not, so set this to `false` to keep it. With `detectVisible` enabled, each chart's `<svg>` is also given `content-visibility: auto`, so the browser skips rendering its contents while it is far off-screen (this matters most when this is `false` and charts are kept). For a larger saving you can also apply `content-visibility: auto` and a `contain-intrinsic-size` to the container element yourself; that adds paint containment to an element you own, so it is not done automatically. Requires `IntersectionObserver`.\n*/\n detectVisibleUnload(_?: boolean): this | boolean {\n return arguments.length\n ? ((this.schema.detectVisibleUnload = _), this)\n : this.schema.detectVisibleUnload;\n }\n\n /**\n The font family used throughout the visualization.\n*/\n fontFamily(_?: string | string[]): this | string | string[] {\n if (arguments.length) {\n const labelConfig = {fontFamily: _};\n\n const axisConfig = {titleConfig: labelConfig, shapeConfig: {labelConfig}};\n\n this.shapeConfig({labelConfig});\n this.colorScaleConfig({axisConfig});\n\n [\"axis\", \"column\", \"row\", \"timeline\", \"x\", \"y\", \"x2\", \"y2\"].forEach(\n (axis: string) => {\n const method = `${axis}Config`;\n if (this[method]) this[method](axisConfig);\n },\n );\n [\"back\", \"title\", \"total\", \"subtitle\"].forEach((label: string) => {\n const method = `${label}Config`;\n if (this[method]) this[method](labelConfig);\n });\n\n this.tooltipConfig({\n tooltipStyle: {\"font-family\": fontFamilyStringify(_!)},\n });\n\n this.schema.fontFamily = _;\n return this;\n }\n return this.schema.fontFamily;\n }\n\n /**\n Defines the mapping between data and shape. The value can be a String matching a key in each data point (default is \"id\"), or an accessor Function that returns a unique value for each data point. Additionally, an Array of these values may be provided if the visualization supports nested hierarchies.\n*/\n groupBy(\n _?:\n | string\n | ((d: DataPoint, i: number) => DataPoint[keyof DataPoint])\n | (string | ((d: DataPoint, i: number) => DataPoint[keyof DataPoint]))[],\n ): this | ((d: DataPoint, i: number) => DataPoint[keyof DataPoint])[] {\n if (!arguments.length) return this.schema.groupBy;\n this._groupByRaw = _;\n const arr: (string | ((d: DataPoint, i: number) => DataPoint[keyof DataPoint]))[] =\n _ instanceof Array ? _ : [_!];\n return (\n (this.schema.groupBy = arr.map(\n (\n k: string | ((d: DataPoint, i: number) => DataPoint[keyof DataPoint]),\n ) => {\n if (typeof k === \"function\") return k;\n else {\n if (!this.schema.aggs[k]) {\n this.schema.aggs[k] = (\n a: DataPoint[],\n c: (d: DataPoint) => DataPoint[keyof DataPoint],\n ) => {\n const v = unique(a.map(c));\n return v.length === 1 ? v[0] : v;\n };\n }\n return accessor(k);\n }\n },\n )),\n this\n );\n }\n\n /**\n Defines the color used for legend shapes when the corresponding grouping is hidden from display (by clicking on the legend).\n*/\n hiddenColor(\n _?: string | ((d: DataPoint, i: number) => string),\n ): this | string | ((d: DataPoint, i: number) => string) {\n return arguments.length\n ? ((this.schema.hiddenColor = typeof _ === \"function\" ? _ : constant(_)), this)\n : this.schema.hiddenColor;\n }\n\n /**\n Defines the opacity used for legend labels when the corresponding grouping is hidden from display (by clicking on the legend).\n*/\n hiddenOpacity(\n _?: number | ((d: DataPoint, i: number) => number),\n ): this | number | ((d: DataPoint, i: number) => number) {\n return arguments.length\n ? ((this.schema.hiddenOpacity = typeof _ === \"function\" ? _ : constant(_)),\n this)\n : this.schema.hiddenOpacity;\n }\n\n /**\n The hover callback function for highlighting shapes on mouseover.\n*/\n hover(_?: ((d: DataPoint, i: number) => boolean) | false): this {\n let hoverFunction = (this._hover = _);\n\n if (this.schema.shapeConfig.hoverOpacity !== 1 && _ !== undefined) {\n if (typeof _ === \"function\") {\n let shapeData = arrayMerge(\n this._shapes.map((s: {data: () => DataPoint[]}) => s.data()),\n );\n shapeData = shapeData.concat(this._legendClass.data());\n const activeData = _ ? (shapeData as DataPoint[]).filter(_ as (d: DataPoint) => boolean) : [];\n\n // Build a Set<string> of activeIds for O(1) membership lookup.\n // Previously `activeIds.filter((id, i) => activeIds.indexOf(id) === i)`\n // was O(N²) dedup, and the hover predicate did `activeIds.includes(...)`\n // — also O(N) per datum per repaint. With ~5k segments, hover\n // dispatch was ~250 ms on a 2023 laptop; Set drops it to <5 ms.\n const activeIds = new Set<string>();\n (activeData.map(this._ids) as string[][]).forEach((ids: string[]) => {\n for (let x = 1; x <= ids.length; x++) {\n activeIds.add(JSON.stringify(ids.slice(0, x)));\n }\n });\n\n if (activeIds.size)\n hoverFunction = (d: DataPoint, i: number) =>\n activeIds.has(JSON.stringify(this._ids(d, i)));\n }\n\n this._shapes.forEach((s: {hover: (...args: unknown[]) => unknown}) => s.hover(hoverFunction));\n if (this.schema.legend) this._legendClass.hover(hoverFunction);\n }\n\n // Scene-rendered charts emit into `_chartScene` (not `_shapes`), so the\n // forEach above is a no-op for them. Repaint so the scene's\n // interaction-opacity pass re-reads `_hover` and dims the non-matching\n // nodes (or restores them when `_` is `false`). Also repaint for a\n // colorScale-bucket hover even when per-shape dimming is off\n // (`hoverOpacity: 1`, e.g. Geomap): the bucket highlight is applied by that\n // same pass, so without a repaint the map would never re-compose. Coalesced\n // to one paint per frame so a fast pointer sweep doesn't saturate the main\n // thread.\n if (\n this._sceneRenderer &&\n _ !== undefined &&\n (this.schema.shapeConfig.hoverOpacity !== 1 || this._hoverBucket)\n )\n this._scheduleSceneRepaint();\n\n broadcastLink(this as unknown as VizInstance, \"hover\", _);\n return this;\n }\n\n /**\n Persistently emphasizes the data points matching the given predicate: the\n matching marks keep their color while every other mark is de-emphasized to\n a neutral gray (the \"emphasis\" form — highlight one series, gray the rest).\n Unlike `hover`/`active` (transient, opacity-based), `highlight` is a\n standing state that survives pointer movement. Pass `false` to clear it.\n*/\n highlight(\n _?: ((d: DataPoint, i: number) => boolean) | false,\n ): this | ((d: DataPoint, i: number) => boolean) | false | undefined {\n if (!arguments.length) return this._highlight;\n this._highlight = _;\n // Scene-rendered charts express de-emphasis via the scene's\n // interaction-opacity pass, so repaint to apply/clear the gray treatment.\n if (this._sceneRenderer) this._scheduleSceneRepaint();\n broadcastLink(this as unknown as VizInstance, \"highlight\", _);\n return this;\n }\n\n /**\n Accessor function, or a constant string applied to every data point's\n label (unlike `value`/`nodeId`/etc., a string here is not treated as a\n per-datum object key — pass a function for that).\n*/\n label(\n _?: string | ((d: DataPoint, i: number) => string),\n ): this | string | ((d: DataPoint, i: number) => string) {\n return arguments.length\n ? ((this.schema.label = typeof _ === \"function\" ? _ : constant(_)), this)\n : this.schema.label;\n }\n\n /**\n Whether to display the legend.\n*/\n legend(\n _?:\n | boolean\n | ((config: Record<string, unknown>, arr: DataPoint[]) => boolean),\n ):\n | this\n | boolean\n | ((config: Record<string, unknown>, arr: DataPoint[]) => boolean) {\n return arguments.length\n ? ((this.schema.legend = typeof _ === \"function\" ? _ : constant(_)), this)\n : this.schema.legend;\n }\n\n /**\n Configuration object passed to the legend's config method.\n*/\n legendConfig(_?: Record<string, unknown>): this | Record<string, unknown> {\n return arguments.length\n ? ((this.schema.legendConfig = assign(this.schema.legendConfig, _!)), this)\n : this.schema.legendConfig;\n }\n\n /**\n Defines the click functionality of categorical legend squares. When set to false, clicking will hide that category and shift+clicking will solo that category. When set to true, clicking with solo that category and shift+clicking will hide that category.\n*/\n legendFilterInvert(\n _?: boolean | ((viz: VizBase) => boolean),\n ): this | boolean | ((viz: VizBase) => boolean) {\n return arguments.length\n ? ((this.schema.legendFilterInvert = typeof _ === \"function\" ? _ : constant(_)),\n this)\n : this.schema.legendFilterInvert;\n }\n\n /**\n Whether the chart may draw one of its legends inside the empty space around its marks instead of in a margin, for charts that leave room (Plot, Network, Pack, Pie, Rings, Tree, and Geomap). After the chart lays out, the size legend is tried first, then the legend, then the colorScale; the first that fits is drawn over a semi-transparent box (see `legendInsetConfig`), and any others keep their margins. Space enclosed by the marks, like the middle of a ring of points, is never used. A legend or colorScale whose position was set explicitly stays in that margin. Defaults to `true`; also accepts a function that receives the resolved chart config and returns a boolean.\n*/\n legendInset(\n _?: boolean | ((config: Record<string, unknown>) => boolean),\n ): this | boolean | ((config: Record<string, unknown>) => boolean) {\n return arguments.length\n ? ((this.schema.legendInset = _), this)\n : this.schema.legendInset;\n }\n\n /**\n Style of the box drawn behind a legend placed inside the chart (see `legendInset`): `fill` (defaults to the chart's background color), `fillOpacity` (0.85), `stroke` (defaults to a faint contrasting line), `strokeWidth` (1), `rx` (corner radius, 4), `margin` (space between the box's edge and the legend, 6), and `padding` (space kept between the box and the chart's marks and edges, 10).\n*/\n legendInsetConfig(_?: Record<string, unknown>): this | Record<string, unknown> {\n return arguments.length\n ? ((this.schema.legendInsetConfig = assign(this.schema.legendInsetConfig, _!)), this)\n : this.schema.legendInsetConfig;\n }\n\n /**\n Tells the legend whether or not to use the internal padding defined by the visualization in it's positioning. For example, d3plus-plot will add padding on the left so that the legend appears centered underneath the x-axis. By default, this padding is only applied on screens larger than 600 pixels wide.\n*/\n legendPadding(\n _?: boolean | ((viz: VizBase) => boolean),\n ): this | boolean | ((viz: VizBase) => boolean) {\n return arguments.length\n ? ((this.schema.legendPadding = typeof _ === \"function\" ? _ : constant(_)),\n this)\n : this.schema.legendPadding;\n }\n\n /**\n Defines which side of the visualization to anchor the legend. Expected values are `\"top\"`, `\"bottom\"`, `\"left\"`, and `\"right\"`.\n*/\n legendPosition(_?: string | (() => string)): this | string | (() => string) {\n return arguments.length\n ? ((this.schema.legendPosition = typeof _ === \"function\" ? _ : constant(_)),\n this)\n : this.schema.legendPosition;\n }\n\n /**\n Configuration object for the legend tooltip.\n*/\n legendTooltip(_?: Record<string, unknown>): this | Record<string, unknown> {\n return arguments.length\n ? ((this.schema.legendTooltip = assign(this.schema.legendTooltip, _!)), this)\n : this.schema.legendTooltip;\n }\n}\n"],"names":["merge","arrayMerge","addToQueue","unique","assign","fontFamilyStringify","accessor","BaseClass","constant","broadcastLink","VizBaseConfig","active","_","_active","schema","shapeConfig","activeOpacity","_shapes","forEach","s","legend","_legendClass","_sceneRenderer","_scheduleSceneRepaint","aggs","arguments","length","attribution","attributionIcon","attributionStyle","backConfig","backControlClassName","backControlStyle","color","colorScale","colorScaleConfig","colorScalePadding","colorScalePosition","colorScaleMaxSize","data","f","bind","_hidden","_solo","_userData","JSON","stringify","timeFilter","_timelineSelection","_data","detectResize","detectResizeDelay","detectVisible","detectVisibleInterval","detectVisibleUnload","fontFamily","labelConfig","axisConfig","titleConfig","axis","method","label","tooltipConfig","tooltipStyle","groupBy","_groupByRaw","arr","Array","map","k","a","c","v","hiddenColor","hiddenOpacity","hover","hoverFunction","_hover","hoverOpacity","undefined","shapeData","concat","activeData","filter","activeIds","Set","_ids","ids","x","add","slice","size","d","i","has","_hoverBucket","highlight","_highlight","legendConfig","legendFilterInvert","legendInset","legendInsetConfig","legendPadding","legendPosition","legendTooltip"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAQA,SAASC,UAAU,QAAO,WAAW;AAE7C,SAAQC,UAAU,EAAEC,MAAM,QAAO,eAAe;AAChD,SAAQC,MAAM,QAAO,cAAc;AACnC,SAAQC,mB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