@hpcc-js/timeline 3.2.0 → 3.2.2
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 +3 -1209
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +3 -2
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +9 -9
- package/src/ReactTimelineSeries.ts +17 -0
- package/types/ReactTimelineSeries.d.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hpcc-js/timeline",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.2",
|
|
4
4
|
"description": "hpcc-js - Viz Timeline",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.umd.cjs",
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"update-major": "npx --yes npm-check-updates -u"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@hpcc-js/api": "^3.4.
|
|
41
|
-
"@hpcc-js/chart": "^3.5.
|
|
42
|
-
"@hpcc-js/common": "^3.5.
|
|
43
|
-
"@hpcc-js/html": "^3.3.
|
|
44
|
-
"@hpcc-js/layout": "^3.4.
|
|
45
|
-
"@hpcc-js/react": "^3.4.
|
|
40
|
+
"@hpcc-js/api": "^3.4.2",
|
|
41
|
+
"@hpcc-js/chart": "^3.5.2",
|
|
42
|
+
"@hpcc-js/common": "^3.5.2",
|
|
43
|
+
"@hpcc-js/html": "^3.3.2",
|
|
44
|
+
"@hpcc-js/layout": "^3.4.2",
|
|
45
|
+
"@hpcc-js/react": "^3.4.2"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@hpcc-js/esbuild-plugins": "^1.
|
|
48
|
+
"@hpcc-js/esbuild-plugins": "^1.7.0",
|
|
49
49
|
"d3-array": "^1",
|
|
50
50
|
"d3-scale": "^1",
|
|
51
51
|
"d3-selection": "^1",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"url": "https://github.com/hpcc-systems/Visualization/issues"
|
|
64
64
|
},
|
|
65
65
|
"homepage": "https://github.com/hpcc-systems/Visualization",
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "5e5fc8d746e6a42c58da2ec4f55f2f7cbaeff611"
|
|
67
67
|
}
|
|
@@ -73,6 +73,21 @@ export class ReactTimelineSeries extends ReactAxisGanttSeries {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
+
tickFormatFunc(fn: (d: any) => string): this;
|
|
77
|
+
tickFormatFunc(): ((d: any) => string) | undefined;
|
|
78
|
+
tickFormatFunc(fn?: (d: any) => string): this | ((d: any) => string) | undefined {
|
|
79
|
+
if (!arguments.length) {
|
|
80
|
+
return this._axisLabelFormatter;
|
|
81
|
+
}
|
|
82
|
+
this._axisLabelFormatter = fn;
|
|
83
|
+
|
|
84
|
+
// Delegate to underlying Axis instances using the proper method
|
|
85
|
+
this._topAxis.tickFormatFunc(fn);
|
|
86
|
+
this._bottomAxis.tickFormatFunc(fn);
|
|
87
|
+
|
|
88
|
+
return this;
|
|
89
|
+
}
|
|
90
|
+
|
|
76
91
|
tooltipHTML(callback) {
|
|
77
92
|
this._tooltipHTML = callback;
|
|
78
93
|
this.tooltip().tooltipHTML(this._tooltipHTML);
|
|
@@ -118,6 +133,8 @@ export interface ReactTimelineSeries {
|
|
|
118
133
|
timePattern_exists(): boolean;
|
|
119
134
|
tooltipTimeFormat(): string;
|
|
120
135
|
tooltipTimeFormat(_: string): this;
|
|
136
|
+
tickFormatFunc(fn: (d: any) => string): this;
|
|
137
|
+
tickFormatFunc(): ((d: any) => string) | undefined;
|
|
121
138
|
}
|
|
122
139
|
ReactTimelineSeries.prototype.publish("timePattern", "%Y-%m-%d", "string", "Time pattern used for parsing datetime strings on each data row", null, { optional: true });
|
|
123
140
|
ReactTimelineSeries.prototype.publish("tooltipTimeFormat", "%Y-%m-%d", "string", "Time format used in the default html tooltip");
|
|
@@ -3,6 +3,8 @@ export declare class ReactTimelineSeries extends ReactAxisGanttSeries {
|
|
|
3
3
|
protected _axisLabelFormatter: any;
|
|
4
4
|
constructor();
|
|
5
5
|
update(domNode: any, element: any): void;
|
|
6
|
+
tickFormatFunc(fn: (d: any) => string): this;
|
|
7
|
+
tickFormatFunc(): ((d: any) => string) | undefined;
|
|
6
8
|
tooltipHTML(callback: any): this;
|
|
7
9
|
parseAxisValue(v: any): string;
|
|
8
10
|
onzoom(transform: any): void;
|
|
@@ -14,4 +16,6 @@ export interface ReactTimelineSeries {
|
|
|
14
16
|
timePattern_exists(): boolean;
|
|
15
17
|
tooltipTimeFormat(): string;
|
|
16
18
|
tooltipTimeFormat(_: string): this;
|
|
19
|
+
tickFormatFunc(fn: (d: any) => string): this;
|
|
20
|
+
tickFormatFunc(): ((d: any) => string) | undefined;
|
|
17
21
|
}
|