schematex 0.9.1 → 0.9.3
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 +21 -0
- package/dist/ai/ai-sdk.cjs +24 -24
- package/dist/ai/ai-sdk.d.cts +3 -3
- package/dist/ai/ai-sdk.d.ts +3 -3
- package/dist/ai/ai-sdk.js +19 -19
- package/dist/ai/index.cjs +33 -33
- package/dist/ai/index.d.cts +4 -4
- package/dist/ai/index.d.ts +4 -4
- package/dist/ai/index.js +20 -20
- package/dist/{api-OED2jUVj.d.ts → api-B7C7qGiG.d.cts} +2 -2
- package/dist/{api-BDMaX1cT.d.cts → api-DXOhuK3e.d.ts} +2 -2
- package/dist/browser.cjs +25 -25
- package/dist/browser.d.cts +3 -3
- package/dist/browser.d.ts +3 -3
- package/dist/browser.js +19 -19
- package/dist/{chunk-JN6FHUC6.js → chunk-4CLAD7VZ.js} +3 -3
- package/dist/{chunk-JN6FHUC6.js.map → chunk-4CLAD7VZ.js.map} +1 -1
- package/dist/{chunk-YTGOLTLJ.js → chunk-6GHXO3WQ.js} +4 -4
- package/dist/{chunk-YTGOLTLJ.js.map → chunk-6GHXO3WQ.js.map} +1 -1
- package/dist/{chunk-T5KHNJ67.cjs → chunk-6W6RFZND.cjs} +6 -6
- package/dist/{chunk-T5KHNJ67.cjs.map → chunk-6W6RFZND.cjs.map} +1 -1
- package/dist/{chunk-KF3DFASA.js → chunk-7P4C5DMD.js} +3 -3
- package/dist/chunk-7P4C5DMD.js.map +1 -0
- package/dist/{chunk-KGOZBABH.cjs → chunk-AEZVCGH4.cjs} +12 -12
- package/dist/{chunk-KGOZBABH.cjs.map → chunk-AEZVCGH4.cjs.map} +1 -1
- package/dist/{chunk-QYC6WZEM.cjs → chunk-AHSSFGDJ.cjs} +3064 -511
- package/dist/chunk-AHSSFGDJ.cjs.map +1 -0
- package/dist/{chunk-FJVQGBPU.cjs → chunk-ATE7LD6I.cjs} +5 -5
- package/dist/{chunk-FJVQGBPU.cjs.map → chunk-ATE7LD6I.cjs.map} +1 -1
- package/dist/{chunk-VOJGLBE5.js → chunk-BP6MLXJU.js} +2890 -338
- package/dist/chunk-BP6MLXJU.js.map +1 -0
- package/dist/{chunk-YMFYPB5Y.cjs → chunk-BXS53MLV.cjs} +4 -4
- package/dist/{chunk-YMFYPB5Y.cjs.map → chunk-BXS53MLV.cjs.map} +1 -1
- package/dist/{chunk-B5AQ3CG3.cjs → chunk-C2BNO3CI.cjs} +16 -13
- package/dist/chunk-C2BNO3CI.cjs.map +1 -0
- package/dist/{chunk-NZT5P2XZ.cjs → chunk-CAAMBDEN.cjs} +347 -2
- package/dist/chunk-CAAMBDEN.cjs.map +1 -0
- package/dist/{chunk-UK6HF6PE.js → chunk-D4QZ6UDO.js} +342 -3
- package/dist/chunk-D4QZ6UDO.js.map +1 -0
- package/dist/{chunk-DHI7YAQJ.cjs → chunk-FFAJQ36U.cjs} +15 -15
- package/dist/{chunk-DHI7YAQJ.cjs.map → chunk-FFAJQ36U.cjs.map} +1 -1
- package/dist/{chunk-LENRV7ZJ.cjs → chunk-IOD2EFMX.cjs} +5 -5
- package/dist/chunk-IOD2EFMX.cjs.map +1 -0
- package/dist/{chunk-JIUC4DRS.cjs → chunk-IU26USXA.cjs} +6 -6
- package/dist/chunk-IU26USXA.cjs.map +1 -0
- package/dist/{chunk-Z5ML4QYG.js → chunk-JCJWSW5Y.js} +406 -4
- package/dist/chunk-JCJWSW5Y.js.map +1 -0
- package/dist/{chunk-DX44TBFZ.js → chunk-JEQGWH5N.js} +20 -28
- package/dist/chunk-JEQGWH5N.js.map +1 -0
- package/dist/{chunk-NXU4XKLY.cjs → chunk-JHJJT5H5.cjs} +9 -7
- package/dist/chunk-JHJJT5H5.cjs.map +1 -0
- package/dist/{chunk-AJJYWXZB.cjs → chunk-JYAL26WQ.cjs} +4 -4
- package/dist/chunk-JYAL26WQ.cjs.map +1 -0
- package/dist/{chunk-2R4UXKCT.cjs → chunk-LFJE64RD.cjs} +408 -6
- package/dist/chunk-LFJE64RD.cjs.map +1 -0
- package/dist/{chunk-IXRPRMHI.js → chunk-MTIZIHWE.js} +9 -7
- package/dist/chunk-MTIZIHWE.js.map +1 -0
- package/dist/{chunk-NFZMNKOR.cjs → chunk-MZWVJFTV.cjs} +15 -15
- package/dist/{chunk-NFZMNKOR.cjs.map → chunk-MZWVJFTV.cjs.map} +1 -1
- package/dist/{chunk-6L46VIXI.cjs → chunk-O6A2GJLI.cjs} +20 -28
- package/dist/chunk-O6A2GJLI.cjs.map +1 -0
- package/dist/{chunk-K2D6VFLP.js → chunk-OND4N5ZZ.js} +78 -22
- package/dist/chunk-OND4N5ZZ.js.map +1 -0
- package/dist/{chunk-J34HDRFY.js → chunk-PUD7PIY5.js} +4 -4
- package/dist/{chunk-J34HDRFY.js.map → chunk-PUD7PIY5.js.map} +1 -1
- package/dist/{chunk-6NUAGU6O.js → chunk-PZCYFT2A.js} +3 -3
- package/dist/{chunk-6NUAGU6O.js.map → chunk-PZCYFT2A.js.map} +1 -1
- package/dist/{chunk-EBX4KCYW.js → chunk-QHZEGWE7.js} +4 -4
- package/dist/{chunk-EBX4KCYW.js.map → chunk-QHZEGWE7.js.map} +1 -1
- package/dist/{chunk-ABCMTAOZ.js → chunk-TDSGQT7R.js} +7 -4
- package/dist/chunk-TDSGQT7R.js.map +1 -0
- package/dist/{chunk-47SGK5R6.cjs → chunk-TFNH2NLJ.cjs} +5 -5
- package/dist/{chunk-47SGK5R6.cjs.map → chunk-TFNH2NLJ.cjs.map} +1 -1
- package/dist/{chunk-CDK7KDIW.js → chunk-U4AJLMHC.js} +4 -4
- package/dist/{chunk-CDK7KDIW.js.map → chunk-U4AJLMHC.js.map} +1 -1
- package/dist/{chunk-UOM3EDE6.js → chunk-UNLLWCQK.js} +3 -3
- package/dist/{chunk-UOM3EDE6.js.map → chunk-UNLLWCQK.js.map} +1 -1
- package/dist/{chunk-D34VGLSE.cjs → chunk-VG5LP5A4.cjs} +5 -5
- package/dist/{chunk-D34VGLSE.cjs.map → chunk-VG5LP5A4.cjs.map} +1 -1
- package/dist/{chunk-Q2YRJHFB.cjs → chunk-VOFND6ZQ.cjs} +7 -7
- package/dist/chunk-VOFND6ZQ.cjs.map +1 -0
- package/dist/{chunk-JGCKW5RS.js → chunk-X3GEGVW2.js} +5 -5
- package/dist/chunk-X3GEGVW2.js.map +1 -0
- package/dist/{chunk-GDZNTILD.js → chunk-XAYD5NVJ.js} +4 -4
- package/dist/chunk-XAYD5NVJ.js.map +1 -0
- package/dist/{chunk-2SZJQVPN.cjs → chunk-Y4OBXYGW.cjs} +87 -30
- package/dist/chunk-Y4OBXYGW.cjs.map +1 -0
- package/dist/{chunk-E7LXMEKX.js → chunk-ZQECHIBI.js} +3 -3
- package/dist/{chunk-E7LXMEKX.js.map → chunk-ZQECHIBI.js.map} +1 -1
- package/dist/{chunk-E3CAJGJM.js → chunk-ZUK4BY55.js} +6 -6
- package/dist/chunk-ZUK4BY55.js.map +1 -0
- package/dist/{diagnostics-hObcaaFC.d.ts → diagnostics-fyjWjeDa.d.cts} +1 -1
- package/dist/{diagnostics-hObcaaFC.d.cts → diagnostics-fyjWjeDa.d.ts} +1 -1
- package/dist/diagrams/blockdiagram/index.cjs +6 -5
- package/dist/diagrams/blockdiagram/index.d.cts +2 -2
- package/dist/diagrams/blockdiagram/index.d.ts +2 -2
- package/dist/diagrams/blockdiagram/index.js +2 -1
- package/dist/diagrams/circuit/index.cjs +9 -9
- package/dist/diagrams/circuit/index.d.cts +1 -1
- package/dist/diagrams/circuit/index.d.ts +1 -1
- package/dist/diagrams/circuit/index.js +2 -2
- package/dist/diagrams/ecomap/index.cjs +7 -7
- package/dist/diagrams/ecomap/index.d.cts +1 -1
- package/dist/diagrams/ecomap/index.d.ts +1 -1
- package/dist/diagrams/ecomap/index.js +2 -2
- package/dist/diagrams/entity/index.cjs +6 -6
- package/dist/diagrams/entity/index.d.cts +1 -1
- package/dist/diagrams/entity/index.d.ts +1 -1
- package/dist/diagrams/entity/index.js +2 -2
- package/dist/diagrams/fishbone/index.cjs +8 -8
- package/dist/diagrams/fishbone/index.d.cts +1 -1
- package/dist/diagrams/fishbone/index.d.ts +1 -1
- package/dist/diagrams/fishbone/index.js +2 -2
- package/dist/diagrams/flowchart/index.cjs +8 -8
- package/dist/diagrams/flowchart/index.d.cts +2 -2
- package/dist/diagrams/flowchart/index.d.ts +2 -2
- package/dist/diagrams/flowchart/index.js +2 -2
- package/dist/diagrams/genogram/index.cjs +9 -9
- package/dist/diagrams/genogram/index.d.cts +1 -1
- package/dist/diagrams/genogram/index.d.ts +1 -1
- package/dist/diagrams/genogram/index.js +2 -2
- package/dist/diagrams/ladder/index.cjs +6 -6
- package/dist/diagrams/ladder/index.d.cts +1 -1
- package/dist/diagrams/ladder/index.d.ts +1 -1
- package/dist/diagrams/ladder/index.js +2 -2
- package/dist/diagrams/logic/index.cjs +8 -8
- package/dist/diagrams/logic/index.d.cts +1 -1
- package/dist/diagrams/logic/index.d.ts +1 -1
- package/dist/diagrams/logic/index.js +2 -2
- package/dist/diagrams/orgchart/index.cjs +8 -8
- package/dist/diagrams/orgchart/index.d.cts +1 -1
- package/dist/diagrams/orgchart/index.d.ts +1 -1
- package/dist/diagrams/orgchart/index.js +2 -2
- package/dist/diagrams/pedigree/index.cjs +7 -7
- package/dist/diagrams/pedigree/index.d.cts +1 -1
- package/dist/diagrams/pedigree/index.d.ts +1 -1
- package/dist/diagrams/pedigree/index.js +2 -2
- package/dist/diagrams/phylo/index.cjs +7 -7
- package/dist/diagrams/phylo/index.d.cts +1 -1
- package/dist/diagrams/phylo/index.d.ts +1 -1
- package/dist/diagrams/phylo/index.js +2 -2
- package/dist/diagrams/sld/index.cjs +8 -8
- package/dist/diagrams/sld/index.d.cts +1 -1
- package/dist/diagrams/sld/index.d.ts +1 -1
- package/dist/diagrams/sld/index.js +2 -2
- package/dist/diagrams/sociogram/index.cjs +6 -6
- package/dist/diagrams/sociogram/index.d.cts +1 -1
- package/dist/diagrams/sociogram/index.d.ts +1 -1
- package/dist/diagrams/sociogram/index.js +2 -2
- package/dist/diagrams/timing/index.cjs +4 -4
- package/dist/diagrams/timing/index.d.cts +1 -1
- package/dist/diagrams/timing/index.d.ts +1 -1
- package/dist/diagrams/timing/index.js +1 -1
- package/dist/diagrams/venn/index.cjs +9 -9
- package/dist/diagrams/venn/index.d.cts +1 -1
- package/dist/diagrams/venn/index.d.ts +1 -1
- package/dist/diagrams/venn/index.js +2 -2
- package/dist/{index-Cq8y1aaa.d.ts → index-CFaKjWPy.d.ts} +1 -1
- package/dist/{index-BiXWjQht.d.cts → index-DZNmJWGg.d.cts} +1 -1
- package/dist/index.cjs +113 -87
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +49 -23
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +19 -19
- package/dist/react.d.cts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +18 -18
- package/dist/{tools-D5dkAqNy.d.cts → tools-BDNih0Mb.d.ts} +3 -3
- package/dist/{tools-BbTuTWs_.d.ts → tools-C23t_WeN.d.cts} +3 -3
- package/package.json +1 -1
- package/dist/chunk-2R4UXKCT.cjs.map +0 -1
- package/dist/chunk-2SZJQVPN.cjs.map +0 -1
- package/dist/chunk-6L46VIXI.cjs.map +0 -1
- package/dist/chunk-ABCMTAOZ.js.map +0 -1
- package/dist/chunk-AJJYWXZB.cjs.map +0 -1
- package/dist/chunk-B5AQ3CG3.cjs.map +0 -1
- package/dist/chunk-DX44TBFZ.js.map +0 -1
- package/dist/chunk-E3CAJGJM.js.map +0 -1
- package/dist/chunk-GDZNTILD.js.map +0 -1
- package/dist/chunk-IXRPRMHI.js.map +0 -1
- package/dist/chunk-JGCKW5RS.js.map +0 -1
- package/dist/chunk-JIUC4DRS.cjs.map +0 -1
- package/dist/chunk-K2D6VFLP.js.map +0 -1
- package/dist/chunk-KF3DFASA.js.map +0 -1
- package/dist/chunk-LENRV7ZJ.cjs.map +0 -1
- package/dist/chunk-NXU4XKLY.cjs.map +0 -1
- package/dist/chunk-NZT5P2XZ.cjs.map +0 -1
- package/dist/chunk-Q2YRJHFB.cjs.map +0 -1
- package/dist/chunk-QYC6WZEM.cjs.map +0 -1
- package/dist/chunk-UK6HF6PE.js.map +0 -1
- package/dist/chunk-VOJGLBE5.js.map +0 -1
- package/dist/chunk-Z5ML4QYG.js.map +0 -1
package/README.md
CHANGED
|
@@ -671,6 +671,27 @@ consequence "Vapour cloud explosion"
|
|
|
671
671
|
|
|
672
672
|
[Bowtie syntax →](https://schematex.dev/docs/bowtie)
|
|
673
673
|
|
|
674
|
+
### 🏠 Floor plan — *Architectural Graphic Standards plan view*
|
|
675
|
+
|
|
676
|
+
Rooms with real dimensions become poché walls with automatic shared-wall merging; doors get standard swing arcs, windows get glazing lines, and a 93-symbol furniture catalog — residential, kitchen/bath, classroom/office, event/banquet, retail/warehouse, salon/gym, and site/outdoor (`tree`, `car`) — auto-seats its tables (a `round-table-8` *is* 8 countable chairs). L/T/U-shaped rooms via `extend`, stairs with the UP arrow + cut-plane break line, and validation that catches what LLMs actually get wrong — overlapping rooms, doors on non-shared walls, colliding furniture (chair-ring envelopes included).
|
|
677
|
+
|
|
678
|
+
```
|
|
679
|
+
floorplan "Two-Bedroom Apartment — 68 m²" unit m
|
|
680
|
+
room living "Living Room" at 0,0 size 5.2x4.2
|
|
681
|
+
room kitchen "Kitchen" right-of living size 3.0x4.2
|
|
682
|
+
room hall "Hallway" below living size 2.0x2.6
|
|
683
|
+
door hall west at 50% width 1.0
|
|
684
|
+
opening between living kitchen at 35% width 1.2
|
|
685
|
+
door between hall living at 50%
|
|
686
|
+
window living north at 30% width 1.8
|
|
687
|
+
furniture sofa in living at 0.25,2.9
|
|
688
|
+
furniture dining-table in kitchen at 0.5,1.7 size 1.5x0.9
|
|
689
|
+
```
|
|
690
|
+
|
|
691
|
+

|
|
692
|
+
|
|
693
|
+
[Floor plan syntax →](https://schematex.dev/docs/floorplan)
|
|
694
|
+
|
|
674
695
|
## Why SchemaTex?
|
|
675
696
|
|
|
676
697
|
**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,27 +1,27 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
11
|
-
require('../chunk-
|
|
12
|
-
require('../chunk-
|
|
13
|
-
require('../chunk-
|
|
14
|
-
require('../chunk-
|
|
15
|
-
require('../chunk-
|
|
16
|
-
require('../chunk-
|
|
3
|
+
var chunkLFJE64RD_cjs = require('../chunk-LFJE64RD.cjs');
|
|
4
|
+
require('../chunk-AHSSFGDJ.cjs');
|
|
5
|
+
require('../chunk-VOFND6ZQ.cjs');
|
|
6
|
+
require('../chunk-ATE7LD6I.cjs');
|
|
7
|
+
require('../chunk-O6A2GJLI.cjs');
|
|
8
|
+
require('../chunk-IU26USXA.cjs');
|
|
9
|
+
require('../chunk-JYAL26WQ.cjs');
|
|
10
|
+
require('../chunk-IOD2EFMX.cjs');
|
|
11
|
+
require('../chunk-6W6RFZND.cjs');
|
|
12
|
+
require('../chunk-BXS53MLV.cjs');
|
|
13
|
+
require('../chunk-TFNH2NLJ.cjs');
|
|
14
|
+
require('../chunk-MZWVJFTV.cjs');
|
|
15
|
+
require('../chunk-Y4OBXYGW.cjs');
|
|
16
|
+
require('../chunk-AEZVCGH4.cjs');
|
|
17
17
|
require('../chunk-3KRL2EGN.cjs');
|
|
18
|
-
require('../chunk-
|
|
19
|
-
require('../chunk-
|
|
18
|
+
require('../chunk-FFAJQ36U.cjs');
|
|
19
|
+
require('../chunk-C2BNO3CI.cjs');
|
|
20
20
|
require('../chunk-5UCXMYE7.cjs');
|
|
21
|
-
require('../chunk-
|
|
22
|
-
require('../chunk-
|
|
21
|
+
require('../chunk-JHJJT5H5.cjs');
|
|
22
|
+
require('../chunk-VG5LP5A4.cjs');
|
|
23
23
|
require('../chunk-SBB6C4OP.cjs');
|
|
24
|
-
require('../chunk-
|
|
24
|
+
require('../chunk-CAAMBDEN.cjs');
|
|
25
25
|
require('../chunk-VHDSPI6A.cjs');
|
|
26
26
|
require('../chunk-3WNW5Y7P.cjs');
|
|
27
27
|
var ai = require('ai');
|
|
@@ -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 () => chunkLFJE64RD_cjs.listDiagrams()
|
|
35
35
|
}),
|
|
36
36
|
getSyntax: ai.tool({
|
|
37
37
|
description: "Return syntax for one diagram type. Default `detail: canonical` is the compact first-shot generation path: canonical header, preferred forms, rules, and repair checks. Request `detail: reference` only for advanced forms or imported adapters after choosing a type.",
|
|
@@ -46,7 +46,7 @@ var schematexTools = {
|
|
|
46
46
|
execute: async ({
|
|
47
47
|
type,
|
|
48
48
|
detail
|
|
49
|
-
}) =>
|
|
49
|
+
}) => chunkLFJE64RD_cjs.getSyntax(type, { detail })
|
|
50
50
|
}),
|
|
51
51
|
getExamples: ai.tool({
|
|
52
52
|
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.",
|
|
@@ -56,7 +56,7 @@ var schematexTools = {
|
|
|
56
56
|
preferFeatured: zod.z.boolean().optional().describe("Rank featured examples first."),
|
|
57
57
|
maxComplexity: zod.z.number().int().min(1).max(5).optional().describe("Only return examples with complexity <= this value (1=simplest).")
|
|
58
58
|
}),
|
|
59
|
-
execute: async (args) =>
|
|
59
|
+
execute: async (args) => chunkLFJE64RD_cjs.getExamples(args.type, {
|
|
60
60
|
limit: args.limit,
|
|
61
61
|
preferFeatured: args.preferFeatured,
|
|
62
62
|
maxComplexity: args.maxComplexity
|
|
@@ -70,7 +70,7 @@ var schematexTools = {
|
|
|
70
70
|
),
|
|
71
71
|
dsl: zod.z.string().describe("The DSL source text to validate.")
|
|
72
72
|
}),
|
|
73
|
-
execute: async ({ type, dsl }) =>
|
|
73
|
+
execute: async ({ type, dsl }) => chunkLFJE64RD_cjs.validateDsl(type, dsl)
|
|
74
74
|
}),
|
|
75
75
|
renderDsl: ai.tool({
|
|
76
76
|
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.",
|
|
@@ -85,7 +85,7 @@ var schematexTools = {
|
|
|
85
85
|
dsl,
|
|
86
86
|
theme,
|
|
87
87
|
padding
|
|
88
|
-
}) =>
|
|
88
|
+
}) => chunkLFJE64RD_cjs.renderDsl(type, dsl, { theme, padding })
|
|
89
89
|
})
|
|
90
90
|
};
|
|
91
91
|
|
package/dist/ai/ai-sdk.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as ai from 'ai';
|
|
2
|
-
import { c as DiagramListItem, g as GetSyntaxResult, e as GetExamplesResult, V as ValidateDslResult, R as RenderDslResult } from '../tools-
|
|
3
|
-
import '../api-
|
|
4
|
-
import '../diagnostics-
|
|
2
|
+
import { c as DiagramListItem, g as GetSyntaxResult, e as GetExamplesResult, V as ValidateDslResult, R as RenderDslResult } from '../tools-C23t_WeN.cjs';
|
|
3
|
+
import '../api-B7C7qGiG.cjs';
|
|
4
|
+
import '../diagnostics-fyjWjeDa.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
|
-
import { c as DiagramListItem, g as GetSyntaxResult, e as GetExamplesResult, V as ValidateDslResult, R as RenderDslResult } from '../tools-
|
|
3
|
-
import '../api-
|
|
4
|
-
import '../diagnostics-
|
|
2
|
+
import { c as DiagramListItem, g as GetSyntaxResult, e as GetExamplesResult, V as ValidateDslResult, R as RenderDslResult } from '../tools-BDNih0Mb.js';
|
|
3
|
+
import '../api-DXOhuK3e.js';
|
|
4
|
+
import '../diagnostics-fyjWjeDa.js';
|
|
5
5
|
|
|
6
6
|
declare const schematexTools: {
|
|
7
7
|
readonly listDiagrams: ai.Tool<{}, DiagramListItem[]>;
|
package/dist/ai/ai-sdk.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { renderDsl, validateDsl, getExamples, getSyntax, listDiagrams } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
10
|
-
import '../chunk-
|
|
11
|
-
import '../chunk-
|
|
12
|
-
import '../chunk-
|
|
13
|
-
import '../chunk-
|
|
14
|
-
import '../chunk-
|
|
1
|
+
import { renderDsl, validateDsl, getExamples, getSyntax, listDiagrams } from '../chunk-JCJWSW5Y.js';
|
|
2
|
+
import '../chunk-BP6MLXJU.js';
|
|
3
|
+
import '../chunk-ZUK4BY55.js';
|
|
4
|
+
import '../chunk-QHZEGWE7.js';
|
|
5
|
+
import '../chunk-JEQGWH5N.js';
|
|
6
|
+
import '../chunk-X3GEGVW2.js';
|
|
7
|
+
import '../chunk-7P4C5DMD.js';
|
|
8
|
+
import '../chunk-XAYD5NVJ.js';
|
|
9
|
+
import '../chunk-6GHXO3WQ.js';
|
|
10
|
+
import '../chunk-UNLLWCQK.js';
|
|
11
|
+
import '../chunk-PUD7PIY5.js';
|
|
12
|
+
import '../chunk-PZCYFT2A.js';
|
|
13
|
+
import '../chunk-OND4N5ZZ.js';
|
|
14
|
+
import '../chunk-4CLAD7VZ.js';
|
|
15
15
|
import '../chunk-2KTQ75LN.js';
|
|
16
|
-
import '../chunk-
|
|
17
|
-
import '../chunk-
|
|
16
|
+
import '../chunk-ZQECHIBI.js';
|
|
17
|
+
import '../chunk-TDSGQT7R.js';
|
|
18
18
|
import '../chunk-FO7BLCEW.js';
|
|
19
|
-
import '../chunk-
|
|
20
|
-
import '../chunk-
|
|
19
|
+
import '../chunk-MTIZIHWE.js';
|
|
20
|
+
import '../chunk-U4AJLMHC.js';
|
|
21
21
|
import '../chunk-PIV2A3HG.js';
|
|
22
|
-
import '../chunk-
|
|
22
|
+
import '../chunk-D4QZ6UDO.js';
|
|
23
23
|
import '../chunk-TO6PNBT3.js';
|
|
24
24
|
import '../chunk-SYYBKDL7.js';
|
|
25
25
|
import { tool } from 'ai';
|
package/dist/ai/index.cjs
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
11
|
-
require('../chunk-
|
|
12
|
-
require('../chunk-
|
|
13
|
-
require('../chunk-
|
|
14
|
-
require('../chunk-
|
|
15
|
-
require('../chunk-
|
|
16
|
-
require('../chunk-
|
|
3
|
+
var chunkLFJE64RD_cjs = require('../chunk-LFJE64RD.cjs');
|
|
4
|
+
require('../chunk-AHSSFGDJ.cjs');
|
|
5
|
+
require('../chunk-VOFND6ZQ.cjs');
|
|
6
|
+
require('../chunk-ATE7LD6I.cjs');
|
|
7
|
+
require('../chunk-O6A2GJLI.cjs');
|
|
8
|
+
require('../chunk-IU26USXA.cjs');
|
|
9
|
+
require('../chunk-JYAL26WQ.cjs');
|
|
10
|
+
require('../chunk-IOD2EFMX.cjs');
|
|
11
|
+
require('../chunk-6W6RFZND.cjs');
|
|
12
|
+
require('../chunk-BXS53MLV.cjs');
|
|
13
|
+
require('../chunk-TFNH2NLJ.cjs');
|
|
14
|
+
require('../chunk-MZWVJFTV.cjs');
|
|
15
|
+
require('../chunk-Y4OBXYGW.cjs');
|
|
16
|
+
require('../chunk-AEZVCGH4.cjs');
|
|
17
17
|
require('../chunk-3KRL2EGN.cjs');
|
|
18
|
-
require('../chunk-
|
|
19
|
-
require('../chunk-
|
|
18
|
+
require('../chunk-FFAJQ36U.cjs');
|
|
19
|
+
require('../chunk-C2BNO3CI.cjs');
|
|
20
20
|
require('../chunk-5UCXMYE7.cjs');
|
|
21
|
-
require('../chunk-
|
|
22
|
-
require('../chunk-
|
|
21
|
+
require('../chunk-JHJJT5H5.cjs');
|
|
22
|
+
require('../chunk-VG5LP5A4.cjs');
|
|
23
23
|
require('../chunk-SBB6C4OP.cjs');
|
|
24
|
-
require('../chunk-
|
|
24
|
+
require('../chunk-CAAMBDEN.cjs');
|
|
25
25
|
require('../chunk-VHDSPI6A.cjs');
|
|
26
26
|
require('../chunk-3WNW5Y7P.cjs');
|
|
27
27
|
|
|
28
28
|
// src/ai/prompt-context.ts
|
|
29
29
|
function buildPromptContext(type, opts = {}) {
|
|
30
|
-
const resolved =
|
|
30
|
+
const resolved = chunkLFJE64RD_cjs.resolveDiagramType(type) ?? type;
|
|
31
31
|
const detail = opts.detail ?? "canonical";
|
|
32
32
|
const limit = opts.examples ?? 2;
|
|
33
|
-
const { type: canonical, name, standard, syntax } =
|
|
33
|
+
const { type: canonical, name, standard, syntax } = chunkLFJE64RD_cjs.getSyntax(resolved, {
|
|
34
34
|
detail
|
|
35
35
|
});
|
|
36
36
|
const parts = [
|
|
@@ -41,7 +41,7 @@ function buildPromptContext(type, opts = {}) {
|
|
|
41
41
|
];
|
|
42
42
|
let exampleCount = 0;
|
|
43
43
|
if (limit > 0) {
|
|
44
|
-
const examples =
|
|
44
|
+
const examples = chunkLFJE64RD_cjs.getExamples(canonical, {
|
|
45
45
|
preferFeatured: opts.preferFeatured ?? true,
|
|
46
46
|
limit,
|
|
47
47
|
maxComplexity: opts.maxComplexity
|
|
@@ -67,47 +67,47 @@ function buildPromptContext(type, opts = {}) {
|
|
|
67
67
|
|
|
68
68
|
Object.defineProperty(exports, "DIAGRAM_REGISTRY", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkLFJE64RD_cjs.DIAGRAM_REGISTRY; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "DIAGRAM_SINCE", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkLFJE64RD_cjs.DIAGRAM_SINCE; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "getAllDiagramTypes", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkLFJE64RD_cjs.getAllDiagramTypes; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "getDiagramMeta", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkLFJE64RD_cjs.getDiagramMeta; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "getDiagramSince", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkLFJE64RD_cjs.getDiagramSince; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "getExamples", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkLFJE64RD_cjs.getExamples; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "getSyntax", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkLFJE64RD_cjs.getSyntax; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "listDiagrams", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkLFJE64RD_cjs.listDiagrams; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "renderDsl", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkLFJE64RD_cjs.renderDsl; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "resolveDiagramType", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkLFJE64RD_cjs.resolveDiagramType; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "validateDsl", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkLFJE64RD_cjs.validateDsl; }
|
|
111
111
|
});
|
|
112
112
|
exports.buildPromptContext = buildPromptContext;
|
|
113
113
|
//# sourceMappingURL=index.cjs.map
|
package/dist/ai/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as SyntaxDetail } from '../tools-
|
|
2
|
-
export { D as DIAGRAM_REGISTRY, a as DIAGRAM_SINCE, b as DiagramCluster, c as DiagramListItem, d as DiagramMeta, E as Example, G as GetExamplesOptions, e as GetExamplesResult, f as GetSyntaxOptions, g as GetSyntaxResult, R as RenderDslResult, h as SchematexValidationError, i as SyntaxDoc, V as ValidateDslResult, j as getAllDiagramTypes, k as getDiagramMeta, l as getDiagramSince, m as getExamples, n as getSyntax, o as listDiagrams, r as renderDsl, p as resolveDiagramType, v as validateDsl } from '../tools-
|
|
3
|
-
import { a as DiagramType } from '../diagnostics-
|
|
4
|
-
import '../api-
|
|
1
|
+
import { S as SyntaxDetail } from '../tools-C23t_WeN.cjs';
|
|
2
|
+
export { D as DIAGRAM_REGISTRY, a as DIAGRAM_SINCE, b as DiagramCluster, c as DiagramListItem, d as DiagramMeta, E as Example, G as GetExamplesOptions, e as GetExamplesResult, f as GetSyntaxOptions, g as GetSyntaxResult, R as RenderDslResult, h as SchematexValidationError, i as SyntaxDoc, V as ValidateDslResult, j as getAllDiagramTypes, k as getDiagramMeta, l as getDiagramSince, m as getExamples, n as getSyntax, o as listDiagrams, r as renderDsl, p as resolveDiagramType, v as validateDsl } from '../tools-C23t_WeN.cjs';
|
|
3
|
+
import { a as DiagramType } from '../diagnostics-fyjWjeDa.cjs';
|
|
4
|
+
import '../api-B7C7qGiG.cjs';
|
|
5
5
|
|
|
6
6
|
interface BuildPromptContextOptions {
|
|
7
7
|
/** How many few-shot examples to embed. Default 2. Set 0 to omit examples. */
|
package/dist/ai/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as SyntaxDetail } from '../tools-
|
|
2
|
-
export { D as DIAGRAM_REGISTRY, a as DIAGRAM_SINCE, b as DiagramCluster, c as DiagramListItem, d as DiagramMeta, E as Example, G as GetExamplesOptions, e as GetExamplesResult, f as GetSyntaxOptions, g as GetSyntaxResult, R as RenderDslResult, h as SchematexValidationError, i as SyntaxDoc, V as ValidateDslResult, j as getAllDiagramTypes, k as getDiagramMeta, l as getDiagramSince, m as getExamples, n as getSyntax, o as listDiagrams, r as renderDsl, p as resolveDiagramType, v as validateDsl } from '../tools-
|
|
3
|
-
import { a as DiagramType } from '../diagnostics-
|
|
4
|
-
import '../api-
|
|
1
|
+
import { S as SyntaxDetail } from '../tools-BDNih0Mb.js';
|
|
2
|
+
export { D as DIAGRAM_REGISTRY, a as DIAGRAM_SINCE, b as DiagramCluster, c as DiagramListItem, d as DiagramMeta, E as Example, G as GetExamplesOptions, e as GetExamplesResult, f as GetSyntaxOptions, g as GetSyntaxResult, R as RenderDslResult, h as SchematexValidationError, i as SyntaxDoc, V as ValidateDslResult, j as getAllDiagramTypes, k as getDiagramMeta, l as getDiagramSince, m as getExamples, n as getSyntax, o as listDiagrams, r as renderDsl, p as resolveDiagramType, v as validateDsl } from '../tools-BDNih0Mb.js';
|
|
3
|
+
import { a as DiagramType } from '../diagnostics-fyjWjeDa.js';
|
|
4
|
+
import '../api-DXOhuK3e.js';
|
|
5
5
|
|
|
6
6
|
interface BuildPromptContextOptions {
|
|
7
7
|
/** How many few-shot examples to embed. Default 2. Set 0 to omit examples. */
|
package/dist/ai/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { resolveDiagramType, getSyntax, getExamples } from '../chunk-
|
|
2
|
-
export { DIAGRAM_REGISTRY, DIAGRAM_SINCE, getAllDiagramTypes, getDiagramMeta, getDiagramSince, getExamples, getSyntax, listDiagrams, renderDsl, resolveDiagramType, validateDsl } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
10
|
-
import '../chunk-
|
|
11
|
-
import '../chunk-
|
|
12
|
-
import '../chunk-
|
|
13
|
-
import '../chunk-
|
|
14
|
-
import '../chunk-
|
|
15
|
-
import '../chunk-
|
|
1
|
+
import { resolveDiagramType, getSyntax, getExamples } from '../chunk-JCJWSW5Y.js';
|
|
2
|
+
export { DIAGRAM_REGISTRY, DIAGRAM_SINCE, getAllDiagramTypes, getDiagramMeta, getDiagramSince, getExamples, getSyntax, listDiagrams, renderDsl, resolveDiagramType, validateDsl } from '../chunk-JCJWSW5Y.js';
|
|
3
|
+
import '../chunk-BP6MLXJU.js';
|
|
4
|
+
import '../chunk-ZUK4BY55.js';
|
|
5
|
+
import '../chunk-QHZEGWE7.js';
|
|
6
|
+
import '../chunk-JEQGWH5N.js';
|
|
7
|
+
import '../chunk-X3GEGVW2.js';
|
|
8
|
+
import '../chunk-7P4C5DMD.js';
|
|
9
|
+
import '../chunk-XAYD5NVJ.js';
|
|
10
|
+
import '../chunk-6GHXO3WQ.js';
|
|
11
|
+
import '../chunk-UNLLWCQK.js';
|
|
12
|
+
import '../chunk-PUD7PIY5.js';
|
|
13
|
+
import '../chunk-PZCYFT2A.js';
|
|
14
|
+
import '../chunk-OND4N5ZZ.js';
|
|
15
|
+
import '../chunk-4CLAD7VZ.js';
|
|
16
16
|
import '../chunk-2KTQ75LN.js';
|
|
17
|
-
import '../chunk-
|
|
18
|
-
import '../chunk-
|
|
17
|
+
import '../chunk-ZQECHIBI.js';
|
|
18
|
+
import '../chunk-TDSGQT7R.js';
|
|
19
19
|
import '../chunk-FO7BLCEW.js';
|
|
20
|
-
import '../chunk-
|
|
21
|
-
import '../chunk-
|
|
20
|
+
import '../chunk-MTIZIHWE.js';
|
|
21
|
+
import '../chunk-U4AJLMHC.js';
|
|
22
22
|
import '../chunk-PIV2A3HG.js';
|
|
23
|
-
import '../chunk-
|
|
23
|
+
import '../chunk-D4QZ6UDO.js';
|
|
24
24
|
import '../chunk-TO6PNBT3.js';
|
|
25
25
|
import '../chunk-SYYBKDL7.js';
|
|
26
26
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as SchematexParseResult, c as SchematexRenderResult } from './diagnostics-
|
|
1
|
+
import { b as SchematexParseResult, c as SchematexRenderResult } from './diagnostics-fyjWjeDa.cjs';
|
|
2
2
|
|
|
3
3
|
interface SchematexConfig {
|
|
4
|
-
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" | "sequence" | "petri" | "network" | "umlclass" | "faulttree" | "bowtie";
|
|
4
|
+
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" | "sequence" | "petri" | "network" | "umlclass" | "faulttree" | "bowtie" | "floorplan";
|
|
5
5
|
width?: number;
|
|
6
6
|
height?: number;
|
|
7
7
|
padding?: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as SchematexParseResult, c as SchematexRenderResult } from './diagnostics-
|
|
1
|
+
import { b as SchematexParseResult, c as SchematexRenderResult } from './diagnostics-fyjWjeDa.js';
|
|
2
2
|
|
|
3
3
|
interface SchematexConfig {
|
|
4
|
-
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" | "sequence" | "petri" | "network" | "umlclass" | "faulttree" | "bowtie";
|
|
4
|
+
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" | "sequence" | "petri" | "network" | "umlclass" | "faulttree" | "bowtie" | "floorplan";
|
|
5
5
|
width?: number;
|
|
6
6
|
height?: number;
|
|
7
7
|
padding?: number;
|
package/dist/browser.cjs
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
15
|
-
require('./chunk-
|
|
3
|
+
var chunkAHSSFGDJ_cjs = require('./chunk-AHSSFGDJ.cjs');
|
|
4
|
+
require('./chunk-VOFND6ZQ.cjs');
|
|
5
|
+
require('./chunk-ATE7LD6I.cjs');
|
|
6
|
+
require('./chunk-O6A2GJLI.cjs');
|
|
7
|
+
require('./chunk-IU26USXA.cjs');
|
|
8
|
+
require('./chunk-JYAL26WQ.cjs');
|
|
9
|
+
require('./chunk-IOD2EFMX.cjs');
|
|
10
|
+
require('./chunk-6W6RFZND.cjs');
|
|
11
|
+
require('./chunk-BXS53MLV.cjs');
|
|
12
|
+
require('./chunk-TFNH2NLJ.cjs');
|
|
13
|
+
require('./chunk-MZWVJFTV.cjs');
|
|
14
|
+
require('./chunk-Y4OBXYGW.cjs');
|
|
15
|
+
require('./chunk-AEZVCGH4.cjs');
|
|
16
16
|
require('./chunk-3KRL2EGN.cjs');
|
|
17
|
-
require('./chunk-
|
|
18
|
-
require('./chunk-
|
|
17
|
+
require('./chunk-FFAJQ36U.cjs');
|
|
18
|
+
require('./chunk-C2BNO3CI.cjs');
|
|
19
19
|
require('./chunk-5UCXMYE7.cjs');
|
|
20
|
-
require('./chunk-
|
|
21
|
-
require('./chunk-
|
|
20
|
+
require('./chunk-JHJJT5H5.cjs');
|
|
21
|
+
require('./chunk-VG5LP5A4.cjs');
|
|
22
22
|
require('./chunk-SBB6C4OP.cjs');
|
|
23
|
-
require('./chunk-
|
|
23
|
+
require('./chunk-CAAMBDEN.cjs');
|
|
24
24
|
require('./chunk-VHDSPI6A.cjs');
|
|
25
25
|
require('./chunk-3WNW5Y7P.cjs');
|
|
26
26
|
|
|
27
27
|
// src/browser.ts
|
|
28
28
|
function renderToElement(text, config) {
|
|
29
|
-
return svgStringToElement(
|
|
29
|
+
return svgStringToElement(chunkAHSSFGDJ_cjs.render(text, config));
|
|
30
30
|
}
|
|
31
31
|
function renderPreviewToElement(text, config) {
|
|
32
|
-
return svgStringToElement(
|
|
32
|
+
return svgStringToElement(chunkAHSSFGDJ_cjs.renderPreview(text, config));
|
|
33
33
|
}
|
|
34
34
|
function svgStringToElement(svgString) {
|
|
35
35
|
const parser = new DOMParser();
|
|
@@ -42,23 +42,23 @@ function svgStringToElement(svgString) {
|
|
|
42
42
|
return el;
|
|
43
43
|
}
|
|
44
44
|
function renderToContainer(text, container, config) {
|
|
45
|
-
container.innerHTML =
|
|
45
|
+
container.innerHTML = chunkAHSSFGDJ_cjs.render(text, config);
|
|
46
46
|
}
|
|
47
47
|
function renderPreviewToContainer(text, container, config) {
|
|
48
|
-
container.innerHTML =
|
|
48
|
+
container.innerHTML = chunkAHSSFGDJ_cjs.renderPreview(text, config);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
Object.defineProperty(exports, "render", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkAHSSFGDJ_cjs.render; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "renderPreview", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkAHSSFGDJ_cjs.renderPreview; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "renderResult", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkAHSSFGDJ_cjs.renderResult; }
|
|
62
62
|
});
|
|
63
63
|
exports.renderPreviewToContainer = renderPreviewToContainer;
|
|
64
64
|
exports.renderPreviewToElement = renderPreviewToElement;
|
package/dist/browser.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as SchematexConfig } from './api-
|
|
2
|
-
export { r as render, b as renderPreview, c as renderResult } from './api-
|
|
3
|
-
import './diagnostics-
|
|
1
|
+
import { S as SchematexConfig } from './api-B7C7qGiG.cjs';
|
|
2
|
+
export { r as render, b as renderPreview, c as renderResult } from './api-B7C7qGiG.cjs';
|
|
3
|
+
import './diagnostics-fyjWjeDa.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Browser-specific utilities for Schematex.
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as SchematexConfig } from './api-
|
|
2
|
-
export { r as render, b as renderPreview, c as renderResult } from './api-
|
|
3
|
-
import './diagnostics-
|
|
1
|
+
import { S as SchematexConfig } from './api-DXOhuK3e.js';
|
|
2
|
+
export { r as render, b as renderPreview, c as renderResult } from './api-DXOhuK3e.js';
|
|
3
|
+
import './diagnostics-fyjWjeDa.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Browser-specific utilities for Schematex.
|
package/dist/browser.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { render, renderPreview } from './chunk-
|
|
2
|
-
export { render, renderPreview, renderResult } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
14
|
-
import './chunk-
|
|
1
|
+
import { render, renderPreview } from './chunk-BP6MLXJU.js';
|
|
2
|
+
export { render, renderPreview, renderResult } from './chunk-BP6MLXJU.js';
|
|
3
|
+
import './chunk-ZUK4BY55.js';
|
|
4
|
+
import './chunk-QHZEGWE7.js';
|
|
5
|
+
import './chunk-JEQGWH5N.js';
|
|
6
|
+
import './chunk-X3GEGVW2.js';
|
|
7
|
+
import './chunk-7P4C5DMD.js';
|
|
8
|
+
import './chunk-XAYD5NVJ.js';
|
|
9
|
+
import './chunk-6GHXO3WQ.js';
|
|
10
|
+
import './chunk-UNLLWCQK.js';
|
|
11
|
+
import './chunk-PUD7PIY5.js';
|
|
12
|
+
import './chunk-PZCYFT2A.js';
|
|
13
|
+
import './chunk-OND4N5ZZ.js';
|
|
14
|
+
import './chunk-4CLAD7VZ.js';
|
|
15
15
|
import './chunk-2KTQ75LN.js';
|
|
16
|
-
import './chunk-
|
|
17
|
-
import './chunk-
|
|
16
|
+
import './chunk-ZQECHIBI.js';
|
|
17
|
+
import './chunk-TDSGQT7R.js';
|
|
18
18
|
import './chunk-FO7BLCEW.js';
|
|
19
|
-
import './chunk-
|
|
20
|
-
import './chunk-
|
|
19
|
+
import './chunk-MTIZIHWE.js';
|
|
20
|
+
import './chunk-U4AJLMHC.js';
|
|
21
21
|
import './chunk-PIV2A3HG.js';
|
|
22
|
-
import './chunk-
|
|
22
|
+
import './chunk-D4QZ6UDO.js';
|
|
23
23
|
import './chunk-TO6PNBT3.js';
|
|
24
24
|
import './chunk-SYYBKDL7.js';
|
|
25
25
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { firstContentLine } from './chunk-2KTQ75LN.js';
|
|
2
2
|
import { parseLegendDirective, applyLegendOverrides, renderLegend } from './chunk-FO7BLCEW.js';
|
|
3
|
-
import { resolvePersonTheme, STROKE_WIDTH, cssCustomProperties } from './chunk-
|
|
3
|
+
import { resolvePersonTheme, STROKE_WIDTH, cssCustomProperties } from './chunk-D4QZ6UDO.js';
|
|
4
4
|
import { title, desc, group, svgRoot, el, rect, path, defs, line, polygon, text, circle } from './chunk-SYYBKDL7.js';
|
|
5
5
|
|
|
6
6
|
// src/diagrams/pedigree/parser.ts
|
|
@@ -1262,5 +1262,5 @@ var pedigree = {
|
|
|
1262
1262
|
};
|
|
1263
1263
|
|
|
1264
1264
|
export { PedigreeParseError, layoutPedigree, parsePedigree, pedigree, renderPedigree };
|
|
1265
|
-
//# sourceMappingURL=chunk-
|
|
1266
|
-
//# sourceMappingURL=chunk-
|
|
1265
|
+
//# sourceMappingURL=chunk-4CLAD7VZ.js.map
|
|
1266
|
+
//# sourceMappingURL=chunk-4CLAD7VZ.js.map
|