@g1cloud/bpmn-modeler-next 5.0.0-beta.14 → 5.0.0-beta.15

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.
@@ -7092,13 +7092,18 @@ function jm(e, t, n) {
7092
7092
  if (n && !n.has(u)) continue;
7093
7093
  const f = i.get(u);
7094
7094
  if (!f) continue;
7095
- const d = f.parent, g = d && typeof d.x == "number" && typeof d.width == "number" ? { x: d.x, y: d.y, width: d.width, height: d.height } : void 0, h = ox(p, a, g, o.edges);
7096
- if (!h) {
7097
- An(p, a).some((m) => m.type === "bpmn:TextAnnotation") && s.add(u);
7095
+ const d = f.parent, g = d && typeof d.x == "number" && typeof d.width == "number" ? { x: d.x, y: d.y, width: d.width, height: d.height } : void 0, h = An(p, a);
7096
+ if (!n && h.length && h.every((v) => v.type === "bpmn:TextAnnotation")) {
7097
+ s.add(u);
7098
7098
  continue;
7099
7099
  }
7100
- const y = o.edges.filter((m) => m.id !== u), C = xi(p, y);
7101
- xi({ ...p, waypoints: h }, y) > C || r.updateWaypoints(f, h);
7100
+ const y = ox(p, a, g, o.edges);
7101
+ if (!y) {
7102
+ h.some((v) => v.type === "bpmn:TextAnnotation") && s.add(u);
7103
+ continue;
7104
+ }
7105
+ const C = o.edges.filter((v) => v.id !== u), x = xi(p, C);
7106
+ xi({ ...p, waypoints: y }, C) > x || r.updateWaypoints(f, y);
7102
7107
  }
7103
7108
  return s;
7104
7109
  }