schematex 0.6.9 → 0.6.10
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.d.cts +1 -1
- package/dist/ai/ai-sdk.d.ts +1 -1
- package/dist/ai/ai-sdk.js +2 -2
- package/dist/ai/index.cjs +13 -13
- package/dist/ai/index.js +2 -2
- package/dist/browser.cjs +8 -8
- package/dist/browser.js +2 -2
- package/dist/{chunk-5IZL57YJ.cjs → chunk-3YRYBTLG.cjs} +59 -15
- package/dist/chunk-3YRYBTLG.cjs.map +1 -0
- package/dist/{chunk-3DPWFWQU.js → chunk-6AWASOFO.js} +59 -15
- package/dist/chunk-6AWASOFO.js.map +1 -0
- package/dist/{chunk-25TO5A4F.cjs → chunk-DZGA25O5.cjs} +5 -5
- package/dist/{chunk-25TO5A4F.cjs.map → chunk-DZGA25O5.cjs.map} +1 -1
- package/dist/{chunk-Q5V4LUQR.js → chunk-X4P4HKHP.js} +3 -3
- package/dist/{chunk-Q5V4LUQR.js.map → chunk-X4P4HKHP.js.map} +1 -1
- package/dist/index.cjs +23 -23
- 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/chunk-3DPWFWQU.js.map +0 -1
- package/dist/chunk-5IZL57YJ.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk3YRYBTLG_cjs = require('./chunk-3YRYBTLG.cjs');
|
|
4
4
|
var chunkUHPGWO77_cjs = require('./chunk-UHPGWO77.cjs');
|
|
5
5
|
var chunkJ3EPFZPX_cjs = require('./chunk-J3EPFZPX.cjs');
|
|
6
6
|
var chunkSHMG7BVF_cjs = require('./chunk-SHMG7BVF.cjs');
|
|
@@ -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(chunk3YRYBTLG_cjs.GEOMETRY)) {
|
|
115
115
|
let inner;
|
|
116
116
|
try {
|
|
117
|
-
inner =
|
|
117
|
+
inner = chunk3YRYBTLG_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 } = chunk3YRYBTLG_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 = chunk3YRYBTLG_cjs.drawDeviceIcon(device, { x: 0, y: 0, w, h });
|
|
232
232
|
} catch {
|
|
233
233
|
continue;
|
|
234
234
|
}
|
|
@@ -286,75 +286,75 @@ function getSymbolCatalog(type) {
|
|
|
286
286
|
|
|
287
287
|
Object.defineProperty(exports, "bowtie", {
|
|
288
288
|
enumerable: true,
|
|
289
|
-
get: function () { return
|
|
289
|
+
get: function () { return chunk3YRYBTLG_cjs.bowtie; }
|
|
290
290
|
});
|
|
291
291
|
Object.defineProperty(exports, "decisiontree", {
|
|
292
292
|
enumerable: true,
|
|
293
|
-
get: function () { return
|
|
293
|
+
get: function () { return chunk3YRYBTLG_cjs.decisiontree; }
|
|
294
294
|
});
|
|
295
295
|
Object.defineProperty(exports, "faulttree", {
|
|
296
296
|
enumerable: true,
|
|
297
|
-
get: function () { return
|
|
297
|
+
get: function () { return chunk3YRYBTLG_cjs.faulttree; }
|
|
298
298
|
});
|
|
299
299
|
Object.defineProperty(exports, "network", {
|
|
300
300
|
enumerable: true,
|
|
301
|
-
get: function () { return
|
|
301
|
+
get: function () { return chunk3YRYBTLG_cjs.network; }
|
|
302
302
|
});
|
|
303
303
|
Object.defineProperty(exports, "parse", {
|
|
304
304
|
enumerable: true,
|
|
305
|
-
get: function () { return
|
|
305
|
+
get: function () { return chunk3YRYBTLG_cjs.parse; }
|
|
306
306
|
});
|
|
307
307
|
Object.defineProperty(exports, "parseResult", {
|
|
308
308
|
enumerable: true,
|
|
309
|
-
get: function () { return
|
|
309
|
+
get: function () { return chunk3YRYBTLG_cjs.parseResult; }
|
|
310
310
|
});
|
|
311
311
|
Object.defineProperty(exports, "pert", {
|
|
312
312
|
enumerable: true,
|
|
313
|
-
get: function () { return
|
|
313
|
+
get: function () { return chunk3YRYBTLG_cjs.pert; }
|
|
314
314
|
});
|
|
315
315
|
Object.defineProperty(exports, "petri", {
|
|
316
316
|
enumerable: true,
|
|
317
|
-
get: function () { return
|
|
317
|
+
get: function () { return chunk3YRYBTLG_cjs.petri; }
|
|
318
318
|
});
|
|
319
319
|
Object.defineProperty(exports, "pid", {
|
|
320
320
|
enumerable: true,
|
|
321
|
-
get: function () { return
|
|
321
|
+
get: function () { return chunk3YRYBTLG_cjs.pid; }
|
|
322
322
|
});
|
|
323
323
|
Object.defineProperty(exports, "prisma", {
|
|
324
324
|
enumerable: true,
|
|
325
|
-
get: function () { return
|
|
325
|
+
get: function () { return chunk3YRYBTLG_cjs.prisma; }
|
|
326
326
|
});
|
|
327
327
|
Object.defineProperty(exports, "render", {
|
|
328
328
|
enumerable: true,
|
|
329
|
-
get: function () { return
|
|
329
|
+
get: function () { return chunk3YRYBTLG_cjs.render; }
|
|
330
330
|
});
|
|
331
331
|
Object.defineProperty(exports, "renderPreview", {
|
|
332
332
|
enumerable: true,
|
|
333
|
-
get: function () { return
|
|
333
|
+
get: function () { return chunk3YRYBTLG_cjs.renderPreview; }
|
|
334
334
|
});
|
|
335
335
|
Object.defineProperty(exports, "renderResult", {
|
|
336
336
|
enumerable: true,
|
|
337
|
-
get: function () { return
|
|
337
|
+
get: function () { return chunk3YRYBTLG_cjs.renderResult; }
|
|
338
338
|
});
|
|
339
339
|
Object.defineProperty(exports, "sequence", {
|
|
340
340
|
enumerable: true,
|
|
341
|
-
get: function () { return
|
|
341
|
+
get: function () { return chunk3YRYBTLG_cjs.sequence; }
|
|
342
342
|
});
|
|
343
343
|
Object.defineProperty(exports, "state", {
|
|
344
344
|
enumerable: true,
|
|
345
|
-
get: function () { return
|
|
345
|
+
get: function () { return chunk3YRYBTLG_cjs.state; }
|
|
346
346
|
});
|
|
347
347
|
Object.defineProperty(exports, "timeline", {
|
|
348
348
|
enumerable: true,
|
|
349
|
-
get: function () { return
|
|
349
|
+
get: function () { return chunk3YRYBTLG_cjs.timeline; }
|
|
350
350
|
});
|
|
351
351
|
Object.defineProperty(exports, "umlclass", {
|
|
352
352
|
enumerable: true,
|
|
353
|
-
get: function () { return
|
|
353
|
+
get: function () { return chunk3YRYBTLG_cjs.umlclass; }
|
|
354
354
|
});
|
|
355
355
|
Object.defineProperty(exports, "usecase", {
|
|
356
356
|
enumerable: true,
|
|
357
|
-
get: function () { return
|
|
357
|
+
get: function () { return chunk3YRYBTLG_cjs.usecase; }
|
|
358
358
|
});
|
|
359
359
|
Object.defineProperty(exports, "orgchart", {
|
|
360
360
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { iconSize, drawDeviceIcon, GEOMETRY, renderEquip } from './chunk-
|
|
2
|
-
export { bowtie, decisiontree, faulttree, network, parse, parseResult, pert, petri, pid, prisma, render, renderPreview, renderResult, sequence, state, timeline, umlclass, usecase } from './chunk-
|
|
1
|
+
import { iconSize, drawDeviceIcon, GEOMETRY, renderEquip } from './chunk-6AWASOFO.js';
|
|
2
|
+
export { bowtie, decisiontree, faulttree, network, parse, parseResult, pert, petri, pid, prisma, render, renderPreview, renderResult, sequence, state, timeline, umlclass, usecase } from './chunk-6AWASOFO.js';
|
|
3
3
|
export { orgchart } from './chunk-MPCSWRZC.js';
|
|
4
4
|
import { EXTRA_SYMBOLS, SYMBOLS } from './chunk-2TUZ3QJA.js';
|
|
5
5
|
export { circuit } from './chunk-2TUZ3QJA.js';
|
package/dist/react.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk3YRYBTLG_cjs = require('./chunk-3YRYBTLG.cjs');
|
|
4
4
|
require('./chunk-UHPGWO77.cjs');
|
|
5
5
|
require('./chunk-J3EPFZPX.cjs');
|
|
6
6
|
require('./chunk-SHMG7BVF.cjs');
|
|
@@ -37,7 +37,7 @@ function SchematexDiagram({
|
|
|
37
37
|
onError
|
|
38
38
|
}) {
|
|
39
39
|
const svg = react.useMemo(() => {
|
|
40
|
-
const result =
|
|
40
|
+
const result = chunk3YRYBTLG_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.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "schematex",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.10",
|
|
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",
|