schematex 0.9.13 → 0.9.14
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 +7 -7
- package/dist/ai/ai-sdk.js +2 -2
- package/dist/ai/index.cjs +16 -16
- package/dist/ai/index.js +3 -3
- package/dist/browser.cjs +8 -8
- package/dist/browser.js +2 -2
- package/dist/{chunk-GHMSKPYN.js → chunk-2PRNDY5I.js} +3 -3
- package/dist/{chunk-GHMSKPYN.js.map → chunk-2PRNDY5I.js.map} +1 -1
- package/dist/{chunk-XJ5MTQLJ.cjs → chunk-7ZABGRZZ.cjs} +5 -5
- package/dist/{chunk-XJ5MTQLJ.cjs.map → chunk-7ZABGRZZ.cjs.map} +1 -1
- package/dist/{chunk-WPNMVV3U.js → chunk-JG5CVYXC.js} +52 -5
- package/dist/{chunk-WPNMVV3U.js.map → chunk-JG5CVYXC.js.map} +1 -1
- package/dist/{chunk-KTAEPUAE.cjs → chunk-V5TY3N2W.cjs} +52 -5
- package/dist/{chunk-KTAEPUAE.cjs.map → chunk-V5TY3N2W.cjs.map} +1 -1
- package/dist/index.cjs +37 -37
- package/dist/index.js +2 -2
- package/dist/react.cjs +2 -2
- package/dist/react.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkV5TY3N2W_cjs = require('./chunk-V5TY3N2W.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');
|
|
@@ -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(chunkV5TY3N2W_cjs.GEOMETRY)) {
|
|
116
116
|
let inner;
|
|
117
117
|
try {
|
|
118
|
-
inner =
|
|
118
|
+
inner = chunkV5TY3N2W_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 } = chunkV5TY3N2W_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 = chunkV5TY3N2W_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(chunkV5TY3N2W_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 chunkV5TY3N2W_cjs.bowtie; }
|
|
317
317
|
});
|
|
318
318
|
Object.defineProperty(exports, "causalloop", {
|
|
319
319
|
enumerable: true,
|
|
320
|
-
get: function () { return
|
|
320
|
+
get: function () { return chunkV5TY3N2W_cjs.causalloop; }
|
|
321
321
|
});
|
|
322
322
|
Object.defineProperty(exports, "comparison", {
|
|
323
323
|
enumerable: true,
|
|
324
|
-
get: function () { return
|
|
324
|
+
get: function () { return chunkV5TY3N2W_cjs.comparison; }
|
|
325
325
|
});
|
|
326
326
|
Object.defineProperty(exports, "decisiontree", {
|
|
327
327
|
enumerable: true,
|
|
328
|
-
get: function () { return
|
|
328
|
+
get: function () { return chunkV5TY3N2W_cjs.decisiontree; }
|
|
329
329
|
});
|
|
330
330
|
Object.defineProperty(exports, "epc", {
|
|
331
331
|
enumerable: true,
|
|
332
|
-
get: function () { return
|
|
332
|
+
get: function () { return chunkV5TY3N2W_cjs.epc; }
|
|
333
333
|
});
|
|
334
334
|
Object.defineProperty(exports, "eventtree", {
|
|
335
335
|
enumerable: true,
|
|
336
|
-
get: function () { return
|
|
336
|
+
get: function () { return chunkV5TY3N2W_cjs.eventtree; }
|
|
337
337
|
});
|
|
338
338
|
Object.defineProperty(exports, "faulttree", {
|
|
339
339
|
enumerable: true,
|
|
340
|
-
get: function () { return
|
|
340
|
+
get: function () { return chunkV5TY3N2W_cjs.faulttree; }
|
|
341
341
|
});
|
|
342
342
|
Object.defineProperty(exports, "floorplan", {
|
|
343
343
|
enumerable: true,
|
|
344
|
-
get: function () { return
|
|
344
|
+
get: function () { return chunkV5TY3N2W_cjs.floorplan; }
|
|
345
345
|
});
|
|
346
346
|
Object.defineProperty(exports, "fmea", {
|
|
347
347
|
enumerable: true,
|
|
348
|
-
get: function () { return
|
|
348
|
+
get: function () { return chunkV5TY3N2W_cjs.fmea; }
|
|
349
349
|
});
|
|
350
350
|
Object.defineProperty(exports, "gitgraph", {
|
|
351
351
|
enumerable: true,
|
|
352
|
-
get: function () { return
|
|
352
|
+
get: function () { return chunkV5TY3N2W_cjs.gitgraph; }
|
|
353
353
|
});
|
|
354
354
|
Object.defineProperty(exports, "idef0", {
|
|
355
355
|
enumerable: true,
|
|
356
|
-
get: function () { return
|
|
356
|
+
get: function () { return chunkV5TY3N2W_cjs.idef0; }
|
|
357
357
|
});
|
|
358
358
|
Object.defineProperty(exports, "markov", {
|
|
359
359
|
enumerable: true,
|
|
360
|
-
get: function () { return
|
|
360
|
+
get: function () { return chunkV5TY3N2W_cjs.markov; }
|
|
361
361
|
});
|
|
362
362
|
Object.defineProperty(exports, "network", {
|
|
363
363
|
enumerable: true,
|
|
364
|
-
get: function () { return
|
|
364
|
+
get: function () { return chunkV5TY3N2W_cjs.network; }
|
|
365
365
|
});
|
|
366
366
|
Object.defineProperty(exports, "parse", {
|
|
367
367
|
enumerable: true,
|
|
368
|
-
get: function () { return
|
|
368
|
+
get: function () { return chunkV5TY3N2W_cjs.parse; }
|
|
369
369
|
});
|
|
370
370
|
Object.defineProperty(exports, "parseResult", {
|
|
371
371
|
enumerable: true,
|
|
372
|
-
get: function () { return
|
|
372
|
+
get: function () { return chunkV5TY3N2W_cjs.parseResult; }
|
|
373
373
|
});
|
|
374
374
|
Object.defineProperty(exports, "pert", {
|
|
375
375
|
enumerable: true,
|
|
376
|
-
get: function () { return
|
|
376
|
+
get: function () { return chunkV5TY3N2W_cjs.pert; }
|
|
377
377
|
});
|
|
378
378
|
Object.defineProperty(exports, "petri", {
|
|
379
379
|
enumerable: true,
|
|
380
|
-
get: function () { return
|
|
380
|
+
get: function () { return chunkV5TY3N2W_cjs.petri; }
|
|
381
381
|
});
|
|
382
382
|
Object.defineProperty(exports, "pid", {
|
|
383
383
|
enumerable: true,
|
|
384
|
-
get: function () { return
|
|
384
|
+
get: function () { return chunkV5TY3N2W_cjs.pid; }
|
|
385
385
|
});
|
|
386
386
|
Object.defineProperty(exports, "playbook", {
|
|
387
387
|
enumerable: true,
|
|
388
|
-
get: function () { return
|
|
388
|
+
get: function () { return chunkV5TY3N2W_cjs.playbook; }
|
|
389
389
|
});
|
|
390
390
|
Object.defineProperty(exports, "prisma", {
|
|
391
391
|
enumerable: true,
|
|
392
|
-
get: function () { return
|
|
392
|
+
get: function () { return chunkV5TY3N2W_cjs.prisma; }
|
|
393
393
|
});
|
|
394
394
|
Object.defineProperty(exports, "rbd", {
|
|
395
395
|
enumerable: true,
|
|
396
|
-
get: function () { return
|
|
396
|
+
get: function () { return chunkV5TY3N2W_cjs.rbd; }
|
|
397
397
|
});
|
|
398
398
|
Object.defineProperty(exports, "render", {
|
|
399
399
|
enumerable: true,
|
|
400
|
-
get: function () { return
|
|
400
|
+
get: function () { return chunkV5TY3N2W_cjs.render; }
|
|
401
401
|
});
|
|
402
402
|
Object.defineProperty(exports, "renderPreview", {
|
|
403
403
|
enumerable: true,
|
|
404
|
-
get: function () { return
|
|
404
|
+
get: function () { return chunkV5TY3N2W_cjs.renderPreview; }
|
|
405
405
|
});
|
|
406
406
|
Object.defineProperty(exports, "renderResult", {
|
|
407
407
|
enumerable: true,
|
|
408
|
-
get: function () { return
|
|
408
|
+
get: function () { return chunkV5TY3N2W_cjs.renderResult; }
|
|
409
409
|
});
|
|
410
410
|
Object.defineProperty(exports, "sequence", {
|
|
411
411
|
enumerable: true,
|
|
412
|
-
get: function () { return
|
|
412
|
+
get: function () { return chunkV5TY3N2W_cjs.sequence; }
|
|
413
413
|
});
|
|
414
414
|
Object.defineProperty(exports, "state", {
|
|
415
415
|
enumerable: true,
|
|
416
|
-
get: function () { return
|
|
416
|
+
get: function () { return chunkV5TY3N2W_cjs.state; }
|
|
417
417
|
});
|
|
418
418
|
Object.defineProperty(exports, "threatmodel", {
|
|
419
419
|
enumerable: true,
|
|
420
|
-
get: function () { return
|
|
420
|
+
get: function () { return chunkV5TY3N2W_cjs.threatmodel; }
|
|
421
421
|
});
|
|
422
422
|
Object.defineProperty(exports, "timeline", {
|
|
423
423
|
enumerable: true,
|
|
424
|
-
get: function () { return
|
|
424
|
+
get: function () { return chunkV5TY3N2W_cjs.timeline; }
|
|
425
425
|
});
|
|
426
426
|
Object.defineProperty(exports, "umlclass", {
|
|
427
427
|
enumerable: true,
|
|
428
|
-
get: function () { return
|
|
428
|
+
get: function () { return chunkV5TY3N2W_cjs.umlclass; }
|
|
429
429
|
});
|
|
430
430
|
Object.defineProperty(exports, "usecase", {
|
|
431
431
|
enumerable: true,
|
|
432
|
-
get: function () { return
|
|
432
|
+
get: function () { return chunkV5TY3N2W_cjs.usecase; }
|
|
433
433
|
});
|
|
434
434
|
Object.defineProperty(exports, "welding", {
|
|
435
435
|
enumerable: true,
|
|
436
|
-
get: function () { return
|
|
436
|
+
get: function () { return chunkV5TY3N2W_cjs.welding; }
|
|
437
437
|
});
|
|
438
438
|
Object.defineProperty(exports, "orgchart", {
|
|
439
439
|
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-JG5CVYXC.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-JG5CVYXC.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';
|
package/dist/react.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkV5TY3N2W_cjs = require('./chunk-V5TY3N2W.cjs');
|
|
4
4
|
require('./chunk-UHRNFBWY.cjs');
|
|
5
5
|
require('./chunk-IBZKIMT5.cjs');
|
|
6
6
|
require('./chunk-24YHD4YI.cjs');
|
|
@@ -38,7 +38,7 @@ function SchematexDiagram({
|
|
|
38
38
|
onError
|
|
39
39
|
}) {
|
|
40
40
|
const svg = react.useMemo(() => {
|
|
41
|
-
const result =
|
|
41
|
+
const result = chunkV5TY3N2W_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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "schematex",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.14",
|
|
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",
|