schematic-symbols 0.0.72 → 0.0.73
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +3 -1
- package/dist/index.js +279 -126
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/symbols/SPDT_switch_horz.ts +21 -0
- package/symbols/SPDT_switch_vert.ts +20 -0
package/dist/index.d.ts
CHANGED
@@ -155,6 +155,8 @@ declare const _default: {
|
|
155
155
|
schottky_diode_vert: undefined;
|
156
156
|
silicon_controlled_rectifier_horz: undefined;
|
157
157
|
silicon_controlled_rectifier_vert: undefined;
|
158
|
+
SPDT_switch_horz: undefined;
|
159
|
+
SPDT_switch_vert: undefined;
|
158
160
|
SPST_switch_horz: undefined;
|
159
161
|
SPST_switch_vert: undefined;
|
160
162
|
step_recovery_diode_horz: undefined;
|
@@ -177,7 +179,7 @@ declare const _default: {
|
|
177
179
|
zener_diode_vert: undefined;
|
178
180
|
};
|
179
181
|
|
180
|
-
type BaseSymbolName = "ac_voltmeter" | "avalanche_diode" | "boxresistor" | "capacitor" | "constant_current_diode" | "crystal" | "dc_ammeter" | "dc_voltmeter" | "diac" | "diode" | "filled_diode" | "fuse" | "gunn_diode" | "igbt_transistor" | "laser_diode" | "led" | "mosfet_depletion_normally_on" | "n_channel_d_mosfet_transistor" | "njfet_transistor" | "npn_bipolar_transistor" | "p_channel_d_mosfet_transistor" | "p_channel_e_mosfet_transistor" | "photodiode" | "pjfet_transistor" | "potentiometer" | "potentiometer2" | "power_factor_meter" | "push_button_normally_closed_momentary" | "push_button_normally_open_momentary" | "resonator" | "schottky_diode" | "silicon_controlled_rectifier" | "SPST_switch" | "step_recovery_diode" | "triac" | "tunnel_diode" | "unijunction_transistor" | "var_meter" | "varactor_diode" | "varistor" | "volt_meter" | "zener_diode";
|
182
|
+
type BaseSymbolName = "ac_voltmeter" | "avalanche_diode" | "boxresistor" | "capacitor" | "constant_current_diode" | "crystal" | "dc_ammeter" | "dc_voltmeter" | "diac" | "diode" | "filled_diode" | "fuse" | "gunn_diode" | "igbt_transistor" | "laser_diode" | "led" | "mosfet_depletion_normally_on" | "n_channel_d_mosfet_transistor" | "njfet_transistor" | "npn_bipolar_transistor" | "p_channel_d_mosfet_transistor" | "p_channel_e_mosfet_transistor" | "photodiode" | "pjfet_transistor" | "potentiometer" | "potentiometer2" | "power_factor_meter" | "push_button_normally_closed_momentary" | "push_button_normally_open_momentary" | "resonator" | "schottky_diode" | "silicon_controlled_rectifier" | "SPDT_switch" | "SPST_switch" | "step_recovery_diode" | "triac" | "tunnel_diode" | "unijunction_transistor" | "var_meter" | "varactor_diode" | "varistor" | "volt_meter" | "zener_diode";
|
181
183
|
|
182
184
|
/**
|
183
185
|
* Utility for easier autocomplete:
|
package/dist/index.js
CHANGED
@@ -6257,6 +6257,157 @@ ref21.y = 0;
|
|
6257
6257
|
ref21.anchor = "middle_left";
|
6258
6258
|
var silicon_controlled_rectifier_vert_default = rotatedSymbol17;
|
6259
6259
|
|
6260
|
+
// assets/generated/SPDT_switch.json
|
6261
|
+
var SPDT_switch_default = {
|
6262
|
+
paths: {
|
6263
|
+
path1: {
|
6264
|
+
type: "path",
|
6265
|
+
points: [
|
6266
|
+
{
|
6267
|
+
x: -0.3543583500000005,
|
6268
|
+
y: -0.027043850000000758
|
6269
|
+
},
|
6270
|
+
{
|
6271
|
+
x: -0.12792935000000005,
|
6272
|
+
y: -0.027043850000000758
|
6273
|
+
}
|
6274
|
+
],
|
6275
|
+
color: "primary",
|
6276
|
+
fill: false
|
6277
|
+
},
|
6278
|
+
"path-1-3": {
|
6279
|
+
type: "path",
|
6280
|
+
points: [
|
6281
|
+
{
|
6282
|
+
x: -0.1133669500000003,
|
6283
|
+
y: -0.027198750000000382
|
6284
|
+
},
|
6285
|
+
{
|
6286
|
+
x: 0.11208324999999997,
|
6287
|
+
y: -0.14100155000000036
|
6288
|
+
}
|
6289
|
+
],
|
6290
|
+
color: "primary",
|
6291
|
+
fill: false
|
6292
|
+
},
|
6293
|
+
path2: {
|
6294
|
+
type: "path",
|
6295
|
+
points: [
|
6296
|
+
{
|
6297
|
+
x: 0.1043477500000003,
|
6298
|
+
y: 0.06951304999999941
|
6299
|
+
},
|
6300
|
+
{
|
6301
|
+
x: 0.34508875000000017,
|
6302
|
+
y: 0.06951304999999941
|
6303
|
+
}
|
6304
|
+
],
|
6305
|
+
color: "primary",
|
6306
|
+
fill: false
|
6307
|
+
},
|
6308
|
+
path3: {
|
6309
|
+
type: "path",
|
6310
|
+
points: [
|
6311
|
+
{
|
6312
|
+
x: 0.12008575000000055,
|
6313
|
+
y: -0.1671466500000005
|
6314
|
+
},
|
6315
|
+
{
|
6316
|
+
x: 0.3608267500000004,
|
6317
|
+
y: -0.1671466500000005
|
6318
|
+
}
|
6319
|
+
],
|
6320
|
+
color: "primary",
|
6321
|
+
fill: false
|
6322
|
+
}
|
6323
|
+
},
|
6324
|
+
texts: {
|
6325
|
+
top1: {
|
6326
|
+
type: "text",
|
6327
|
+
text: "{REF}",
|
6328
|
+
x: -0.17853294999999947,
|
6329
|
+
y: -0.39216264999999995
|
6330
|
+
},
|
6331
|
+
bottom1: {
|
6332
|
+
type: "text",
|
6333
|
+
text: "{VAL}",
|
6334
|
+
x: -0.17853294999999947,
|
6335
|
+
y: 0.28216264999999996
|
6336
|
+
}
|
6337
|
+
},
|
6338
|
+
refblocks: {
|
6339
|
+
top1: {
|
6340
|
+
x: 0.10744654999999947,
|
6341
|
+
y: -0.16714664999999962
|
6342
|
+
},
|
6343
|
+
left1: {
|
6344
|
+
x: -0.3682737499999995,
|
6345
|
+
y: -0.02704385000000009
|
6346
|
+
},
|
6347
|
+
left2: {
|
6348
|
+
x: -0.11569114999999996,
|
6349
|
+
y: -0.02704385000000009
|
6350
|
+
},
|
6351
|
+
right1: {
|
6352
|
+
x: 0.3682737499999995,
|
6353
|
+
y: -0.16714664999999962
|
6354
|
+
},
|
6355
|
+
right2: {
|
6356
|
+
x: 0.3682737499999995,
|
6357
|
+
y: 0.06951305000000008
|
6358
|
+
},
|
6359
|
+
right3: {
|
6360
|
+
x: 0.10744725000000055,
|
6361
|
+
y: 0.06951305000000008
|
6362
|
+
}
|
6363
|
+
},
|
6364
|
+
bounds: {
|
6365
|
+
minX: -0.3964321909999995,
|
6366
|
+
maxX: 0.3964321909999995,
|
6367
|
+
minY: -0.4921626499999999,
|
6368
|
+
maxY: 0.40216264999999995,
|
6369
|
+
width: 1,
|
6370
|
+
height: 1,
|
6371
|
+
centerX: 0,
|
6372
|
+
centerY: -0.044999999999999984
|
6373
|
+
},
|
6374
|
+
circles: {}
|
6375
|
+
};
|
6376
|
+
|
6377
|
+
// symbols/SPDT_switch_horz.ts
|
6378
|
+
var { paths: paths33, texts: texts46, bounds: bounds33, refblocks: refblocks33, circles: circles23 } = SPDT_switch_default;
|
6379
|
+
var SPDT_switch_horz_default = defineSymbol({
|
6380
|
+
primitives: [
|
6381
|
+
...Object.values(paths33),
|
6382
|
+
...Object.values(circles23),
|
6383
|
+
{ ...texts46.top1, anchor: "middle_bottom", x: -0.01 },
|
6384
|
+
{ ...texts46.bottom1, anchor: "middle_top", x: -0.01 }
|
6385
|
+
],
|
6386
|
+
ports: [
|
6387
|
+
{ ...refblocks33.left1, labels: ["1"] },
|
6388
|
+
// TODO add more "standard" labels
|
6389
|
+
{ ...refblocks33.right1, labels: ["3"] },
|
6390
|
+
// TODO add more "standard" labels
|
6391
|
+
{ ...refblocks33.right2, labels: ["2"] }
|
6392
|
+
// TODO add more "standard" labels
|
6393
|
+
],
|
6394
|
+
size: { width: bounds33.width, height: bounds33.height },
|
6395
|
+
center: { x: bounds33.centerX, y: bounds33.centerY }
|
6396
|
+
});
|
6397
|
+
|
6398
|
+
// symbols/SPDT_switch_vert.ts
|
6399
|
+
var rotatedSymbol18 = rotateSymbol(SPDT_switch_horz_default);
|
6400
|
+
var texts47 = rotatedSymbol18.primitives.filter((p) => p.type === "text");
|
6401
|
+
var val18 = texts47.find((t) => t.text === "{VAL}");
|
6402
|
+
val18.anchor = "middle_right";
|
6403
|
+
val18.x = -0.3;
|
6404
|
+
val18.y = 0;
|
6405
|
+
var ref22 = texts47.find((t) => t.text === "{REF}");
|
6406
|
+
ref22.anchor = "middle_left";
|
6407
|
+
ref22.x = 0.3;
|
6408
|
+
ref22.y = 0;
|
6409
|
+
var SPDT_switch_vert_default = rotatedSymbol18;
|
6410
|
+
|
6260
6411
|
// assets/generated/SPST_switch.json
|
6261
6412
|
var SPST_switch_default = {
|
6262
6413
|
paths: {
|
@@ -6352,36 +6503,36 @@ var SPST_switch_default = {
|
|
6352
6503
|
};
|
6353
6504
|
|
6354
6505
|
// symbols/SPST_switch_horz.ts
|
6355
|
-
var { paths:
|
6506
|
+
var { paths: paths34, texts: texts48, bounds: bounds34, refblocks: refblocks34, circles: circles24 } = SPST_switch_default;
|
6356
6507
|
var SPST_switch_horz_default = defineSymbol({
|
6357
6508
|
primitives: [
|
6358
|
-
...Object.values(
|
6359
|
-
...Object.values(
|
6360
|
-
{ ...
|
6361
|
-
{ ...
|
6509
|
+
...Object.values(paths34),
|
6510
|
+
...Object.values(circles24),
|
6511
|
+
{ ...texts48.top1, anchor: "middle_bottom", x: 0 },
|
6512
|
+
{ ...texts48.bottom1, anchor: "middle_top", x: 0 }
|
6362
6513
|
],
|
6363
6514
|
ports: [
|
6364
|
-
{ ...
|
6515
|
+
{ ...refblocks34.left1, labels: ["1"] },
|
6365
6516
|
// TODO add more "standard" labels
|
6366
|
-
{ ...
|
6517
|
+
{ ...refblocks34.right1, labels: ["2"] }
|
6367
6518
|
// TODO add more "standard" labels
|
6368
6519
|
],
|
6369
|
-
size: { width:
|
6370
|
-
center: { x:
|
6520
|
+
size: { width: bounds34.width, height: bounds34.height },
|
6521
|
+
center: { x: bounds34.centerX, y: bounds34.centerY }
|
6371
6522
|
});
|
6372
6523
|
|
6373
6524
|
// symbols/SPST_switch_vert.ts
|
6374
|
-
var
|
6375
|
-
var
|
6376
|
-
var
|
6377
|
-
|
6378
|
-
|
6379
|
-
|
6380
|
-
var
|
6381
|
-
|
6382
|
-
|
6383
|
-
|
6384
|
-
var SPST_switch_vert_default =
|
6525
|
+
var rotatedSymbol19 = rotateSymbol(SPST_switch_horz_default);
|
6526
|
+
var texts49 = rotatedSymbol19.primitives.filter((p) => p.type === "text");
|
6527
|
+
var val19 = texts49.find((t) => t.text === "{VAL}");
|
6528
|
+
val19.anchor = "middle_right";
|
6529
|
+
val19.x = -0.3;
|
6530
|
+
val19.y = 0;
|
6531
|
+
var ref23 = texts49.find((t) => t.text === "{REF}");
|
6532
|
+
ref23.anchor = "middle_left";
|
6533
|
+
ref23.x = 0.3;
|
6534
|
+
ref23.y = 0;
|
6535
|
+
var SPST_switch_vert_default = rotatedSymbol19;
|
6385
6536
|
|
6386
6537
|
// assets/generated/step_recovery_diode.json
|
6387
6538
|
var step_recovery_diode_default = {
|
@@ -6545,11 +6696,11 @@ var step_recovery_diode_default = {
|
|
6545
6696
|
};
|
6546
6697
|
|
6547
6698
|
// symbols/step_recovery_diode_horz.ts
|
6548
|
-
var { paths:
|
6699
|
+
var { paths: paths35, texts: texts50, bounds: bounds35, refblocks: refblocks35, circles: circles25 } = step_recovery_diode_default;
|
6549
6700
|
var step_recovery_diode_horz_default = defineSymbol({
|
6550
6701
|
primitives: [
|
6551
|
-
...Object.values(
|
6552
|
-
...Object.values(
|
6702
|
+
...Object.values(paths35),
|
6703
|
+
...Object.values(circles25),
|
6553
6704
|
// { ...texts.top1, anchor: "middle_left" },
|
6554
6705
|
// { ...texts.bottom1, anchor: "middle_left" },
|
6555
6706
|
{
|
@@ -6568,13 +6719,13 @@ var step_recovery_diode_horz_default = defineSymbol({
|
|
6568
6719
|
}
|
6569
6720
|
],
|
6570
6721
|
ports: [
|
6571
|
-
{ ...
|
6722
|
+
{ ...refblocks35.left1, labels: ["1"] },
|
6572
6723
|
// TODO add more "standard" labels
|
6573
|
-
{ ...
|
6724
|
+
{ ...refblocks35.right1, labels: ["2"] }
|
6574
6725
|
// TODO add more "standard" labels
|
6575
6726
|
],
|
6576
|
-
size: { width:
|
6577
|
-
center: { x:
|
6727
|
+
size: { width: bounds35.width, height: bounds35.height },
|
6728
|
+
center: { x: bounds35.centerX, y: bounds35.centerY }
|
6578
6729
|
});
|
6579
6730
|
|
6580
6731
|
// symbols/step_recovery_diode_vert.ts
|
@@ -6771,36 +6922,36 @@ var triac_default = {
|
|
6771
6922
|
};
|
6772
6923
|
|
6773
6924
|
// symbols/triac_horz.ts
|
6774
|
-
var { paths:
|
6925
|
+
var { paths: paths36, texts: texts51, bounds: bounds36, refblocks: refblocks36, circles: circles26 } = triac_default;
|
6775
6926
|
var triac_horz_default = defineSymbol({
|
6776
6927
|
primitives: [
|
6777
|
-
...Object.values(
|
6778
|
-
...Object.values(
|
6779
|
-
{ ...
|
6780
|
-
{ ...
|
6928
|
+
...Object.values(paths36),
|
6929
|
+
...Object.values(circles26),
|
6930
|
+
{ ...texts51.top1, anchor: "middle_left" },
|
6931
|
+
{ ...texts51.bottom1, anchor: "middle_top" }
|
6781
6932
|
],
|
6782
6933
|
ports: [
|
6783
|
-
{ ...
|
6934
|
+
{ ...refblocks36.left1, labels: ["1"] },
|
6784
6935
|
// TODO add more "standard" labels
|
6785
|
-
{ ...
|
6936
|
+
{ ...refblocks36.right1, labels: ["2"] },
|
6786
6937
|
// TODO add more "standard" labels
|
6787
|
-
{ ...
|
6938
|
+
{ ...refblocks36.bottom1, labels: ["3"] }
|
6788
6939
|
// TODO add more "standard" labels
|
6789
6940
|
],
|
6790
|
-
size: { width:
|
6791
|
-
center: { x:
|
6941
|
+
size: { width: bounds36.width, height: bounds36.height },
|
6942
|
+
center: { x: bounds36.centerX, y: bounds36.centerY }
|
6792
6943
|
});
|
6793
6944
|
|
6794
6945
|
// symbols/triac_vert.ts
|
6795
|
-
var
|
6796
|
-
var
|
6946
|
+
var rotatedSymbol20 = rotateSymbol(triac_horz_default);
|
6947
|
+
var texts52 = rotatedSymbol20.primitives.filter(
|
6797
6948
|
(primitive) => primitive.type === "text"
|
6798
6949
|
);
|
6799
|
-
var
|
6800
|
-
var
|
6801
|
-
|
6802
|
-
|
6803
|
-
var triac_vert_default =
|
6950
|
+
var ref24 = texts52.find((text) => text.text === "{REF}");
|
6951
|
+
var val20 = texts52.find((text) => text.text === "{VAL}");
|
6952
|
+
ref24.y = 0;
|
6953
|
+
val20.y = 0;
|
6954
|
+
var triac_vert_default = rotatedSymbol20;
|
6804
6955
|
|
6805
6956
|
// assets/generated/tunnel_diode.json
|
6806
6957
|
var tunnel_diode_default = {
|
@@ -6964,34 +7115,34 @@ var tunnel_diode_default = {
|
|
6964
7115
|
};
|
6965
7116
|
|
6966
7117
|
// symbols/tunnel_diode_horz.ts
|
6967
|
-
var { paths:
|
7118
|
+
var { paths: paths37, texts: texts53, bounds: bounds37, refblocks: refblocks37, circles: circles27 } = tunnel_diode_default;
|
6968
7119
|
var tunnel_diode_horz_default = defineSymbol({
|
6969
7120
|
primitives: [
|
6970
|
-
...Object.values(
|
6971
|
-
...Object.values(
|
6972
|
-
{ ...
|
6973
|
-
{ ...
|
7121
|
+
...Object.values(paths37),
|
7122
|
+
...Object.values(circles27),
|
7123
|
+
{ ...texts53.top1, anchor: "middle_bottom" },
|
7124
|
+
{ ...texts53.bottom1, anchor: "middle_top" }
|
6974
7125
|
],
|
6975
7126
|
ports: [
|
6976
|
-
{ ...
|
7127
|
+
{ ...refblocks37.left1, labels: ["1"] },
|
6977
7128
|
// TODO add more "standard" labels
|
6978
|
-
{ ...
|
7129
|
+
{ ...refblocks37.right1, labels: ["2"] }
|
6979
7130
|
// TODO add more "standard" labels
|
6980
7131
|
],
|
6981
|
-
size: { width:
|
6982
|
-
center: { x:
|
7132
|
+
size: { width: bounds37.width, height: bounds37.height },
|
7133
|
+
center: { x: bounds37.centerX, y: bounds37.centerY }
|
6983
7134
|
});
|
6984
7135
|
|
6985
7136
|
// symbols/tunnel_diode_vert.ts
|
6986
7137
|
var rotated9 = rotateSymbol(tunnel_diode_horz_default);
|
6987
|
-
var
|
7138
|
+
var ref25 = rotated9.primitives.find(
|
6988
7139
|
(p) => p.type === "text" && p.text === "{REF}"
|
6989
7140
|
);
|
6990
|
-
var
|
7141
|
+
var val21 = rotated9.primitives.find(
|
6991
7142
|
(p) => p.type === "text" && p.text === "{VAL}"
|
6992
7143
|
);
|
6993
|
-
|
6994
|
-
|
7144
|
+
ref25.anchor = "middle_left";
|
7145
|
+
val21.anchor = "middle_right";
|
6995
7146
|
var tunnel_diode_vert_default = rotated9;
|
6996
7147
|
|
6997
7148
|
// assets/generated/unijunction_transistor.json
|
@@ -7162,37 +7313,37 @@ var unijunction_transistor_default = {
|
|
7162
7313
|
};
|
7163
7314
|
|
7164
7315
|
// symbols/unijunction_transistor_horz.ts
|
7165
|
-
var { paths:
|
7316
|
+
var { paths: paths38, texts: texts54, bounds: bounds38, refblocks: refblocks38, circles: circles28 } = unijunction_transistor_default;
|
7166
7317
|
var unijunction_transistor_horz_default = defineSymbol({
|
7167
7318
|
primitives: [
|
7168
|
-
...Object.values(
|
7169
|
-
...Object.values(
|
7170
|
-
{ ...
|
7171
|
-
{ ...
|
7319
|
+
...Object.values(paths38),
|
7320
|
+
...Object.values(circles28),
|
7321
|
+
{ ...texts54.top1, anchor: "middle_left" },
|
7322
|
+
{ ...texts54.bottom1, anchor: "middle_right" }
|
7172
7323
|
],
|
7173
7324
|
ports: [
|
7174
|
-
{ ...
|
7325
|
+
{ ...refblocks38.top1, labels: ["1"] },
|
7175
7326
|
// TODO add more "standard" labels
|
7176
|
-
{ ...
|
7327
|
+
{ ...refblocks38.bottom1, labels: ["2"] },
|
7177
7328
|
// TODO add more "standard" labels
|
7178
|
-
{ ...
|
7329
|
+
{ ...refblocks38.left1, labels: ["3"] }
|
7179
7330
|
// TODO add more "standard" labels
|
7180
7331
|
],
|
7181
|
-
size: { width:
|
7182
|
-
center: { x:
|
7332
|
+
size: { width: bounds38.width, height: bounds38.height },
|
7333
|
+
center: { x: bounds38.centerX, y: bounds38.centerY }
|
7183
7334
|
});
|
7184
7335
|
|
7185
7336
|
// symbols/unijunction_transistor_vert.ts
|
7186
|
-
var
|
7187
|
-
var
|
7337
|
+
var rotatedSymbol21 = rotateSymbol(unijunction_transistor_horz_default);
|
7338
|
+
var texts55 = rotatedSymbol21.primitives.filter(
|
7188
7339
|
(primitive) => primitive.type === "text"
|
7189
7340
|
);
|
7190
|
-
var
|
7191
|
-
|
7192
|
-
var
|
7193
|
-
|
7194
|
-
|
7195
|
-
var unijunction_transistor_vert_default =
|
7341
|
+
var ref26 = texts55.find((text) => text.text === "{REF}");
|
7342
|
+
ref26.y = 0.1;
|
7343
|
+
var val22 = texts55.find((text) => text.text === "{VAL}");
|
7344
|
+
val22.y = 0.1;
|
7345
|
+
val22.x = -0.4;
|
7346
|
+
var unijunction_transistor_vert_default = rotatedSymbol21;
|
7196
7347
|
|
7197
7348
|
// assets/generated/var_meter.json
|
7198
7349
|
var var_meter_default = {
|
@@ -7281,33 +7432,33 @@ var var_meter_default = {
|
|
7281
7432
|
};
|
7282
7433
|
|
7283
7434
|
// symbols/var_meter_horz.ts
|
7284
|
-
var { paths:
|
7435
|
+
var { paths: paths39, texts: texts56, bounds: bounds39, refblocks: refblocks39, circles: circles29 } = var_meter_default;
|
7285
7436
|
var var_meter_horz_default = defineSymbol({
|
7286
7437
|
primitives: [
|
7287
|
-
...Object.values(
|
7288
|
-
...Object.values(
|
7438
|
+
...Object.values(paths39),
|
7439
|
+
...Object.values(circles29),
|
7289
7440
|
{
|
7290
|
-
...
|
7441
|
+
...texts56.top1,
|
7291
7442
|
x: 0,
|
7292
7443
|
y: -0.3594553499999995,
|
7293
7444
|
anchor: "middle_bottom"
|
7294
7445
|
},
|
7295
7446
|
{
|
7296
|
-
...
|
7447
|
+
...texts56.bottom1,
|
7297
7448
|
x: 0,
|
7298
7449
|
y: 0.35,
|
7299
7450
|
anchor: "middle_top"
|
7300
7451
|
},
|
7301
|
-
{ ...
|
7452
|
+
{ ...texts56.left1, x: -0.02, y: -0.02, fontSize: 0.2, anchor: "center" }
|
7302
7453
|
],
|
7303
7454
|
ports: [
|
7304
|
-
{ ...
|
7455
|
+
{ ...refblocks39.left1, labels: ["1"] },
|
7305
7456
|
// TODO add more "standard" labels
|
7306
|
-
{ ...
|
7457
|
+
{ ...refblocks39.right1, labels: ["2"] }
|
7307
7458
|
// TODO add more "standard" labels
|
7308
7459
|
],
|
7309
|
-
size: { width:
|
7310
|
-
center: { x:
|
7460
|
+
size: { width: bounds39.width, height: bounds39.height },
|
7461
|
+
center: { x: bounds39.centerX, y: bounds39.centerY }
|
7311
7462
|
});
|
7312
7463
|
|
7313
7464
|
// symbols/var_meter_vert.ts
|
@@ -7460,34 +7611,34 @@ var varactor_diode_default = {
|
|
7460
7611
|
};
|
7461
7612
|
|
7462
7613
|
// symbols/varactor_diode_horz.ts
|
7463
|
-
var { paths:
|
7614
|
+
var { paths: paths40, texts: texts57, bounds: bounds40, refblocks: refblocks40, circles: circles30 } = varactor_diode_default;
|
7464
7615
|
var varactor_diode_horz_default = defineSymbol({
|
7465
7616
|
primitives: [
|
7466
|
-
...Object.values(
|
7467
|
-
...Object.values(
|
7468
|
-
{ ...
|
7469
|
-
{ ...
|
7617
|
+
...Object.values(paths40),
|
7618
|
+
...Object.values(circles30),
|
7619
|
+
{ ...texts57.top1, anchor: "middle_bottom" },
|
7620
|
+
{ ...texts57.bottom1, anchor: "middle_top" }
|
7470
7621
|
],
|
7471
7622
|
ports: [
|
7472
|
-
{ ...
|
7623
|
+
{ ...refblocks40.left1, labels: ["1"] },
|
7473
7624
|
// TODO add more "standard" labels
|
7474
|
-
{ ...
|
7625
|
+
{ ...refblocks40.right1, labels: ["2"] }
|
7475
7626
|
// TODO add more "standard" labels
|
7476
7627
|
],
|
7477
|
-
size: { width:
|
7478
|
-
center: { x:
|
7628
|
+
size: { width: bounds40.width, height: bounds40.height },
|
7629
|
+
center: { x: bounds40.centerX, y: bounds40.centerY }
|
7479
7630
|
});
|
7480
7631
|
|
7481
7632
|
// symbols/varactor_diode_vert.ts
|
7482
7633
|
var rotated10 = rotateSymbol(varactor_diode_horz_default);
|
7483
|
-
var
|
7634
|
+
var ref27 = rotated10.primitives.find(
|
7484
7635
|
(p) => p.type === "text" && p.text === "{REF}"
|
7485
7636
|
);
|
7486
|
-
var
|
7637
|
+
var val23 = rotated10.primitives.find(
|
7487
7638
|
(p) => p.type === "text" && p.text === "{VAL}"
|
7488
7639
|
);
|
7489
|
-
|
7490
|
-
|
7640
|
+
ref27.anchor = "middle_left";
|
7641
|
+
val23.anchor = "middle_right";
|
7491
7642
|
var varactor_diode_vert_default = rotated10;
|
7492
7643
|
|
7493
7644
|
// assets/generated/varistor.json
|
@@ -7622,26 +7773,26 @@ var varistor_default = {
|
|
7622
7773
|
};
|
7623
7774
|
|
7624
7775
|
// symbols/varistor_horz.ts
|
7625
|
-
var { paths:
|
7776
|
+
var { paths: paths41, texts: texts58, bounds: bounds41, refblocks: refblocks41 } = varistor_default;
|
7626
7777
|
var varistor_horz_default = defineSymbol({
|
7627
7778
|
primitives: [
|
7628
|
-
...Object.values(
|
7629
|
-
{ ...
|
7630
|
-
{ ...
|
7779
|
+
...Object.values(paths41),
|
7780
|
+
{ ...texts58.top1, anchor: "middle_left" },
|
7781
|
+
{ ...texts58.bottom1, anchor: "middle_right" }
|
7631
7782
|
],
|
7632
7783
|
ports: [
|
7633
7784
|
{
|
7634
|
-
...
|
7785
|
+
...refblocks41.left1,
|
7635
7786
|
labels: ["1", "-"]
|
7636
7787
|
},
|
7637
7788
|
{
|
7638
|
-
...
|
7789
|
+
...refblocks41.right1,
|
7639
7790
|
labels: ["2", "+"]
|
7640
7791
|
}
|
7641
7792
|
],
|
7642
|
-
size: { width:
|
7793
|
+
size: { width: bounds41.width, height: bounds41.height },
|
7643
7794
|
//{ width: 1, height: 0.24 },
|
7644
|
-
center: { x:
|
7795
|
+
center: { x: bounds41.centerX, y: bounds41.centerY }
|
7645
7796
|
});
|
7646
7797
|
|
7647
7798
|
// symbols/varistor_vert.ts
|
@@ -7747,11 +7898,11 @@ var volt_meter_default = {
|
|
7747
7898
|
};
|
7748
7899
|
|
7749
7900
|
// symbols/volt_meter_horz.ts
|
7750
|
-
var { paths:
|
7901
|
+
var { paths: paths42, texts: texts59, bounds: bounds42, circles: circles31, refblocks: refblocks42 } = volt_meter_default;
|
7751
7902
|
var volt_meter_horz_default = defineSymbol({
|
7752
7903
|
primitives: [
|
7753
|
-
...Object.values(
|
7754
|
-
...Object.values(
|
7904
|
+
...Object.values(paths42),
|
7905
|
+
...Object.values(circles31),
|
7755
7906
|
{
|
7756
7907
|
type: "text",
|
7757
7908
|
text: "{REF}",
|
@@ -7768,13 +7919,13 @@ var volt_meter_horz_default = defineSymbol({
|
|
7768
7919
|
}
|
7769
7920
|
],
|
7770
7921
|
ports: [
|
7771
|
-
{ ...
|
7922
|
+
{ ...refblocks42.left1, labels: ["1"] },
|
7772
7923
|
// TODO add more "standard" labels
|
7773
|
-
{ ...
|
7924
|
+
{ ...refblocks42.right1, labels: ["2"] }
|
7774
7925
|
// TODO add more "standard" labels
|
7775
7926
|
],
|
7776
|
-
size: { width:
|
7777
|
-
center: { x:
|
7927
|
+
size: { width: bounds42.width, height: bounds42.height },
|
7928
|
+
center: { x: bounds42.centerX, y: bounds42.centerY }
|
7778
7929
|
});
|
7779
7930
|
|
7780
7931
|
// symbols/volt_meter_vert.ts
|
@@ -7927,34 +8078,34 @@ var zener_diode_default = {
|
|
7927
8078
|
};
|
7928
8079
|
|
7929
8080
|
// symbols/zener_diode_horz.ts
|
7930
|
-
var { paths:
|
8081
|
+
var { paths: paths43, texts: texts60, bounds: bounds43, refblocks: refblocks43, circles: circles32 } = zener_diode_default;
|
7931
8082
|
var zener_diode_horz_default = defineSymbol({
|
7932
8083
|
primitives: [
|
7933
|
-
...Object.values(
|
7934
|
-
...Object.values(
|
7935
|
-
{ ...
|
7936
|
-
{ ...
|
8084
|
+
...Object.values(paths43),
|
8085
|
+
...Object.values(circles32),
|
8086
|
+
{ ...texts60.top1, anchor: "middle_bottom" },
|
8087
|
+
{ ...texts60.bottom1, anchor: "middle_top" }
|
7937
8088
|
],
|
7938
8089
|
ports: [
|
7939
|
-
{ ...
|
8090
|
+
{ ...refblocks43.left1, labels: ["1"] },
|
7940
8091
|
// TODO add more "standard" labels
|
7941
|
-
{ ...
|
8092
|
+
{ ...refblocks43.right1, labels: ["2"] }
|
7942
8093
|
// TODO add more "standard" labels
|
7943
8094
|
],
|
7944
|
-
size: { width:
|
7945
|
-
center: { x:
|
8095
|
+
size: { width: bounds43.width, height: bounds43.height },
|
8096
|
+
center: { x: bounds43.centerX, y: bounds43.centerY }
|
7946
8097
|
});
|
7947
8098
|
|
7948
8099
|
// symbols/zener_diode_vert.ts
|
7949
8100
|
var rotated11 = rotateSymbol(zener_diode_horz_default);
|
7950
|
-
var
|
8101
|
+
var ref28 = rotated11.primitives.find(
|
7951
8102
|
(p) => p.type === "text" && p.text === "{REF}"
|
7952
8103
|
);
|
7953
|
-
var
|
8104
|
+
var val24 = rotated11.primitives.find(
|
7954
8105
|
(p) => p.type === "text" && p.text === "{VAL}"
|
7955
8106
|
);
|
7956
|
-
|
7957
|
-
|
8107
|
+
ref28.anchor = "middle_left";
|
8108
|
+
val24.anchor = "middle_right";
|
7958
8109
|
var zener_diode_vert_default = rotated11;
|
7959
8110
|
|
7960
8111
|
// generated/symbols-index.ts
|
@@ -8023,6 +8174,8 @@ var symbols_index_default = {
|
|
8023
8174
|
"schottky_diode_vert": schottky_diode_vert_default,
|
8024
8175
|
"silicon_controlled_rectifier_horz": silicon_controlled_rectifier_horz_default,
|
8025
8176
|
"silicon_controlled_rectifier_vert": silicon_controlled_rectifier_vert_default,
|
8177
|
+
"SPDT_switch_horz": SPDT_switch_horz_default,
|
8178
|
+
"SPDT_switch_vert": SPDT_switch_vert_default,
|
8026
8179
|
"SPST_switch_horz": SPST_switch_horz_default,
|
8027
8180
|
"SPST_switch_vert": SPST_switch_vert_default,
|
8028
8181
|
"step_recovery_diode_horz": step_recovery_diode_horz_default,
|