Skip to content

Commit

Permalink
Back to ECMAScript 5 for some functions
Browse files Browse the repository at this point in the history
  • Loading branch information
DlhSoftTeam committed Oct 21, 2019
1 parent 05d2c5d commit 19e29aa
Show file tree
Hide file tree
Showing 147 changed files with 9 additions and 9 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ angular.module('GanttChartViewSample', ['DlhSoft.ProjectData.GanttChart.Directiv
// standardCompletedBarStyle: 'stroke: DarkGreen; fill: DarkGreen',
// dependencyLineStyle: 'stroke: Green; fill: none; marker-end: url(#ArrowMarker)',
// alternativeItemStyle: 'background-color: #f9f9f9', alternativeChartItemStyle: 'fill: #f9f9f9',
// itemTemplate: (item) => {
// itemTemplate: function(item) {
// var toolTip = document.createElementNS('http://www.w3.org/2000/svg', 'title');
// var toolTipContent = item.content + ' • ' + 'Start: ' + item.start.toLocaleString();
// if (!item.isMilestone)
Expand Down Expand Up @@ -86,10 +86,10 @@ angular.module('GanttChartViewSample', ['DlhSoft.ProjectData.GanttChart.Directiv
columns.push({ header: 'Est. start', width: 140, cellTemplate: GanttChartView.getBaselineStartColumnTemplate(124, true, true, 8 * 60 * 60 * 1000) }); // 8 AM
columns.push({ header: 'Est. finish', width: 140, cellTemplate: GanttChartView.getBaselineFinishColumnTemplate(124, true, true, 16 * 60 * 60 * 1000) }); // 4 PM
// items[7]['description'] = 'Custom description';
// columns.push({ header: 'Description', width: 200, cellTemplate: (item) => { return item['ganttChartView'].ownerDocument.createTextNode(item['description']); } });
// columns.push({ header: 'Description', width: 200, cellTemplate: function(item) { return item['ganttChartView'].ownerDocument.createTextNode(item['description']); } });
// columns[10 + indexOffset].cellTemplate = GanttChartView.getAssignmentSelectorColumnTemplate(184, (item) { return ['Resource 1', 'Resource 2'] });
// items[7]['targetDate'] = new Date(2016, 2 - 1, 28, 12, 0, 0);
// columns.push({ header: 'Target date', width: 140, cellTemplate: (item) => {
// columns.push({ header: 'Target date', width: 140, cellTemplate: function(item) {
// return GanttChartView.datePickerInputColumnTemplateBase(item['ganttChartView'].ownerDocument, 140,
// function () { return GanttChartView.getInputDate(item['targetDate']); },
// function (value) { item['targetDate'] = GanttChartView.getOutputDate(value); }); } });
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function addInterruptionElements(document, ganttChartView, extraArea, item) {
interruption = { start: item.start > interruption.start ? item.start : interruption.start, finish: item.finish < interruption.finish ? item.finish : interruption.finish };
if (interruption.finish <= item.start || interruption.start >= item.finish)
continue;
extraArea.append(getInterruptionElement(document, ganttChartView, item, interruption));
extraArea.appendChild(getInterruptionElement(document, ganttChartView, item, interruption));
}
}
function getInterruptionElement(document, ganttChartView, item, interruption) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function addInterruptionElements(document: HTMLDocument, ganttChartView: GanttCh
interruption = { start: item.start > interruption.start ? item.start : interruption.start, finish: item.finish < interruption.finish ? item.finish : interruption.finish };
if (interruption.finish <= item.start || interruption.start >= item.finish)
continue;
extraArea.append(getInterruptionElement(document, ganttChartView, item, interruption));
extraArea.appendChild(getInterruptionElement(document, ganttChartView, item, interruption));
}
}
function getInterruptionElement(document: HTMLDocument, ganttChartView: GanttChartView.Element, item: MyGanttChartItem, interruption: Interval): SVGElement {
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 19e29aa

Please sign in to comment.