schematex 0.6.8 → 0.6.9
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 +0 -17
- package/dist/ai/ai-sdk.cjs +7 -7
- package/dist/ai/ai-sdk.js +2 -2
- package/dist/ai/index.cjs +13 -13
- package/dist/ai/index.js +2 -2
- package/dist/browser.cjs +8 -8
- package/dist/browser.js +2 -2
- package/dist/{chunk-EDXDFKYO.cjs → chunk-25TO5A4F.cjs} +7 -7
- package/dist/{chunk-EDXDFKYO.cjs.map → chunk-25TO5A4F.cjs.map} +1 -1
- package/dist/{chunk-J2TT7PGI.js → chunk-3DPWFWQU.js} +5 -33
- package/dist/chunk-3DPWFWQU.js.map +1 -0
- package/dist/{chunk-AGBY7KLL.cjs → chunk-5IZL57YJ.cjs} +5 -33
- package/dist/chunk-5IZL57YJ.cjs.map +1 -0
- package/dist/{chunk-QZ2OBNAS.js → chunk-Q5V4LUQR.js} +5 -5
- package/dist/{chunk-QZ2OBNAS.js.map → chunk-Q5V4LUQR.js.map} +1 -1
- package/dist/index.cjs +23 -23
- package/dist/index.js +2 -2
- package/dist/react.cjs +2 -2
- package/dist/react.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-AGBY7KLL.cjs.map +0 -1
- package/dist/chunk-J2TT7PGI.js.map +0 -1
|
@@ -14907,7 +14907,6 @@ function layoutUmlClass(ast) {
|
|
|
14907
14907
|
n.box.layer = n.rank;
|
|
14908
14908
|
}
|
|
14909
14909
|
}
|
|
14910
|
-
applyDirectionTransform(direction, nodes, boxes);
|
|
14911
14910
|
normaliseCoords(nodes, boxes);
|
|
14912
14911
|
const packages = layoutPackages(ast, boxByID);
|
|
14913
14912
|
shiftForPackages(nodes, boxes, packages);
|
|
@@ -14915,29 +14914,6 @@ function layoutUmlClass(ast) {
|
|
|
14915
14914
|
const { edges, trees } = routeEdges(chains, nodes, boxByID, vertical);
|
|
14916
14915
|
return { ast, boxes, packages, edges, trees, width, height };
|
|
14917
14916
|
}
|
|
14918
|
-
function applyDirectionTransform(direction, nodes, boxes) {
|
|
14919
|
-
if (direction === "tb") return;
|
|
14920
|
-
const transform = (p) => {
|
|
14921
|
-
switch (direction) {
|
|
14922
|
-
case "bt":
|
|
14923
|
-
return { x: p.x, y: -p.y };
|
|
14924
|
-
case "lr":
|
|
14925
|
-
return { x: p.y, y: p.x };
|
|
14926
|
-
case "rl":
|
|
14927
|
-
return { x: -p.y, y: p.x };
|
|
14928
|
-
}
|
|
14929
|
-
};
|
|
14930
|
-
for (const n of nodes) {
|
|
14931
|
-
const p = transform({ x: n.cx, y: n.cy });
|
|
14932
|
-
n.cx = p.x;
|
|
14933
|
-
n.cy = p.y;
|
|
14934
|
-
}
|
|
14935
|
-
for (const b of boxes) {
|
|
14936
|
-
const c = transform({ x: b.x + b.width / 2, y: b.y + b.height / 2 });
|
|
14937
|
-
b.x = c.x - b.width / 2;
|
|
14938
|
-
b.y = c.y - b.height / 2;
|
|
14939
|
-
}
|
|
14940
|
-
}
|
|
14941
14917
|
function topLevelPackageMap(ast) {
|
|
14942
14918
|
const parentOf = /* @__PURE__ */ new Map();
|
|
14943
14919
|
for (const p of ast.packages) parentOf.set(p.id, p.parentId);
|
|
@@ -16213,14 +16189,12 @@ function parseFaultTree(text2) {
|
|
|
16213
16189
|
}
|
|
16214
16190
|
if (/^layout\s*:/i.test(t)) {
|
|
16215
16191
|
const v = afterColon2(t).toLowerCase();
|
|
16216
|
-
if (v === "tb") ast.direction = v;
|
|
16217
|
-
else if (v === "bt") ast.warnings.push(`Line ${lineNo}: layout: bt is reserved but not implemented yet; using layout: tb.`);
|
|
16192
|
+
if (v === "tb" || v === "bt") ast.direction = v;
|
|
16218
16193
|
continue;
|
|
16219
16194
|
}
|
|
16220
16195
|
if (/^style\s*:/i.test(t)) {
|
|
16221
16196
|
const v = afterColon2(t).toLowerCase();
|
|
16222
|
-
if (v === "ansi") ast.gateStyle = v;
|
|
16223
|
-
else if (v === "iec") ast.warnings.push(`Line ${lineNo}: style: iec is reserved but not implemented yet; using style: ansi.`);
|
|
16197
|
+
if (v === "ansi" || v === "iec") ast.gateStyle = v;
|
|
16224
16198
|
continue;
|
|
16225
16199
|
}
|
|
16226
16200
|
if (/^transfer\b/i.test(t)) {
|
|
@@ -17254,7 +17228,6 @@ function summarise(layout) {
|
|
|
17254
17228
|
if (analysis.topProb !== void 0) parts.push(`P(top) = ${fmtProb(analysis.topProb)} (${analysis.method}).`);
|
|
17255
17229
|
else if (analysis.missingProb.length > 0) parts.push(`P(top) = n/a \u2014 missing p on ${analysis.missingProb.join(", ")}.`);
|
|
17256
17230
|
}
|
|
17257
|
-
for (const w of ast.warnings) parts.push(w);
|
|
17258
17231
|
for (const n of analysis.notes) parts.push(n);
|
|
17259
17232
|
for (const w of analysis.warnings) parts.push(w);
|
|
17260
17233
|
return parts.join(" ");
|
|
@@ -17351,8 +17324,7 @@ function parseBowtie(text2) {
|
|
|
17351
17324
|
const lineNo = i + 1;
|
|
17352
17325
|
if (/^layout\s*:/i.test(t)) {
|
|
17353
17326
|
const v = afterColon3(t).toLowerCase();
|
|
17354
|
-
if (v === "symmetric") ast.layout = v;
|
|
17355
|
-
else if (v === "compact") ast.warnings.push(`Line ${lineNo}: layout: compact is reserved but not implemented yet; using layout: symmetric.`);
|
|
17327
|
+
if (v === "symmetric" || v === "compact") ast.layout = v;
|
|
17356
17328
|
continue;
|
|
17357
17329
|
}
|
|
17358
17330
|
if (/^legend\s*:/i.test(t)) {
|
|
@@ -26763,5 +26735,5 @@ exports.state = state;
|
|
|
26763
26735
|
exports.timeline = timeline;
|
|
26764
26736
|
exports.umlclass = umlclass;
|
|
26765
26737
|
exports.usecase = usecase;
|
|
26766
|
-
//# sourceMappingURL=chunk-
|
|
26767
|
-
//# sourceMappingURL=chunk-
|
|
26738
|
+
//# sourceMappingURL=chunk-5IZL57YJ.cjs.map
|
|
26739
|
+
//# sourceMappingURL=chunk-5IZL57YJ.cjs.map
|