schematex 0.9.16 → 0.9.18
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-24YHD4YI.cjs → chunk-AG4WA4NF.cjs} +9 -7
- package/dist/chunk-AG4WA4NF.cjs.map +1 -0
- package/dist/{chunk-HER5AMAO.js → chunk-DSKPJYQO.js} +3 -3
- package/dist/{chunk-HER5AMAO.js.map → chunk-DSKPJYQO.js.map} +1 -1
- package/dist/{chunk-37WDY4G4.js → chunk-FA6Y4QRS.js} +9 -7
- package/dist/chunk-FA6Y4QRS.js.map +1 -0
- package/dist/{chunk-PYXBTTM4.cjs → chunk-JWILBXGR.cjs} +5 -5
- package/dist/{chunk-PYXBTTM4.cjs.map → chunk-JWILBXGR.cjs.map} +1 -1
- package/dist/{chunk-KTZQRWXK.js → chunk-LZHLFNM3.js} +3 -4
- package/dist/{chunk-KTZQRWXK.js.map → chunk-LZHLFNM3.js.map} +1 -1
- package/dist/{chunk-W3N7EYSK.cjs → chunk-VLK5T7B7.cjs} +4 -5
- package/dist/{chunk-W3N7EYSK.cjs.map → chunk-VLK5T7B7.cjs.map} +1 -1
- package/dist/diagrams/circuit/index.cjs +8 -8
- package/dist/diagrams/circuit/index.js +1 -1
- package/dist/index.cjs +41 -41
- package/dist/index.js +4 -4
- package/dist/react.cjs +3 -3
- package/dist/react.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-24YHD4YI.cjs.map +0 -1
- package/dist/chunk-37WDY4G4.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkAG4WA4NF_cjs = require('../../chunk-AG4WA4NF.cjs');
|
|
4
4
|
require('../../chunk-7OOUU6BL.cjs');
|
|
5
5
|
require('../../chunk-VHDSPI6A.cjs');
|
|
6
6
|
require('../../chunk-3WNW5Y7P.cjs');
|
|
@@ -9,31 +9,31 @@ require('../../chunk-3WNW5Y7P.cjs');
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "circuit", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkAG4WA4NF_cjs.circuit; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "layoutCircuit", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkAG4WA4NF_cjs.layoutCircuit; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "layoutCircuitNetlist", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkAG4WA4NF_cjs.layoutCircuitNetlist; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "lintCircuit", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkAG4WA4NF_cjs.lintCircuit; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "parseCircuit", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkAG4WA4NF_cjs.parseCircuit; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "parseNetlist", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkAG4WA4NF_cjs.parseNetlist; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "renderCircuit", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkAG4WA4NF_cjs.renderCircuit; }
|
|
37
37
|
});
|
|
38
38
|
//# sourceMappingURL=index.cjs.map
|
|
39
39
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { circuit, layoutCircuit, layoutCircuitNetlist, lintCircuit, parseCircuit, parseNetlist, renderCircuit } from '../../chunk-
|
|
1
|
+
export { circuit, layoutCircuit, layoutCircuitNetlist, lintCircuit, parseCircuit, parseNetlist, renderCircuit } from '../../chunk-FA6Y4QRS.js';
|
|
2
2
|
import '../../chunk-JVNV2T2T.js';
|
|
3
3
|
import '../../chunk-TO6PNBT3.js';
|
|
4
4
|
import '../../chunk-SYYBKDL7.js';
|
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVLK5T7B7_cjs = require('./chunk-VLK5T7B7.cjs');
|
|
4
4
|
var chunkUHRNFBWY_cjs = require('./chunk-UHRNFBWY.cjs');
|
|
5
5
|
var chunkIBZKIMT5_cjs = require('./chunk-IBZKIMT5.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkAG4WA4NF_cjs = require('./chunk-AG4WA4NF.cjs');
|
|
7
7
|
var chunkT55OQILI_cjs = require('./chunk-T55OQILI.cjs');
|
|
8
8
|
var chunkUS4QZ7J7_cjs = require('./chunk-US4QZ7J7.cjs');
|
|
9
9
|
var chunkAWUUGDN4_cjs = require('./chunk-AWUUGDN4.cjs');
|
|
@@ -35,8 +35,8 @@ function svgDoc(viewBox, css, inner) {
|
|
|
35
35
|
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}";
|
|
36
36
|
function circuitCatalog() {
|
|
37
37
|
const merged = {
|
|
38
|
-
...
|
|
39
|
-
...
|
|
38
|
+
...chunkAG4WA4NF_cjs.SYMBOLS,
|
|
39
|
+
...chunkAG4WA4NF_cjs.EXTRA_SYMBOLS
|
|
40
40
|
};
|
|
41
41
|
const out = [];
|
|
42
42
|
for (const [id, def] of Object.entries(merged)) {
|
|
@@ -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(chunkVLK5T7B7_cjs.GEOMETRY)) {
|
|
116
116
|
let inner;
|
|
117
117
|
try {
|
|
118
|
-
inner =
|
|
118
|
+
inner = chunkVLK5T7B7_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 } = chunkVLK5T7B7_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 = chunkVLK5T7B7_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(chunkVLK5T7B7_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 chunkVLK5T7B7_cjs.bowtie; }
|
|
317
317
|
});
|
|
318
318
|
Object.defineProperty(exports, "causalloop", {
|
|
319
319
|
enumerable: true,
|
|
320
|
-
get: function () { return
|
|
320
|
+
get: function () { return chunkVLK5T7B7_cjs.causalloop; }
|
|
321
321
|
});
|
|
322
322
|
Object.defineProperty(exports, "comparison", {
|
|
323
323
|
enumerable: true,
|
|
324
|
-
get: function () { return
|
|
324
|
+
get: function () { return chunkVLK5T7B7_cjs.comparison; }
|
|
325
325
|
});
|
|
326
326
|
Object.defineProperty(exports, "decisiontree", {
|
|
327
327
|
enumerable: true,
|
|
328
|
-
get: function () { return
|
|
328
|
+
get: function () { return chunkVLK5T7B7_cjs.decisiontree; }
|
|
329
329
|
});
|
|
330
330
|
Object.defineProperty(exports, "epc", {
|
|
331
331
|
enumerable: true,
|
|
332
|
-
get: function () { return
|
|
332
|
+
get: function () { return chunkVLK5T7B7_cjs.epc; }
|
|
333
333
|
});
|
|
334
334
|
Object.defineProperty(exports, "eventtree", {
|
|
335
335
|
enumerable: true,
|
|
336
|
-
get: function () { return
|
|
336
|
+
get: function () { return chunkVLK5T7B7_cjs.eventtree; }
|
|
337
337
|
});
|
|
338
338
|
Object.defineProperty(exports, "faulttree", {
|
|
339
339
|
enumerable: true,
|
|
340
|
-
get: function () { return
|
|
340
|
+
get: function () { return chunkVLK5T7B7_cjs.faulttree; }
|
|
341
341
|
});
|
|
342
342
|
Object.defineProperty(exports, "floorplan", {
|
|
343
343
|
enumerable: true,
|
|
344
|
-
get: function () { return
|
|
344
|
+
get: function () { return chunkVLK5T7B7_cjs.floorplan; }
|
|
345
345
|
});
|
|
346
346
|
Object.defineProperty(exports, "fmea", {
|
|
347
347
|
enumerable: true,
|
|
348
|
-
get: function () { return
|
|
348
|
+
get: function () { return chunkVLK5T7B7_cjs.fmea; }
|
|
349
349
|
});
|
|
350
350
|
Object.defineProperty(exports, "gitgraph", {
|
|
351
351
|
enumerable: true,
|
|
352
|
-
get: function () { return
|
|
352
|
+
get: function () { return chunkVLK5T7B7_cjs.gitgraph; }
|
|
353
353
|
});
|
|
354
354
|
Object.defineProperty(exports, "idef0", {
|
|
355
355
|
enumerable: true,
|
|
356
|
-
get: function () { return
|
|
356
|
+
get: function () { return chunkVLK5T7B7_cjs.idef0; }
|
|
357
357
|
});
|
|
358
358
|
Object.defineProperty(exports, "markov", {
|
|
359
359
|
enumerable: true,
|
|
360
|
-
get: function () { return
|
|
360
|
+
get: function () { return chunkVLK5T7B7_cjs.markov; }
|
|
361
361
|
});
|
|
362
362
|
Object.defineProperty(exports, "network", {
|
|
363
363
|
enumerable: true,
|
|
364
|
-
get: function () { return
|
|
364
|
+
get: function () { return chunkVLK5T7B7_cjs.network; }
|
|
365
365
|
});
|
|
366
366
|
Object.defineProperty(exports, "parse", {
|
|
367
367
|
enumerable: true,
|
|
368
|
-
get: function () { return
|
|
368
|
+
get: function () { return chunkVLK5T7B7_cjs.parse; }
|
|
369
369
|
});
|
|
370
370
|
Object.defineProperty(exports, "parseResult", {
|
|
371
371
|
enumerable: true,
|
|
372
|
-
get: function () { return
|
|
372
|
+
get: function () { return chunkVLK5T7B7_cjs.parseResult; }
|
|
373
373
|
});
|
|
374
374
|
Object.defineProperty(exports, "pert", {
|
|
375
375
|
enumerable: true,
|
|
376
|
-
get: function () { return
|
|
376
|
+
get: function () { return chunkVLK5T7B7_cjs.pert; }
|
|
377
377
|
});
|
|
378
378
|
Object.defineProperty(exports, "petri", {
|
|
379
379
|
enumerable: true,
|
|
380
|
-
get: function () { return
|
|
380
|
+
get: function () { return chunkVLK5T7B7_cjs.petri; }
|
|
381
381
|
});
|
|
382
382
|
Object.defineProperty(exports, "pid", {
|
|
383
383
|
enumerable: true,
|
|
384
|
-
get: function () { return
|
|
384
|
+
get: function () { return chunkVLK5T7B7_cjs.pid; }
|
|
385
385
|
});
|
|
386
386
|
Object.defineProperty(exports, "playbook", {
|
|
387
387
|
enumerable: true,
|
|
388
|
-
get: function () { return
|
|
388
|
+
get: function () { return chunkVLK5T7B7_cjs.playbook; }
|
|
389
389
|
});
|
|
390
390
|
Object.defineProperty(exports, "prisma", {
|
|
391
391
|
enumerable: true,
|
|
392
|
-
get: function () { return
|
|
392
|
+
get: function () { return chunkVLK5T7B7_cjs.prisma; }
|
|
393
393
|
});
|
|
394
394
|
Object.defineProperty(exports, "rbd", {
|
|
395
395
|
enumerable: true,
|
|
396
|
-
get: function () { return
|
|
396
|
+
get: function () { return chunkVLK5T7B7_cjs.rbd; }
|
|
397
397
|
});
|
|
398
398
|
Object.defineProperty(exports, "render", {
|
|
399
399
|
enumerable: true,
|
|
400
|
-
get: function () { return
|
|
400
|
+
get: function () { return chunkVLK5T7B7_cjs.render; }
|
|
401
401
|
});
|
|
402
402
|
Object.defineProperty(exports, "renderPreview", {
|
|
403
403
|
enumerable: true,
|
|
404
|
-
get: function () { return
|
|
404
|
+
get: function () { return chunkVLK5T7B7_cjs.renderPreview; }
|
|
405
405
|
});
|
|
406
406
|
Object.defineProperty(exports, "renderResult", {
|
|
407
407
|
enumerable: true,
|
|
408
|
-
get: function () { return
|
|
408
|
+
get: function () { return chunkVLK5T7B7_cjs.renderResult; }
|
|
409
409
|
});
|
|
410
410
|
Object.defineProperty(exports, "sequence", {
|
|
411
411
|
enumerable: true,
|
|
412
|
-
get: function () { return
|
|
412
|
+
get: function () { return chunkVLK5T7B7_cjs.sequence; }
|
|
413
413
|
});
|
|
414
414
|
Object.defineProperty(exports, "state", {
|
|
415
415
|
enumerable: true,
|
|
416
|
-
get: function () { return
|
|
416
|
+
get: function () { return chunkVLK5T7B7_cjs.state; }
|
|
417
417
|
});
|
|
418
418
|
Object.defineProperty(exports, "threatmodel", {
|
|
419
419
|
enumerable: true,
|
|
420
|
-
get: function () { return
|
|
420
|
+
get: function () { return chunkVLK5T7B7_cjs.threatmodel; }
|
|
421
421
|
});
|
|
422
422
|
Object.defineProperty(exports, "timeline", {
|
|
423
423
|
enumerable: true,
|
|
424
|
-
get: function () { return
|
|
424
|
+
get: function () { return chunkVLK5T7B7_cjs.timeline; }
|
|
425
425
|
});
|
|
426
426
|
Object.defineProperty(exports, "umlclass", {
|
|
427
427
|
enumerable: true,
|
|
428
|
-
get: function () { return
|
|
428
|
+
get: function () { return chunkVLK5T7B7_cjs.umlclass; }
|
|
429
429
|
});
|
|
430
430
|
Object.defineProperty(exports, "usecase", {
|
|
431
431
|
enumerable: true,
|
|
432
|
-
get: function () { return
|
|
432
|
+
get: function () { return chunkVLK5T7B7_cjs.usecase; }
|
|
433
433
|
});
|
|
434
434
|
Object.defineProperty(exports, "welding", {
|
|
435
435
|
enumerable: true,
|
|
436
|
-
get: function () { return
|
|
436
|
+
get: function () { return chunkVLK5T7B7_cjs.welding; }
|
|
437
437
|
});
|
|
438
438
|
Object.defineProperty(exports, "orgchart", {
|
|
439
439
|
enumerable: true,
|
|
@@ -445,7 +445,7 @@ Object.defineProperty(exports, "siteplan", {
|
|
|
445
445
|
});
|
|
446
446
|
Object.defineProperty(exports, "circuit", {
|
|
447
447
|
enumerable: true,
|
|
448
|
-
get: function () { return
|
|
448
|
+
get: function () { return chunkAG4WA4NF_cjs.circuit; }
|
|
449
449
|
});
|
|
450
450
|
Object.defineProperty(exports, "blockdiagram", {
|
|
451
451
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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-LZHLFNM3.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-LZHLFNM3.js';
|
|
3
3
|
export { orgchart } from './chunk-EB7T5SEO.js';
|
|
4
4
|
export { siteplan } from './chunk-PGMKMIGM.js';
|
|
5
|
-
import { EXTRA_SYMBOLS, SYMBOLS } from './chunk-
|
|
6
|
-
export { circuit } from './chunk-
|
|
5
|
+
import { EXTRA_SYMBOLS, SYMBOLS } from './chunk-FA6Y4QRS.js';
|
|
6
|
+
export { circuit } from './chunk-FA6Y4QRS.js';
|
|
7
7
|
export { blockdiagram } from './chunk-P4U565XH.js';
|
|
8
8
|
export { ladder } from './chunk-I7UYVCKH.js';
|
|
9
9
|
import { renderSymbol, geometryFor } from './chunk-6GVFKOSH.js';
|
package/dist/react.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVLK5T7B7_cjs = require('./chunk-VLK5T7B7.cjs');
|
|
4
4
|
require('./chunk-UHRNFBWY.cjs');
|
|
5
5
|
require('./chunk-IBZKIMT5.cjs');
|
|
6
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-AG4WA4NF.cjs');
|
|
7
7
|
require('./chunk-T55OQILI.cjs');
|
|
8
8
|
require('./chunk-US4QZ7J7.cjs');
|
|
9
9
|
require('./chunk-AWUUGDN4.cjs');
|
|
@@ -38,7 +38,7 @@ function SchematexDiagram({
|
|
|
38
38
|
onError
|
|
39
39
|
}) {
|
|
40
40
|
const svg = react.useMemo(() => {
|
|
41
|
-
const result =
|
|
41
|
+
const result = chunkVLK5T7B7_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,7 +1,7 @@
|
|
|
1
|
-
import { renderResult } from './chunk-
|
|
1
|
+
import { renderResult } from './chunk-LZHLFNM3.js';
|
|
2
2
|
import './chunk-EB7T5SEO.js';
|
|
3
3
|
import './chunk-PGMKMIGM.js';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-FA6Y4QRS.js';
|
|
5
5
|
import './chunk-P4U565XH.js';
|
|
6
6
|
import './chunk-I7UYVCKH.js';
|
|
7
7
|
import './chunk-6GVFKOSH.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "schematex",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.18",
|
|
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",
|