schematic-symbols 0.0.6 → 0.0.8

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 (39) hide show
  1. package/dist/index.cjs +1529 -0
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.cts +77 -0
  4. package/package.json +8 -1
  5. package/.github/CODEOWNERS +0 -1
  6. package/.github/workflows/bun-formatcheck.yml +0 -26
  7. package/.github/workflows/bun-pver-release.yml +0 -27
  8. package/.github/workflows/bun-typecheck.yml +0 -26
  9. package/.github/workflows/formatbot.yml +0 -49
  10. package/assets/symbols-svg-json/boxresistor.json +0 -90
  11. package/assets/symbols-svg-json/capacitor.json +0 -76
  12. package/assets/symbols-svg-json/capacitor_polarized.json +0 -83
  13. package/assets/symbols-svg-json/diode.json +0 -91
  14. package/assets/symbols-svg-json/diode_bipolar_zener.json +0 -166
  15. package/assets/symbols-svg-json/diode_schottky.json +0 -76
  16. package/assets/symbols-svg-json/diode_zener.json +0 -31
  17. package/assets/symbols-svg-json/fuse.json +0 -84
  18. package/assets/symbols-svg-json/led.json +0 -205
  19. package/assets/symbols-svg-json/mosfet_depletion_normally_on.json +0 -267
  20. package/assets/symbols-svg-json/potentiometer.json +0 -137
  21. package/assets/symbols-svg-json/potentiometer2.json +0 -160
  22. package/assets/symbols-svg-json/testshape.json +0 -35
  23. package/assets/symbols-svg-json/varistor.json +0 -129
  24. package/assets/symbols.svg +0 -965
  25. package/biome.json +0 -44
  26. package/bun.lockb +0 -0
  27. package/dev-server.ts +0 -22
  28. package/scripts/build.ts +0 -18
  29. package/scripts/convertToObjectWithOrderedPositionIds.ts +0 -52
  30. package/scripts/generate-symbols-from-asset-svgs.ts +0 -146
  31. package/scripts/lib/applyGroupTransformsToChildren.ts +0 -119
  32. package/scripts/lib/findInnerText.ts +0 -11
  33. package/scripts/lib/generate-web-page.ts +0 -60
  34. package/scripts/lib/getTsFileContentForSvgGroup.ts +0 -33
  35. package/scripts/lib/serializeSvgPathCommands.ts +0 -48
  36. package/tests/assets/boxresistor-untransformed.json +0 -187
  37. package/tests/assets/testshape-untransformed.json +0 -25
  38. package/tests/normalize-svg.test.ts +0 -29
  39. package/tsconfig.json +0 -28
package/dist/index.cjs ADDED
@@ -0,0 +1,1529 @@
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/fuse.json
364
+ var fuse_default = {
365
+ paths: {
366
+ path10: {
367
+ type: "path",
368
+ points: [
369
+ {
370
+ x: -0.529167000000001,
371
+ y: 0
372
+ },
373
+ {
374
+ x: 0.5291669999999993,
375
+ y: 0
376
+ }
377
+ ],
378
+ color: "primary",
379
+ fill: false
380
+ },
381
+ path14: {
382
+ type: "path",
383
+ points: [
384
+ {
385
+ x: 1999999998503199e-21,
386
+ y: -0.13229169999999968
387
+ },
388
+ {
389
+ x: 0.2645849999999985,
390
+ y: -0.13229169999999968
391
+ },
392
+ {
393
+ x: 0.2645849999999985,
394
+ y: 0.13229169999999968
395
+ },
396
+ {
397
+ x: -0.26458200000000076,
398
+ y: 0.13229169999999968
399
+ },
400
+ {
401
+ x: -0.26458200000000076,
402
+ y: -0.13229169999999968
403
+ },
404
+ {
405
+ x: 1999999998503199e-21,
406
+ y: -0.13229169999999968
407
+ }
408
+ ],
409
+ color: "primary",
410
+ fill: false
411
+ }
412
+ },
413
+ texts: {
414
+ top1: {
415
+ type: "text",
416
+ text: "{REF}",
417
+ x: -0.00912720000000089,
418
+ y: -0.1995035999999999
419
+ },
420
+ bottom1: {
421
+ type: "text",
422
+ text: "{VAL}",
423
+ x: -0.17251720000000148,
424
+ y: 0.27233090000000004
425
+ }
426
+ },
427
+ refblocks: {
428
+ left1: {
429
+ x: -0.5354181000000011,
430
+ y: -0.0030468999999992974
431
+ },
432
+ right1: {
433
+ x: 0.5336915999999992,
434
+ y: 0.0011575000000014768
435
+ }
436
+ },
437
+ bounds: {
438
+ minX: -0.529167000000001,
439
+ maxX: 0.5291669999999993,
440
+ minY: -0.13229169999999968,
441
+ maxY: 0.13229169999999968,
442
+ width: 1.0583340000000003,
443
+ height: 0.26458339999999936,
444
+ centerX: -8881784197001252e-31,
445
+ centerY: 0
446
+ }
447
+ };
448
+
449
+ // symbols/fuse_horz.ts
450
+ var { paths, texts, bounds, refblocks } = fuse_default;
451
+ var fuse_horz_default = defineSymbol({
452
+ primitives: [
453
+ ...Object.values(paths),
454
+ { ...texts.top1, anchor: "middle_bottom" },
455
+ {
456
+ type: "text",
457
+ text: "{VAL}",
458
+ x: 0,
459
+ y: 0.2,
460
+ anchor: "middle_top"
461
+ }
462
+ ],
463
+ ports: [
464
+ { ...refblocks.left1, labels: ["1"] },
465
+ // TODO add more "standard" labels
466
+ { ...refblocks.right1, labels: ["2"] }
467
+ // TODO add more "standard" labels
468
+ ],
469
+ size: { width: bounds.width, height: bounds.height },
470
+ center: { x: bounds.centerX, y: bounds.centerY }
471
+ });
472
+
473
+ // symbols/fuse_vert.ts
474
+ var fuse_vert_default = rotateSymbol(fuse_horz_default);
475
+
476
+ // assets/symbols-svg-json/led.json
477
+ var led_default = {
478
+ paths: {
479
+ path45: {
480
+ type: "path",
481
+ points: [
482
+ {
483
+ x: 0.13229164999999998,
484
+ y: 0.09743664999999524
485
+ },
486
+ {
487
+ x: -0.13229164999999998,
488
+ y: 0.22972834999999847
489
+ }
490
+ ],
491
+ color: "primary",
492
+ fill: false
493
+ },
494
+ path46: {
495
+ type: "path",
496
+ points: [
497
+ {
498
+ x: -0.13229164999999998,
499
+ y: -0.03485505000000444
500
+ },
501
+ {
502
+ x: 0.13229164999999998,
503
+ y: 0.09743664999999524
504
+ }
505
+ ],
506
+ color: "primary",
507
+ fill: false
508
+ },
509
+ path47: {
510
+ type: "path",
511
+ points: [
512
+ {
513
+ x: -0.13229164999999998,
514
+ y: 0.22972834999999847
515
+ },
516
+ {
517
+ x: -0.13229164999999998,
518
+ y: -0.03485505000000444
519
+ }
520
+ ],
521
+ color: "primary",
522
+ fill: false
523
+ },
524
+ path48: {
525
+ type: "path",
526
+ points: [
527
+ {
528
+ x: 0.13229164999999998,
529
+ y: -0.03485505000000444
530
+ },
531
+ {
532
+ x: 0.13229164999999998,
533
+ y: 0.22972834999999847
534
+ }
535
+ ],
536
+ color: "primary",
537
+ fill: false
538
+ },
539
+ path49: {
540
+ type: "path",
541
+ points: [
542
+ {
543
+ x: 0.5291666500000001,
544
+ y: 0.09743664999999524
545
+ },
546
+ {
547
+ x: -0.5291666500000001,
548
+ y: 0.09743664999999524
549
+ }
550
+ ],
551
+ color: "primary",
552
+ fill: false
553
+ },
554
+ path25: {
555
+ type: "path",
556
+ points: [
557
+ {
558
+ x: -0.15930975000000025,
559
+ y: -0.19171255000000187
560
+ },
561
+ {
562
+ x: -0.25665205,
563
+ y: -0.20859175000000363
564
+ },
565
+ {
566
+ x: -0.22234925000000016,
567
+ y: -0.11582895000000448
568
+ },
569
+ {
570
+ x: -0.15930975000000025,
571
+ y: -0.19171255000000187
572
+ }
573
+ ],
574
+ color: "primary",
575
+ fill: true
576
+ },
577
+ path78: {
578
+ type: "path",
579
+ points: [
580
+ {
581
+ x: -0.08357035000000002,
582
+ y: -0.07216775000000197
583
+ },
584
+ {
585
+ x: -0.09559384999999976,
586
+ y: -0.0811007500000045
587
+ },
588
+ {
589
+ x: -0.21735035000000025,
590
+ y: -0.17155655000000536
591
+ },
592
+ {
593
+ x: -0.21798034999999993,
594
+ y: -0.17250655000000492
595
+ }
596
+ ],
597
+ color: "primary",
598
+ fill: false
599
+ },
600
+ "path25-0": {
601
+ type: "path",
602
+ points: [
603
+ {
604
+ x: 0.01815655000000005,
605
+ y: -0.21284915000000026
606
+ },
607
+ {
608
+ x: -0.07918575000000017,
609
+ y: -0.22972835000000202
610
+ },
611
+ {
612
+ x: -0.044882949999999866,
613
+ y: -0.13696555000000288
614
+ },
615
+ {
616
+ x: 0.01815655000000005,
617
+ y: -0.21284915000000026
618
+ }
619
+ ],
620
+ color: "primary",
621
+ fill: true
622
+ },
623
+ "path78-6": {
624
+ type: "path",
625
+ points: [
626
+ {
627
+ x: 0.09389595000000028,
628
+ y: -0.09330435000000037
629
+ },
630
+ {
631
+ x: 0.0818724500000001,
632
+ y: -0.10223735000000289
633
+ },
634
+ {
635
+ x: -0.03988404999999995,
636
+ y: -0.19269315000000375
637
+ },
638
+ {
639
+ x: -0.04051405000000008,
640
+ y: -0.19364315000000332
641
+ }
642
+ ],
643
+ color: "primary",
644
+ fill: false
645
+ }
646
+ },
647
+ texts: {
648
+ bottom1: {
649
+ type: "text",
650
+ text: "{VAL}",
651
+ x: -0.013127550000000099,
652
+ y: 0.4172088499999944
653
+ },
654
+ right1: {
655
+ type: "text",
656
+ text: "{REF}",
657
+ x: 0.3110748499999998,
658
+ y: -0.13012545000000486
659
+ }
660
+ },
661
+ refblocks: {
662
+ left1: {
663
+ x: -0.5397751500000003,
664
+ y: 0.09817314999999738
665
+ },
666
+ right1: {
667
+ x: 0.5326434499999997,
668
+ y: 0.09862664999999993
669
+ }
670
+ },
671
+ bounds: {
672
+ minX: -0.5291666500000001,
673
+ maxX: 0.5291666500000001,
674
+ minY: -0.22972835000000202,
675
+ maxY: 0.22972834999999847,
676
+ width: 1.0583333000000001,
677
+ height: 0.4594567000000005,
678
+ centerX: 0,
679
+ centerY: -17763568394002505e-31
680
+ }
681
+ };
682
+
683
+ // symbols/led_horz.ts
684
+ var { paths: paths2, texts: texts2, bounds: bounds2, refblocks: refblocks2 } = led_default;
685
+ var led_horz_default = defineSymbol({
686
+ primitives: [
687
+ ...Object.values(paths2),
688
+ { ...texts2.bottom1, anchor: "middle_left" },
689
+ { ...texts2.right1, anchor: "middle_left" }
690
+ ],
691
+ ports: [
692
+ { ...refblocks2.left1, labels: ["1"] },
693
+ // TODO add more "standard" labels
694
+ { ...refblocks2.right1, labels: ["2"] }
695
+ // TODO add more "standard" labels
696
+ ],
697
+ size: { width: bounds2.width, height: bounds2.height },
698
+ center: { x: bounds2.centerX, y: bounds2.centerY + 0.1 }
699
+ });
700
+
701
+ // symbols/led_vert.ts
702
+ var led_vert_default = rotateSymbol(led_horz_default);
703
+
704
+ // assets/symbols-svg-json/mosfet_depletion_normally_on.json
705
+ var mosfet_depletion_normally_on_default = {
706
+ paths: {
707
+ path208: {
708
+ type: "path",
709
+ points: [
710
+ {
711
+ x: 0.39687494999999995,
712
+ y: -0.13228999999999935
713
+ },
714
+ {
715
+ x: 0.5291666500000005,
716
+ y: 0.13229300000000066
717
+ }
718
+ ],
719
+ color: "primary",
720
+ fill: false
721
+ },
722
+ path209: {
723
+ type: "path",
724
+ points: [
725
+ {
726
+ x: 0.26458325000000027,
727
+ y: 0.13229300000000066
728
+ },
729
+ {
730
+ x: 0.39687494999999995,
731
+ y: -0.13228999999999935
732
+ }
733
+ ],
734
+ color: "primary",
735
+ fill: false
736
+ },
737
+ path210: {
738
+ type: "path",
739
+ points: [
740
+ {
741
+ x: 0.5291666500000005,
742
+ y: 0.13229300000000066
743
+ },
744
+ {
745
+ x: 0.26458325000000027,
746
+ y: 0.13229300000000066
747
+ }
748
+ ],
749
+ color: "primary",
750
+ fill: false
751
+ },
752
+ path211: {
753
+ type: "path",
754
+ points: [
755
+ {
756
+ x: 0.26458325000000027,
757
+ y: -0.13228999999999935
758
+ },
759
+ {
760
+ x: 0.5291666500000005,
761
+ y: -0.13228999999999935
762
+ }
763
+ ],
764
+ color: "primary",
765
+ fill: false
766
+ },
767
+ path212: {
768
+ type: "path",
769
+ points: [
770
+ {
771
+ x: 0.13229165000000087,
772
+ y: 0.39687499999999964
773
+ },
774
+ {
775
+ x: 0.39687494999999995,
776
+ y: 0.39687499999999964
777
+ }
778
+ ],
779
+ color: "primary",
780
+ fill: false
781
+ },
782
+ path213: {
783
+ type: "path",
784
+ points: [
785
+ {
786
+ x: 0.39687494999999995,
787
+ y: -0.3968740000000004
788
+ },
789
+ {
790
+ x: 0.13229165000000087,
791
+ y: -0.3968740000000004
792
+ }
793
+ ],
794
+ color: "primary",
795
+ fill: false
796
+ },
797
+ path214: {
798
+ type: "path",
799
+ points: [
800
+ {
801
+ x: 0.13229165000000087,
802
+ y: -0.529166
803
+ },
804
+ {
805
+ x: 0.13229165000000087,
806
+ y: -0.1852090000000004
807
+ }
808
+ ],
809
+ color: "primary",
810
+ fill: false
811
+ },
812
+ path215: {
813
+ type: "path",
814
+ points: [
815
+ {
816
+ x: 0.13229165000000087,
817
+ y: 0.529166
818
+ },
819
+ {
820
+ x: 0.13229165000000087,
821
+ y: -9999999992515995e-22
822
+ }
823
+ ],
824
+ color: "primary",
825
+ fill: false
826
+ },
827
+ path216: {
828
+ type: "path",
829
+ points: [
830
+ {
831
+ x: 0.39687494999999995,
832
+ y: 0.39687563000000026
833
+ },
834
+ {
835
+ x: 0.39687494999999995,
836
+ y: -0.3968746999999997
837
+ }
838
+ ],
839
+ color: "primary",
840
+ fill: false
841
+ },
842
+ path217: {
843
+ type: "path",
844
+ points: [
845
+ {
846
+ x: -0.13229164999999998,
847
+ y: -0.2645850000000003
848
+ },
849
+ {
850
+ x: -0.13229164999999998,
851
+ y: 0.26458099999999973
852
+ }
853
+ ],
854
+ color: "primary",
855
+ fill: false
856
+ },
857
+ path218: {
858
+ type: "path",
859
+ points: [
860
+ {
861
+ x: -0.21166664999999885,
862
+ y: 0.264581999999999
863
+ },
864
+ {
865
+ x: -0.21166664999999885,
866
+ y: -0.26458399999999926
867
+ }
868
+ ],
869
+ color: "primary",
870
+ fill: false
871
+ },
872
+ path219: {
873
+ type: "path",
874
+ points: [
875
+ {
876
+ x: -0.5291666499999996,
877
+ y: 0.26458099999999973
878
+ },
879
+ {
880
+ x: -0.21166664999999885,
881
+ y: 0.264583
882
+ }
883
+ ],
884
+ color: "primary",
885
+ fill: false
886
+ },
887
+ path220: {
888
+ type: "path",
889
+ points: [
890
+ {
891
+ x: -0.13229164999999998,
892
+ y: 0.18520600000000087
893
+ },
894
+ {
895
+ x: 0.13229175000000026,
896
+ y: 0.18520600000000087
897
+ }
898
+ ],
899
+ color: "primary",
900
+ fill: false
901
+ },
902
+ path221: {
903
+ type: "path",
904
+ points: [
905
+ {
906
+ x: -0.13229164999999998,
907
+ y: -0.18520999999999965
908
+ },
909
+ {
910
+ x: 0.13229175000000026,
911
+ y: -0.18520999999999965
912
+ }
913
+ ],
914
+ color: "primary",
915
+ fill: false
916
+ },
917
+ path222: {
918
+ type: "path",
919
+ points: [
920
+ {
921
+ x: -0.05291665000000023,
922
+ y: -9999999992515995e-22
923
+ },
924
+ {
925
+ x: 0.13229165000000087,
926
+ y: -9999999992515995e-22
927
+ }
928
+ ],
929
+ color: "primary",
930
+ fill: false
931
+ }
932
+ },
933
+ texts: {
934
+ right1: {
935
+ type: "text",
936
+ text: "{REF}",
937
+ x: 0.5827374500000007,
938
+ y: -0.20929270999999972
939
+ },
940
+ right2: {
941
+ type: "text",
942
+ text: "{VAL}",
943
+ x: 0.58412285,
944
+ y: -0.021192649999999702
945
+ }
946
+ },
947
+ refblocks: {
948
+ top1: {
949
+ x: 0.13275345000000005,
950
+ y: -0.5440228900000008
951
+ },
952
+ bottom1: {
953
+ x: 0.13239525000000096,
954
+ y: 0.54252477
955
+ },
956
+ left1: {
957
+ x: -0.5308188500000002,
958
+ y: 0.26564980000000027
959
+ }
960
+ },
961
+ bounds: {
962
+ minX: -0.5291666499999996,
963
+ maxX: 0.5291666500000005,
964
+ minY: -0.529166,
965
+ maxY: 0.529166,
966
+ width: 1.0583333000000001,
967
+ height: 1.058332,
968
+ centerX: 4440892098500626e-31,
969
+ centerY: 0
970
+ }
971
+ };
972
+
973
+ // symbols/mosfet_depletion_normally_on_horz.ts
974
+ var { paths: paths3, texts: texts3, bounds: bounds3, refblocks: refblocks3 } = mosfet_depletion_normally_on_default;
975
+ var mosfet_depletion_normally_on_horz_default = defineSymbol({
976
+ primitives: [
977
+ ...Object.values(paths3),
978
+ { ...texts3.right1, anchor: "middle_left" },
979
+ { ...texts3.right2, anchor: "middle_left" }
980
+ ],
981
+ ports: [
982
+ { ...refblocks3.top1, labels: ["1"] },
983
+ // TODO add more "standard" labels
984
+ { ...refblocks3.bottom1, labels: ["2"] },
985
+ // TODO add more "standard" labels
986
+ { ...refblocks3.left1, labels: ["3"] }
987
+ // TODO add more "standard" labels
988
+ ],
989
+ size: { width: bounds3.width + 0.4, height: bounds3.height },
990
+ center: { x: bounds3.centerX + 0.2, y: bounds3.centerY }
991
+ });
992
+
993
+ // symbols/mosfet_depletion_normally_on_vert.ts
994
+ var rotated = rotateSymbol(mosfet_depletion_normally_on_horz_default);
995
+ var ref = rotated.primitives.find(
996
+ (p) => p.type === "text" && p.text === "{REF}"
997
+ );
998
+ var val = rotated.primitives.find(
999
+ (p) => p.type === "text" && p.text === "{VAL}"
1000
+ );
1001
+ ref.anchor = "middle_top";
1002
+ val.anchor = "middle_top";
1003
+ ref.x = val.x;
1004
+ val.y += 0.15;
1005
+ var mosfet_depletion_normally_on_vert_default = rotated;
1006
+
1007
+ // assets/symbols-svg-json/potentiometer.json
1008
+ var potentiometer_default = {
1009
+ paths: {
1010
+ path11: {
1011
+ type: "path",
1012
+ points: [
1013
+ {
1014
+ x: -0.5291669499999998,
1015
+ y: 0.1434596500000005
1016
+ },
1017
+ {
1018
+ x: -0.26458365000000006,
1019
+ y: 0.1434596500000005
1020
+ }
1021
+ ],
1022
+ color: "primary",
1023
+ fill: false
1024
+ },
1025
+ path12: {
1026
+ type: "path",
1027
+ points: [
1028
+ {
1029
+ x: 0.26458334999999966,
1030
+ y: 0.1434596500000005
1031
+ },
1032
+ {
1033
+ x: 0.52916695,
1034
+ y: 0.1434596500000005
1035
+ }
1036
+ ],
1037
+ color: "primary",
1038
+ fill: false
1039
+ },
1040
+ path13: {
1041
+ type: "path",
1042
+ points: [
1043
+ {
1044
+ x: 12499999999526779e-22,
1045
+ y: 0.011167849999999646
1046
+ },
1047
+ {
1048
+ x: 0.26458424999999997,
1049
+ y: 0.011167849999999646
1050
+ },
1051
+ {
1052
+ x: 0.26458424999999997,
1053
+ y: 0.2757512500000008
1054
+ },
1055
+ {
1056
+ x: -0.26458274999999976,
1057
+ y: 0.2757512500000008
1058
+ },
1059
+ {
1060
+ x: -0.26458274999999976,
1061
+ y: 0.011167849999999646
1062
+ },
1063
+ {
1064
+ x: 12500000012849455e-22,
1065
+ y: 0.011167849999999646
1066
+ }
1067
+ ],
1068
+ color: "primary",
1069
+ fill: false
1070
+ },
1071
+ path15: {
1072
+ type: "path",
1073
+ points: [
1074
+ {
1075
+ x: 0.06517084999999989,
1076
+ y: -0.10588935
1077
+ },
1078
+ {
1079
+ x: -0.06529785000000032,
1080
+ y: -0.10588935
1081
+ },
1082
+ {
1083
+ x: -6345000000029799e-20,
1084
+ y: 0.00700125000000007
1085
+ },
1086
+ {
1087
+ x: 0.06517084999999989,
1088
+ y: -0.10588935
1089
+ }
1090
+ ],
1091
+ color: "primary",
1092
+ fill: true
1093
+ },
1094
+ path17: {
1095
+ type: "path",
1096
+ points: [
1097
+ {
1098
+ x: 25875000000041837e-20,
1099
+ y: -0.2757512500000008
1100
+ },
1101
+ {
1102
+ x: 25875000000041837e-20,
1103
+ y: -0.060545249999998774
1104
+ }
1105
+ ],
1106
+ color: "primary",
1107
+ fill: false
1108
+ }
1109
+ },
1110
+ texts: {
1111
+ bottom1: {
1112
+ type: "text",
1113
+ text: "{VAL}",
1114
+ x: -0.007583050000000924,
1115
+ y: 0.4315381500000015
1116
+ },
1117
+ right1: {
1118
+ type: "text",
1119
+ text: "{REF}",
1120
+ x: 0.12478014999999942,
1121
+ y: -0.09260654999999929
1122
+ }
1123
+ },
1124
+ refblocks: {
1125
+ left1: {
1126
+ x: -0.5449899500000002,
1127
+ y: 0.14431244999999926
1128
+ },
1129
+ right1: {
1130
+ x: 0.5378069499999998,
1131
+ y: 0.14331605000000103
1132
+ }
1133
+ },
1134
+ bounds: {
1135
+ minX: -0.5291669499999998,
1136
+ maxX: 0.52916695,
1137
+ minY: -0.2757512500000008,
1138
+ maxY: 0.2757512500000008,
1139
+ width: 1.0583338999999998,
1140
+ height: 0.5515025000000016,
1141
+ centerX: 11102230246251565e-32,
1142
+ centerY: 0
1143
+ }
1144
+ };
1145
+
1146
+ // symbols/potentiometer_horz.ts
1147
+ var { paths: paths4, texts: texts4, bounds: bounds4, refblocks: refblocks4 } = potentiometer_default;
1148
+ var potentiometer_horz_default = defineSymbol({
1149
+ primitives: [
1150
+ ...Object.values(paths4),
1151
+ { ...texts4.bottom1, y: 0.35, anchor: "middle_top" },
1152
+ { ...texts4.right1, anchor: "middle_left" }
1153
+ ],
1154
+ ports: [
1155
+ { ...refblocks4.left1, labels: ["1"] },
1156
+ // TODO add more "standard" labels
1157
+ { ...refblocks4.right1, labels: ["2"] }
1158
+ // TODO add more "standard" labels
1159
+ ],
1160
+ size: { width: bounds4.width + 0.05, height: bounds4.height },
1161
+ center: { x: bounds4.centerX, y: bounds4.centerY }
1162
+ });
1163
+
1164
+ // symbols/potentiometer_vert.ts
1165
+ var rotated2 = rotateSymbol(potentiometer_horz_default);
1166
+ var potentiometer_vert_default = rotated2;
1167
+
1168
+ // assets/symbols-svg-json/potentiometer2.json
1169
+ var potentiometer2_default = {
1170
+ paths: {
1171
+ path18: {
1172
+ type: "path",
1173
+ points: [
1174
+ {
1175
+ x: -0.5291669499999998,
1176
+ y: 8545000000008685e-19
1177
+ },
1178
+ {
1179
+ x: -0.26458365000000006,
1180
+ y: 8545000000008685e-19
1181
+ }
1182
+ ],
1183
+ color: "primary",
1184
+ fill: false
1185
+ },
1186
+ path19: {
1187
+ type: "path",
1188
+ points: [
1189
+ {
1190
+ x: 0.26458334999999966,
1191
+ y: 8545000000008685e-19
1192
+ },
1193
+ {
1194
+ x: 0.5291669499999996,
1195
+ y: 8545000000008685e-19
1196
+ }
1197
+ ],
1198
+ color: "primary",
1199
+ fill: false
1200
+ },
1201
+ path20: {
1202
+ type: "path",
1203
+ points: [
1204
+ {
1205
+ x: 12499999995085886e-22,
1206
+ y: -0.1314371999999988
1207
+ },
1208
+ {
1209
+ x: 0.26458424999999997,
1210
+ y: -0.1314371999999988
1211
+ },
1212
+ {
1213
+ x: 0.26458424999999997,
1214
+ y: 0.13314619999999877
1215
+ },
1216
+ {
1217
+ x: -0.26458274999999976,
1218
+ y: 0.13314619999999877
1219
+ },
1220
+ {
1221
+ x: -0.26458274999999976,
1222
+ y: -0.1314371999999988
1223
+ },
1224
+ {
1225
+ x: 12500000012849455e-22,
1226
+ y: -0.1314371999999988
1227
+ }
1228
+ ],
1229
+ color: "primary",
1230
+ fill: false
1231
+ },
1232
+ path23: {
1233
+ type: "path",
1234
+ points: [
1235
+ {
1236
+ x: 0.28137284999999945,
1237
+ y: 0.2822274
1238
+ },
1239
+ {
1240
+ x: 0.17906194999999903,
1241
+ y: 0.25486950000000164
1242
+ },
1243
+ {
1244
+ x: 0.2540149499999984,
1245
+ y: 0.1799165000000027
1246
+ },
1247
+ {
1248
+ x: 0.28137284999999945,
1249
+ y: 0.2822274
1250
+ }
1251
+ ],
1252
+ color: "primary",
1253
+ fill: true
1254
+ },
1255
+ path24: {
1256
+ type: "path",
1257
+ points: [
1258
+ {
1259
+ x: 0.29134274999999965,
1260
+ y: 0.2921307000000013
1261
+ },
1262
+ {
1263
+ x: 0.2577490499999997,
1264
+ y: 0.16634940000000142
1265
+ },
1266
+ {
1267
+ x: 0.16536614999999966,
1268
+ y: 0.25853690000000284
1269
+ },
1270
+ {
1271
+ x: 0.29134274999999965,
1272
+ y: 0.2921307000000013
1273
+ }
1274
+ ],
1275
+ color: "primary",
1276
+ fill: true
1277
+ },
1278
+ path26: {
1279
+ type: "path",
1280
+ points: [
1281
+ {
1282
+ x: -0.29551765000000074,
1283
+ y: -0.2921307000000013
1284
+ },
1285
+ {
1286
+ x: 0.23295514999999956,
1287
+ y: 0.2328032000000011
1288
+ }
1289
+ ],
1290
+ color: "primary",
1291
+ fill: false
1292
+ }
1293
+ },
1294
+ texts: {
1295
+ top1: {
1296
+ type: "text",
1297
+ text: "{REF}",
1298
+ x: 0.05811516999999933,
1299
+ y: -0.2009376800000009
1300
+ },
1301
+ bottom1: {
1302
+ type: "text",
1303
+ text: "{VAL}",
1304
+ x: -0.09712293000000072,
1305
+ y: 0.27857531999999985
1306
+ }
1307
+ },
1308
+ refblocks: {
1309
+ left1: {
1310
+ x: -0.5316179500000004,
1311
+ y: 0.0013439000000019519
1312
+ },
1313
+ right1: {
1314
+ x: 0.5377649500000006,
1315
+ y: 0.001956599999999753
1316
+ }
1317
+ },
1318
+ bounds: {
1319
+ minX: -0.5291669499999998,
1320
+ maxX: 0.5291669499999996,
1321
+ minY: -0.2921307000000013,
1322
+ maxY: 0.2921307000000013,
1323
+ width: 1.0583338999999994,
1324
+ height: 0.5842614000000026,
1325
+ centerX: -11102230246251565e-32,
1326
+ centerY: 0
1327
+ }
1328
+ };
1329
+
1330
+ // symbols/potentiometer2_horz.ts
1331
+ var { paths: paths5, texts: texts5, bounds: bounds5, refblocks: refblocks5 } = potentiometer2_default;
1332
+ var potentiometer2_horz_default = defineSymbol({
1333
+ primitives: [...Object.values(paths5), ...Object.values(texts5)],
1334
+ ports: [
1335
+ { ...refblocks5.left1, labels: ["1"] },
1336
+ // TODO add more "standard" labels
1337
+ { ...refblocks5.right1, labels: ["2"] }
1338
+ // TODO add more "standard" labels
1339
+ ],
1340
+ size: { width: bounds5.width, height: bounds5.height },
1341
+ center: { x: bounds5.centerX, y: bounds5.centerY }
1342
+ });
1343
+
1344
+ // symbols/potentiometer2_vert.ts
1345
+ var potentiometer2_vert_default = rotateSymbol(potentiometer2_horz_default);
1346
+
1347
+ // assets/symbols-svg-json/varistor.json
1348
+ var varistor_default = {
1349
+ paths: {
1350
+ path5: {
1351
+ type: "path",
1352
+ points: [
1353
+ {
1354
+ x: -0.5291668,
1355
+ y: 0
1356
+ },
1357
+ {
1358
+ x: -0.2645835000000005,
1359
+ y: 0
1360
+ }
1361
+ ],
1362
+ color: "primary",
1363
+ fill: false
1364
+ },
1365
+ path6: {
1366
+ type: "path",
1367
+ points: [
1368
+ {
1369
+ x: 0.2645835000000005,
1370
+ y: 0
1371
+ },
1372
+ {
1373
+ x: 0.5291668,
1374
+ y: 0
1375
+ }
1376
+ ],
1377
+ color: "primary",
1378
+ fill: false
1379
+ },
1380
+ path7: {
1381
+ type: "path",
1382
+ points: [
1383
+ {
1384
+ x: 0.2645835000000005,
1385
+ y: 0.23812500000000192
1386
+ },
1387
+ {
1388
+ x: -0.2645834999999992,
1389
+ y: -0.23812500000000014
1390
+ }
1391
+ ],
1392
+ color: "primary",
1393
+ fill: false
1394
+ },
1395
+ path8: {
1396
+ type: "path",
1397
+ points: [
1398
+ {
1399
+ x: 0.3704165000000006,
1400
+ y: 0.23812500000000192
1401
+ },
1402
+ {
1403
+ x: 0.2645835000000005,
1404
+ y: 0.23812500000000192
1405
+ }
1406
+ ],
1407
+ color: "primary",
1408
+ fill: false
1409
+ },
1410
+ path9: {
1411
+ type: "path",
1412
+ points: [
1413
+ {
1414
+ x: 1400000000817414e-21,
1415
+ y: -0.13229179999999907
1416
+ },
1417
+ {
1418
+ x: 0.2645844000000013,
1419
+ y: -0.13229179999999907
1420
+ },
1421
+ {
1422
+ x: 0.2645844000000013,
1423
+ y: 0.13229160000000206
1424
+ },
1425
+ {
1426
+ x: -0.26458259999999845,
1427
+ y: 0.13229160000000206
1428
+ },
1429
+ {
1430
+ x: -0.26458259999999845,
1431
+ y: -0.13229179999999907
1432
+ },
1433
+ {
1434
+ x: 14000000021496817e-22,
1435
+ y: -0.13229179999999907
1436
+ }
1437
+ ],
1438
+ color: "primary",
1439
+ fill: false
1440
+ }
1441
+ },
1442
+ texts: {
1443
+ top1: {
1444
+ type: "text",
1445
+ text: "{REF}",
1446
+ x: -0.06307419999999953,
1447
+ y: -0.2470063999999983
1448
+ },
1449
+ bottom1: {
1450
+ type: "text",
1451
+ text: "{VAL}",
1452
+ x: 0.0039234000000010205,
1453
+ y: 0.256324600000001
1454
+ }
1455
+ },
1456
+ refblocks: {
1457
+ left1: {
1458
+ x: -0.5438152999999999,
1459
+ y: 0.0016897000000017925
1460
+ },
1461
+ right1: {
1462
+ x: 0.5346478000000006,
1463
+ y: -6806999999984242e-19
1464
+ }
1465
+ },
1466
+ bounds: {
1467
+ minX: -0.5291668,
1468
+ maxX: 0.5291668,
1469
+ minY: -0.23812500000000014,
1470
+ maxY: 0.23812500000000192,
1471
+ width: 1.0583336,
1472
+ height: 0.47625000000000206,
1473
+ centerX: 0,
1474
+ centerY: 8881784197001252e-31
1475
+ }
1476
+ };
1477
+
1478
+ // symbols/varistor_horz.ts
1479
+ var { paths: paths6, texts: texts6, bounds: bounds6, refblocks: refblocks6 } = varistor_default;
1480
+ var varistor_horz_default = defineSymbol({
1481
+ primitives: [
1482
+ ...Object.values(paths6),
1483
+ { ...texts6.top1, anchor: "middle_left" },
1484
+ { ...texts6.bottom1, anchor: "middle_right" }
1485
+ ],
1486
+ ports: [
1487
+ {
1488
+ ...refblocks6.left1,
1489
+ labels: ["1", "-"]
1490
+ },
1491
+ {
1492
+ ...refblocks6.right1,
1493
+ labels: ["2", "+"]
1494
+ }
1495
+ ],
1496
+ size: { width: bounds6.width, height: bounds6.height },
1497
+ //{ width: 1, height: 0.24 },
1498
+ center: { x: bounds6.centerX, y: bounds6.centerY }
1499
+ });
1500
+
1501
+ // symbols/varistor_vert.ts
1502
+ var varistor_vert_default = rotateSymbol(varistor_horz_default, {});
1503
+
1504
+ // symbols/index.ts
1505
+ var symbols_default = {
1506
+ "boxresistor_horz": boxresistor_horz_default,
1507
+ "boxresistor_vert": boxresistor_vert_default,
1508
+ "fuse_horz": fuse_horz_default,
1509
+ "fuse_vert": fuse_vert_default,
1510
+ "led_horz": led_horz_default,
1511
+ "led_vert": led_vert_default,
1512
+ "mosfet_depletion_normally_on_horz": mosfet_depletion_normally_on_horz_default,
1513
+ "mosfet_depletion_normally_on_vert": mosfet_depletion_normally_on_vert_default,
1514
+ "potentiometer_horz": potentiometer_horz_default,
1515
+ "potentiometer_vert": potentiometer_vert_default,
1516
+ "potentiometer2_horz": potentiometer2_horz_default,
1517
+ "potentiometer2_vert": potentiometer2_vert_default,
1518
+ "varistor_horz": varistor_horz_default,
1519
+ "varistor_vert": varistor_vert_default
1520
+ };
1521
+
1522
+ // index.ts
1523
+ var BASE_SYMBOLS = Object.fromEntries(Object.keys(symbols_default).map((k) => [k, k]));
1524
+ // Annotate the CommonJS export names for ESM import in node:
1525
+ 0 && (module.exports = {
1526
+ BASE_SYMBOLS,
1527
+ symbols
1528
+ });
1529
+ //# sourceMappingURL=index.cjs.map