@d3plus/core 3.0.8 → 3.0.9
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 +131 -131
- package/es/src/charts/Plot.js +1 -2
- package/es/src/charts/Viz.js +18 -19
- package/package.json +8 -8
- package/umd/d3plus-core.full.js +19 -21
- package/umd/d3plus-core.full.js.map +1 -1
- package/umd/d3plus-core.full.min.js +3 -3
- package/umd/d3plus-core.js +19 -21
- package/umd/d3plus-core.js.map +1 -1
- package/umd/d3plus-core.min.js +3 -3
package/es/src/charts/Plot.js
CHANGED
|
@@ -164,7 +164,7 @@ import { deviation, extent, max, mean, merge, min, range, sum } from "d3-array";
|
|
|
164
164
|
import { nest } from "d3-collection";
|
|
165
165
|
import * as scales from "d3-scale";
|
|
166
166
|
import * as d3Shape from "d3-shape";
|
|
167
|
-
import pkg from
|
|
167
|
+
import pkg from "open-color/open-color.js";
|
|
168
168
|
var openColor = pkg.theme;
|
|
169
169
|
import { colorAssign, colorContrast, colorDefaults, colorLegible } from "@d3plus/color";
|
|
170
170
|
import { merge as d3plusMerge, unique } from "@d3plus/data";
|
|
@@ -454,7 +454,6 @@ var Plot = /*#__PURE__*/ function(Viz) {
|
|
|
454
454
|
_this._stackOffset = stackOffsetDiverging;
|
|
455
455
|
_this._stackOrder = stackOrderDescending;
|
|
456
456
|
_this._timelineConfig = assign(_this._timelineConfig, {
|
|
457
|
-
brushing: true,
|
|
458
457
|
brushMin: function() {
|
|
459
458
|
return _this._xTime || _this._yTime || _this._x2Time || _this._y2Time ? 2 : 1;
|
|
460
459
|
}
|
package/es/src/charts/Viz.js
CHANGED
|
@@ -359,12 +359,12 @@ var Viz = /*#__PURE__*/ function(BaseClass) {
|
|
|
359
359
|
_this._messageClass = new Message();
|
|
360
360
|
_this._messageMask = "rgba(0, 0, 0, 0.05)";
|
|
361
361
|
_this._messageStyle = {
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
362
|
+
bottom: "0",
|
|
363
|
+
left: "0",
|
|
364
|
+
position: "absolute",
|
|
365
|
+
right: "0",
|
|
366
366
|
"text-align": "center",
|
|
367
|
-
|
|
367
|
+
top: "0"
|
|
368
368
|
};
|
|
369
369
|
_this._noDataHTML = function() {
|
|
370
370
|
return '\n <div style="left: 50%; top: 50%; position: absolute; transform: translate(-50%, -50%);">\n <strong>'.concat(_this._translate("No Data Available"), "</strong>\n </div>");
|
|
@@ -373,8 +373,8 @@ var Viz = /*#__PURE__*/ function(BaseClass) {
|
|
|
373
373
|
_this._on = {
|
|
374
374
|
"click.shape": clickShape.bind(_this),
|
|
375
375
|
"click.legend": clickLegend.bind(_this),
|
|
376
|
-
|
|
377
|
-
|
|
376
|
+
mouseenter: mouseenter.bind(_this),
|
|
377
|
+
mouseleave: mouseleave.bind(_this),
|
|
378
378
|
"mousemove.shape": mousemoveShape.bind(_this),
|
|
379
379
|
"mousemove.legend": mousemoveLegend.bind(_this)
|
|
380
380
|
};
|
|
@@ -435,7 +435,6 @@ var Viz = /*#__PURE__*/ function(BaseClass) {
|
|
|
435
435
|
_this._timeline = true;
|
|
436
436
|
_this._timelineClass = new Timeline().align("end");
|
|
437
437
|
_this._timelineConfig = {
|
|
438
|
-
brushing: false,
|
|
439
438
|
padding: 5
|
|
440
439
|
};
|
|
441
440
|
_this._timelinePadding = defaultPadding;
|
|
@@ -480,21 +479,21 @@ var Viz = /*#__PURE__*/ function(BaseClass) {
|
|
|
480
479
|
fill: "#444"
|
|
481
480
|
};
|
|
482
481
|
_this._zoomBrushSelectionStyle = {
|
|
483
|
-
|
|
482
|
+
fill: "#777",
|
|
484
483
|
"stroke-width": 0
|
|
485
484
|
};
|
|
486
485
|
_this._zoomControlStyle = {
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
486
|
+
background: "rgba(255, 255, 255, 0.75)",
|
|
487
|
+
border: "1px solid rgba(0, 0, 0, 0.75)",
|
|
488
|
+
color: "rgba(0, 0, 0, 0.75)",
|
|
489
|
+
display: "block",
|
|
490
|
+
font: "900 15px/21px ".concat(fontFamilyStringify(fontFamily)),
|
|
491
|
+
height: "20px",
|
|
492
|
+
margin: "5px",
|
|
493
|
+
opacity: 0.75,
|
|
494
|
+
padding: 0,
|
|
496
495
|
"text-align": "center",
|
|
497
|
-
|
|
496
|
+
width: "20px"
|
|
498
497
|
};
|
|
499
498
|
_this._zoomControlStyleActive = {
|
|
500
499
|
background: "rgba(0, 0, 0, 0.75)",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d3plus/core",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.9",
|
|
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.9",
|
|
38
|
+
"@d3plus/data": "3.0.9",
|
|
39
|
+
"@d3plus/dom": "3.0.9",
|
|
40
|
+
"@d3plus/format": "3.0.9",
|
|
41
|
+
"@d3plus/locales": "3.0.9",
|
|
42
|
+
"@d3plus/math": "3.0.9",
|
|
43
|
+
"@d3plus/text": "3.0.9",
|
|
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.9
|
|
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
|
|
@@ -35461,12 +35461,12 @@
|
|
|
35461
35461
|
this._messageClass = new Message();
|
|
35462
35462
|
this._messageMask = "rgba(0, 0, 0, 0.05)";
|
|
35463
35463
|
this._messageStyle = {
|
|
35464
|
-
|
|
35465
|
-
|
|
35466
|
-
|
|
35467
|
-
|
|
35464
|
+
bottom: "0",
|
|
35465
|
+
left: "0",
|
|
35466
|
+
position: "absolute",
|
|
35467
|
+
right: "0",
|
|
35468
35468
|
"text-align": "center",
|
|
35469
|
-
|
|
35469
|
+
top: "0"
|
|
35470
35470
|
};
|
|
35471
35471
|
this._noDataHTML = ()=>`
|
|
35472
35472
|
<div style="left: 50%; top: 50%; position: absolute; transform: translate(-50%, -50%);">
|
|
@@ -35476,8 +35476,8 @@
|
|
|
35476
35476
|
this._on = {
|
|
35477
35477
|
"click.shape": clickShape.bind(this),
|
|
35478
35478
|
"click.legend": clickLegend.bind(this),
|
|
35479
|
-
|
|
35480
|
-
|
|
35479
|
+
mouseenter: mouseenter.bind(this),
|
|
35480
|
+
mouseleave: mouseleave.bind(this),
|
|
35481
35481
|
"mousemove.shape": mousemoveShape.bind(this),
|
|
35482
35482
|
"mousemove.legend": mousemoveLegend.bind(this)
|
|
35483
35483
|
};
|
|
@@ -35536,7 +35536,6 @@
|
|
|
35536
35536
|
this._timeline = true;
|
|
35537
35537
|
this._timelineClass = new Timeline().align("end");
|
|
35538
35538
|
this._timelineConfig = {
|
|
35539
|
-
brushing: false,
|
|
35540
35539
|
padding: 5
|
|
35541
35540
|
};
|
|
35542
35541
|
this._timelinePadding = defaultPadding;
|
|
@@ -35577,21 +35576,21 @@
|
|
|
35577
35576
|
fill: "#444"
|
|
35578
35577
|
};
|
|
35579
35578
|
this._zoomBrushSelectionStyle = {
|
|
35580
|
-
|
|
35579
|
+
fill: "#777",
|
|
35581
35580
|
"stroke-width": 0
|
|
35582
35581
|
};
|
|
35583
35582
|
this._zoomControlStyle = {
|
|
35584
|
-
|
|
35585
|
-
|
|
35586
|
-
|
|
35587
|
-
|
|
35588
|
-
|
|
35589
|
-
|
|
35590
|
-
|
|
35591
|
-
|
|
35592
|
-
|
|
35583
|
+
background: "rgba(255, 255, 255, 0.75)",
|
|
35584
|
+
border: "1px solid rgba(0, 0, 0, 0.75)",
|
|
35585
|
+
color: "rgba(0, 0, 0, 0.75)",
|
|
35586
|
+
display: "block",
|
|
35587
|
+
font: `900 15px/21px ${fontFamilyStringify(fontFamily)}`,
|
|
35588
|
+
height: "20px",
|
|
35589
|
+
margin: "5px",
|
|
35590
|
+
opacity: 0.75,
|
|
35591
|
+
padding: 0,
|
|
35593
35592
|
"text-align": "center",
|
|
35594
|
-
|
|
35593
|
+
width: "20px"
|
|
35595
35594
|
};
|
|
35596
35595
|
this._zoomControlStyleActive = {
|
|
35597
35596
|
background: "rgba(0, 0, 0, 0.75)",
|
|
@@ -37501,7 +37500,6 @@
|
|
|
37501
37500
|
this._stackOffset = stackOffsetDiverging;
|
|
37502
37501
|
this._stackOrder = stackOrderDescending;
|
|
37503
37502
|
this._timelineConfig = assign(this._timelineConfig, {
|
|
37504
|
-
brushing: true,
|
|
37505
37503
|
brushMin: ()=>this._xTime || this._yTime || this._x2Time || this._y2Time ? 2 : 1
|
|
37506
37504
|
});
|
|
37507
37505
|
this._x = accessor("x");
|