schematex 0.9.14 → 0.9.16
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 +8 -8
- package/dist/ai/ai-sdk.js +3 -3
- package/dist/ai/index.cjs +17 -17
- package/dist/ai/index.js +4 -4
- package/dist/browser.cjs +9 -9
- package/dist/browser.js +3 -3
- package/dist/{chunk-2PRNDY5I.js → chunk-HER5AMAO.js} +3 -3
- package/dist/{chunk-2PRNDY5I.js.map → chunk-HER5AMAO.js.map} +1 -1
- package/dist/{chunk-JG5CVYXC.js → chunk-KTZQRWXK.js} +64 -14
- package/dist/chunk-KTZQRWXK.js.map +1 -0
- package/dist/{chunk-KWY52MLQ.js → chunk-LXQQNNOT.js} +21 -6
- package/dist/chunk-LXQQNNOT.js.map +1 -0
- package/dist/{chunk-CYBBBBMZ.cjs → chunk-PG7TOHPZ.cjs} +21 -6
- package/dist/chunk-PG7TOHPZ.cjs.map +1 -0
- package/dist/{chunk-7ZABGRZZ.cjs → chunk-PYXBTTM4.cjs} +5 -5
- package/dist/{chunk-7ZABGRZZ.cjs.map → chunk-PYXBTTM4.cjs.map} +1 -1
- package/dist/{chunk-V5TY3N2W.cjs → chunk-W3N7EYSK.cjs} +65 -15
- package/dist/chunk-W3N7EYSK.cjs.map +1 -0
- package/dist/diagrams/genogram/index.cjs +8 -8
- package/dist/diagrams/genogram/index.js +1 -1
- package/dist/index.cjs +39 -39
- package/dist/index.js +3 -3
- package/dist/react.cjs +3 -3
- package/dist/react.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-CYBBBBMZ.cjs.map +0 -1
- package/dist/chunk-JG5CVYXC.js.map +0 -1
- package/dist/chunk-KWY52MLQ.js.map +0 -1
- package/dist/chunk-V5TY3N2W.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkPG7TOHPZ_cjs = require('../../chunk-PG7TOHPZ.cjs');
|
|
4
4
|
require('../../chunk-3TGOOZ36.cjs');
|
|
5
5
|
require('../../chunk-5UCXMYE7.cjs');
|
|
6
6
|
require('../../chunk-7OOUU6BL.cjs');
|
|
@@ -10,31 +10,31 @@ require('../../chunk-3WNW5Y7P.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "ParseError", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkPG7TOHPZ_cjs.ParseError; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "genogram", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkPG7TOHPZ_cjs.genogram; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "getRequiredDefs", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkPG7TOHPZ_cjs.getRequiredDefs; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "layoutGenogram", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkPG7TOHPZ_cjs.layoutGenogram; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "parseGenogram", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkPG7TOHPZ_cjs.parseGenogram; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "renderGenogram", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkPG7TOHPZ_cjs.renderGenogram; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "renderIndividualSymbol", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkPG7TOHPZ_cjs.renderIndividualSymbol; }
|
|
38
38
|
});
|
|
39
39
|
//# sourceMappingURL=index.cjs.map
|
|
40
40
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ParseError, genogram, getRequiredDefs, layoutGenogram, parseGenogram, renderGenogram, renderIndividualSymbol } from '../../chunk-
|
|
1
|
+
export { ParseError, genogram, getRequiredDefs, layoutGenogram, parseGenogram, renderGenogram, renderIndividualSymbol } from '../../chunk-LXQQNNOT.js';
|
|
2
2
|
import '../../chunk-6KRSBSNT.js';
|
|
3
3
|
import '../../chunk-FO7BLCEW.js';
|
|
4
4
|
import '../../chunk-JVNV2T2T.js';
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkW3N7EYSK_cjs = require('./chunk-W3N7EYSK.cjs');
|
|
4
4
|
var chunkUHRNFBWY_cjs = require('./chunk-UHRNFBWY.cjs');
|
|
5
5
|
var chunkIBZKIMT5_cjs = require('./chunk-IBZKIMT5.cjs');
|
|
6
6
|
var chunk24YHD4YI_cjs = require('./chunk-24YHD4YI.cjs');
|
|
@@ -11,7 +11,7 @@ var chunk4MANMKQ4_cjs = require('./chunk-4MANMKQ4.cjs');
|
|
|
11
11
|
var chunkAQENURKO_cjs = require('./chunk-AQENURKO.cjs');
|
|
12
12
|
var chunk3JN4762U_cjs = require('./chunk-3JN4762U.cjs');
|
|
13
13
|
var chunkTIHHISCK_cjs = require('./chunk-TIHHISCK.cjs');
|
|
14
|
-
var
|
|
14
|
+
var chunkPG7TOHPZ_cjs = require('./chunk-PG7TOHPZ.cjs');
|
|
15
15
|
var chunkF3JYKM6M_cjs = require('./chunk-F3JYKM6M.cjs');
|
|
16
16
|
var chunk7DQXFTA7_cjs = require('./chunk-7DQXFTA7.cjs');
|
|
17
17
|
require('./chunk-3TGOOZ36.cjs');
|
|
@@ -112,10 +112,10 @@ var PID_CSS = ".lt-pid-equip{fill:#ffffff;stroke:#1d1d1d;stroke-width:1.6}.lt-pi
|
|
|
112
112
|
function pidCatalog() {
|
|
113
113
|
const out = [];
|
|
114
114
|
const pad = 12;
|
|
115
|
-
for (const [id, g] of Object.entries(
|
|
115
|
+
for (const [id, g] of Object.entries(chunkW3N7EYSK_cjs.GEOMETRY)) {
|
|
116
116
|
let inner;
|
|
117
117
|
try {
|
|
118
|
-
inner =
|
|
118
|
+
inner = chunkW3N7EYSK_cjs.renderEquip(id, "");
|
|
119
119
|
} catch {
|
|
120
120
|
continue;
|
|
121
121
|
}
|
|
@@ -225,11 +225,11 @@ var NETWORK_KINDS = [
|
|
|
225
225
|
function networkCatalog() {
|
|
226
226
|
const out = [];
|
|
227
227
|
for (const kind of NETWORK_KINDS) {
|
|
228
|
-
const { w, h } =
|
|
228
|
+
const { w, h } = chunkW3N7EYSK_cjs.iconSize(kind);
|
|
229
229
|
const device = { id: kind, kind, label: humanize(kind), groups: [] };
|
|
230
230
|
let inner;
|
|
231
231
|
try {
|
|
232
|
-
inner =
|
|
232
|
+
inner = chunkW3N7EYSK_cjs.drawDeviceIcon(device, { x: 0, y: 0, w, h });
|
|
233
233
|
} catch {
|
|
234
234
|
continue;
|
|
235
235
|
}
|
|
@@ -246,7 +246,7 @@ function floorplanCatalog() {
|
|
|
246
246
|
const scale = 40;
|
|
247
247
|
const px = (m) => Math.round(m * scale * 100) / 100;
|
|
248
248
|
const out = [];
|
|
249
|
-
for (const [id, def] of Object.entries(
|
|
249
|
+
for (const [id, def] of Object.entries(chunkW3N7EYSK_cjs.FLOORPLAN_SYMBOLS)) {
|
|
250
250
|
const [mt, mr, mb, ml] = def.envelope ?? [0, 0, 0, 0];
|
|
251
251
|
const pad = 5;
|
|
252
252
|
const x0 = -px(ml) - pad;
|
|
@@ -313,127 +313,127 @@ function getSymbolCatalog(type) {
|
|
|
313
313
|
|
|
314
314
|
Object.defineProperty(exports, "bowtie", {
|
|
315
315
|
enumerable: true,
|
|
316
|
-
get: function () { return
|
|
316
|
+
get: function () { return chunkW3N7EYSK_cjs.bowtie; }
|
|
317
317
|
});
|
|
318
318
|
Object.defineProperty(exports, "causalloop", {
|
|
319
319
|
enumerable: true,
|
|
320
|
-
get: function () { return
|
|
320
|
+
get: function () { return chunkW3N7EYSK_cjs.causalloop; }
|
|
321
321
|
});
|
|
322
322
|
Object.defineProperty(exports, "comparison", {
|
|
323
323
|
enumerable: true,
|
|
324
|
-
get: function () { return
|
|
324
|
+
get: function () { return chunkW3N7EYSK_cjs.comparison; }
|
|
325
325
|
});
|
|
326
326
|
Object.defineProperty(exports, "decisiontree", {
|
|
327
327
|
enumerable: true,
|
|
328
|
-
get: function () { return
|
|
328
|
+
get: function () { return chunkW3N7EYSK_cjs.decisiontree; }
|
|
329
329
|
});
|
|
330
330
|
Object.defineProperty(exports, "epc", {
|
|
331
331
|
enumerable: true,
|
|
332
|
-
get: function () { return
|
|
332
|
+
get: function () { return chunkW3N7EYSK_cjs.epc; }
|
|
333
333
|
});
|
|
334
334
|
Object.defineProperty(exports, "eventtree", {
|
|
335
335
|
enumerable: true,
|
|
336
|
-
get: function () { return
|
|
336
|
+
get: function () { return chunkW3N7EYSK_cjs.eventtree; }
|
|
337
337
|
});
|
|
338
338
|
Object.defineProperty(exports, "faulttree", {
|
|
339
339
|
enumerable: true,
|
|
340
|
-
get: function () { return
|
|
340
|
+
get: function () { return chunkW3N7EYSK_cjs.faulttree; }
|
|
341
341
|
});
|
|
342
342
|
Object.defineProperty(exports, "floorplan", {
|
|
343
343
|
enumerable: true,
|
|
344
|
-
get: function () { return
|
|
344
|
+
get: function () { return chunkW3N7EYSK_cjs.floorplan; }
|
|
345
345
|
});
|
|
346
346
|
Object.defineProperty(exports, "fmea", {
|
|
347
347
|
enumerable: true,
|
|
348
|
-
get: function () { return
|
|
348
|
+
get: function () { return chunkW3N7EYSK_cjs.fmea; }
|
|
349
349
|
});
|
|
350
350
|
Object.defineProperty(exports, "gitgraph", {
|
|
351
351
|
enumerable: true,
|
|
352
|
-
get: function () { return
|
|
352
|
+
get: function () { return chunkW3N7EYSK_cjs.gitgraph; }
|
|
353
353
|
});
|
|
354
354
|
Object.defineProperty(exports, "idef0", {
|
|
355
355
|
enumerable: true,
|
|
356
|
-
get: function () { return
|
|
356
|
+
get: function () { return chunkW3N7EYSK_cjs.idef0; }
|
|
357
357
|
});
|
|
358
358
|
Object.defineProperty(exports, "markov", {
|
|
359
359
|
enumerable: true,
|
|
360
|
-
get: function () { return
|
|
360
|
+
get: function () { return chunkW3N7EYSK_cjs.markov; }
|
|
361
361
|
});
|
|
362
362
|
Object.defineProperty(exports, "network", {
|
|
363
363
|
enumerable: true,
|
|
364
|
-
get: function () { return
|
|
364
|
+
get: function () { return chunkW3N7EYSK_cjs.network; }
|
|
365
365
|
});
|
|
366
366
|
Object.defineProperty(exports, "parse", {
|
|
367
367
|
enumerable: true,
|
|
368
|
-
get: function () { return
|
|
368
|
+
get: function () { return chunkW3N7EYSK_cjs.parse; }
|
|
369
369
|
});
|
|
370
370
|
Object.defineProperty(exports, "parseResult", {
|
|
371
371
|
enumerable: true,
|
|
372
|
-
get: function () { return
|
|
372
|
+
get: function () { return chunkW3N7EYSK_cjs.parseResult; }
|
|
373
373
|
});
|
|
374
374
|
Object.defineProperty(exports, "pert", {
|
|
375
375
|
enumerable: true,
|
|
376
|
-
get: function () { return
|
|
376
|
+
get: function () { return chunkW3N7EYSK_cjs.pert; }
|
|
377
377
|
});
|
|
378
378
|
Object.defineProperty(exports, "petri", {
|
|
379
379
|
enumerable: true,
|
|
380
|
-
get: function () { return
|
|
380
|
+
get: function () { return chunkW3N7EYSK_cjs.petri; }
|
|
381
381
|
});
|
|
382
382
|
Object.defineProperty(exports, "pid", {
|
|
383
383
|
enumerable: true,
|
|
384
|
-
get: function () { return
|
|
384
|
+
get: function () { return chunkW3N7EYSK_cjs.pid; }
|
|
385
385
|
});
|
|
386
386
|
Object.defineProperty(exports, "playbook", {
|
|
387
387
|
enumerable: true,
|
|
388
|
-
get: function () { return
|
|
388
|
+
get: function () { return chunkW3N7EYSK_cjs.playbook; }
|
|
389
389
|
});
|
|
390
390
|
Object.defineProperty(exports, "prisma", {
|
|
391
391
|
enumerable: true,
|
|
392
|
-
get: function () { return
|
|
392
|
+
get: function () { return chunkW3N7EYSK_cjs.prisma; }
|
|
393
393
|
});
|
|
394
394
|
Object.defineProperty(exports, "rbd", {
|
|
395
395
|
enumerable: true,
|
|
396
|
-
get: function () { return
|
|
396
|
+
get: function () { return chunkW3N7EYSK_cjs.rbd; }
|
|
397
397
|
});
|
|
398
398
|
Object.defineProperty(exports, "render", {
|
|
399
399
|
enumerable: true,
|
|
400
|
-
get: function () { return
|
|
400
|
+
get: function () { return chunkW3N7EYSK_cjs.render; }
|
|
401
401
|
});
|
|
402
402
|
Object.defineProperty(exports, "renderPreview", {
|
|
403
403
|
enumerable: true,
|
|
404
|
-
get: function () { return
|
|
404
|
+
get: function () { return chunkW3N7EYSK_cjs.renderPreview; }
|
|
405
405
|
});
|
|
406
406
|
Object.defineProperty(exports, "renderResult", {
|
|
407
407
|
enumerable: true,
|
|
408
|
-
get: function () { return
|
|
408
|
+
get: function () { return chunkW3N7EYSK_cjs.renderResult; }
|
|
409
409
|
});
|
|
410
410
|
Object.defineProperty(exports, "sequence", {
|
|
411
411
|
enumerable: true,
|
|
412
|
-
get: function () { return
|
|
412
|
+
get: function () { return chunkW3N7EYSK_cjs.sequence; }
|
|
413
413
|
});
|
|
414
414
|
Object.defineProperty(exports, "state", {
|
|
415
415
|
enumerable: true,
|
|
416
|
-
get: function () { return
|
|
416
|
+
get: function () { return chunkW3N7EYSK_cjs.state; }
|
|
417
417
|
});
|
|
418
418
|
Object.defineProperty(exports, "threatmodel", {
|
|
419
419
|
enumerable: true,
|
|
420
|
-
get: function () { return
|
|
420
|
+
get: function () { return chunkW3N7EYSK_cjs.threatmodel; }
|
|
421
421
|
});
|
|
422
422
|
Object.defineProperty(exports, "timeline", {
|
|
423
423
|
enumerable: true,
|
|
424
|
-
get: function () { return
|
|
424
|
+
get: function () { return chunkW3N7EYSK_cjs.timeline; }
|
|
425
425
|
});
|
|
426
426
|
Object.defineProperty(exports, "umlclass", {
|
|
427
427
|
enumerable: true,
|
|
428
|
-
get: function () { return
|
|
428
|
+
get: function () { return chunkW3N7EYSK_cjs.umlclass; }
|
|
429
429
|
});
|
|
430
430
|
Object.defineProperty(exports, "usecase", {
|
|
431
431
|
enumerable: true,
|
|
432
|
-
get: function () { return
|
|
432
|
+
get: function () { return chunkW3N7EYSK_cjs.usecase; }
|
|
433
433
|
});
|
|
434
434
|
Object.defineProperty(exports, "welding", {
|
|
435
435
|
enumerable: true,
|
|
436
|
-
get: function () { return
|
|
436
|
+
get: function () { return chunkW3N7EYSK_cjs.welding; }
|
|
437
437
|
});
|
|
438
438
|
Object.defineProperty(exports, "orgchart", {
|
|
439
439
|
enumerable: true,
|
|
@@ -477,7 +477,7 @@ Object.defineProperty(exports, "flowchart", {
|
|
|
477
477
|
});
|
|
478
478
|
Object.defineProperty(exports, "genogram", {
|
|
479
479
|
enumerable: true,
|
|
480
|
-
get: function () { return
|
|
480
|
+
get: function () { return chunkPG7TOHPZ_cjs.genogram; }
|
|
481
481
|
});
|
|
482
482
|
Object.defineProperty(exports, "ecomap", {
|
|
483
483
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FLOORPLAN_SYMBOLS, iconSize, drawDeviceIcon, GEOMETRY, renderEquip } from './chunk-
|
|
2
|
-
export { bowtie, causalloop, comparison, decisiontree, epc, eventtree, faulttree, floorplan, fmea, gitgraph, idef0, markov, network, parse, parseResult, pert, petri, pid, playbook, prisma, rbd, render, renderPreview, renderResult, sequence, state, threatmodel, timeline, umlclass, usecase, welding } from './chunk-
|
|
1
|
+
import { FLOORPLAN_SYMBOLS, iconSize, drawDeviceIcon, GEOMETRY, renderEquip } from './chunk-KTZQRWXK.js';
|
|
2
|
+
export { bowtie, causalloop, comparison, decisiontree, epc, eventtree, faulttree, floorplan, fmea, gitgraph, idef0, markov, network, parse, parseResult, pert, petri, pid, playbook, prisma, rbd, render, renderPreview, renderResult, sequence, state, threatmodel, timeline, umlclass, usecase, welding } from './chunk-KTZQRWXK.js';
|
|
3
3
|
export { orgchart } from './chunk-EB7T5SEO.js';
|
|
4
4
|
export { siteplan } from './chunk-PGMKMIGM.js';
|
|
5
5
|
import { EXTRA_SYMBOLS, SYMBOLS } from './chunk-37WDY4G4.js';
|
|
@@ -13,7 +13,7 @@ export { fishbone } from './chunk-2ZHP4TXP.js';
|
|
|
13
13
|
export { venn } from './chunk-KUSW5I2P.js';
|
|
14
14
|
import { iconNames, renderIcon } from './chunk-BGFKTJBZ.js';
|
|
15
15
|
export { flowchart } from './chunk-BGFKTJBZ.js';
|
|
16
|
-
export { genogram } from './chunk-
|
|
16
|
+
export { genogram } from './chunk-LXQQNNOT.js';
|
|
17
17
|
export { ecomap } from './chunk-HZTHSNUN.js';
|
|
18
18
|
export { pedigree } from './chunk-ITNCO3MZ.js';
|
|
19
19
|
import './chunk-6KRSBSNT.js';
|
package/dist/react.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkW3N7EYSK_cjs = require('./chunk-W3N7EYSK.cjs');
|
|
4
4
|
require('./chunk-UHRNFBWY.cjs');
|
|
5
5
|
require('./chunk-IBZKIMT5.cjs');
|
|
6
6
|
require('./chunk-24YHD4YI.cjs');
|
|
@@ -11,7 +11,7 @@ require('./chunk-4MANMKQ4.cjs');
|
|
|
11
11
|
require('./chunk-AQENURKO.cjs');
|
|
12
12
|
require('./chunk-3JN4762U.cjs');
|
|
13
13
|
require('./chunk-TIHHISCK.cjs');
|
|
14
|
-
require('./chunk-
|
|
14
|
+
require('./chunk-PG7TOHPZ.cjs');
|
|
15
15
|
require('./chunk-F3JYKM6M.cjs');
|
|
16
16
|
require('./chunk-7DQXFTA7.cjs');
|
|
17
17
|
require('./chunk-3TGOOZ36.cjs');
|
|
@@ -38,7 +38,7 @@ function SchematexDiagram({
|
|
|
38
38
|
onError
|
|
39
39
|
}) {
|
|
40
40
|
const svg = react.useMemo(() => {
|
|
41
|
-
const result =
|
|
41
|
+
const result = chunkW3N7EYSK_cjs.renderResult(dsl, { type, theme, fontFamily, padding });
|
|
42
42
|
if (!result.ok) {
|
|
43
43
|
onError?.(new Error(result.diagnostics[0]?.message ?? "Schematex render failed"));
|
|
44
44
|
}
|
package/dist/react.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { renderResult } from './chunk-
|
|
1
|
+
import { renderResult } from './chunk-KTZQRWXK.js';
|
|
2
2
|
import './chunk-EB7T5SEO.js';
|
|
3
3
|
import './chunk-PGMKMIGM.js';
|
|
4
4
|
import './chunk-37WDY4G4.js';
|
|
@@ -9,7 +9,7 @@ import './chunk-2IRYXK4M.js';
|
|
|
9
9
|
import './chunk-2ZHP4TXP.js';
|
|
10
10
|
import './chunk-KUSW5I2P.js';
|
|
11
11
|
import './chunk-BGFKTJBZ.js';
|
|
12
|
-
import './chunk-
|
|
12
|
+
import './chunk-LXQQNNOT.js';
|
|
13
13
|
import './chunk-HZTHSNUN.js';
|
|
14
14
|
import './chunk-ITNCO3MZ.js';
|
|
15
15
|
import './chunk-6KRSBSNT.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "schematex",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.16",
|
|
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",
|