@d3plus/core 3.0.11 → 3.0.12
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/es/src/charts/drawSteps/drawColorScale.js +7 -2
- package/package.json +8 -8
- package/umd/d3plus-core.full.js +2 -2
- package/umd/d3plus-core.full.js.map +1 -1
- package/umd/d3plus-core.full.min.js +2 -2
- package/umd/d3plus-core.js +3 -3
- package/umd/d3plus-core.js.map +1 -1
- package/umd/d3plus-core.min.js +2 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { min } from "d3-array";
|
|
1
|
+
import { min, rollup } from "d3-array";
|
|
2
|
+
import { merge } from "@d3plus/data";
|
|
2
3
|
import { elem } from "@d3plus/dom";
|
|
3
4
|
/**
|
|
4
5
|
@function _drawColorScale
|
|
@@ -6,7 +7,11 @@ import { elem } from "@d3plus/dom";
|
|
|
6
7
|
@private
|
|
7
8
|
*/ export default function() {
|
|
8
9
|
var _this = this;
|
|
9
|
-
var data = this._data
|
|
10
|
+
var data = Array.from(rollup(this._data, function(leaves) {
|
|
11
|
+
return merge(leaves, _this._aggs);
|
|
12
|
+
}, function(d, i) {
|
|
13
|
+
return "".concat(_this._time ? _this._time(d, i) : "all", "-").concat(_this._ids(d, i).join("_"));
|
|
14
|
+
}).values());
|
|
10
15
|
var position = this._colorScalePosition.bind(this)(this.config());
|
|
11
16
|
if (![
|
|
12
17
|
false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d3plus/core",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.12",
|
|
4
4
|
"description": "Data visualization made easy. A javascript library that extends the popular D3.js to enable fast and beautiful visualizations.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"test": "eslint index.js src/**/*.js && eslint --global=it test && mocha 'test/**/*-test.js'"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@d3plus/color": "3.0.
|
|
38
|
-
"@d3plus/data": "3.0.
|
|
39
|
-
"@d3plus/dom": "3.0.
|
|
40
|
-
"@d3plus/format": "3.0.
|
|
41
|
-
"@d3plus/locales": "3.0.
|
|
42
|
-
"@d3plus/math": "3.0.
|
|
43
|
-
"@d3plus/text": "3.0.
|
|
37
|
+
"@d3plus/color": "3.0.12",
|
|
38
|
+
"@d3plus/data": "3.0.12",
|
|
39
|
+
"@d3plus/dom": "3.0.12",
|
|
40
|
+
"@d3plus/format": "3.0.12",
|
|
41
|
+
"@d3plus/locales": "3.0.12",
|
|
42
|
+
"@d3plus/math": "3.0.12",
|
|
43
|
+
"@d3plus/text": "3.0.12",
|
|
44
44
|
"@popperjs/core": "^2.11.8",
|
|
45
45
|
"d3-array": "^3.2.4",
|
|
46
46
|
"d3-brush": "^3.0.0",
|
package/umd/d3plus-core.full.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
@d3plus/core v3.0.
|
|
2
|
+
@d3plus/core v3.0.12
|
|
3
3
|
Data visualization made easy. A javascript library that extends the popular D3.js to enable fast and beautiful visualizations.
|
|
4
4
|
Copyright (c) 2025 D3plus - https://d3plus.org
|
|
5
5
|
@license MIT
|
|
@@ -33409,7 +33409,7 @@
|
|
|
33409
33409
|
@desc Renders the color scale if this._colorScale is not falsey.
|
|
33410
33410
|
@private
|
|
33411
33411
|
*/ function drawColorScale() {
|
|
33412
|
-
const data = this._data;
|
|
33412
|
+
const data = Array.from(rollup(this._data, (leaves)=>objectMerge(leaves, this._aggs), (d, i)=>`${this._time ? this._time(d, i) : "all"}-${this._ids(d, i).join("_")}`).values());
|
|
33413
33413
|
let position = this._colorScalePosition.bind(this)(this.config());
|
|
33414
33414
|
if (![
|
|
33415
33415
|
false,
|