schematex 0.4.3 → 0.5.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 +24 -3
- package/dist/ai/ai-sdk.cjs +9 -9
- package/dist/ai/ai-sdk.d.cts +2 -2
- package/dist/ai/ai-sdk.d.ts +2 -2
- package/dist/ai/ai-sdk.js +4 -4
- package/dist/ai/index.cjs +12 -12
- package/dist/ai/index.d.cts +3 -3
- package/dist/ai/index.d.ts +3 -3
- package/dist/ai/index.js +4 -4
- package/dist/{api-BIj9t4Oc.d.cts → api-C5UcmT7n.d.cts} +1 -1
- package/dist/{api-BIj9t4Oc.d.ts → api-C5UcmT7n.d.ts} +1 -1
- package/dist/browser.cjs +6 -6
- package/dist/browser.d.cts +2 -2
- package/dist/browser.d.ts +2 -2
- package/dist/browser.js +4 -4
- package/dist/{chunk-SMXU3KYA.cjs → chunk-3YUUC6RN.cjs} +5115 -282
- package/dist/chunk-3YUUC6RN.cjs.map +1 -0
- package/dist/{chunk-KWQTF6ZL.js → chunk-GTDQAN2Z.js} +5110 -280
- package/dist/chunk-GTDQAN2Z.js.map +1 -0
- package/dist/{chunk-J7JWMQD5.js → chunk-HUPDIRBX.js} +119 -4
- package/dist/chunk-HUPDIRBX.js.map +1 -0
- package/dist/{chunk-UBTKM2TB.js → chunk-IM4RCUHA.js} +210 -22
- package/dist/chunk-IM4RCUHA.js.map +1 -0
- package/dist/{chunk-N3SLYVNW.cjs → chunk-NWPCY65Z.cjs} +212 -24
- package/dist/{chunk-UBTKM2TB.js.map → chunk-NWPCY65Z.cjs.map} +1 -1
- package/dist/{chunk-VITE3MZQ.cjs → chunk-QTNPMIO2.cjs} +99 -5
- package/dist/chunk-QTNPMIO2.cjs.map +1 -0
- package/dist/{chunk-6IGSKU6D.js → chunk-UFTYX73U.js} +99 -5
- package/dist/chunk-UFTYX73U.js.map +1 -0
- package/dist/{chunk-2Z543TC3.cjs → chunk-XRCY75UV.cjs} +119 -4
- package/dist/chunk-XRCY75UV.cjs.map +1 -0
- package/dist/diagrams/blockdiagram/index.d.cts +1 -1
- package/dist/diagrams/blockdiagram/index.d.ts +1 -1
- package/dist/diagrams/circuit/index.cjs +7 -7
- package/dist/diagrams/circuit/index.d.cts +1 -1
- package/dist/diagrams/circuit/index.d.ts +1 -1
- package/dist/diagrams/circuit/index.js +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.cjs +7 -7
- package/dist/diagrams/flowchart/index.d.cts +2 -2
- package/dist/diagrams/flowchart/index.d.ts +2 -2
- package/dist/diagrams/flowchart/index.js +1 -1
- 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.d.cts +1 -1
- package/dist/diagrams/sld/index.d.ts +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-DYpJXJcy.d.cts → index-C9A0h-CB.d.cts} +1 -1
- package/dist/{index-BeUVaQiD.d.ts → index-CJai_TEZ.d.ts} +1 -1
- package/dist/index.cjs +23 -11
- package/dist/index.d.cts +10 -4
- package/dist/index.d.ts +10 -4
- package/dist/index.js +3 -3
- package/dist/react.cjs +4 -4
- package/dist/react.d.cts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +3 -3
- package/dist/{types-DKdo-Ua_.d.cts → types-BOAsqHoU.d.cts} +2 -2
- package/dist/{types-DKdo-Ua_.d.ts → types-BOAsqHoU.d.ts} +2 -2
- package/package.json +2 -2
- package/dist/chunk-2Z543TC3.cjs.map +0 -1
- package/dist/chunk-6IGSKU6D.js.map +0 -1
- package/dist/chunk-J7JWMQD5.js.map +0 -1
- package/dist/chunk-KWQTF6ZL.js.map +0 -1
- package/dist/chunk-N3SLYVNW.cjs.map +0 -1
- package/dist/chunk-SMXU3KYA.cjs.map +0 -1
- package/dist/chunk-VITE3MZQ.cjs.map +0 -1
package/README.md
CHANGED
|
@@ -29,14 +29,15 @@
|
|
|
29
29
|
|
|
30
30
|
---
|
|
31
31
|
|
|
32
|
-
**Schematex** is the open-source rendering engine for the diagrams professionals actually use — medical, electrical, legal, and analytical.
|
|
32
|
+
**Schematex** is the open-source rendering engine for the diagrams professionals actually use — medical, electrical, legal, and analytical. 30 diagram families across nine domains:
|
|
33
33
|
|
|
34
34
|
- 👪 **Relationships** — genograms, ecomaps, pedigrees, sociograms, phylogenetic trees
|
|
35
35
|
- ⚡ **Electrical & Industrial** — ladder logic, single-line diagrams, circuit schematics, logic gates, timing, block diagrams, **FBD**, **SFC**, breadboard, **P&ID** (ISA-5.1)
|
|
36
36
|
- 🏢 **Corporate & Legal** — entity structures, cap tables
|
|
37
37
|
- 🐟 **Causality & Analysis** — fishbone / Ishikawa, decision trees (Howard-Raiffa EV · CART/sklearn · taxonomy)
|
|
38
|
-
- 🔄 **Behavior modeling** — UML 2.5 / Harel **state diagrams** (Mermaid-compatible superset), **BPMN 2.0** (OMG)
|
|
38
|
+
- 🔄 **Behavior modeling** — UML 2.5 / Harel **state diagrams** (Mermaid-compatible superset), **BPMN 2.0** (OMG), **use case diagrams** (UML 2.5.1 §18)
|
|
39
39
|
- 🗄️ **Data modeling** — ERD crow's-foot notation
|
|
40
|
+
- 🗓️ **Project management** — **PERT / CPM** networks (PMBOK 7) that *compute* the schedule: ES/EF/LS/LF, slack, critical path, three-point estimation, swimlanes, time-scaled layout
|
|
40
41
|
- 📅 **Timelines** — proportional / equidistant / log axis · swimlane · gantt · lollipop · BC dates · geological Ma scale
|
|
41
42
|
|
|
42
43
|
Mermaid draws generic flowcharts. Schematex draws the diagrams doctors, engineers, and lawyers actually use — a genogram a genetic counselor accepts clinically, ladder logic that maps 1:1 to IEC 61131-3, a cap table that survives a Series A review.
|
|
@@ -72,7 +73,7 @@ import { render } from 'schematex/genogram';
|
|
|
72
73
|
|
|
73
74
|
## Gallery
|
|
74
75
|
|
|
75
|
-
|
|
76
|
+
30 diagram types, one unified pipeline. **Try any of these live at [schematex.dev/playground](https://schematex.dev/playground).**
|
|
76
77
|
|
|
77
78
|
### 👪 Genogram — *McGoldrick family-systems standard*
|
|
78
79
|
|
|
@@ -481,6 +482,26 @@ config: style = gantt
|
|
|
481
482
|
|
|
482
483
|
[Timeline syntax →](https://schematex.dev/docs/timeline)
|
|
483
484
|
|
|
485
|
+
### 🗓️ PERT / CPM — *PMI PMBOK 7 activity-on-node network*
|
|
486
|
+
|
|
487
|
+
The only text-DSL PERT tool that **computes the schedule**. You write tasks, durations, and dependencies — the engine runs the forward and backward pass and returns Early/Late Start & Finish, total slack, project duration, and the critical path (highlighted in red). Supports FS/SS/FF/SF dependencies with lag/lead, three-point estimation (`te + variance`), milestones, swimlanes (`lane:`), and a time-scaled layout.
|
|
488
|
+
|
|
489
|
+
```
|
|
490
|
+
pert
|
|
491
|
+
title: "Q3 Product Launch"
|
|
492
|
+
unit: days
|
|
493
|
+
|
|
494
|
+
task A "Market research" duration: 5
|
|
495
|
+
task B "Design mockups" duration: 8 after: A
|
|
496
|
+
task C "Backend API" duration: 15 after: A
|
|
497
|
+
task D "Frontend build" duration: 10 after: B, C
|
|
498
|
+
task E "QA / testing" duration: 5 after: D
|
|
499
|
+
task F "Marketing collateral" duration: 7 after: B
|
|
500
|
+
task G "Launch event" duration: 2 after: E, F
|
|
501
|
+
```
|
|
502
|
+
|
|
503
|
+
[PERT / CPM syntax →](https://schematex.dev/docs/pert)
|
|
504
|
+
|
|
484
505
|
## Why SchemaTex?
|
|
485
506
|
|
|
486
507
|
**Generic flowchart tools can't draw professional diagrams.** Every diagram domain has published standards — symbol conventions, layout rules, labelling grammars — and when you ignore them, domain experts reject the output:
|
package/dist/ai/ai-sdk.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkNWPCY65Z_cjs = require('../chunk-NWPCY65Z.cjs');
|
|
4
|
+
require('../chunk-3YUUC6RN.cjs');
|
|
5
5
|
require('../chunk-QUKVGHN4.cjs');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-XRCY75UV.cjs');
|
|
7
7
|
require('../chunk-SUIDD2C5.cjs');
|
|
8
8
|
require('../chunk-N7W5KZK7.cjs');
|
|
9
9
|
require('../chunk-3M6WB62Y.cjs');
|
|
@@ -11,7 +11,7 @@ require('../chunk-SBB6C4OP.cjs');
|
|
|
11
11
|
require('../chunk-RYVV5UVI.cjs');
|
|
12
12
|
require('../chunk-VFZOPRQP.cjs');
|
|
13
13
|
require('../chunk-BW4KGTV7.cjs');
|
|
14
|
-
require('../chunk-
|
|
14
|
+
require('../chunk-QTNPMIO2.cjs');
|
|
15
15
|
require('../chunk-TZTCIAYW.cjs');
|
|
16
16
|
require('../chunk-VZ5LDNHK.cjs');
|
|
17
17
|
require('../chunk-EGSUMHCS.cjs');
|
|
@@ -31,7 +31,7 @@ var schematexTools = {
|
|
|
31
31
|
listDiagrams: ai.tool({
|
|
32
32
|
description: "List every Schematex diagram type with a tagline, 'use when' hint, domain cluster, and authoritative standard. Call this first to discover what's available.",
|
|
33
33
|
inputSchema: zod.z.object({}),
|
|
34
|
-
execute: async () =>
|
|
34
|
+
execute: async () => chunkNWPCY65Z_cjs.listDiagrams()
|
|
35
35
|
}),
|
|
36
36
|
getSyntax: ai.tool({
|
|
37
37
|
description: "Return a compact syntax reference for one diagram type \u2014 rules, grammar (EBNF), and inline examples. Trimmed for LLM consumption (~2,000\u20134,000 tokens). Call after listDiagrams once you've chosen a type.",
|
|
@@ -40,7 +40,7 @@ var schematexTools = {
|
|
|
40
40
|
"Diagram type id from listDiagrams (e.g. 'genogram', 'sld', 'fishbone')."
|
|
41
41
|
)
|
|
42
42
|
}),
|
|
43
|
-
execute: async ({ type }) =>
|
|
43
|
+
execute: async ({ type }) => chunkNWPCY65Z_cjs.getSyntax(type)
|
|
44
44
|
}),
|
|
45
45
|
getExamples: ai.tool({
|
|
46
46
|
description: "Return curated real-world DSL examples for a diagram type, each with scenario notes and tags. Use as few-shot context before generating DSL.",
|
|
@@ -50,7 +50,7 @@ var schematexTools = {
|
|
|
50
50
|
preferFeatured: zod.z.boolean().optional().describe("Rank featured examples first."),
|
|
51
51
|
maxComplexity: zod.z.number().int().min(1).max(5).optional().describe("Only return examples with complexity <= this value (1=simplest).")
|
|
52
52
|
}),
|
|
53
|
-
execute: async (args) =>
|
|
53
|
+
execute: async (args) => chunkNWPCY65Z_cjs.getExamples(args.type, {
|
|
54
54
|
limit: args.limit,
|
|
55
55
|
preferFeatured: args.preferFeatured,
|
|
56
56
|
maxComplexity: args.maxComplexity
|
|
@@ -64,7 +64,7 @@ var schematexTools = {
|
|
|
64
64
|
),
|
|
65
65
|
dsl: zod.z.string().describe("The DSL source text to validate.")
|
|
66
66
|
}),
|
|
67
|
-
execute: async ({ type, dsl }) =>
|
|
67
|
+
execute: async ({ type, dsl }) => chunkNWPCY65Z_cjs.validateDsl(type, dsl)
|
|
68
68
|
}),
|
|
69
69
|
renderDsl: ai.tool({
|
|
70
70
|
description: "Render Schematex DSL to an SVG string. Returns { ok: true, svg } or { ok: false, errors }. Use when the caller needs the actual diagram output, not just validation.",
|
|
@@ -79,7 +79,7 @@ var schematexTools = {
|
|
|
79
79
|
dsl,
|
|
80
80
|
theme,
|
|
81
81
|
padding
|
|
82
|
-
}) =>
|
|
82
|
+
}) => chunkNWPCY65Z_cjs.renderDsl(type, dsl, { theme, padding })
|
|
83
83
|
})
|
|
84
84
|
};
|
|
85
85
|
|
package/dist/ai/ai-sdk.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as ai from 'ai';
|
|
2
2
|
import { DiagramListItem, GetSyntaxResult, GetExamplesResult, ValidateDslResult, RenderDslResult } from './index.cjs';
|
|
3
|
-
import '../api-
|
|
4
|
-
import '../types-
|
|
3
|
+
import '../api-C5UcmT7n.cjs';
|
|
4
|
+
import '../types-BOAsqHoU.cjs';
|
|
5
5
|
|
|
6
6
|
declare const schematexTools: {
|
|
7
7
|
readonly listDiagrams: ai.Tool<{}, DiagramListItem[]>;
|
package/dist/ai/ai-sdk.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as ai from 'ai';
|
|
2
2
|
import { DiagramListItem, GetSyntaxResult, GetExamplesResult, ValidateDslResult, RenderDslResult } from './index.js';
|
|
3
|
-
import '../api-
|
|
4
|
-
import '../types-
|
|
3
|
+
import '../api-C5UcmT7n.js';
|
|
4
|
+
import '../types-BOAsqHoU.js';
|
|
5
5
|
|
|
6
6
|
declare const schematexTools: {
|
|
7
7
|
readonly listDiagrams: ai.Tool<{}, DiagramListItem[]>;
|
package/dist/ai/ai-sdk.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { renderDsl, validateDsl, getExamples, getSyntax, listDiagrams } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
import { renderDsl, validateDsl, getExamples, getSyntax, listDiagrams } from '../chunk-IM4RCUHA.js';
|
|
2
|
+
import '../chunk-GTDQAN2Z.js';
|
|
3
3
|
import '../chunk-I55HO32M.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-HUPDIRBX.js';
|
|
5
5
|
import '../chunk-EPKIJEH7.js';
|
|
6
6
|
import '../chunk-IBRW3UOA.js';
|
|
7
7
|
import '../chunk-6OSUNBZY.js';
|
|
@@ -9,7 +9,7 @@ import '../chunk-PIV2A3HG.js';
|
|
|
9
9
|
import '../chunk-SZK376QB.js';
|
|
10
10
|
import '../chunk-3M6T7KB4.js';
|
|
11
11
|
import '../chunk-L3CTXXVZ.js';
|
|
12
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-UFTYX73U.js';
|
|
13
13
|
import '../chunk-VJGMEGMR.js';
|
|
14
14
|
import '../chunk-JHDR56XO.js';
|
|
15
15
|
import '../chunk-ZL5RB4UV.js';
|
package/dist/ai/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkNWPCY65Z_cjs = require('../chunk-NWPCY65Z.cjs');
|
|
4
|
+
require('../chunk-3YUUC6RN.cjs');
|
|
5
5
|
require('../chunk-QUKVGHN4.cjs');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-XRCY75UV.cjs');
|
|
7
7
|
require('../chunk-SUIDD2C5.cjs');
|
|
8
8
|
require('../chunk-N7W5KZK7.cjs');
|
|
9
9
|
require('../chunk-3M6WB62Y.cjs');
|
|
@@ -11,7 +11,7 @@ require('../chunk-SBB6C4OP.cjs');
|
|
|
11
11
|
require('../chunk-RYVV5UVI.cjs');
|
|
12
12
|
require('../chunk-VFZOPRQP.cjs');
|
|
13
13
|
require('../chunk-BW4KGTV7.cjs');
|
|
14
|
-
require('../chunk-
|
|
14
|
+
require('../chunk-QTNPMIO2.cjs');
|
|
15
15
|
require('../chunk-TZTCIAYW.cjs');
|
|
16
16
|
require('../chunk-VZ5LDNHK.cjs');
|
|
17
17
|
require('../chunk-EGSUMHCS.cjs');
|
|
@@ -29,35 +29,35 @@ require('../chunk-3WNW5Y7P.cjs');
|
|
|
29
29
|
|
|
30
30
|
Object.defineProperty(exports, "DIAGRAM_REGISTRY", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkNWPCY65Z_cjs.DIAGRAM_REGISTRY; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "getAllDiagramTypes", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkNWPCY65Z_cjs.getAllDiagramTypes; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "getDiagramMeta", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkNWPCY65Z_cjs.getDiagramMeta; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "getExamples", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkNWPCY65Z_cjs.getExamples; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "getSyntax", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkNWPCY65Z_cjs.getSyntax; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "listDiagrams", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkNWPCY65Z_cjs.listDiagrams; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "renderDsl", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkNWPCY65Z_cjs.renderDsl; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "validateDsl", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkNWPCY65Z_cjs.validateDsl; }
|
|
61
61
|
});
|
|
62
62
|
//# sourceMappingURL=index.cjs.map
|
|
63
63
|
//# sourceMappingURL=index.cjs.map
|
package/dist/ai/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SchematexConfig } from '../api-
|
|
2
|
-
import { q as DiagramType } from '../types-
|
|
1
|
+
import { S as SchematexConfig } from '../api-C5UcmT7n.cjs';
|
|
2
|
+
import { q as DiagramType } from '../types-BOAsqHoU.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Diagram registry — metadata for every diagram type Schematex supports.
|
|
@@ -8,7 +8,7 @@ import { q as DiagramType } from '../types-DKdo-Ua_.cjs';
|
|
|
8
8
|
* are tuned to help the model pick the right type for a user request.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
type DiagramCluster = "relationships" | "electrical-industrial" | "corporate-legal" | "causality-analysis" | "generic" | "strategy" | "knowledge" | "behavior-modeling";
|
|
11
|
+
type DiagramCluster = "relationships" | "electrical-industrial" | "corporate-legal" | "causality-analysis" | "generic" | "strategy" | "knowledge" | "behavior-modeling" | "research" | "project-management";
|
|
12
12
|
interface DiagramMeta {
|
|
13
13
|
/** Canonical type id — matches `DiagramType` and plugin keys. */
|
|
14
14
|
type: DiagramType;
|
package/dist/ai/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SchematexConfig } from '../api-
|
|
2
|
-
import { q as DiagramType } from '../types-
|
|
1
|
+
import { S as SchematexConfig } from '../api-C5UcmT7n.js';
|
|
2
|
+
import { q as DiagramType } from '../types-BOAsqHoU.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Diagram registry — metadata for every diagram type Schematex supports.
|
|
@@ -8,7 +8,7 @@ import { q as DiagramType } from '../types-DKdo-Ua_.js';
|
|
|
8
8
|
* are tuned to help the model pick the right type for a user request.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
type DiagramCluster = "relationships" | "electrical-industrial" | "corporate-legal" | "causality-analysis" | "generic" | "strategy" | "knowledge" | "behavior-modeling";
|
|
11
|
+
type DiagramCluster = "relationships" | "electrical-industrial" | "corporate-legal" | "causality-analysis" | "generic" | "strategy" | "knowledge" | "behavior-modeling" | "research" | "project-management";
|
|
12
12
|
interface DiagramMeta {
|
|
13
13
|
/** Canonical type id — matches `DiagramType` and plugin keys. */
|
|
14
14
|
type: DiagramType;
|
package/dist/ai/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { DIAGRAM_REGISTRY, getAllDiagramTypes, getDiagramMeta, getExamples, getSyntax, listDiagrams, renderDsl, validateDsl } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { DIAGRAM_REGISTRY, getAllDiagramTypes, getDiagramMeta, getExamples, getSyntax, listDiagrams, renderDsl, validateDsl } from '../chunk-IM4RCUHA.js';
|
|
2
|
+
import '../chunk-GTDQAN2Z.js';
|
|
3
3
|
import '../chunk-I55HO32M.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-HUPDIRBX.js';
|
|
5
5
|
import '../chunk-EPKIJEH7.js';
|
|
6
6
|
import '../chunk-IBRW3UOA.js';
|
|
7
7
|
import '../chunk-6OSUNBZY.js';
|
|
@@ -9,7 +9,7 @@ import '../chunk-PIV2A3HG.js';
|
|
|
9
9
|
import '../chunk-SZK376QB.js';
|
|
10
10
|
import '../chunk-3M6T7KB4.js';
|
|
11
11
|
import '../chunk-L3CTXXVZ.js';
|
|
12
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-UFTYX73U.js';
|
|
13
13
|
import '../chunk-VJGMEGMR.js';
|
|
14
14
|
import '../chunk-JHDR56XO.js';
|
|
15
15
|
import '../chunk-ZL5RB4UV.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface SchematexConfig {
|
|
2
|
-
type?: "genogram" | "ecomap" | "pedigree" | "phylo" | "sociogram" | "timing" | "logic" | "circuit" | "blockdiagram" | "ladder" | "sld" | "entity" | "fishbone" | "venn" | "flowchart" | "mindmap" | "matrix" | "orgchart" | "decisiontree" | "timeline" | "state" | "pid" | "erd" | "breadboard" | "bpmn" | "fbd" | "sfc";
|
|
2
|
+
type?: "genogram" | "ecomap" | "pedigree" | "phylo" | "sociogram" | "timing" | "logic" | "circuit" | "blockdiagram" | "ladder" | "sld" | "entity" | "fishbone" | "venn" | "flowchart" | "mindmap" | "matrix" | "orgchart" | "decisiontree" | "timeline" | "state" | "pid" | "erd" | "breadboard" | "bpmn" | "fbd" | "sfc" | "prisma" | "usecase" | "pert";
|
|
3
3
|
width?: number;
|
|
4
4
|
height?: number;
|
|
5
5
|
padding?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface SchematexConfig {
|
|
2
|
-
type?: "genogram" | "ecomap" | "pedigree" | "phylo" | "sociogram" | "timing" | "logic" | "circuit" | "blockdiagram" | "ladder" | "sld" | "entity" | "fishbone" | "venn" | "flowchart" | "mindmap" | "matrix" | "orgchart" | "decisiontree" | "timeline" | "state" | "pid" | "erd" | "breadboard" | "bpmn" | "fbd" | "sfc";
|
|
2
|
+
type?: "genogram" | "ecomap" | "pedigree" | "phylo" | "sociogram" | "timing" | "logic" | "circuit" | "blockdiagram" | "ladder" | "sld" | "entity" | "fishbone" | "venn" | "flowchart" | "mindmap" | "matrix" | "orgchart" | "decisiontree" | "timeline" | "state" | "pid" | "erd" | "breadboard" | "bpmn" | "fbd" | "sfc" | "prisma" | "usecase" | "pert";
|
|
3
3
|
width?: number;
|
|
4
4
|
height?: number;
|
|
5
5
|
padding?: number;
|
package/dist/browser.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk3YUUC6RN_cjs = require('./chunk-3YUUC6RN.cjs');
|
|
4
4
|
require('./chunk-QUKVGHN4.cjs');
|
|
5
|
-
require('./chunk-
|
|
5
|
+
require('./chunk-XRCY75UV.cjs');
|
|
6
6
|
require('./chunk-SUIDD2C5.cjs');
|
|
7
7
|
require('./chunk-N7W5KZK7.cjs');
|
|
8
8
|
require('./chunk-3M6WB62Y.cjs');
|
|
@@ -10,7 +10,7 @@ require('./chunk-SBB6C4OP.cjs');
|
|
|
10
10
|
require('./chunk-RYVV5UVI.cjs');
|
|
11
11
|
require('./chunk-VFZOPRQP.cjs');
|
|
12
12
|
require('./chunk-BW4KGTV7.cjs');
|
|
13
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-QTNPMIO2.cjs');
|
|
14
14
|
require('./chunk-TZTCIAYW.cjs');
|
|
15
15
|
require('./chunk-VZ5LDNHK.cjs');
|
|
16
16
|
require('./chunk-EGSUMHCS.cjs');
|
|
@@ -26,7 +26,7 @@ require('./chunk-3WNW5Y7P.cjs');
|
|
|
26
26
|
|
|
27
27
|
// src/browser.ts
|
|
28
28
|
function renderToElement(text, config) {
|
|
29
|
-
const svgString =
|
|
29
|
+
const svgString = chunk3YUUC6RN_cjs.render(text, config);
|
|
30
30
|
const parser = new DOMParser();
|
|
31
31
|
const doc = parser.parseFromString(svgString, "image/svg+xml");
|
|
32
32
|
const el = doc.documentElement;
|
|
@@ -37,12 +37,12 @@ function renderToElement(text, config) {
|
|
|
37
37
|
return el;
|
|
38
38
|
}
|
|
39
39
|
function renderToContainer(text, container, config) {
|
|
40
|
-
container.innerHTML =
|
|
40
|
+
container.innerHTML = chunk3YUUC6RN_cjs.render(text, config);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
Object.defineProperty(exports, "render", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunk3YUUC6RN_cjs.render; }
|
|
46
46
|
});
|
|
47
47
|
exports.renderToContainer = renderToContainer;
|
|
48
48
|
exports.renderToElement = renderToElement;
|
package/dist/browser.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SchematexConfig } from './api-
|
|
2
|
-
export { r as render } from './api-
|
|
1
|
+
import { S as SchematexConfig } from './api-C5UcmT7n.cjs';
|
|
2
|
+
export { r as render } from './api-C5UcmT7n.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Browser-specific utilities for Schematex.
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SchematexConfig } from './api-
|
|
2
|
-
export { r as render } from './api-
|
|
1
|
+
import { S as SchematexConfig } from './api-C5UcmT7n.js';
|
|
2
|
+
export { r as render } from './api-C5UcmT7n.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Browser-specific utilities for Schematex.
|
package/dist/browser.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { render } from './chunk-
|
|
2
|
-
export { render } from './chunk-
|
|
1
|
+
import { render } from './chunk-GTDQAN2Z.js';
|
|
2
|
+
export { render } from './chunk-GTDQAN2Z.js';
|
|
3
3
|
import './chunk-I55HO32M.js';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-HUPDIRBX.js';
|
|
5
5
|
import './chunk-EPKIJEH7.js';
|
|
6
6
|
import './chunk-IBRW3UOA.js';
|
|
7
7
|
import './chunk-6OSUNBZY.js';
|
|
@@ -9,7 +9,7 @@ import './chunk-PIV2A3HG.js';
|
|
|
9
9
|
import './chunk-SZK376QB.js';
|
|
10
10
|
import './chunk-3M6T7KB4.js';
|
|
11
11
|
import './chunk-L3CTXXVZ.js';
|
|
12
|
-
import './chunk-
|
|
12
|
+
import './chunk-UFTYX73U.js';
|
|
13
13
|
import './chunk-VJGMEGMR.js';
|
|
14
14
|
import './chunk-JHDR56XO.js';
|
|
15
15
|
import './chunk-ZL5RB4UV.js';
|