refactor(diagram): 停透传废弃的 layout 字段(positions 单源生效)
This commit is contained in:
@@ -153,20 +153,6 @@ public class FlowDiagramService {
|
||||
positions.put(id, p);
|
||||
});
|
||||
vo.setPositions(positions);
|
||||
// 画布坐标透传(设计器保存;缺失时前端自行 Kahn 布局)
|
||||
if (model.layout != null && !model.layout.isEmpty()) {
|
||||
Map<String, Map<String, Integer>> layout = new HashMap<>();
|
||||
for (Map.Entry<String, FlowDefModel.Layout> en : model.layout.entrySet()) {
|
||||
if (en.getValue() == null) {
|
||||
continue;
|
||||
}
|
||||
Map<String, Integer> p = new HashMap<>();
|
||||
p.put("x", en.getValue().x);
|
||||
p.put("y", en.getValue().y);
|
||||
layout.put(en.getKey(), p);
|
||||
}
|
||||
vo.setLayout(layout);
|
||||
}
|
||||
// instance 口径:按任务轨迹给节点上运行时状态(前端高亮在办节点)
|
||||
if (instanceId != null) {
|
||||
Map<String, String> states = nodeStates(instanceId, model);
|
||||
|
||||
Reference in New Issue
Block a user