Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jsgantt-improved

Package Overview
Dependencies
Maintainers
1
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsgantt-improved - npm Package Compare versions

Comparing version 2.5.2 to 2.5.3

jsgantt.js

8

dist/src/draw_dependencies.js

@@ -69,3 +69,9 @@ "use strict";

}
var cssClass = 'gDepId' + vList[vTask].getID();
var cssClass = 'gDepId' + vList[vTask].getID() +
' ' + 'gDepNextId' + vList[i].getID();
var dependedData = vList[vTask].getDataObject();
var nextDependedData = vList[i].getDataObject();
if (dependedData && dependedData.pID && nextDependedData && nextDependedData.pID) {
cssClass += ' gDepDataId' + dependedData.pID + ' ' + 'gDepNextDataId' + nextDependedData.pID;
}
if (vDependType[k] == 'SS')

@@ -72,0 +78,0 @@ this.drawDependency(vList[vTask].getStartX() - 1, vList[vTask].getStartY(), vList[i].getStartX() - 1, vList[i].getStartY(), 'SS', cssClass + ' gDepSS');

@@ -67,3 +67,7 @@ "use strict";

beforeDraw: null,
afterDraw: null
afterDraw: null,
beforeLineDraw: null,
afterLineDraw: null,
onLineDraw: null,
onLineContainerHover: null
};

@@ -80,2 +84,3 @@ this.vEventsChange = {

cost: null,
line: null
};

@@ -133,2 +138,4 @@ this.vResources = null;

this.mouseOut = events_1.mouseOut;
this.addListener = events_1.addListener.bind(this);
this.removeListener = events_1.removeListener.bind(this);
this.createTaskInfo = task_1.createTaskInfo;

@@ -150,2 +157,7 @@ this.AddTaskItem = task_1.AddTaskItem;

var parent = this.getLines();
if (this.vEventsChange.line &&
typeof this.vEventsChange.line === 'function') {
this.removeListener('click', this.vEventsChange.line, parent);
this.addListener('click', this.vEventsChange.line, parent);
}
while (parent.hasChildNodes())

@@ -692,2 +704,6 @@ parent.removeChild(parent.firstChild);

vTmpDiv2 = draw_utils_1.newNode(this.getChartBody(), 'div', this.vDivId + 'Lines', 'glinediv');
if (this.vEvents.onLineContainerHover && typeof this.vEvents.onLineContainerHover === 'function') {
events_1.addListener('mouseover', this.vEvents.onLineContainerHover, vTmpDiv2);
events_1.addListener('mouseout', this.vEvents.onLineContainerHover, vTmpDiv2);
}
vTmpDiv2.style.visibility = 'hidden';

@@ -737,4 +753,10 @@ this.setLines(vTmpDiv2);

}
if (this.vEvents && typeof this.vEvents.beforeLineDraw === 'function') {
this.vEvents.beforeLineDraw();
}
this.DrawDependencies(this.vDebug);
events_1.addListenerDependencies();
events_1.addListenerDependencies(this.vLineOptions);
if (this.vEvents && typeof this.vEvents.afterLineDraw === 'function') {
this.vEvents.afterLineDraw();
}
if (this.vDebug) {

@@ -741,0 +763,0 @@ var ad = new Date();

@@ -186,2 +186,18 @@ "use strict";

};
exports.removeListener = function (eventName, handler, control) {
// Check if control is a string
if (control === String(control))
control = general_utils_1.findObj(control);
if (control.removeEventListener) {
//Standard W3C
return control.removeEventListener(eventName, handler, false);
}
else if (control.detachEvent) {
//IExplore
return control.attachEvent('on' + eventName, handler);
}
else {
return false;
}
};
exports.syncScroll = function (elements, attrName) {

@@ -306,3 +322,3 @@ var syncFlags = new Map(elements.map(function (e) { return [e, false]; }));

};
exports.addListenerDependencies = function () {
exports.addListenerDependencies = function (vLineOptions) {
var elements = document.querySelectorAll('.gtaskbarcontainer');

@@ -312,13 +328,13 @@ for (var i = 0; i < elements.length; i++) {

taskDiv.addEventListener('mouseover', function (e) {
toggleDependencies(e);
toggleDependencies(e, vLineOptions);
});
taskDiv.addEventListener('mouseout', function (e) {
toggleDependencies(e);
toggleDependencies(e, vLineOptions);
});
}
};
var toggleDependencies = function (e) {
var toggleDependencies = function (e, vLineOptions) {
var target = e.currentTarget;
var ids = target.getAttribute('id').split('_');
var style = 'groove';
var style = vLineOptions && vLineOptions.borderStyleHover !== undefined ? vLineOptions.hoverStyle : 'groove';
if (e.type === 'mouseout') {

@@ -325,0 +341,0 @@ style = '';

@@ -114,2 +114,3 @@ "use strict";

this.vLines = pDiv; };
this.setLineOptions = function (lineOptions) { this.vLineOptions = lineOptions; };
this.setTimer = function (pVal) { this.vTimer = pVal * 1; };

@@ -116,0 +117,0 @@ this.setTooltipDelay = function (pVal) { this.vTooltipDelay = pVal * 1; };

@@ -133,2 +133,5 @@ "use strict";

this.getLines().appendChild(vTmpDiv);
if (this.vEvents.onLineDraw && typeof this.vEvents.onLineDraw === 'function') {
this.vEvents.onLineDraw(vTmpDiv);
}
return vTmpDiv;

@@ -135,0 +138,0 @@ };

2

package.json
{
"name": "jsgantt-improved",
"version": "2.5.2",
"version": "2.5.3",
"description": "jsgantt-improved",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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 not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc