schematex 0.9.4 → 0.9.6
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 +45 -0
- package/dist/ai/ai-sdk.cjs +8 -8
- package/dist/ai/ai-sdk.d.cts +3 -3
- package/dist/ai/ai-sdk.d.ts +3 -3
- package/dist/ai/ai-sdk.js +3 -3
- package/dist/ai/index.cjs +17 -17
- package/dist/ai/index.d.cts +4 -4
- package/dist/ai/index.d.ts +4 -4
- package/dist/ai/index.js +4 -4
- package/dist/{api-1xoGiseb.d.cts → api-BOJJlNb1.d.ts} +2 -2
- package/dist/{api-CgXRSnCn.d.ts → api-v9t1T1v6.d.cts} +2 -2
- package/dist/browser.cjs +9 -9
- package/dist/browser.d.cts +3 -3
- package/dist/browser.d.ts +3 -3
- package/dist/browser.js +3 -3
- package/dist/{chunk-UFXDAIDD.js → chunk-4W75FGWO.js} +1714 -658
- package/dist/chunk-4W75FGWO.js.map +1 -0
- package/dist/{chunk-NIYB6CHH.js → chunk-CVTHUOAM.js} +265 -15
- package/dist/chunk-CVTHUOAM.js.map +1 -0
- package/dist/{chunk-TX3YWZZX.cjs → chunk-HX64QWB6.cjs} +267 -17
- package/dist/chunk-HX64QWB6.cjs.map +1 -0
- package/dist/{chunk-PFZKW3HE.js → chunk-II4GLKGF.js} +2 -2
- package/dist/chunk-II4GLKGF.js.map +1 -0
- package/dist/{chunk-GTCAJPQR.cjs → chunk-KH5GRKUM.cjs} +1715 -658
- package/dist/chunk-KH5GRKUM.cjs.map +1 -0
- package/dist/{chunk-WJXLF42K.cjs → chunk-N3HU635X.cjs} +2 -2
- package/dist/chunk-N3HU635X.cjs.map +1 -0
- package/dist/{diagnostics-CDwnQ65n.d.cts → diagnostics-5bVLlGNj.d.cts} +1 -1
- package/dist/{diagnostics-CDwnQ65n.d.ts → diagnostics-5bVLlGNj.d.ts} +1 -1
- package/dist/diagrams/blockdiagram/index.d.cts +1 -1
- package/dist/diagrams/blockdiagram/index.d.ts +1 -1
- package/dist/diagrams/circuit/index.d.cts +1 -1
- package/dist/diagrams/circuit/index.d.ts +1 -1
- package/dist/diagrams/ecomap/index.d.cts +1 -1
- package/dist/diagrams/ecomap/index.d.ts +1 -1
- package/dist/diagrams/entity/index.d.cts +1 -1
- package/dist/diagrams/entity/index.d.ts +1 -1
- package/dist/diagrams/fishbone/index.d.cts +1 -1
- package/dist/diagrams/fishbone/index.d.ts +1 -1
- package/dist/diagrams/flowchart/index.d.cts +2 -2
- package/dist/diagrams/flowchart/index.d.ts +2 -2
- package/dist/diagrams/genogram/index.d.cts +1 -1
- package/dist/diagrams/genogram/index.d.ts +1 -1
- package/dist/diagrams/ladder/index.d.cts +1 -1
- package/dist/diagrams/ladder/index.d.ts +1 -1
- package/dist/diagrams/logic/index.d.cts +1 -1
- package/dist/diagrams/logic/index.d.ts +1 -1
- package/dist/diagrams/orgchart/index.d.cts +1 -1
- package/dist/diagrams/orgchart/index.d.ts +1 -1
- package/dist/diagrams/pedigree/index.d.cts +1 -1
- package/dist/diagrams/pedigree/index.d.ts +1 -1
- package/dist/diagrams/phylo/index.d.cts +1 -1
- package/dist/diagrams/phylo/index.d.ts +1 -1
- package/dist/diagrams/sld/index.cjs +7 -7
- package/dist/diagrams/sld/index.d.cts +1 -1
- package/dist/diagrams/sld/index.d.ts +1 -1
- package/dist/diagrams/sld/index.js +1 -1
- package/dist/diagrams/sociogram/index.d.cts +1 -1
- package/dist/diagrams/sociogram/index.d.ts +1 -1
- package/dist/diagrams/timing/index.d.cts +1 -1
- package/dist/diagrams/timing/index.d.ts +1 -1
- package/dist/diagrams/venn/index.d.cts +1 -1
- package/dist/diagrams/venn/index.d.ts +1 -1
- package/dist/{index-DNOoLmYX.d.cts → index-Cmf4Rcve.d.cts} +1 -1
- package/dist/{index-CYSH3_ca.d.ts → index-syc0E5Ss.d.ts} +1 -1
- package/dist/index.cjs +41 -37
- package/dist/index.d.cts +7 -5
- package/dist/index.d.ts +7 -5
- package/dist/index.js +4 -4
- package/dist/react.cjs +3 -3
- package/dist/react.d.cts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +2 -2
- package/dist/{tools-CbYmQ3hH.d.cts → tools-B98iarLm.d.cts} +2 -2
- package/dist/{tools-BhTti-oG.d.ts → tools-CCZ1IcIN.d.ts} +2 -2
- package/package.json +1 -1
- package/dist/chunk-GTCAJPQR.cjs.map +0 -1
- package/dist/chunk-NIYB6CHH.js.map +0 -1
- package/dist/chunk-PFZKW3HE.js.map +0 -1
- package/dist/chunk-TX3YWZZX.cjs.map +0 -1
- package/dist/chunk-UFXDAIDD.js.map +0 -1
- package/dist/chunk-WJXLF42K.cjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CircuitAST, S as SchematexDiagnostic, R as RenderConfig, j as CircuitComponent, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { C as CircuitAST, S as SchematexDiagnostic, R as RenderConfig, j as CircuitComponent, D as DiagramPlugin } from '../../diagnostics-5bVLlGNj.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Top-level circuit parser. Detects two DSL modes:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-5bVLlGNj.cjs';
|
|
2
2
|
|
|
3
3
|
declare class EcomapParseError extends Error {
|
|
4
4
|
line: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-5bVLlGNj.js';
|
|
2
2
|
|
|
3
3
|
declare class EcomapParseError extends Error {
|
|
4
4
|
line: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as EntityAST, R as RenderConfig, q as EntityNode, r as EntityEdge, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { E as EntityAST, R as RenderConfig, q as EntityNode, r as EntityEdge, D as DiagramPlugin } from '../../diagnostics-5bVLlGNj.cjs';
|
|
2
2
|
|
|
3
3
|
declare function parseEntityDSL(text: string): EntityAST;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as EntityAST, R as RenderConfig, q as EntityNode, r as EntityEdge, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { E as EntityAST, R as RenderConfig, q as EntityNode, r as EntityEdge, D as DiagramPlugin } from '../../diagnostics-5bVLlGNj.js';
|
|
2
2
|
|
|
3
3
|
declare function parseEntityDSL(text: string): EntityAST;
|
|
4
4
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import '../../diagnostics-
|
|
2
|
-
export { F as FC_CONST, j as flowchart, t as layoutFlowchart, u as parseFlowchart, v as renderFlowchart, w as renderFlowchartAST } from '../../index-
|
|
1
|
+
import '../../diagnostics-5bVLlGNj.cjs';
|
|
2
|
+
export { F as FC_CONST, j as flowchart, t as layoutFlowchart, u as parseFlowchart, v as renderFlowchart, w as renderFlowchartAST } from '../../index-Cmf4Rcve.cjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import '../../diagnostics-
|
|
2
|
-
export { F as FC_CONST, j as flowchart, t as layoutFlowchart, u as parseFlowchart, v as renderFlowchart, w as renderFlowchartAST } from '../../index-
|
|
1
|
+
import '../../diagnostics-5bVLlGNj.js';
|
|
2
|
+
export { F as FC_CONST, j as flowchart, t as layoutFlowchart, u as parseFlowchart, v as renderFlowchart, w as renderFlowchartAST } from '../../index-syc0E5Ss.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, I as Individual, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, I as Individual, D as DiagramPlugin } from '../../diagnostics-5bVLlGNj.cjs';
|
|
2
2
|
|
|
3
3
|
declare class ParseError extends Error {
|
|
4
4
|
line: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, I as Individual, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, I as Individual, D as DiagramPlugin } from '../../diagnostics-5bVLlGNj.js';
|
|
2
2
|
|
|
3
3
|
declare class ParseError extends Error {
|
|
4
4
|
line: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as LadderAST, R as RenderConfig, l as LadderRung, m as LadderElement, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { k as LadderAST, R as RenderConfig, l as LadderRung, m as LadderElement, D as DiagramPlugin } from '../../diagnostics-5bVLlGNj.cjs';
|
|
2
2
|
|
|
3
3
|
declare function parseLadderDSL(text: string): LadderAST;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as LadderAST, R as RenderConfig, l as LadderRung, m as LadderElement, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { k as LadderAST, R as RenderConfig, l as LadderRung, m as LadderElement, D as DiagramPlugin } from '../../diagnostics-5bVLlGNj.js';
|
|
2
2
|
|
|
3
3
|
declare function parseLadderDSL(text: string): LadderAST;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as LogicGateAST, R as RenderConfig, S as SchematexDiagnostic, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { i as LogicGateAST, R as RenderConfig, S as SchematexDiagnostic, D as DiagramPlugin } from '../../diagnostics-5bVLlGNj.cjs';
|
|
2
2
|
|
|
3
3
|
declare function parseLogic(text: string): LogicGateAST;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as LogicGateAST, R as RenderConfig, S as SchematexDiagnostic, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { i as LogicGateAST, R as RenderConfig, S as SchematexDiagnostic, D as DiagramPlugin } from '../../diagnostics-5bVLlGNj.js';
|
|
2
2
|
|
|
3
3
|
declare function parseLogic(text: string): LogicGateAST;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SchematexDiagnostic, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { S as SchematexDiagnostic, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-5bVLlGNj.cjs';
|
|
2
2
|
|
|
3
3
|
type OrgchartDirection = "TD" | "LR";
|
|
4
4
|
type OrgchartLayoutMode = "tree" | "list";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SchematexDiagnostic, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { S as SchematexDiagnostic, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-5bVLlGNj.js';
|
|
2
2
|
|
|
3
3
|
type OrgchartDirection = "TD" | "LR";
|
|
4
4
|
type OrgchartLayoutMode = "tree" | "list";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-5bVLlGNj.cjs';
|
|
2
2
|
|
|
3
3
|
declare class PedigreeParseError extends Error {
|
|
4
4
|
line: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-5bVLlGNj.js';
|
|
2
2
|
|
|
3
3
|
declare class PedigreeParseError extends Error {
|
|
4
4
|
line: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PhyloTreeAST, g as PhyloLayoutNode, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { P as PhyloTreeAST, g as PhyloLayoutNode, D as DiagramPlugin } from '../../diagnostics-5bVLlGNj.cjs';
|
|
2
2
|
|
|
3
3
|
declare class PhyloParseError extends Error {
|
|
4
4
|
constructor(message: string);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PhyloTreeAST, g as PhyloLayoutNode, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { P as PhyloTreeAST, g as PhyloLayoutNode, D as DiagramPlugin } from '../../diagnostics-5bVLlGNj.js';
|
|
2
2
|
|
|
3
3
|
declare class PhyloParseError extends Error {
|
|
4
4
|
constructor(message: string);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkN3HU635X_cjs = require('../../chunk-N3HU635X.cjs');
|
|
4
4
|
require('../../chunk-3KRL2EGN.cjs');
|
|
5
5
|
require('../../chunk-SBB6C4OP.cjs');
|
|
6
6
|
require('../../chunk-ENUM7GMZ.cjs');
|
|
@@ -11,27 +11,27 @@ require('../../chunk-3WNW5Y7P.cjs');
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "layoutSLD", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkN3HU635X_cjs.layoutSLD; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "lintSLD", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkN3HU635X_cjs.lintSLD; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "lintSLDAst", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkN3HU635X_cjs.lintSLDAst; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "parseSLDDSL", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkN3HU635X_cjs.parseSLDDSL; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "renderSLD", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkN3HU635X_cjs.renderSLD; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "sld", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkN3HU635X_cjs.sld; }
|
|
35
35
|
});
|
|
36
36
|
//# sourceMappingURL=index.cjs.map
|
|
37
37
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SchematexDiagnostic, n as SLDAST, R as RenderConfig, o as SLDNode, p as SLDNodeType, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { S as SchematexDiagnostic, n as SLDAST, R as RenderConfig, o as SLDNode, p as SLDNodeType, D as DiagramPlugin } from '../../diagnostics-5bVLlGNj.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* SLD standard-compatibility lint.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SchematexDiagnostic, n as SLDAST, R as RenderConfig, o as SLDNode, p as SLDNodeType, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { S as SchematexDiagnostic, n as SLDAST, R as RenderConfig, o as SLDNode, p as SLDNodeType, D as DiagramPlugin } from '../../diagnostics-5bVLlGNj.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* SLD standard-compatibility lint.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { layoutSLD, lintSLD, lintSLDAst, parseSLDDSL, renderSLD, sld } from '../../chunk-
|
|
1
|
+
export { layoutSLD, lintSLD, lintSLDAst, parseSLDDSL, renderSLD, sld } from '../../chunk-II4GLKGF.js';
|
|
2
2
|
import '../../chunk-2KTQ75LN.js';
|
|
3
3
|
import '../../chunk-PIV2A3HG.js';
|
|
4
4
|
import '../../chunk-4MRVJI7G.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as LegendOverrides, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { h as LegendOverrides, D as DiagramPlugin } from '../../diagnostics-5bVLlGNj.cjs';
|
|
2
2
|
|
|
3
3
|
type SociogramLayout = "circular" | "force-directed" | "concentric";
|
|
4
4
|
type EdgeValence = "positive" | "negative" | "neutral";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as LegendOverrides, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { h as LegendOverrides, D as DiagramPlugin } from '../../diagnostics-5bVLlGNj.js';
|
|
2
2
|
|
|
3
3
|
type SociogramLayout = "circular" | "force-directed" | "concentric";
|
|
4
4
|
type EdgeValence = "positive" | "negative" | "neutral";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as VennAST, s as VennLayoutResult, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { V as VennAST, s as VennLayoutResult, D as DiagramPlugin } from '../../diagnostics-5bVLlGNj.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Venn / Euler DSL parser (hand-written recursive descent).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as VennAST, s as VennLayoutResult, D as DiagramPlugin } from '../../diagnostics-
|
|
1
|
+
import { V as VennAST, s as VennLayoutResult, D as DiagramPlugin } from '../../diagnostics-5bVLlGNj.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Venn / Euler DSL parser (hand-written recursive descent).
|
package/dist/index.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKH5GRKUM_cjs = require('./chunk-KH5GRKUM.cjs');
|
|
4
4
|
var chunk4OC3CTGE_cjs = require('./chunk-4OC3CTGE.cjs');
|
|
5
5
|
var chunk4AC6I7KJ_cjs = require('./chunk-4AC6I7KJ.cjs');
|
|
6
6
|
var chunkC4Y24X3U_cjs = require('./chunk-C4Y24X3U.cjs');
|
|
7
7
|
var chunkINVLJYAE_cjs = require('./chunk-INVLJYAE.cjs');
|
|
8
|
-
var
|
|
8
|
+
var chunkN3HU635X_cjs = require('./chunk-N3HU635X.cjs');
|
|
9
9
|
var chunkGAQ36VFD_cjs = require('./chunk-GAQ36VFD.cjs');
|
|
10
10
|
var chunk627GHE2N_cjs = require('./chunk-627GHE2N.cjs');
|
|
11
11
|
var chunkITI3STJ6_cjs = require('./chunk-ITI3STJ6.cjs');
|
|
@@ -91,11 +91,11 @@ function sldCatalog() {
|
|
|
91
91
|
for (const type of SLD_TYPES) {
|
|
92
92
|
let inner;
|
|
93
93
|
try {
|
|
94
|
-
inner =
|
|
94
|
+
inner = chunkN3HU635X_cjs.renderSymbol(type);
|
|
95
95
|
} catch {
|
|
96
96
|
continue;
|
|
97
97
|
}
|
|
98
|
-
const g =
|
|
98
|
+
const g = chunkN3HU635X_cjs.geometryFor(type);
|
|
99
99
|
const w = Math.max(g.halfWidth, 18) + 12;
|
|
100
100
|
const top = Math.min(g.topY, -22) - 8;
|
|
101
101
|
const bot = Math.max(g.bottomY, 22) + 8;
|
|
@@ -111,10 +111,10 @@ var PID_CSS = ".lt-pid-equip{fill:#ffffff;stroke:#1d1d1d;stroke-width:1.6}.lt-pi
|
|
|
111
111
|
function pidCatalog() {
|
|
112
112
|
const out = [];
|
|
113
113
|
const pad = 12;
|
|
114
|
-
for (const [id, g] of Object.entries(
|
|
114
|
+
for (const [id, g] of Object.entries(chunkKH5GRKUM_cjs.GEOMETRY)) {
|
|
115
115
|
let inner;
|
|
116
116
|
try {
|
|
117
|
-
inner =
|
|
117
|
+
inner = chunkKH5GRKUM_cjs.renderEquip(id, "");
|
|
118
118
|
} catch {
|
|
119
119
|
continue;
|
|
120
120
|
}
|
|
@@ -224,11 +224,11 @@ var NETWORK_KINDS = [
|
|
|
224
224
|
function networkCatalog() {
|
|
225
225
|
const out = [];
|
|
226
226
|
for (const kind of NETWORK_KINDS) {
|
|
227
|
-
const { w, h } =
|
|
227
|
+
const { w, h } = chunkKH5GRKUM_cjs.iconSize(kind);
|
|
228
228
|
const device = { id: kind, kind, label: humanize(kind), groups: [] };
|
|
229
229
|
let inner;
|
|
230
230
|
try {
|
|
231
|
-
inner =
|
|
231
|
+
inner = chunkKH5GRKUM_cjs.drawDeviceIcon(device, { x: 0, y: 0, w, h });
|
|
232
232
|
} catch {
|
|
233
233
|
continue;
|
|
234
234
|
}
|
|
@@ -245,7 +245,7 @@ function floorplanCatalog() {
|
|
|
245
245
|
const scale = 40;
|
|
246
246
|
const px = (m) => Math.round(m * scale * 100) / 100;
|
|
247
247
|
const out = [];
|
|
248
|
-
for (const [id, def] of Object.entries(
|
|
248
|
+
for (const [id, def] of Object.entries(chunkKH5GRKUM_cjs.FLOORPLAN_SYMBOLS)) {
|
|
249
249
|
const [mt, mr, mb, ml] = def.envelope ?? [0, 0, 0, 0];
|
|
250
250
|
const pad = 5;
|
|
251
251
|
const x0 = -px(ml) - pad;
|
|
@@ -312,111 +312,115 @@ function getSymbolCatalog(type) {
|
|
|
312
312
|
|
|
313
313
|
Object.defineProperty(exports, "bowtie", {
|
|
314
314
|
enumerable: true,
|
|
315
|
-
get: function () { return
|
|
315
|
+
get: function () { return chunkKH5GRKUM_cjs.bowtie; }
|
|
316
316
|
});
|
|
317
317
|
Object.defineProperty(exports, "causalloop", {
|
|
318
318
|
enumerable: true,
|
|
319
|
-
get: function () { return
|
|
319
|
+
get: function () { return chunkKH5GRKUM_cjs.causalloop; }
|
|
320
320
|
});
|
|
321
321
|
Object.defineProperty(exports, "decisiontree", {
|
|
322
322
|
enumerable: true,
|
|
323
|
-
get: function () { return
|
|
323
|
+
get: function () { return chunkKH5GRKUM_cjs.decisiontree; }
|
|
324
324
|
});
|
|
325
325
|
Object.defineProperty(exports, "epc", {
|
|
326
326
|
enumerable: true,
|
|
327
|
-
get: function () { return
|
|
327
|
+
get: function () { return chunkKH5GRKUM_cjs.epc; }
|
|
328
328
|
});
|
|
329
329
|
Object.defineProperty(exports, "eventtree", {
|
|
330
330
|
enumerable: true,
|
|
331
|
-
get: function () { return
|
|
331
|
+
get: function () { return chunkKH5GRKUM_cjs.eventtree; }
|
|
332
332
|
});
|
|
333
333
|
Object.defineProperty(exports, "faulttree", {
|
|
334
334
|
enumerable: true,
|
|
335
|
-
get: function () { return
|
|
335
|
+
get: function () { return chunkKH5GRKUM_cjs.faulttree; }
|
|
336
336
|
});
|
|
337
337
|
Object.defineProperty(exports, "fmea", {
|
|
338
338
|
enumerable: true,
|
|
339
|
-
get: function () { return
|
|
339
|
+
get: function () { return chunkKH5GRKUM_cjs.fmea; }
|
|
340
340
|
});
|
|
341
341
|
Object.defineProperty(exports, "gitgraph", {
|
|
342
342
|
enumerable: true,
|
|
343
|
-
get: function () { return
|
|
343
|
+
get: function () { return chunkKH5GRKUM_cjs.gitgraph; }
|
|
344
344
|
});
|
|
345
345
|
Object.defineProperty(exports, "idef0", {
|
|
346
346
|
enumerable: true,
|
|
347
|
-
get: function () { return
|
|
347
|
+
get: function () { return chunkKH5GRKUM_cjs.idef0; }
|
|
348
348
|
});
|
|
349
349
|
Object.defineProperty(exports, "markov", {
|
|
350
350
|
enumerable: true,
|
|
351
|
-
get: function () { return
|
|
351
|
+
get: function () { return chunkKH5GRKUM_cjs.markov; }
|
|
352
352
|
});
|
|
353
353
|
Object.defineProperty(exports, "network", {
|
|
354
354
|
enumerable: true,
|
|
355
|
-
get: function () { return
|
|
355
|
+
get: function () { return chunkKH5GRKUM_cjs.network; }
|
|
356
356
|
});
|
|
357
357
|
Object.defineProperty(exports, "parse", {
|
|
358
358
|
enumerable: true,
|
|
359
|
-
get: function () { return
|
|
359
|
+
get: function () { return chunkKH5GRKUM_cjs.parse; }
|
|
360
360
|
});
|
|
361
361
|
Object.defineProperty(exports, "parseResult", {
|
|
362
362
|
enumerable: true,
|
|
363
|
-
get: function () { return
|
|
363
|
+
get: function () { return chunkKH5GRKUM_cjs.parseResult; }
|
|
364
364
|
});
|
|
365
365
|
Object.defineProperty(exports, "pert", {
|
|
366
366
|
enumerable: true,
|
|
367
|
-
get: function () { return
|
|
367
|
+
get: function () { return chunkKH5GRKUM_cjs.pert; }
|
|
368
368
|
});
|
|
369
369
|
Object.defineProperty(exports, "petri", {
|
|
370
370
|
enumerable: true,
|
|
371
|
-
get: function () { return
|
|
371
|
+
get: function () { return chunkKH5GRKUM_cjs.petri; }
|
|
372
372
|
});
|
|
373
373
|
Object.defineProperty(exports, "pid", {
|
|
374
374
|
enumerable: true,
|
|
375
|
-
get: function () { return
|
|
375
|
+
get: function () { return chunkKH5GRKUM_cjs.pid; }
|
|
376
376
|
});
|
|
377
377
|
Object.defineProperty(exports, "prisma", {
|
|
378
378
|
enumerable: true,
|
|
379
|
-
get: function () { return
|
|
379
|
+
get: function () { return chunkKH5GRKUM_cjs.prisma; }
|
|
380
|
+
});
|
|
381
|
+
Object.defineProperty(exports, "rbd", {
|
|
382
|
+
enumerable: true,
|
|
383
|
+
get: function () { return chunkKH5GRKUM_cjs.rbd; }
|
|
380
384
|
});
|
|
381
385
|
Object.defineProperty(exports, "render", {
|
|
382
386
|
enumerable: true,
|
|
383
|
-
get: function () { return
|
|
387
|
+
get: function () { return chunkKH5GRKUM_cjs.render; }
|
|
384
388
|
});
|
|
385
389
|
Object.defineProperty(exports, "renderPreview", {
|
|
386
390
|
enumerable: true,
|
|
387
|
-
get: function () { return
|
|
391
|
+
get: function () { return chunkKH5GRKUM_cjs.renderPreview; }
|
|
388
392
|
});
|
|
389
393
|
Object.defineProperty(exports, "renderResult", {
|
|
390
394
|
enumerable: true,
|
|
391
|
-
get: function () { return
|
|
395
|
+
get: function () { return chunkKH5GRKUM_cjs.renderResult; }
|
|
392
396
|
});
|
|
393
397
|
Object.defineProperty(exports, "sequence", {
|
|
394
398
|
enumerable: true,
|
|
395
|
-
get: function () { return
|
|
399
|
+
get: function () { return chunkKH5GRKUM_cjs.sequence; }
|
|
396
400
|
});
|
|
397
401
|
Object.defineProperty(exports, "state", {
|
|
398
402
|
enumerable: true,
|
|
399
|
-
get: function () { return
|
|
403
|
+
get: function () { return chunkKH5GRKUM_cjs.state; }
|
|
400
404
|
});
|
|
401
405
|
Object.defineProperty(exports, "threatmodel", {
|
|
402
406
|
enumerable: true,
|
|
403
|
-
get: function () { return
|
|
407
|
+
get: function () { return chunkKH5GRKUM_cjs.threatmodel; }
|
|
404
408
|
});
|
|
405
409
|
Object.defineProperty(exports, "timeline", {
|
|
406
410
|
enumerable: true,
|
|
407
|
-
get: function () { return
|
|
411
|
+
get: function () { return chunkKH5GRKUM_cjs.timeline; }
|
|
408
412
|
});
|
|
409
413
|
Object.defineProperty(exports, "umlclass", {
|
|
410
414
|
enumerable: true,
|
|
411
|
-
get: function () { return
|
|
415
|
+
get: function () { return chunkKH5GRKUM_cjs.umlclass; }
|
|
412
416
|
});
|
|
413
417
|
Object.defineProperty(exports, "usecase", {
|
|
414
418
|
enumerable: true,
|
|
415
|
-
get: function () { return
|
|
419
|
+
get: function () { return chunkKH5GRKUM_cjs.usecase; }
|
|
416
420
|
});
|
|
417
421
|
Object.defineProperty(exports, "welding", {
|
|
418
422
|
enumerable: true,
|
|
419
|
-
get: function () { return
|
|
423
|
+
get: function () { return chunkKH5GRKUM_cjs.welding; }
|
|
420
424
|
});
|
|
421
425
|
Object.defineProperty(exports, "orgchart", {
|
|
422
426
|
enumerable: true,
|
|
@@ -436,7 +440,7 @@ Object.defineProperty(exports, "ladder", {
|
|
|
436
440
|
});
|
|
437
441
|
Object.defineProperty(exports, "sld", {
|
|
438
442
|
enumerable: true,
|
|
439
|
-
get: function () { return
|
|
443
|
+
get: function () { return chunkN3HU635X_cjs.sld; }
|
|
440
444
|
});
|
|
441
445
|
Object.defineProperty(exports, "entity", {
|
|
442
446
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { S as SchematexConfig, p as parse, a as parseResult, r as render, b as renderPreview, c as renderResult } from './api-
|
|
2
|
-
import { D as DiagramPlugin, a as DiagramType } from './diagnostics-
|
|
3
|
-
export { S as SchematexDiagnostic, b as SchematexParseResult, c as SchematexRenderResult, d as SchematexResultStatus } from './diagnostics-
|
|
1
|
+
export { S as SchematexConfig, p as parse, a as parseResult, r as render, b as renderPreview, c as renderResult } from './api-v9t1T1v6.cjs';
|
|
2
|
+
import { D as DiagramPlugin, a as DiagramType } from './diagnostics-5bVLlGNj.cjs';
|
|
3
|
+
export { S as SchematexDiagnostic, b as SchematexParseResult, c as SchematexRenderResult, d as SchematexResultStatus } from './diagnostics-5bVLlGNj.cjs';
|
|
4
4
|
export { genogram } from './diagrams/genogram/index.cjs';
|
|
5
5
|
export { ecomap } from './diagrams/ecomap/index.cjs';
|
|
6
6
|
export { pedigree } from './diagrams/pedigree/index.cjs';
|
|
@@ -15,7 +15,7 @@ export { sld } from './diagrams/sld/index.cjs';
|
|
|
15
15
|
export { entity } from './diagrams/entity/index.cjs';
|
|
16
16
|
export { fishbone } from './diagrams/fishbone/index.cjs';
|
|
17
17
|
export { venn } from './diagrams/venn/index.cjs';
|
|
18
|
-
export { B as BASE_THEMES, a as BIOLOGY_TOKENS, b as BaseTheme, c as BiologyTokens, N as NETWORK_TOKENS, d as NetworkTokens, P as PERSON_TOKENS, e as PETRI_TOKENS, f as PersonTokens, g as PetriTokens, R as ResolvedTheme, T as ThemeName, h as TimelineTokens, V as VENN_TOKENS, i as VennTokens, j as flowchart, r as resolveBaseTheme, k as resolveBiologyTheme, l as resolveFishboneTheme, m as resolveGenogramTheme, n as resolveNetworkTheme, o as resolvePersonTheme, p as resolvePetriTheme, q as resolveTimelineTheme, s as resolveVennTheme } from './index-
|
|
18
|
+
export { B as BASE_THEMES, a as BIOLOGY_TOKENS, b as BaseTheme, c as BiologyTokens, N as NETWORK_TOKENS, d as NetworkTokens, P as PERSON_TOKENS, e as PETRI_TOKENS, f as PersonTokens, g as PetriTokens, R as ResolvedTheme, T as ThemeName, h as TimelineTokens, V as VENN_TOKENS, i as VennTokens, j as flowchart, r as resolveBaseTheme, k as resolveBiologyTheme, l as resolveFishboneTheme, m as resolveGenogramTheme, n as resolveNetworkTheme, o as resolvePersonTheme, p as resolvePetriTheme, q as resolveTimelineTheme, s as resolveVennTheme } from './index-Cmf4Rcve.cjs';
|
|
19
19
|
export { orgchart } from './diagrams/orgchart/index.cjs';
|
|
20
20
|
|
|
21
21
|
declare const decisiontree: DiagramPlugin;
|
|
@@ -74,6 +74,8 @@ declare const threatmodel: DiagramPlugin;
|
|
|
74
74
|
|
|
75
75
|
declare const welding: DiagramPlugin;
|
|
76
76
|
|
|
77
|
+
declare const rbd: DiagramPlugin;
|
|
78
|
+
|
|
77
79
|
/**
|
|
78
80
|
* Domain symbol catalogs — the real symbols an engine uses *inside* a diagram
|
|
79
81
|
* (circuit components, SLD apparatus, P&ID equipment, flowchart node icons),
|
|
@@ -101,4 +103,4 @@ interface SymbolCatalog {
|
|
|
101
103
|
declare const SYMBOL_CATALOG_TYPES: DiagramType[];
|
|
102
104
|
declare function getSymbolCatalog(type: string): SymbolCatalog | null;
|
|
103
105
|
|
|
104
|
-
export { SYMBOL_CATALOG_TYPES, type SymbolCatalog, type SymbolCatalogEntry, bowtie, causalloop, decisiontree, epc, eventtree, faulttree, fmea, getSymbolCatalog, gitgraph, idef0, markov, network, pert, petri, pid, prisma, sequence, state, threatmodel, timeline, umlclass, usecase, welding };
|
|
106
|
+
export { SYMBOL_CATALOG_TYPES, type SymbolCatalog, type SymbolCatalogEntry, bowtie, causalloop, decisiontree, epc, eventtree, faulttree, fmea, getSymbolCatalog, gitgraph, idef0, markov, network, pert, petri, pid, prisma, rbd, sequence, state, threatmodel, timeline, umlclass, usecase, welding };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { S as SchematexConfig, p as parse, a as parseResult, r as render, b as renderPreview, c as renderResult } from './api-
|
|
2
|
-
import { D as DiagramPlugin, a as DiagramType } from './diagnostics-
|
|
3
|
-
export { S as SchematexDiagnostic, b as SchematexParseResult, c as SchematexRenderResult, d as SchematexResultStatus } from './diagnostics-
|
|
1
|
+
export { S as SchematexConfig, p as parse, a as parseResult, r as render, b as renderPreview, c as renderResult } from './api-BOJJlNb1.js';
|
|
2
|
+
import { D as DiagramPlugin, a as DiagramType } from './diagnostics-5bVLlGNj.js';
|
|
3
|
+
export { S as SchematexDiagnostic, b as SchematexParseResult, c as SchematexRenderResult, d as SchematexResultStatus } from './diagnostics-5bVLlGNj.js';
|
|
4
4
|
export { genogram } from './diagrams/genogram/index.js';
|
|
5
5
|
export { ecomap } from './diagrams/ecomap/index.js';
|
|
6
6
|
export { pedigree } from './diagrams/pedigree/index.js';
|
|
@@ -15,7 +15,7 @@ export { sld } from './diagrams/sld/index.js';
|
|
|
15
15
|
export { entity } from './diagrams/entity/index.js';
|
|
16
16
|
export { fishbone } from './diagrams/fishbone/index.js';
|
|
17
17
|
export { venn } from './diagrams/venn/index.js';
|
|
18
|
-
export { B as BASE_THEMES, a as BIOLOGY_TOKENS, b as BaseTheme, c as BiologyTokens, N as NETWORK_TOKENS, d as NetworkTokens, P as PERSON_TOKENS, e as PETRI_TOKENS, f as PersonTokens, g as PetriTokens, R as ResolvedTheme, T as ThemeName, h as TimelineTokens, V as VENN_TOKENS, i as VennTokens, j as flowchart, r as resolveBaseTheme, k as resolveBiologyTheme, l as resolveFishboneTheme, m as resolveGenogramTheme, n as resolveNetworkTheme, o as resolvePersonTheme, p as resolvePetriTheme, q as resolveTimelineTheme, s as resolveVennTheme } from './index-
|
|
18
|
+
export { B as BASE_THEMES, a as BIOLOGY_TOKENS, b as BaseTheme, c as BiologyTokens, N as NETWORK_TOKENS, d as NetworkTokens, P as PERSON_TOKENS, e as PETRI_TOKENS, f as PersonTokens, g as PetriTokens, R as ResolvedTheme, T as ThemeName, h as TimelineTokens, V as VENN_TOKENS, i as VennTokens, j as flowchart, r as resolveBaseTheme, k as resolveBiologyTheme, l as resolveFishboneTheme, m as resolveGenogramTheme, n as resolveNetworkTheme, o as resolvePersonTheme, p as resolvePetriTheme, q as resolveTimelineTheme, s as resolveVennTheme } from './index-syc0E5Ss.js';
|
|
19
19
|
export { orgchart } from './diagrams/orgchart/index.js';
|
|
20
20
|
|
|
21
21
|
declare const decisiontree: DiagramPlugin;
|
|
@@ -74,6 +74,8 @@ declare const threatmodel: DiagramPlugin;
|
|
|
74
74
|
|
|
75
75
|
declare const welding: DiagramPlugin;
|
|
76
76
|
|
|
77
|
+
declare const rbd: DiagramPlugin;
|
|
78
|
+
|
|
77
79
|
/**
|
|
78
80
|
* Domain symbol catalogs — the real symbols an engine uses *inside* a diagram
|
|
79
81
|
* (circuit components, SLD apparatus, P&ID equipment, flowchart node icons),
|
|
@@ -101,4 +103,4 @@ interface SymbolCatalog {
|
|
|
101
103
|
declare const SYMBOL_CATALOG_TYPES: DiagramType[];
|
|
102
104
|
declare function getSymbolCatalog(type: string): SymbolCatalog | null;
|
|
103
105
|
|
|
104
|
-
export { SYMBOL_CATALOG_TYPES, type SymbolCatalog, type SymbolCatalogEntry, bowtie, causalloop, decisiontree, epc, eventtree, faulttree, fmea, getSymbolCatalog, gitgraph, idef0, markov, network, pert, petri, pid, prisma, sequence, state, threatmodel, timeline, umlclass, usecase, welding };
|
|
106
|
+
export { SYMBOL_CATALOG_TYPES, type SymbolCatalog, type SymbolCatalogEntry, bowtie, causalloop, decisiontree, epc, eventtree, faulttree, fmea, getSymbolCatalog, gitgraph, idef0, markov, network, pert, petri, pid, prisma, rbd, sequence, state, threatmodel, timeline, umlclass, usecase, welding };
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { FLOORPLAN_SYMBOLS, iconSize, drawDeviceIcon, GEOMETRY, renderEquip } from './chunk-
|
|
2
|
-
export { bowtie, causalloop, decisiontree, epc, eventtree, faulttree, fmea, gitgraph, idef0, markov, network, parse, parseResult, pert, petri, pid, prisma, render, renderPreview, renderResult, sequence, state, threatmodel, timeline, umlclass, usecase, welding } from './chunk-
|
|
1
|
+
import { FLOORPLAN_SYMBOLS, iconSize, drawDeviceIcon, GEOMETRY, renderEquip } from './chunk-4W75FGWO.js';
|
|
2
|
+
export { bowtie, causalloop, decisiontree, epc, eventtree, faulttree, fmea, gitgraph, idef0, markov, network, parse, parseResult, pert, petri, pid, prisma, rbd, render, renderPreview, renderResult, sequence, state, threatmodel, timeline, umlclass, usecase, welding } from './chunk-4W75FGWO.js';
|
|
3
3
|
export { orgchart } from './chunk-3J4DZPZC.js';
|
|
4
4
|
import { EXTRA_SYMBOLS, SYMBOLS } from './chunk-RDYACU2G.js';
|
|
5
5
|
export { circuit } from './chunk-RDYACU2G.js';
|
|
6
6
|
export { blockdiagram } from './chunk-3PH2MQGN.js';
|
|
7
7
|
export { ladder } from './chunk-B4CMWA6Y.js';
|
|
8
|
-
import { renderSymbol, geometryFor } from './chunk-
|
|
9
|
-
export { sld } from './chunk-
|
|
8
|
+
import { renderSymbol, geometryFor } from './chunk-II4GLKGF.js';
|
|
9
|
+
export { sld } from './chunk-II4GLKGF.js';
|
|
10
10
|
export { entity } from './chunk-JEMAOC2D.js';
|
|
11
11
|
export { fishbone } from './chunk-GYYYULBL.js';
|
|
12
12
|
export { venn } from './chunk-SXOAAQNY.js';
|
package/dist/react.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKH5GRKUM_cjs = require('./chunk-KH5GRKUM.cjs');
|
|
4
4
|
require('./chunk-4OC3CTGE.cjs');
|
|
5
5
|
require('./chunk-4AC6I7KJ.cjs');
|
|
6
6
|
require('./chunk-C4Y24X3U.cjs');
|
|
7
7
|
require('./chunk-INVLJYAE.cjs');
|
|
8
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-N3HU635X.cjs');
|
|
9
9
|
require('./chunk-GAQ36VFD.cjs');
|
|
10
10
|
require('./chunk-627GHE2N.cjs');
|
|
11
11
|
require('./chunk-ITI3STJ6.cjs');
|
|
@@ -37,7 +37,7 @@ function SchematexDiagram({
|
|
|
37
37
|
onError
|
|
38
38
|
}) {
|
|
39
39
|
const svg = react.useMemo(() => {
|
|
40
|
-
const result =
|
|
40
|
+
const result = chunkKH5GRKUM_cjs.renderResult(dsl, { type, theme, fontFamily, padding });
|
|
41
41
|
if (!result.ok) {
|
|
42
42
|
onError?.(new Error(result.diagnostics[0]?.message ?? "Schematex render failed"));
|
|
43
43
|
}
|
package/dist/react.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { S as SchematexConfig } from './api-
|
|
3
|
-
import './diagnostics-
|
|
2
|
+
import { S as SchematexConfig } from './api-v9t1T1v6.cjs';
|
|
3
|
+
import './diagnostics-5bVLlGNj.cjs';
|
|
4
4
|
|
|
5
5
|
interface SchematexDiagramProps {
|
|
6
6
|
/** DSL text to render */
|
package/dist/react.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { S as SchematexConfig } from './api-
|
|
3
|
-
import './diagnostics-
|
|
2
|
+
import { S as SchematexConfig } from './api-BOJJlNb1.js';
|
|
3
|
+
import './diagnostics-5bVLlGNj.js';
|
|
4
4
|
|
|
5
5
|
interface SchematexDiagramProps {
|
|
6
6
|
/** DSL text to render */
|