@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/package.json CHANGED
@@ -1,28 +1,29 @@
1
1
  {
2
2
  "name": "@hpcc-js/chart",
3
- "version": "3.2.0",
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
- "default": "./dist/index.js"
11
+ "import": "./dist/index.js",
12
+ "require": "./dist/index.umd.cjs"
10
13
  },
11
14
  "./dist/*": "./dist/*"
12
15
  },
13
- "module": "./dist/index.js",
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": "node esbuild.js",
25
- "bundle-watch": "npm run bundle -- --development --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.2.0",
40
- "@hpcc-js/common": "^3.2.0",
41
- "@hpcc-js/util": "^3.2.0"
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.3.0",
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": "658c50fd965a7744ba8db675ba6878607c44d5e2"
79
+ "gitHead": "521692e7cfd01c274d5cfff0c54e79d1686d3dd6"
79
80
  }
package/src/Bullet.ts CHANGED
@@ -112,7 +112,6 @@ export class Bullet extends HTMLWidget {
112
112
  titleWidth = bbox.width;
113
113
  }
114
114
  });
115
- titleWidth; // Gap between title and bullet bar.
116
115
 
117
116
  // Bullet Chart ---
118
117
  const chart = d3Bullet()
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) c.lineWidth = 2 * d.padding, c.strokeText(d.text, 0, 0);
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;
@@ -1,3 +1,3 @@
1
1
  export const PKG_NAME = "@hpcc-js/chart";
2
2
  export const PKG_VERSION = "3.2.0";
3
- export const BUILD_VERSION = "3.2.0";
3
+ export const BUILD_VERSION = "3.2.1";
@@ -1,5 +1,4 @@
1
1
  import { Column } from "../Column";
2
- import { Line } from "../Line"; Line;
3
2
  import { Pie } from "../Pie";
4
3
 
5
4
  export class Test3 extends Column {
package/src/test.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Column } from "./Column";
2
- import { Line } from "./Line"; Line;
3
2
  import { Pie } from "./Pie";
4
3
 
5
4
  export { Test3 as Test };
@@ -1,3 +1,3 @@
1
1
  export declare const PKG_NAME = "@hpcc-js/chart";
2
2
  export declare const PKG_VERSION = "3.2.0";
3
- export declare const BUILD_VERSION = "3.2.0";
3
+ export declare const BUILD_VERSION = "3.2.1";