jsgantt-improved
Advanced tools
Comparing version 2.3.5 to 2.3.6
@@ -271,2 +271,5 @@ "use strict"; | ||
}; | ||
this.getStartVar = function () { | ||
return vStart; | ||
}; | ||
this.getEnd = function () { | ||
@@ -273,0 +276,0 @@ if (vEnd) |
@@ -101,6 +101,4 @@ [ | ||
"pName": "Task by Minute/Hour", | ||
"pStart": "", | ||
"pEnd": "", | ||
"pPlanStart": "2019-07-01", | ||
"pPlanEnd": "2019-07-15 12:00", | ||
"pStart": "2019-07-01", | ||
"pEnd": "2019-07-15 12:00", | ||
"pClass": "gtaskyellow", | ||
@@ -346,5 +344,5 @@ "pLink": "", | ||
"pID": 35, | ||
"pName": "Make Updates", | ||
"pStart": "2019-07-17", | ||
"pEnd": "2019-01-15", | ||
"pName": "Just plan dates", | ||
"pPlanStart": "2019-07-17", | ||
"pPlanEnd": "2019-09-15", | ||
"pClass": "gtaskpurple", | ||
@@ -354,3 +352,3 @@ "pLink": "", | ||
"pRes": "Mario", | ||
"pComp": 30, | ||
"pComp": 0, | ||
"pGroup": 0, | ||
@@ -361,5 +359,4 @@ "pParent": 3, | ||
"pCaption": "", | ||
"pNotes": "", | ||
"deadline": "2019-02-01" | ||
"pNotes": "" | ||
} | ||
] |
{ | ||
"name": "jsgantt-improved", | ||
"version": "2.3.5", | ||
"version": "2.3.6", | ||
"description": "jsgantt-improved", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -931,12 +931,17 @@ import * as lang from './lang'; | ||
// draw the lines for dependecies | ||
// DRAW TASK BAR | ||
vTmpDiv = this.newNode(vTmpDiv, 'div', this.vDivId + 'bardiv_' + vID, 'gtaskbarcontainer', null, vTaskWidth, vTaskLeftPx); | ||
this.vTaskList[i].setBarDiv(vTmpDiv); | ||
vTmpDiv2 = this.newNode(vTmpDiv, 'div', this.vDivId + 'taskbar_' + vID, this.vTaskList[i].getClass(), null, vTaskWidth); | ||
this.vTaskList[i].setTaskDiv(vTmpDiv2); | ||
if (this.vTaskList[i].getStartVar()) { | ||
vTmpDiv2 = this.newNode(vTmpDiv, 'div', this.vDivId + 'taskbar_' + vID, this.vTaskList[i].getClass(), null, vTaskWidth); | ||
this.vTaskList[i].setTaskDiv(vTmpDiv2); | ||
} | ||
// PLANNED | ||
if (vTaskPlanLeftPx && vTaskPlanLeftPx != vTaskLeftPx) { // vTaskPlanRightPx vTaskPlanLeftPx | ||
// If they are different, show plan bar... show if there is no real vStart as well (just plan dates) | ||
if (vTaskPlanLeftPx && (vTaskPlanLeftPx != vTaskLeftPx || !this.vTaskList[i].getStartVar())) { | ||
const vTmpPlanDiv = this.newNode(vTmpDivCell, 'div', this.vDivId + 'bardiv_' + vID, 'gtaskbarcontainer gplan', null, vTaskPlanRightPx, vTaskPlanLeftPx); | ||
const vTmpDiv3 = this.newNode(vTmpPlanDiv, 'div', this.vDivId + 'taskbar_' + vID, this.vTaskList[i].getClass() + ' gplan', null, vTaskPlanRightPx); | ||
this.newNode(vTmpPlanDiv, 'div', this.vDivId + 'taskbar_' + vID, this.vTaskList[i].getClass() + ' gplan', null, vTaskPlanRightPx); | ||
} | ||
@@ -943,0 +948,0 @@ |
@@ -290,2 +290,5 @@ import { parseDateStr, isIE, stripUnwanted, internalPropertiesLang, formatDateStr, hashKey, internalProperties } from "./utils"; | ||
}; | ||
this.getStartVar = function () { | ||
return vStart; | ||
}; | ||
this.getEnd = function () { | ||
@@ -292,0 +295,0 @@ if (vEnd) return vEnd; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5141749
120697