@hpcc-js/chart 3.2.0 → 3.3.1
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/dist/index.js +6173 -323
- package/dist/index.js.map +1 -7
- package/dist/index.umd.cjs +4 -0
- package/dist/index.umd.cjs.map +1 -0
- package/package.json +14 -13
- package/src/Bullet.ts +0 -1
- package/src/D3Cloud.ts +4 -1
- package/src/__package__.ts +1 -1
- package/src/__tests__/test3.ts +0 -1
- package/src/test.ts +0 -1
- package/types/__package__.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hpcc-js/chart",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"description": "hpcc-js - Viz Chart",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"main": "./dist/index.umd.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
6
8
|
"exports": {
|
|
7
9
|
".": {
|
|
8
10
|
"types": "./types/index.d.ts",
|
|
9
|
-
"
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"require": "./dist/index.umd.cjs"
|
|
10
13
|
},
|
|
11
14
|
"./dist/*": "./dist/*"
|
|
12
15
|
},
|
|
13
|
-
"
|
|
14
|
-
"browser": "./dist/index.js",
|
|
16
|
+
"browser": "./dist/index.umd.cjs",
|
|
15
17
|
"types": "./types/index.d.ts",
|
|
16
18
|
"files": [
|
|
17
19
|
"dist/*",
|
|
18
20
|
"src/*",
|
|
19
|
-
"types/*"
|
|
20
|
-
"font-awesome/**/*"
|
|
21
|
+
"types/*"
|
|
21
22
|
],
|
|
22
23
|
"scripts": {
|
|
23
24
|
"clean": "rimraf --glob lib* types dist *.tsbuildinfo .turbo",
|
|
24
|
-
"bundle": "
|
|
25
|
-
"bundle-watch": "
|
|
25
|
+
"bundle": "vite build",
|
|
26
|
+
"bundle-watch": "vite --port 5500",
|
|
26
27
|
"gen-types": "tsc --project tsconfig.json",
|
|
27
28
|
"gen-types-watch": "npm run gen-types -- --watch",
|
|
28
29
|
"build": "run-p gen-types bundle",
|
|
@@ -36,12 +37,12 @@
|
|
|
36
37
|
"update-major": "npx --yes npm-check-updates -u"
|
|
37
38
|
},
|
|
38
39
|
"dependencies": {
|
|
39
|
-
"@hpcc-js/api": "^3.
|
|
40
|
-
"@hpcc-js/common": "^3.
|
|
41
|
-
"@hpcc-js/util": "^3.
|
|
40
|
+
"@hpcc-js/api": "^3.3.1",
|
|
41
|
+
"@hpcc-js/common": "^3.3.1",
|
|
42
|
+
"@hpcc-js/util": "^3.3.1"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
|
-
"@hpcc-js/esbuild-plugins": "^1.
|
|
45
|
+
"@hpcc-js/esbuild-plugins": "^1.4.1",
|
|
45
46
|
"@types/d3-shape": "1.3.12",
|
|
46
47
|
"@types/d3-transition": "1.3.6",
|
|
47
48
|
"d3-array": "^1",
|
|
@@ -75,5 +76,5 @@
|
|
|
75
76
|
"url": "https://github.com/hpcc-systems/Visualization/issues"
|
|
76
77
|
},
|
|
77
78
|
"homepage": "https://github.com/hpcc-systems/Visualization",
|
|
78
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "521692e7cfd01c274d5cfff0c54e79d1686d3dd6"
|
|
79
80
|
}
|
package/src/Bullet.ts
CHANGED
package/src/D3Cloud.ts
CHANGED
|
@@ -270,7 +270,10 @@ function cloudSprite(contextAndRatio, d, data, di) {
|
|
|
270
270
|
c.translate((x + (w >> 1)) / ratio, (y + (h >> 1)) / ratio);
|
|
271
271
|
if (d.rotate) c.rotate(d.rotate * cloudRadians);
|
|
272
272
|
c.fillText(d.text, 0, 0);
|
|
273
|
-
if (d.padding)
|
|
273
|
+
if (d.padding) {
|
|
274
|
+
c.lineWidth = 2 * d.padding;
|
|
275
|
+
c.strokeText(d.text, 0, 0);
|
|
276
|
+
}
|
|
274
277
|
c.restore();
|
|
275
278
|
d.width = w;
|
|
276
279
|
d.height = h;
|
package/src/__package__.ts
CHANGED
package/src/__tests__/test3.ts
CHANGED
package/src/test.ts
CHANGED
package/types/__package__.d.ts
CHANGED