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 1.8.8 to 2.0.0

4

demo/fixes/data.json

@@ -94,4 +94,4 @@ [

"pName": "Task by Minute/Hour",
"pStart": "2017-03-09",
"pEnd": "2017-03-14 12:00",
"pStart": "",
"pEnd": "",
"pPlanStart": "2017-03-01",

@@ -98,0 +98,0 @@ "pPlanEnd": "2017-03-15 12:00",

@@ -581,4 +581,4 @@ "use strict";

for (i = 0; i < this.vTaskList.length; i++) {
var curTaskStart = this.vTaskList[i].getStart();
var curTaskEnd = this.vTaskList[i].getEnd();
var curTaskStart = this.vTaskList[i].getStart() ? this.vTaskList[i].getStart() : this.vTaskList[i].getPlanStart();
var curTaskEnd = this.vTaskList[i].getEnd() ? this.vTaskList[i].getEnd() : this.vTaskList[i].getPlanEnd();
if ((curTaskEnd.getTime() - (curTaskEnd.getTimezoneOffset() * 60000)) % (86400000) == 0)

@@ -692,3 +692,3 @@ curTaskEnd = new Date(curTaskEnd.getFullYear(), curTaskEnd.getMonth(), curTaskEnd.getDate() + 1, curTaskEnd.getHours(), curTaskEnd.getMinutes(), curTaskEnd.getSeconds()); // add 1 day here to simplify calculations below

// PLANNED
if (vTaskPlanLeftPx) { // vTaskPlanRightPx vTaskPlanLeftPx
if (vTaskPlanLeftPx && vTaskPlanLeftPx != vTaskLeftPx) { // vTaskPlanRightPx vTaskPlanLeftPx
var vTmpPlanDiv = this.newNode(vTmpDivCell, 'div', this.vDivId + 'bardiv_' + vID, 'gtaskbarcontainer gplan', null, vTaskPlanRightPx, vTaskPlanLeftPx);

@@ -695,0 +695,0 @@ var vTmpDiv3 = this.newNode(vTmpPlanDiv, 'div', this.vDivId + 'taskbar_' + vID, this.vTaskList[i].getClass() + ' gplan', null, vTaskPlanRightPx);

@@ -139,4 +139,4 @@ "use strict";

var vName = document.createTextNode(pName).data;
var vStart = new Date(0);
var vEnd = new Date(0);
var vStart = null;
var vEnd = null;
var vPlanStart = null;

@@ -226,6 +226,6 @@ var vPlanEnd = null;

this.getName = function () { return vName; };
this.getStart = function () { return vStart; };
this.getEnd = function () { return vEnd; };
this.getPlanStart = function () { return vPlanStart; };
this.getPlanEnd = function () { return vPlanEnd; };
this.getStart = function () { return vStart ? vStart : vPlanStart; };
this.getEnd = function () { return vEnd ? vEnd : vPlanEnd; };
this.getPlanStart = function () { return vPlanStart ? vPlanStart : vStart; };
this.getPlanEnd = function () { return vPlanEnd ? vPlanEnd : vEnd; };
this.getCost = function () { return vCost; };

@@ -232,0 +232,0 @@ this.getGroupMinStart = function () { return vGroupMinStart; };

{
"name": "jsgantt-improved",
"version": "1.8.8",
"version": "2.0.0",
"description": "jsgantt-improved",

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

@@ -590,4 +590,4 @@ import * as lang from './lang';

for (i = 0; i < this.vTaskList.length; i++) {
var curTaskStart = this.vTaskList[i].getStart();
var curTaskEnd = this.vTaskList[i].getEnd();
var curTaskStart = this.vTaskList[i].getStart() ? this.vTaskList[i].getStart() : this.vTaskList[i].getPlanStart();
var curTaskEnd = this.vTaskList[i].getEnd() ? this.vTaskList[i].getEnd() : this.vTaskList[i].getPlanEnd();
if ((curTaskEnd.getTime() - (curTaskEnd.getTimezoneOffset() * 60000)) % (86400000) == 0) curTaskEnd = new Date(curTaskEnd.getFullYear(), curTaskEnd.getMonth(), curTaskEnd.getDate() + 1, curTaskEnd.getHours(), curTaskEnd.getMinutes(), curTaskEnd.getSeconds()); // add 1 day here to simplify calculations below

@@ -610,3 +610,3 @@

vTaskPlanRightPx = getOffset(curTaskPlanStart, curTaskPlanEnd, vColWidth, this.vFormat);
}else {
} else {
vTaskPlanLeftPx = vTaskPlanRightPx = 0;

@@ -717,3 +717,3 @@ }

// PLANNED
if (vTaskPlanLeftPx) { // vTaskPlanRightPx vTaskPlanLeftPx
if (vTaskPlanLeftPx && vTaskPlanLeftPx != vTaskLeftPx) { // vTaskPlanRightPx vTaskPlanLeftPx
const vTmpPlanDiv = this.newNode(vTmpDivCell, 'div', this.vDivId + 'bardiv_' + vID, 'gtaskbarcontainer gplan', null, vTaskPlanRightPx, vTaskPlanLeftPx);

@@ -720,0 +720,0 @@ const vTmpDiv3 = this.newNode(vTmpPlanDiv, 'div', this.vDivId + 'taskbar_' + vID, this.vTaskList[i].getClass() + ' gplan', null, vTaskPlanRightPx);

@@ -150,6 +150,6 @@ import { parseDateStr, isIE, stripUnwanted, getOffset, formatDateStr } from "./utils";

object.pPlanEndDate
);
);
}
export const TaskItem = function (pID, pName, pStart, pEnd, pClass, pLink, pMile, pRes, pComp, pGroup, pParent, pOpen,
export const TaskItem = function (pID, pName, pStart, pEnd, pClass, pLink, pMile, pRes, pComp, pGroup, pParent, pOpen,
pDepend, pCaption, pNotes, pGantt, pCost = null, pPlanStart = null, pPlanEnd = null) {

@@ -159,4 +159,4 @@ let vBenchTime = new Date().getTime();

let vName = document.createTextNode(pName).data;
let vStart = new Date(0);
let vEnd = new Date(0);
let vStart = null;
let vEnd = null;
let vPlanStart = null;

@@ -255,6 +255,6 @@ let vPlanEnd = null;

this.getName = function () { return vName; };
this.getStart = function () { return vStart; };
this.getEnd = function () { return vEnd; };
this.getPlanStart = function () { return vPlanStart; };
this.getPlanEnd = function () { return vPlanEnd; };
this.getStart = function () { return vStart ? vStart : vPlanStart; };
this.getEnd = function () { return vEnd ? vEnd : vPlanEnd; };
this.getPlanStart = function () { return vPlanStart ? vPlanStart : vStart; };
this.getPlanEnd = function () { return vPlanEnd ? vPlanEnd : vEnd; };
this.getCost = function () { return vCost; };

@@ -261,0 +261,0 @@ this.getGroupMinStart = function () { return vGroupMinStart; };

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

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