fhdp-charts 4.10.401 → 4.10.901
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/Module.d.ts +6 -6
- package/dist/Module.js +39 -36
- package/dist/Module.js.map +1 -1
- package/dist/package.json +45 -36
- package/dist/source/charts/ChartTime24.d.ts +85 -85
- package/dist/source/charts/ChartTime24.js +377 -374
- package/dist/source/charts/ChartTime24.js.map +1 -1
- package/package.json +22 -13
package/dist/Module.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FhModule } from "fh-forms-handler";
|
|
2
|
-
import { ChartTime24 } from './source/charts/ChartTime24';
|
|
3
|
-
declare class FhDPCharts extends FhModule {
|
|
4
|
-
protected registerComponents(): void;
|
|
5
|
-
}
|
|
6
|
-
export { FhDPCharts, ChartTime24 };
|
|
1
|
+
import { FhModule } from "fh-forms-handler";
|
|
2
|
+
import { ChartTime24 } from './source/charts/ChartTime24';
|
|
3
|
+
declare class FhDPCharts extends FhModule {
|
|
4
|
+
protected registerComponents(): void;
|
|
5
|
+
}
|
|
6
|
+
export { FhDPCharts, ChartTime24 };
|
package/dist/Module.js
CHANGED
|
@@ -1,37 +1,40 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
d
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ChartTime24 = exports.FhDPCharts = void 0;
|
|
19
|
+
var fh_forms_handler_1 = require("fh-forms-handler");
|
|
20
|
+
var pack = require("./package.json");
|
|
21
|
+
var ChartTime24_1 = require("./source/charts/ChartTime24");
|
|
22
|
+
Object.defineProperty(exports, "ChartTime24", { enumerable: true, get: function () { return ChartTime24_1.ChartTime24; } });
|
|
23
|
+
var FhDPCharts = /** @class */ (function (_super) {
|
|
24
|
+
__extends(FhDPCharts, _super);
|
|
25
|
+
function FhDPCharts() {
|
|
26
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
27
|
+
}
|
|
28
|
+
FhDPCharts.prototype.registerComponents = function () {
|
|
29
|
+
fh_forms_handler_1.FhContainer.bind("ChartTime24")
|
|
30
|
+
.toFactory(function () {
|
|
31
|
+
return function (componentObj, parent) {
|
|
32
|
+
return new ChartTime24_1.ChartTime24(componentObj, parent);
|
|
33
|
+
};
|
|
34
|
+
});
|
|
35
|
+
console.log("FhDP-charts version: ".concat(pack.version));
|
|
36
|
+
};
|
|
37
|
+
return FhDPCharts;
|
|
38
|
+
}(fh_forms_handler_1.FhModule));
|
|
39
|
+
exports.FhDPCharts = FhDPCharts;
|
|
37
40
|
//# sourceMappingURL=Module.js.map
|
package/dist/Module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Module.js","sourceRoot":"","sources":["../Module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Module.js","sourceRoot":"","sources":["../Module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,qDAAuD;AACvD,qCAAuC;AACvC,2DAAwD;AAiBpC,4FAjBZ,yBAAW,OAiBY;AAf/B;IAAyB,8BAAQ;IAAjC;;IAaA,CAAC;IAXa,uCAAkB,GAA5B;QAEI,8BAAW,CAAC,IAAI,CAAkD,aAAa,CAAC;aAC/E,SAAS,CAAc;YACpB,OAAO,UAAC,YAAiB,EAAE,MAAW;gBAClC,OAAO,IAAI,yBAAW,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;YACjD,CAAC,CAAC;QACN,CAAC,CAAC,CAAC;QAEH,OAAO,CAAC,GAAG,CAAC,+BAAwB,IAAI,CAAC,OAAO,CAAE,CAAC,CAAA;IACvD,CAAC;IACL,iBAAC;AAAD,CAAC,AAbD,CAAyB,2BAAQ,GAahC;AAEO,gCAAU"}
|
package/dist/package.json
CHANGED
|
@@ -1,36 +1,45 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "fhdp-charts",
|
|
3
|
-
"version": "4.10.
|
|
4
|
-
"author":
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "fhdp-charts",
|
|
3
|
+
"version": "4.10.901",
|
|
4
|
+
"author": "AssecoPL",
|
|
5
|
+
"contributors": [
|
|
6
|
+
{
|
|
7
|
+
"name": "Jacek Borowiec",
|
|
8
|
+
"email": "jacek.borowiec@asseco.pl"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "Paweł Domański",
|
|
12
|
+
"email": "pawel.domanski@asseco.pl"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"license": "Apache License 2.0",
|
|
16
|
+
"main": "dist/Module.js",
|
|
17
|
+
"types": "dist/Module.d.ts",
|
|
18
|
+
"scripts": {
|
|
19
|
+
"prepublishOnly": "node prepublish",
|
|
20
|
+
"postpublish": "node postpublish",
|
|
21
|
+
"build": "tsc && copyfiles ./source/external/** ./source/styles/css/*.css ./source/styles/external-css/*.css ./source/styles/img/*.png source/Module.css ./dist",
|
|
22
|
+
"copyDev": "cp -r ./dist/* ../../../fhdp-common/fhdp-commons/fhdp-commons-fh-starter/node_modules/fhdp-charts/dist",
|
|
23
|
+
"prepare": "yarn build",
|
|
24
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
25
|
+
"sass": "sass --watch ./source/styles/scss:./source/styles/css"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@types/bootstrap": "4.3.1",
|
|
29
|
+
"@types/highlight.js": "9.12.3",
|
|
30
|
+
"@types/jquery": "3.3.31",
|
|
31
|
+
"@types/marked": "0.6.5",
|
|
32
|
+
"@types/node": "14.14.36",
|
|
33
|
+
"@types/jqueryui": "1.12.10",
|
|
34
|
+
"imports-loader": "0.8.0",
|
|
35
|
+
"less": "4.1.3",
|
|
36
|
+
"sass": "1.62.1",
|
|
37
|
+
"typescript": "5.0.4"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"canvas": "3.1.0",
|
|
41
|
+
"fh-basic-controls": "4.10.901",
|
|
42
|
+
"fh-forms-handler": "4.10.901",
|
|
43
|
+
"konva": "8.4.2"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
import { HTMLFormComponent } from "fh-forms-handler";
|
|
2
|
-
import Konva from 'konva';
|
|
3
|
-
import { Layer } from "konva/lib/Layer";
|
|
4
|
-
interface BarElement {
|
|
5
|
-
from: string;
|
|
6
|
-
to: string;
|
|
7
|
-
position: string;
|
|
8
|
-
color: string;
|
|
9
|
-
tooltipText: string;
|
|
10
|
-
legendText: string;
|
|
11
|
-
}
|
|
12
|
-
declare class ChartTime24 extends HTMLFormComponent {
|
|
13
|
-
private hAxisName;
|
|
14
|
-
private vAxisName;
|
|
15
|
-
private bgColor;
|
|
16
|
-
private tooltipBgColor;
|
|
17
|
-
private axisLabelColor;
|
|
18
|
-
private lineColor;
|
|
19
|
-
private tooltipColor;
|
|
20
|
-
private fontFamily;
|
|
21
|
-
private barElements;
|
|
22
|
-
private highlightedValue;
|
|
23
|
-
private highlightedStroke;
|
|
24
|
-
private gradation;
|
|
25
|
-
private maxValueX;
|
|
26
|
-
private mainElementId;
|
|
27
|
-
private scrollContainerId;
|
|
28
|
-
private barBreakWidth;
|
|
29
|
-
private barHeight;
|
|
30
|
-
private barBreakHeight;
|
|
31
|
-
private percentDarkColorOnMove;
|
|
32
|
-
private leftMarginChart;
|
|
33
|
-
private rightMarginChart;
|
|
34
|
-
private topMarginChart;
|
|
35
|
-
private bottomMarginChart;
|
|
36
|
-
private scrollSizeChart;
|
|
37
|
-
private protrudingLinesHeight;
|
|
38
|
-
private labelTextHeight;
|
|
39
|
-
private labelTextFontSize;
|
|
40
|
-
private lineStrokeWidth;
|
|
41
|
-
private topMarginLegend;
|
|
42
|
-
private legendColorWidth;
|
|
43
|
-
private legendColorHeight;
|
|
44
|
-
private legendFontSize;
|
|
45
|
-
private legendBreakColorText;
|
|
46
|
-
private legendElementBreakWidth;
|
|
47
|
-
private legendElementBreakHeight;
|
|
48
|
-
private tooltipOpacity;
|
|
49
|
-
private tooltipPointerWidth;
|
|
50
|
-
private tooltipPointerHeight;
|
|
51
|
-
private tooltipCornerRadius;
|
|
52
|
-
private tooltipFontSize;
|
|
53
|
-
private tooltipPadding;
|
|
54
|
-
private labelNameFontSize;
|
|
55
|
-
private labelNameBreak;
|
|
56
|
-
private resizeWindowBind;
|
|
57
|
-
constructor(componentObj: any, parent: HTMLFormComponent);
|
|
58
|
-
create(): void;
|
|
59
|
-
initResizeWindow(): void;
|
|
60
|
-
resizeWindow(): void;
|
|
61
|
-
destroy(removeFromParent: any): void;
|
|
62
|
-
update(change: any): void;
|
|
63
|
-
buildChart(id: string): void;
|
|
64
|
-
getHAxisLables(): {
|
|
65
|
-
hAxisLabels: number[];
|
|
66
|
-
maxX: number;
|
|
67
|
-
};
|
|
68
|
-
createScrollLayer(hAxisLabels: number[], maxX: number, chartHeight: number): Layer;
|
|
69
|
-
createStaticLayer(width: number, chartHeight: number): {
|
|
70
|
-
staticLayer: Layer;
|
|
71
|
-
background: import("konva/lib/shapes/Rect").Rect;
|
|
72
|
-
};
|
|
73
|
-
createAxisLabel(staticLayer: Layer, width: number, chartHeight: number): void;
|
|
74
|
-
createBarsLayer(legendLayer: Konva.Layer, stageWidth: number): {
|
|
75
|
-
barsLayer: Layer;
|
|
76
|
-
tooltipLayer: Layer;
|
|
77
|
-
maxLegendY: number;
|
|
78
|
-
};
|
|
79
|
-
createLegendByBar(legendX: number, legendY: number, el: BarElement, legendLayer: Layer, darkColor: string, bar: Konva.Rect, tooltip: Konva.Label, tooltipTextBox: Konva.Text, iter: number, fromValue: number, toValue: number, valueOneGradation: number, barHeight: number, barBreakHeight: number, stageWidth: number): {
|
|
80
|
-
legendX: number;
|
|
81
|
-
legendY: number;
|
|
82
|
-
};
|
|
83
|
-
darkenColor(color: string, percent: number): string;
|
|
84
|
-
}
|
|
85
|
-
export { ChartTime24 };
|
|
1
|
+
import { HTMLFormComponent } from "fh-forms-handler";
|
|
2
|
+
import Konva from 'konva';
|
|
3
|
+
import { Layer } from "konva/lib/Layer";
|
|
4
|
+
interface BarElement {
|
|
5
|
+
from: string;
|
|
6
|
+
to: string;
|
|
7
|
+
position: string;
|
|
8
|
+
color: string;
|
|
9
|
+
tooltipText: string;
|
|
10
|
+
legendText: string;
|
|
11
|
+
}
|
|
12
|
+
declare class ChartTime24 extends HTMLFormComponent {
|
|
13
|
+
private hAxisName;
|
|
14
|
+
private vAxisName;
|
|
15
|
+
private bgColor;
|
|
16
|
+
private tooltipBgColor;
|
|
17
|
+
private axisLabelColor;
|
|
18
|
+
private lineColor;
|
|
19
|
+
private tooltipColor;
|
|
20
|
+
private fontFamily;
|
|
21
|
+
private barElements;
|
|
22
|
+
private highlightedValue;
|
|
23
|
+
private highlightedStroke;
|
|
24
|
+
private gradation;
|
|
25
|
+
private maxValueX;
|
|
26
|
+
private mainElementId;
|
|
27
|
+
private scrollContainerId;
|
|
28
|
+
private barBreakWidth;
|
|
29
|
+
private barHeight;
|
|
30
|
+
private barBreakHeight;
|
|
31
|
+
private percentDarkColorOnMove;
|
|
32
|
+
private leftMarginChart;
|
|
33
|
+
private rightMarginChart;
|
|
34
|
+
private topMarginChart;
|
|
35
|
+
private bottomMarginChart;
|
|
36
|
+
private scrollSizeChart;
|
|
37
|
+
private protrudingLinesHeight;
|
|
38
|
+
private labelTextHeight;
|
|
39
|
+
private labelTextFontSize;
|
|
40
|
+
private lineStrokeWidth;
|
|
41
|
+
private topMarginLegend;
|
|
42
|
+
private legendColorWidth;
|
|
43
|
+
private legendColorHeight;
|
|
44
|
+
private legendFontSize;
|
|
45
|
+
private legendBreakColorText;
|
|
46
|
+
private legendElementBreakWidth;
|
|
47
|
+
private legendElementBreakHeight;
|
|
48
|
+
private tooltipOpacity;
|
|
49
|
+
private tooltipPointerWidth;
|
|
50
|
+
private tooltipPointerHeight;
|
|
51
|
+
private tooltipCornerRadius;
|
|
52
|
+
private tooltipFontSize;
|
|
53
|
+
private tooltipPadding;
|
|
54
|
+
private labelNameFontSize;
|
|
55
|
+
private labelNameBreak;
|
|
56
|
+
private resizeWindowBind;
|
|
57
|
+
constructor(componentObj: any, parent: HTMLFormComponent);
|
|
58
|
+
create(): void;
|
|
59
|
+
initResizeWindow(): void;
|
|
60
|
+
resizeWindow(): void;
|
|
61
|
+
destroy(removeFromParent: any): void;
|
|
62
|
+
update(change: any): void;
|
|
63
|
+
buildChart(id: string): void;
|
|
64
|
+
getHAxisLables(): {
|
|
65
|
+
hAxisLabels: number[];
|
|
66
|
+
maxX: number;
|
|
67
|
+
};
|
|
68
|
+
createScrollLayer(hAxisLabels: number[], maxX: number, chartHeight: number): Layer;
|
|
69
|
+
createStaticLayer(width: number, chartHeight: number): {
|
|
70
|
+
staticLayer: Layer;
|
|
71
|
+
background: import("konva/lib/shapes/Rect").Rect;
|
|
72
|
+
};
|
|
73
|
+
createAxisLabel(staticLayer: Layer, width: number, chartHeight: number): void;
|
|
74
|
+
createBarsLayer(legendLayer: Konva.Layer, stageWidth: number): {
|
|
75
|
+
barsLayer: Layer;
|
|
76
|
+
tooltipLayer: Layer;
|
|
77
|
+
maxLegendY: number;
|
|
78
|
+
};
|
|
79
|
+
createLegendByBar(legendX: number, legendY: number, el: BarElement, legendLayer: Layer, darkColor: string, bar: Konva.Rect, tooltip: Konva.Label, tooltipTextBox: Konva.Text, iter: number, fromValue: number, toValue: number, valueOneGradation: number, barHeight: number, barBreakHeight: number, stageWidth: number): {
|
|
80
|
+
legendX: number;
|
|
81
|
+
legendY: number;
|
|
82
|
+
};
|
|
83
|
+
darkenColor(color: string, percent: number): string;
|
|
84
|
+
}
|
|
85
|
+
export { ChartTime24 };
|