timeline-chart 0.4.2 → 0.4.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.
|
@@ -52,7 +52,7 @@ var TimeGraphComponent = /** @class */ (function () {
|
|
|
52
52
|
TimeGraphComponent.prototype.rect = function (opts) {
|
|
53
53
|
var position = opts.position, width = opts.width, height = opts.height, color = opts.color, opacity = opts.opacity, borderColor = opts.borderColor, borderWidth = opts.borderWidth;
|
|
54
54
|
this.displayObject.lineStyle(borderWidth || 0, borderColor || 0x000000);
|
|
55
|
-
this.displayObject.beginFill((color ||
|
|
55
|
+
this.displayObject.beginFill((color || 0x000000), this.getPIXIOpacity(opacity));
|
|
56
56
|
this.displayObject.drawRect(position.x, position.y, width, height);
|
|
57
57
|
this.displayObject.endFill();
|
|
58
58
|
this.startPixiRender();
|
|
@@ -60,7 +60,7 @@ var TimeGraphComponent = /** @class */ (function () {
|
|
|
60
60
|
TimeGraphComponent.prototype.rectTruncated = function (opts) {
|
|
61
61
|
var position = opts.position, width = opts.width, height = opts.height, color = opts.color, opacity = opts.opacity, borderColor = opts.borderColor, borderWidth = opts.borderWidth;
|
|
62
62
|
this.displayObject.lineStyle(borderWidth || 0, borderColor || 0x000000);
|
|
63
|
-
this.displayObject.beginFill((color ||
|
|
63
|
+
this.displayObject.beginFill((color || 0x000000), this.getPIXIOpacity(opacity));
|
|
64
64
|
if (width > 20) {
|
|
65
65
|
var xpos = position.x + 0.5;
|
|
66
66
|
var ypos = position.y + 0.5;
|
|
@@ -77,7 +77,7 @@ var TimeGraphComponent = /** @class */ (function () {
|
|
|
77
77
|
TimeGraphComponent.prototype.roundedRect = function (opts) {
|
|
78
78
|
var position = opts.position, width = opts.width, height = opts.height, color = opts.color, opacity = opts.opacity, borderColor = opts.borderColor, borderWidth = opts.borderWidth, borderRadius = opts.borderRadius;
|
|
79
79
|
this.displayObject.lineStyle(borderWidth || 0, borderColor || 0x000000);
|
|
80
|
-
this.displayObject.beginFill((color ||
|
|
80
|
+
this.displayObject.beginFill((color || 0x000000), this.getPIXIOpacity(opacity));
|
|
81
81
|
this.displayObject.drawRoundedRect(position.x + 0.5, position.y + 0.5, width, height, borderRadius || 0);
|
|
82
82
|
this.displayObject.endFill();
|
|
83
83
|
this.startPixiRender();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "timeline-chart",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "A time graph / gantt chart library for large data (e.g. traces)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"gantt",
|
|
@@ -26,11 +26,12 @@
|
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/enzyme": "^3.10.10",
|
|
28
28
|
"@types/enzyme-adapter-react-16": "^1.0.6",
|
|
29
|
-
"@types/jest": "^
|
|
29
|
+
"@types/jest": "^28.0.0",
|
|
30
30
|
"enzyme": "^3.11.0",
|
|
31
31
|
"enzyme-adapter-react-16": "^1.15.6",
|
|
32
|
-
"jest": "^
|
|
32
|
+
"jest": "^28.0.0",
|
|
33
33
|
"jest-canvas-mock": "^2.3.1",
|
|
34
|
+
"jest-environment-jsdom": "28.0.0",
|
|
34
35
|
"rimraf": "^5.0.0",
|
|
35
36
|
"ts-jest": "^29.0.0"
|
|
36
37
|
},
|
|
@@ -42,5 +43,5 @@
|
|
|
42
43
|
"bugs": {
|
|
43
44
|
"url": "https://github.com/eclipse-cdt-cloud/timeline-chart/issues"
|
|
44
45
|
},
|
|
45
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "ff563d526554a3a543772d369106d8fd2a505825"
|
|
46
47
|
}
|
|
@@ -90,7 +90,7 @@ export abstract class TimeGraphComponent<T> {
|
|
|
90
90
|
protected rect(opts: TimeGraphStyledRect) {
|
|
91
91
|
const { position, width, height, color, opacity, borderColor, borderWidth } = opts;
|
|
92
92
|
this.displayObject.lineStyle(borderWidth || 0, borderColor || 0x000000);
|
|
93
|
-
this.displayObject.beginFill((color ||
|
|
93
|
+
this.displayObject.beginFill((color || 0x000000), this.getPIXIOpacity(opacity));
|
|
94
94
|
this.displayObject.drawRect(position.x, position.y, width, height);
|
|
95
95
|
this.displayObject.endFill();
|
|
96
96
|
this.startPixiRender();
|
|
@@ -99,7 +99,7 @@ export abstract class TimeGraphComponent<T> {
|
|
|
99
99
|
protected rectTruncated(opts: TimeGraphStyledRect) {
|
|
100
100
|
const { position, width, height, color, opacity, borderColor, borderWidth } = opts;
|
|
101
101
|
this.displayObject.lineStyle(borderWidth || 0, borderColor || 0x000000);
|
|
102
|
-
this.displayObject.beginFill((color ||
|
|
102
|
+
this.displayObject.beginFill((color || 0x000000), this.getPIXIOpacity(opacity));
|
|
103
103
|
if (width > 20) {
|
|
104
104
|
const xpos = position.x + 0.5;
|
|
105
105
|
const ypos = position.y + 0.5;
|
|
@@ -117,7 +117,7 @@ export abstract class TimeGraphComponent<T> {
|
|
|
117
117
|
protected roundedRect(opts: TimeGraphStyledRect) {
|
|
118
118
|
const { position, width, height, color, opacity, borderColor, borderWidth, borderRadius } = opts;
|
|
119
119
|
this.displayObject.lineStyle(borderWidth || 0, borderColor || 0x000000);
|
|
120
|
-
this.displayObject.beginFill((color ||
|
|
120
|
+
this.displayObject.beginFill((color || 0x000000), this.getPIXIOpacity(opacity));
|
|
121
121
|
|
|
122
122
|
this.displayObject.drawRoundedRect(position.x + 0.5, position.y + 0.5, width, height, borderRadius || 0);
|
|
123
123
|
|