@weasel-js/diagram 1.13.0 → 1.14.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/README.md +122 -17
- package/dist/{chunk-Y72FK3Y7.js → chunk-5VNPLOIX.js} +94 -6
- package/dist/chunk-5VNPLOIX.js.map +1 -0
- package/dist/{chunk-ESFIS7BB.js → chunk-62SMY45E.js} +918 -574
- package/dist/chunk-62SMY45E.js.map +1 -0
- package/dist/{chunk-FAQXYGMX.js → chunk-TBG6DFB2.js} +3 -3
- package/dist/{chunk-FAQXYGMX.js.map → chunk-TBG6DFB2.js.map} +1 -1
- package/dist/{chunk-L4H444QI.js → chunk-VB6HUKNG.js} +659 -185
- package/dist/chunk-VB6HUKNG.js.map +1 -0
- package/dist/{chunk-QU4QZUC6.js → chunk-ZWXM5F4I.js} +141 -39
- package/dist/chunk-ZWXM5F4I.js.map +1 -0
- package/dist/{dataTypes-DW-MljuN.d.ts → dataTypes-BIkhAOc4.d.ts} +13 -2
- package/dist/effect-audio.d.ts +2 -1
- package/dist/effect-audio.js +6 -5
- package/dist/effect-audio.js.map +1 -1
- package/dist/effect.d.ts +46 -16
- package/dist/effect.js +257 -102
- package/dist/effect.js.map +1 -1
- package/dist/icons.table.js +262 -0
- package/dist/icons.table.js.map +1 -1
- package/dist/icons.table.json +262 -0
- package/dist/index.d.ts +491 -167
- package/dist/index.js +586 -36
- package/dist/index.js.map +1 -1
- package/dist/labelTrait-BBjRgxbz.d.ts +44 -0
- package/dist/layout.d.ts +4 -3
- package/dist/{layout.entry-CQoPNfzA.d.ts → layout.entry-Ca6pVvqo.d.ts} +23 -2
- package/dist/layout.js +2 -2
- package/dist/{stageTypes-DvnR8cKQ.d.ts → stageTypes-UiO25hcn.d.ts} +7 -0
- package/dist/{types-vbW21fHm.d.ts → types-B0n2CNTW.d.ts} +108 -81
- package/package.json +11 -9
- package/dist/chunk-ESFIS7BB.js.map +0 -1
- package/dist/chunk-L4H444QI.js.map +0 -1
- package/dist/chunk-QU4QZUC6.js.map +0 -1
- package/dist/chunk-Y72FK3Y7.js.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { grownBy, labelCenter, diagramEdgeOf, DIAGRAM_TRAIT_KEY, insetOf, subpathOf, portsOf, portSitesOf, routeHolds, sizeToBody, measureBody, layoutBody, layoutOwnsRoute, diagramNodeOf, expandGroupEdges, DEFAULT_GROUP_INSET, bodyTrait, authoredOver, chain, force, tree, layered, planOf, buildBody } from './chunk-
|
|
2
|
-
import { bodyPredicate, AUTO_POSE_DESCRIPTOR, translatePoseViaDescriptor, createTransformOp, polylineFromPoints, PathBuilder, documentDepOf, documentPose, composeAffordanceLayer, ActionDisabledReason, pageName, pageOfBounds, layoutPages, RECT_POSE_DESCRIPTOR, resolveFill, resolveStroke, commandFill, commandStroke, transformPath, registerNodeShape, pathFromD } from '@weasel-js/core';
|
|
3
|
-
import {
|
|
1
|
+
import { grownBy, labelCenter, diagramEdgeOf, DIAGRAM_TRAIT_KEY, insetOf, subpathOf, portsOf, portSitesOf, routeHolds, rowHeights, sizeToBody, measureBody, layoutBody, layoutOwnsRoute, diagramNodeOf, expandGroupEdges, DEFAULT_GROUP_INSET, bodyTrait, authoredOver, chain, force, tree, layered, planOf, buildBody } from './chunk-VB6HUKNG.js';
|
|
2
|
+
import { bodyPredicate, AUTO_POSE_DESCRIPTOR, translatePoseViaDescriptor, createTransformOp, polylineFromPoints, PathBuilder, documentDepOf, documentPose, composeAffordanceLayer, ActionDisabledReason, pageName, pageOfBounds, layoutPages, RECT_POSE_DESCRIPTOR, resolveFill, resolveStroke, commandFill, commandStroke, transformPath, registerNodeShape, RIGID_POSE_COMPOSITION, localizeWorldPoses, pathFromD } from '@weasel-js/core';
|
|
3
|
+
import { createSettledCache, createBvh } from '@weasel-js/geom/nd';
|
|
4
|
+
import { worldCoords, PathBuilder as PathBuilder$1, polylineFromPoints as polylineFromPoints$1, portCurvePoints } from '@weasel-js/geom';
|
|
4
5
|
import { AUTO_POSE_DESCRIPTOR as AUTO_POSE_DESCRIPTOR$1 } from '@weasel-js/core/math';
|
|
5
6
|
|
|
6
7
|
function traitOf(node) {
|
|
@@ -102,6 +103,9 @@ function titlePose(bounds, header) {
|
|
|
102
103
|
const cy = h.y + h.height / 2;
|
|
103
104
|
return { x: cx - h.height / 2, y: cy - h.width / 2, width: h.height, height: h.width, rotation: -Math.PI / 2 };
|
|
104
105
|
}
|
|
106
|
+
function titleInFrame(size, header) {
|
|
107
|
+
return titlePose({ x: 0, y: 0, width: size.width, height: size.height }, header);
|
|
108
|
+
}
|
|
105
109
|
var center = (p) => ({ x: p.x + p.width / 2, y: p.y + p.height / 2 });
|
|
106
110
|
function titlePoses(container, children, header) {
|
|
107
111
|
const out = /* @__PURE__ */ new Map();
|
|
@@ -282,6 +286,34 @@ function labelDerivePose(opts = {}) {
|
|
|
282
286
|
}
|
|
283
287
|
var DIAGRAM_LABEL = "diagram:label";
|
|
284
288
|
var LABEL_DERIVE_POSE = labelDerivePose();
|
|
289
|
+
function keyedIndex(key, build) {
|
|
290
|
+
const cache = createSettledCache();
|
|
291
|
+
return () => {
|
|
292
|
+
const now = key();
|
|
293
|
+
return now === void 0 ? null : cache.read(now, build);
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
function boxIndex(boxes) {
|
|
297
|
+
const entries = [];
|
|
298
|
+
const always = [];
|
|
299
|
+
boxes.forEach((b, i) => {
|
|
300
|
+
if (b.every(Number.isFinite) && b[0] <= b[2] && b[1] <= b[3]) entries.push([i, b]);
|
|
301
|
+
else always.push(i);
|
|
302
|
+
});
|
|
303
|
+
return { tree: createBvh(2, entries), always };
|
|
304
|
+
}
|
|
305
|
+
function boxesMeeting(index, x0, y0, x1, y1) {
|
|
306
|
+
const q = [x0, y0, x1, y1];
|
|
307
|
+
if (q.some(Number.isNaN)) return null;
|
|
308
|
+
const e = 1e-9 * (1 + Math.max(0, ...q.filter(Number.isFinite).map(Math.abs)));
|
|
309
|
+
const found = [...index.always];
|
|
310
|
+
index.tree.queryBox([x0 - e, y0 - e, x1 + e, y1 + e], (i) => {
|
|
311
|
+
found.push(i);
|
|
312
|
+
});
|
|
313
|
+
return found.sort((a, b) => a - b);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
// src/labelDragLayer.ts
|
|
285
317
|
var LABEL_DRAG_LAYER_ID = "diagram-edge-labels";
|
|
286
318
|
var LABEL_DRAG_AFFORDANCE_KIND = `layer:${LABEL_DRAG_LAYER_ID}`;
|
|
287
319
|
function labelScratchOf(hit) {
|
|
@@ -309,31 +341,62 @@ function* draggableLabels(scene) {
|
|
|
309
341
|
}
|
|
310
342
|
}
|
|
311
343
|
var holds = (b, at) => at.x >= b.x && at.x <= b.x + b.width && at.y >= b.y && at.y <= b.y + b.height;
|
|
344
|
+
var INDEXES = /* @__PURE__ */ new WeakMap();
|
|
345
|
+
function labelIndexOf(scene) {
|
|
346
|
+
let index = INDEXES.get(scene);
|
|
347
|
+
if (index === void 0) {
|
|
348
|
+
index = keyedIndex(
|
|
349
|
+
() => typeof scene.getVersion === "function" ? [scene.getVersion()] : void 0,
|
|
350
|
+
() => {
|
|
351
|
+
const labels = [...draggableLabels(scene)];
|
|
352
|
+
return {
|
|
353
|
+
labels,
|
|
354
|
+
boxes: boxIndex(labels.map(({ box: b }) => [
|
|
355
|
+
Math.min(b.x, b.x + b.width),
|
|
356
|
+
Math.min(b.y, b.y + b.height),
|
|
357
|
+
Math.max(b.x, b.x + b.width),
|
|
358
|
+
Math.max(b.y, b.y + b.height)
|
|
359
|
+
]))
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
);
|
|
363
|
+
INDEXES.set(scene, index);
|
|
364
|
+
}
|
|
365
|
+
return index;
|
|
366
|
+
}
|
|
367
|
+
function labelsAt(scene, at) {
|
|
368
|
+
const built = labelIndexOf(scene)();
|
|
369
|
+
const near = built && boxesMeeting(built.boxes, at.x, at.y, at.x, at.y);
|
|
370
|
+
if (!built || !near) return draggableLabels(scene);
|
|
371
|
+
return near.map((i) => built.labels[i]);
|
|
372
|
+
}
|
|
312
373
|
function labelUnder(scene, at) {
|
|
313
374
|
let found = null;
|
|
314
|
-
for (const { labelId, edgeId, box } of
|
|
375
|
+
for (const { labelId, edgeId, box } of labelsAt(scene, at)) {
|
|
315
376
|
if (holds(box, at)) found = { targetId: labelId, labelId, edgeId };
|
|
316
377
|
}
|
|
317
378
|
return found;
|
|
318
379
|
}
|
|
319
380
|
function createLabelDragAffordance(scene, cursor) {
|
|
381
|
+
const regionsOf = (labels) => {
|
|
382
|
+
const out = [];
|
|
383
|
+
for (const { labelId, edgeId, box } of labels) {
|
|
384
|
+
out.push({
|
|
385
|
+
id: labelId,
|
|
386
|
+
targetId: null,
|
|
387
|
+
shape: { kind: "rect", x: box.x, y: box.y, width: box.width, height: box.height },
|
|
388
|
+
cursor,
|
|
389
|
+
strength: "exclusive",
|
|
390
|
+
claimedKinds: ["pointer"],
|
|
391
|
+
bind: () => ({ initialScratch: { targetId: labelId, labelId, edgeId } })
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
return out;
|
|
395
|
+
};
|
|
320
396
|
return {
|
|
321
397
|
id: LABEL_DRAG_LAYER_ID,
|
|
322
|
-
regions()
|
|
323
|
-
|
|
324
|
-
for (const { labelId, edgeId, box } of draggableLabels(scene)) {
|
|
325
|
-
out.push({
|
|
326
|
-
id: labelId,
|
|
327
|
-
targetId: null,
|
|
328
|
-
shape: { kind: "rect", x: box.x, y: box.y, width: box.width, height: box.height },
|
|
329
|
-
cursor,
|
|
330
|
-
strength: "exclusive",
|
|
331
|
-
claimedKinds: ["pointer"],
|
|
332
|
-
bind: () => ({ initialScratch: { targetId: labelId, labelId, edgeId } })
|
|
333
|
-
});
|
|
334
|
-
}
|
|
335
|
-
return out;
|
|
336
|
-
}
|
|
398
|
+
regions: () => regionsOf(draggableLabels(scene)),
|
|
399
|
+
regionsAt: (_state, wx, wy) => regionsOf(labelsAt(scene, { x: wx, y: wy }))
|
|
337
400
|
};
|
|
338
401
|
}
|
|
339
402
|
function labelDragLayer(scene, opts = {}) {
|
|
@@ -413,8 +476,10 @@ function editEdgeLabelAction(opts = {}) {
|
|
|
413
476
|
invoker: {
|
|
414
477
|
timing: "immediate",
|
|
415
478
|
run(deps, params) {
|
|
416
|
-
const
|
|
417
|
-
const
|
|
479
|
+
const p = params;
|
|
480
|
+
const world = p?.world;
|
|
481
|
+
if (!world) return;
|
|
482
|
+
const pressed = labelScratchOf(p.affordance);
|
|
418
483
|
const edgeId = pressed?.edgeId ?? edgeUnder(deps, world);
|
|
419
484
|
if (edgeId === null) return;
|
|
420
485
|
const ctx = { world, modifiers: { alt: false, shift: false, meta: false, ctrl: false }, deps };
|
|
@@ -665,7 +730,7 @@ function offPageTagSpecs(edgeId, split, pages, look) {
|
|
|
665
730
|
function stubTip(path, end) {
|
|
666
731
|
const stub = subpathOf(path, end === "from" ? 0 : 1);
|
|
667
732
|
if (stub === null || stub.kind !== "polygon" || stub.coords.length < 4) return null;
|
|
668
|
-
const c = stub
|
|
733
|
+
const c = worldCoords(stub);
|
|
669
734
|
const n = c.length;
|
|
670
735
|
const [tip, base] = end === "from" ? [{ x: c[n - 2], y: c[n - 1] }, { x: c[0], y: c[1] }] : [{ x: c[0], y: c[1] }, { x: c[n - 2], y: c[n - 1] }];
|
|
671
736
|
const len = Math.hypot(tip.x - base.x, tip.y - base.y);
|
|
@@ -944,16 +1009,37 @@ function withDiagramRegistry(registry = {}) {
|
|
|
944
1009
|
}
|
|
945
1010
|
|
|
946
1011
|
// src/bodyRelayout.ts
|
|
947
|
-
function bodyLayoutOf(spec, trait) {
|
|
948
|
-
if (trait.margin !== void 0 || !spec.rows.every((r) => r.kind === "label" || r.kind === "field")) return {};
|
|
1012
|
+
function bodyLayoutOf(spec, trait, measure) {
|
|
1013
|
+
if (trait.margin !== void 0 || !spec.rows.every((r) => r.kind === "label" || r.kind === "field" || r.kind === "divider")) return {};
|
|
1014
|
+
const dividers = dividersOf(spec.rows);
|
|
949
1015
|
return {
|
|
950
|
-
body: {
|
|
1016
|
+
body: {
|
|
1017
|
+
padding: spec.padding ?? 8,
|
|
1018
|
+
gap: spec.gap ?? 4,
|
|
1019
|
+
verticalAlign: spec.verticalAlign ?? "center",
|
|
1020
|
+
rows: spec.rows.length,
|
|
1021
|
+
heights: rowHeights(spec, measure),
|
|
1022
|
+
...dividers.length > 0 ? { dividers } : {}
|
|
1023
|
+
}
|
|
951
1024
|
};
|
|
952
1025
|
}
|
|
1026
|
+
var dividerRow = (d) => d.inset === void 0 ? { kind: "divider" } : { kind: "divider", inset: d.inset };
|
|
1027
|
+
function dividersOf(rows) {
|
|
1028
|
+
return rows.flatMap((r, index) => r.kind !== "divider" ? [] : [r.inset === void 0 ? { index } : { index, inset: r.inset }]);
|
|
1029
|
+
}
|
|
1030
|
+
function recordedRows(layout) {
|
|
1031
|
+
if (layout.heights === void 0) return null;
|
|
1032
|
+
const dividers = new Map((layout.dividers ?? []).map((d) => [d.index, d]));
|
|
1033
|
+
return layout.heights.map((height, i) => {
|
|
1034
|
+
const d = dividers.get(i);
|
|
1035
|
+
return d === void 0 ? { kind: "slot", height } : dividerRow(d);
|
|
1036
|
+
});
|
|
1037
|
+
}
|
|
953
1038
|
var rowStyle = (s) => ({
|
|
954
1039
|
...s?.fontSize !== void 0 ? { fontSize: s.fontSize } : {},
|
|
955
1040
|
...s?.fontFamily !== void 0 ? { fontFamily: s.fontFamily } : {},
|
|
956
|
-
...(s?.fontWeight ?? 400) >= 700 ? { bold: true } : {}
|
|
1041
|
+
...(s?.fontWeight ?? 400) >= 700 ? { bold: true } : {},
|
|
1042
|
+
...s?.fontStyle === "italic" ? { italic: true } : {}
|
|
957
1043
|
});
|
|
958
1044
|
var same = (a, b) => a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
|
|
959
1045
|
function relayoutBodies(scene, ids, measure) {
|
|
@@ -967,15 +1053,23 @@ function relayoutBodies(scene, ids, measure) {
|
|
|
967
1053
|
const index = scene.get(child)?.data?.bodyRow;
|
|
968
1054
|
if (typeof index === "number") rowNodes.set(index, child);
|
|
969
1055
|
}
|
|
1056
|
+
const dividers = new Map((layout.dividers ?? []).map((d) => [d.index, d]));
|
|
970
1057
|
const rows = Array.from({ length: layout.rows }, (_, i) => {
|
|
1058
|
+
const divider = dividers.get(i);
|
|
1059
|
+
if (divider !== void 0) return dividerRow(divider);
|
|
971
1060
|
const data = scene.get(rowNodes.get(i))?.data;
|
|
972
1061
|
return { kind: "label", text: typeof data?.text === "string" ? data.text : "", style: rowStyle(data?.style) };
|
|
973
1062
|
});
|
|
974
1063
|
const spec = { outline: trait.outline, rows, padding: layout.padding, gap: layout.gap, verticalAlign: layout.verticalAlign };
|
|
1064
|
+
const heights = rowHeights(spec, measure);
|
|
1065
|
+
if (layout.heights === void 0 || heights.some((h, i) => h !== layout.heights[i])) {
|
|
1066
|
+
const data = node.data;
|
|
1067
|
+
scene.update(id, { data: { ...data, diagram: { ...trait, body: { ...layout, heights } } } });
|
|
1068
|
+
}
|
|
975
1069
|
const pose = node.pose;
|
|
976
1070
|
const grown = sizeToBody(pose, measureBody(spec, measure));
|
|
977
1071
|
if (grown !== pose) scene.setPose(id, grown);
|
|
978
|
-
for (const box of layoutBody(spec, grown, measure)) {
|
|
1072
|
+
for (const box of layoutBody(spec, { x: 0, y: 0, width: grown.width, height: grown.height }, measure)) {
|
|
979
1073
|
const child = rowNodes.get(box.index);
|
|
980
1074
|
const at = child === void 0 ? void 0 : scene.get(child)?.pose;
|
|
981
1075
|
if (at === void 0) continue;
|
|
@@ -995,8 +1089,13 @@ var EDGE_STROKE_WIDTH = 1.5;
|
|
|
995
1089
|
|
|
996
1090
|
// src/containers/regionSpecs.ts
|
|
997
1091
|
var NEW_POOL_LANES = 2;
|
|
998
|
-
function regionData(role, axis, style, fitted) {
|
|
999
|
-
const container = {
|
|
1092
|
+
function regionData(role, axis, style, fitted, reorder) {
|
|
1093
|
+
const container = {
|
|
1094
|
+
role,
|
|
1095
|
+
header: containerShape(role, axis).header,
|
|
1096
|
+
...fitted ? { fitted: true } : {},
|
|
1097
|
+
...reorder !== void 0 ? { reorder } : {}
|
|
1098
|
+
};
|
|
1000
1099
|
return {
|
|
1001
1100
|
diagram: { outline: "rect", container },
|
|
1002
1101
|
...role === "lane" ? {} : { fill: { paint: { color: style.fill } } },
|
|
@@ -1018,7 +1117,7 @@ function regionSpecs(role, axis, pose, title, opts) {
|
|
|
1018
1117
|
layer: opts.layer,
|
|
1019
1118
|
pose,
|
|
1020
1119
|
parent: opts.parent ?? null,
|
|
1021
|
-
data: regionData(role, axis, style, opts.fitted === true),
|
|
1120
|
+
data: regionData(role, axis, style, opts.fitted === true, opts.reorder),
|
|
1022
1121
|
layout: CONTAINER_LAYOUTS[layout]
|
|
1023
1122
|
};
|
|
1024
1123
|
if (title === null) return [region];
|
|
@@ -1321,7 +1420,8 @@ function push(index, key, edge) {
|
|
|
1321
1420
|
var textFace = (s, font) => ({
|
|
1322
1421
|
fontFamily: s?.fontFamily ?? font.fontFamily,
|
|
1323
1422
|
fontSize: s?.fontSize ?? font.fontSize,
|
|
1324
|
-
...s?.bold === true ? { fontWeight: 700 } : {}
|
|
1423
|
+
...s?.bold === true ? { fontWeight: 700 } : {},
|
|
1424
|
+
...s?.italic === true ? { fontStyle: "italic" } : {}
|
|
1325
1425
|
});
|
|
1326
1426
|
function rowTextStyle(row, font) {
|
|
1327
1427
|
const face = textFace(row?.kind === "label" || row?.kind === "field" ? row.style : void 0, font);
|
|
@@ -1453,7 +1553,8 @@ function resolveContainers(containers, ids, nodeIds) {
|
|
|
1453
1553
|
...c.label !== void 0 ? { label: c.label } : {},
|
|
1454
1554
|
...c.style !== void 0 ? { style: c.style } : {},
|
|
1455
1555
|
...c.colors !== void 0 ? { colors: c.colors } : {},
|
|
1456
|
-
...c.box !== void 0 ? { box: { ...c.box } } : {}
|
|
1556
|
+
...c.box !== void 0 ? { box: { ...c.box } } : {},
|
|
1557
|
+
...c.role === "container" && c.reorder !== void 0 ? { reorder: c.reorder } : {}
|
|
1457
1558
|
});
|
|
1458
1559
|
if (c.role !== "pool") continue;
|
|
1459
1560
|
(c.lanes ?? []).forEach((l, index) => {
|
|
@@ -1646,7 +1747,8 @@ function containerSpecs({ regions }, boxes, theme, fontFamily) {
|
|
|
1646
1747
|
parent: r.parent ?? null,
|
|
1647
1748
|
style: dataRegionStyle(r, theme, r.index),
|
|
1648
1749
|
fitted: r.fitted,
|
|
1649
|
-
fontFamily
|
|
1750
|
+
fontFamily,
|
|
1751
|
+
...r.reorder !== void 0 ? { reorder: r.reorder } : {}
|
|
1650
1752
|
});
|
|
1651
1753
|
const marks = { ...r.pinned ? { pinned: true } : {}, ...ownNodeStyle(r.colors) };
|
|
1652
1754
|
if (Object.keys(marks).length === 0) return specs;
|
|
@@ -1891,7 +1993,7 @@ function nodeSpecs(n, body, box, look) {
|
|
|
1891
1993
|
body: (trait) => ({
|
|
1892
1994
|
diagram: {
|
|
1893
1995
|
...trait,
|
|
1894
|
-
...bodyLayoutOf(body, trait),
|
|
1996
|
+
...bodyLayoutOf(body, trait, look.measure),
|
|
1895
1997
|
...n.pinned === true ? { pinned: true } : {},
|
|
1896
1998
|
...n.style !== void 0 ? { style: n.style } : {},
|
|
1897
1999
|
...ownNodeStyle(n.colors)
|
|
@@ -1905,8 +2007,8 @@ function nodeSpecs(n, body, box, look) {
|
|
|
1905
2007
|
return built.specs.map((s, k) => ({ ...s, ...s.id !== void 0 ? {} : { id: `${n.id}/${k}` } }));
|
|
1906
2008
|
}
|
|
1907
2009
|
function diagramScene(data, opts = {}) {
|
|
1908
|
-
const { layer, ...rest } = opts;
|
|
1909
|
-
const specs = mainSpecs(data, rest);
|
|
2010
|
+
const { layer, composition = RIGID_POSE_COMPOSITION, ...rest } = opts;
|
|
2011
|
+
const specs = localizeWorldPoses(mainSpecs(data, rest), composition);
|
|
1910
2012
|
return layer === void 0 ? specs : specs.map((s) => ({ ...s, layer }));
|
|
1911
2013
|
}
|
|
1912
2014
|
function mainSpecs(data, opts) {
|
|
@@ -2050,6 +2152,6 @@ function layOut(seeds, edges, groups, boxes, opts, room) {
|
|
|
2050
2152
|
return { placed, plan: layout?.plan === void 0 ? null : plan, remapped };
|
|
2051
2153
|
}
|
|
2052
2154
|
|
|
2053
|
-
export { ANCHOR_DERIVE_POSE, CONTAINER_HEADER, CONTAINER_LAYOUTS, DEFAULT_EDGE_STYLE, DEFAULT_FONT, DEFAULT_GROUP_STYLE, DEFAULT_LANE_SIZE, DEFAULT_NODE_STYLE, DEFAULT_POOL_ACROSS, DIAGRAM_ANCHOR, DIAGRAM_CONTAINER_LAYOUT, DIAGRAM_EDGE, DIAGRAM_GROUP, DIAGRAM_LABEL, DIAGRAM_LANE_COLUMNS_LAYOUT, DIAGRAM_LANE_ROWS_LAYOUT, DIAGRAM_OFF_PAGE_TAG, DIAGRAM_POOL_COLUMNS_LAYOUT, DIAGRAM_POOL_ROWS_LAYOUT, DIAGRAM_ROLES, DIAGRAM_THEMES, DIAGRAM_THEME_KEY, EDGE_DERIVE_PATH, EDGE_STROKE_WIDTH, EDIT_EDGE_LABEL_ACTION_ID, GROUP_DERIVE_POSE, LABEL_DERIVE_POSE, LABEL_DRAG_AFFORDANCE_KIND, LABEL_DRAG_LAYER_ID, LABEL_PLACEMENT, LANE_HEADER_SIZE, LANE_STROKE_WIDTH, MIN_LANE_SIZE, NODE_STROKE_WIDTH, OFF_PAGE_STUB, OFF_PAGE_TAG_DERIVE_POSE, OFF_PAGE_TAG_PADDING, POOL_HEADER_SIZE, ROUTERS, anchorDerivePose, avoid, bezier, bodyBox, bodyLayoutOf, boxAround, boxCenter, buildGraph, containerShape, dataEdgeStyle, dataNodeStyle, dataOffPage, dataRegionStyle, diagramAnchorOf, diagramContainerLayout, diagramContainerOf, diagramGroupOf, diagramLabelOf, diagramMarkOf, diagramPages, diagramScene, diagramThemeFrom, diagramThemeOf, draggableLabels, dropEmptyEdgeLabel, edgeDerivePath, edgeIdOf, edgeLabelSpec, edgeRouter, editEdgeLabelAction, editEdgeLabelBinding, editableLabels, endAims, firstLanes, groupDerivePose, groupLabelIdOf, groupMinWidth, headerBox, labelDerivePose, labelDragLayer, labelFollowsLayout, labelScratchOf, labelSize, labelStyleOf, labelUnder, laneHeader, laneOutlineOf, laneStackLayout, markShape, nestGroups, nextOffPageRef, offPageFarText, offPageSplits, offPageTagData, offPageTagDerivePose, offPageTagId, offPageTagLook, offPageTagOf, offPageTagSize, offPageTagSpec, offPageTagSpecs, offPageTagText, orthogonal, poolHeader, regionSpecs, registerMarkShape, relayoutBodies, resolveEnd, roleEdgeStyle, roleStyle, routerOf, rowTextStyle, selfLoop, stackedLanes, straight, themeDocValue, themeEdgeStroke, themeFont, themeLabelFamily, themeLabelFont, themeLabelStyle, titleIdOf, titlePose, withDiagramRegistry, withHops };
|
|
2054
|
-
//# sourceMappingURL=chunk-
|
|
2055
|
-
//# sourceMappingURL=chunk-
|
|
2155
|
+
export { ANCHOR_DERIVE_POSE, CONTAINER_HEADER, CONTAINER_LAYOUTS, DEFAULT_EDGE_STYLE, DEFAULT_FONT, DEFAULT_GROUP_STYLE, DEFAULT_LANE_SIZE, DEFAULT_NODE_STYLE, DEFAULT_POOL_ACROSS, DIAGRAM_ANCHOR, DIAGRAM_CONTAINER_LAYOUT, DIAGRAM_EDGE, DIAGRAM_GROUP, DIAGRAM_LABEL, DIAGRAM_LANE_COLUMNS_LAYOUT, DIAGRAM_LANE_ROWS_LAYOUT, DIAGRAM_OFF_PAGE_TAG, DIAGRAM_POOL_COLUMNS_LAYOUT, DIAGRAM_POOL_ROWS_LAYOUT, DIAGRAM_ROLES, DIAGRAM_THEMES, DIAGRAM_THEME_KEY, EDGE_DERIVE_PATH, EDGE_STROKE_WIDTH, EDIT_EDGE_LABEL_ACTION_ID, GROUP_DERIVE_POSE, LABEL_DERIVE_POSE, LABEL_DRAG_AFFORDANCE_KIND, LABEL_DRAG_LAYER_ID, LABEL_PLACEMENT, LANE_HEADER_SIZE, LANE_STROKE_WIDTH, MIN_LANE_SIZE, NODE_STROKE_WIDTH, OFF_PAGE_STUB, OFF_PAGE_TAG_DERIVE_POSE, OFF_PAGE_TAG_PADDING, POOL_HEADER_SIZE, ROUTERS, anchorDerivePose, avoid, bezier, bodyBox, bodyLayoutOf, boxAround, boxCenter, boxIndex, boxesMeeting, buildGraph, containerShape, dataEdgeStyle, dataNodeStyle, dataOffPage, dataRegionStyle, diagramAnchorOf, diagramContainerLayout, diagramContainerOf, diagramGroupOf, diagramLabelOf, diagramMarkOf, diagramPages, diagramScene, diagramThemeFrom, diagramThemeOf, draggableLabels, dropEmptyEdgeLabel, edgeDerivePath, edgeIdOf, edgeLabelSpec, edgeRouter, editEdgeLabelAction, editEdgeLabelBinding, editableLabels, endAims, firstLanes, groupDerivePose, groupLabelIdOf, groupMinWidth, headerBox, keyedIndex, labelDerivePose, labelDragLayer, labelFollowsLayout, labelScratchOf, labelSize, labelStyleOf, labelUnder, laneHeader, laneOutlineOf, laneStackLayout, markShape, nestGroups, nextOffPageRef, offPageFarText, offPageSplits, offPageTagData, offPageTagDerivePose, offPageTagId, offPageTagLook, offPageTagOf, offPageTagSize, offPageTagSpec, offPageTagSpecs, offPageTagText, orthogonal, poolHeader, recordedRows, regionSpecs, registerMarkShape, relayoutBodies, resolveEnd, roleEdgeStyle, roleStyle, routerOf, rowTextStyle, selfLoop, stackedLanes, straight, themeDocValue, themeEdgeStroke, themeFont, themeLabelFamily, themeLabelFont, themeLabelStyle, titleIdOf, titleInFrame, titlePose, withDiagramRegistry, withHops };
|
|
2156
|
+
//# sourceMappingURL=chunk-ZWXM5F4I.js.map
|
|
2157
|
+
//# sourceMappingURL=chunk-ZWXM5F4I.js.map
|