schematic-symbols 0.0.7 → 0.0.9

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.
Files changed (42) hide show
  1. package/dist/index.cjs +1697 -0
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.cts +79 -0
  4. package/package.json +9 -2
  5. package/symbols/diode_horz.ts +18 -0
  6. package/symbols/diode_vert.ts +4 -0
  7. package/symbols/index.ts +4 -0
  8. package/.github/CODEOWNERS +0 -1
  9. package/.github/workflows/bun-formatcheck.yml +0 -26
  10. package/.github/workflows/bun-pver-release.yml +0 -27
  11. package/.github/workflows/bun-typecheck.yml +0 -26
  12. package/.github/workflows/formatbot.yml +0 -49
  13. package/assets/symbols-svg-json/boxresistor.json +0 -90
  14. package/assets/symbols-svg-json/capacitor.json +0 -76
  15. package/assets/symbols-svg-json/capacitor_polarized.json +0 -83
  16. package/assets/symbols-svg-json/diode.json +0 -91
  17. package/assets/symbols-svg-json/diode_bipolar_zener.json +0 -166
  18. package/assets/symbols-svg-json/diode_schottky.json +0 -76
  19. package/assets/symbols-svg-json/diode_zener.json +0 -31
  20. package/assets/symbols-svg-json/fuse.json +0 -84
  21. package/assets/symbols-svg-json/led.json +0 -205
  22. package/assets/symbols-svg-json/mosfet_depletion_normally_on.json +0 -267
  23. package/assets/symbols-svg-json/potentiometer.json +0 -137
  24. package/assets/symbols-svg-json/potentiometer2.json +0 -160
  25. package/assets/symbols-svg-json/testshape.json +0 -35
  26. package/assets/symbols-svg-json/varistor.json +0 -129
  27. package/assets/symbols.svg +0 -965
  28. package/biome.json +0 -44
  29. package/bun.lockb +0 -0
  30. package/dev-server.ts +0 -22
  31. package/scripts/build.ts +0 -18
  32. package/scripts/convertToObjectWithOrderedPositionIds.ts +0 -52
  33. package/scripts/generate-symbols-from-asset-svgs.ts +0 -146
  34. package/scripts/lib/applyGroupTransformsToChildren.ts +0 -119
  35. package/scripts/lib/findInnerText.ts +0 -11
  36. package/scripts/lib/generate-web-page.ts +0 -60
  37. package/scripts/lib/getTsFileContentForSvgGroup.ts +0 -33
  38. package/scripts/lib/serializeSvgPathCommands.ts +0 -48
  39. package/tests/assets/boxresistor-untransformed.json +0 -187
  40. package/tests/assets/testshape-untransformed.json +0 -25
  41. package/tests/normalize-svg.test.ts +0 -29
  42. package/tsconfig.json +0 -28
package/dist/index.cjs ADDED
@@ -0,0 +1,1697 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // index.ts
21
+ var schematic_symbols_exports = {};
22
+ __export(schematic_symbols_exports, {
23
+ BASE_SYMBOLS: () => BASE_SYMBOLS,
24
+ symbols: () => symbols_default
25
+ });
26
+ module.exports = __toCommonJS(schematic_symbols_exports);
27
+
28
+ // drawing/path.ts
29
+ function path(options) {
30
+ return { type: "path", ...options };
31
+ }
32
+
33
+ // drawing/text.ts
34
+ function text(text2, options) {
35
+ return { type: "text", text: text2, ...options };
36
+ }
37
+
38
+ // drawing/defineSymbol.ts
39
+ function defineSymbol(symbol) {
40
+ return symbol;
41
+ }
42
+
43
+ // symbols/boxresistor_horz.ts
44
+ var boxresistor_horz_default = defineSymbol({
45
+ primitives: [
46
+ path({
47
+ points: [
48
+ { x: 0, y: 0 },
49
+ { x: 0.2, y: 0 },
50
+ { x: 0.2, y: -0.12 },
51
+ { x: 0.8, y: -0.12 },
52
+ { x: 0.8, y: 0.12 },
53
+ { x: 0.2, y: 0.12 },
54
+ { x: 0.2, y: 0 }
55
+ ],
56
+ color: "primary"
57
+ }),
58
+ path({
59
+ points: [
60
+ { x: 0.8, y: 0 },
61
+ { x: 1, y: 0 }
62
+ ],
63
+ color: "primary"
64
+ }),
65
+ text("{REF}", { x: 0.5, y: -0.2, anchor: "middle_bottom" }),
66
+ text("{VAL}", { x: 0.5, y: 0.2, anchor: "middle_top" })
67
+ ],
68
+ ports: [
69
+ { x: 0, y: 0, labels: ["1", "-"] },
70
+ { x: 1, y: 0, labels: ["2", "+"] }
71
+ ],
72
+ center: { x: 0.5, y: 0 },
73
+ size: { width: 1, height: 0.55 }
74
+ });
75
+
76
+ // node_modules/transformation-matrix/src/applyToPoint.js
77
+ function applyToPoint(matrix, point) {
78
+ return Array.isArray(point) ? [
79
+ matrix.a * point[0] + matrix.c * point[1] + matrix.e,
80
+ matrix.b * point[0] + matrix.d * point[1] + matrix.f
81
+ ] : {
82
+ x: matrix.a * point.x + matrix.c * point.y + matrix.e,
83
+ y: matrix.b * point.x + matrix.d * point.y + matrix.f
84
+ };
85
+ }
86
+
87
+ // node_modules/transformation-matrix/src/utils.js
88
+ function isUndefined(val2) {
89
+ return typeof val2 === "undefined";
90
+ }
91
+
92
+ // node_modules/transformation-matrix/src/translate.js
93
+ function translate(tx, ty = 0) {
94
+ return {
95
+ a: 1,
96
+ c: 0,
97
+ e: tx,
98
+ b: 0,
99
+ d: 1,
100
+ f: ty
101
+ };
102
+ }
103
+
104
+ // node_modules/transformation-matrix/src/transform.js
105
+ function transform(...matrices) {
106
+ matrices = Array.isArray(matrices[0]) ? matrices[0] : matrices;
107
+ const multiply = (m1, m2) => {
108
+ return {
109
+ a: m1.a * m2.a + m1.c * m2.b,
110
+ c: m1.a * m2.c + m1.c * m2.d,
111
+ e: m1.a * m2.e + m1.c * m2.f + m1.e,
112
+ b: m1.b * m2.a + m1.d * m2.b,
113
+ d: m1.b * m2.c + m1.d * m2.d,
114
+ f: m1.b * m2.e + m1.d * m2.f + m1.f
115
+ };
116
+ };
117
+ switch (matrices.length) {
118
+ case 0:
119
+ throw new Error("no matrices provided");
120
+ case 1:
121
+ return matrices[0];
122
+ case 2:
123
+ return multiply(matrices[0], matrices[1]);
124
+ default: {
125
+ const [m1, m2, ...rest] = matrices;
126
+ const m = multiply(m1, m2);
127
+ return transform(m, ...rest);
128
+ }
129
+ }
130
+ }
131
+
132
+ // node_modules/transformation-matrix/src/rotate.js
133
+ var { cos, sin, PI } = Math;
134
+ function rotate(angle, cx, cy) {
135
+ const cosAngle = cos(angle);
136
+ const sinAngle = sin(angle);
137
+ const rotationMatrix = {
138
+ a: cosAngle,
139
+ c: -sinAngle,
140
+ e: 0,
141
+ b: sinAngle,
142
+ d: cosAngle,
143
+ f: 0
144
+ };
145
+ if (isUndefined(cx) || isUndefined(cy)) {
146
+ return rotationMatrix;
147
+ }
148
+ return transform([
149
+ translate(cx, cy),
150
+ rotationMatrix,
151
+ translate(-cx, -cy)
152
+ ]);
153
+ }
154
+
155
+ // node_modules/transformation-matrix/src/skew.js
156
+ var { tan } = Math;
157
+
158
+ // node_modules/transformation-matrix/src/fromTransformAttribute.autogenerated.js
159
+ function peg$subclass(child, parent) {
160
+ function C() {
161
+ this.constructor = child;
162
+ }
163
+ C.prototype = parent.prototype;
164
+ child.prototype = new C();
165
+ }
166
+ function peg$SyntaxError(message, expected, found, location) {
167
+ var self = Error.call(this, message);
168
+ if (Object.setPrototypeOf) {
169
+ Object.setPrototypeOf(self, peg$SyntaxError.prototype);
170
+ }
171
+ self.expected = expected;
172
+ self.found = found;
173
+ self.location = location;
174
+ self.name = "SyntaxError";
175
+ return self;
176
+ }
177
+ peg$subclass(peg$SyntaxError, Error);
178
+ function peg$padEnd(str, targetLength, padString) {
179
+ padString = padString || " ";
180
+ if (str.length > targetLength) {
181
+ return str;
182
+ }
183
+ targetLength -= str.length;
184
+ padString += padString.repeat(targetLength);
185
+ return str + padString.slice(0, targetLength);
186
+ }
187
+ peg$SyntaxError.prototype.format = function(sources) {
188
+ var str = "Error: " + this.message;
189
+ if (this.location) {
190
+ var src = null;
191
+ var k;
192
+ for (k = 0; k < sources.length; k++) {
193
+ if (sources[k].source === this.location.source) {
194
+ src = sources[k].text.split(/\r\n|\n|\r/g);
195
+ break;
196
+ }
197
+ }
198
+ var s = this.location.start;
199
+ var offset_s = this.location.source && typeof this.location.source.offset === "function" ? this.location.source.offset(s) : s;
200
+ var loc = this.location.source + ":" + offset_s.line + ":" + offset_s.column;
201
+ if (src) {
202
+ var e = this.location.end;
203
+ var filler = peg$padEnd("", offset_s.line.toString().length, " ");
204
+ var line = src[s.line - 1];
205
+ var last = s.line === e.line ? e.column : line.length + 1;
206
+ var hatLen = last - s.column || 1;
207
+ str += "\n --> " + loc + "\n" + filler + " |\n" + offset_s.line + " | " + line + "\n" + filler + " | " + peg$padEnd("", s.column - 1, " ") + peg$padEnd("", hatLen, "^");
208
+ } else {
209
+ str += "\n at " + loc;
210
+ }
211
+ }
212
+ return str;
213
+ };
214
+ peg$SyntaxError.buildMessage = function(expected, found) {
215
+ var DESCRIBE_EXPECTATION_FNS = {
216
+ literal: function(expectation) {
217
+ return '"' + literalEscape(expectation.text) + '"';
218
+ },
219
+ class: function(expectation) {
220
+ var escapedParts = expectation.parts.map(function(part) {
221
+ return Array.isArray(part) ? classEscape(part[0]) + "-" + classEscape(part[1]) : classEscape(part);
222
+ });
223
+ return "[" + (expectation.inverted ? "^" : "") + escapedParts.join("") + "]";
224
+ },
225
+ any: function() {
226
+ return "any character";
227
+ },
228
+ end: function() {
229
+ return "end of input";
230
+ },
231
+ other: function(expectation) {
232
+ return expectation.description;
233
+ }
234
+ };
235
+ function hex(ch) {
236
+ return ch.charCodeAt(0).toString(16).toUpperCase();
237
+ }
238
+ function literalEscape(s) {
239
+ return s.replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, function(ch) {
240
+ return "\\x0" + hex(ch);
241
+ }).replace(/[\x10-\x1F\x7F-\x9F]/g, function(ch) {
242
+ return "\\x" + hex(ch);
243
+ });
244
+ }
245
+ function classEscape(s) {
246
+ return s.replace(/\\/g, "\\\\").replace(/\]/g, "\\]").replace(/\^/g, "\\^").replace(/-/g, "\\-").replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, function(ch) {
247
+ return "\\x0" + hex(ch);
248
+ }).replace(/[\x10-\x1F\x7F-\x9F]/g, function(ch) {
249
+ return "\\x" + hex(ch);
250
+ });
251
+ }
252
+ function describeExpectation(expectation) {
253
+ return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);
254
+ }
255
+ function describeExpected(expected2) {
256
+ var descriptions = expected2.map(describeExpectation);
257
+ var i, j;
258
+ descriptions.sort();
259
+ if (descriptions.length > 0) {
260
+ for (i = 1, j = 1; i < descriptions.length; i++) {
261
+ if (descriptions[i - 1] !== descriptions[i]) {
262
+ descriptions[j] = descriptions[i];
263
+ j++;
264
+ }
265
+ }
266
+ descriptions.length = j;
267
+ }
268
+ switch (descriptions.length) {
269
+ case 1:
270
+ return descriptions[0];
271
+ case 2:
272
+ return descriptions[0] + " or " + descriptions[1];
273
+ default:
274
+ return descriptions.slice(0, -1).join(", ") + ", or " + descriptions[descriptions.length - 1];
275
+ }
276
+ }
277
+ function describeFound(found2) {
278
+ return found2 ? '"' + literalEscape(found2) + '"' : "end of input";
279
+ }
280
+ return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found.";
281
+ };
282
+
283
+ // drawing/rotateSymbol.ts
284
+ var rotateAnchor = (anchor) => {
285
+ switch (anchor) {
286
+ case "middle_top":
287
+ return "middle_right";
288
+ case "middle_bottom":
289
+ return "middle_left";
290
+ }
291
+ return anchor;
292
+ };
293
+ var rotateSymbol = (symbol, overrides) => {
294
+ const transform2 = rotate(Math.PI / 2, symbol.center.x, symbol.center.y);
295
+ const { primitives, center, size, ports } = symbol;
296
+ const rotatedPrimitives = primitives.map((primitive) => {
297
+ primitive = { ...primitive };
298
+ switch (primitive.type) {
299
+ case "path":
300
+ return {
301
+ ...primitive,
302
+ points: primitive.points.map(
303
+ (point) => applyToPoint(transform2, point)
304
+ )
305
+ };
306
+ case "text":
307
+ const rotatedPoint = applyToPoint(transform2, {
308
+ x: primitive.x,
309
+ y: primitive.y
310
+ });
311
+ primitive.anchor = rotateAnchor(primitive.anchor);
312
+ return {
313
+ ...primitive,
314
+ x: rotatedPoint.x,
315
+ y: rotatedPoint.y
316
+ };
317
+ case "circle":
318
+ const rotatedCenter = applyToPoint(transform2, {
319
+ x: primitive.x,
320
+ y: primitive.y
321
+ });
322
+ return {
323
+ ...primitive,
324
+ x: rotatedCenter.x,
325
+ y: rotatedCenter.y
326
+ };
327
+ case "box":
328
+ const rotatedCorner = applyToPoint(transform2, {
329
+ x: primitive.x,
330
+ y: primitive.y
331
+ });
332
+ return {
333
+ ...primitive,
334
+ x: rotatedCorner.x,
335
+ y: rotatedCorner.y,
336
+ width: primitive.height,
337
+ height: primitive.width
338
+ };
339
+ }
340
+ });
341
+ const rotatedPorts = ports.map(
342
+ (port) => ({
343
+ ...port,
344
+ ...applyToPoint(transform2, port)
345
+ })
346
+ );
347
+ return {
348
+ primitives: rotatedPrimitives,
349
+ center,
350
+ ports: rotatedPorts,
351
+ // TODO recompute size using overrides
352
+ size: {
353
+ width: size.height,
354
+ height: size.width
355
+ },
356
+ ...overrides
357
+ };
358
+ };
359
+
360
+ // symbols/boxresistor_vert.ts
361
+ var boxresistor_vert_default = rotateSymbol(boxresistor_horz_default);
362
+
363
+ // assets/symbols-svg-json/diode.json
364
+ var diode_default = {
365
+ paths: {
366
+ path40: {
367
+ type: "path",
368
+ points: [
369
+ {
370
+ x: 0.1413337499999998,
371
+ y: 0
372
+ },
373
+ {
374
+ x: -0.12324954999999971,
375
+ y: 0.13229169999999968
376
+ }
377
+ ],
378
+ color: "primary",
379
+ fill: false
380
+ },
381
+ path41: {
382
+ type: "path",
383
+ points: [
384
+ {
385
+ x: -0.12324954999999971,
386
+ y: -0.13229170000000323
387
+ },
388
+ {
389
+ x: 0.1413337499999998,
390
+ y: 0
391
+ }
392
+ ],
393
+ color: "primary",
394
+ fill: false
395
+ },
396
+ path42: {
397
+ type: "path",
398
+ points: [
399
+ {
400
+ x: -0.12324954999999971,
401
+ y: 0.13229169999999613
402
+ },
403
+ {
404
+ x: -0.12324954999999971,
405
+ y: -0.13229170000000323
406
+ }
407
+ ],
408
+ color: "primary",
409
+ fill: false
410
+ },
411
+ path43: {
412
+ type: "path",
413
+ points: [
414
+ {
415
+ x: 0.1413337499999998,
416
+ y: -0.13229170000000323
417
+ },
418
+ {
419
+ x: 0.1413337499999998,
420
+ y: 0.13229169999999613
421
+ }
422
+ ],
423
+ color: "primary",
424
+ fill: false
425
+ },
426
+ path44: {
427
+ type: "path",
428
+ points: [
429
+ {
430
+ x: -0.12545424999999977,
431
+ y: 0
432
+ },
433
+ {
434
+ x: -0.5201245499999998,
435
+ y: 0
436
+ }
437
+ ],
438
+ color: "primary",
439
+ fill: false
440
+ },
441
+ "path44-0": {
442
+ type: "path",
443
+ points: [
444
+ {
445
+ x: 0.5201245499999998,
446
+ y: 8519999999734296e-20
447
+ },
448
+ {
449
+ x: 0.1464164499999998,
450
+ y: 8519999999734296e-20
451
+ }
452
+ ],
453
+ color: "primary",
454
+ fill: false
455
+ }
456
+ },
457
+ texts: {
458
+ top1: {
459
+ type: "text",
460
+ text: "{REF}",
461
+ x: -0.008280249999999878,
462
+ y: -0.22980899999999949
463
+ },
464
+ bottom1: {
465
+ type: "text",
466
+ text: "{VAL}",
467
+ x: -0.0033669500000002017,
468
+ y: 0.31788159999999976
469
+ }
470
+ },
471
+ refblocks: {
472
+ left1: {
473
+ x: -0.5224022500000003,
474
+ y: -8844000000003405e-19
475
+ },
476
+ right1: {
477
+ x: 0.5158919499999999,
478
+ y: 14019999999703714e-20
479
+ }
480
+ },
481
+ bounds: {
482
+ minX: -0.5201245499999998,
483
+ maxX: 0.5201245499999998,
484
+ minY: -0.13229170000000323,
485
+ maxY: 0.13229169999999968,
486
+ width: 1.0402490999999996,
487
+ height: 0.2645834000000029,
488
+ centerX: 0,
489
+ centerY: -17763568394002505e-31
490
+ }
491
+ };
492
+
493
+ // symbols/diode_horz.ts
494
+ var { paths, texts, bounds, refblocks } = diode_default;
495
+ var diode_horz_default = defineSymbol({
496
+ primitives: [
497
+ ...Object.values(paths),
498
+ { ...texts.top1, anchor: "middle_left" },
499
+ { ...texts.bottom1, anchor: "middle_left" }
500
+ ],
501
+ ports: [
502
+ { ...refblocks.left1, labels: ["1"] },
503
+ // TODO add more "standard" labels
504
+ { ...refblocks.right1, labels: ["2"] }
505
+ // TODO add more "standard" labels
506
+ ],
507
+ size: { width: bounds.width, height: bounds.height },
508
+ center: { x: bounds.centerX, y: bounds.centerY }
509
+ });
510
+
511
+ // symbols/diode_vert.ts
512
+ var diode_vert_default = rotateSymbol(diode_horz_default);
513
+
514
+ // assets/symbols-svg-json/fuse.json
515
+ var fuse_default = {
516
+ paths: {
517
+ path10: {
518
+ type: "path",
519
+ points: [
520
+ {
521
+ x: -0.529167000000001,
522
+ y: 0
523
+ },
524
+ {
525
+ x: 0.5291669999999993,
526
+ y: 0
527
+ }
528
+ ],
529
+ color: "primary",
530
+ fill: false
531
+ },
532
+ path14: {
533
+ type: "path",
534
+ points: [
535
+ {
536
+ x: 1999999998503199e-21,
537
+ y: -0.13229169999999968
538
+ },
539
+ {
540
+ x: 0.2645849999999985,
541
+ y: -0.13229169999999968
542
+ },
543
+ {
544
+ x: 0.2645849999999985,
545
+ y: 0.13229169999999968
546
+ },
547
+ {
548
+ x: -0.26458200000000076,
549
+ y: 0.13229169999999968
550
+ },
551
+ {
552
+ x: -0.26458200000000076,
553
+ y: -0.13229169999999968
554
+ },
555
+ {
556
+ x: 1999999998503199e-21,
557
+ y: -0.13229169999999968
558
+ }
559
+ ],
560
+ color: "primary",
561
+ fill: false
562
+ }
563
+ },
564
+ texts: {
565
+ top1: {
566
+ type: "text",
567
+ text: "{REF}",
568
+ x: -0.00912720000000089,
569
+ y: -0.1995035999999999
570
+ },
571
+ bottom1: {
572
+ type: "text",
573
+ text: "{VAL}",
574
+ x: -0.17251720000000148,
575
+ y: 0.27233090000000004
576
+ }
577
+ },
578
+ refblocks: {
579
+ left1: {
580
+ x: -0.5354181000000011,
581
+ y: -0.0030468999999992974
582
+ },
583
+ right1: {
584
+ x: 0.5336915999999992,
585
+ y: 0.0011575000000014768
586
+ }
587
+ },
588
+ bounds: {
589
+ minX: -0.529167000000001,
590
+ maxX: 0.5291669999999993,
591
+ minY: -0.13229169999999968,
592
+ maxY: 0.13229169999999968,
593
+ width: 1.0583340000000003,
594
+ height: 0.26458339999999936,
595
+ centerX: -8881784197001252e-31,
596
+ centerY: 0
597
+ }
598
+ };
599
+
600
+ // symbols/fuse_horz.ts
601
+ var { paths: paths2, texts: texts2, bounds: bounds2, refblocks: refblocks2 } = fuse_default;
602
+ var fuse_horz_default = defineSymbol({
603
+ primitives: [
604
+ ...Object.values(paths2),
605
+ { ...texts2.top1, anchor: "middle_bottom" },
606
+ {
607
+ type: "text",
608
+ text: "{VAL}",
609
+ x: 0,
610
+ y: 0.2,
611
+ anchor: "middle_top"
612
+ }
613
+ ],
614
+ ports: [
615
+ { ...refblocks2.left1, labels: ["1"] },
616
+ // TODO add more "standard" labels
617
+ { ...refblocks2.right1, labels: ["2"] }
618
+ // TODO add more "standard" labels
619
+ ],
620
+ size: { width: bounds2.width, height: bounds2.height },
621
+ center: { x: bounds2.centerX, y: bounds2.centerY }
622
+ });
623
+
624
+ // symbols/fuse_vert.ts
625
+ var fuse_vert_default = rotateSymbol(fuse_horz_default);
626
+
627
+ // assets/symbols-svg-json/led.json
628
+ var led_default = {
629
+ paths: {
630
+ path45: {
631
+ type: "path",
632
+ points: [
633
+ {
634
+ x: 0.13537969999999966,
635
+ y: 0.09743664999999524
636
+ },
637
+ {
638
+ x: -0.1292036000000003,
639
+ y: 0.22972834999999847
640
+ }
641
+ ],
642
+ color: "primary",
643
+ fill: false
644
+ },
645
+ "path1-8": {
646
+ type: "path",
647
+ points: [
648
+ {
649
+ x: 0.12715889999999996,
650
+ y: 0.09766044999999579
651
+ },
652
+ {
653
+ x: 0.5260786,
654
+ y: 0.09766044999999579
655
+ }
656
+ ],
657
+ color: "primary",
658
+ fill: false
659
+ },
660
+ path46: {
661
+ type: "path",
662
+ points: [
663
+ {
664
+ x: -0.1292036000000003,
665
+ y: -0.03485505000000444
666
+ },
667
+ {
668
+ x: 0.13537969999999966,
669
+ y: 0.09743664999999524
670
+ }
671
+ ],
672
+ color: "primary",
673
+ fill: false
674
+ },
675
+ path47: {
676
+ type: "path",
677
+ points: [
678
+ {
679
+ x: -0.1292036000000003,
680
+ y: 0.22972834999999847
681
+ },
682
+ {
683
+ x: -0.1292036000000003,
684
+ y: -0.03485505000000444
685
+ }
686
+ ],
687
+ color: "primary",
688
+ fill: false
689
+ },
690
+ path48: {
691
+ type: "path",
692
+ points: [
693
+ {
694
+ x: 0.13537969999999966,
695
+ y: -0.03485505000000444
696
+ },
697
+ {
698
+ x: 0.13537969999999966,
699
+ y: 0.22972834999999847
700
+ }
701
+ ],
702
+ color: "primary",
703
+ fill: false
704
+ },
705
+ path49: {
706
+ type: "path",
707
+ points: [
708
+ {
709
+ x: -0.13124740000000035,
710
+ y: 0.09743664999999524
711
+ },
712
+ {
713
+ x: -0.5260786000000004,
714
+ y: 0.09743664999999524
715
+ }
716
+ ],
717
+ color: "primary",
718
+ fill: false
719
+ },
720
+ path25: {
721
+ type: "path",
722
+ points: [
723
+ {
724
+ x: -0.15622170000000057,
725
+ y: -0.19171255000000187
726
+ },
727
+ {
728
+ x: -0.25356400000000034,
729
+ y: -0.20859175000000363
730
+ },
731
+ {
732
+ x: -0.2192612000000005,
733
+ y: -0.11582895000000448
734
+ },
735
+ {
736
+ x: -0.15622170000000057,
737
+ y: -0.19171255000000187
738
+ }
739
+ ],
740
+ color: "primary",
741
+ fill: true
742
+ },
743
+ path78: {
744
+ type: "path",
745
+ points: [
746
+ {
747
+ x: -0.08048230000000034,
748
+ y: -0.07216775000000197
749
+ },
750
+ {
751
+ x: -0.09250580000000008,
752
+ y: -0.0811007500000045
753
+ },
754
+ {
755
+ x: -0.21426230000000057,
756
+ y: -0.17155655000000536
757
+ },
758
+ {
759
+ x: -0.21489230000000026,
760
+ y: -0.17250655000000492
761
+ }
762
+ ],
763
+ color: "primary",
764
+ fill: false
765
+ },
766
+ "path25-0": {
767
+ type: "path",
768
+ points: [
769
+ {
770
+ x: 0.021244599999999725,
771
+ y: -0.21284915000000026
772
+ },
773
+ {
774
+ x: -0.07609770000000049,
775
+ y: -0.22972835000000202
776
+ },
777
+ {
778
+ x: -0.04179490000000019,
779
+ y: -0.13696555000000288
780
+ },
781
+ {
782
+ x: 0.021244599999999725,
783
+ y: -0.21284915000000026
784
+ }
785
+ ],
786
+ color: "primary",
787
+ fill: true
788
+ },
789
+ "path78-6": {
790
+ type: "path",
791
+ points: [
792
+ {
793
+ x: 0.09698399999999996,
794
+ y: -0.09330435000000037
795
+ },
796
+ {
797
+ x: 0.08496049999999977,
798
+ y: -0.10223735000000289
799
+ },
800
+ {
801
+ x: -0.03679600000000027,
802
+ y: -0.19269315000000375
803
+ },
804
+ {
805
+ x: -0.0374260000000004,
806
+ y: -0.19364315000000332
807
+ }
808
+ ],
809
+ color: "primary",
810
+ fill: false
811
+ }
812
+ },
813
+ texts: {
814
+ bottom1: {
815
+ type: "text",
816
+ text: "{VAL}",
817
+ x: -0.010039500000000423,
818
+ y: 0.4172088499999944
819
+ },
820
+ right1: {
821
+ type: "text",
822
+ text: "{REF}",
823
+ x: 0.31416289999999947,
824
+ y: -0.13012545000000486
825
+ }
826
+ },
827
+ refblocks: {
828
+ left1: {
829
+ x: -0.5366871000000006,
830
+ y: 0.09817314999999738
831
+ },
832
+ right1: {
833
+ x: 0.5357314999999994,
834
+ y: 0.09862664999999993
835
+ }
836
+ },
837
+ bounds: {
838
+ minX: -0.5260786000000004,
839
+ maxX: 0.5260786,
840
+ minY: -0.22972835000000202,
841
+ maxY: 0.22972834999999847,
842
+ width: 1.0521572000000003,
843
+ height: 0.4594567000000005,
844
+ centerX: -2220446049250313e-31,
845
+ centerY: -17763568394002505e-31
846
+ }
847
+ };
848
+
849
+ // symbols/led_horz.ts
850
+ var { paths: paths3, texts: texts3, bounds: bounds3, refblocks: refblocks3 } = led_default;
851
+ var led_horz_default = defineSymbol({
852
+ primitives: [
853
+ ...Object.values(paths3),
854
+ { ...texts3.bottom1, anchor: "middle_left" },
855
+ { ...texts3.right1, anchor: "middle_left" }
856
+ ],
857
+ ports: [
858
+ { ...refblocks3.left1, labels: ["1"] },
859
+ // TODO add more "standard" labels
860
+ { ...refblocks3.right1, labels: ["2"] }
861
+ // TODO add more "standard" labels
862
+ ],
863
+ size: { width: bounds3.width, height: bounds3.height },
864
+ center: { x: bounds3.centerX, y: bounds3.centerY + 0.1 }
865
+ });
866
+
867
+ // symbols/led_vert.ts
868
+ var led_vert_default = rotateSymbol(led_horz_default);
869
+
870
+ // assets/symbols-svg-json/mosfet_depletion_normally_on.json
871
+ var mosfet_depletion_normally_on_default = {
872
+ paths: {
873
+ path208: {
874
+ type: "path",
875
+ points: [
876
+ {
877
+ x: 0.39687494999999995,
878
+ y: -0.13228999999999935
879
+ },
880
+ {
881
+ x: 0.5291666500000005,
882
+ y: 0.13229300000000066
883
+ }
884
+ ],
885
+ color: "primary",
886
+ fill: false
887
+ },
888
+ path209: {
889
+ type: "path",
890
+ points: [
891
+ {
892
+ x: 0.26458325000000027,
893
+ y: 0.13229300000000066
894
+ },
895
+ {
896
+ x: 0.39687494999999995,
897
+ y: -0.13228999999999935
898
+ }
899
+ ],
900
+ color: "primary",
901
+ fill: false
902
+ },
903
+ path210: {
904
+ type: "path",
905
+ points: [
906
+ {
907
+ x: 0.5291666500000005,
908
+ y: 0.13229300000000066
909
+ },
910
+ {
911
+ x: 0.26458325000000027,
912
+ y: 0.13229300000000066
913
+ }
914
+ ],
915
+ color: "primary",
916
+ fill: false
917
+ },
918
+ path211: {
919
+ type: "path",
920
+ points: [
921
+ {
922
+ x: 0.26458325000000027,
923
+ y: -0.13228999999999935
924
+ },
925
+ {
926
+ x: 0.5291666500000005,
927
+ y: -0.13228999999999935
928
+ }
929
+ ],
930
+ color: "primary",
931
+ fill: false
932
+ },
933
+ path212: {
934
+ type: "path",
935
+ points: [
936
+ {
937
+ x: 0.13229165000000087,
938
+ y: 0.39687499999999964
939
+ },
940
+ {
941
+ x: 0.39687494999999995,
942
+ y: 0.39687499999999964
943
+ }
944
+ ],
945
+ color: "primary",
946
+ fill: false
947
+ },
948
+ path213: {
949
+ type: "path",
950
+ points: [
951
+ {
952
+ x: 0.39687494999999995,
953
+ y: -0.3968740000000004
954
+ },
955
+ {
956
+ x: 0.13229165000000087,
957
+ y: -0.3968740000000004
958
+ }
959
+ ],
960
+ color: "primary",
961
+ fill: false
962
+ },
963
+ path214: {
964
+ type: "path",
965
+ points: [
966
+ {
967
+ x: 0.13229165000000087,
968
+ y: -0.529166
969
+ },
970
+ {
971
+ x: 0.13229165000000087,
972
+ y: -0.1852090000000004
973
+ }
974
+ ],
975
+ color: "primary",
976
+ fill: false
977
+ },
978
+ path215: {
979
+ type: "path",
980
+ points: [
981
+ {
982
+ x: 0.13229165000000087,
983
+ y: 0.529166
984
+ },
985
+ {
986
+ x: 0.13229165000000087,
987
+ y: -9999999992515995e-22
988
+ }
989
+ ],
990
+ color: "primary",
991
+ fill: false
992
+ },
993
+ path216: {
994
+ type: "path",
995
+ points: [
996
+ {
997
+ x: 0.39687494999999995,
998
+ y: 0.39687563000000026
999
+ },
1000
+ {
1001
+ x: 0.39687494999999995,
1002
+ y: -0.3968746999999997
1003
+ }
1004
+ ],
1005
+ color: "primary",
1006
+ fill: false
1007
+ },
1008
+ path217: {
1009
+ type: "path",
1010
+ points: [
1011
+ {
1012
+ x: -0.13229164999999998,
1013
+ y: -0.2645850000000003
1014
+ },
1015
+ {
1016
+ x: -0.13229164999999998,
1017
+ y: 0.26458099999999973
1018
+ }
1019
+ ],
1020
+ color: "primary",
1021
+ fill: false
1022
+ },
1023
+ path218: {
1024
+ type: "path",
1025
+ points: [
1026
+ {
1027
+ x: -0.21166664999999885,
1028
+ y: 0.264581999999999
1029
+ },
1030
+ {
1031
+ x: -0.21166664999999885,
1032
+ y: -0.26458399999999926
1033
+ }
1034
+ ],
1035
+ color: "primary",
1036
+ fill: false
1037
+ },
1038
+ path219: {
1039
+ type: "path",
1040
+ points: [
1041
+ {
1042
+ x: -0.5291666499999996,
1043
+ y: 0.26458099999999973
1044
+ },
1045
+ {
1046
+ x: -0.21166664999999885,
1047
+ y: 0.264583
1048
+ }
1049
+ ],
1050
+ color: "primary",
1051
+ fill: false
1052
+ },
1053
+ path220: {
1054
+ type: "path",
1055
+ points: [
1056
+ {
1057
+ x: -0.13229164999999998,
1058
+ y: 0.18520600000000087
1059
+ },
1060
+ {
1061
+ x: 0.13229175000000026,
1062
+ y: 0.18520600000000087
1063
+ }
1064
+ ],
1065
+ color: "primary",
1066
+ fill: false
1067
+ },
1068
+ path221: {
1069
+ type: "path",
1070
+ points: [
1071
+ {
1072
+ x: -0.13229164999999998,
1073
+ y: -0.18520999999999965
1074
+ },
1075
+ {
1076
+ x: 0.13229175000000026,
1077
+ y: -0.18520999999999965
1078
+ }
1079
+ ],
1080
+ color: "primary",
1081
+ fill: false
1082
+ },
1083
+ path222: {
1084
+ type: "path",
1085
+ points: [
1086
+ {
1087
+ x: -0.05291665000000023,
1088
+ y: -9999999992515995e-22
1089
+ },
1090
+ {
1091
+ x: 0.13229165000000087,
1092
+ y: -9999999992515995e-22
1093
+ }
1094
+ ],
1095
+ color: "primary",
1096
+ fill: false
1097
+ }
1098
+ },
1099
+ texts: {
1100
+ right1: {
1101
+ type: "text",
1102
+ text: "{REF}",
1103
+ x: 0.5827374500000007,
1104
+ y: -0.20929270999999972
1105
+ },
1106
+ right2: {
1107
+ type: "text",
1108
+ text: "{VAL}",
1109
+ x: 0.58412285,
1110
+ y: -0.021192649999999702
1111
+ }
1112
+ },
1113
+ refblocks: {
1114
+ top1: {
1115
+ x: 0.13275345000000005,
1116
+ y: -0.5440228900000008
1117
+ },
1118
+ bottom1: {
1119
+ x: 0.13239525000000096,
1120
+ y: 0.54252477
1121
+ },
1122
+ left1: {
1123
+ x: -0.5308188500000002,
1124
+ y: 0.26564980000000027
1125
+ }
1126
+ },
1127
+ bounds: {
1128
+ minX: -0.5291666499999996,
1129
+ maxX: 0.5291666500000005,
1130
+ minY: -0.529166,
1131
+ maxY: 0.529166,
1132
+ width: 1.0583333000000001,
1133
+ height: 1.058332,
1134
+ centerX: 4440892098500626e-31,
1135
+ centerY: 0
1136
+ }
1137
+ };
1138
+
1139
+ // symbols/mosfet_depletion_normally_on_horz.ts
1140
+ var { paths: paths4, texts: texts4, bounds: bounds4, refblocks: refblocks4 } = mosfet_depletion_normally_on_default;
1141
+ var mosfet_depletion_normally_on_horz_default = defineSymbol({
1142
+ primitives: [
1143
+ ...Object.values(paths4),
1144
+ { ...texts4.right1, anchor: "middle_left" },
1145
+ { ...texts4.right2, anchor: "middle_left" }
1146
+ ],
1147
+ ports: [
1148
+ { ...refblocks4.top1, labels: ["1"] },
1149
+ // TODO add more "standard" labels
1150
+ { ...refblocks4.bottom1, labels: ["2"] },
1151
+ // TODO add more "standard" labels
1152
+ { ...refblocks4.left1, labels: ["3"] }
1153
+ // TODO add more "standard" labels
1154
+ ],
1155
+ size: { width: bounds4.width + 0.4, height: bounds4.height },
1156
+ center: { x: bounds4.centerX + 0.2, y: bounds4.centerY }
1157
+ });
1158
+
1159
+ // symbols/mosfet_depletion_normally_on_vert.ts
1160
+ var rotated = rotateSymbol(mosfet_depletion_normally_on_horz_default);
1161
+ var ref = rotated.primitives.find(
1162
+ (p) => p.type === "text" && p.text === "{REF}"
1163
+ );
1164
+ var val = rotated.primitives.find(
1165
+ (p) => p.type === "text" && p.text === "{VAL}"
1166
+ );
1167
+ ref.anchor = "middle_top";
1168
+ val.anchor = "middle_top";
1169
+ ref.x = val.x;
1170
+ val.y += 0.15;
1171
+ var mosfet_depletion_normally_on_vert_default = rotated;
1172
+
1173
+ // assets/symbols-svg-json/potentiometer.json
1174
+ var potentiometer_default = {
1175
+ paths: {
1176
+ path11: {
1177
+ type: "path",
1178
+ points: [
1179
+ {
1180
+ x: -0.5291669499999998,
1181
+ y: 0.1434596500000005
1182
+ },
1183
+ {
1184
+ x: -0.26458365000000006,
1185
+ y: 0.1434596500000005
1186
+ }
1187
+ ],
1188
+ color: "primary",
1189
+ fill: false
1190
+ },
1191
+ path12: {
1192
+ type: "path",
1193
+ points: [
1194
+ {
1195
+ x: 0.26458334999999966,
1196
+ y: 0.1434596500000005
1197
+ },
1198
+ {
1199
+ x: 0.52916695,
1200
+ y: 0.1434596500000005
1201
+ }
1202
+ ],
1203
+ color: "primary",
1204
+ fill: false
1205
+ },
1206
+ path13: {
1207
+ type: "path",
1208
+ points: [
1209
+ {
1210
+ x: 12499999999526779e-22,
1211
+ y: 0.011167849999999646
1212
+ },
1213
+ {
1214
+ x: 0.26458424999999997,
1215
+ y: 0.011167849999999646
1216
+ },
1217
+ {
1218
+ x: 0.26458424999999997,
1219
+ y: 0.2757512500000008
1220
+ },
1221
+ {
1222
+ x: -0.26458274999999976,
1223
+ y: 0.2757512500000008
1224
+ },
1225
+ {
1226
+ x: -0.26458274999999976,
1227
+ y: 0.011167849999999646
1228
+ },
1229
+ {
1230
+ x: 12500000012849455e-22,
1231
+ y: 0.011167849999999646
1232
+ }
1233
+ ],
1234
+ color: "primary",
1235
+ fill: false
1236
+ },
1237
+ path15: {
1238
+ type: "path",
1239
+ points: [
1240
+ {
1241
+ x: 0.06517084999999989,
1242
+ y: -0.10588935
1243
+ },
1244
+ {
1245
+ x: -0.06529785000000032,
1246
+ y: -0.10588935
1247
+ },
1248
+ {
1249
+ x: -6345000000029799e-20,
1250
+ y: 0.00700125000000007
1251
+ },
1252
+ {
1253
+ x: 0.06517084999999989,
1254
+ y: -0.10588935
1255
+ }
1256
+ ],
1257
+ color: "primary",
1258
+ fill: true
1259
+ },
1260
+ path17: {
1261
+ type: "path",
1262
+ points: [
1263
+ {
1264
+ x: 25875000000041837e-20,
1265
+ y: -0.2757512500000008
1266
+ },
1267
+ {
1268
+ x: 25875000000041837e-20,
1269
+ y: -0.060545249999998774
1270
+ }
1271
+ ],
1272
+ color: "primary",
1273
+ fill: false
1274
+ }
1275
+ },
1276
+ texts: {
1277
+ bottom1: {
1278
+ type: "text",
1279
+ text: "{VAL}",
1280
+ x: -0.007583050000000924,
1281
+ y: 0.4315381500000015
1282
+ },
1283
+ right1: {
1284
+ type: "text",
1285
+ text: "{REF}",
1286
+ x: 0.12478014999999942,
1287
+ y: -0.09260654999999929
1288
+ }
1289
+ },
1290
+ refblocks: {
1291
+ left1: {
1292
+ x: -0.5449899500000002,
1293
+ y: 0.14431244999999926
1294
+ },
1295
+ right1: {
1296
+ x: 0.5378069499999998,
1297
+ y: 0.14331605000000103
1298
+ }
1299
+ },
1300
+ bounds: {
1301
+ minX: -0.5291669499999998,
1302
+ maxX: 0.52916695,
1303
+ minY: -0.2757512500000008,
1304
+ maxY: 0.2757512500000008,
1305
+ width: 1.0583338999999998,
1306
+ height: 0.5515025000000016,
1307
+ centerX: 11102230246251565e-32,
1308
+ centerY: 0
1309
+ }
1310
+ };
1311
+
1312
+ // symbols/potentiometer_horz.ts
1313
+ var { paths: paths5, texts: texts5, bounds: bounds5, refblocks: refblocks5 } = potentiometer_default;
1314
+ var potentiometer_horz_default = defineSymbol({
1315
+ primitives: [
1316
+ ...Object.values(paths5),
1317
+ { ...texts5.bottom1, y: 0.35, anchor: "middle_top" },
1318
+ { ...texts5.right1, anchor: "middle_left" }
1319
+ ],
1320
+ ports: [
1321
+ { ...refblocks5.left1, labels: ["1"] },
1322
+ // TODO add more "standard" labels
1323
+ { ...refblocks5.right1, labels: ["2"] }
1324
+ // TODO add more "standard" labels
1325
+ ],
1326
+ size: { width: bounds5.width + 0.05, height: bounds5.height },
1327
+ center: { x: bounds5.centerX, y: bounds5.centerY }
1328
+ });
1329
+
1330
+ // symbols/potentiometer_vert.ts
1331
+ var rotated2 = rotateSymbol(potentiometer_horz_default);
1332
+ var potentiometer_vert_default = rotated2;
1333
+
1334
+ // assets/symbols-svg-json/potentiometer2.json
1335
+ var potentiometer2_default = {
1336
+ paths: {
1337
+ path18: {
1338
+ type: "path",
1339
+ points: [
1340
+ {
1341
+ x: -0.5291669499999998,
1342
+ y: 8545000000008685e-19
1343
+ },
1344
+ {
1345
+ x: -0.26458365000000006,
1346
+ y: 8545000000008685e-19
1347
+ }
1348
+ ],
1349
+ color: "primary",
1350
+ fill: false
1351
+ },
1352
+ path19: {
1353
+ type: "path",
1354
+ points: [
1355
+ {
1356
+ x: 0.26458334999999966,
1357
+ y: 8545000000008685e-19
1358
+ },
1359
+ {
1360
+ x: 0.5291669499999996,
1361
+ y: 8545000000008685e-19
1362
+ }
1363
+ ],
1364
+ color: "primary",
1365
+ fill: false
1366
+ },
1367
+ path20: {
1368
+ type: "path",
1369
+ points: [
1370
+ {
1371
+ x: 12499999995085886e-22,
1372
+ y: -0.1314371999999988
1373
+ },
1374
+ {
1375
+ x: 0.26458424999999997,
1376
+ y: -0.1314371999999988
1377
+ },
1378
+ {
1379
+ x: 0.26458424999999997,
1380
+ y: 0.13314619999999877
1381
+ },
1382
+ {
1383
+ x: -0.26458274999999976,
1384
+ y: 0.13314619999999877
1385
+ },
1386
+ {
1387
+ x: -0.26458274999999976,
1388
+ y: -0.1314371999999988
1389
+ },
1390
+ {
1391
+ x: 12500000012849455e-22,
1392
+ y: -0.1314371999999988
1393
+ }
1394
+ ],
1395
+ color: "primary",
1396
+ fill: false
1397
+ },
1398
+ path23: {
1399
+ type: "path",
1400
+ points: [
1401
+ {
1402
+ x: 0.28137284999999945,
1403
+ y: 0.2822274
1404
+ },
1405
+ {
1406
+ x: 0.17906194999999903,
1407
+ y: 0.25486950000000164
1408
+ },
1409
+ {
1410
+ x: 0.2540149499999984,
1411
+ y: 0.1799165000000027
1412
+ },
1413
+ {
1414
+ x: 0.28137284999999945,
1415
+ y: 0.2822274
1416
+ }
1417
+ ],
1418
+ color: "primary",
1419
+ fill: true
1420
+ },
1421
+ path24: {
1422
+ type: "path",
1423
+ points: [
1424
+ {
1425
+ x: 0.29134274999999965,
1426
+ y: 0.2921307000000013
1427
+ },
1428
+ {
1429
+ x: 0.2577490499999997,
1430
+ y: 0.16634940000000142
1431
+ },
1432
+ {
1433
+ x: 0.16536614999999966,
1434
+ y: 0.25853690000000284
1435
+ },
1436
+ {
1437
+ x: 0.29134274999999965,
1438
+ y: 0.2921307000000013
1439
+ }
1440
+ ],
1441
+ color: "primary",
1442
+ fill: true
1443
+ },
1444
+ path26: {
1445
+ type: "path",
1446
+ points: [
1447
+ {
1448
+ x: -0.29551765000000074,
1449
+ y: -0.2921307000000013
1450
+ },
1451
+ {
1452
+ x: 0.23295514999999956,
1453
+ y: 0.2328032000000011
1454
+ }
1455
+ ],
1456
+ color: "primary",
1457
+ fill: false
1458
+ }
1459
+ },
1460
+ texts: {
1461
+ top1: {
1462
+ type: "text",
1463
+ text: "{REF}",
1464
+ x: 0.05811516999999933,
1465
+ y: -0.2009376800000009
1466
+ },
1467
+ bottom1: {
1468
+ type: "text",
1469
+ text: "{VAL}",
1470
+ x: -0.09712293000000072,
1471
+ y: 0.27857531999999985
1472
+ }
1473
+ },
1474
+ refblocks: {
1475
+ left1: {
1476
+ x: -0.5316179500000004,
1477
+ y: 0.0013439000000019519
1478
+ },
1479
+ right1: {
1480
+ x: 0.5377649500000006,
1481
+ y: 0.001956599999999753
1482
+ }
1483
+ },
1484
+ bounds: {
1485
+ minX: -0.5291669499999998,
1486
+ maxX: 0.5291669499999996,
1487
+ minY: -0.2921307000000013,
1488
+ maxY: 0.2921307000000013,
1489
+ width: 1.0583338999999994,
1490
+ height: 0.5842614000000026,
1491
+ centerX: -11102230246251565e-32,
1492
+ centerY: 0
1493
+ }
1494
+ };
1495
+
1496
+ // symbols/potentiometer2_horz.ts
1497
+ var { paths: paths6, texts: texts6, bounds: bounds6, refblocks: refblocks6 } = potentiometer2_default;
1498
+ var potentiometer2_horz_default = defineSymbol({
1499
+ primitives: [...Object.values(paths6), ...Object.values(texts6)],
1500
+ ports: [
1501
+ { ...refblocks6.left1, labels: ["1"] },
1502
+ // TODO add more "standard" labels
1503
+ { ...refblocks6.right1, labels: ["2"] }
1504
+ // TODO add more "standard" labels
1505
+ ],
1506
+ size: { width: bounds6.width, height: bounds6.height },
1507
+ center: { x: bounds6.centerX, y: bounds6.centerY }
1508
+ });
1509
+
1510
+ // symbols/potentiometer2_vert.ts
1511
+ var potentiometer2_vert_default = rotateSymbol(potentiometer2_horz_default);
1512
+
1513
+ // assets/symbols-svg-json/varistor.json
1514
+ var varistor_default = {
1515
+ paths: {
1516
+ path5: {
1517
+ type: "path",
1518
+ points: [
1519
+ {
1520
+ x: -0.5291668,
1521
+ y: 0
1522
+ },
1523
+ {
1524
+ x: -0.2645835000000005,
1525
+ y: 0
1526
+ }
1527
+ ],
1528
+ color: "primary",
1529
+ fill: false
1530
+ },
1531
+ path6: {
1532
+ type: "path",
1533
+ points: [
1534
+ {
1535
+ x: 0.2645835000000005,
1536
+ y: 0
1537
+ },
1538
+ {
1539
+ x: 0.5291668,
1540
+ y: 0
1541
+ }
1542
+ ],
1543
+ color: "primary",
1544
+ fill: false
1545
+ },
1546
+ path7: {
1547
+ type: "path",
1548
+ points: [
1549
+ {
1550
+ x: 0.2645835000000005,
1551
+ y: 0.23812500000000192
1552
+ },
1553
+ {
1554
+ x: -0.2645834999999992,
1555
+ y: -0.23812500000000014
1556
+ }
1557
+ ],
1558
+ color: "primary",
1559
+ fill: false
1560
+ },
1561
+ path8: {
1562
+ type: "path",
1563
+ points: [
1564
+ {
1565
+ x: 0.3704165000000006,
1566
+ y: 0.23812500000000192
1567
+ },
1568
+ {
1569
+ x: 0.2645835000000005,
1570
+ y: 0.23812500000000192
1571
+ }
1572
+ ],
1573
+ color: "primary",
1574
+ fill: false
1575
+ },
1576
+ path9: {
1577
+ type: "path",
1578
+ points: [
1579
+ {
1580
+ x: 1400000000817414e-21,
1581
+ y: -0.13229179999999907
1582
+ },
1583
+ {
1584
+ x: 0.2645844000000013,
1585
+ y: -0.13229179999999907
1586
+ },
1587
+ {
1588
+ x: 0.2645844000000013,
1589
+ y: 0.13229160000000206
1590
+ },
1591
+ {
1592
+ x: -0.26458259999999845,
1593
+ y: 0.13229160000000206
1594
+ },
1595
+ {
1596
+ x: -0.26458259999999845,
1597
+ y: -0.13229179999999907
1598
+ },
1599
+ {
1600
+ x: 14000000021496817e-22,
1601
+ y: -0.13229179999999907
1602
+ }
1603
+ ],
1604
+ color: "primary",
1605
+ fill: false
1606
+ }
1607
+ },
1608
+ texts: {
1609
+ top1: {
1610
+ type: "text",
1611
+ text: "{REF}",
1612
+ x: -0.06307419999999953,
1613
+ y: -0.2470063999999983
1614
+ },
1615
+ bottom1: {
1616
+ type: "text",
1617
+ text: "{VAL}",
1618
+ x: 0.0039234000000010205,
1619
+ y: 0.256324600000001
1620
+ }
1621
+ },
1622
+ refblocks: {
1623
+ left1: {
1624
+ x: -0.5438152999999999,
1625
+ y: 0.0016897000000017925
1626
+ },
1627
+ right1: {
1628
+ x: 0.5346478000000006,
1629
+ y: -6806999999984242e-19
1630
+ }
1631
+ },
1632
+ bounds: {
1633
+ minX: -0.5291668,
1634
+ maxX: 0.5291668,
1635
+ minY: -0.23812500000000014,
1636
+ maxY: 0.23812500000000192,
1637
+ width: 1.0583336,
1638
+ height: 0.47625000000000206,
1639
+ centerX: 0,
1640
+ centerY: 8881784197001252e-31
1641
+ }
1642
+ };
1643
+
1644
+ // symbols/varistor_horz.ts
1645
+ var { paths: paths7, texts: texts7, bounds: bounds7, refblocks: refblocks7 } = varistor_default;
1646
+ var varistor_horz_default = defineSymbol({
1647
+ primitives: [
1648
+ ...Object.values(paths7),
1649
+ { ...texts7.top1, anchor: "middle_left" },
1650
+ { ...texts7.bottom1, anchor: "middle_right" }
1651
+ ],
1652
+ ports: [
1653
+ {
1654
+ ...refblocks7.left1,
1655
+ labels: ["1", "-"]
1656
+ },
1657
+ {
1658
+ ...refblocks7.right1,
1659
+ labels: ["2", "+"]
1660
+ }
1661
+ ],
1662
+ size: { width: bounds7.width, height: bounds7.height },
1663
+ //{ width: 1, height: 0.24 },
1664
+ center: { x: bounds7.centerX, y: bounds7.centerY }
1665
+ });
1666
+
1667
+ // symbols/varistor_vert.ts
1668
+ var varistor_vert_default = rotateSymbol(varistor_horz_default, {});
1669
+
1670
+ // symbols/index.ts
1671
+ var symbols_default = {
1672
+ "boxresistor_horz": boxresistor_horz_default,
1673
+ "boxresistor_vert": boxresistor_vert_default,
1674
+ "diode_horz": diode_horz_default,
1675
+ "diode_vert": diode_vert_default,
1676
+ "fuse_horz": fuse_horz_default,
1677
+ "fuse_vert": fuse_vert_default,
1678
+ "led_horz": led_horz_default,
1679
+ "led_vert": led_vert_default,
1680
+ "mosfet_depletion_normally_on_horz": mosfet_depletion_normally_on_horz_default,
1681
+ "mosfet_depletion_normally_on_vert": mosfet_depletion_normally_on_vert_default,
1682
+ "potentiometer_horz": potentiometer_horz_default,
1683
+ "potentiometer_vert": potentiometer_vert_default,
1684
+ "potentiometer2_horz": potentiometer2_horz_default,
1685
+ "potentiometer2_vert": potentiometer2_vert_default,
1686
+ "varistor_horz": varistor_horz_default,
1687
+ "varistor_vert": varistor_vert_default
1688
+ };
1689
+
1690
+ // index.ts
1691
+ var BASE_SYMBOLS = Object.fromEntries(Object.keys(symbols_default).map((k) => [k, k]));
1692
+ // Annotate the CommonJS export names for ESM import in node:
1693
+ 0 && (module.exports = {
1694
+ BASE_SYMBOLS,
1695
+ symbols
1696
+ });
1697
+ //# sourceMappingURL=index.cjs.map