gantt-renderer 0.1.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -0
- package/README.md +4 -3
- package/dist/index.d.mts +350 -95
- package/dist/index.mjs +1557 -599
- package/dist/index.mjs.map +1 -1
- package/dist/styles/gantt.css +27 -2
- package/package.json +90 -91
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,44 @@
|
|
|
1
|
+
# [0.3.0](https://github.com/doberkofler/gantt-renderer/compare/v0.2.0...v0.3.0) (2026-05-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* correct link routing geometry and dependency layer rendering ([d00de8a](https://github.com/doberkofler/gantt-renderer/commit/d00de8a8b51d69b7b50ec4c6bf0ce6dd3657e1a8))
|
|
7
|
+
* **interaction:** deep-clone input in update() to prevent drag mutations leaking to consumer data ([ce814a0](https://github.com/doberkofler/gantt-renderer/commit/ce814a02bb87230108635ae663f165497f522f7e)), closes [#patchTask](https://github.com/doberkofler/gantt-renderer/issues/patchTask)
|
|
8
|
+
* **rendering:** offset multi-row link midpoint to avoid bar center slicing ([1fe09fa](https://github.com/doberkofler/gantt-renderer/commit/1fe09fa3d736cf948035c4f1619f398fa374464d))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **interaction:** add progress bar drag with progressDragEnabled option ([77833b5](https://github.com/doberkofler/gantt-renderer/commit/77833b50b5984158bd9a2ab3ddcc744d05ccb18f))
|
|
14
|
+
|
|
15
|
+
# [0.2.0](https://github.com/doberkofler/gantt-renderer/compare/v0.1.3...v0.2.0) (2026-05-07)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
* refactor(domain)!: rename duration to durationHours (days → hours) ([eb7a554](https://github.com/doberkofler/gantt-renderer/commit/eb7a5549e38ac3e36bb6ee47b66433e67ea9d78f))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* **api:** type parseGanttInput parameter as GanttInputRaw instead of unknown ([d12d96b](https://github.com/doberkofler/gantt-renderer/commit/d12d96b838b0670a668d313efc61bd02c55efa36))
|
|
24
|
+
* **rightPane:** offset absoluteLayer below timeline header to align bars with grid rows ([25f2785](https://github.com/doberkofler/gantt-renderer/commit/25f278561b4a789f0daf633436f6c95f4bae5ec9))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### BREAKING CHANGES
|
|
28
|
+
|
|
29
|
+
* Task duration field renamed from `duration` (days) to
|
|
30
|
+
`durationHours` (hours). Durations are now integer hours; `0` = milestone.
|
|
31
|
+
Added addHours/diffHours to dateMath. PixelMapper, layoutEngine, drag
|
|
32
|
+
interactions, demo data, and all test fixtures updated accordingly.
|
|
33
|
+
|
|
34
|
+
## [0.1.3](https://github.com/doberkofler/gantt-renderer/compare/v0.1.2...v0.1.3) (2026-05-07)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Features
|
|
38
|
+
|
|
39
|
+
* **demo:** add locale selector to demo control panel ([c45a353](https://github.com/doberkofler/gantt-renderer/commit/c45a353248fea61d9d498eca73ae9088dcb608c5))
|
|
40
|
+
* **gantt-chart:** add special-day indicator dots to timeline header cells ([6570ddb](https://github.com/doberkofler/gantt-renderer/commit/6570ddb77f72b66adfe368de0a1b922a7e007035))
|
|
41
|
+
|
|
1
42
|
## [0.1.2](https://github.com/doberkofler/gantt-renderer/compare/v0.1.1...v0.1.2) (2026-05-07)
|
|
2
43
|
|
|
3
44
|
|
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ optimize timelines, resolve resource constraints, or perform planning logic itse
|
|
|
30
30
|
|
|
31
31
|
## Scope
|
|
32
32
|
|
|
33
|
-
The library is designed as a core chart component (`src/
|
|
33
|
+
The library is designed as a core chart component (`src/lib/**/*`) that your product can
|
|
34
34
|
embed. Outer-page/demo concerns (export toolbars, fullscreen shell controls, demo-only control
|
|
35
35
|
rows) are intentionally outside the core scope.
|
|
36
36
|
|
|
@@ -67,16 +67,17 @@ import {GanttChart, parseGanttInput} from 'gantt-renderer';
|
|
|
67
67
|
import 'gantt-renderer/styles/gantt.css';
|
|
68
68
|
|
|
69
69
|
const input = parseGanttInput(yourData);
|
|
70
|
-
const instance = new GanttChart(document.getElementById('chart')!,
|
|
70
|
+
const instance = new GanttChart(document.getElementById('chart')!, {
|
|
71
71
|
scale: 'day',
|
|
72
72
|
});
|
|
73
|
+
instance.update(input);
|
|
73
74
|
```
|
|
74
75
|
|
|
75
76
|
## Integration Pattern
|
|
76
77
|
|
|
77
78
|
1. Compute/plan project data in your domain layer or backend.
|
|
78
79
|
2. Validate the result with `parseGanttInput(yourData)`.
|
|
79
|
-
3. Render with `new GanttChart(container,
|
|
80
|
+
3. Render with `new GanttChart(container, options)` followed by `instance.update(input)` and react to interaction callbacks.
|
|
80
81
|
4. Persist user edits through your own business logic, then update with `instance.update(newInput)`.
|
|
81
82
|
|
|
82
83
|
## Package Exports
|