ice-entity-designer-dsl 0.0.12 → 0.0.13
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/README.md +3 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -159,12 +159,14 @@ const result = ICEDSL.renderDsl('canvas', plan);
|
|
|
159
159
|
// result.kind === 'gantt'; result.designer is a GanttDesigner
|
|
160
160
|
result.designer.validateGantt(); // 依赖成环 / 进度越界 / 天数非法 / 资源冲突
|
|
161
161
|
result.designer.autoSchedule(); // 自动排程:按依赖推到「前置结束之后」(只推后不提前)
|
|
162
|
-
result.designer.criticalPath(); //
|
|
162
|
+
result.designer.criticalPath(); // 关键路径(按「尽早排」归一化算浮时)
|
|
163
163
|
result.designer.toSvg(); // 矢量导出(含日期刻度与进度)
|
|
164
164
|
```
|
|
165
165
|
|
|
166
166
|
`options.autoSchedule: true` 可以让**渲染时**就按依赖把排期推到最早可行(文档里写的日期当作下界),
|
|
167
167
|
`resource` 字段用于资源冲突检查(同一负责人时间重叠会在 `validateGantt()` 里报出)。
|
|
168
|
+
关键路径用 CPM 的标准口径:有前置的任务由前置的最早完工决定,没有前置的才以自身日期为锚,
|
|
169
|
+
所以末端任务的日期被手写得很晚、或者刚跑完 `autoSchedule()`,链路判定都不会退化成单个任务。
|
|
168
170
|
|
|
169
171
|
Fields: `start` (`YYYY-MM-DD`, required), `days` (default 1), `progress` (0..1, default 0),
|
|
170
172
|
`row` (defaults to declaration order). **Do not invent coordinates** — the timeline is derived;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ice-entity-designer-dsl",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "A JSON-first DSL layer for AI agents to drive ice-entity-designer.",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"types:check": "tsc --noEmit"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"ice-entity-designer": "^0.0.
|
|
22
|
+
"ice-entity-designer": "^0.0.28"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@babel/core": "7.17.8",
|