schematic-symbols 0.0.29 → 0.0.31
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/index.d.ts +5 -1
- package/dist/index.js +605 -217
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/symbols/avalanche_diode_horz.ts +19 -0
- package/symbols/avalanche_diode_vert.ts +17 -0
- package/symbols/tunnel_diode_horz.ts +19 -0
- package/symbols/tunnel_diode_vert.ts +18 -0
package/dist/index.js
CHANGED
@@ -1,49 +1,186 @@
|
|
1
|
-
// drawing/path.ts
|
2
|
-
function path(options) {
|
3
|
-
return { type: "path", ...options };
|
4
|
-
}
|
5
|
-
|
6
|
-
// drawing/text.ts
|
7
|
-
function text(text2, options) {
|
8
|
-
return { type: "text", text: text2, ...options };
|
9
|
-
}
|
10
|
-
|
11
1
|
// drawing/defineSymbol.ts
|
12
2
|
function defineSymbol(symbol) {
|
13
3
|
return symbol;
|
14
4
|
}
|
15
5
|
|
16
|
-
//
|
17
|
-
var
|
18
|
-
|
19
|
-
|
6
|
+
// assets/generated/avalanche_diode.json
|
7
|
+
var avalanche_diode_default = {
|
8
|
+
paths: {
|
9
|
+
path40: {
|
10
|
+
type: "path",
|
20
11
|
points: [
|
21
|
-
{
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
{
|
26
|
-
|
27
|
-
|
12
|
+
{
|
13
|
+
x: 0.1413337499999996,
|
14
|
+
y: -33784999999975085e-20
|
15
|
+
},
|
16
|
+
{
|
17
|
+
x: -0.12324954999999993,
|
18
|
+
y: 0.1319538500000006
|
19
|
+
}
|
28
20
|
],
|
29
|
-
color: "primary"
|
30
|
-
|
31
|
-
|
21
|
+
color: "primary",
|
22
|
+
fill: false
|
23
|
+
},
|
24
|
+
path41: {
|
25
|
+
type: "path",
|
32
26
|
points: [
|
33
|
-
{
|
34
|
-
|
27
|
+
{
|
28
|
+
x: -0.12324954999999993,
|
29
|
+
y: -0.1326295500000001
|
30
|
+
},
|
31
|
+
{
|
32
|
+
x: 0.1413337499999996,
|
33
|
+
y: -33784999999975085e-20
|
34
|
+
}
|
35
35
|
],
|
36
|
-
color: "primary"
|
37
|
-
|
38
|
-
|
39
|
-
|
36
|
+
color: "primary",
|
37
|
+
fill: false
|
38
|
+
},
|
39
|
+
path42: {
|
40
|
+
type: "path",
|
41
|
+
points: [
|
42
|
+
{
|
43
|
+
x: -0.12324954999999993,
|
44
|
+
y: 0.13195384999999926
|
45
|
+
},
|
46
|
+
{
|
47
|
+
x: -0.12324954999999993,
|
48
|
+
y: -0.1326295500000001
|
49
|
+
}
|
50
|
+
],
|
51
|
+
color: "primary",
|
52
|
+
fill: false
|
53
|
+
},
|
54
|
+
path43: {
|
55
|
+
type: "path",
|
56
|
+
points: [
|
57
|
+
{
|
58
|
+
x: 0.1413337499999996,
|
59
|
+
y: -0.1326295500000001
|
60
|
+
},
|
61
|
+
{
|
62
|
+
x: 0.1413337499999996,
|
63
|
+
y: 0.13195384999999926
|
64
|
+
}
|
65
|
+
],
|
66
|
+
color: "primary",
|
67
|
+
fill: false
|
68
|
+
},
|
69
|
+
path44: {
|
70
|
+
type: "path",
|
71
|
+
points: [
|
72
|
+
{
|
73
|
+
x: -0.12545425,
|
74
|
+
y: -33784999999975085e-20
|
75
|
+
},
|
76
|
+
{
|
77
|
+
x: -0.52012455,
|
78
|
+
y: -33784999999975085e-20
|
79
|
+
}
|
80
|
+
],
|
81
|
+
color: "primary",
|
82
|
+
fill: false
|
83
|
+
},
|
84
|
+
"path44-0": {
|
85
|
+
type: "path",
|
86
|
+
points: [
|
87
|
+
{
|
88
|
+
x: 0.5201245499999998,
|
89
|
+
y: -25265000000018745e-20
|
90
|
+
},
|
91
|
+
{
|
92
|
+
x: 0.14641644999999937,
|
93
|
+
y: -25265000000018745e-20
|
94
|
+
}
|
95
|
+
],
|
96
|
+
color: "primary",
|
97
|
+
fill: false
|
98
|
+
},
|
99
|
+
"path43-8": {
|
100
|
+
type: "path",
|
101
|
+
points: [
|
102
|
+
{
|
103
|
+
x: 0.1401360499999995,
|
104
|
+
y: -0.13311245000000027
|
105
|
+
},
|
106
|
+
{
|
107
|
+
x: 0.07443344999999923,
|
108
|
+
y: -0.15673055000000047
|
109
|
+
}
|
110
|
+
],
|
111
|
+
color: "primary",
|
112
|
+
fill: false
|
113
|
+
},
|
114
|
+
"path43-8-3": {
|
115
|
+
type: "path",
|
116
|
+
points: [
|
117
|
+
{
|
118
|
+
x: 0.20757744999999939,
|
119
|
+
y: 0.15673055000000025
|
120
|
+
},
|
121
|
+
{
|
122
|
+
x: 0.1418748499999991,
|
123
|
+
y: 0.13311245000000005
|
124
|
+
}
|
125
|
+
],
|
126
|
+
color: "primary",
|
127
|
+
fill: false
|
128
|
+
}
|
129
|
+
},
|
130
|
+
texts: {
|
131
|
+
top1: {
|
132
|
+
type: "text",
|
133
|
+
text: "{REF}",
|
134
|
+
x: -0.0082802500000001,
|
135
|
+
y: -0.2301468499999999
|
136
|
+
},
|
137
|
+
bottom1: {
|
138
|
+
type: "text",
|
139
|
+
text: "{VAL}",
|
140
|
+
x: -0.0033669500000002017,
|
141
|
+
y: 0.31754375
|
142
|
+
}
|
143
|
+
},
|
144
|
+
refblocks: {
|
145
|
+
left1: {
|
146
|
+
x: -0.5224022500000005,
|
147
|
+
y: -0.0012222500000007575
|
148
|
+
},
|
149
|
+
right1: {
|
150
|
+
x: 0.5158919499999994,
|
151
|
+
y: -19764999999982713e-20
|
152
|
+
}
|
153
|
+
},
|
154
|
+
bounds: {
|
155
|
+
minX: -0.52012455,
|
156
|
+
maxX: 0.5201245499999998,
|
157
|
+
minY: -0.15673055000000047,
|
158
|
+
maxY: 0.15673055000000025,
|
159
|
+
width: 1.0402490999999998,
|
160
|
+
height: 1,
|
161
|
+
centerX: -11102230246251565e-32,
|
162
|
+
centerY: -11102230246251565e-32
|
163
|
+
},
|
164
|
+
circles: {}
|
165
|
+
};
|
166
|
+
|
167
|
+
// symbols/avalanche_diode_horz.ts
|
168
|
+
var { paths, texts, bounds, refblocks, circles } = avalanche_diode_default;
|
169
|
+
var avalanche_diode_horz_default = defineSymbol({
|
170
|
+
primitives: [
|
171
|
+
...Object.values(paths),
|
172
|
+
...Object.values(circles),
|
173
|
+
{ ...texts.top1, anchor: "middle_bottom" },
|
174
|
+
{ ...texts.bottom1, anchor: "middle_top" }
|
40
175
|
],
|
41
176
|
ports: [
|
42
|
-
{
|
43
|
-
|
177
|
+
{ ...refblocks.left1, labels: ["1"] },
|
178
|
+
// TODO add more "standard" labels
|
179
|
+
{ ...refblocks.right1, labels: ["2"] }
|
180
|
+
// TODO add more "standard" labels
|
44
181
|
],
|
45
|
-
|
46
|
-
|
182
|
+
size: { width: bounds.width, height: bounds.height },
|
183
|
+
center: { x: bounds.centerX, y: bounds.centerY }
|
47
184
|
});
|
48
185
|
|
49
186
|
// drawing/rotateSymbol.ts
|
@@ -124,6 +261,61 @@ var rotateSymbol = (symbol, overrides) => {
|
|
124
261
|
};
|
125
262
|
};
|
126
263
|
|
264
|
+
// symbols/avalanche_diode_vert.ts
|
265
|
+
var rotated = rotateSymbol(avalanche_diode_horz_default);
|
266
|
+
var ref = rotated.primitives.find(
|
267
|
+
(p) => p.type === "text" && p.text === "{REF}"
|
268
|
+
);
|
269
|
+
var val = rotated.primitives.find(
|
270
|
+
(p) => p.type === "text" && p.text === "{VAL}"
|
271
|
+
);
|
272
|
+
ref.anchor = "middle_left";
|
273
|
+
val.anchor = "middle_right";
|
274
|
+
var avalanche_diode_vert_default = rotated;
|
275
|
+
|
276
|
+
// drawing/path.ts
|
277
|
+
function path(options) {
|
278
|
+
return { type: "path", ...options };
|
279
|
+
}
|
280
|
+
|
281
|
+
// drawing/text.ts
|
282
|
+
function text(text2, options) {
|
283
|
+
return { type: "text", text: text2, ...options };
|
284
|
+
}
|
285
|
+
|
286
|
+
// symbols/boxresistor_horz.ts
|
287
|
+
var boxresistor_horz_default = defineSymbol({
|
288
|
+
primitives: [
|
289
|
+
path({
|
290
|
+
points: [
|
291
|
+
{ x: 0, y: 0 },
|
292
|
+
{ x: 0.2, y: 0 },
|
293
|
+
{ x: 0.2, y: -0.12 },
|
294
|
+
{ x: 0.8, y: -0.12 },
|
295
|
+
{ x: 0.8, y: 0.12 },
|
296
|
+
{ x: 0.2, y: 0.12 },
|
297
|
+
{ x: 0.2, y: 0 }
|
298
|
+
],
|
299
|
+
color: "primary"
|
300
|
+
}),
|
301
|
+
path({
|
302
|
+
points: [
|
303
|
+
{ x: 0.8, y: 0 },
|
304
|
+
{ x: 1, y: 0 }
|
305
|
+
],
|
306
|
+
color: "primary"
|
307
|
+
}),
|
308
|
+
text("{REF}", { x: 0.5, y: -0.2, anchor: "middle_bottom" }),
|
309
|
+
text("{VAL}", { x: 0.5, y: 0.2, anchor: "middle_top" })
|
310
|
+
],
|
311
|
+
ports: [
|
312
|
+
{ x: 0, y: 0, labels: ["1", "-", "left"] },
|
313
|
+
{ x: 1, y: 0, labels: ["2", "+", "right"] }
|
314
|
+
],
|
315
|
+
center: { x: 0.5, y: 0 },
|
316
|
+
size: { width: 1, height: 0.55 }
|
317
|
+
});
|
318
|
+
|
127
319
|
// symbols/boxresistor_vert.ts
|
128
320
|
var boxresistor_vert_default = rotateSymbol(boxresistor_horz_default);
|
129
321
|
|
@@ -228,20 +420,20 @@ var capacitor_default = {
|
|
228
420
|
};
|
229
421
|
|
230
422
|
// symbols/capacitor_horz.ts
|
231
|
-
var { paths, bounds, refblocks, texts } = capacitor_default;
|
423
|
+
var { paths: paths2, bounds: bounds2, refblocks: refblocks2, texts: texts2 } = capacitor_default;
|
232
424
|
var capacitor_horz_default = defineSymbol({
|
233
425
|
primitives: [
|
234
|
-
...Object.values(
|
235
|
-
{ ...
|
236
|
-
{ ...
|
426
|
+
...Object.values(paths2),
|
427
|
+
{ ...texts2.top1, anchor: "middle_bottom" },
|
428
|
+
{ ...texts2.bottom1, anchor: "middle_top" }
|
237
429
|
],
|
238
430
|
ports: [
|
239
|
-
{ ...
|
240
|
-
{ ...
|
431
|
+
{ ...refblocks2.left1, labels: ["1"] },
|
432
|
+
{ ...refblocks2.right1, labels: ["2"] }
|
241
433
|
],
|
242
|
-
size: { width:
|
434
|
+
size: { width: bounds2.width, height: bounds2.height },
|
243
435
|
//{ width: 1, height: 0.24 },
|
244
|
-
center: { x:
|
436
|
+
center: { x: bounds2.centerX, y: bounds2.centerY }
|
245
437
|
});
|
246
438
|
|
247
439
|
// symbols/capacitor_vert.ts
|
@@ -378,21 +570,21 @@ var diode_default = {
|
|
378
570
|
};
|
379
571
|
|
380
572
|
// symbols/diode_horz.ts
|
381
|
-
var { paths:
|
573
|
+
var { paths: paths3, texts: texts3, bounds: bounds3, refblocks: refblocks3 } = diode_default;
|
382
574
|
var diode_horz_default = defineSymbol({
|
383
575
|
primitives: [
|
384
|
-
...Object.values(
|
385
|
-
{ ...
|
386
|
-
{ ...
|
576
|
+
...Object.values(paths3),
|
577
|
+
{ ...texts3.top1, anchor: "middle_bottom" },
|
578
|
+
{ ...texts3.bottom1, anchor: "middle_top" }
|
387
579
|
],
|
388
580
|
ports: [
|
389
|
-
{ ...
|
581
|
+
{ ...refblocks3.left1, labels: ["1"] },
|
390
582
|
// TODO add more "standard" labels
|
391
|
-
{ ...
|
583
|
+
{ ...refblocks3.right1, labels: ["2"] }
|
392
584
|
// TODO add more "standard" labels
|
393
585
|
],
|
394
|
-
size: { width:
|
395
|
-
center: { x:
|
586
|
+
size: { width: bounds3.width, height: bounds3.height },
|
587
|
+
center: { x: bounds3.centerX, y: bounds3.centerY }
|
396
588
|
});
|
397
589
|
|
398
590
|
// symbols/diode_vert.ts
|
@@ -485,11 +677,11 @@ var fuse_default = {
|
|
485
677
|
};
|
486
678
|
|
487
679
|
// symbols/fuse_horz.ts
|
488
|
-
var { paths:
|
680
|
+
var { paths: paths4, texts: texts4, bounds: bounds4, refblocks: refblocks4 } = fuse_default;
|
489
681
|
var fuse_horz_default = defineSymbol({
|
490
682
|
primitives: [
|
491
|
-
...Object.values(
|
492
|
-
{ ...
|
683
|
+
...Object.values(paths4),
|
684
|
+
{ ...texts4.top1, anchor: "middle_bottom" },
|
493
685
|
{
|
494
686
|
type: "text",
|
495
687
|
text: "{VAL}",
|
@@ -499,13 +691,13 @@ var fuse_horz_default = defineSymbol({
|
|
499
691
|
}
|
500
692
|
],
|
501
693
|
ports: [
|
502
|
-
{ ...
|
694
|
+
{ ...refblocks4.left1, labels: ["1"] },
|
503
695
|
// TODO add more "standard" labels
|
504
|
-
{ ...
|
696
|
+
{ ...refblocks4.right1, labels: ["2"] }
|
505
697
|
// TODO add more "standard" labels
|
506
698
|
],
|
507
|
-
size: { width:
|
508
|
-
center: { x:
|
699
|
+
size: { width: bounds4.width, height: bounds4.height },
|
700
|
+
center: { x: bounds4.centerX, y: bounds4.centerY }
|
509
701
|
});
|
510
702
|
|
511
703
|
// symbols/fuse_vert.ts
|
@@ -726,36 +918,36 @@ var led_default = {
|
|
726
918
|
};
|
727
919
|
|
728
920
|
// symbols/led_horz.ts
|
729
|
-
var { paths:
|
921
|
+
var { paths: paths5, texts: texts5, bounds: bounds5, refblocks: refblocks5 } = led_default;
|
730
922
|
var led_horz_default = defineSymbol({
|
731
923
|
primitives: [
|
732
|
-
...Object.values(
|
733
|
-
{ ...
|
734
|
-
{ ...
|
924
|
+
...Object.values(paths5),
|
925
|
+
{ ...texts5.bottom1, anchor: "middle_right" },
|
926
|
+
{ ...texts5.right1, anchor: "middle_left" }
|
735
927
|
],
|
736
928
|
ports: [
|
737
|
-
{ ...
|
738
|
-
{ ...
|
929
|
+
{ ...refblocks5.left1, labels: ["1", "anode", "pos"] },
|
930
|
+
{ ...refblocks5.right1, labels: ["2", "cathode", "neg"] }
|
739
931
|
],
|
740
|
-
size: { width:
|
741
|
-
center: { x:
|
932
|
+
size: { width: bounds5.width, height: bounds5.height },
|
933
|
+
center: { x: bounds5.centerX, y: bounds5.centerY + 0.1 }
|
742
934
|
});
|
743
935
|
|
744
936
|
// symbols/led_vert.ts
|
745
|
-
var
|
746
|
-
var
|
937
|
+
var rotated2 = rotateSymbol(led_horz_default);
|
938
|
+
var ref2 = rotated2.primitives.find(
|
747
939
|
(p) => p.type === "text" && p.text === "{REF}"
|
748
940
|
);
|
749
|
-
var
|
941
|
+
var val2 = rotated2.primitives.find(
|
750
942
|
(p) => p.type === "text" && p.text === "{VAL}"
|
751
943
|
);
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
var led_vert_default =
|
944
|
+
ref2.anchor = "middle_left";
|
945
|
+
val2.anchor = "middle_right";
|
946
|
+
ref2.x += 0.1;
|
947
|
+
ref2.y += 0.017;
|
948
|
+
val2.y = ref2.y;
|
949
|
+
val2.x = -0.3;
|
950
|
+
var led_vert_default = rotated2;
|
759
951
|
|
760
952
|
// assets/generated/mosfet_depletion_normally_on.json
|
761
953
|
var mosfet_depletion_normally_on_default = {
|
@@ -1027,38 +1219,38 @@ var mosfet_depletion_normally_on_default = {
|
|
1027
1219
|
};
|
1028
1220
|
|
1029
1221
|
// symbols/mosfet_depletion_normally_on_horz.ts
|
1030
|
-
var { paths:
|
1222
|
+
var { paths: paths6, texts: texts6, bounds: bounds6, refblocks: refblocks6 } = mosfet_depletion_normally_on_default;
|
1031
1223
|
var mosfet_depletion_normally_on_horz_default = defineSymbol({
|
1032
1224
|
primitives: [
|
1033
|
-
...Object.values(
|
1034
|
-
{ ...
|
1035
|
-
{ ...
|
1225
|
+
...Object.values(paths6),
|
1226
|
+
{ ...texts6.right1, anchor: "middle_left" },
|
1227
|
+
{ ...texts6.right2, anchor: "middle_left" }
|
1036
1228
|
],
|
1037
1229
|
ports: [
|
1038
|
-
{ ...
|
1230
|
+
{ ...refblocks6.top1, labels: ["1"] },
|
1039
1231
|
// TODO add more "standard" labels
|
1040
|
-
{ ...
|
1232
|
+
{ ...refblocks6.bottom1, labels: ["2"] },
|
1041
1233
|
// TODO add more "standard" labels
|
1042
|
-
{ ...
|
1234
|
+
{ ...refblocks6.left1, labels: ["3"] }
|
1043
1235
|
// TODO add more "standard" labels
|
1044
1236
|
],
|
1045
|
-
size: { width:
|
1046
|
-
center: { x:
|
1237
|
+
size: { width: bounds6.width + 0.4, height: bounds6.height },
|
1238
|
+
center: { x: bounds6.centerX + 0.2, y: bounds6.centerY }
|
1047
1239
|
});
|
1048
1240
|
|
1049
1241
|
// symbols/mosfet_depletion_normally_on_vert.ts
|
1050
|
-
var
|
1051
|
-
var
|
1242
|
+
var rotated3 = rotateSymbol(mosfet_depletion_normally_on_horz_default);
|
1243
|
+
var ref3 = rotated3.primitives.find(
|
1052
1244
|
(p) => p.type === "text" && p.text === "{REF}"
|
1053
1245
|
);
|
1054
|
-
var
|
1246
|
+
var val3 = rotated3.primitives.find(
|
1055
1247
|
(p) => p.type === "text" && p.text === "{VAL}"
|
1056
1248
|
);
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
var mosfet_depletion_normally_on_vert_default =
|
1249
|
+
ref3.anchor = "middle_top";
|
1250
|
+
val3.anchor = "middle_top";
|
1251
|
+
ref3.x = val3.x;
|
1252
|
+
val3.y += 0.15;
|
1253
|
+
var mosfet_depletion_normally_on_vert_default = rotated3;
|
1062
1254
|
|
1063
1255
|
// assets/generated/photodiode.json
|
1064
1256
|
var photodiode_default = {
|
@@ -1285,11 +1477,11 @@ var photodiode_default = {
|
|
1285
1477
|
};
|
1286
1478
|
|
1287
1479
|
// symbols/photodiode_horz.ts
|
1288
|
-
var { paths:
|
1480
|
+
var { paths: paths7, texts: texts7, bounds: bounds7, refblocks: refblocks7, circles: circles2 } = photodiode_default;
|
1289
1481
|
var photodiode_horz_default = defineSymbol({
|
1290
1482
|
primitives: [
|
1291
|
-
...Object.values(
|
1292
|
-
...Object.values(
|
1483
|
+
...Object.values(paths7),
|
1484
|
+
...Object.values(circles2),
|
1293
1485
|
{
|
1294
1486
|
type: "text",
|
1295
1487
|
text: "{REF}",
|
@@ -1306,21 +1498,21 @@ var photodiode_horz_default = defineSymbol({
|
|
1306
1498
|
}
|
1307
1499
|
],
|
1308
1500
|
ports: [
|
1309
|
-
{ ...
|
1501
|
+
{ ...refblocks7.left1, labels: ["1"] },
|
1310
1502
|
// TODO add more "standard" labels
|
1311
|
-
{ ...
|
1503
|
+
{ ...refblocks7.right1, labels: ["2"] }
|
1312
1504
|
// TODO add more "standard" labels
|
1313
1505
|
],
|
1314
|
-
size: { width:
|
1315
|
-
center: { x:
|
1506
|
+
size: { width: bounds7.width, height: bounds7.height },
|
1507
|
+
center: { x: bounds7.centerX, y: bounds7.centerY }
|
1316
1508
|
});
|
1317
1509
|
|
1318
1510
|
// symbols/photodiode_vert.ts
|
1319
1511
|
var rotatedSymbol = rotateSymbol(photodiode_horz_default);
|
1320
|
-
var
|
1321
|
-
var
|
1322
|
-
|
1323
|
-
|
1512
|
+
var texts8 = rotatedSymbol.primitives.filter((p) => p.type === "text");
|
1513
|
+
var ref4 = texts8.find((t) => t.text === "{REF}");
|
1514
|
+
ref4.y = 0;
|
1515
|
+
ref4.anchor = "middle_left";
|
1324
1516
|
var photodiode_vert_default = rotatedSymbol;
|
1325
1517
|
|
1326
1518
|
// assets/generated/potentiometer.json
|
@@ -1459,26 +1651,26 @@ var potentiometer_default = {
|
|
1459
1651
|
};
|
1460
1652
|
|
1461
1653
|
// symbols/potentiometer_horz.ts
|
1462
|
-
var { paths:
|
1654
|
+
var { paths: paths8, texts: texts9, bounds: bounds8, refblocks: refblocks8 } = potentiometer_default;
|
1463
1655
|
var potentiometer_horz_default = defineSymbol({
|
1464
1656
|
primitives: [
|
1465
|
-
...Object.values(
|
1466
|
-
{ ...
|
1467
|
-
{ ...
|
1657
|
+
...Object.values(paths8),
|
1658
|
+
{ ...texts9.bottom1, y: 0.35, anchor: "middle_top" },
|
1659
|
+
{ ...texts9.right1, anchor: "middle_left" }
|
1468
1660
|
],
|
1469
1661
|
ports: [
|
1470
|
-
{ ...
|
1662
|
+
{ ...refblocks8.left1, labels: ["1"] },
|
1471
1663
|
// TODO add more "standard" labels
|
1472
|
-
{ ...
|
1664
|
+
{ ...refblocks8.right1, labels: ["2"] }
|
1473
1665
|
// TODO add more "standard" labels
|
1474
1666
|
],
|
1475
|
-
size: { width:
|
1476
|
-
center: { x:
|
1667
|
+
size: { width: bounds8.width + 0.05, height: bounds8.height },
|
1668
|
+
center: { x: bounds8.centerX, y: bounds8.centerY }
|
1477
1669
|
});
|
1478
1670
|
|
1479
1671
|
// symbols/potentiometer_vert.ts
|
1480
|
-
var
|
1481
|
-
var potentiometer_vert_default =
|
1672
|
+
var rotated4 = rotateSymbol(potentiometer_horz_default);
|
1673
|
+
var potentiometer_vert_default = rotated4;
|
1482
1674
|
|
1483
1675
|
// assets/generated/potentiometer2.json
|
1484
1676
|
var potentiometer2_default = {
|
@@ -1635,21 +1827,21 @@ var potentiometer2_default = {
|
|
1635
1827
|
};
|
1636
1828
|
|
1637
1829
|
// symbols/potentiometer2_horz.ts
|
1638
|
-
var { paths:
|
1830
|
+
var { paths: paths9, texts: texts10, bounds: bounds9, refblocks: refblocks9 } = potentiometer2_default;
|
1639
1831
|
var potentiometer2_horz_default = defineSymbol({
|
1640
1832
|
primitives: [
|
1641
|
-
...Object.values(
|
1642
|
-
{ ...
|
1643
|
-
{ ...
|
1833
|
+
...Object.values(paths9),
|
1834
|
+
{ ...texts10.bottom1, anchor: "middle_right" },
|
1835
|
+
{ ...texts10.top1, anchor: "middle_left" }
|
1644
1836
|
],
|
1645
1837
|
ports: [
|
1646
|
-
{ ...
|
1838
|
+
{ ...refblocks9.left1, labels: ["1"] },
|
1647
1839
|
// TODO add more "standard" labels
|
1648
|
-
{ ...
|
1840
|
+
{ ...refblocks9.right1, labels: ["2"] }
|
1649
1841
|
// TODO add more "standard" labels
|
1650
1842
|
],
|
1651
|
-
size: { width:
|
1652
|
-
center: { x:
|
1843
|
+
size: { width: bounds9.width, height: bounds9.height },
|
1844
|
+
center: { x: bounds9.centerX, y: bounds9.centerY }
|
1653
1845
|
});
|
1654
1846
|
|
1655
1847
|
// symbols/potentiometer2_vert.ts
|
@@ -1756,38 +1948,38 @@ var push_button_normally_closed_momentary_default = {
|
|
1756
1948
|
};
|
1757
1949
|
|
1758
1950
|
// symbols/push_button_normally_closed_momentary_horz.ts
|
1759
|
-
var { paths:
|
1951
|
+
var { paths: paths10, texts: texts11, bounds: bounds10, refblocks: refblocks10 } = push_button_normally_closed_momentary_default;
|
1760
1952
|
var push_button_normally_closed_momentary_horz_default = defineSymbol({
|
1761
1953
|
primitives: [
|
1762
|
-
...Object.values(
|
1763
|
-
{ ...
|
1764
|
-
{ ...
|
1954
|
+
...Object.values(paths10),
|
1955
|
+
{ ...texts11.top1, anchor: "middle_bottom" },
|
1956
|
+
{ ...texts11.bottom1, anchor: "middle_top" }
|
1765
1957
|
],
|
1766
1958
|
ports: [
|
1767
|
-
{ ...
|
1959
|
+
{ ...refblocks10.left1, labels: ["1"] },
|
1768
1960
|
// TODO add more "standard" labels
|
1769
|
-
{ ...
|
1961
|
+
{ ...refblocks10.right1, labels: ["2"] }
|
1770
1962
|
// TODO add more "standard" labels
|
1771
1963
|
],
|
1772
|
-
size: { width:
|
1773
|
-
center: { x:
|
1964
|
+
size: { width: bounds10.width, height: bounds10.height },
|
1965
|
+
center: { x: bounds10.centerX, y: bounds10.centerY }
|
1774
1966
|
});
|
1775
1967
|
|
1776
1968
|
// symbols/push_button_normally_closed_momentary_vert.ts
|
1777
|
-
var
|
1778
|
-
var
|
1969
|
+
var rotated5 = rotateSymbol(push_button_normally_closed_momentary_horz_default);
|
1970
|
+
var ref5 = rotated5.primitives.find(
|
1779
1971
|
(p) => p.type === "text" && p.text === "{REF}"
|
1780
1972
|
);
|
1781
|
-
var
|
1973
|
+
var val4 = rotated5.primitives.find(
|
1782
1974
|
(p) => p.type === "text" && p.text === "{VAL}"
|
1783
1975
|
);
|
1784
|
-
|
1785
|
-
|
1786
|
-
|
1787
|
-
|
1788
|
-
|
1789
|
-
|
1790
|
-
var push_button_normally_closed_momentary_vert_default =
|
1976
|
+
ref5.anchor = "middle_left";
|
1977
|
+
val4.anchor = "middle_right";
|
1978
|
+
ref5.x = ref5.x - 0.03;
|
1979
|
+
ref5.y = ref5.y;
|
1980
|
+
val4.x = val4.x;
|
1981
|
+
val4.y = 0;
|
1982
|
+
var push_button_normally_closed_momentary_vert_default = rotated5;
|
1791
1983
|
|
1792
1984
|
// assets/generated/push_button_normally_open_momentary.json
|
1793
1985
|
var push_button_normally_open_momentary_default = {
|
@@ -1890,38 +2082,38 @@ var push_button_normally_open_momentary_default = {
|
|
1890
2082
|
};
|
1891
2083
|
|
1892
2084
|
// symbols/push_button_normally_open_momentary_horz.ts
|
1893
|
-
var { paths:
|
2085
|
+
var { paths: paths11, texts: texts12, bounds: bounds11, refblocks: refblocks11 } = push_button_normally_open_momentary_default;
|
1894
2086
|
var push_button_normally_open_momentary_horz_default = defineSymbol({
|
1895
2087
|
primitives: [
|
1896
|
-
...Object.values(
|
1897
|
-
{ ...
|
1898
|
-
{ ...
|
2088
|
+
...Object.values(paths11),
|
2089
|
+
{ ...texts12.top1, anchor: "middle_bottom" },
|
2090
|
+
{ ...texts12.bottom1, anchor: "middle_top" }
|
1899
2091
|
],
|
1900
2092
|
ports: [
|
1901
|
-
{ ...
|
2093
|
+
{ ...refblocks11.left1, labels: ["1"] },
|
1902
2094
|
// TODO add more "standard" labels
|
1903
|
-
{ ...
|
2095
|
+
{ ...refblocks11.right1, labels: ["2"] }
|
1904
2096
|
// TODO add more "standard" labels
|
1905
2097
|
],
|
1906
|
-
size: { width:
|
1907
|
-
center: { x:
|
2098
|
+
size: { width: bounds11.width, height: bounds11.height },
|
2099
|
+
center: { x: bounds11.centerX, y: bounds11.centerY }
|
1908
2100
|
});
|
1909
2101
|
|
1910
2102
|
// symbols/push_button_normally_open_momentary_vert.ts
|
1911
|
-
var
|
1912
|
-
var
|
2103
|
+
var rotated6 = rotateSymbol(push_button_normally_open_momentary_horz_default);
|
2104
|
+
var ref6 = rotated6.primitives.find(
|
1913
2105
|
(p) => p.type === "text" && p.text === "{REF}"
|
1914
2106
|
);
|
1915
|
-
var
|
2107
|
+
var val5 = rotated6.primitives.find(
|
1916
2108
|
(p) => p.type === "text" && p.text === "{VAL}"
|
1917
2109
|
);
|
1918
|
-
|
1919
|
-
|
1920
|
-
|
1921
|
-
|
1922
|
-
|
1923
|
-
|
1924
|
-
var push_button_normally_open_momentary_vert_default =
|
2110
|
+
ref6.anchor = "middle_left";
|
2111
|
+
val5.anchor = "middle_right";
|
2112
|
+
ref6.x = ref6.x + 0.1;
|
2113
|
+
ref6.y = ref6.y;
|
2114
|
+
val5.x = val5.x;
|
2115
|
+
val5.y = 0;
|
2116
|
+
var push_button_normally_open_momentary_vert_default = rotated6;
|
1925
2117
|
|
1926
2118
|
// assets/generated/schottky_diode.json
|
1927
2119
|
var schottky_diode_default = {
|
@@ -2115,35 +2307,227 @@ var schottky_diode_default = {
|
|
2115
2307
|
};
|
2116
2308
|
|
2117
2309
|
// symbols/schottky_diode_horz.ts
|
2118
|
-
var { paths:
|
2310
|
+
var { paths: paths12, texts: texts13, bounds: bounds12, refblocks: refblocks12, circles: circles3 } = schottky_diode_default;
|
2119
2311
|
var schottky_diode_horz_default = defineSymbol({
|
2120
2312
|
primitives: [
|
2121
|
-
...Object.values(
|
2122
|
-
...Object.values(
|
2123
|
-
{ ...
|
2124
|
-
{ ...
|
2313
|
+
...Object.values(paths12),
|
2314
|
+
...Object.values(circles3),
|
2315
|
+
{ ...texts13.top1, anchor: "middle_bottom" },
|
2316
|
+
{ ...texts13.bottom1, anchor: "middle_top" }
|
2125
2317
|
],
|
2126
2318
|
ports: [
|
2127
|
-
{ ...
|
2319
|
+
{ ...refblocks12.left1, labels: ["1"] },
|
2128
2320
|
// TODO add more "standard" labels
|
2129
|
-
{ ...
|
2321
|
+
{ ...refblocks12.right1, labels: ["2"] }
|
2130
2322
|
// TODO add more "standard" labels
|
2131
2323
|
],
|
2132
|
-
size: { width:
|
2133
|
-
center: { x:
|
2324
|
+
size: { width: bounds12.width, height: bounds12.height },
|
2325
|
+
center: { x: bounds12.centerX, y: bounds12.centerY }
|
2134
2326
|
});
|
2135
2327
|
|
2136
2328
|
// symbols/schottky_diode_vert.ts
|
2137
|
-
var
|
2138
|
-
var
|
2329
|
+
var rotated7 = rotateSymbol(schottky_diode_horz_default);
|
2330
|
+
var ref7 = rotated7.primitives.find(
|
2139
2331
|
(p) => p.type === "text" && p.text === "{REF}"
|
2140
2332
|
);
|
2141
|
-
var
|
2333
|
+
var val6 = rotated7.primitives.find(
|
2142
2334
|
(p) => p.type === "text" && p.text === "{VAL}"
|
2143
2335
|
);
|
2144
|
-
|
2145
|
-
|
2146
|
-
var schottky_diode_vert_default =
|
2336
|
+
ref7.anchor = "middle_left";
|
2337
|
+
val6.anchor = "middle_right";
|
2338
|
+
var schottky_diode_vert_default = rotated7;
|
2339
|
+
|
2340
|
+
// assets/generated/tunnel_diode.json
|
2341
|
+
var tunnel_diode_default = {
|
2342
|
+
paths: {
|
2343
|
+
path40: {
|
2344
|
+
type: "path",
|
2345
|
+
points: [
|
2346
|
+
{
|
2347
|
+
x: 0.1413337499999996,
|
2348
|
+
y: -41674999999941065e-20
|
2349
|
+
},
|
2350
|
+
{
|
2351
|
+
x: -0.12324954999999993,
|
2352
|
+
y: 0.13187495000000093
|
2353
|
+
}
|
2354
|
+
],
|
2355
|
+
color: "primary",
|
2356
|
+
fill: false
|
2357
|
+
},
|
2358
|
+
path41: {
|
2359
|
+
type: "path",
|
2360
|
+
points: [
|
2361
|
+
{
|
2362
|
+
x: -0.12324954999999993,
|
2363
|
+
y: -0.13270844999999976
|
2364
|
+
},
|
2365
|
+
{
|
2366
|
+
x: 0.1413337499999996,
|
2367
|
+
y: -41674999999941065e-20
|
2368
|
+
}
|
2369
|
+
],
|
2370
|
+
color: "primary",
|
2371
|
+
fill: false
|
2372
|
+
},
|
2373
|
+
path42: {
|
2374
|
+
type: "path",
|
2375
|
+
points: [
|
2376
|
+
{
|
2377
|
+
x: -0.12324954999999993,
|
2378
|
+
y: 0.1318749499999996
|
2379
|
+
},
|
2380
|
+
{
|
2381
|
+
x: -0.12324954999999993,
|
2382
|
+
y: -0.13270844999999976
|
2383
|
+
}
|
2384
|
+
],
|
2385
|
+
color: "primary",
|
2386
|
+
fill: false
|
2387
|
+
},
|
2388
|
+
path43: {
|
2389
|
+
type: "path",
|
2390
|
+
points: [
|
2391
|
+
{
|
2392
|
+
x: 0.1413337499999996,
|
2393
|
+
y: -0.13270844999999976
|
2394
|
+
},
|
2395
|
+
{
|
2396
|
+
x: 0.1413337499999996,
|
2397
|
+
y: 0.1318749499999996
|
2398
|
+
}
|
2399
|
+
],
|
2400
|
+
color: "primary",
|
2401
|
+
fill: false
|
2402
|
+
},
|
2403
|
+
path44: {
|
2404
|
+
type: "path",
|
2405
|
+
points: [
|
2406
|
+
{
|
2407
|
+
x: -0.12545425,
|
2408
|
+
y: -41674999999941065e-20
|
2409
|
+
},
|
2410
|
+
{
|
2411
|
+
x: -0.52012455,
|
2412
|
+
y: -41674999999941065e-20
|
2413
|
+
}
|
2414
|
+
],
|
2415
|
+
color: "primary",
|
2416
|
+
fill: false
|
2417
|
+
},
|
2418
|
+
"path44-0": {
|
2419
|
+
type: "path",
|
2420
|
+
points: [
|
2421
|
+
{
|
2422
|
+
x: 0.5201245499999998,
|
2423
|
+
y: -33154999999984724e-20
|
2424
|
+
},
|
2425
|
+
{
|
2426
|
+
x: 0.14641644999999937,
|
2427
|
+
y: -33154999999984724e-20
|
2428
|
+
}
|
2429
|
+
],
|
2430
|
+
color: "primary",
|
2431
|
+
fill: false
|
2432
|
+
},
|
2433
|
+
"path43-8": {
|
2434
|
+
type: "path",
|
2435
|
+
points: [
|
2436
|
+
{
|
2437
|
+
x: 0.1401360499999995,
|
2438
|
+
y: -0.13319134999999993
|
2439
|
+
},
|
2440
|
+
{
|
2441
|
+
x: 0.07403164999999912,
|
2442
|
+
y: -0.13270134999999916
|
2443
|
+
}
|
2444
|
+
],
|
2445
|
+
color: "primary",
|
2446
|
+
fill: false
|
2447
|
+
},
|
2448
|
+
"path43-8-8": {
|
2449
|
+
type: "path",
|
2450
|
+
points: [
|
2451
|
+
{
|
2452
|
+
x: 0.14135174999999967,
|
2453
|
+
y: 0.13270134999999939
|
2454
|
+
},
|
2455
|
+
{
|
2456
|
+
x: 0.07524734999999927,
|
2457
|
+
y: 0.13319134999999993
|
2458
|
+
}
|
2459
|
+
],
|
2460
|
+
color: "primary",
|
2461
|
+
fill: false
|
2462
|
+
}
|
2463
|
+
},
|
2464
|
+
texts: {
|
2465
|
+
top1: {
|
2466
|
+
type: "text",
|
2467
|
+
text: "{REF}",
|
2468
|
+
x: -0.0082802500000001,
|
2469
|
+
y: -0.23022574999999956
|
2470
|
+
},
|
2471
|
+
bottom1: {
|
2472
|
+
type: "text",
|
2473
|
+
text: "{VAL}",
|
2474
|
+
x: -0.0033669500000002017,
|
2475
|
+
y: 0.31746485000000035
|
2476
|
+
}
|
2477
|
+
},
|
2478
|
+
refblocks: {
|
2479
|
+
left1: {
|
2480
|
+
x: -0.5224022500000005,
|
2481
|
+
y: -0.0013011500000004173
|
2482
|
+
},
|
2483
|
+
right1: {
|
2484
|
+
x: 0.5158919499999994,
|
2485
|
+
y: -27654999999948693e-20
|
2486
|
+
}
|
2487
|
+
},
|
2488
|
+
bounds: {
|
2489
|
+
minX: -0.52012455,
|
2490
|
+
maxX: 0.5201245499999998,
|
2491
|
+
minY: -0.13319134999999993,
|
2492
|
+
maxY: 0.13319134999999993,
|
2493
|
+
width: 1.0402490999999998,
|
2494
|
+
height: 1,
|
2495
|
+
centerX: -11102230246251565e-32,
|
2496
|
+
centerY: 0
|
2497
|
+
},
|
2498
|
+
circles: {}
|
2499
|
+
};
|
2500
|
+
|
2501
|
+
// symbols/tunnel_diode_horz.ts
|
2502
|
+
var { paths: paths13, texts: texts14, bounds: bounds13, refblocks: refblocks13, circles: circles4 } = tunnel_diode_default;
|
2503
|
+
var tunnel_diode_horz_default = defineSymbol({
|
2504
|
+
primitives: [
|
2505
|
+
...Object.values(paths13),
|
2506
|
+
...Object.values(circles4),
|
2507
|
+
{ ...texts14.top1, anchor: "middle_bottom" },
|
2508
|
+
{ ...texts14.bottom1, anchor: "middle_top" }
|
2509
|
+
],
|
2510
|
+
ports: [
|
2511
|
+
{ ...refblocks13.left1, labels: ["1"] },
|
2512
|
+
// TODO add more "standard" labels
|
2513
|
+
{ ...refblocks13.right1, labels: ["2"] }
|
2514
|
+
// TODO add more "standard" labels
|
2515
|
+
],
|
2516
|
+
size: { width: bounds13.width, height: bounds13.height },
|
2517
|
+
center: { x: bounds13.centerX, y: bounds13.centerY }
|
2518
|
+
});
|
2519
|
+
|
2520
|
+
// symbols/tunnel_diode_vert.ts
|
2521
|
+
var rotated8 = rotateSymbol(tunnel_diode_horz_default);
|
2522
|
+
var ref8 = rotated8.primitives.find(
|
2523
|
+
(p) => p.type === "text" && p.text === "{REF}"
|
2524
|
+
);
|
2525
|
+
var val7 = rotated8.primitives.find(
|
2526
|
+
(p) => p.type === "text" && p.text === "{VAL}"
|
2527
|
+
);
|
2528
|
+
ref8.anchor = "middle_left";
|
2529
|
+
val7.anchor = "middle_right";
|
2530
|
+
var tunnel_diode_vert_default = rotated8;
|
2147
2531
|
|
2148
2532
|
// assets/generated/varactor_diode.json
|
2149
2533
|
var varactor_diode_default = {
|
@@ -2292,35 +2676,35 @@ var varactor_diode_default = {
|
|
2292
2676
|
};
|
2293
2677
|
|
2294
2678
|
// symbols/varactor_diode_horz.ts
|
2295
|
-
var { paths:
|
2679
|
+
var { paths: paths14, texts: texts15, bounds: bounds14, refblocks: refblocks14, circles: circles5 } = varactor_diode_default;
|
2296
2680
|
var varactor_diode_horz_default = defineSymbol({
|
2297
2681
|
primitives: [
|
2298
|
-
...Object.values(
|
2299
|
-
...Object.values(
|
2300
|
-
{ ...
|
2301
|
-
{ ...
|
2682
|
+
...Object.values(paths14),
|
2683
|
+
...Object.values(circles5),
|
2684
|
+
{ ...texts15.top1, anchor: "middle_bottom" },
|
2685
|
+
{ ...texts15.bottom1, anchor: "middle_top" }
|
2302
2686
|
],
|
2303
2687
|
ports: [
|
2304
|
-
{ ...
|
2688
|
+
{ ...refblocks14.left1, labels: ["1"] },
|
2305
2689
|
// TODO add more "standard" labels
|
2306
|
-
{ ...
|
2690
|
+
{ ...refblocks14.right1, labels: ["2"] }
|
2307
2691
|
// TODO add more "standard" labels
|
2308
2692
|
],
|
2309
|
-
size: { width:
|
2310
|
-
center: { x:
|
2693
|
+
size: { width: bounds14.width, height: bounds14.height },
|
2694
|
+
center: { x: bounds14.centerX, y: bounds14.centerY }
|
2311
2695
|
});
|
2312
2696
|
|
2313
2697
|
// symbols/varactor_diode_vert.ts
|
2314
|
-
var
|
2315
|
-
var
|
2698
|
+
var rotated9 = rotateSymbol(varactor_diode_horz_default);
|
2699
|
+
var ref9 = rotated9.primitives.find(
|
2316
2700
|
(p) => p.type === "text" && p.text === "{REF}"
|
2317
2701
|
);
|
2318
|
-
var
|
2702
|
+
var val8 = rotated9.primitives.find(
|
2319
2703
|
(p) => p.type === "text" && p.text === "{VAL}"
|
2320
2704
|
);
|
2321
|
-
|
2322
|
-
|
2323
|
-
var varactor_diode_vert_default =
|
2705
|
+
ref9.anchor = "middle_left";
|
2706
|
+
val8.anchor = "middle_right";
|
2707
|
+
var varactor_diode_vert_default = rotated9;
|
2324
2708
|
|
2325
2709
|
// assets/generated/varistor.json
|
2326
2710
|
var varistor_default = {
|
@@ -2454,26 +2838,26 @@ var varistor_default = {
|
|
2454
2838
|
};
|
2455
2839
|
|
2456
2840
|
// symbols/varistor_horz.ts
|
2457
|
-
var { paths:
|
2841
|
+
var { paths: paths15, texts: texts16, bounds: bounds15, refblocks: refblocks15 } = varistor_default;
|
2458
2842
|
var varistor_horz_default = defineSymbol({
|
2459
2843
|
primitives: [
|
2460
|
-
...Object.values(
|
2461
|
-
{ ...
|
2462
|
-
{ ...
|
2844
|
+
...Object.values(paths15),
|
2845
|
+
{ ...texts16.top1, anchor: "middle_left" },
|
2846
|
+
{ ...texts16.bottom1, anchor: "middle_right" }
|
2463
2847
|
],
|
2464
2848
|
ports: [
|
2465
2849
|
{
|
2466
|
-
...
|
2850
|
+
...refblocks15.left1,
|
2467
2851
|
labels: ["1", "-"]
|
2468
2852
|
},
|
2469
2853
|
{
|
2470
|
-
...
|
2854
|
+
...refblocks15.right1,
|
2471
2855
|
labels: ["2", "+"]
|
2472
2856
|
}
|
2473
2857
|
],
|
2474
|
-
size: { width:
|
2858
|
+
size: { width: bounds15.width, height: bounds15.height },
|
2475
2859
|
//{ width: 1, height: 0.24 },
|
2476
|
-
center: { x:
|
2860
|
+
center: { x: bounds15.centerX, y: bounds15.centerY }
|
2477
2861
|
});
|
2478
2862
|
|
2479
2863
|
// symbols/varistor_vert.ts
|
@@ -2579,11 +2963,11 @@ var volt_meter_default = {
|
|
2579
2963
|
};
|
2580
2964
|
|
2581
2965
|
// symbols/volt_meter_horz.ts
|
2582
|
-
var { paths:
|
2966
|
+
var { paths: paths16, texts: texts17, bounds: bounds16, circles: circles6, refblocks: refblocks16 } = volt_meter_default;
|
2583
2967
|
var volt_meter_horz_default = defineSymbol({
|
2584
2968
|
primitives: [
|
2585
|
-
...Object.values(
|
2586
|
-
...Object.values(
|
2969
|
+
...Object.values(paths16),
|
2970
|
+
...Object.values(circles6),
|
2587
2971
|
{
|
2588
2972
|
type: "text",
|
2589
2973
|
text: "{REF}",
|
@@ -2600,13 +2984,13 @@ var volt_meter_horz_default = defineSymbol({
|
|
2600
2984
|
}
|
2601
2985
|
],
|
2602
2986
|
ports: [
|
2603
|
-
{ ...
|
2987
|
+
{ ...refblocks16.left1, labels: ["1"] },
|
2604
2988
|
// TODO add more "standard" labels
|
2605
|
-
{ ...
|
2989
|
+
{ ...refblocks16.right1, labels: ["2"] }
|
2606
2990
|
// TODO add more "standard" labels
|
2607
2991
|
],
|
2608
|
-
size: { width:
|
2609
|
-
center: { x:
|
2992
|
+
size: { width: bounds16.width, height: bounds16.height },
|
2993
|
+
center: { x: bounds16.centerX, y: bounds16.centerY }
|
2610
2994
|
});
|
2611
2995
|
|
2612
2996
|
// symbols/volt_meter_vert.ts
|
@@ -2759,38 +3143,40 @@ var zener_diode_default = {
|
|
2759
3143
|
};
|
2760
3144
|
|
2761
3145
|
// symbols/zener_diode_horz.ts
|
2762
|
-
var { paths:
|
3146
|
+
var { paths: paths17, texts: texts18, bounds: bounds17, refblocks: refblocks17, circles: circles7 } = zener_diode_default;
|
2763
3147
|
var zener_diode_horz_default = defineSymbol({
|
2764
3148
|
primitives: [
|
2765
|
-
...Object.values(
|
2766
|
-
...Object.values(
|
2767
|
-
{ ...
|
2768
|
-
{ ...
|
3149
|
+
...Object.values(paths17),
|
3150
|
+
...Object.values(circles7),
|
3151
|
+
{ ...texts18.top1, anchor: "middle_bottom" },
|
3152
|
+
{ ...texts18.bottom1, anchor: "middle_top" }
|
2769
3153
|
],
|
2770
3154
|
ports: [
|
2771
|
-
{ ...
|
3155
|
+
{ ...refblocks17.left1, labels: ["1"] },
|
2772
3156
|
// TODO add more "standard" labels
|
2773
|
-
{ ...
|
3157
|
+
{ ...refblocks17.right1, labels: ["2"] }
|
2774
3158
|
// TODO add more "standard" labels
|
2775
3159
|
],
|
2776
|
-
size: { width:
|
2777
|
-
center: { x:
|
3160
|
+
size: { width: bounds17.width, height: bounds17.height },
|
3161
|
+
center: { x: bounds17.centerX, y: bounds17.centerY }
|
2778
3162
|
});
|
2779
3163
|
|
2780
3164
|
// symbols/zener_diode_vert.ts
|
2781
|
-
var
|
2782
|
-
var
|
3165
|
+
var rotated10 = rotateSymbol(zener_diode_horz_default);
|
3166
|
+
var ref10 = rotated10.primitives.find(
|
2783
3167
|
(p) => p.type === "text" && p.text === "{REF}"
|
2784
3168
|
);
|
2785
|
-
var
|
3169
|
+
var val9 = rotated10.primitives.find(
|
2786
3170
|
(p) => p.type === "text" && p.text === "{VAL}"
|
2787
3171
|
);
|
2788
|
-
|
2789
|
-
|
2790
|
-
var zener_diode_vert_default =
|
3172
|
+
ref10.anchor = "middle_left";
|
3173
|
+
val9.anchor = "middle_right";
|
3174
|
+
var zener_diode_vert_default = rotated10;
|
2791
3175
|
|
2792
3176
|
// generated/symbols-index.ts
|
2793
3177
|
var symbols_index_default = {
|
3178
|
+
"avalanche_diode_horz": avalanche_diode_horz_default,
|
3179
|
+
"avalanche_diode_vert": avalanche_diode_vert_default,
|
2794
3180
|
"boxresistor_horz": boxresistor_horz_default,
|
2795
3181
|
"boxresistor_vert": boxresistor_vert_default,
|
2796
3182
|
"capacitor_horz": capacitor_horz_default,
|
@@ -2815,6 +3201,8 @@ var symbols_index_default = {
|
|
2815
3201
|
"push_button_normally_open_momentary_vert": push_button_normally_open_momentary_vert_default,
|
2816
3202
|
"schottky_diode_horz": schottky_diode_horz_default,
|
2817
3203
|
"schottky_diode_vert": schottky_diode_vert_default,
|
3204
|
+
"tunnel_diode_horz": tunnel_diode_horz_default,
|
3205
|
+
"tunnel_diode_vert": tunnel_diode_vert_default,
|
2818
3206
|
"varactor_diode_horz": varactor_diode_horz_default,
|
2819
3207
|
"varactor_diode_vert": varactor_diode_vert_default,
|
2820
3208
|
"varistor_horz": varistor_horz_default,
|