@hpcc-js/timeline 2.50.3 → 2.50.6
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.es6.js +2 -3
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +9 -9
- package/src/ReactAxisGanttSeries.ts +13 -14
- package/src/__package__.ts +2 -2
- package/types/ReactAxisGanttSeries.d.ts.map +1 -1
- package/types/__package__.d.ts +2 -2
- package/types-3.4/__package__.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hpcc-js/timeline",
|
|
3
|
-
"version": "2.50.
|
|
3
|
+
"version": "2.50.6",
|
|
4
4
|
"description": "hpcc-js - Viz Timeline",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.es6",
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"build": "npm run compile-es6 && npm run bundle",
|
|
34
34
|
"watch": "npm-run-all compile-es6 -p compile-es6-watch bundle-watch",
|
|
35
35
|
"stamp": "node ../../node_modules/@hpcc-js/bundle/src/stamp.js",
|
|
36
|
-
"lint": "eslint src
|
|
36
|
+
"lint": "eslint ./src",
|
|
37
37
|
"docs": "typedoc --options tdoptions.json .",
|
|
38
38
|
"update": "npx npm-check-updates -u -t minor"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@hpcc-js/api": "^2.
|
|
42
|
-
"@hpcc-js/chart": "^2.
|
|
43
|
-
"@hpcc-js/common": "^2.
|
|
44
|
-
"@hpcc-js/html": "^2.41.
|
|
45
|
-
"@hpcc-js/layout": "^2.47.
|
|
46
|
-
"@hpcc-js/react": "^2.49.
|
|
41
|
+
"@hpcc-js/api": "^2.10.1",
|
|
42
|
+
"@hpcc-js/chart": "^2.78.1",
|
|
43
|
+
"@hpcc-js/common": "^2.68.1",
|
|
44
|
+
"@hpcc-js/html": "^2.41.5",
|
|
45
|
+
"@hpcc-js/layout": "^2.47.5",
|
|
46
|
+
"@hpcc-js/react": "^2.49.5"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@hpcc-js/bundle": "^2.11.1",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"url": "https://github.com/hpcc-systems/Visualization/issues"
|
|
66
66
|
},
|
|
67
67
|
"homepage": "https://github.com/hpcc-systems/Visualization",
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "b7c5d9a853196b53078d665df4368629a1a87903"
|
|
69
69
|
}
|
|
@@ -27,7 +27,7 @@ export class ReactAxisGanttSeries extends Border2 {
|
|
|
27
27
|
.extend(0)
|
|
28
28
|
.tickFormat("d")
|
|
29
29
|
;
|
|
30
|
-
|
|
30
|
+
|
|
31
31
|
protected _topAxisElement;
|
|
32
32
|
protected _contentElement;
|
|
33
33
|
protected _bottomAxisElement;
|
|
@@ -35,7 +35,7 @@ export class ReactAxisGanttSeries extends Border2 {
|
|
|
35
35
|
protected _contentRect;
|
|
36
36
|
protected _bottomRect;
|
|
37
37
|
|
|
38
|
-
constructor(){
|
|
38
|
+
constructor() {
|
|
39
39
|
super();
|
|
40
40
|
this.centerOverflowX_default("hidden");
|
|
41
41
|
this.centerOverflowY_default("auto");
|
|
@@ -45,7 +45,7 @@ export class ReactAxisGanttSeries extends Border2 {
|
|
|
45
45
|
rangeRenderer(_: React.FunctionComponent): this;
|
|
46
46
|
rangeRenderer(_?: React.FunctionComponent): this | React.FunctionComponent {
|
|
47
47
|
const ret = this._gantt.rangeRenderer.apply(this._gantt, arguments);
|
|
48
|
-
if(!arguments.length)return ret;
|
|
48
|
+
if (!arguments.length) return ret;
|
|
49
49
|
return this;
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -55,7 +55,7 @@ export class ReactAxisGanttSeries extends Border2 {
|
|
|
55
55
|
const h = this.height();
|
|
56
56
|
|
|
57
57
|
const axisHeight = this.axisHeight(); //TODO: Dynamic scaling to allow for small resolutions?
|
|
58
|
-
const contentHeight = (h - (axisHeight * 2));
|
|
58
|
+
const contentHeight = (h - (axisHeight * 2));
|
|
59
59
|
|
|
60
60
|
this.bottomHeight(axisHeight);
|
|
61
61
|
|
|
@@ -76,7 +76,7 @@ export class ReactAxisGanttSeries extends Border2 {
|
|
|
76
76
|
this.center().render();
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
enter(domNode, element){
|
|
79
|
+
enter(domNode, element) {
|
|
80
80
|
super.enter(domNode, element);
|
|
81
81
|
|
|
82
82
|
this._gantt.click = (row, col, sel) => {
|
|
@@ -99,7 +99,6 @@ export class ReactAxisGanttSeries extends Border2 {
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
onzoom(transform) {
|
|
102
|
-
console.log("called onzoom");
|
|
103
102
|
const w = this.width();
|
|
104
103
|
const low = this._gantt._minStart;
|
|
105
104
|
const high = this._gantt._maxEnd;
|
|
@@ -126,7 +125,7 @@ export class ReactAxisGanttSeries extends Border2 {
|
|
|
126
125
|
;
|
|
127
126
|
}
|
|
128
127
|
|
|
129
|
-
update(domNode, element){
|
|
128
|
+
update(domNode, element) {
|
|
130
129
|
super.update(domNode, element);
|
|
131
130
|
this._topAxis.tickFormat(this.tickFormat()).render();
|
|
132
131
|
this._bottomAxis.tickFormat(this.tickFormat()).render();
|
|
@@ -137,7 +136,7 @@ export class ReactAxisGanttSeries extends Border2 {
|
|
|
137
136
|
columns(_: string[]): this;
|
|
138
137
|
columns(_?: string[]): this | string[] {
|
|
139
138
|
const retVal = super.columns.apply(this, arguments);
|
|
140
|
-
if(arguments.length > 0) {
|
|
139
|
+
if (arguments.length > 0) {
|
|
141
140
|
this._gantt.columns(_);
|
|
142
141
|
}
|
|
143
142
|
return retVal;
|
|
@@ -147,14 +146,14 @@ export class ReactAxisGanttSeries extends Border2 {
|
|
|
147
146
|
data(_: IAxisGanttData[]): this;
|
|
148
147
|
data(_?: IAxisGanttData[]): this | IAxisGanttData[] {
|
|
149
148
|
const retVal = super.data.apply(this, arguments);
|
|
150
|
-
if(arguments.length > 0) {
|
|
151
|
-
const ganttData: any[] = this.data().map(n=>{
|
|
149
|
+
if (arguments.length > 0) {
|
|
150
|
+
const ganttData: any[] = this.data().map(n => {
|
|
152
151
|
const ret = [...n];
|
|
153
152
|
ret[1] = isNaN(n[1] as any) ? new Date(n[1]).getTime() : Number(n[1]);
|
|
154
153
|
ret[2] = isNaN(n[2] as any) ? new Date(n[2]).getTime() : Number(n[2]);
|
|
155
154
|
return ret;
|
|
156
155
|
});
|
|
157
|
-
|
|
156
|
+
|
|
158
157
|
this._gantt._minStart = d3Min(ganttData, n => n[1]);
|
|
159
158
|
this._gantt._maxEnd = d3Max(ganttData, n => n[2]);
|
|
160
159
|
this._gantt.data(ganttData);
|
|
@@ -165,7 +164,7 @@ export class ReactAxisGanttSeries extends Border2 {
|
|
|
165
164
|
resize(_size?: { width: number, height: number }) {
|
|
166
165
|
const retVal = super.resize.apply(this, arguments);
|
|
167
166
|
|
|
168
|
-
if(this._topAxisElement){
|
|
167
|
+
if (this._topAxisElement) {
|
|
169
168
|
this.resizeWrappers();
|
|
170
169
|
}
|
|
171
170
|
|
|
@@ -177,9 +176,9 @@ export class ReactAxisGanttSeries extends Border2 {
|
|
|
177
176
|
}
|
|
178
177
|
|
|
179
178
|
dblclick(row, col, sel) {
|
|
180
|
-
|
|
179
|
+
|
|
181
180
|
}
|
|
182
|
-
|
|
181
|
+
|
|
183
182
|
tooltip() {
|
|
184
183
|
return this._gantt._tooltip;
|
|
185
184
|
}
|
package/src/__package__.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export const PKG_NAME = "@hpcc-js/timeline";
|
|
2
|
-
export const PKG_VERSION = "2.50.
|
|
3
|
-
export const BUILD_VERSION = "2.
|
|
2
|
+
export const PKG_VERSION = "2.50.6";
|
|
3
|
+
export const BUILD_VERSION = "2.103.1";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactAxisGanttSeries.d.ts","sourceRoot":"","sources":["../src/ReactAxisGanttSeries.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,qBAAa,oBAAqB,SAAQ,OAAO;IAE7C,SAAS,CAAC,QAAQ,EAAE,IAAI,CAOnB;IACL,SAAS,CAAC,MAAM,EAAE,UAAU,CAGvB;IACL,SAAS,CAAC,WAAW,EAAE,IAAI,CAOtB;IAEL,SAAS,CAAC,eAAe,MAAC;IAC1B,SAAS,CAAC,eAAe,MAAC;IAC1B,SAAS,CAAC,kBAAkB,MAAC;IAC7B,SAAS,CAAC,QAAQ,MAAC;IACnB,SAAS,CAAC,YAAY,MAAC;IACvB,SAAS,CAAC,WAAW,MAAC;;IAQtB,aAAa,IAAI,KAAK,CAAC,iBAAiB;IACxC,aAAa,CAAC,CAAC,EAAE,KAAK,CAAC,iBAAiB,GAAG,IAAI;IAO/C,cAAc;IA2Bd,KAAK,CAAC,OAAO,KAAA,EAAE,OAAO,KAAA;IAsBtB,MAAM,CAAC,SAAS,KAAA;
|
|
1
|
+
{"version":3,"file":"ReactAxisGanttSeries.d.ts","sourceRoot":"","sources":["../src/ReactAxisGanttSeries.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,M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IAAI,MAAM,CAAC;IACxB,aAAa,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,UAAU,IAAI,MAAM,CAAC;IACrB,UAAU,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,WAAW,IAAI,MAAM,CAAC;IACtB,WAAW,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,YAAY,IAAI,MAAM,CAAC;IACvB,YAAY,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,YAAY,IAAI,MAAM,CAAC;IACvB,YAAY,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,OAAO,IAAI,MAAM,CAAC;IAClB,OAAO,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B"}
|
package/types/__package__.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const PKG_NAME = "@hpcc-js/timeline";
|
|
2
|
-
export declare const PKG_VERSION = "2.50.
|
|
3
|
-
export declare const BUILD_VERSION = "2.
|
|
2
|
+
export declare const PKG_VERSION = "2.50.6";
|
|
3
|
+
export declare const BUILD_VERSION = "2.103.1";
|
|
4
4
|
//# sourceMappingURL=__package__.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const PKG_NAME = "@hpcc-js/timeline";
|
|
2
|
-
export declare const PKG_VERSION = "2.50.
|
|
3
|
-
export declare const BUILD_VERSION = "2.
|
|
2
|
+
export declare const PKG_VERSION = "2.50.6";
|
|
3
|
+
export declare const BUILD_VERSION = "2.103.1";
|
|
4
4
|
//# sourceMappingURL=__package__.d.ts.map
|