chore: correct tooling

This commit is contained in:
Safwan Samsudeen 2024-11-28 14:50:59 +05:30
parent de53f780b7
commit ced1080931
4 changed files with 5457 additions and 10 deletions

View File

@ -508,7 +508,10 @@ class O {
const { step: t, column_width: e } = this.gantt.options, s = this.task._start, i = this.gantt.gantt_start;
let o = h.diff(s, i, "hour") / t * e;
if (this.gantt.view_is("Month")) {
const a = h.diff(s, i, "month") * 30, d = Math.min(29, h.format(s, "DD"));
const a = h.diff(s, i, "month") * 30, d = Math.min(
29,
h.format(s, "DD")
);
o = (a + d) * e / 30;
}
this.x = o;
@ -873,7 +876,7 @@ class B {
this.$header.clientWidth,
this.$container.clientWidth
);
this.$side_header.style.left = s + this.$container.scrollLeft + r - this.$side_header.clientWidth + "px", this.$today_button.style.left = `${t.left + 20}px`;
this.$side_header.style.left = s + this.$container.scrollLeft + r - this.$side_header.clientWidth + "px", this.$today_button && (this.$today_button.style.left = `${t.left + 20}px`);
}
make_grid_ticks() {
if (!["both", "vertical", "horizontal"].includes(this.options.lines))

File diff suppressed because one or more lines are too long

View File

@ -9,9 +9,7 @@
"dev": "vite",
"build-dev": "vite build --watch",
"build": "vite build",
"test": "jest",
"lint": "eslint src/**/*.js",
"test:watch": "jest --watch",
"prettier": "prettier --write \"{src/*,tests/*,rollup.config}.js\"",
"prettier-check": "prettier --check \"{src/*,tests/*,rollup.config}.js\""
},
@ -54,6 +52,5 @@
},
"eslintIgnore": [
"dist"
],
"packageManager": "yarn@1.22.22"
]
}

5447
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff