chartjs-chart-sankey 0.15.0 → 0.15.2
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
CHANGED
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
[Chart.js](https://www.chartjs.org/) **^3.3** module for creating sankey diagrams
|
|
4
4
|
|
|
5
|
-
](https://www.npmjs.com/package/chartjs-chart-sankey)
|
|
6
|
+
[](https://github.com/kurkle/chartjs-chart-sankey/releases/latest)
|
|
7
|
+

|
|
6
8
|
[](https://sonarcloud.io/summary/new_code?id=kurkle_chartjs-chart-sankey)
|
|
7
9
|
[](https://sonarcloud.io/summary/new_code?id=kurkle_chartjs-chart-sankey)
|
|
8
|
-
[](https://www.npmjs.com/package/chartjs-chart-sankey)
|
|
9
|
-
[](https://github.com/kurkle/chartjs-chart-sankey/releases/latest)
|
|
10
10
|
[](https://chartjs-chart-sankey.pages.dev)
|
|
11
|
-

|
|
12
11
|

|
|
13
12
|
|
|
14
13
|
## Browser support
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* chartjs-chart-sankey v0.15.
|
|
2
|
+
* chartjs-chart-sankey v0.15.2
|
|
3
3
|
* https://chartjs-chart-sankey.pages.dev/
|
|
4
4
|
* (c) 2026 Jukka Kurkela
|
|
5
5
|
* Released under the MIT license
|
|
6
6
|
*/
|
|
7
7
|
import { DatasetController, Chart, Element } from 'chart.js';
|
|
8
|
-
import { toFont, valueOrDefault,
|
|
8
|
+
import { toFont, valueOrDefault, color, getHoverColor } from 'chart.js/helpers';
|
|
9
9
|
|
|
10
10
|
const defined = (x)=>x !== undefined;
|
|
11
11
|
function toTextLines(raw) {
|
package/package.json
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
"description": "Chart.js module for creating sankey diagrams",
|
|
7
7
|
"devDependencies": {
|
|
8
8
|
"@astrojs/check": "^0.9.9",
|
|
9
|
-
"@astrojs/mdx": "^
|
|
10
|
-
"@astrojs/starlight": "^0.
|
|
9
|
+
"@astrojs/mdx": "^8.0.0",
|
|
10
|
+
"@astrojs/starlight": "^0.42.0",
|
|
11
11
|
"@biomejs/biome": "^2.4.14",
|
|
12
12
|
"@emnapi/core": "^1.11.2",
|
|
13
13
|
"@emnapi/runtime": "^1.11.2",
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
"@types/jasmine": "^6.0.0",
|
|
23
23
|
"@types/node": "^26.1.0",
|
|
24
24
|
"astro": "^7.0.6",
|
|
25
|
-
"c8": "^
|
|
25
|
+
"c8": "^12.0.0",
|
|
26
26
|
"chart.js": "^4.4.5",
|
|
27
27
|
"chartjs-test-utils": "^0.5.0",
|
|
28
28
|
"cross-env": "^10.1.0",
|
|
29
29
|
"globals": "^17.0.0",
|
|
30
|
-
"jasmine": "^
|
|
30
|
+
"jasmine": "^7.0.0",
|
|
31
31
|
"karma": "^6.3.2",
|
|
32
32
|
"karma-chrome-launcher": "^3.1.0",
|
|
33
33
|
"karma-coverage": "^2.0.3",
|
|
@@ -36,10 +36,12 @@
|
|
|
36
36
|
"karma-jasmine-html-reporter": "^2.0.0",
|
|
37
37
|
"karma-rollup-preprocessor": "^7.0.8",
|
|
38
38
|
"karma-spec-reporter": "^0.0.36",
|
|
39
|
+
"png-to-ico": "^3.0.2",
|
|
39
40
|
"rollup": "^4.24.0",
|
|
40
41
|
"rollup-plugin-cleanup": "^3.2.1",
|
|
41
42
|
"rollup-plugin-istanbul": "^5.0.0",
|
|
42
43
|
"semantic-release": "^25.0.3",
|
|
44
|
+
"sharp": "^0.35.4",
|
|
43
45
|
"typescript": "^6.0.3"
|
|
44
46
|
},
|
|
45
47
|
"exports": {
|
|
@@ -79,6 +81,7 @@
|
|
|
79
81
|
"docs:dev": "npm run build && astro dev",
|
|
80
82
|
"docs:version": "node ./docs/scripts/write-docs-version.cjs",
|
|
81
83
|
"format": "biome check --write",
|
|
84
|
+
"icons": "node ./docs/scripts/generate-icons.mjs",
|
|
82
85
|
"lint": "biome check",
|
|
83
86
|
"predocs": "npm run docs:version",
|
|
84
87
|
"predocs:dev": "npm run docs:version",
|
|
@@ -94,8 +97,12 @@
|
|
|
94
97
|
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.test.json && tsc -p tsconfig.json --emitDeclarationOnly && tsc --noEmit -p test/types/",
|
|
95
98
|
"typecheck:docs": "astro check"
|
|
96
99
|
},
|
|
100
|
+
"sideEffects": [
|
|
101
|
+
"dist/chartjs-chart-sankey.cjs",
|
|
102
|
+
"dist/chartjs-chart-sankey.min.js"
|
|
103
|
+
],
|
|
97
104
|
"type": "module",
|
|
98
105
|
"types": "dist/index.esm.d.ts",
|
|
99
106
|
"unpkg": "dist/chartjs-chart-sankey.min.js",
|
|
100
|
-
"version": "0.15.
|
|
107
|
+
"version": "0.15.2"
|
|
101
108
|
}
|