billboard.js 4.0.1 → 4.0.3
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/CONTRIBUTING.md +2 -2
- package/README.md +6 -6
- package/dist/billboard.css +1 -1
- package/dist/billboard.js +171 -95
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +17 -18
- package/dist/billboard.pkgd.js +391 -315
- package/dist/billboard.pkgd.min.js +22 -23
- package/dist/plugin/billboardjs-plugin-bubblecompare.js +21 -6
- package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.js +21 -6
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +3 -3
- package/dist/plugin/billboardjs-plugin-stanford.js +21 -6
- package/dist/plugin/billboardjs-plugin-stanford.min.js +5 -5
- package/dist/plugin/billboardjs-plugin-tableview.js +21 -6
- package/dist/plugin/billboardjs-plugin-tableview.min.js +3 -3
- package/dist/plugin/billboardjs-plugin-textoverlap.js +21 -6
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +67 -52
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +8 -8
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +23 -8
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +9 -9
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +73 -58
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +9 -9
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +21 -6
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +10 -10
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +32 -17
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +8 -8
- package/dist/theme/dark.css +1 -1
- package/dist/theme/dark.min.css +1 -1
- package/dist/theme/datalab.css +1 -1
- package/dist/theme/datalab.min.css +1 -1
- package/dist/theme/graph.css +1 -1
- package/dist/theme/graph.min.css +1 -1
- package/dist/theme/insight.css +1 -1
- package/dist/theme/insight.min.css +1 -1
- package/dist/theme/modern.css +1 -1
- package/dist/theme/modern.min.css +1 -1
- package/dist-esm/Chart/Chart.js +1 -1
- package/dist-esm/Chart/api/axis.js +1 -1
- package/dist-esm/Chart/api/category.js +1 -1
- package/dist-esm/Chart/api/chart.js +1 -1
- package/dist-esm/Chart/api/color.js +1 -1
- package/dist-esm/Chart/api/data.js +1 -1
- package/dist-esm/Chart/api/export.js +1 -1
- package/dist-esm/Chart/api/flow.js +1 -1
- package/dist-esm/Chart/api/focus.js +7 -11
- package/dist-esm/Chart/api/grid.js +1 -1
- package/dist-esm/Chart/api/group.js +1 -1
- package/dist-esm/Chart/api/legend.js +1 -1
- package/dist-esm/Chart/api/load.js +1 -1
- package/dist-esm/Chart/api/regions.js +1 -1
- package/dist-esm/Chart/api/selection.js +1 -1
- package/dist-esm/Chart/api/show.js +1 -1
- package/dist-esm/Chart/api/stubs.js +1 -1
- package/dist-esm/Chart/api/subchart.js +1 -1
- package/dist-esm/Chart/api/tooltip.js +1 -1
- package/dist-esm/Chart/api/x.js +1 -1
- package/dist-esm/Chart/api/zoom.js +1 -1
- package/dist-esm/ChartInternal/Axis/Axis.js +1 -1
- package/dist-esm/ChartInternal/Axis/AxisRenderer.js +1 -1
- package/dist-esm/ChartInternal/Axis/AxisRendererHelper.js +1 -1
- package/dist-esm/ChartInternal/ChartInternal.js +1 -1
- package/dist-esm/ChartInternal/data/convert.helper.js +1 -1
- package/dist-esm/ChartInternal/data/convert.js +1 -1
- package/dist-esm/ChartInternal/data/data.js +15 -6
- package/dist-esm/ChartInternal/data/load.js +1 -1
- package/dist-esm/ChartInternal/interactions/drag.js +1 -1
- package/dist-esm/ChartInternal/interactions/eventrect.js +39 -7
- package/dist-esm/ChartInternal/interactions/flow.js +1 -1
- package/dist-esm/ChartInternal/interactions/interaction.js +1 -1
- package/dist-esm/ChartInternal/interactions/subchart.js +1 -1
- package/dist-esm/ChartInternal/interactions/zoom.js +1 -1
- package/dist-esm/ChartInternal/internals/category.js +1 -1
- package/dist-esm/ChartInternal/internals/class.js +1 -1
- package/dist-esm/ChartInternal/internals/clip.js +1 -1
- package/dist-esm/ChartInternal/internals/color.js +5 -5
- package/dist-esm/ChartInternal/internals/domain.js +1 -1
- package/dist-esm/ChartInternal/internals/format.js +1 -1
- package/dist-esm/ChartInternal/internals/grid.js +1 -1
- package/dist-esm/ChartInternal/internals/legend.js +1 -1
- package/dist-esm/ChartInternal/internals/redraw.js +1 -1
- package/dist-esm/ChartInternal/internals/region.js +1 -1
- package/dist-esm/ChartInternal/internals/scale.js +1 -1
- package/dist-esm/ChartInternal/internals/selection.js +1 -1
- package/dist-esm/ChartInternal/internals/size.axis.js +1 -1
- package/dist-esm/ChartInternal/internals/size.js +1 -1
- package/dist-esm/ChartInternal/internals/style.js +1 -1
- package/dist-esm/ChartInternal/internals/text.arc.js +1 -1
- package/dist-esm/ChartInternal/internals/text.js +2 -2
- package/dist-esm/ChartInternal/internals/text.util.js +1 -1
- package/dist-esm/ChartInternal/internals/title.js +1 -1
- package/dist-esm/ChartInternal/internals/tooltip.js +1 -1
- package/dist-esm/ChartInternal/internals/transform.js +1 -1
- package/dist-esm/ChartInternal/internals/type.js +26 -34
- package/dist-esm/ChartInternal/shape/arc.js +1 -1
- package/dist-esm/ChartInternal/shape/area.js +1 -1
- package/dist-esm/ChartInternal/shape/bar.js +23 -7
- package/dist-esm/ChartInternal/shape/bubble.js +1 -1
- package/dist-esm/ChartInternal/shape/candlestick.js +1 -1
- package/dist-esm/ChartInternal/shape/core/barRadius.js +1 -1
- package/dist-esm/ChartInternal/shape/core/bubble.js +1 -1
- package/dist-esm/ChartInternal/shape/core/candlestick.js +1 -1
- package/dist-esm/ChartInternal/shape/core/dataRegion.js +1 -1
- package/dist-esm/ChartInternal/shape/core/geometry.js +1 -1
- package/dist-esm/ChartInternal/shape/core/path.js +1 -1
- package/dist-esm/ChartInternal/shape/core/point.js +1 -1
- package/dist-esm/ChartInternal/shape/core/treemap.js +1 -1
- package/dist-esm/ChartInternal/shape/funnel.js +1 -1
- package/dist-esm/ChartInternal/shape/gauge.js +1 -1
- package/dist-esm/ChartInternal/shape/line.js +2 -2
- package/dist-esm/ChartInternal/shape/point.js +22 -10
- package/dist-esm/ChartInternal/shape/polar.js +1 -1
- package/dist-esm/ChartInternal/shape/radar.js +1 -1
- package/dist-esm/ChartInternal/shape/shape.js +19 -4
- package/dist-esm/ChartInternal/shape/treemap.js +1 -1
- package/dist-esm/canvas/CanvasAxisRenderer.js +1 -1
- package/dist-esm/canvas/CanvasEngine.js +1 -1
- package/dist-esm/canvas/CanvasPainter.js +1 -1
- package/dist-esm/canvas/CanvasRenderer.js +4 -4
- package/dist-esm/canvas/CanvasTheme.js +1 -1
- package/dist-esm/canvas/HitDetector.js +1 -1
- package/dist-esm/canvas/axisTicks.js +1 -1
- package/dist-esm/canvas/classes.js +1 -1
- package/dist-esm/canvas/color.js +1 -1
- package/dist-esm/canvas/geometry.js +1 -1
- package/dist-esm/canvas/labels.js +1 -1
- package/dist-esm/canvas/pointPattern.js +1 -1
- package/dist-esm/canvas/util.js +1 -1
- package/dist-esm/config/Options/Options.js +1 -1
- package/dist-esm/config/Options/axis/axis.js +1 -1
- package/dist-esm/config/Options/axis/x.js +1 -1
- package/dist-esm/config/Options/axis/y.js +1 -1
- package/dist-esm/config/Options/axis/y2.js +1 -1
- package/dist-esm/config/Options/common/boost.js +1 -1
- package/dist-esm/config/Options/common/color.js +1 -1
- package/dist-esm/config/Options/common/grid.js +1 -1
- package/dist-esm/config/Options/common/legend.js +1 -1
- package/dist-esm/config/Options/common/main.js +1 -1
- package/dist-esm/config/Options/common/point.js +1 -1
- package/dist-esm/config/Options/common/title.js +1 -1
- package/dist-esm/config/Options/common/tooltip.js +1 -1
- package/dist-esm/config/Options/data/axis.js +1 -1
- package/dist-esm/config/Options/data/data.js +1 -1
- package/dist-esm/config/Options/data/selection.js +1 -1
- package/dist-esm/config/Options/interaction/interaction.js +1 -1
- package/dist-esm/config/Options/interaction/subchart.js +1 -1
- package/dist-esm/config/Options/interaction/zoom.js +1 -1
- package/dist-esm/config/Options/shape/arc.js +1 -1
- package/dist-esm/config/Options/shape/area.js +1 -1
- package/dist-esm/config/Options/shape/bar.js +1 -1
- package/dist-esm/config/Options/shape/bubble.js +1 -1
- package/dist-esm/config/Options/shape/candlestick.js +1 -1
- package/dist-esm/config/Options/shape/donut.js +1 -1
- package/dist-esm/config/Options/shape/funnel.js +1 -1
- package/dist-esm/config/Options/shape/gauge.js +1 -1
- package/dist-esm/config/Options/shape/line.js +1 -1
- package/dist-esm/config/Options/shape/pie.js +1 -1
- package/dist-esm/config/Options/shape/polar.js +1 -1
- package/dist-esm/config/Options/shape/radar.js +1 -1
- package/dist-esm/config/Options/shape/scatter.js +1 -1
- package/dist-esm/config/Options/shape/spline.js +1 -1
- package/dist-esm/config/Options/shape/treemap.js +1 -1
- package/dist-esm/config/Store/Element.js +1 -1
- package/dist-esm/config/Store/State.js +1 -1
- package/dist-esm/config/Store/Store.js +1 -1
- package/dist-esm/config/classes.js +1 -1
- package/dist-esm/config/config.js +1 -1
- package/dist-esm/config/const.js +1 -1
- package/dist-esm/config/resolver/axis.core.js +1 -1
- package/dist-esm/config/resolver/axis.js +1 -1
- package/dist-esm/config/resolver/canvas.js +5 -4
- package/dist-esm/config/resolver/canvasShape.js +1 -1
- package/dist-esm/config/resolver/category.js +1 -1
- package/dist-esm/config/resolver/export.js +1 -1
- package/dist-esm/config/resolver/flow.js +1 -1
- package/dist-esm/config/resolver/grid.js +1 -1
- package/dist-esm/config/resolver/interaction/selection.js +1 -1
- package/dist-esm/config/resolver/interaction/subchart.js +1 -1
- package/dist-esm/config/resolver/interaction/zoom.js +1 -1
- package/dist-esm/config/resolver/regions.js +1 -1
- package/dist-esm/config/resolver/shape/arc.helpers.js +1 -1
- package/dist-esm/config/resolver/shape/area.js +1 -1
- package/dist-esm/config/resolver/shape/axis.helpers.js +1 -1
- package/dist-esm/config/resolver/shape/bar.js +1 -1
- package/dist-esm/config/resolver/shape/bubble.js +1 -1
- package/dist-esm/config/resolver/shape/candlestick.js +1 -1
- package/dist-esm/config/resolver/shape/donut.js +1 -1
- package/dist-esm/config/resolver/shape/funnel.js +1 -1
- package/dist-esm/config/resolver/shape/gauge.js +1 -1
- package/dist-esm/config/resolver/shape/line.js +1 -1
- package/dist-esm/config/resolver/shape/pie.js +1 -1
- package/dist-esm/config/resolver/shape/polar.js +1 -1
- package/dist-esm/config/resolver/shape/radar.js +1 -1
- package/dist-esm/config/resolver/shape/scatter.js +1 -1
- package/dist-esm/config/resolver/shape/treemap.js +1 -1
- package/dist-esm/core.js +3 -3
- package/dist-esm/index.canvas.js +1 -1
- package/dist-esm/index.esm.js +1 -1
- package/dist-esm/module/Cache.js +1 -1
- package/dist-esm/module/browser.js +1 -1
- package/dist-esm/module/dsv.js +1 -1
- package/dist-esm/module/error.js +1 -1
- package/dist-esm/module/generator.js +1 -1
- package/dist-esm/module/sanitize.js +1 -1
- package/dist-esm/module/util/brush.js +1 -1
- package/dist-esm/module/util/dom.js +1 -1
- package/dist-esm/module/util/object.js +1 -1
- package/dist-esm/module/util/type-checks.js +1 -1
- package/dist-esm/module/worker.js +1 -1
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
- package/package.json +34 -59
- package/src/Chart/api/focus.ts +8 -12
- package/src/ChartInternal/data/data.ts +15 -5
- package/src/ChartInternal/interactions/eventrect.ts +47 -8
- package/src/ChartInternal/internals/color.ts +5 -4
- package/src/ChartInternal/internals/text.ts +1 -1
- package/src/ChartInternal/internals/type.ts +26 -32
- package/src/ChartInternal/shape/bar.ts +26 -7
- package/src/ChartInternal/shape/line.ts +1 -1
- package/src/ChartInternal/shape/point.ts +26 -12
- package/src/ChartInternal/shape/shape.ts +25 -3
- package/src/canvas/CanvasRenderer.ts +2 -2
- package/src/config/resolver/canvas.ts +4 -3
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.0.
|
|
8
|
+
* @version 4.0.3
|
|
9
9
|
*/
|
|
10
10
|
import { select } from 'd3-selection';
|
|
11
11
|
import { $COMMON, $SELECT, $CIRCLE } from '../../config/classes.js';
|
|
@@ -140,7 +140,7 @@ var shapePoint = {
|
|
|
140
140
|
});
|
|
141
141
|
circles.exit().remove();
|
|
142
142
|
const pointR = $$.pointR.bind($$);
|
|
143
|
-
const updateCircleColor = $$.
|
|
143
|
+
const updateCircleColor = $$.generateUpdateCircleColor();
|
|
144
144
|
const initialOpacityForCircle = $$.initialOpacityForCircle.bind($$);
|
|
145
145
|
circles.enter()
|
|
146
146
|
.filter(Boolean)
|
|
@@ -150,6 +150,17 @@ var shapePoint = {
|
|
|
150
150
|
.style("opacity", initialOpacityForCircle);
|
|
151
151
|
}
|
|
152
152
|
},
|
|
153
|
+
/**
|
|
154
|
+
* Generate circle color accessor, hoisting the bound color function
|
|
155
|
+
* to be created once per call (not per datum)
|
|
156
|
+
* @returns {function} Color accessor
|
|
157
|
+
* @private
|
|
158
|
+
*/
|
|
159
|
+
generateUpdateCircleColor() {
|
|
160
|
+
const $$ = this;
|
|
161
|
+
const fn = $$.getStylePropValue($$.color);
|
|
162
|
+
return (d) => ($$.config.point_radialGradient ? $$.getGradienColortUrl(d.id) : (fn ? fn(d) : null));
|
|
163
|
+
},
|
|
153
164
|
/**
|
|
154
165
|
* Update circle color
|
|
155
166
|
* @param {object} d Data object
|
|
@@ -157,9 +168,7 @@ var shapePoint = {
|
|
|
157
168
|
* @private
|
|
158
169
|
*/
|
|
159
170
|
updateCircleColor(d) {
|
|
160
|
-
|
|
161
|
-
const fn = $$.getStylePropValue($$.color);
|
|
162
|
-
return $$.config.point_radialGradient ? $$.getGradienColortUrl(d.id) : (fn ? fn(d) : null);
|
|
171
|
+
return this.generateUpdateCircleColor()(d);
|
|
163
172
|
},
|
|
164
173
|
redrawCircle(cx, cy, withTransition, flow, isSub = false) {
|
|
165
174
|
const $$ = this;
|
|
@@ -172,6 +181,7 @@ var shapePoint = {
|
|
|
172
181
|
const posAttr = $$.isCirclePoint() ? "c" : "";
|
|
173
182
|
const t = getRandom();
|
|
174
183
|
const opacityStyleFn = $$.opacityForCircle.bind($$);
|
|
184
|
+
const updateCircleColor = $$.generateUpdateCircleColor();
|
|
175
185
|
// For standard circle type, batch the update across all circles in one pass
|
|
176
186
|
if ($$.isCirclePoint()) {
|
|
177
187
|
const sel = $root.circle;
|
|
@@ -188,14 +198,14 @@ var shapePoint = {
|
|
|
188
198
|
$T(sel.filter(function () {
|
|
189
199
|
return !!this.getAttribute("cx");
|
|
190
200
|
}), true, `${t}-pos`)
|
|
191
|
-
.attr("cx", cx).attr("cy", cy).style("fill",
|
|
201
|
+
.attr("cx", cx).attr("cy", cy).style("fill", updateCircleColor);
|
|
192
202
|
sel.filter(function () {
|
|
193
203
|
return !this.getAttribute("cx");
|
|
194
204
|
})
|
|
195
|
-
.attr("cx", cx).attr("cy", cy).style("fill",
|
|
205
|
+
.attr("cx", cx).attr("cy", cy).style("fill", updateCircleColor);
|
|
196
206
|
}
|
|
197
207
|
else {
|
|
198
|
-
sel.attr("cx", cx).attr("cy", cy).style("fill",
|
|
208
|
+
sel.attr("cx", cx).attr("cy", cy).style("fill", updateCircleColor);
|
|
199
209
|
}
|
|
200
210
|
const result = $T(sel, withTransition || !rendered, t)
|
|
201
211
|
.style("opacity", opacityStyleFn);
|
|
@@ -204,7 +214,7 @@ var shapePoint = {
|
|
|
204
214
|
$T(selectedCircles, withTransition).attr("cx", cx).attr("cy", cy)
|
|
205
215
|
];
|
|
206
216
|
}
|
|
207
|
-
const fn = $$.point("update", $$, cx, cy,
|
|
217
|
+
const fn = $$.point("update", $$, cx, cy, updateCircleColor, withTransition, flow, selectedCircles);
|
|
208
218
|
const mainCircles = [];
|
|
209
219
|
$root.circle.each(function (d) {
|
|
210
220
|
let result = fn.bind(this)(d);
|
|
@@ -321,7 +331,9 @@ var shapePoint = {
|
|
|
321
331
|
cx = x;
|
|
322
332
|
cy = y;
|
|
323
333
|
}
|
|
324
|
-
|
|
334
|
+
const dx = cx - mouse[0];
|
|
335
|
+
const dy = cy - mouse[1];
|
|
336
|
+
return Math.sqrt(dx * dx + dy * dy) < (r || pointSensitivity);
|
|
325
337
|
},
|
|
326
338
|
updatePointClass(d) {
|
|
327
339
|
const $$ = this;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.0.
|
|
8
|
+
* @version 4.0.3
|
|
9
9
|
*/
|
|
10
10
|
import { select } from 'd3-selection';
|
|
11
11
|
import { curveStepBefore, curveStepAfter, curveStep, curveLinear, curveLinearClosed, curveNatural, curveMonotoneY, curveMonotoneX, curveCatmullRomOpen, curveCatmullRomClosed, curveCatmullRom, curveCardinalOpen, curveCardinalClosed, curveCardinal, curveBundle, curveBasisOpen, curveBasisClosed, curveBasis } from 'd3-shape';
|
|
@@ -532,8 +532,14 @@ var shape = {
|
|
|
532
532
|
const y = $$.getShapeY(!!isSub);
|
|
533
533
|
const areaOffset = $$.getShapeOffset($$.isAreaType, areaIndices, isSub);
|
|
534
534
|
const yScale = $$.getYScaleById.bind($$);
|
|
535
|
+
// per-series cache: y0 depends only on the id and is stable within one draw pass
|
|
536
|
+
const y0Cache = new Map();
|
|
535
537
|
return function (d, i) {
|
|
536
|
-
|
|
538
|
+
let y0 = y0Cache.get(d.id);
|
|
539
|
+
if (y0 === undefined) {
|
|
540
|
+
y0 = yScale.call($$, d.id, isSub)($$.getShapeYMin(d.id));
|
|
541
|
+
y0Cache.set(d.id, y0);
|
|
542
|
+
}
|
|
537
543
|
const offset = areaOffset(d, i) || y0;
|
|
538
544
|
const posX = x(d);
|
|
539
545
|
const value = d.value;
|
|
@@ -566,12 +572,21 @@ var shape = {
|
|
|
566
572
|
const barY = $$.getShapeY(!!isSub);
|
|
567
573
|
const barOffset = $$.getShapeOffset($$.isBarType, barIndices, !!isSub);
|
|
568
574
|
const yScale = $$.getYScaleById.bind($$);
|
|
575
|
+
// per-series cache: y0/isInverted depend only on the id and are stable within one draw pass
|
|
576
|
+
const idCache = new Map();
|
|
569
577
|
return (d, i) => {
|
|
570
578
|
const { id } = d;
|
|
571
|
-
|
|
579
|
+
let idInfo = idCache.get(id);
|
|
580
|
+
if (!idInfo) {
|
|
581
|
+
idInfo = {
|
|
582
|
+
y0: yScale.call($$, id, isSub)($$.getShapeYMin(id)),
|
|
583
|
+
isInverted: config[`axis_${$$.axis.getId(id)}_inverted`]
|
|
584
|
+
};
|
|
585
|
+
idCache.set(id, idInfo);
|
|
586
|
+
}
|
|
587
|
+
const { y0, isInverted } = idInfo;
|
|
572
588
|
const offset = barOffset(d, i) || y0;
|
|
573
589
|
const width = isNumber(barW) ? barW : barW[d.id] || barW._$width;
|
|
574
|
-
const isInverted = config[`axis_${$$.axis.getId(id)}_inverted`];
|
|
575
590
|
const value = d.value;
|
|
576
591
|
const posX = barX(d);
|
|
577
592
|
let posY = barY(d);
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.0.
|
|
8
|
+
* @version 4.0.3
|
|
9
9
|
*/
|
|
10
10
|
import { AXIS_TICK_SIZE, AXIS_TICK_PADDING } from '../config/const.js';
|
|
11
11
|
import { getSubXTickValues, normalizeXValue, getXTickValues, getYGridTickValues, normalizeYValue, getAdditionalAxisScale, getAdditionalAxisTickFormat, getAdditionalAxisTickValues, getXScale, getXTickLineValues, getXTickLinePosition, isSameTickValue, getYTickValues } from './axisTicks.js';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.0.
|
|
8
|
+
* @version 4.0.3
|
|
9
9
|
*/
|
|
10
10
|
import { getStackingBarRadiusSet, getBarRadiusInfo, getBarRadiusResolver } from '../ChartInternal/shape/core/barRadius.js';
|
|
11
11
|
import { getLineRegionSegments } from '../ChartInternal/shape/core/dataRegion.js';
|
|
@@ -18,7 +18,7 @@ import { withOpacity } from './color.js';
|
|
|
18
18
|
import { getCanvasBarGeometry, getCanvasCandlestickGeometry } from './geometry.js';
|
|
19
19
|
import { getLabelImageOption, getLabelImageUrl, getLabelImagePosition, getRotatedLabelPosition, getLabelColor, drawLabelDecorations, getLabelText, getPointLabelAnchor, getLabelPosition, getExpandedFocusMatcher, getLabelDecorationBox } from './labels.js';
|
|
20
20
|
import { drawPointPattern } from './pointPattern.js';
|
|
21
|
-
import { hasCanvasDrawableValue, isCanvasPointType, isFiniteCanvasCoordinate, isCanvasAreaType, getCanvasShapeIndices, isCanvasBarType, isCanvasCandlestickType, isCanvasLineType, getCanvasTargetVisibleRange, createCanvasPointOccupancyGrid, markCanvasPointOccupancy, isCanvasTreemapType, getFontSize, isCanvasTargetSupported,
|
|
21
|
+
import { hasCanvasDrawableValue, isCanvasPointType, isFiniteCanvasCoordinate, isCanvasAreaType, getCanvasShapeIndices, isCanvasBarType, isCanvasCandlestickType, isCanvasLineType, isCanvasScatterType, isCanvasBubbleType, getCanvasTargetVisibleRange, createCanvasPointOccupancyGrid, markCanvasPointOccupancy, isCanvasTreemapType, getFontSize, isCanvasTargetSupported, DENSE_SCATTER_POINT_CULL_THRESHOLD } from './util.js';
|
|
22
22
|
import { isNumber, isFunction, isObject, isString, asHalfPixel } from '../module/util/type-checks.js';
|
|
23
23
|
|
|
24
24
|
/**
|
|
@@ -1037,8 +1037,8 @@ class CanvasRenderer {
|
|
|
1037
1037
|
const cx = $$.subxx?.bind($$);
|
|
1038
1038
|
if (cx && cy) {
|
|
1039
1039
|
for (const target of targets) {
|
|
1040
|
-
if (!
|
|
1041
|
-
|
|
1040
|
+
if (!isCanvasScatterType($$, target) &&
|
|
1041
|
+
!isCanvasBubbleType($$, target)) {
|
|
1042
1042
|
continue;
|
|
1043
1043
|
}
|
|
1044
1044
|
const color = $$.color(target.id);
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.0.
|
|
8
|
+
* @version 4.0.3
|
|
9
9
|
*/
|
|
10
10
|
import { getScale } from '../ChartInternal/internals/scale.js';
|
|
11
11
|
import { AXIS_DEFAULT_TICK_COUNT, AXIS_TICK_LINE_OVERLAP_PADDING } from '../config/const.js';
|
package/dist-esm/canvas/color.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.0.
|
|
8
|
+
* @version 4.0.3
|
|
9
9
|
*/
|
|
10
10
|
import { getRenderRect, getCandlestickGeometry } from '../ChartInternal/shape/core/geometry.js';
|
|
11
11
|
import { isFiniteCanvasCoordinate } from './util.js';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 4.0.
|
|
8
|
+
* @version 4.0.3
|
|
9
9
|
*/
|
|
10
10
|
import { isCanvasBubbleType, getFontSize, isCanvasCandlestickType, isCanvasLineType, isCanvasScatterType } from './util.js';
|
|
11
11
|
import { isFunction, isNumber, isString, isObject } from '../module/util/type-checks.js';
|
package/dist-esm/canvas/util.js
CHANGED