schematex 0.9.9 → 0.9.11
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/dist/ai/ai-sdk.cjs +9 -9
- package/dist/ai/ai-sdk.d.cts +3 -3
- package/dist/ai/ai-sdk.d.ts +3 -3
- package/dist/ai/ai-sdk.js +4 -4
- package/dist/ai/index.cjs +18 -18
- package/dist/ai/index.d.cts +4 -4
- package/dist/ai/index.d.ts +4 -4
- package/dist/ai/index.js +5 -5
- package/dist/{api-D_d-JklT.d.ts → api-DAiP83-P.d.ts} +1 -1
- package/dist/{api-DnTyW-6F.d.cts → api-DecITB-t.d.cts} +1 -1
- package/dist/browser.cjs +10 -10
- package/dist/browser.d.cts +3 -3
- package/dist/browser.d.ts +3 -3
- package/dist/browser.js +4 -4
- package/dist/{chunk-IHX6J4HF.js → chunk-32LOZTNP.js} +178 -4
- package/dist/chunk-32LOZTNP.js.map +1 -0
- package/dist/{chunk-RCR4UGKV.js → chunk-4QBC4475.js} +35 -20
- package/dist/chunk-4QBC4475.js.map +1 -0
- package/dist/{chunk-OY2CXLVY.cjs → chunk-5YTFNOKY.cjs} +170 -15
- package/dist/{chunk-OY2CXLVY.cjs.map → chunk-5YTFNOKY.cjs.map} +1 -1
- package/dist/{chunk-EUN6FEGE.cjs → chunk-6ZTPWE22.cjs} +37 -22
- package/dist/chunk-6ZTPWE22.cjs.map +1 -0
- package/dist/{chunk-TXWVJAMR.cjs → chunk-HEGDKO2E.cjs} +178 -4
- package/dist/chunk-HEGDKO2E.cjs.map +1 -0
- package/dist/{chunk-T5QOVX2I.js → chunk-RU3N57OB.js} +168 -13
- package/dist/{chunk-T5QOVX2I.js.map → chunk-RU3N57OB.js.map} +1 -1
- package/dist/{chunk-MVTYPWHO.js → chunk-WTGABYFK.js} +80 -17
- package/dist/chunk-WTGABYFK.js.map +1 -0
- package/dist/{chunk-MXV3XJFH.cjs → chunk-YN7EBTWB.cjs} +80 -17
- package/dist/chunk-YN7EBTWB.cjs.map +1 -0
- package/dist/{diagnostics-D2qkBfFx.d.cts → diagnostics-Bps9pzlF.d.cts} +8 -2
- package/dist/{diagnostics-D2qkBfFx.d.ts → diagnostics-Bps9pzlF.d.ts} +8 -2
- package/dist/diagrams/blockdiagram/index.d.cts +1 -1
- package/dist/diagrams/blockdiagram/index.d.ts +1 -1
- package/dist/diagrams/circuit/index.cjs +8 -8
- 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.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 +4 -1
- package/dist/diagrams/sld/index.d.ts +4 -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-D9u0YRxL.d.ts → index-F6MCisQe.d.ts} +1 -1
- package/dist/{index-JZlLiE6K.d.cts → index-fvBAmlv7.d.cts} +1 -1
- package/dist/index.cjs +43 -43
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +6 -6
- package/dist/react.cjs +4 -4
- package/dist/react.d.cts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +3 -3
- package/dist/{tools-DM0aLCbc.d.ts → tools-CdzIw2Az.d.ts} +2 -2
- package/dist/{tools-DAKYNcPv.d.cts → tools-vyVK2DHa.d.cts} +2 -2
- package/package.json +1 -1
- package/dist/chunk-EUN6FEGE.cjs.map +0 -1
- package/dist/chunk-IHX6J4HF.js.map +0 -1
- package/dist/chunk-MVTYPWHO.js.map +0 -1
- package/dist/chunk-MXV3XJFH.cjs.map +0 -1
- package/dist/chunk-RCR4UGKV.js.map +0 -1
- package/dist/chunk-TXWVJAMR.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk5YTFNOKY_cjs = require('./chunk-5YTFNOKY.cjs');
|
|
4
4
|
var chunkUHRNFBWY_cjs = require('./chunk-UHRNFBWY.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkHEGDKO2E_cjs = require('./chunk-HEGDKO2E.cjs');
|
|
6
6
|
var chunkT55OQILI_cjs = require('./chunk-T55OQILI.cjs');
|
|
7
7
|
var chunkGTCGATOL_cjs = require('./chunk-GTCGATOL.cjs');
|
|
8
|
-
var
|
|
8
|
+
var chunkYN7EBTWB_cjs = require('./chunk-YN7EBTWB.cjs');
|
|
9
9
|
var chunk4MANMKQ4_cjs = require('./chunk-4MANMKQ4.cjs');
|
|
10
10
|
var chunkYFPDZVB7_cjs = require('./chunk-YFPDZVB7.cjs');
|
|
11
11
|
var chunk3JN4762U_cjs = require('./chunk-3JN4762U.cjs');
|
|
@@ -34,8 +34,8 @@ function svgDoc(viewBox, css, inner) {
|
|
|
34
34
|
var CIRCUIT_CSS = ".schematex-circuit-body{stroke:#0f172a;stroke-width:1.75;fill:none;stroke-linejoin:round;stroke-linecap:round}.schematex-circuit-fill{stroke:#0f172a;stroke-width:1.5;fill:#0f172a}.schematex-circuit-wire{stroke:#0f172a;stroke-width:1.75;fill:none;stroke-linecap:square}";
|
|
35
35
|
function circuitCatalog() {
|
|
36
36
|
const merged = {
|
|
37
|
-
...
|
|
38
|
-
...
|
|
37
|
+
...chunkHEGDKO2E_cjs.SYMBOLS,
|
|
38
|
+
...chunkHEGDKO2E_cjs.EXTRA_SYMBOLS
|
|
39
39
|
};
|
|
40
40
|
const out = [];
|
|
41
41
|
for (const [id, def] of Object.entries(merged)) {
|
|
@@ -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 = chunkYN7EBTWB_cjs.renderSymbol(type);
|
|
95
95
|
} catch {
|
|
96
96
|
continue;
|
|
97
97
|
}
|
|
98
|
-
const g =
|
|
98
|
+
const g = chunkYN7EBTWB_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(chunk5YTFNOKY_cjs.GEOMETRY)) {
|
|
115
115
|
let inner;
|
|
116
116
|
try {
|
|
117
|
-
inner =
|
|
117
|
+
inner = chunk5YTFNOKY_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 } = chunk5YTFNOKY_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 = chunk5YTFNOKY_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(chunk5YTFNOKY_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,119 +312,119 @@ function getSymbolCatalog(type) {
|
|
|
312
312
|
|
|
313
313
|
Object.defineProperty(exports, "bowtie", {
|
|
314
314
|
enumerable: true,
|
|
315
|
-
get: function () { return
|
|
315
|
+
get: function () { return chunk5YTFNOKY_cjs.bowtie; }
|
|
316
316
|
});
|
|
317
317
|
Object.defineProperty(exports, "causalloop", {
|
|
318
318
|
enumerable: true,
|
|
319
|
-
get: function () { return
|
|
319
|
+
get: function () { return chunk5YTFNOKY_cjs.causalloop; }
|
|
320
320
|
});
|
|
321
321
|
Object.defineProperty(exports, "comparison", {
|
|
322
322
|
enumerable: true,
|
|
323
|
-
get: function () { return
|
|
323
|
+
get: function () { return chunk5YTFNOKY_cjs.comparison; }
|
|
324
324
|
});
|
|
325
325
|
Object.defineProperty(exports, "decisiontree", {
|
|
326
326
|
enumerable: true,
|
|
327
|
-
get: function () { return
|
|
327
|
+
get: function () { return chunk5YTFNOKY_cjs.decisiontree; }
|
|
328
328
|
});
|
|
329
329
|
Object.defineProperty(exports, "epc", {
|
|
330
330
|
enumerable: true,
|
|
331
|
-
get: function () { return
|
|
331
|
+
get: function () { return chunk5YTFNOKY_cjs.epc; }
|
|
332
332
|
});
|
|
333
333
|
Object.defineProperty(exports, "eventtree", {
|
|
334
334
|
enumerable: true,
|
|
335
|
-
get: function () { return
|
|
335
|
+
get: function () { return chunk5YTFNOKY_cjs.eventtree; }
|
|
336
336
|
});
|
|
337
337
|
Object.defineProperty(exports, "faulttree", {
|
|
338
338
|
enumerable: true,
|
|
339
|
-
get: function () { return
|
|
339
|
+
get: function () { return chunk5YTFNOKY_cjs.faulttree; }
|
|
340
340
|
});
|
|
341
341
|
Object.defineProperty(exports, "fmea", {
|
|
342
342
|
enumerable: true,
|
|
343
|
-
get: function () { return
|
|
343
|
+
get: function () { return chunk5YTFNOKY_cjs.fmea; }
|
|
344
344
|
});
|
|
345
345
|
Object.defineProperty(exports, "gitgraph", {
|
|
346
346
|
enumerable: true,
|
|
347
|
-
get: function () { return
|
|
347
|
+
get: function () { return chunk5YTFNOKY_cjs.gitgraph; }
|
|
348
348
|
});
|
|
349
349
|
Object.defineProperty(exports, "idef0", {
|
|
350
350
|
enumerable: true,
|
|
351
|
-
get: function () { return
|
|
351
|
+
get: function () { return chunk5YTFNOKY_cjs.idef0; }
|
|
352
352
|
});
|
|
353
353
|
Object.defineProperty(exports, "markov", {
|
|
354
354
|
enumerable: true,
|
|
355
|
-
get: function () { return
|
|
355
|
+
get: function () { return chunk5YTFNOKY_cjs.markov; }
|
|
356
356
|
});
|
|
357
357
|
Object.defineProperty(exports, "network", {
|
|
358
358
|
enumerable: true,
|
|
359
|
-
get: function () { return
|
|
359
|
+
get: function () { return chunk5YTFNOKY_cjs.network; }
|
|
360
360
|
});
|
|
361
361
|
Object.defineProperty(exports, "parse", {
|
|
362
362
|
enumerable: true,
|
|
363
|
-
get: function () { return
|
|
363
|
+
get: function () { return chunk5YTFNOKY_cjs.parse; }
|
|
364
364
|
});
|
|
365
365
|
Object.defineProperty(exports, "parseResult", {
|
|
366
366
|
enumerable: true,
|
|
367
|
-
get: function () { return
|
|
367
|
+
get: function () { return chunk5YTFNOKY_cjs.parseResult; }
|
|
368
368
|
});
|
|
369
369
|
Object.defineProperty(exports, "pert", {
|
|
370
370
|
enumerable: true,
|
|
371
|
-
get: function () { return
|
|
371
|
+
get: function () { return chunk5YTFNOKY_cjs.pert; }
|
|
372
372
|
});
|
|
373
373
|
Object.defineProperty(exports, "petri", {
|
|
374
374
|
enumerable: true,
|
|
375
|
-
get: function () { return
|
|
375
|
+
get: function () { return chunk5YTFNOKY_cjs.petri; }
|
|
376
376
|
});
|
|
377
377
|
Object.defineProperty(exports, "pid", {
|
|
378
378
|
enumerable: true,
|
|
379
|
-
get: function () { return
|
|
379
|
+
get: function () { return chunk5YTFNOKY_cjs.pid; }
|
|
380
380
|
});
|
|
381
381
|
Object.defineProperty(exports, "prisma", {
|
|
382
382
|
enumerable: true,
|
|
383
|
-
get: function () { return
|
|
383
|
+
get: function () { return chunk5YTFNOKY_cjs.prisma; }
|
|
384
384
|
});
|
|
385
385
|
Object.defineProperty(exports, "rbd", {
|
|
386
386
|
enumerable: true,
|
|
387
|
-
get: function () { return
|
|
387
|
+
get: function () { return chunk5YTFNOKY_cjs.rbd; }
|
|
388
388
|
});
|
|
389
389
|
Object.defineProperty(exports, "render", {
|
|
390
390
|
enumerable: true,
|
|
391
|
-
get: function () { return
|
|
391
|
+
get: function () { return chunk5YTFNOKY_cjs.render; }
|
|
392
392
|
});
|
|
393
393
|
Object.defineProperty(exports, "renderPreview", {
|
|
394
394
|
enumerable: true,
|
|
395
|
-
get: function () { return
|
|
395
|
+
get: function () { return chunk5YTFNOKY_cjs.renderPreview; }
|
|
396
396
|
});
|
|
397
397
|
Object.defineProperty(exports, "renderResult", {
|
|
398
398
|
enumerable: true,
|
|
399
|
-
get: function () { return
|
|
399
|
+
get: function () { return chunk5YTFNOKY_cjs.renderResult; }
|
|
400
400
|
});
|
|
401
401
|
Object.defineProperty(exports, "sequence", {
|
|
402
402
|
enumerable: true,
|
|
403
|
-
get: function () { return
|
|
403
|
+
get: function () { return chunk5YTFNOKY_cjs.sequence; }
|
|
404
404
|
});
|
|
405
405
|
Object.defineProperty(exports, "state", {
|
|
406
406
|
enumerable: true,
|
|
407
|
-
get: function () { return
|
|
407
|
+
get: function () { return chunk5YTFNOKY_cjs.state; }
|
|
408
408
|
});
|
|
409
409
|
Object.defineProperty(exports, "threatmodel", {
|
|
410
410
|
enumerable: true,
|
|
411
|
-
get: function () { return
|
|
411
|
+
get: function () { return chunk5YTFNOKY_cjs.threatmodel; }
|
|
412
412
|
});
|
|
413
413
|
Object.defineProperty(exports, "timeline", {
|
|
414
414
|
enumerable: true,
|
|
415
|
-
get: function () { return
|
|
415
|
+
get: function () { return chunk5YTFNOKY_cjs.timeline; }
|
|
416
416
|
});
|
|
417
417
|
Object.defineProperty(exports, "umlclass", {
|
|
418
418
|
enumerable: true,
|
|
419
|
-
get: function () { return
|
|
419
|
+
get: function () { return chunk5YTFNOKY_cjs.umlclass; }
|
|
420
420
|
});
|
|
421
421
|
Object.defineProperty(exports, "usecase", {
|
|
422
422
|
enumerable: true,
|
|
423
|
-
get: function () { return
|
|
423
|
+
get: function () { return chunk5YTFNOKY_cjs.usecase; }
|
|
424
424
|
});
|
|
425
425
|
Object.defineProperty(exports, "welding", {
|
|
426
426
|
enumerable: true,
|
|
427
|
-
get: function () { return
|
|
427
|
+
get: function () { return chunk5YTFNOKY_cjs.welding; }
|
|
428
428
|
});
|
|
429
429
|
Object.defineProperty(exports, "orgchart", {
|
|
430
430
|
enumerable: true,
|
|
@@ -432,7 +432,7 @@ Object.defineProperty(exports, "orgchart", {
|
|
|
432
432
|
});
|
|
433
433
|
Object.defineProperty(exports, "circuit", {
|
|
434
434
|
enumerable: true,
|
|
435
|
-
get: function () { return
|
|
435
|
+
get: function () { return chunkHEGDKO2E_cjs.circuit; }
|
|
436
436
|
});
|
|
437
437
|
Object.defineProperty(exports, "blockdiagram", {
|
|
438
438
|
enumerable: true,
|
|
@@ -444,7 +444,7 @@ Object.defineProperty(exports, "ladder", {
|
|
|
444
444
|
});
|
|
445
445
|
Object.defineProperty(exports, "sld", {
|
|
446
446
|
enumerable: true,
|
|
447
|
-
get: function () { return
|
|
447
|
+
get: function () { return chunkYN7EBTWB_cjs.sld; }
|
|
448
448
|
});
|
|
449
449
|
Object.defineProperty(exports, "entity", {
|
|
450
450
|
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-DecITB-t.cjs';
|
|
2
|
+
import { D as DiagramPlugin, a as DiagramType } from './diagnostics-Bps9pzlF.cjs';
|
|
3
|
+
export { S as SchematexDiagnostic, b as SchematexParseResult, c as SchematexRenderResult, d as SchematexResultStatus } from './diagnostics-Bps9pzlF.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-fvBAmlv7.cjs';
|
|
19
19
|
export { orgchart } from './diagrams/orgchart/index.cjs';
|
|
20
20
|
|
|
21
21
|
declare const decisiontree: DiagramPlugin;
|
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-DAiP83-P.js';
|
|
2
|
+
import { D as DiagramPlugin, a as DiagramType } from './diagnostics-Bps9pzlF.js';
|
|
3
|
+
export { S as SchematexDiagnostic, b as SchematexParseResult, c as SchematexRenderResult, d as SchematexResultStatus } from './diagnostics-Bps9pzlF.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-F6MCisQe.js';
|
|
19
19
|
export { orgchart } from './diagrams/orgchart/index.js';
|
|
20
20
|
|
|
21
21
|
declare const decisiontree: DiagramPlugin;
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { FLOORPLAN_SYMBOLS, iconSize, drawDeviceIcon, GEOMETRY, renderEquip } from './chunk-
|
|
2
|
-
export { bowtie, causalloop, comparison, 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-
|
|
1
|
+
import { FLOORPLAN_SYMBOLS, iconSize, drawDeviceIcon, GEOMETRY, renderEquip } from './chunk-RU3N57OB.js';
|
|
2
|
+
export { bowtie, causalloop, comparison, 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-RU3N57OB.js';
|
|
3
3
|
export { orgchart } from './chunk-EB7T5SEO.js';
|
|
4
|
-
import { EXTRA_SYMBOLS, SYMBOLS } from './chunk-
|
|
5
|
-
export { circuit } from './chunk-
|
|
4
|
+
import { EXTRA_SYMBOLS, SYMBOLS } from './chunk-32LOZTNP.js';
|
|
5
|
+
export { circuit } from './chunk-32LOZTNP.js';
|
|
6
6
|
export { blockdiagram } from './chunk-P4U565XH.js';
|
|
7
7
|
export { ladder } from './chunk-W4UVDMUC.js';
|
|
8
|
-
import { renderSymbol, geometryFor } from './chunk-
|
|
9
|
-
export { sld } from './chunk-
|
|
8
|
+
import { renderSymbol, geometryFor } from './chunk-WTGABYFK.js';
|
|
9
|
+
export { sld } from './chunk-WTGABYFK.js';
|
|
10
10
|
export { entity } from './chunk-2IRYXK4M.js';
|
|
11
11
|
export { fishbone } from './chunk-NP7N3DZG.js';
|
|
12
12
|
export { venn } from './chunk-KUSW5I2P.js';
|
package/dist/react.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk5YTFNOKY_cjs = require('./chunk-5YTFNOKY.cjs');
|
|
4
4
|
require('./chunk-UHRNFBWY.cjs');
|
|
5
|
-
require('./chunk-
|
|
5
|
+
require('./chunk-HEGDKO2E.cjs');
|
|
6
6
|
require('./chunk-T55OQILI.cjs');
|
|
7
7
|
require('./chunk-GTCGATOL.cjs');
|
|
8
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-YN7EBTWB.cjs');
|
|
9
9
|
require('./chunk-4MANMKQ4.cjs');
|
|
10
10
|
require('./chunk-YFPDZVB7.cjs');
|
|
11
11
|
require('./chunk-3JN4762U.cjs');
|
|
@@ -37,7 +37,7 @@ function SchematexDiagram({
|
|
|
37
37
|
onError
|
|
38
38
|
}) {
|
|
39
39
|
const svg = react.useMemo(() => {
|
|
40
|
-
const result =
|
|
40
|
+
const result = chunk5YTFNOKY_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-DecITB-t.cjs';
|
|
3
|
+
import './diagnostics-Bps9pzlF.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-DAiP83-P.js';
|
|
3
|
+
import './diagnostics-Bps9pzlF.js';
|
|
4
4
|
|
|
5
5
|
interface SchematexDiagramProps {
|
|
6
6
|
/** DSL text to render */
|
package/dist/react.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { renderResult } from './chunk-
|
|
1
|
+
import { renderResult } from './chunk-RU3N57OB.js';
|
|
2
2
|
import './chunk-EB7T5SEO.js';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-32LOZTNP.js';
|
|
4
4
|
import './chunk-P4U565XH.js';
|
|
5
5
|
import './chunk-W4UVDMUC.js';
|
|
6
|
-
import './chunk-
|
|
6
|
+
import './chunk-WTGABYFK.js';
|
|
7
7
|
import './chunk-2IRYXK4M.js';
|
|
8
8
|
import './chunk-NP7N3DZG.js';
|
|
9
9
|
import './chunk-KUSW5I2P.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SchematexConfig } from './api-
|
|
2
|
-
import { a as DiagramType } from './diagnostics-
|
|
1
|
+
import { S as SchematexConfig } from './api-DAiP83-P.js';
|
|
2
|
+
import { a as DiagramType } from './diagnostics-Bps9pzlF.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Diagram registry — metadata for every diagram type Schematex supports.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SchematexConfig } from './api-
|
|
2
|
-
import { a as DiagramType } from './diagnostics-
|
|
1
|
+
import { S as SchematexConfig } from './api-DecITB-t.cjs';
|
|
2
|
+
import { a as DiagramType } from './diagnostics-Bps9pzlF.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Diagram registry — metadata for every diagram type Schematex supports.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "schematex",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.11",
|
|
4
4
|
"description": "Every diagram a doctor, engineer, or lawyer would actually use. 36 industry-standard diagrams (genogram, pedigree, ladder logic, SLD, FBD, SFC, P&ID, UML class, UML use case, UML sequence, fault tree, bowtie, PRISMA, phylo, fishbone, entity structure, ...) from a text DSL. Free, fully open source, made for AI. Pure SVG, zero dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|