ice-entity-designer 0.3.2 → 0.4.1

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 CHANGED
@@ -78,7 +78,10 @@ IED(ice entity designer)是基于 [ice-render](https://github.com/ice-render
78
78
  不提供缩放/旋转/斜切手柄(尺寸与朝向是记法的一部分);需要变尺寸的元素(母线长度、BPMN 池/泳道、
79
79
  柜体宽高、流程图节点尺寸…)在属性面板里用数值改,甘特条宽度则由「天数 × 每日像素」推出。
80
80
  图纸整体缩放走滚轮(视图缩放),与图元缩放严格分开。
81
- - 拖拽对齐辅助线与磁吸效果。
81
+ - **拖拽对齐引导线与磁吸(默认开启)**:图元位置**就是数据**、没有布局能约束它,缺了引导必然越拖越乱
82
+ ("看着对齐了、其实差 3px"),所以设计器在构造时就调用 `ice.alignmentGuide.enable({ threshold: 6 })`:
83
+ 拖动时出对齐提示线,并按**边缘 / 中心 / 等间距**三类候选吸附。想调阈值或关掉:
84
+ `ice.alignmentGuide.setOptions({ threshold: 10 })` / `ice.alignmentGuide.disable()`。
82
85
  - Undo / Redo(基于项目快照,最多 100 步)。
83
86
  - 项目级保存 / 加载(`serializeProject()` / `loadProject()`)。
84
87