@hpcc-js/timeline 2.54.0 → 3.0.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.js +31 -1633
- package/dist/index.js.map +7 -1
- package/package.json +34 -37
- package/src/MiniGantt.ts +10 -9
- package/src/ReactAxisGantt.ts +8 -1
- package/src/ReactAxisGanttSeries.ts +2 -2
- package/src/ReactGantt.ts +4 -0
- package/src/ReactTimeline.ts +10 -10
- package/src/ReactTimelineSeries.ts +8 -8
- package/src/__package__.ts +2 -2
- package/src/index.ts +7 -7
- package/types/MiniGantt.d.ts +4 -5
- package/types/ReactAxisGantt.d.ts +2 -2
- package/types/ReactAxisGanttSeries.d.ts +2 -3
- package/types/ReactGantt.d.ts +1 -1
- package/types/ReactTimeline.d.ts +2 -3
- package/types/ReactTimelineSeries.d.ts +1 -2
- package/types/__package__.d.ts +2 -3
- package/types/index.d.ts +7 -8
- package/dist/index.es6.js +0 -1625
- 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/MiniGantt.d.ts.map +0 -1
- package/types/ReactAxisGantt.d.ts.map +0 -1
- package/types/ReactAxisGanttSeries.d.ts.map +0 -1
- package/types/ReactGantt.d.ts.map +0 -1
- package/types/ReactTimeline.d.ts.map +0 -1
- package/types/ReactTimelineSeries.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/MiniGantt.d.ts +0 -106
- package/types-3.4/ReactAxisGantt.d.ts +0 -83
- package/types-3.4/ReactAxisGanttSeries.d.ts +0 -82
- package/types-3.4/ReactGantt.d.ts +0 -135
- package/types-3.4/ReactTimeline.d.ts +0 -18
- package/types-3.4/ReactTimelineSeries.d.ts +0 -18
- package/types-3.4/__package__.d.ts +0 -4
- package/types-3.4/index.d.ts +0 -8
package/package.json
CHANGED
|
@@ -1,58 +1,55 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hpcc-js/timeline",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "hpcc-js - Viz Timeline",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
"*": [
|
|
13
|
-
"types-3.4/index.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./types/index.d.ts",
|
|
9
|
+
"default": "./dist/index.js"
|
|
10
|
+
},
|
|
11
|
+
"./dist/*": "./dist/*"
|
|
16
12
|
},
|
|
13
|
+
"module": "./dist/index.js",
|
|
14
|
+
"browser": "./dist/index.js",
|
|
15
|
+
"types": "./types/index.d.ts",
|
|
17
16
|
"files": [
|
|
18
17
|
"dist/*",
|
|
18
|
+
"src/*",
|
|
19
19
|
"types/*",
|
|
20
|
-
"
|
|
21
|
-
"src/*"
|
|
20
|
+
"font-awesome/**/*"
|
|
22
21
|
],
|
|
23
22
|
"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",
|
|
35
|
-
"stamp": "node ../../node_modules/@hpcc-js/bundle/src/stamp.js",
|
|
23
|
+
"clean": "rimraf --glob lib* types dist *.tsbuildinfo .turbo",
|
|
24
|
+
"bundle": "node esbuild.js",
|
|
25
|
+
"bundle-watch": "npm run bundle -- --development --watch",
|
|
26
|
+
"gen-types": "tsc --project tsconfig.json",
|
|
27
|
+
"gen-types-watch": "npm run gen-types -- --watch",
|
|
28
|
+
"build": "run-p gen-types bundle",
|
|
36
29
|
"lint": "eslint ./src",
|
|
30
|
+
"lint-fix": "eslint --fix src/**/*.ts",
|
|
37
31
|
"docs": "typedoc --options tdoptions.json .",
|
|
38
|
-
"
|
|
32
|
+
"test-browser": "vitest run --project browser",
|
|
33
|
+
"test": "vitest run",
|
|
34
|
+
"coverage": "vitest run --coverage",
|
|
35
|
+
"update": "npx --yes npm-check-updates -u -t minor",
|
|
36
|
+
"update-major": "npx --yes npm-check-updates -u"
|
|
39
37
|
},
|
|
40
38
|
"dependencies": {
|
|
41
|
-
"@hpcc-js/api": "^
|
|
42
|
-
"@hpcc-js/chart": "^
|
|
43
|
-
"@hpcc-js/common": "^
|
|
44
|
-
"@hpcc-js/html": "^
|
|
45
|
-
"@hpcc-js/layout": "^
|
|
46
|
-
"@hpcc-js/react": "^
|
|
39
|
+
"@hpcc-js/api": "^3.1.0",
|
|
40
|
+
"@hpcc-js/chart": "^3.1.0",
|
|
41
|
+
"@hpcc-js/common": "^3.1.0",
|
|
42
|
+
"@hpcc-js/html": "^3.0.0",
|
|
43
|
+
"@hpcc-js/layout": "^3.0.0",
|
|
44
|
+
"@hpcc-js/react": "^3.0.0"
|
|
47
45
|
},
|
|
48
46
|
"devDependencies": {
|
|
49
|
-
"@hpcc-js/
|
|
47
|
+
"@hpcc-js/esbuild-plugins": "^1.2.0",
|
|
50
48
|
"d3-array": "^1",
|
|
51
49
|
"d3-scale": "^1",
|
|
52
50
|
"d3-selection": "^1",
|
|
53
51
|
"d3-time-format": "^2",
|
|
54
|
-
"d3-zoom": "^1"
|
|
55
|
-
"tslib": "2.7.0"
|
|
52
|
+
"d3-zoom": "^1"
|
|
56
53
|
},
|
|
57
54
|
"repository": {
|
|
58
55
|
"type": "git",
|
|
@@ -65,5 +62,5 @@
|
|
|
65
62
|
"url": "https://github.com/hpcc-systems/Visualization/issues"
|
|
66
63
|
},
|
|
67
64
|
"homepage": "https://github.com/hpcc-systems/Visualization",
|
|
68
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "658c50fd965a7744ba8db675ba6878607c44d5e2"
|
|
69
66
|
}
|
package/src/MiniGantt.ts
CHANGED
|
@@ -83,7 +83,7 @@ export class MiniGantt extends SVGWidget {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
dataStartPos(d) {
|
|
86
|
-
if(typeof this._dateCache[d[this._startDate_idx]] !== "undefined"){
|
|
86
|
+
if (typeof this._dateCache[d[this._startDate_idx]] !== "undefined") {
|
|
87
87
|
return this._dateCache[d[this._startDate_idx]];
|
|
88
88
|
}
|
|
89
89
|
const pos = this.brAxis.scalePos(d[this._startDate_idx]);
|
|
@@ -92,7 +92,7 @@ export class MiniGantt extends SVGWidget {
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
dataEndPos(d) {
|
|
95
|
-
if(typeof this._dateCache[d[this._endDate_idx]] !== "undefined"){
|
|
95
|
+
if (typeof this._dateCache[d[this._endDate_idx]] !== "undefined") {
|
|
96
96
|
return this._dateCache[d[this._endDate_idx]];
|
|
97
97
|
}
|
|
98
98
|
const pos = this.brAxis.scalePos(d[this._endDate_idx]);
|
|
@@ -522,20 +522,21 @@ export class MiniGantt extends SVGWidget {
|
|
|
522
522
|
|
|
523
523
|
updateEntityRect(textbox: EntityRect, d) {
|
|
524
524
|
}
|
|
525
|
+
}
|
|
526
|
+
MiniGantt.prototype._class += " timeline_MiniGantt";
|
|
527
|
+
MiniGantt.prototype.implements(ITooltip.prototype);
|
|
528
|
+
MiniGantt.prototype.mixin(Utility.SimpleSelectionMixin);
|
|
525
529
|
|
|
530
|
+
export interface MiniGantt {
|
|
526
531
|
// ITooltip ---
|
|
527
532
|
tooltip;
|
|
528
|
-
tooltipHTML
|
|
529
|
-
tooltipFormat
|
|
533
|
+
tooltipHTML(_): string;
|
|
534
|
+
tooltipFormat(_): string;
|
|
530
535
|
|
|
531
536
|
// SimpleSelectionMixin
|
|
532
537
|
_selection;
|
|
533
|
-
}
|
|
534
|
-
MiniGantt.prototype._class += " timeline_MiniGantt";
|
|
535
|
-
MiniGantt.prototype.implements(ITooltip.prototype);
|
|
536
|
-
MiniGantt.prototype.mixin(Utility.SimpleSelectionMixin);
|
|
537
538
|
|
|
538
|
-
|
|
539
|
+
// Properties ---
|
|
539
540
|
timePattern(): string;
|
|
540
541
|
timePattern(_: string): this;
|
|
541
542
|
tickFormat(): string;
|
package/src/ReactAxisGantt.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Axis } from "@hpcc-js/chart";
|
|
2
2
|
import { SVGWidget } from "@hpcc-js/common";
|
|
3
|
-
import { ReactGantt } from "./ReactGantt";
|
|
3
|
+
import { ReactGantt } from "./ReactGantt.ts";
|
|
4
4
|
|
|
5
5
|
export type IAxisGanttData = [string, number | string, number | string, any?] | any[];
|
|
6
6
|
|
|
@@ -160,6 +160,13 @@ export class ReactAxisGantt extends SVGWidget {
|
|
|
160
160
|
this._gantt.render();
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
+
exit(domNode, element) {
|
|
164
|
+
this._bottomAxis.target(null);
|
|
165
|
+
this._gantt.target(null);
|
|
166
|
+
this._topAxis.target(null);
|
|
167
|
+
super.exit(domNode, element);
|
|
168
|
+
}
|
|
169
|
+
|
|
163
170
|
columns(): string[];
|
|
164
171
|
columns(_: string[]): this;
|
|
165
172
|
columns(_?: string[]): this | string[] {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { min as d3Min, max as d3Max } from "d3-array";
|
|
2
2
|
import { Axis } from "@hpcc-js/chart";
|
|
3
3
|
import { Border2 } from "@hpcc-js/layout";
|
|
4
|
-
import { ReactGantt } from "./ReactGantt";
|
|
5
|
-
import { IAxisGanttData } from "./ReactAxisGantt";
|
|
6
4
|
import { React } from "@hpcc-js/react";
|
|
5
|
+
import { ReactGantt } from "./ReactGantt.ts";
|
|
6
|
+
import { IAxisGanttData } from "./ReactAxisGantt.ts";
|
|
7
7
|
|
|
8
8
|
export class ReactAxisGanttSeries extends Border2 {
|
|
9
9
|
|
package/src/ReactGantt.ts
CHANGED
|
@@ -332,6 +332,10 @@ export class ReactGantt extends SVGZoomWidget {
|
|
|
332
332
|
;
|
|
333
333
|
element.on("dblclick.zoom", null);
|
|
334
334
|
}
|
|
335
|
+
exit(domNode, element) {
|
|
336
|
+
this._tooltip.target(null);
|
|
337
|
+
super.exit(domNode, element);
|
|
338
|
+
}
|
|
335
339
|
renderRangeElement(d, i, transformEach = false, options: any = {}, seriesKey?: string) {
|
|
336
340
|
const borderOffset1 = options.strokeWidth;
|
|
337
341
|
const borderOffset2 = borderOffset1 * 2;
|
package/src/ReactTimeline.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { timeFormat as d3TimeFormat, timeParse as d3TimeParse } from "d3-time-format";
|
|
2
|
-
import { ReactAxisGantt } from "./ReactAxisGantt";
|
|
2
|
+
import { ReactAxisGantt } from "./ReactAxisGantt.ts";
|
|
3
3
|
|
|
4
4
|
export class ReactTimeline extends ReactAxisGantt {
|
|
5
5
|
|
|
6
6
|
protected _axisLabelFormatter;//TODO: add a type to this? d3 time formatting function type?
|
|
7
7
|
|
|
8
|
-
constructor(){
|
|
8
|
+
constructor() {
|
|
9
9
|
super();
|
|
10
10
|
this._drawStartPos = "origin";
|
|
11
11
|
this._topAxis.type("time");
|
|
@@ -24,20 +24,20 @@ export class ReactTimeline extends ReactAxisGantt {
|
|
|
24
24
|
update(domNode, element) {
|
|
25
25
|
super.update(domNode, element);
|
|
26
26
|
|
|
27
|
-
if(this.timePattern_exists()) {
|
|
27
|
+
if (this.timePattern_exists()) {
|
|
28
28
|
|
|
29
29
|
let minTimestamp = Infinity;
|
|
30
30
|
let maxTimestamp = -Infinity;
|
|
31
31
|
let lowDateStr = "";
|
|
32
32
|
let highDateStr = "";
|
|
33
|
-
this.data().map(n=>{
|
|
33
|
+
this.data().map(n => {
|
|
34
34
|
const start = new Date(n[1]).getTime();
|
|
35
35
|
const end = new Date(n[2]).getTime();
|
|
36
|
-
if(minTimestamp > start){
|
|
36
|
+
if (minTimestamp > start) {
|
|
37
37
|
minTimestamp = start;
|
|
38
38
|
lowDateStr = "" + n[1];
|
|
39
39
|
}
|
|
40
|
-
if(maxTimestamp < end){
|
|
40
|
+
if (maxTimestamp < end) {
|
|
41
41
|
maxTimestamp = end;
|
|
42
42
|
highDateStr = "" + n[2];
|
|
43
43
|
}
|
|
@@ -78,7 +78,7 @@ export class ReactTimeline extends ReactAxisGantt {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
onzoom(transform) {
|
|
81
|
-
|
|
81
|
+
|
|
82
82
|
const w = this.width();
|
|
83
83
|
const low = this._gantt._minStart;
|
|
84
84
|
const high = this._gantt._maxEnd;
|
|
@@ -98,18 +98,18 @@ export class ReactTimeline extends ReactAxisGantt {
|
|
|
98
98
|
.render()
|
|
99
99
|
;
|
|
100
100
|
}
|
|
101
|
-
|
|
102
|
-
_tooltipHTML: (_) => string;
|
|
103
101
|
}
|
|
104
102
|
ReactTimeline.prototype._class += " timeline_ReactTimeline";
|
|
105
103
|
|
|
106
104
|
export interface ReactTimeline {
|
|
105
|
+
_tooltipHTML(_): string;
|
|
106
|
+
|
|
107
107
|
timePattern(): string;
|
|
108
108
|
timePattern(_: string): this;
|
|
109
109
|
timePattern_exists(): boolean;
|
|
110
110
|
tooltipTimeFormat(): string;
|
|
111
111
|
tooltipTimeFormat(_: string): this;
|
|
112
112
|
}
|
|
113
|
-
ReactTimeline.prototype.publish("timePattern", "%Y-%m-%d", "string", "Time pattern used for parsing datetime strings on each data row", null, {optional:true});
|
|
113
|
+
ReactTimeline.prototype.publish("timePattern", "%Y-%m-%d", "string", "Time pattern used for parsing datetime strings on each data row", null, { optional: true });
|
|
114
114
|
ReactTimeline.prototype.publish("tooltipTimeFormat", "%Y-%m-%d", "string", "Time format used in the default html tooltip");
|
|
115
115
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { timeFormat as d3TimeFormat, timeParse as d3TimeParse } from "d3-time-format";
|
|
2
|
-
import { ReactAxisGanttSeries } from "./ReactAxisGanttSeries";
|
|
2
|
+
import { ReactAxisGanttSeries } from "./ReactAxisGanttSeries.ts";
|
|
3
3
|
|
|
4
4
|
const parseTime = d3TimeParse("%Q");
|
|
5
5
|
export class ReactTimelineSeries extends ReactAxisGanttSeries {
|
|
6
6
|
|
|
7
7
|
protected _axisLabelFormatter;//TODO: add a type to this? d3 time formatting function type?
|
|
8
8
|
|
|
9
|
-
constructor(){
|
|
9
|
+
constructor() {
|
|
10
10
|
super();
|
|
11
11
|
this._topAxis.type("time");
|
|
12
12
|
this._bottomAxis.type("time");
|
|
@@ -23,20 +23,20 @@ export class ReactTimelineSeries extends ReactAxisGanttSeries {
|
|
|
23
23
|
update(domNode, element) {
|
|
24
24
|
super.update(domNode, element);
|
|
25
25
|
|
|
26
|
-
if(this.timePattern_exists()) {
|
|
26
|
+
if (this.timePattern_exists()) {
|
|
27
27
|
|
|
28
28
|
let minTimestamp = Infinity;
|
|
29
29
|
let maxTimestamp = -Infinity;
|
|
30
30
|
let lowDateStr = "";
|
|
31
31
|
let highDateStr = "";
|
|
32
|
-
this.data().forEach(n=>{
|
|
32
|
+
this.data().forEach(n => {
|
|
33
33
|
const start = new Date(n[1]).getTime();
|
|
34
34
|
const end = new Date(n[2]).getTime();
|
|
35
|
-
if(minTimestamp > start){
|
|
35
|
+
if (minTimestamp > start) {
|
|
36
36
|
minTimestamp = start;
|
|
37
37
|
lowDateStr = "" + n[1];
|
|
38
38
|
}
|
|
39
|
-
if(maxTimestamp < end){
|
|
39
|
+
if (maxTimestamp < end) {
|
|
40
40
|
maxTimestamp = end;
|
|
41
41
|
highDateStr = "" + n[2];
|
|
42
42
|
}
|
|
@@ -76,7 +76,7 @@ export class ReactTimelineSeries extends ReactAxisGanttSeries {
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
onzoom(transform) {
|
|
79
|
-
|
|
79
|
+
|
|
80
80
|
const w = this.width();
|
|
81
81
|
const low = this._gantt._minStart;
|
|
82
82
|
const high = this._gantt._maxEnd;
|
|
@@ -108,6 +108,6 @@ export interface ReactTimelineSeries {
|
|
|
108
108
|
tooltipTimeFormat(): string;
|
|
109
109
|
tooltipTimeFormat(_: string): this;
|
|
110
110
|
}
|
|
111
|
-
ReactTimelineSeries.prototype.publish("timePattern", "%Y-%m-%d", "string", "Time pattern used for parsing datetime strings on each data row", null, {optional:true});
|
|
111
|
+
ReactTimelineSeries.prototype.publish("timePattern", "%Y-%m-%d", "string", "Time pattern used for parsing datetime strings on each data row", null, { optional: true });
|
|
112
112
|
ReactTimelineSeries.prototype.publish("tooltipTimeFormat", "%Y-%m-%d", "string", "Time format used in the default html tooltip");
|
|
113
113
|
|
package/src/__package__.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export const PKG_NAME = "@hpcc-js/timeline";
|
|
2
|
-
export const PKG_VERSION = "
|
|
3
|
-
export const BUILD_VERSION = "2.
|
|
2
|
+
export const PKG_VERSION = "3.0.0";
|
|
3
|
+
export const BUILD_VERSION = "3.2.0";
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from "./__package__";
|
|
2
|
-
export * from "./MiniGantt";
|
|
3
|
-
export * from "./ReactGantt";
|
|
4
|
-
export * from "./ReactAxisGantt";
|
|
5
|
-
export * from "./ReactAxisGanttSeries";
|
|
6
|
-
export * from "./ReactTimeline";
|
|
7
|
-
export * from "./ReactTimelineSeries";
|
|
1
|
+
export * from "./__package__.ts";
|
|
2
|
+
export * from "./MiniGantt.ts";
|
|
3
|
+
export * from "./ReactGantt.ts";
|
|
4
|
+
export * from "./ReactAxisGantt.ts";
|
|
5
|
+
export * from "./ReactAxisGanttSeries.ts";
|
|
6
|
+
export * from "./ReactTimeline.ts";
|
|
7
|
+
export * from "./ReactTimelineSeries.ts";
|
package/types/MiniGantt.d.ts
CHANGED
|
@@ -43,12 +43,12 @@ export declare class MiniGantt extends SVGWidget {
|
|
|
43
43
|
dblclick(row: any, col: any, sel: any): void;
|
|
44
44
|
enterEntityRect(textbox: EntityRect, d: any): void;
|
|
45
45
|
updateEntityRect(textbox: EntityRect, d: any): void;
|
|
46
|
-
tooltip: any;
|
|
47
|
-
tooltipHTML: (_: any) => string;
|
|
48
|
-
tooltipFormat: (_: any) => string;
|
|
49
|
-
_selection: any;
|
|
50
46
|
}
|
|
51
47
|
export interface MiniGantt {
|
|
48
|
+
tooltip: any;
|
|
49
|
+
tooltipHTML(_: any): string;
|
|
50
|
+
tooltipFormat(_: any): string;
|
|
51
|
+
_selection: any;
|
|
52
52
|
timePattern(): string;
|
|
53
53
|
timePattern(_: string): this;
|
|
54
54
|
tickFormat(): string;
|
|
@@ -97,4 +97,3 @@ export interface MiniGantt {
|
|
|
97
97
|
centerOnMostRecent(): boolean;
|
|
98
98
|
centerOnMostRecent(_: boolean): this;
|
|
99
99
|
}
|
|
100
|
-
//# sourceMappingURL=MiniGantt.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Axis } from "@hpcc-js/chart";
|
|
2
2
|
import { SVGWidget } from "@hpcc-js/common";
|
|
3
|
-
import { ReactGantt } from "./ReactGantt";
|
|
3
|
+
import { ReactGantt } from "./ReactGantt.ts";
|
|
4
4
|
export type IAxisGanttData = [string, number | string, number | string, any?] | any[];
|
|
5
5
|
export declare class ReactAxisGantt extends SVGWidget {
|
|
6
6
|
protected _topAxis: Axis;
|
|
@@ -20,6 +20,7 @@ export declare class ReactAxisGantt extends SVGWidget {
|
|
|
20
20
|
enter(domNode: any, element: any): void;
|
|
21
21
|
onzoom(transform: any): void;
|
|
22
22
|
update(domNode: any, element: any): void;
|
|
23
|
+
exit(domNode: any, element: any): void;
|
|
23
24
|
columns(): string[];
|
|
24
25
|
columns(_: string[]): this;
|
|
25
26
|
data(): IAxisGanttData[];
|
|
@@ -75,4 +76,3 @@ export interface ReactAxisGantt {
|
|
|
75
76
|
maxZoom(): number;
|
|
76
77
|
maxZoom(_: number): this;
|
|
77
78
|
}
|
|
78
|
-
//# sourceMappingURL=ReactAxisGantt.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Axis } from "@hpcc-js/chart";
|
|
2
2
|
import { Border2 } from "@hpcc-js/layout";
|
|
3
|
-
import { ReactGantt } from "./ReactGantt";
|
|
4
|
-
import { IAxisGanttData } from "./ReactAxisGantt";
|
|
5
3
|
import { React } from "@hpcc-js/react";
|
|
4
|
+
import { ReactGantt } from "./ReactGantt.ts";
|
|
5
|
+
import { IAxisGanttData } from "./ReactAxisGantt.ts";
|
|
6
6
|
export declare class ReactAxisGanttSeries extends Border2 {
|
|
7
7
|
protected _topAxis: Axis;
|
|
8
8
|
protected _gantt: ReactGantt;
|
|
@@ -79,4 +79,3 @@ export interface ReactAxisGanttSeries {
|
|
|
79
79
|
maxZoom(): number;
|
|
80
80
|
maxZoom(_: number): this;
|
|
81
81
|
}
|
|
82
|
-
//# sourceMappingURL=ReactAxisGanttSeries.d.ts.map
|
package/types/ReactGantt.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ export declare class ReactGantt extends SVGZoomWidget {
|
|
|
43
43
|
rangeRenderer(_: React.FunctionComponent): this;
|
|
44
44
|
enter(domNode: any, element: any): void;
|
|
45
45
|
update(domNode: any, element: any): void;
|
|
46
|
+
exit(domNode: any, element: any): void;
|
|
46
47
|
renderRangeElement(d: any, i: any, transformEach?: boolean, options?: any, seriesKey?: string): void;
|
|
47
48
|
setRangeOptions(): void;
|
|
48
49
|
_transform: {
|
|
@@ -127,4 +128,3 @@ export interface ReactGantt {
|
|
|
127
128
|
oddSeriesBackground(): string;
|
|
128
129
|
oddSeriesBackground(_: string): this;
|
|
129
130
|
}
|
|
130
|
-
//# sourceMappingURL=ReactGantt.d.ts.map
|
package/types/ReactTimeline.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactAxisGantt } from "./ReactAxisGantt";
|
|
1
|
+
import { ReactAxisGantt } from "./ReactAxisGantt.ts";
|
|
2
2
|
export declare class ReactTimeline extends ReactAxisGantt {
|
|
3
3
|
protected _axisLabelFormatter: any;
|
|
4
4
|
constructor();
|
|
@@ -6,13 +6,12 @@ export declare class ReactTimeline extends ReactAxisGantt {
|
|
|
6
6
|
tooltipHTML(callback: any): this;
|
|
7
7
|
parseAxisValue(v: any): string;
|
|
8
8
|
onzoom(transform: any): void;
|
|
9
|
-
_tooltipHTML: (_: any) => string;
|
|
10
9
|
}
|
|
11
10
|
export interface ReactTimeline {
|
|
11
|
+
_tooltipHTML(_: any): string;
|
|
12
12
|
timePattern(): string;
|
|
13
13
|
timePattern(_: string): this;
|
|
14
14
|
timePattern_exists(): boolean;
|
|
15
15
|
tooltipTimeFormat(): string;
|
|
16
16
|
tooltipTimeFormat(_: string): this;
|
|
17
17
|
}
|
|
18
|
-
//# sourceMappingURL=ReactTimeline.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactAxisGanttSeries } from "./ReactAxisGanttSeries";
|
|
1
|
+
import { ReactAxisGanttSeries } from "./ReactAxisGanttSeries.ts";
|
|
2
2
|
export declare class ReactTimelineSeries extends ReactAxisGanttSeries {
|
|
3
3
|
protected _axisLabelFormatter: any;
|
|
4
4
|
constructor();
|
|
@@ -15,4 +15,3 @@ export interface ReactTimelineSeries {
|
|
|
15
15
|
tooltipTimeFormat(): string;
|
|
16
16
|
tooltipTimeFormat(_: string): this;
|
|
17
17
|
}
|
|
18
|
-
//# sourceMappingURL=ReactTimelineSeries.d.ts.map
|
package/types/__package__.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export declare const PKG_NAME = "@hpcc-js/timeline";
|
|
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.0.0";
|
|
3
|
+
export declare const BUILD_VERSION = "3.2.0";
|
package/types/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
export * from "./__package__";
|
|
2
|
-
export * from "./MiniGantt";
|
|
3
|
-
export * from "./ReactGantt";
|
|
4
|
-
export * from "./ReactAxisGantt";
|
|
5
|
-
export * from "./ReactAxisGanttSeries";
|
|
6
|
-
export * from "./ReactTimeline";
|
|
7
|
-
export * from "./ReactTimelineSeries";
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export * from "./__package__.ts";
|
|
2
|
+
export * from "./MiniGantt.ts";
|
|
3
|
+
export * from "./ReactGantt.ts";
|
|
4
|
+
export * from "./ReactAxisGantt.ts";
|
|
5
|
+
export * from "./ReactAxisGanttSeries.ts";
|
|
6
|
+
export * from "./ReactTimeline.ts";
|
|
7
|
+
export * from "./ReactTimelineSeries.ts";
|