jsgantt-improved
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -128,6 +128,2 @@ "use strict"; | ||
exports.addScrollListeners = function (pGanttChart) { | ||
exports.addListener('scroll', function () { pGanttChart.getChartBody().scrollTop = pGanttChart.getListBody().scrollTop; }, pGanttChart.getListBody()); | ||
exports.addListener('scroll', function () { pGanttChart.getListBody().scrollTop = pGanttChart.getChartBody().scrollTop; }, pGanttChart.getChartBody()); | ||
exports.addListener('scroll', function () { pGanttChart.getChartHead().scrollLeft = pGanttChart.getChartBody().scrollLeft; }, pGanttChart.getChartBody()); | ||
exports.addListener('scroll', function () { pGanttChart.getChartBody().scrollLeft = pGanttChart.getChartHead().scrollLeft; }, pGanttChart.getChartHead()); | ||
exports.addListener('resize', function () { pGanttChart.getChartHead().scrollLeft = pGanttChart.getChartBody().scrollLeft; }, window); | ||
@@ -134,0 +130,0 @@ exports.addListener('resize', function () { pGanttChart.getListBody().scrollTop = pGanttChart.getChartBody().scrollTop; }, window); |
@@ -144,3 +144,3 @@ "use strict"; | ||
if (pDataObject === void 0) { pDataObject = null; } | ||
var vGantt = pGantt ? pGantt : g; // hack for backwards compatibility | ||
var vGantt = pGantt ? pGantt : this; | ||
var _id = document.createTextNode(pID).data; | ||
@@ -215,3 +215,2 @@ var vID = utils_1.hashKey(document.createTextNode(pID).data); | ||
var n = vDepList.length; | ||
var vGantt_1 = pGantt ? pGantt : g; | ||
for (var k = 0; k < n; k++) { | ||
@@ -505,2 +504,5 @@ if (vDepList[k].toUpperCase().indexOf('SS') != -1) { | ||
exports.AddTaskItemObject = function (object) { | ||
if (!object.pGantt) { | ||
object.pGantt = this; | ||
} | ||
return this.AddTaskItem(exports.TaskItemObject(object)); | ||
@@ -507,0 +509,0 @@ }; |
@@ -448,2 +448,3 @@ "use strict"; | ||
} | ||
console.log(path); | ||
if (!path[task.pID].childrens) { | ||
@@ -450,0 +451,0 @@ path[task.pID].childrens = []; |
@@ -106,2 +106,18 @@ let dataurl; | ||
// Teste manual add task | ||
// g.AddTaskItemObject({ | ||
// pID: 100, | ||
// pName: "Task 1", | ||
// pStart: "2018-09-05", | ||
// pEnd: "2018-09-11", | ||
// pLink:"", | ||
// pClass: "gtaskgreen", | ||
// pMile: 0, | ||
// pComp: 100, | ||
// pGroup: 0, | ||
// pParent: 0, | ||
// pOpen: 1, | ||
// pNotes: "", | ||
// }); | ||
if (vDebug) { | ||
@@ -108,0 +124,0 @@ bd = new Date(); |
{ | ||
"name": "jsgantt-improved", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "jsgantt-improved", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -6,3 +6,3 @@ const express = require('express'); | ||
app.use(express.static('docs')); | ||
app.listen(8080, ()=>{ console.log('listening to port 8080')}); | ||
const port = 8081; | ||
app.listen(port, ()=>{ console.log(`listening to port ${port}`)}); |
@@ -143,6 +143,2 @@ import { delayedHide, changeFormat, stripIds, isIE, findObj, fadeToolTip } from "./utils"; | ||
export const addScrollListeners = function (pGanttChart) { | ||
addListener('scroll', function () { pGanttChart.getChartBody().scrollTop = pGanttChart.getListBody().scrollTop; }, pGanttChart.getListBody()); | ||
addListener('scroll', function () { pGanttChart.getListBody().scrollTop = pGanttChart.getChartBody().scrollTop; }, pGanttChart.getChartBody()); | ||
addListener('scroll', function () { pGanttChart.getChartHead().scrollLeft = pGanttChart.getChartBody().scrollLeft; }, pGanttChart.getChartBody()); | ||
addListener('scroll', function () { pGanttChart.getChartBody().scrollLeft = pGanttChart.getChartHead().scrollLeft; }, pGanttChart.getChartHead()); | ||
addListener('resize', function () { pGanttChart.getChartHead().scrollLeft = pGanttChart.getChartBody().scrollLeft; }, window); | ||
@@ -149,0 +145,0 @@ addListener('resize', function () { pGanttChart.getListBody().scrollTop = pGanttChart.getChartBody().scrollTop; }, window); |
@@ -161,3 +161,3 @@ import { parseDateStr, isIE, stripUnwanted, getOffset, formatDateStr, hashKey } from "./utils"; | ||
pDepend, pCaption, pNotes, pGantt, pCost = null, pPlanStart = null, pPlanEnd = null, pDataObject = null) { | ||
let vGantt = pGantt ? pGantt : g; // hack for backwards compatibility | ||
let vGantt = pGantt ? pGantt : this; | ||
let _id = document.createTextNode(pID).data; | ||
@@ -242,4 +242,2 @@ let vID = hashKey(document.createTextNode(pID).data); | ||
let vGantt = pGantt ? pGantt : g; | ||
for (let k = 0; k < n; k++) { | ||
@@ -304,3 +302,3 @@ if (vDepList[k].toUpperCase().indexOf('SS') != -1) { | ||
this.getResource = function () { if (vRes) return vRes; else return '\u00A0'; }; | ||
this.getCompVal = function () { if (vComp) return vComp; else if(vCompVal) return vCompVal; else return 0; }; | ||
this.getCompVal = function () { if (vComp) return vComp; else if (vCompVal) return vCompVal; else return 0; }; | ||
this.getCompStr = function () { if (vComp) return vComp + '%'; else if (vCompVal) return vCompVal + '%'; else return ''; }; | ||
@@ -476,2 +474,5 @@ this.getNotes = function () { return vNotes; }; | ||
export const AddTaskItemObject = function (object) { | ||
if (!object.pGantt) { | ||
object.pGantt = this; | ||
} | ||
return this.AddTaskItem(TaskItemObject(object)); | ||
@@ -478,0 +479,0 @@ } |
@@ -457,2 +457,3 @@ | ||
} | ||
console.log(path); | ||
if (!path[task.pID].childrens) { | ||
@@ -459,0 +460,0 @@ path[task.pID].childrens = []; |
Sorry, the diff of this file is not supported yet
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 not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
113212
4885730