@syncfusion/ej2-gantt 24.1.45 → 24.1.47
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/CHANGELOG.md +22 -0
- package/dist/ej2-gantt.min.js +2 -2
- package/dist/ej2-gantt.umd.min.js +2 -2
- package/dist/ej2-gantt.umd.min.js.map +1 -1
- package/dist/es6/ej2-gantt.es2015.js +53 -26
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +60 -32
- package/dist/es6/ej2-gantt.es5.js.map +1 -1
- package/dist/global/ej2-gantt.min.js +2 -2
- package/dist/global/ej2-gantt.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +17 -17
- package/src/gantt/actions/edit.js +7 -1
- package/src/gantt/actions/pdf-export.d.ts +2 -1
- package/src/gantt/actions/pdf-export.js +3 -3
- package/src/gantt/actions/taskbar-edit.js +6 -7
- package/src/gantt/base/task-processor.js +19 -13
- package/src/gantt/base/tree-grid.d.ts +1 -0
- package/src/gantt/base/tree-grid.js +3 -0
- package/src/gantt/export/export-helper.js +3 -2
- package/src/gantt/export/pdf-taskbar.js +12 -2
- package/src/gantt/export/pdf-timeline.js +8 -5
- package/styles/bootstrap-dark.css +1 -1
- package/styles/bootstrap.css +1 -1
- package/styles/bootstrap4.css +1 -1
- package/styles/bootstrap5-dark.css +1 -1
- package/styles/bootstrap5.css +1 -1
- package/styles/fabric-dark.css +1 -1
- package/styles/fabric.css +1 -1
- package/styles/fluent-dark.css +1 -1
- package/styles/fluent.css +1 -1
- package/styles/gantt/_layout.scss +1 -1
- package/styles/gantt/bootstrap-dark.css +1 -1
- package/styles/gantt/bootstrap.css +1 -1
- package/styles/gantt/bootstrap4.css +1 -1
- package/styles/gantt/bootstrap5-dark.css +1 -1
- package/styles/gantt/bootstrap5.css +1 -1
- package/styles/gantt/fabric-dark.css +1 -1
- package/styles/gantt/fabric.css +1 -1
- package/styles/gantt/fluent-dark.css +1 -1
- package/styles/gantt/fluent.css +1 -1
- package/styles/gantt/highcontrast-light.css +1 -1
- package/styles/gantt/highcontrast.css +1 -1
- package/styles/gantt/material-dark.css +1 -1
- package/styles/gantt/material.css +1 -1
- package/styles/gantt/material3-dark.css +1 -1
- package/styles/gantt/material3.css +1 -1
- package/styles/gantt/tailwind-dark.css +1 -1
- package/styles/gantt/tailwind.css +1 -1
- package/styles/highcontrast-light.css +1 -1
- package/styles/highcontrast.css +1 -1
- package/styles/material-dark.css +1 -1
- package/styles/material.css +1 -1
- package/styles/material3-dark.css +1 -1
- package/styles/material3.css +1 -1
- package/styles/tailwind-dark.css +1 -1
- package/styles/tailwind.css +1 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 24.1.
|
|
3
|
+
* version : 24.1.47
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-gantt@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-gantt@24.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-gantt@24.1.46",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-D0PkQMqSxymxo0yp2d+nGVOO12m7BwUEoQwYcs0+EkK3n4FyYuh29TqZ5HCcC+gKAcKAJGs/kz2JJpv99TexYA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-gantt",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"/@syncfusion/ej2-react-gantt",
|
|
24
24
|
"/@syncfusion/ej2-vue-gantt"
|
|
25
25
|
],
|
|
26
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-24.1.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-24.1.46.tgz",
|
|
27
|
+
"_shasum": "a27bd8c1cc2c4f3d0e822f1082f7998d4385ec05",
|
|
28
28
|
"_spec": "@syncfusion/ej2-gantt@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,21 +35,21 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~24.1.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~24.1.
|
|
40
|
-
"@syncfusion/ej2-calendars": "~24.1.
|
|
38
|
+
"@syncfusion/ej2-base": "~24.1.46",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~24.1.46",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~24.1.47",
|
|
41
41
|
"@syncfusion/ej2-data": "~24.1.41",
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~24.1.
|
|
43
|
-
"@syncfusion/ej2-grids": "~24.1.
|
|
44
|
-
"@syncfusion/ej2-inputs": "~24.1.
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~24.1.47",
|
|
43
|
+
"@syncfusion/ej2-grids": "~24.1.47",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~24.1.47",
|
|
45
45
|
"@syncfusion/ej2-layouts": "~24.1.41",
|
|
46
|
-
"@syncfusion/ej2-lists": "~24.1.
|
|
47
|
-
"@syncfusion/ej2-navigations": "~24.1.
|
|
46
|
+
"@syncfusion/ej2-lists": "~24.1.46",
|
|
47
|
+
"@syncfusion/ej2-navigations": "~24.1.46",
|
|
48
48
|
"@syncfusion/ej2-notifications": "~24.1.41",
|
|
49
|
-
"@syncfusion/ej2-popups": "~24.1.
|
|
50
|
-
"@syncfusion/ej2-richtexteditor": "~24.1.
|
|
51
|
-
"@syncfusion/ej2-svg-base": "~24.1.
|
|
52
|
-
"@syncfusion/ej2-treegrid": "~24.1.
|
|
49
|
+
"@syncfusion/ej2-popups": "~24.1.46",
|
|
50
|
+
"@syncfusion/ej2-richtexteditor": "~24.1.47",
|
|
51
|
+
"@syncfusion/ej2-svg-base": "~24.1.47",
|
|
52
|
+
"@syncfusion/ej2-treegrid": "~24.1.46"
|
|
53
53
|
},
|
|
54
54
|
"deprecated": false,
|
|
55
55
|
"description": "Essential JS 2 Gantt Component",
|
|
@@ -74,6 +74,6 @@
|
|
|
74
74
|
"url": "git+https://github.com/syncfusion/ej2-gantt.git"
|
|
75
75
|
},
|
|
76
76
|
"typings": "index.d.ts",
|
|
77
|
-
"version": "24.1.
|
|
77
|
+
"version": "24.1.47",
|
|
78
78
|
"sideEffects": false
|
|
79
79
|
}
|
|
@@ -3064,10 +3064,16 @@ var Edit = /** @class */ (function () {
|
|
|
3064
3064
|
}
|
|
3065
3065
|
if (!isNullOrUndefined(args.data["" + tempTaskID])) {
|
|
3066
3066
|
if (args.data[tempTaskID] != args.data['ganttProperties']['taskId']) {
|
|
3067
|
+
for (var _i = 0, _b = Object.keys(_this.parent.ids); _i < _b.length; _i++) {
|
|
3068
|
+
var key = _b[_i];
|
|
3069
|
+
if (_this.parent.ids[key] === args.data['ganttProperties']['taskId'].toString()) {
|
|
3070
|
+
_this.parent.ids[key] = args.data[tempTaskID].toString();
|
|
3071
|
+
break;
|
|
3072
|
+
}
|
|
3073
|
+
}
|
|
3067
3074
|
args.data['ganttProperties']['taskId'] = args.data[tempTaskID];
|
|
3068
3075
|
args.newTaskData[tempTaskID] = args.data[tempTaskID];
|
|
3069
3076
|
args.data['ganttProperties']['rowUniqueID'] = args.data[tempTaskID].toString();
|
|
3070
|
-
_this.parent.ids.push(args.data[tempTaskID].toString());
|
|
3071
3077
|
}
|
|
3072
3078
|
}
|
|
3073
3079
|
if (!args.cancel) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PdfExportProperties } from './../base/interface';
|
|
2
2
|
import { Gantt } from '../base/gantt';
|
|
3
3
|
import { ExportHelper } from '../export/export-helper';
|
|
4
|
-
import { SizeF } from '@syncfusion/ej2-pdf-export';
|
|
4
|
+
import { PdfPage, SizeF } from '@syncfusion/ej2-pdf-export';
|
|
5
5
|
import { PdfGantt } from '../export/pdf-gantt';
|
|
6
6
|
/**
|
|
7
7
|
*
|
|
@@ -16,6 +16,7 @@ export declare class PdfExport {
|
|
|
16
16
|
private isBlob;
|
|
17
17
|
private blobPromise;
|
|
18
18
|
pdfPageDimensions: SizeF;
|
|
19
|
+
pdfPage: PdfPage;
|
|
19
20
|
/**
|
|
20
21
|
* @param {Gantt} parent .
|
|
21
22
|
* @hidden
|
|
@@ -125,8 +125,8 @@ var PdfExport = /** @class */ (function () {
|
|
|
125
125
|
var _this = this;
|
|
126
126
|
var section = this.pdfDocument.sections.add();
|
|
127
127
|
this.processSectionExportProperties(section, pdfExportProperties);
|
|
128
|
-
|
|
129
|
-
this.pdfPageDimensions = pdfPage.getClientSize();
|
|
128
|
+
this.pdfPage = section.pages.add();
|
|
129
|
+
this.pdfPageDimensions = this.pdfPage.getClientSize();
|
|
130
130
|
/* eslint-disable-next-line */
|
|
131
131
|
return new Promise(function (resolve, reject) {
|
|
132
132
|
_this.helper.processGridExport(data, _this.gantt, pdfExportProperties);
|
|
@@ -135,7 +135,7 @@ var PdfExport = /** @class */ (function () {
|
|
|
135
135
|
}).then(function () {
|
|
136
136
|
var format = new PdfTreeGridLayoutFormat();
|
|
137
137
|
format.break = PdfLayoutBreakType.FitElement;
|
|
138
|
-
var layouter = _this.gantt.drawGrid(pdfPage, 0, 0, format);
|
|
138
|
+
var layouter = _this.gantt.drawGrid(_this.pdfPage, 0, 0, format);
|
|
139
139
|
_this.gantt.drawChart(layouter);
|
|
140
140
|
if (_this.helper.exportProps && _this.helper.exportProps.fitToWidthSettings && _this.helper.exportProps.fitToWidthSettings.isFitToWidth) {
|
|
141
141
|
_this.parent.zoomingProjectStartDate = _this.helper.beforeSinglePageExport['zoomingProjectStartDate'];
|
|
@@ -606,7 +606,6 @@ var TaskbarEdit = /** @class */ (function (_super) {
|
|
|
606
606
|
}
|
|
607
607
|
else {
|
|
608
608
|
rowElement = this.parent.getRowByIndex(parseInt(target.getAttribute('data-rowindex'))).children;
|
|
609
|
-
;
|
|
610
609
|
}
|
|
611
610
|
if (rowElement) {
|
|
612
611
|
if (this.parent.rowDragAndDropModule['dropPosition'] === 'above') {
|
|
@@ -877,7 +876,7 @@ var TaskbarEdit = /** @class */ (function (_super) {
|
|
|
877
876
|
var rowIndex = getValue('rowIndex', rowElement);
|
|
878
877
|
var droppedTreeGridRecord = this.parent.flatData[rowIndex];
|
|
879
878
|
var isValid = true;
|
|
880
|
-
if (this.parent.viewType === 'ResourceView' && !this.taskBarEditRecord.hasChildRecords && !droppedTreeGridRecord.hasChildRecords && this.taskBarEditRecord.parentItem.taskId === droppedTreeGridRecord.parentItem.taskId) {
|
|
879
|
+
if (this.parent.viewType === 'ResourceView' && !this.taskBarEditRecord.hasChildRecords && !droppedTreeGridRecord.hasChildRecords && !isNullOrUndefined(droppedTreeGridRecord.parentItem) && this.taskBarEditRecord.parentItem.taskId === droppedTreeGridRecord.parentItem.taskId) {
|
|
881
880
|
isValid = false;
|
|
882
881
|
}
|
|
883
882
|
if (droppedTreeGridRecord) {
|
|
@@ -1852,7 +1851,7 @@ var TaskbarEdit = /** @class */ (function (_super) {
|
|
|
1852
1851
|
pStartDate.setTime(pStartDate.getTime() + (left * milliSecondsPerPixel));
|
|
1853
1852
|
/* To render the milestone in proper date while editing */
|
|
1854
1853
|
if (isMilestone && !isNullOrUndefined(property.predecessorsName) && property.predecessorsName !== '') {
|
|
1855
|
-
pStartDate.setDate(pStartDate.getDate()
|
|
1854
|
+
// pStartDate.setDate(pStartDate.getDate()-1);
|
|
1856
1855
|
this.parent.dateValidationModule.setTime(this.parent.defaultEndTime, pStartDate);
|
|
1857
1856
|
pStartDate = this.parent.dateValidationModule.checkStartDate(pStartDate, property, true);
|
|
1858
1857
|
}
|
|
@@ -1862,9 +1861,9 @@ var TaskbarEdit = /** @class */ (function (_super) {
|
|
|
1862
1861
|
if (this.parent.isInDst(new Date(this.parent.timelineModule.timelineStartDate.toString())) && !this.parent.isInDst(pStartDate)) {
|
|
1863
1862
|
pStartDate.setTime(pStartDate.getTime() + (60 * 60 * 1000));
|
|
1864
1863
|
}
|
|
1865
|
-
else if (!this.parent.isInDst(new Date(this.parent.timelineModule.timelineStartDate.toString())) && this.parent.isInDst(pStartDate)) {
|
|
1866
|
-
|
|
1867
|
-
}
|
|
1864
|
+
// else if (!this.parent.isInDst(new Date(this.parent.timelineModule.timelineStartDate.toString())) && this.parent.isInDst(pStartDate)) {
|
|
1865
|
+
// pStartDate.setTime(pStartDate.getTime() - (60 * 60 * 1000));
|
|
1866
|
+
// }
|
|
1868
1867
|
}
|
|
1869
1868
|
return pStartDate;
|
|
1870
1869
|
};
|
|
@@ -2278,7 +2277,7 @@ var TaskbarEdit = /** @class */ (function (_super) {
|
|
|
2278
2277
|
droppedRecord.childRecords.length == 0)) ? 'child' : this.parent.rowDragAndDropModule['dropPosition'];
|
|
2279
2278
|
}
|
|
2280
2279
|
if (this.parent.rowDragAndDropModule) {
|
|
2281
|
-
if (this.parent.viewType === 'ResourceView' && (position === 'child' && !droppedRecord.hasChildRecords)) {
|
|
2280
|
+
if (this.parent.viewType === 'ResourceView' && (position === 'child' && !droppedRecord.hasChildRecords) && !isNullOrUndefined(droppedRecord.parentItem)) {
|
|
2282
2281
|
position = 'Invalid';
|
|
2283
2282
|
this.parent.rowDragAndDropModule['dropPosition'] = 'Invalid';
|
|
2284
2283
|
}
|
|
@@ -84,19 +84,25 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
84
84
|
var queryManager = this.parent.query instanceof Query ? this.parent.query : new Query();
|
|
85
85
|
queryManager.requiresCount();
|
|
86
86
|
var dataManager = this.parent.dataSource;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
87
|
+
if (!this.parent.loadChildOnDemand && this.parent.taskFields.hasChildMapping) {
|
|
88
|
+
this.processTimeline();
|
|
89
|
+
this.parent.renderGantt(isChange);
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
dataManager.executeQuery(queryManager).then(function (e) {
|
|
93
|
+
_this.dataArray = e.result;
|
|
94
|
+
_this.processTimeline();
|
|
95
|
+
if (_this.parent.loadChildOnDemand || (!_this.parent.loadChildOnDemand && !(_this.parent.taskFields.hasChildMapping))) {
|
|
96
|
+
_this.cloneDataSource();
|
|
97
|
+
}
|
|
98
|
+
_this.parent.renderGantt(isChange);
|
|
99
|
+
}).catch(function (e) {
|
|
100
|
+
// Trigger action failure event
|
|
101
|
+
_this.parent.processTimeline();
|
|
102
|
+
_this.parent.renderGantt(isChange);
|
|
103
|
+
_this.parent.trigger('actionFailure', { error: e });
|
|
104
|
+
});
|
|
105
|
+
}
|
|
100
106
|
};
|
|
101
107
|
TaskProcessor.prototype.constructDataSource = function (dataSource) {
|
|
102
108
|
var mappingData = new DataManager(dataSource).executeLocal(new Query()
|
|
@@ -110,6 +110,9 @@ var GanttTreeGrid = /** @class */ (function () {
|
|
|
110
110
|
this.bindEvents();
|
|
111
111
|
var root = 'root';
|
|
112
112
|
this.parent.treeGrid[root] = this.parent[root] ? this.parent[root] : this.parent;
|
|
113
|
+
setValue('registeredTemplate', this.registeredTemplate, this.parent.treeGrid);
|
|
114
|
+
var ref = 'viewContainerRef';
|
|
115
|
+
setValue('viewContainerRef', this.parent["" + ref], this.parent.treeGrid);
|
|
113
116
|
this.parent.treeGrid.appendTo(this.treeGridElement);
|
|
114
117
|
if (this.parent.treeGrid.grid && this.parent.toolbarModule && this.parent.isReact) {
|
|
115
118
|
this.parent.treeGrid.grid.portals = this.parent.portals;
|
|
@@ -695,9 +695,11 @@ var ExportHelper = /** @class */ (function () {
|
|
|
695
695
|
compositeField.draw(footer.graphics, new PointF(0, 0));
|
|
696
696
|
pdfDoc.template.bottom = footer;
|
|
697
697
|
}
|
|
698
|
+
var PdfPage = this.parent.pdfExportModule.pdfPage;
|
|
699
|
+
var pageSize = PdfPage.size;
|
|
700
|
+
var clientSize = !isNullOrUndefined(pageSize) ? pageSize : this.pdfDoc.pageSettings.size;
|
|
698
701
|
// code for draw header content
|
|
699
702
|
if (!isNullOrUndefined(this.exportProps.header)) {
|
|
700
|
-
var clientSize = this.pdfDoc.pageSettings.size;
|
|
701
703
|
var headerProp = this.exportProps.header;
|
|
702
704
|
var position = new PointF(0, headerProp.fromTop);
|
|
703
705
|
var size = new SizeF((clientSize.width * 1.1), ((headerProp && headerProp.height) ? headerProp.height * 0.75 : 50));
|
|
@@ -706,7 +708,6 @@ var ExportHelper = /** @class */ (function () {
|
|
|
706
708
|
}
|
|
707
709
|
// code for customization of footer
|
|
708
710
|
if (!this.exportProps.enableFooter && !isNullOrUndefined(this.exportProps.footer)) {
|
|
709
|
-
var clientSize = this.pdfDoc.pageSettings.size;
|
|
710
711
|
var footer = this.exportProps.footer;
|
|
711
712
|
var position = new PointF(0, ((clientSize.width - 80) - ((footer && footer.fromBottom) ?
|
|
712
713
|
footer.fromBottom * 0.75 : 0)));
|
|
@@ -107,11 +107,21 @@ var PdfGanttTaskbarCollection = /** @class */ (function () {
|
|
|
107
107
|
var pageIndex = -1;
|
|
108
108
|
var renderBaselineWidth = 0;
|
|
109
109
|
if (this.baselineWidth > detail.totalWidth) {
|
|
110
|
-
|
|
110
|
+
if (this.parent.timelineModule.isZoomedToFit || this.isAutoFit()) {
|
|
111
|
+
renderBaselineWidth = detail.totalWidth - this.baselineLeft;
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
renderBaselineWidth = detail.totalWidth;
|
|
115
|
+
}
|
|
111
116
|
this.baselineWidth = this.baselineWidth - detail.totalWidth;
|
|
112
117
|
}
|
|
113
118
|
else {
|
|
114
|
-
|
|
119
|
+
if ((this.parent.timelineModule.isZoomedToFit || this.isAutoFit()) && this.baselineWidth + this.baselineLeft > detail.totalWidth) {
|
|
120
|
+
renderBaselineWidth = detail.totalWidth - this.baselineLeft;
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
renderBaselineWidth = this.baselineWidth;
|
|
124
|
+
}
|
|
115
125
|
}
|
|
116
126
|
var baselinePen = new PdfPen(taskbar.baselineBorderColor);
|
|
117
127
|
var baselineBrush = new PdfSolidBrush(taskbar.baselineColor);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PointF, PdfColor, PdfPen, PdfSolidBrush, PdfStandardFont, PdfStringFormat, PdfVerticalAlignment, PdfTextAlignment, PdfWordWrapType, PdfFontFamily, PdfBrushes } from '@syncfusion/ej2-pdf-export';
|
|
1
|
+
import { PointF, PdfColor, PdfPen, PdfSolidBrush, PdfStandardFont, PdfStringFormat, PdfVerticalAlignment, PdfTextAlignment, PdfWordWrapType, PdfFontFamily, PdfBrushes, RectangleF } from '@syncfusion/ej2-pdf-export';
|
|
2
2
|
import { extend, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
3
3
|
import { pixelToPoint, pointToPixel } from '../base/utils';
|
|
4
4
|
/**
|
|
@@ -231,7 +231,7 @@ var PdfTimeline = /** @class */ (function () {
|
|
|
231
231
|
}
|
|
232
232
|
graphics.drawRectangle(rectPen, rectBrush, x, y + pixelToPoint(height), width, page.getClientSize().height);
|
|
233
233
|
if (this.holidayCompleted) {
|
|
234
|
-
var
|
|
234
|
+
var state_1 = graphics.save();
|
|
235
235
|
var font1 = new PdfStandardFont(PdfFontFamily.Helvetica, 10);
|
|
236
236
|
var fontHieght = font1.height;
|
|
237
237
|
var fontSize = font1.size;
|
|
@@ -239,7 +239,7 @@ var PdfTimeline = /** @class */ (function () {
|
|
|
239
239
|
graphics.rotateTransform(-90);
|
|
240
240
|
graphics.translateTransform(-(page.getClientSize().height / 2), -40);
|
|
241
241
|
graphics.drawString(this.holidayLabel, font1, null, PdfBrushes.Black, 10, 10, null);
|
|
242
|
-
graphics.restore(
|
|
242
|
+
graphics.restore(state_1);
|
|
243
243
|
this.holidayCompleted = false;
|
|
244
244
|
}
|
|
245
245
|
if (this.fitHolidayCompleted) {
|
|
@@ -248,12 +248,12 @@ var PdfTimeline = /** @class */ (function () {
|
|
|
248
248
|
var fontHieght = font1.height;
|
|
249
249
|
var fontSize = font1.size;
|
|
250
250
|
graphics.drawRectangle(null, holidayBrush, x + width / 2 - fontSize, y + pixelToPoint(height), fontSize, page.getClientSize().height);
|
|
251
|
-
var
|
|
251
|
+
var state_2 = graphics.save();
|
|
252
252
|
graphics.translateTransform(x + width + width / 2 - fontSize, 40);
|
|
253
253
|
graphics.rotateTransform(-90);
|
|
254
254
|
graphics.translateTransform(-(page.getClientSize().height / 2), -40);
|
|
255
255
|
graphics.drawString(this.holidayLabel, font1, null, PdfBrushes.Black, 10, 10, null);
|
|
256
|
-
graphics.restore(
|
|
256
|
+
graphics.restore(state_2);
|
|
257
257
|
this.fitHolidayCompleted = false;
|
|
258
258
|
}
|
|
259
259
|
var font = new PdfStandardFont(ganttStyle.fontFamily, e.fontSize, e.fontStyle);
|
|
@@ -264,6 +264,8 @@ var PdfTimeline = /** @class */ (function () {
|
|
|
264
264
|
var pLeft = ganttStyle.timeline.padding ? eventArgs.timelineCell.padding.left : 0;
|
|
265
265
|
var pTop = ganttStyle.timeline.padding ? eventArgs.timelineCell.padding.top : 0;
|
|
266
266
|
/* eslint-disable-next-line */
|
|
267
|
+
var state = graphics.save();
|
|
268
|
+
graphics.setClip(new RectangleF(x, y, width, pixelToPoint(height)));
|
|
267
269
|
if (isTopTier) {
|
|
268
270
|
x = x + pLeft + 4;
|
|
269
271
|
}
|
|
@@ -271,6 +273,7 @@ var PdfTimeline = /** @class */ (function () {
|
|
|
271
273
|
x = x + pLeft;
|
|
272
274
|
}
|
|
273
275
|
graphics.drawString(eventArgs.value, font, null, textBrush, x, y + pTop, pixelToPoint(width), pixelToPoint(height), e.format);
|
|
276
|
+
graphics.restore(state);
|
|
274
277
|
};
|
|
275
278
|
return PdfTimeline;
|
|
276
279
|
}());
|
package/styles/bootstrap.css
CHANGED
package/styles/bootstrap4.css
CHANGED
package/styles/bootstrap5.css
CHANGED
package/styles/fabric-dark.css
CHANGED
package/styles/fabric.css
CHANGED
package/styles/fluent-dark.css
CHANGED
package/styles/fluent.css
CHANGED
package/styles/gantt/fabric.css
CHANGED
package/styles/gantt/fluent.css
CHANGED
package/styles/highcontrast.css
CHANGED