@hpcc-js/layout 3.2.1 → 3.2.3
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 +240 -259
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +4 -4
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +8 -8
- package/src/ChartPanel.ts +1 -21
- package/types/ChartPanel.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hpcc-js/layout",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.3",
|
|
4
4
|
"description": "hpcc-js - Viz Layout",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.umd.cjs",
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"update-major": "npx --yes npm-check-updates -u"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@hpcc-js/api": "^3.3.
|
|
41
|
-
"@hpcc-js/chart": "^3.3.
|
|
42
|
-
"@hpcc-js/common": "^3.3.
|
|
43
|
-
"@hpcc-js/
|
|
44
|
-
"@hpcc-js/util": "^3.3.
|
|
40
|
+
"@hpcc-js/api": "^3.3.2",
|
|
41
|
+
"@hpcc-js/chart": "^3.3.2",
|
|
42
|
+
"@hpcc-js/common": "^3.3.2",
|
|
43
|
+
"@hpcc-js/dgrid": "^3.2.4",
|
|
44
|
+
"@hpcc-js/util": "^3.3.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@hpcc-js/esbuild-plugins": "^1.4.
|
|
47
|
+
"@hpcc-js/esbuild-plugins": "^1.4.2",
|
|
48
48
|
"@types/d3-transition": "1.3.6",
|
|
49
49
|
"d3-drag": "^1",
|
|
50
50
|
"d3-selection": "^1",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"url": "https://github.com/hpcc-systems/Visualization/issues"
|
|
65
65
|
},
|
|
66
66
|
"homepage": "https://github.com/hpcc-systems/Visualization",
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "c54b3bd37ed839305001ba47f2657a1f8eb8628a"
|
|
68
68
|
}
|
package/src/ChartPanel.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IHighlight } from "@hpcc-js/api";
|
|
2
2
|
import { Button, Database, IconBar, ProgressBar, Spacer, SVGWidget, Text, TitleBar, ToggleButton, Utility, Widget } from "@hpcc-js/common";
|
|
3
3
|
import type { XYAxis } from "@hpcc-js/chart";
|
|
4
|
-
import { Table } from "@hpcc-js/
|
|
4
|
+
import { Table } from "@hpcc-js/dgrid";
|
|
5
5
|
import { select as d3Select } from "d3-selection";
|
|
6
6
|
import { Border2 } from "./Border2.ts";
|
|
7
7
|
import { Carousel } from "./Carousel.ts";
|
|
@@ -286,26 +286,6 @@ export class ChartPanel<T extends Widget = Widget> extends Border2 implements IH
|
|
|
286
286
|
private _prevButtons;
|
|
287
287
|
update(domNode, element) {
|
|
288
288
|
super.update(domNode, element);
|
|
289
|
-
if (this._table && this.widget_exists() && this.widget().class().indexOf("chart_XYAxis") >= 0) {
|
|
290
|
-
const chart = this.widget() as unknown as XYAxis;
|
|
291
|
-
this._table.columns().forEach((column, idx) => {
|
|
292
|
-
switch (idx === 0 ? chart.xAxisType() : chart.yAxisType()) {
|
|
293
|
-
case "linear":
|
|
294
|
-
case "log":
|
|
295
|
-
case "pow":
|
|
296
|
-
this._table.columnType(column, "number");
|
|
297
|
-
break;
|
|
298
|
-
case "time":
|
|
299
|
-
this._table.columnType(column, "time");
|
|
300
|
-
break;
|
|
301
|
-
case "ordinal":
|
|
302
|
-
default:
|
|
303
|
-
this._table.columnType(column, "string");
|
|
304
|
-
}
|
|
305
|
-
this._table.columnPattern(column, idx === 0 ? chart.xAxisTypeTimePattern() : chart.yAxisTypeTimePattern());
|
|
306
|
-
this._table.columnFormat(column, idx === 0 ? chart.xAxisTickFormat() : chart.yAxisTickFormat());
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
289
|
}
|
|
310
290
|
|
|
311
291
|
preUpdate(domNode, element) {
|
package/types/ChartPanel.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IHighlight } from "@hpcc-js/api";
|
|
2
2
|
import { Database, ProgressBar, Spacer, TitleBar, Widget } from "@hpcc-js/common";
|
|
3
|
-
import { Table } from "@hpcc-js/
|
|
3
|
+
import { Table } from "@hpcc-js/dgrid";
|
|
4
4
|
import { Border2 } from "./Border2.ts";
|
|
5
5
|
import { Carousel } from "./Carousel.ts";
|
|
6
6
|
import { Legend } from "./Legend.ts";
|