@hpcc-js/api 2.13.0 → 3.1.0
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.css +2 -0
- package/dist/index.css.map +7 -0
- package/dist/index.js +37 -761
- package/dist/index.js.map +7 -1
- package/package.json +26 -31
- package/src/ITooltip.ts +2 -2
- package/src/Tooltip.ts +2 -2
- package/src/__package__.ts +2 -2
- package/src/index.ts +10 -10
- package/types/I1DChart.d.ts +0 -1
- package/types/I2DAggrChart.d.ts +0 -1
- package/types/I2DChart.d.ts +0 -1
- package/types/IGraph.d.ts +0 -1
- package/types/IHighlight.d.ts +0 -1
- package/types/IInput.d.ts +0 -1
- package/types/INDChart.d.ts +0 -1
- package/types/ITooltip.d.ts +1 -2
- package/types/ITree.d.ts +0 -1
- package/types/Tooltip.d.ts +0 -1
- package/types/__package__.d.ts +2 -3
- package/types/index.d.ts +10 -11
- package/dist/index.es6.js +0 -745
- package/dist/index.es6.js.map +0 -1
- package/dist/index.min.js +0 -2
- package/dist/index.min.js.map +0 -1
- package/types/I1DChart.d.ts.map +0 -1
- package/types/I2DAggrChart.d.ts.map +0 -1
- package/types/I2DChart.d.ts.map +0 -1
- package/types/IGraph.d.ts.map +0 -1
- package/types/IHighlight.d.ts.map +0 -1
- package/types/IInput.d.ts.map +0 -1
- package/types/INDChart.d.ts.map +0 -1
- package/types/ITooltip.d.ts.map +0 -1
- package/types/ITree.d.ts.map +0 -1
- package/types/Tooltip.d.ts.map +0 -1
- package/types/__package__.d.ts.map +0 -1
- package/types/index.d.ts.map +0 -1
- package/types-3.4/I1DChart.d.ts +0 -2
- package/types-3.4/I2DAggrChart.d.ts +0 -2
- package/types-3.4/I2DChart.d.ts +0 -2
- package/types-3.4/IGraph.d.ts +0 -2
- package/types-3.4/IHighlight.d.ts +0 -5
- package/types-3.4/IInput.d.ts +0 -27
- package/types-3.4/INDChart.d.ts +0 -2
- package/types-3.4/ITooltip.d.ts +0 -45
- package/types-3.4/ITree.d.ts +0 -2
- package/types-3.4/Tooltip.d.ts +0 -2
- package/types-3.4/__package__.d.ts +0 -4
- package/types-3.4/index.d.ts +0 -11
package/package.json
CHANGED
|
@@ -1,52 +1,47 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hpcc-js/api",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "hpcc-js - Viz api",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
"<3.8": {
|
|
12
|
-
"*": [
|
|
13
|
-
"types-3.4/index.d.ts"
|
|
14
|
-
]
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./types/index.d.ts",
|
|
9
|
+
"default": "./dist/index.js"
|
|
15
10
|
}
|
|
16
11
|
},
|
|
12
|
+
"module": "./dist/index.js",
|
|
13
|
+
"browser": "./dist/index.js",
|
|
14
|
+
"types": "./types/index.d.ts",
|
|
17
15
|
"files": [
|
|
18
16
|
"dist/*",
|
|
19
|
-
"
|
|
20
|
-
"types
|
|
21
|
-
"src/*"
|
|
17
|
+
"src/*",
|
|
18
|
+
"types/*"
|
|
22
19
|
],
|
|
23
20
|
"scripts": {
|
|
24
|
-
"clean": "rimraf --glob lib* types dist *.tsbuildinfo",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"bundle-watch": "npm run bundle -- -w",
|
|
31
|
-
"minimize": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
|
|
32
|
-
"gen-legacy-types": "downlevel-dts ./types ./types-3.4",
|
|
33
|
-
"build": "npm run compile-es6 && npm run bundle",
|
|
34
|
-
"watch": "npm-run-all compile-es6 -p compile-es6-watch bundle-watch",
|
|
21
|
+
"clean": "rimraf --glob lib* types dist *.tsbuildinfo .turbo",
|
|
22
|
+
"bundle": "node esbuild.js",
|
|
23
|
+
"bundle-watch": "npm run bundle -- --development --watch",
|
|
24
|
+
"gen-types": "tsc --project tsconfig.json",
|
|
25
|
+
"gen-types-watch": "npm run gen-types -- --watch",
|
|
26
|
+
"build": "run-p gen-types bundle",
|
|
35
27
|
"stamp": "node ../../node_modules/@hpcc-js/bundle/src/stamp.js",
|
|
36
28
|
"lint": "eslint ./src",
|
|
29
|
+
"lint-fix": "eslint --fix src/**/*.ts",
|
|
37
30
|
"docs": "typedoc --options tdoptions.json .",
|
|
38
|
-
"
|
|
31
|
+
"test-browser": "vitest run --project browser",
|
|
32
|
+
"test": "vitest run",
|
|
33
|
+
"coverage": "vitest run --coverage",
|
|
34
|
+
"update": "npx -y npm-check-updates -u -t minor"
|
|
39
35
|
},
|
|
40
36
|
"dependencies": {
|
|
41
|
-
"@hpcc-js/common": "^
|
|
37
|
+
"@hpcc-js/common": "^3.1.0"
|
|
42
38
|
},
|
|
43
39
|
"devDependencies": {
|
|
44
|
-
"@hpcc-js/
|
|
40
|
+
"@hpcc-js/esbuild-plugins": "^1.2.0",
|
|
45
41
|
"d3-collection": "^1",
|
|
46
42
|
"d3-color": "3.1.0",
|
|
47
43
|
"d3-format": "^1",
|
|
48
|
-
"d3-selection": "^1"
|
|
49
|
-
"tslib": "2.6.3"
|
|
44
|
+
"d3-selection": "^1"
|
|
50
45
|
},
|
|
51
46
|
"repository": {
|
|
52
47
|
"type": "git",
|
|
@@ -59,5 +54,5 @@
|
|
|
59
54
|
"url": "https://github.com/hpcc-systems/Visualization/issues"
|
|
60
55
|
},
|
|
61
56
|
"homepage": "https://github.com/hpcc-systems/Visualization",
|
|
62
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "3f6146539f487dca08a35cdd5f94ca29609b4343"
|
|
63
58
|
}
|
package/src/ITooltip.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Widget } from "@hpcc-js/common";
|
|
2
2
|
import { format as d3Format } from "d3-format";
|
|
3
|
-
import { tip } from "./Tooltip";
|
|
3
|
+
import { tip } from "./Tooltip.ts";
|
|
4
4
|
|
|
5
5
|
import "../src/ITooltip.css";
|
|
6
6
|
|
|
7
7
|
declare const event: object;
|
|
8
8
|
|
|
9
9
|
// Use old school class declaration as this is a mixin ---
|
|
10
|
-
export function ITooltip() {
|
|
10
|
+
export function ITooltip(this: any) {
|
|
11
11
|
this.tooltip = tip();
|
|
12
12
|
|
|
13
13
|
if (this.tooltipLabelFormat_exists()) {
|
package/src/Tooltip.ts
CHANGED
|
@@ -28,7 +28,7 @@ export function tip() {
|
|
|
28
28
|
// Returns a tip
|
|
29
29
|
tip.show = function (d, idx, arr) {
|
|
30
30
|
target = arr[idx];
|
|
31
|
-
const args = Array.prototype.slice.call(arguments);
|
|
31
|
+
const args = Array.prototype.slice.call(arguments) as [];
|
|
32
32
|
const content = html.apply(this, args);
|
|
33
33
|
if (content === null) {
|
|
34
34
|
return tip;
|
|
@@ -74,7 +74,7 @@ export function tip() {
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
function _placement_attempt(_dir, _top_offset?, _left_offset?) {
|
|
77
|
+
function _placement_attempt(this: any, _dir, _top_offset?, _left_offset?) {
|
|
78
78
|
_top_offset = _top_offset ? _top_offset : 0;
|
|
79
79
|
_left_offset = _left_offset ? _left_offset : 0;
|
|
80
80
|
nodel.style("white-space", "nowrap");
|
package/src/__package__.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export const PKG_NAME = "@hpcc-js/api";
|
|
2
|
-
export const PKG_VERSION = "
|
|
3
|
-
export const BUILD_VERSION = "2.
|
|
2
|
+
export const PKG_VERSION = "3.1.0";
|
|
3
|
+
export const BUILD_VERSION = "2.107.0";
|
package/src/index.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from "./__package__";
|
|
2
|
-
export * from "./I1DChart";
|
|
3
|
-
export * from "./I2DChart";
|
|
4
|
-
export * from "./I2DAggrChart";
|
|
5
|
-
export * from "./IGraph";
|
|
6
|
-
export * from "./IHighlight";
|
|
7
|
-
export * from "./IInput";
|
|
8
|
-
export * from "./INDChart";
|
|
9
|
-
export * from "./ITooltip";
|
|
10
|
-
export * from "./ITree";
|
|
1
|
+
export * from "./__package__.ts";
|
|
2
|
+
export * from "./I1DChart.ts";
|
|
3
|
+
export * from "./I2DChart.ts";
|
|
4
|
+
export * from "./I2DAggrChart.ts";
|
|
5
|
+
export * from "./IGraph.ts";
|
|
6
|
+
export * from "./IHighlight.ts";
|
|
7
|
+
export * from "./IInput.ts";
|
|
8
|
+
export * from "./INDChart.ts";
|
|
9
|
+
export * from "./ITooltip.ts";
|
|
10
|
+
export * from "./ITree.ts";
|
package/types/I1DChart.d.ts
CHANGED
package/types/I2DAggrChart.d.ts
CHANGED
package/types/I2DChart.d.ts
CHANGED
package/types/IGraph.d.ts
CHANGED
package/types/IHighlight.d.ts
CHANGED
package/types/IInput.d.ts
CHANGED
package/types/INDChart.d.ts
CHANGED
package/types/ITooltip.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../src/ITooltip.css";
|
|
2
|
-
export declare function ITooltip(): void;
|
|
2
|
+
export declare function ITooltip(this: any): void;
|
|
3
3
|
export declare namespace ITooltip {
|
|
4
4
|
var prototype: any;
|
|
5
5
|
}
|
|
@@ -42,4 +42,3 @@ export interface ITooltip {
|
|
|
42
42
|
(_: number): ITooltip;
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
//# sourceMappingURL=ITooltip.d.ts.map
|
package/types/ITree.d.ts
CHANGED
package/types/Tooltip.d.ts
CHANGED
package/types/__package__.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export declare const PKG_NAME = "@hpcc-js/api";
|
|
2
|
-
export declare const PKG_VERSION = "
|
|
3
|
-
export declare const BUILD_VERSION = "2.
|
|
4
|
-
//# sourceMappingURL=__package__.d.ts.map
|
|
2
|
+
export declare const PKG_VERSION = "3.1.0";
|
|
3
|
+
export declare const BUILD_VERSION = "2.107.0";
|
package/types/index.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
export * from "./__package__";
|
|
2
|
-
export * from "./I1DChart";
|
|
3
|
-
export * from "./I2DChart";
|
|
4
|
-
export * from "./I2DAggrChart";
|
|
5
|
-
export * from "./IGraph";
|
|
6
|
-
export * from "./IHighlight";
|
|
7
|
-
export * from "./IInput";
|
|
8
|
-
export * from "./INDChart";
|
|
9
|
-
export * from "./ITooltip";
|
|
10
|
-
export * from "./ITree";
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export * from "./__package__.ts";
|
|
2
|
+
export * from "./I1DChart.ts";
|
|
3
|
+
export * from "./I2DChart.ts";
|
|
4
|
+
export * from "./I2DAggrChart.ts";
|
|
5
|
+
export * from "./IGraph.ts";
|
|
6
|
+
export * from "./IHighlight.ts";
|
|
7
|
+
export * from "./IInput.ts";
|
|
8
|
+
export * from "./INDChart.ts";
|
|
9
|
+
export * from "./ITooltip.ts";
|
|
10
|
+
export * from "./ITree.ts";
|