schematic-symbols 0.0.176 → 0.0.177
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 +4 -0
- package/dist/index.js +614 -454
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -293,14 +293,14 @@ var rotateRightFacingSymbol = (symbol11, opts) => {
|
|
293
293
|
...applyToPoint(transform2, port)
|
294
294
|
})
|
295
295
|
);
|
296
|
-
const
|
296
|
+
const bounds110 = getBoundsOfPrimitives(rotatedPrimitives);
|
297
297
|
return {
|
298
298
|
primitives: rotatedPrimitives,
|
299
299
|
center,
|
300
300
|
ports: rotatedPorts,
|
301
301
|
size: {
|
302
|
-
width:
|
303
|
-
height:
|
302
|
+
width: bounds110.maxX - bounds110.minX,
|
303
|
+
height: bounds110.maxY - bounds110.minY
|
304
304
|
},
|
305
305
|
...overrides
|
306
306
|
};
|
@@ -348,10 +348,10 @@ var SymbolModifier = class {
|
|
348
348
|
return this;
|
349
349
|
}
|
350
350
|
computeSize() {
|
351
|
-
const
|
351
|
+
const bounds110 = getBoundsOfPrimitives(this.symbol.primitives);
|
352
352
|
return {
|
353
|
-
width:
|
354
|
-
height:
|
353
|
+
width: bounds110.maxX - bounds110.minX,
|
354
|
+
height: bounds110.maxY - bounds110.minY
|
355
355
|
};
|
356
356
|
}
|
357
357
|
build() {
|
@@ -1251,10 +1251,10 @@ var backward_diode_up_default = rotated;
|
|
1251
1251
|
function defineSymbol(symbol11) {
|
1252
1252
|
let size = symbol11.size;
|
1253
1253
|
if (!size) {
|
1254
|
-
const
|
1254
|
+
const bounds110 = getBoundsOfPrimitives(symbol11.primitives);
|
1255
1255
|
size = {
|
1256
|
-
width:
|
1257
|
-
height:
|
1256
|
+
width: bounds110.maxX - bounds110.minX,
|
1257
|
+
height: bounds110.maxY - bounds110.minY
|
1258
1258
|
};
|
1259
1259
|
}
|
1260
1260
|
return { ...symbol11, size };
|
@@ -7159,11 +7159,167 @@ var filled_diode_default = {
|
|
7159
7159
|
circles: {}
|
7160
7160
|
};
|
7161
7161
|
|
7162
|
+
// symbols/filled_diode_down.ts
|
7163
|
+
var { paths: paths48, texts: texts49, bounds: bounds48, refblocks: refblocks48, circles: circles48 } = filled_diode_default;
|
7164
|
+
var filled_diode_down_default = modifySymbol({
|
7165
|
+
primitives: [
|
7166
|
+
...Object.values(paths48),
|
7167
|
+
...Object.values(circles48),
|
7168
|
+
{
|
7169
|
+
type: "text",
|
7170
|
+
text: "{REF}",
|
7171
|
+
x: -0.15,
|
7172
|
+
y: 0.3294553499999995
|
7173
|
+
},
|
7174
|
+
{
|
7175
|
+
type: "text",
|
7176
|
+
text: "{VAL}",
|
7177
|
+
x: 0.15,
|
7178
|
+
y: 0.3294553499999995
|
7179
|
+
}
|
7180
|
+
],
|
7181
|
+
ports: [
|
7182
|
+
{ ...refblocks48.left1, labels: ["1"] },
|
7183
|
+
{ ...refblocks48.right1, labels: ["2"] }
|
7184
|
+
],
|
7185
|
+
size: { width: bounds48.width, height: bounds48.height },
|
7186
|
+
center: { x: bounds48.centerX, y: bounds48.centerY }
|
7187
|
+
}).rotateRightFacingSymbol("down").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
|
7188
|
+
|
7162
7189
|
// symbols/filled_diode_horz.ts
|
7163
|
-
var
|
7190
|
+
var { paths: paths49, texts: texts50, bounds: bounds49, refblocks: refblocks49, circles: circles49 } = filled_diode_default;
|
7191
|
+
var filled_diode_horz_default = modifySymbol({
|
7192
|
+
primitives: [
|
7193
|
+
...Object.values(paths49),
|
7194
|
+
...Object.values(circles49),
|
7195
|
+
{
|
7196
|
+
type: "text",
|
7197
|
+
text: "{REF}",
|
7198
|
+
x: -0,
|
7199
|
+
y: 0.4094553499999995
|
7200
|
+
},
|
7201
|
+
{
|
7202
|
+
type: "text",
|
7203
|
+
text: "{VAL}",
|
7204
|
+
x: 0,
|
7205
|
+
y: -0.4094553499999995
|
7206
|
+
}
|
7207
|
+
],
|
7208
|
+
ports: [
|
7209
|
+
{ ...refblocks49.left1, labels: ["1"] },
|
7210
|
+
{ ...refblocks49.right1, labels: ["2"] }
|
7211
|
+
],
|
7212
|
+
size: { width: bounds49.width, height: bounds49.height },
|
7213
|
+
center: { x: bounds49.centerX, y: bounds49.centerY }
|
7214
|
+
}).changeTextAnchor("{VAL}", "middle_top").rotateRightFacingSymbol("right").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
|
7215
|
+
|
7216
|
+
// symbols/filled_diode_left.ts
|
7217
|
+
var { paths: paths50, texts: texts51, bounds: bounds50, refblocks: refblocks50, circles: circles50 } = filled_diode_default;
|
7218
|
+
var filled_diode_left_default = modifySymbol({
|
7219
|
+
primitives: [
|
7220
|
+
...Object.values(paths50),
|
7221
|
+
...Object.values(circles50),
|
7222
|
+
{
|
7223
|
+
type: "text",
|
7224
|
+
text: "{REF}",
|
7225
|
+
x: -0,
|
7226
|
+
y: -0.3094553499999995
|
7227
|
+
},
|
7228
|
+
{
|
7229
|
+
type: "text",
|
7230
|
+
text: "{VAL}",
|
7231
|
+
x: 0,
|
7232
|
+
y: 0.4094553499999995
|
7233
|
+
}
|
7234
|
+
],
|
7235
|
+
ports: [
|
7236
|
+
{ ...refblocks50.left1, labels: ["1"] },
|
7237
|
+
{ ...refblocks50.right1, labels: ["2"] }
|
7238
|
+
],
|
7239
|
+
size: { width: bounds50.width, height: bounds50.height },
|
7240
|
+
center: { x: bounds50.centerX, y: bounds50.centerY }
|
7241
|
+
}).changeTextAnchor("{VAL}", "middle_bottom").rotateRightFacingSymbol("left").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
|
7242
|
+
|
7243
|
+
// symbols/filled_diode_right.ts
|
7244
|
+
var { paths: paths51, texts: texts52, bounds: bounds51, refblocks: refblocks51, circles: circles51 } = filled_diode_default;
|
7245
|
+
var filled_diode_right_default = modifySymbol({
|
7246
|
+
primitives: [
|
7247
|
+
...Object.values(paths51),
|
7248
|
+
...Object.values(circles51),
|
7249
|
+
{
|
7250
|
+
type: "text",
|
7251
|
+
text: "{REF}",
|
7252
|
+
x: -0,
|
7253
|
+
y: 0.4094553499999995
|
7254
|
+
},
|
7255
|
+
{
|
7256
|
+
type: "text",
|
7257
|
+
text: "{VAL}",
|
7258
|
+
x: 0,
|
7259
|
+
y: -0.4094553499999995
|
7260
|
+
}
|
7261
|
+
],
|
7262
|
+
ports: [
|
7263
|
+
{ ...refblocks51.left1, labels: ["1"] },
|
7264
|
+
{ ...refblocks51.right1, labels: ["2"] }
|
7265
|
+
],
|
7266
|
+
size: { width: bounds51.width, height: bounds51.height },
|
7267
|
+
center: { x: bounds51.centerX, y: bounds51.centerY }
|
7268
|
+
}).changeTextAnchor("{VAL}", "middle_top").rotateRightFacingSymbol("right").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
|
7269
|
+
|
7270
|
+
// symbols/filled_diode_up.ts
|
7271
|
+
var { paths: paths52, texts: texts53, bounds: bounds52, refblocks: refblocks52, circles: circles52 } = filled_diode_default;
|
7272
|
+
var filled_diode_up_default = modifySymbol({
|
7273
|
+
primitives: [
|
7274
|
+
...Object.values(paths52),
|
7275
|
+
...Object.values(circles52),
|
7276
|
+
{
|
7277
|
+
type: "text",
|
7278
|
+
text: "{REF}",
|
7279
|
+
x: 0.15,
|
7280
|
+
y: -0.2894553499999995
|
7281
|
+
},
|
7282
|
+
{
|
7283
|
+
type: "text",
|
7284
|
+
text: "{VAL}",
|
7285
|
+
x: -0.15,
|
7286
|
+
y: -0.2894553499999995
|
7287
|
+
}
|
7288
|
+
],
|
7289
|
+
ports: [
|
7290
|
+
{ ...refblocks52.left1, labels: ["1"] },
|
7291
|
+
{ ...refblocks52.right1, labels: ["2"] }
|
7292
|
+
],
|
7293
|
+
size: { width: bounds52.width, height: bounds52.height },
|
7294
|
+
center: { x: bounds52.centerX, y: bounds52.centerY }
|
7295
|
+
}).rotateRightFacingSymbol("up").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
|
7164
7296
|
|
7165
7297
|
// symbols/filled_diode_vert.ts
|
7166
|
-
var
|
7298
|
+
var { paths: paths53, texts: texts54, bounds: bounds53, refblocks: refblocks53, circles: circles53 } = filled_diode_default;
|
7299
|
+
var filled_diode_vert_default = modifySymbol({
|
7300
|
+
primitives: [
|
7301
|
+
...Object.values(paths53),
|
7302
|
+
...Object.values(circles53),
|
7303
|
+
{
|
7304
|
+
type: "text",
|
7305
|
+
text: "{REF}",
|
7306
|
+
x: 0.15,
|
7307
|
+
y: -0.2894553499999995
|
7308
|
+
},
|
7309
|
+
{
|
7310
|
+
type: "text",
|
7311
|
+
text: "{VAL}",
|
7312
|
+
x: -0.15,
|
7313
|
+
y: -0.2894553499999995
|
7314
|
+
}
|
7315
|
+
],
|
7316
|
+
ports: [
|
7317
|
+
{ ...refblocks53.left1, labels: ["1"] },
|
7318
|
+
{ ...refblocks53.right1, labels: ["2"] }
|
7319
|
+
],
|
7320
|
+
size: { width: bounds53.width, height: bounds53.height },
|
7321
|
+
center: { x: bounds53.centerX, y: bounds53.centerY }
|
7322
|
+
}).rotateRightFacingSymbol("up").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
|
7167
7323
|
|
7168
7324
|
// assets/generated/frequency_meter.json
|
7169
7325
|
var frequency_meter_default = {
|
@@ -7252,11 +7408,11 @@ var frequency_meter_default = {
|
|
7252
7408
|
};
|
7253
7409
|
|
7254
7410
|
// symbols/frequency_meter_horz.ts
|
7255
|
-
var { paths:
|
7411
|
+
var { paths: paths54, texts: texts55, bounds: bounds54, refblocks: refblocks54, circles: circles54 } = frequency_meter_default;
|
7256
7412
|
var frequency_meter_horz_default = defineSymbol({
|
7257
7413
|
primitives: [
|
7258
|
-
...Object.values(
|
7259
|
-
...Object.values(
|
7414
|
+
...Object.values(paths54),
|
7415
|
+
...Object.values(circles54),
|
7260
7416
|
{
|
7261
7417
|
type: "text",
|
7262
7418
|
text: "{REF}",
|
@@ -7271,16 +7427,16 @@ var frequency_meter_horz_default = defineSymbol({
|
|
7271
7427
|
y: 0.35,
|
7272
7428
|
anchor: "middle_bottom"
|
7273
7429
|
},
|
7274
|
-
{ ...
|
7430
|
+
{ ...texts55.left1, x: 0, y: 0.01, anchor: "center", fontSize: 0.2 }
|
7275
7431
|
],
|
7276
7432
|
ports: [
|
7277
|
-
{ ...
|
7433
|
+
{ ...refblocks54.left1, labels: ["1"] },
|
7278
7434
|
// TODO add more "standard" labels
|
7279
|
-
{ ...
|
7435
|
+
{ ...refblocks54.right1, labels: ["2"] }
|
7280
7436
|
// TODO add more "standard" labels
|
7281
7437
|
],
|
7282
|
-
size: { width:
|
7283
|
-
center: { x:
|
7438
|
+
size: { width: bounds54.width, height: bounds54.height },
|
7439
|
+
center: { x: bounds54.centerX, y: bounds54.centerY }
|
7284
7440
|
});
|
7285
7441
|
|
7286
7442
|
// symbols/frequency_meter_vert.ts
|
@@ -7385,11 +7541,11 @@ var fuse_default = {
|
|
7385
7541
|
};
|
7386
7542
|
|
7387
7543
|
// symbols/fuse_horz.ts
|
7388
|
-
var { paths:
|
7544
|
+
var { paths: paths55, texts: texts56, bounds: bounds55, refblocks: refblocks55 } = fuse_default;
|
7389
7545
|
var fuse_horz_default = defineSymbol({
|
7390
7546
|
primitives: [
|
7391
|
-
...Object.values(
|
7392
|
-
{ ...
|
7547
|
+
...Object.values(paths55),
|
7548
|
+
{ ...texts56.top1, anchor: "middle_bottom" },
|
7393
7549
|
{
|
7394
7550
|
type: "text",
|
7395
7551
|
text: "{VAL}",
|
@@ -7399,13 +7555,13 @@ var fuse_horz_default = defineSymbol({
|
|
7399
7555
|
}
|
7400
7556
|
],
|
7401
7557
|
ports: [
|
7402
|
-
{ ...
|
7558
|
+
{ ...refblocks55.left1, labels: ["1"] },
|
7403
7559
|
// TODO add more "standard" labels
|
7404
|
-
{ ...
|
7560
|
+
{ ...refblocks55.right1, labels: ["2"] }
|
7405
7561
|
// TODO add more "standard" labels
|
7406
7562
|
],
|
7407
|
-
size: { width:
|
7408
|
-
center: { x:
|
7563
|
+
size: { width: bounds55.width, height: bounds55.height },
|
7564
|
+
center: { x: bounds55.centerX, y: bounds55.centerY }
|
7409
7565
|
});
|
7410
7566
|
|
7411
7567
|
// symbols/fuse_vert.ts
|
@@ -7582,10 +7738,10 @@ var ground2_default = {
|
|
7582
7738
|
};
|
7583
7739
|
|
7584
7740
|
// symbols/ground2_down.ts
|
7585
|
-
var { paths:
|
7741
|
+
var { paths: paths56, texts: texts57, bounds: bounds56, refblocks: refblocks56 } = ground2_default;
|
7586
7742
|
var ground2_down_default = modifySymbol({
|
7587
7743
|
primitives: [
|
7588
|
-
...Object.values(
|
7744
|
+
...Object.values(paths56),
|
7589
7745
|
{
|
7590
7746
|
type: "text",
|
7591
7747
|
text: "{REF}",
|
@@ -7594,18 +7750,18 @@ var ground2_down_default = modifySymbol({
|
|
7594
7750
|
}
|
7595
7751
|
],
|
7596
7752
|
ports: [
|
7597
|
-
{ ...
|
7753
|
+
{ ...refblocks56.left1, labels: ["1"] }
|
7598
7754
|
// TODO add more "standard" labels
|
7599
7755
|
],
|
7600
|
-
center: { x:
|
7756
|
+
center: { x: bounds56.centerX, y: bounds56.centerY }
|
7601
7757
|
}).rotateRightFacingSymbol("down").labelPort("left1", ["1"]).changeTextAnchor("{REF}", "middle_bottom").build();
|
7602
7758
|
|
7603
7759
|
// symbols/ground2_left.ts
|
7604
|
-
var { paths:
|
7760
|
+
var { paths: paths57, texts: texts58, bounds: bounds57, refblocks: refblocks57, circles: circles55 } = ground2_default;
|
7605
7761
|
var ground2_left_default = modifySymbol({
|
7606
7762
|
primitives: [
|
7607
|
-
...Object.values(
|
7608
|
-
...Object.values(
|
7763
|
+
...Object.values(paths57),
|
7764
|
+
...Object.values(circles55),
|
7609
7765
|
{
|
7610
7766
|
type: "text",
|
7611
7767
|
text: "{REF}",
|
@@ -7614,18 +7770,18 @@ var ground2_left_default = modifySymbol({
|
|
7614
7770
|
}
|
7615
7771
|
],
|
7616
7772
|
ports: [
|
7617
|
-
{ ...
|
7773
|
+
{ ...refblocks57.left1, labels: ["1"] }
|
7618
7774
|
// TODO add more "standard" labels
|
7619
7775
|
],
|
7620
|
-
center: { x:
|
7776
|
+
center: { x: bounds57.centerX, y: bounds57.centerY }
|
7621
7777
|
}).rotateRightFacingSymbol("left").labelPort("left1", ["1"]).changeTextAnchor("{REF}", "middle_left").build();
|
7622
7778
|
|
7623
7779
|
// symbols/ground2_right.ts
|
7624
|
-
var { paths:
|
7780
|
+
var { paths: paths58, texts: texts59, bounds: bounds58, refblocks: refblocks58, circles: circles56 } = ground2_default;
|
7625
7781
|
var ground2_right_default = modifySymbol({
|
7626
7782
|
primitives: [
|
7627
|
-
...Object.values(
|
7628
|
-
...Object.values(
|
7783
|
+
...Object.values(paths58),
|
7784
|
+
...Object.values(circles56),
|
7629
7785
|
{
|
7630
7786
|
type: "text",
|
7631
7787
|
text: "{REF}",
|
@@ -7634,18 +7790,18 @@ var ground2_right_default = modifySymbol({
|
|
7634
7790
|
}
|
7635
7791
|
],
|
7636
7792
|
ports: [
|
7637
|
-
{ ...
|
7793
|
+
{ ...refblocks58.left1, labels: ["1"] }
|
7638
7794
|
// TODO add more "standard" labels
|
7639
7795
|
],
|
7640
|
-
center: { x:
|
7796
|
+
center: { x: bounds58.centerX, y: bounds58.centerY }
|
7641
7797
|
}).changeTextAnchor("{VAL}", "middle_top").rotateRightFacingSymbol("right").labelPort("left1", ["1"]).changeTextAnchor("{REF}", "middle_right").build();
|
7642
7798
|
|
7643
7799
|
// symbols/ground2_up.ts
|
7644
|
-
var { paths:
|
7800
|
+
var { paths: paths59, texts: texts60, bounds: bounds59, refblocks: refblocks59, circles: circles57 } = ground2_default;
|
7645
7801
|
var ground2_up_default = modifySymbol({
|
7646
7802
|
primitives: [
|
7647
|
-
...Object.values(
|
7648
|
-
...Object.values(
|
7803
|
+
...Object.values(paths59),
|
7804
|
+
...Object.values(circles57),
|
7649
7805
|
{
|
7650
7806
|
type: "text",
|
7651
7807
|
text: "{REF}",
|
@@ -7654,10 +7810,10 @@ var ground2_up_default = modifySymbol({
|
|
7654
7810
|
}
|
7655
7811
|
],
|
7656
7812
|
ports: [
|
7657
|
-
{ ...
|
7813
|
+
{ ...refblocks59.left1, labels: ["1"] }
|
7658
7814
|
// TODO add more "standard" labels
|
7659
7815
|
],
|
7660
|
-
center: { x:
|
7816
|
+
center: { x: bounds59.centerX, y: bounds59.centerY }
|
7661
7817
|
}).rotateRightFacingSymbol("up").labelPort("left1", ["1"]).changeTextAnchor("{REF}", "middle_top").build();
|
7662
7818
|
|
7663
7819
|
// assets/generated/gunn_diode.json
|
@@ -7778,7 +7934,7 @@ var gunn_diode_default = {
|
|
7778
7934
|
};
|
7779
7935
|
|
7780
7936
|
// symbols/gunn_diode_horz.ts
|
7781
|
-
var { paths:
|
7937
|
+
var { paths: paths60, texts: texts61, bounds: bounds60, refblocks: refblocks60, circles: circles58 } = gunn_diode_default;
|
7782
7938
|
var gunn_diode_horz_default = modifySymbol(gunn_diode_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
|
7783
7939
|
|
7784
7940
|
// symbols/gunn_diode_vert.ts
|
@@ -8543,12 +8699,12 @@ var illuminated_push_button_normally_open_horz_default = modifySymbol(illuminate
|
|
8543
8699
|
|
8544
8700
|
// symbols/illuminated_push_button_normally_open_vert.ts
|
8545
8701
|
var rotatedSymbol4 = rotateSymbol(illuminated_push_button_normally_open_horz_default);
|
8546
|
-
var
|
8547
|
-
var val18 =
|
8702
|
+
var texts62 = rotatedSymbol4.primitives.filter((p) => p.type === "text");
|
8703
|
+
var val18 = texts62.find((t) => t.text === "{VAL}");
|
8548
8704
|
val18.x = -0.35;
|
8549
8705
|
val18.y = 0;
|
8550
8706
|
val18.anchor = "middle_right";
|
8551
|
-
var ref18 =
|
8707
|
+
var ref18 = texts62.find((t) => t.text === "{REF}");
|
8552
8708
|
ref18.y = 0;
|
8553
8709
|
ref18.x = 0.35;
|
8554
8710
|
ref18.anchor = "middle_left";
|
@@ -9950,22 +10106,22 @@ var inductor_default = {
|
|
9950
10106
|
};
|
9951
10107
|
|
9952
10108
|
// symbols/inductor_right.ts
|
9953
|
-
var { paths:
|
10109
|
+
var { paths: paths61, texts: texts63, bounds: bounds61, refblocks: refblocks61, circles: circles59 } = inductor_default;
|
9954
10110
|
var inductor_right_default = defineSymbol({
|
9955
10111
|
primitives: [
|
9956
|
-
...Object.values(
|
9957
|
-
...Object.values(
|
9958
|
-
{ ...
|
9959
|
-
{ ...
|
10112
|
+
...Object.values(paths61),
|
10113
|
+
...Object.values(circles59),
|
10114
|
+
{ ...texts63.top1, anchor: "middle_bottom" },
|
10115
|
+
{ ...texts63.bottom1, anchor: "middle_top" }
|
9960
10116
|
],
|
9961
10117
|
ports: [
|
9962
|
-
{ ...
|
10118
|
+
{ ...refblocks61.left1, labels: ["1"] },
|
9963
10119
|
// TODO add more "standard" labels
|
9964
|
-
{ ...
|
10120
|
+
{ ...refblocks61.right1, labels: ["2"] }
|
9965
10121
|
// TODO add more "standard" labels
|
9966
10122
|
],
|
9967
|
-
size: { width:
|
9968
|
-
center: { x:
|
10123
|
+
size: { width: bounds61.width, height: bounds61.height },
|
10124
|
+
center: { x: bounds61.centerX, y: bounds61.centerY }
|
9969
10125
|
});
|
9970
10126
|
|
9971
10127
|
// symbols/inductor_up.ts
|
@@ -10484,22 +10640,22 @@ var led_default = {
|
|
10484
10640
|
};
|
10485
10641
|
|
10486
10642
|
// symbols/led_right.ts
|
10487
|
-
var { paths:
|
10643
|
+
var { paths: paths62, texts: texts64, bounds: bounds62, refblocks: refblocks62, circles: circles60 } = led_default;
|
10488
10644
|
var led_right_default = defineSymbol({
|
10489
10645
|
primitives: [
|
10490
|
-
...Object.values(
|
10491
|
-
...Object.values(
|
10492
|
-
{ ...
|
10493
|
-
{ ...
|
10646
|
+
...Object.values(paths62),
|
10647
|
+
...Object.values(circles60),
|
10648
|
+
{ ...texts64.bottom1, anchor: "middle_top" },
|
10649
|
+
{ ...texts64.right1, anchor: "middle_bottom" }
|
10494
10650
|
],
|
10495
10651
|
ports: [
|
10496
|
-
{ ...
|
10652
|
+
{ ...refblocks62.left1, labels: ["1"] },
|
10497
10653
|
// TODO add more "standard" labels
|
10498
|
-
{ ...
|
10654
|
+
{ ...refblocks62.right1, labels: ["2"] }
|
10499
10655
|
// TODO add more "standard" labels
|
10500
10656
|
],
|
10501
|
-
size: { width:
|
10502
|
-
center: { x:
|
10657
|
+
size: { width: bounds62.width, height: bounds62.height },
|
10658
|
+
center: { x: bounds62.centerX, y: bounds62.centerY }
|
10503
10659
|
});
|
10504
10660
|
|
10505
10661
|
// symbols/led_up.ts
|
@@ -10762,32 +10918,32 @@ var light_dependent_resistor_default = {
|
|
10762
10918
|
};
|
10763
10919
|
|
10764
10920
|
// symbols/light_dependent_resistor_horz.ts
|
10765
|
-
var { paths:
|
10921
|
+
var { paths: paths63, texts: texts65, bounds: bounds63, refblocks: refblocks63, circles: circles61 } = light_dependent_resistor_default;
|
10766
10922
|
var light_dependent_resistor_horz_default = defineSymbol({
|
10767
10923
|
primitives: [
|
10768
|
-
...Object.values(
|
10769
|
-
...Object.values(
|
10770
|
-
{ ...
|
10771
|
-
{ ...
|
10924
|
+
...Object.values(paths63),
|
10925
|
+
...Object.values(circles61),
|
10926
|
+
{ ...texts65.top1, anchor: "middle_left", x: 0 },
|
10927
|
+
{ ...texts65.bottom1, anchor: "middle_left", x: 0 }
|
10772
10928
|
],
|
10773
10929
|
ports: [
|
10774
|
-
{ ...
|
10930
|
+
{ ...refblocks63.left1, labels: ["1"] },
|
10775
10931
|
// TODO add more "standard" labels
|
10776
|
-
{ ...
|
10932
|
+
{ ...refblocks63.right1, labels: ["2"] }
|
10777
10933
|
// TODO add more "standard" labels
|
10778
10934
|
],
|
10779
|
-
size: { width:
|
10780
|
-
center: { x:
|
10935
|
+
size: { width: bounds63.width, height: bounds63.height },
|
10936
|
+
center: { x: bounds63.centerX, y: bounds63.centerY }
|
10781
10937
|
});
|
10782
10938
|
|
10783
10939
|
// symbols/light_dependent_resistor_vert.ts
|
10784
10940
|
var rotatedSymbol5 = rotateSymbol(light_dependent_resistor_horz_default);
|
10785
|
-
var
|
10786
|
-
var val24 =
|
10941
|
+
var texts66 = rotatedSymbol5.primitives.filter((p) => p.type === "text");
|
10942
|
+
var val24 = texts66.find((t) => t.text === "{VAL}");
|
10787
10943
|
val24.x = -0.35;
|
10788
10944
|
val24.y = 0;
|
10789
10945
|
val24.anchor = "middle_right";
|
10790
|
-
var ref24 =
|
10946
|
+
var ref24 = texts66.find((t) => t.text === "{REF}");
|
10791
10947
|
ref24.y = 0;
|
10792
10948
|
ref24.x = 0.35;
|
10793
10949
|
ref24.anchor = "middle_left";
|
@@ -11064,23 +11220,23 @@ var mosfet_depletion_normally_on_default = {
|
|
11064
11220
|
};
|
11065
11221
|
|
11066
11222
|
// symbols/mosfet_depletion_normally_on_horz.ts
|
11067
|
-
var { paths:
|
11223
|
+
var { paths: paths64, texts: texts67, bounds: bounds64, refblocks: refblocks64 } = mosfet_depletion_normally_on_default;
|
11068
11224
|
var mosfet_depletion_normally_on_horz_default = defineSymbol({
|
11069
11225
|
primitives: [
|
11070
|
-
...Object.values(
|
11071
|
-
{ ...
|
11072
|
-
{ ...
|
11226
|
+
...Object.values(paths64),
|
11227
|
+
{ ...texts67.right1, anchor: "middle_left" },
|
11228
|
+
{ ...texts67.right2, anchor: "middle_left" }
|
11073
11229
|
],
|
11074
11230
|
ports: [
|
11075
|
-
{ ...
|
11231
|
+
{ ...refblocks64.top1, labels: ["1"] },
|
11076
11232
|
// TODO add more "standard" labels
|
11077
|
-
{ ...
|
11233
|
+
{ ...refblocks64.bottom1, labels: ["2"] },
|
11078
11234
|
// TODO add more "standard" labels
|
11079
|
-
{ ...
|
11235
|
+
{ ...refblocks64.left1, labels: ["3"] }
|
11080
11236
|
// TODO add more "standard" labels
|
11081
11237
|
],
|
11082
|
-
size: { width:
|
11083
|
-
center: { x:
|
11238
|
+
size: { width: bounds64.width + 0.4, height: bounds64.height },
|
11239
|
+
center: { x: bounds64.centerX + 0.2, y: bounds64.centerY }
|
11084
11240
|
});
|
11085
11241
|
|
11086
11242
|
// symbols/mosfet_depletion_normally_on_vert.ts
|
@@ -11706,20 +11862,20 @@ var mushroom_head_normally_open_momentary_default = {
|
|
11706
11862
|
};
|
11707
11863
|
|
11708
11864
|
// symbols/mushroom_head_normally_open_momentary_horz.ts
|
11709
|
-
var { paths:
|
11865
|
+
var { paths: paths65, texts: texts68, bounds: bounds65, refblocks: refblocks65, circles: circles62 } = mushroom_head_normally_open_momentary_default;
|
11710
11866
|
var mushroom_head_normally_open_momentary_horz_default = defineSymbol({
|
11711
11867
|
primitives: [
|
11712
|
-
...Object.values(
|
11713
|
-
...Object.values(
|
11714
|
-
{ ...
|
11715
|
-
{ ...
|
11868
|
+
...Object.values(paths65),
|
11869
|
+
...Object.values(circles62),
|
11870
|
+
{ ...texts68.top1, anchor: "middle_bottom", x: 0 },
|
11871
|
+
{ ...texts68.bottom1, anchor: "middle_top", x: 0 }
|
11716
11872
|
],
|
11717
11873
|
ports: [
|
11718
|
-
{ ...
|
11719
|
-
{ ...
|
11874
|
+
{ ...refblocks65.left1, labels: ["1"] },
|
11875
|
+
{ ...refblocks65.right1, labels: ["2"] }
|
11720
11876
|
],
|
11721
|
-
size: { width:
|
11722
|
-
center: { x:
|
11877
|
+
size: { width: bounds65.width, height: bounds65.height },
|
11878
|
+
center: { x: bounds65.centerX + 6e-3, y: bounds65.centerY + 0.06 }
|
11723
11879
|
});
|
11724
11880
|
|
11725
11881
|
// symbols/mushroom_head_normally_open_momentary_vert.ts
|
@@ -11936,34 +12092,34 @@ var n_channel_d_mosfet_transistor_default = {
|
|
11936
12092
|
};
|
11937
12093
|
|
11938
12094
|
// symbols/n_channel_d_mosfet_transistor_horz.ts
|
11939
|
-
var { paths:
|
12095
|
+
var { paths: paths66, texts: texts69, bounds: bounds66, refblocks: refblocks66, circles: circles63 } = n_channel_d_mosfet_transistor_default;
|
11940
12096
|
var n_channel_d_mosfet_transistor_horz_default = defineSymbol({
|
11941
12097
|
primitives: [
|
11942
|
-
...Object.values(
|
11943
|
-
...Object.values(
|
11944
|
-
{ ...
|
11945
|
-
{ ...
|
12098
|
+
...Object.values(paths66),
|
12099
|
+
...Object.values(circles63),
|
12100
|
+
{ ...texts69.top1, anchor: "middle_right", x: 0 },
|
12101
|
+
{ ...texts69.bottom1, anchor: "middle_right", x: 0 }
|
11946
12102
|
],
|
11947
12103
|
ports: [
|
11948
|
-
{ ...
|
12104
|
+
{ ...refblocks66.top1, labels: ["1", "drain"] },
|
11949
12105
|
// TODO add more "standard" labels
|
11950
|
-
{ ...
|
12106
|
+
{ ...refblocks66.bottom1, labels: ["2", "source"] },
|
11951
12107
|
// TODO add more "standard" labels
|
11952
|
-
{ ...
|
12108
|
+
{ ...refblocks66.left1, labels: ["3", "gate"] }
|
11953
12109
|
// TODO add more "standard" labels
|
11954
12110
|
],
|
11955
|
-
size: { width:
|
11956
|
-
center: { x:
|
12111
|
+
size: { width: bounds66.width, height: bounds66.height },
|
12112
|
+
center: { x: bounds66.centerX, y: bounds66.centerY }
|
11957
12113
|
});
|
11958
12114
|
|
11959
12115
|
// symbols/n_channel_d_mosfet_transistor_vert.ts
|
11960
12116
|
var rotatedSymbol6 = rotateSymbol(n_channel_d_mosfet_transistor_horz_default);
|
11961
|
-
var
|
11962
|
-
var val27 =
|
12117
|
+
var texts70 = rotatedSymbol6.primitives.filter((p) => p.type === "text");
|
12118
|
+
var val27 = texts70.find((t) => t.text === "{VAL}");
|
11963
12119
|
val27.x = -0.35;
|
11964
12120
|
val27.y = 0;
|
11965
12121
|
val27.anchor = "middle_right";
|
11966
|
-
var ref27 =
|
12122
|
+
var ref27 = texts70.find((t) => t.text === "{REF}");
|
11967
12123
|
ref27.y = 0;
|
11968
12124
|
ref27.x = 0.35;
|
11969
12125
|
ref27.anchor = "middle_left";
|
@@ -12197,34 +12353,34 @@ var n_channel_e_mosfet_transistor_default = {
|
|
12197
12353
|
};
|
12198
12354
|
|
12199
12355
|
// symbols/n_channel_e_mosfet_transistor_horz.ts
|
12200
|
-
var { paths:
|
12356
|
+
var { paths: paths67, texts: texts71, bounds: bounds67, refblocks: refblocks67, circles: circles64 } = n_channel_e_mosfet_transistor_default;
|
12201
12357
|
var n_channel_e_mosfet_transistor_horz_default = defineSymbol({
|
12202
12358
|
primitives: [
|
12203
|
-
...Object.values(
|
12204
|
-
...Object.values(
|
12205
|
-
{ ...
|
12206
|
-
{ ...
|
12359
|
+
...Object.values(paths67),
|
12360
|
+
...Object.values(circles64),
|
12361
|
+
{ ...texts71.top1, anchor: "middle_right", x: 0 },
|
12362
|
+
{ ...texts71.bottom1, anchor: "middle_right", x: 0 }
|
12207
12363
|
],
|
12208
12364
|
ports: [
|
12209
|
-
{ ...
|
12365
|
+
{ ...refblocks67.top1, labels: ["1", "drain"] },
|
12210
12366
|
// TODO add more "standard" labels
|
12211
|
-
{ ...
|
12367
|
+
{ ...refblocks67.bottom1, labels: ["2", "source"] },
|
12212
12368
|
// TODO add more "standard" labels
|
12213
|
-
{ ...
|
12369
|
+
{ ...refblocks67.left1, labels: ["3", "gate"] }
|
12214
12370
|
// TODO add more "standard" labels
|
12215
12371
|
],
|
12216
|
-
size: { width:
|
12217
|
-
center: { x:
|
12372
|
+
size: { width: bounds67.width, height: bounds67.height },
|
12373
|
+
center: { x: bounds67.centerX, y: bounds67.centerY }
|
12218
12374
|
});
|
12219
12375
|
|
12220
12376
|
// symbols/n_channel_e_mosfet_transistor_vert.ts
|
12221
12377
|
var rotatedSymbol7 = rotateSymbol(n_channel_e_mosfet_transistor_horz_default);
|
12222
|
-
var
|
12223
|
-
var val28 =
|
12378
|
+
var texts72 = rotatedSymbol7.primitives.filter((p) => p.type === "text");
|
12379
|
+
var val28 = texts72.find((t) => t.text === "{VAL}");
|
12224
12380
|
val28.x = -0.35;
|
12225
12381
|
val28.y = 0;
|
12226
12382
|
val28.anchor = "middle_right";
|
12227
|
-
var ref28 =
|
12383
|
+
var ref28 = texts72.find((t) => t.text === "{REF}");
|
12228
12384
|
ref28.y = 0;
|
12229
12385
|
ref28.x = 0.35;
|
12230
12386
|
ref28.anchor = "middle_left";
|
@@ -12398,34 +12554,34 @@ var njfet_transistor_default = {
|
|
12398
12554
|
};
|
12399
12555
|
|
12400
12556
|
// symbols/njfet_transistor_horz.ts
|
12401
|
-
var { paths:
|
12557
|
+
var { paths: paths68, texts: texts73, bounds: bounds68, refblocks: refblocks68, circles: circles65 } = njfet_transistor_default;
|
12402
12558
|
var njfet_transistor_horz_default = defineSymbol({
|
12403
12559
|
primitives: [
|
12404
|
-
...Object.values(
|
12405
|
-
...Object.values(
|
12406
|
-
{ ...
|
12407
|
-
{ ...
|
12560
|
+
...Object.values(paths68),
|
12561
|
+
...Object.values(circles65),
|
12562
|
+
{ ...texts73.top1, anchor: "middle_right", x: 0 },
|
12563
|
+
{ ...texts73.bottom1, anchor: "middle_right", x: 0 }
|
12408
12564
|
],
|
12409
12565
|
ports: [
|
12410
|
-
{ ...
|
12566
|
+
{ ...refblocks68.top1, labels: ["1", "drain"] },
|
12411
12567
|
// TODO add more "standard" labels
|
12412
|
-
{ ...
|
12568
|
+
{ ...refblocks68.bottom1, labels: ["2", "source"] },
|
12413
12569
|
// TODO add more "standard" labels
|
12414
|
-
{ ...
|
12570
|
+
{ ...refblocks68.left1, labels: ["3", "gate"] }
|
12415
12571
|
// TODO add more "standard" labels
|
12416
12572
|
],
|
12417
|
-
size: { width:
|
12418
|
-
center: { x:
|
12573
|
+
size: { width: bounds68.width, height: bounds68.height },
|
12574
|
+
center: { x: bounds68.centerX, y: bounds68.centerY }
|
12419
12575
|
});
|
12420
12576
|
|
12421
12577
|
// symbols/njfet_transistor_vert.ts
|
12422
12578
|
var rotatedSymbol8 = rotateSymbol(njfet_transistor_horz_default);
|
12423
|
-
var
|
12424
|
-
var val29 =
|
12579
|
+
var texts74 = rotatedSymbol8.primitives.filter((p) => p.type === "text");
|
12580
|
+
var val29 = texts74.find((t) => t.text === "{VAL}");
|
12425
12581
|
val29.x = -0.35;
|
12426
12582
|
val29.y = 0;
|
12427
12583
|
val29.anchor = "middle_right";
|
12428
|
-
var ref29 =
|
12584
|
+
var ref29 = texts74.find((t) => t.text === "{REF}");
|
12429
12585
|
ref29.y = 0;
|
12430
12586
|
ref29.x = 0.35;
|
12431
12587
|
ref29.anchor = "middle_left";
|
@@ -12480,11 +12636,11 @@ var not_connected_default = {
|
|
12480
12636
|
};
|
12481
12637
|
|
12482
12638
|
// symbols/not_connected_right.ts
|
12483
|
-
var { paths:
|
12639
|
+
var { paths: paths69, bounds: bounds69, refblocks: refblocks69 } = not_connected_default;
|
12484
12640
|
var not_connected_right_default = modifySymbol({
|
12485
|
-
primitives: [...Object.values(
|
12486
|
-
ports: [{ ...
|
12487
|
-
center: { x:
|
12641
|
+
primitives: [...Object.values(paths69)],
|
12642
|
+
ports: [{ ...refblocks69.left1, labels: ["1"] }],
|
12643
|
+
center: { x: bounds69.centerX, y: bounds69.centerY }
|
12488
12644
|
}).rotateRightFacingSymbol("right").labelPort("left1", ["1"]).build();
|
12489
12645
|
|
12490
12646
|
// symbols/not_connected_down.ts
|
@@ -12664,11 +12820,11 @@ var npn_bipolar_transistor_default = {
|
|
12664
12820
|
};
|
12665
12821
|
|
12666
12822
|
// symbols/npn_bipolar_transistor_down.ts
|
12667
|
-
var { paths:
|
12823
|
+
var { paths: paths70, texts: texts75, bounds: bounds70, refblocks: refblocks70, circles: circles66 } = npn_bipolar_transistor_default;
|
12668
12824
|
var npn_bipolar_transistor_down_default = modifySymbol({
|
12669
12825
|
primitives: [
|
12670
|
-
...Object.values(
|
12671
|
-
...Object.values(
|
12826
|
+
...Object.values(paths70),
|
12827
|
+
...Object.values(circles66),
|
12672
12828
|
{
|
12673
12829
|
type: "text",
|
12674
12830
|
text: "{REF}",
|
@@ -12683,24 +12839,24 @@ var npn_bipolar_transistor_down_default = modifySymbol({
|
|
12683
12839
|
}
|
12684
12840
|
],
|
12685
12841
|
ports: [
|
12686
|
-
{ ...
|
12687
|
-
{ ...
|
12688
|
-
{ ...
|
12842
|
+
{ ...refblocks70.top1, labels: ["1"] },
|
12843
|
+
{ ...refblocks70.bottom1, labels: ["3"] },
|
12844
|
+
{ ...refblocks70.left1, labels: ["2"] }
|
12689
12845
|
],
|
12690
|
-
size: { width:
|
12691
|
-
center: { x:
|
12846
|
+
size: { width: bounds70.width, height: bounds70.height },
|
12847
|
+
center: { x: bounds70.centerX, y: bounds70.centerY }
|
12692
12848
|
}).rotateRightFacingSymbol("right").changeTextAnchor("{REF}", "middle_right").changeTextAnchor("{VAL}", "middle_right").build();
|
12693
12849
|
|
12694
12850
|
// symbols/npn_bipolar_transistor_horz.ts
|
12695
|
-
var { paths:
|
12851
|
+
var { paths: paths71, texts: texts76, bounds: bounds71, refblocks: refblocks71, circles: circles67 } = npn_bipolar_transistor_default;
|
12696
12852
|
var npn_bipolar_transistor_horz_default = modifySymbol(npn_bipolar_transistor_default).rotateRightFacingSymbol("up").changeTextAnchor("{VAL}", "middle_left").labelPort("left1", ["2"]).labelPort("top1", ["1"]).labelPort("bottom1", ["3"]).changeTextAnchor("{REF}", "middle_right").build();
|
12697
12853
|
|
12698
12854
|
// symbols/npn_bipolar_transistor_left.ts
|
12699
|
-
var { paths:
|
12855
|
+
var { paths: paths72, texts: texts77, bounds: bounds72, refblocks: refblocks72, circles: circles68 } = npn_bipolar_transistor_default;
|
12700
12856
|
var npn_bipolar_transistor_left_default = modifySymbol({
|
12701
12857
|
primitives: [
|
12702
|
-
...Object.values(
|
12703
|
-
...Object.values(
|
12858
|
+
...Object.values(paths72),
|
12859
|
+
...Object.values(circles68),
|
12704
12860
|
{
|
12705
12861
|
type: "text",
|
12706
12862
|
text: "{REF}",
|
@@ -12715,20 +12871,20 @@ var npn_bipolar_transistor_left_default = modifySymbol({
|
|
12715
12871
|
}
|
12716
12872
|
],
|
12717
12873
|
ports: [
|
12718
|
-
{ ...
|
12719
|
-
{ ...
|
12720
|
-
{ ...
|
12874
|
+
{ ...refblocks72.top1, labels: ["1"] },
|
12875
|
+
{ ...refblocks72.bottom1, labels: ["3"] },
|
12876
|
+
{ ...refblocks72.left1, labels: ["2"] }
|
12721
12877
|
],
|
12722
|
-
size: { width:
|
12723
|
-
center: { x:
|
12878
|
+
size: { width: bounds72.width, height: bounds72.height },
|
12879
|
+
center: { x: bounds72.centerX, y: bounds72.centerY }
|
12724
12880
|
}).rotateRightFacingSymbol("down").changeTextAnchor("{REF}", "middle_bottom").changeTextAnchor("{VAL}", "middle_bottom").build();
|
12725
12881
|
|
12726
12882
|
// symbols/npn_bipolar_transistor_right.ts
|
12727
|
-
var { paths:
|
12883
|
+
var { paths: paths73, texts: texts78, bounds: bounds73, refblocks: refblocks73, circles: circles69 } = npn_bipolar_transistor_default;
|
12728
12884
|
var npn_bipolar_transistor_right_default = modifySymbol({
|
12729
12885
|
primitives: [
|
12730
|
-
...Object.values(
|
12731
|
-
...Object.values(
|
12886
|
+
...Object.values(paths73),
|
12887
|
+
...Object.values(circles69),
|
12732
12888
|
{
|
12733
12889
|
type: "text",
|
12734
12890
|
text: "{REF}",
|
@@ -12743,20 +12899,20 @@ var npn_bipolar_transistor_right_default = modifySymbol({
|
|
12743
12899
|
}
|
12744
12900
|
],
|
12745
12901
|
ports: [
|
12746
|
-
{ ...
|
12747
|
-
{ ...
|
12748
|
-
{ ...
|
12902
|
+
{ ...refblocks73.top1, labels: ["1"] },
|
12903
|
+
{ ...refblocks73.bottom1, labels: ["3"] },
|
12904
|
+
{ ...refblocks73.left1, labels: ["2"] }
|
12749
12905
|
],
|
12750
|
-
size: { width:
|
12751
|
-
center: { x:
|
12906
|
+
size: { width: bounds73.width, height: bounds73.height },
|
12907
|
+
center: { x: bounds73.centerX, y: bounds73.centerY }
|
12752
12908
|
}).rotateRightFacingSymbol("up").changeTextAnchor("{REF}", "middle_top").changeTextAnchor("{VAL}", "middle_top").build();
|
12753
12909
|
|
12754
12910
|
// symbols/npn_bipolar_transistor_up.ts
|
12755
|
-
var { paths:
|
12911
|
+
var { paths: paths74, texts: texts79, bounds: bounds74, refblocks: refblocks74, circles: circles70 } = npn_bipolar_transistor_default;
|
12756
12912
|
var npn_bipolar_transistor_up_default = modifySymbol({
|
12757
12913
|
primitives: [
|
12758
|
-
...Object.values(
|
12759
|
-
...Object.values(
|
12914
|
+
...Object.values(paths74),
|
12915
|
+
...Object.values(circles70),
|
12760
12916
|
{
|
12761
12917
|
type: "text",
|
12762
12918
|
text: "{REF}",
|
@@ -12771,20 +12927,20 @@ var npn_bipolar_transistor_up_default = modifySymbol({
|
|
12771
12927
|
}
|
12772
12928
|
],
|
12773
12929
|
ports: [
|
12774
|
-
{ ...
|
12775
|
-
{ ...
|
12776
|
-
{ ...
|
12930
|
+
{ ...refblocks74.top1, labels: ["1"] },
|
12931
|
+
{ ...refblocks74.bottom1, labels: ["3"] },
|
12932
|
+
{ ...refblocks74.left1, labels: ["2"] }
|
12777
12933
|
],
|
12778
|
-
size: { width:
|
12779
|
-
center: { x:
|
12934
|
+
size: { width: bounds74.width, height: bounds74.height },
|
12935
|
+
center: { x: bounds74.centerX, y: bounds74.centerY }
|
12780
12936
|
}).rotateRightFacingSymbol("left").changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
|
12781
12937
|
|
12782
12938
|
// symbols/npn_bipolar_transistor_vert.ts
|
12783
|
-
var { paths:
|
12939
|
+
var { paths: paths75, texts: texts80, bounds: bounds75, refblocks: refblocks75, circles: circles71 } = npn_bipolar_transistor_default;
|
12784
12940
|
var npn_bipolar_transistor_vert_default = modifySymbol({
|
12785
12941
|
primitives: [
|
12786
|
-
...Object.values(
|
12787
|
-
...Object.values(
|
12942
|
+
...Object.values(paths75),
|
12943
|
+
...Object.values(circles71),
|
12788
12944
|
{
|
12789
12945
|
type: "text",
|
12790
12946
|
text: "{REF}",
|
@@ -12799,12 +12955,12 @@ var npn_bipolar_transistor_vert_default = modifySymbol({
|
|
12799
12955
|
}
|
12800
12956
|
],
|
12801
12957
|
ports: [
|
12802
|
-
{ ...
|
12803
|
-
{ ...
|
12804
|
-
{ ...
|
12958
|
+
{ ...refblocks75.top1, labels: ["1"] },
|
12959
|
+
{ ...refblocks75.bottom1, labels: ["3"] },
|
12960
|
+
{ ...refblocks75.left1, labels: ["2"] }
|
12805
12961
|
],
|
12806
|
-
size: { width:
|
12807
|
-
center: { x:
|
12962
|
+
size: { width: bounds75.width, height: bounds75.height },
|
12963
|
+
center: { x: bounds75.centerX, y: bounds75.centerY }
|
12808
12964
|
}).rotateRightFacingSymbol("left").changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
|
12809
12965
|
|
12810
12966
|
// assets/generated/opamp_no_power.json
|
@@ -13427,34 +13583,34 @@ var p_channel_d_mosfet_transistor_default = {
|
|
13427
13583
|
};
|
13428
13584
|
|
13429
13585
|
// symbols/p_channel_d_mosfet_transistor_horz.ts
|
13430
|
-
var { paths:
|
13586
|
+
var { paths: paths76, texts: texts81, bounds: bounds76, refblocks: refblocks76, circles: circles72 } = p_channel_d_mosfet_transistor_default;
|
13431
13587
|
var p_channel_d_mosfet_transistor_horz_default = defineSymbol({
|
13432
13588
|
primitives: [
|
13433
|
-
...Object.values(
|
13434
|
-
...Object.values(
|
13435
|
-
{ ...
|
13436
|
-
{ ...
|
13589
|
+
...Object.values(paths76),
|
13590
|
+
...Object.values(circles72),
|
13591
|
+
{ ...texts81.top1, anchor: "middle_right", x: 0 },
|
13592
|
+
{ ...texts81.bottom1, anchor: "middle_right", x: 0 }
|
13437
13593
|
],
|
13438
13594
|
ports: [
|
13439
|
-
{ ...
|
13595
|
+
{ ...refblocks76.top1, labels: ["1", "drain"] },
|
13440
13596
|
// TODO add more "standard" labels
|
13441
|
-
{ ...
|
13597
|
+
{ ...refblocks76.bottom1, labels: ["2", "source"] },
|
13442
13598
|
// TODO add more "standard" labels
|
13443
|
-
{ ...
|
13599
|
+
{ ...refblocks76.left1, labels: ["3", "gate"] }
|
13444
13600
|
// TODO add more "standard" labels
|
13445
13601
|
],
|
13446
|
-
size: { width:
|
13447
|
-
center: { x:
|
13602
|
+
size: { width: bounds76.width, height: bounds76.height },
|
13603
|
+
center: { x: bounds76.centerX, y: bounds76.centerY }
|
13448
13604
|
});
|
13449
13605
|
|
13450
13606
|
// symbols/p_channel_d_mosfet_transistor_vert.ts
|
13451
13607
|
var rotatedSymbol9 = rotateSymbol(p_channel_d_mosfet_transistor_horz_default);
|
13452
|
-
var
|
13453
|
-
var val30 =
|
13608
|
+
var texts82 = rotatedSymbol9.primitives.filter((p) => p.type === "text");
|
13609
|
+
var val30 = texts82.find((t) => t.text === "{VAL}");
|
13454
13610
|
val30.x = -0.35;
|
13455
13611
|
val30.y = 0;
|
13456
13612
|
val30.anchor = "middle_right";
|
13457
|
-
var ref30 =
|
13613
|
+
var ref30 = texts82.find((t) => t.text === "{REF}");
|
13458
13614
|
ref30.y = 0;
|
13459
13615
|
ref30.x = 0.35;
|
13460
13616
|
ref30.anchor = "middle_left";
|
@@ -13688,34 +13844,34 @@ var p_channel_e_mosfet_transistor_default = {
|
|
13688
13844
|
};
|
13689
13845
|
|
13690
13846
|
// symbols/p_channel_e_mosfet_transistor_horz.ts
|
13691
|
-
var { paths:
|
13847
|
+
var { paths: paths77, texts: texts83, bounds: bounds77, refblocks: refblocks77, circles: circles73 } = p_channel_e_mosfet_transistor_default;
|
13692
13848
|
var p_channel_e_mosfet_transistor_horz_default = defineSymbol({
|
13693
13849
|
primitives: [
|
13694
|
-
...Object.values(
|
13695
|
-
...Object.values(
|
13696
|
-
{ ...
|
13697
|
-
{ ...
|
13850
|
+
...Object.values(paths77),
|
13851
|
+
...Object.values(circles73),
|
13852
|
+
{ ...texts83.top1, anchor: "middle_right", x: 0 },
|
13853
|
+
{ ...texts83.bottom1, anchor: "middle_right", x: 0 }
|
13698
13854
|
],
|
13699
13855
|
ports: [
|
13700
|
-
{ ...
|
13856
|
+
{ ...refblocks77.top1, labels: ["1", "drain"] },
|
13701
13857
|
// TODO add more "standard" labels
|
13702
|
-
{ ...
|
13858
|
+
{ ...refblocks77.bottom1, labels: ["2", "source"] },
|
13703
13859
|
// TODO add more "standard" labels
|
13704
|
-
{ ...
|
13860
|
+
{ ...refblocks77.left1, labels: ["3", "gate"] }
|
13705
13861
|
// TODO add more "standard" labels
|
13706
13862
|
],
|
13707
|
-
size: { width:
|
13708
|
-
center: { x:
|
13863
|
+
size: { width: bounds77.width, height: bounds77.height },
|
13864
|
+
center: { x: bounds77.centerX, y: bounds77.centerY }
|
13709
13865
|
});
|
13710
13866
|
|
13711
13867
|
// symbols/p_channel_e_mosfet_transistor_vert.ts
|
13712
13868
|
var rotatedSymbol10 = rotateSymbol(p_channel_e_mosfet_transistor_horz_default);
|
13713
|
-
var
|
13714
|
-
var val31 =
|
13869
|
+
var texts84 = rotatedSymbol10.primitives.filter((p) => p.type === "text");
|
13870
|
+
var val31 = texts84.find((t) => t.text === "{VAL}");
|
13715
13871
|
val31.x = -0.35;
|
13716
13872
|
val31.y = 0;
|
13717
13873
|
val31.anchor = "middle_right";
|
13718
|
-
var ref31 =
|
13874
|
+
var ref31 = texts84.find((t) => t.text === "{REF}");
|
13719
13875
|
ref31.y = 0;
|
13720
13876
|
ref31.x = 0.35;
|
13721
13877
|
ref31.anchor = "middle_left";
|
@@ -13950,8 +14106,8 @@ var photodiode_horz_default = modifySymbol(photodiode_default).changeTextAnchor(
|
|
13950
14106
|
|
13951
14107
|
// symbols/photodiode_vert.ts
|
13952
14108
|
var rotatedSymbol11 = rotateSymbol(photodiode_horz_default);
|
13953
|
-
var
|
13954
|
-
var ref32 =
|
14109
|
+
var texts85 = rotatedSymbol11.primitives.filter((p) => p.type === "text");
|
14110
|
+
var ref32 = texts85.find((t) => t.text === "{REF}");
|
13955
14111
|
ref32.y = 0;
|
13956
14112
|
ref32.anchor = "middle_left";
|
13957
14113
|
var photodiode_vert_default = rotatedSymbol11;
|
@@ -14124,34 +14280,34 @@ var pjfet_transistor_default = {
|
|
14124
14280
|
};
|
14125
14281
|
|
14126
14282
|
// symbols/pjfet_transistor_horz.ts
|
14127
|
-
var { paths:
|
14283
|
+
var { paths: paths78, texts: texts86, bounds: bounds78, refblocks: refblocks78, circles: circles74 } = pjfet_transistor_default;
|
14128
14284
|
var pjfet_transistor_horz_default = defineSymbol({
|
14129
14285
|
primitives: [
|
14130
|
-
...Object.values(
|
14131
|
-
...Object.values(
|
14132
|
-
{ ...
|
14133
|
-
{ ...
|
14286
|
+
...Object.values(paths78),
|
14287
|
+
...Object.values(circles74),
|
14288
|
+
{ ...texts86.top1, anchor: "middle_right", x: 0 },
|
14289
|
+
{ ...texts86.bottom1, anchor: "middle_right" }
|
14134
14290
|
],
|
14135
14291
|
ports: [
|
14136
|
-
{ ...
|
14292
|
+
{ ...refblocks78.top1, labels: ["1", "drain"] },
|
14137
14293
|
// TODO add more "standard" labels
|
14138
|
-
{ ...
|
14294
|
+
{ ...refblocks78.bottom1, labels: ["2", "source"] },
|
14139
14295
|
// TODO add more "standard" labels
|
14140
|
-
{ ...
|
14296
|
+
{ ...refblocks78.left1, labels: ["3", "gate"] }
|
14141
14297
|
// TODO add more "standard" labels
|
14142
14298
|
],
|
14143
|
-
size: { width:
|
14144
|
-
center: { x:
|
14299
|
+
size: { width: bounds78.width, height: bounds78.height },
|
14300
|
+
center: { x: bounds78.centerX, y: bounds78.centerY }
|
14145
14301
|
});
|
14146
14302
|
|
14147
14303
|
// symbols/pjfet_transistor_vert.ts
|
14148
14304
|
var rotatedSymbol12 = rotateSymbol(pjfet_transistor_horz_default);
|
14149
|
-
var
|
14150
|
-
var val32 =
|
14305
|
+
var texts87 = rotatedSymbol12.primitives.filter((p) => p.type === "text");
|
14306
|
+
var val32 = texts87.find((t) => t.text === "{VAL}");
|
14151
14307
|
val32.x = -0.35;
|
14152
14308
|
val32.y = 0;
|
14153
14309
|
val32.anchor = "middle_right";
|
14154
|
-
var ref33 =
|
14310
|
+
var ref33 = texts87.find((t) => t.text === "{REF}");
|
14155
14311
|
ref33.y = 0;
|
14156
14312
|
ref33.x = 0.35;
|
14157
14313
|
ref33.anchor = "middle_left";
|
@@ -14325,11 +14481,11 @@ var pnp_bipolar_transistor_default = {
|
|
14325
14481
|
};
|
14326
14482
|
|
14327
14483
|
// symbols/pnp_bipolar_transistor_down.ts
|
14328
|
-
var { paths:
|
14484
|
+
var { paths: paths79, texts: texts88, bounds: bounds79, refblocks: refblocks79, circles: circles75 } = pnp_bipolar_transistor_default;
|
14329
14485
|
var pnp_bipolar_transistor_down_default = modifySymbol({
|
14330
14486
|
primitives: [
|
14331
|
-
...Object.values(
|
14332
|
-
...Object.values(
|
14487
|
+
...Object.values(paths79),
|
14488
|
+
...Object.values(circles75),
|
14333
14489
|
{
|
14334
14490
|
type: "text",
|
14335
14491
|
text: "{REF}",
|
@@ -14344,24 +14500,24 @@ var pnp_bipolar_transistor_down_default = modifySymbol({
|
|
14344
14500
|
}
|
14345
14501
|
],
|
14346
14502
|
ports: [
|
14347
|
-
{ ...
|
14348
|
-
{ ...
|
14349
|
-
{ ...
|
14503
|
+
{ ...refblocks79.top1, labels: ["1"] },
|
14504
|
+
{ ...refblocks79.bottom1, labels: ["3"] },
|
14505
|
+
{ ...refblocks79.left1, labels: ["2"] }
|
14350
14506
|
],
|
14351
|
-
size: { width:
|
14352
|
-
center: { x:
|
14507
|
+
size: { width: bounds79.width, height: bounds79.height },
|
14508
|
+
center: { x: bounds79.centerX, y: bounds79.centerY }
|
14353
14509
|
}).rotateRightFacingSymbol("right").changeTextAnchor("{REF}", "middle_right").changeTextAnchor("{VAL}", "middle_right").build();
|
14354
14510
|
|
14355
14511
|
// symbols/pnp_bipolar_transistor_horz.ts
|
14356
|
-
var { paths:
|
14512
|
+
var { paths: paths80, texts: texts89, bounds: bounds80, refblocks: refblocks80, circles: circles76 } = pnp_bipolar_transistor_default;
|
14357
14513
|
var pnp_bipolar_transistor_horz_default = modifySymbol(pnp_bipolar_transistor_default).rotateRightFacingSymbol("up").changeTextAnchor("{VAL}", "middle_left").labelPort("left1", ["2"]).labelPort("top1", ["1"]).labelPort("bottom1", ["3"]).changeTextAnchor("{REF}", "middle_right").build();
|
14358
14514
|
|
14359
14515
|
// symbols/pnp_bipolar_transistor_left.ts
|
14360
|
-
var { paths:
|
14516
|
+
var { paths: paths81, texts: texts90, bounds: bounds81, refblocks: refblocks81, circles: circles77 } = pnp_bipolar_transistor_default;
|
14361
14517
|
var pnp_bipolar_transistor_left_default = modifySymbol({
|
14362
14518
|
primitives: [
|
14363
|
-
...Object.values(
|
14364
|
-
...Object.values(
|
14519
|
+
...Object.values(paths81),
|
14520
|
+
...Object.values(circles77),
|
14365
14521
|
{
|
14366
14522
|
type: "text",
|
14367
14523
|
text: "{REF}",
|
@@ -14376,20 +14532,20 @@ var pnp_bipolar_transistor_left_default = modifySymbol({
|
|
14376
14532
|
}
|
14377
14533
|
],
|
14378
14534
|
ports: [
|
14379
|
-
{ ...
|
14380
|
-
{ ...
|
14381
|
-
{ ...
|
14535
|
+
{ ...refblocks81.top1, labels: ["1"] },
|
14536
|
+
{ ...refblocks81.bottom1, labels: ["3"] },
|
14537
|
+
{ ...refblocks81.left1, labels: ["2"] }
|
14382
14538
|
],
|
14383
|
-
size: { width:
|
14384
|
-
center: { x:
|
14539
|
+
size: { width: bounds81.width, height: bounds81.height },
|
14540
|
+
center: { x: bounds81.centerX, y: bounds81.centerY }
|
14385
14541
|
}).rotateRightFacingSymbol("down").changeTextAnchor("{REF}", "middle_bottom").changeTextAnchor("{VAL}", "middle_bottom").build();
|
14386
14542
|
|
14387
14543
|
// symbols/pnp_bipolar_transistor_right.ts
|
14388
|
-
var { paths:
|
14544
|
+
var { paths: paths82, texts: texts91, bounds: bounds82, refblocks: refblocks82, circles: circles78 } = pnp_bipolar_transistor_default;
|
14389
14545
|
var pnp_bipolar_transistor_right_default = modifySymbol({
|
14390
14546
|
primitives: [
|
14391
|
-
...Object.values(
|
14392
|
-
...Object.values(
|
14547
|
+
...Object.values(paths82),
|
14548
|
+
...Object.values(circles78),
|
14393
14549
|
{
|
14394
14550
|
type: "text",
|
14395
14551
|
text: "{REF}",
|
@@ -14404,20 +14560,20 @@ var pnp_bipolar_transistor_right_default = modifySymbol({
|
|
14404
14560
|
}
|
14405
14561
|
],
|
14406
14562
|
ports: [
|
14407
|
-
{ ...
|
14408
|
-
{ ...
|
14409
|
-
{ ...
|
14563
|
+
{ ...refblocks82.top1, labels: ["1"] },
|
14564
|
+
{ ...refblocks82.bottom1, labels: ["3"] },
|
14565
|
+
{ ...refblocks82.left1, labels: ["2"] }
|
14410
14566
|
],
|
14411
|
-
size: { width:
|
14412
|
-
center: { x:
|
14567
|
+
size: { width: bounds82.width, height: bounds82.height },
|
14568
|
+
center: { x: bounds82.centerX, y: bounds82.centerY }
|
14413
14569
|
}).rotateRightFacingSymbol("up").changeTextAnchor("{REF}", "middle_top").changeTextAnchor("{VAL}", "middle_top").build();
|
14414
14570
|
|
14415
14571
|
// symbols/pnp_bipolar_transistor_up.ts
|
14416
|
-
var { paths:
|
14572
|
+
var { paths: paths83, texts: texts92, bounds: bounds83, refblocks: refblocks83, circles: circles79 } = pnp_bipolar_transistor_default;
|
14417
14573
|
var pnp_bipolar_transistor_up_default = modifySymbol({
|
14418
14574
|
primitives: [
|
14419
|
-
...Object.values(
|
14420
|
-
...Object.values(
|
14575
|
+
...Object.values(paths83),
|
14576
|
+
...Object.values(circles79),
|
14421
14577
|
{
|
14422
14578
|
type: "text",
|
14423
14579
|
text: "{REF}",
|
@@ -14432,20 +14588,20 @@ var pnp_bipolar_transistor_up_default = modifySymbol({
|
|
14432
14588
|
}
|
14433
14589
|
],
|
14434
14590
|
ports: [
|
14435
|
-
{ ...
|
14436
|
-
{ ...
|
14437
|
-
{ ...
|
14591
|
+
{ ...refblocks83.top1, labels: ["1"] },
|
14592
|
+
{ ...refblocks83.bottom1, labels: ["3"] },
|
14593
|
+
{ ...refblocks83.left1, labels: ["2"] }
|
14438
14594
|
],
|
14439
|
-
size: { width:
|
14440
|
-
center: { x:
|
14595
|
+
size: { width: bounds83.width, height: bounds83.height },
|
14596
|
+
center: { x: bounds83.centerX, y: bounds83.centerY }
|
14441
14597
|
}).rotateRightFacingSymbol("left").changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
|
14442
14598
|
|
14443
14599
|
// symbols/pnp_bipolar_transistor_vert.ts
|
14444
|
-
var { paths:
|
14600
|
+
var { paths: paths84, texts: texts93, bounds: bounds84, refblocks: refblocks84, circles: circles80 } = pnp_bipolar_transistor_default;
|
14445
14601
|
var pnp_bipolar_transistor_vert_default = modifySymbol({
|
14446
14602
|
primitives: [
|
14447
|
-
...Object.values(
|
14448
|
-
...Object.values(
|
14603
|
+
...Object.values(paths84),
|
14604
|
+
...Object.values(circles80),
|
14449
14605
|
{
|
14450
14606
|
type: "text",
|
14451
14607
|
text: "{REF}",
|
@@ -14460,12 +14616,12 @@ var pnp_bipolar_transistor_vert_default = modifySymbol({
|
|
14460
14616
|
}
|
14461
14617
|
],
|
14462
14618
|
ports: [
|
14463
|
-
{ ...
|
14464
|
-
{ ...
|
14465
|
-
{ ...
|
14619
|
+
{ ...refblocks84.top1, labels: ["1"] },
|
14620
|
+
{ ...refblocks84.bottom1, labels: ["3"] },
|
14621
|
+
{ ...refblocks84.left1, labels: ["2"] }
|
14466
14622
|
],
|
14467
|
-
size: { width:
|
14468
|
-
center: { x:
|
14623
|
+
size: { width: bounds84.width, height: bounds84.height },
|
14624
|
+
center: { x: bounds84.centerX, y: bounds84.centerY }
|
14469
14625
|
}).rotateRightFacingSymbol("left").changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
|
14470
14626
|
|
14471
14627
|
// assets/generated/potentiometer.json
|
@@ -14878,21 +15034,21 @@ var potentiometer_default = {
|
|
14878
15034
|
};
|
14879
15035
|
|
14880
15036
|
// symbols/potentiometer_horz.ts
|
14881
|
-
var { paths:
|
15037
|
+
var { paths: paths85, texts: texts94, bounds: bounds85, refblocks: refblocks85 } = potentiometer_default;
|
14882
15038
|
var potentiometer_horz_default = defineSymbol({
|
14883
15039
|
primitives: [
|
14884
|
-
...Object.values(
|
14885
|
-
{ ...
|
14886
|
-
{ ...
|
15040
|
+
...Object.values(paths85),
|
15041
|
+
{ ...texts94.bottom1, y: 0.35, anchor: "middle_top" },
|
15042
|
+
{ ...texts94.top1, anchor: "middle_left" }
|
14887
15043
|
],
|
14888
15044
|
ports: [
|
14889
|
-
{ ...
|
15045
|
+
{ ...refblocks85.left1, labels: ["1"] },
|
14890
15046
|
// TODO add more "standard" labels
|
14891
|
-
{ ...
|
15047
|
+
{ ...refblocks85.right1, labels: ["2"] }
|
14892
15048
|
// TODO add more "standard" labels
|
14893
15049
|
],
|
14894
|
-
size: { width:
|
14895
|
-
center: { x:
|
15050
|
+
size: { width: bounds85.width + 0.05, height: bounds85.height },
|
15051
|
+
center: { x: bounds85.centerX, y: bounds85.centerY }
|
14896
15052
|
});
|
14897
15053
|
|
14898
15054
|
// symbols/potentiometer_vert.ts
|
@@ -15055,21 +15211,21 @@ var potentiometer2_default = {
|
|
15055
15211
|
};
|
15056
15212
|
|
15057
15213
|
// symbols/potentiometer2_right.ts
|
15058
|
-
var { paths:
|
15214
|
+
var { paths: paths86, texts: texts95, bounds: bounds86, refblocks: refblocks86 } = potentiometer2_default;
|
15059
15215
|
var potentiometer2_right_default = defineSymbol({
|
15060
15216
|
primitives: [
|
15061
|
-
...Object.values(
|
15062
|
-
{ ...
|
15063
|
-
{ ...
|
15217
|
+
...Object.values(paths86),
|
15218
|
+
{ ...texts95.bottom1, x: 0, y: -0.35, anchor: "middle_top" },
|
15219
|
+
{ ...texts95.top1, x: 0, y: 0.35, anchor: "middle_bottom" }
|
15064
15220
|
],
|
15065
15221
|
ports: [
|
15066
|
-
{ ...
|
15222
|
+
{ ...refblocks86.left1, labels: ["1"] },
|
15067
15223
|
// TODO add more "standard" labels
|
15068
|
-
{ ...
|
15224
|
+
{ ...refblocks86.right1, labels: ["2"] }
|
15069
15225
|
// TODO add more "standard" labels
|
15070
15226
|
],
|
15071
|
-
size: { width:
|
15072
|
-
center: { x:
|
15227
|
+
size: { width: bounds86.width + 0.05, height: bounds86.height },
|
15228
|
+
center: { x: bounds86.centerX, y: bounds86.centerY }
|
15073
15229
|
});
|
15074
15230
|
|
15075
15231
|
// symbols/potentiometer2_down.ts
|
@@ -15314,11 +15470,11 @@ var power_factor_meter_default = {
|
|
15314
15470
|
};
|
15315
15471
|
|
15316
15472
|
// symbols/power_factor_meter_horz.ts
|
15317
|
-
var { paths:
|
15473
|
+
var { paths: paths87, texts: texts96, bounds: bounds87, refblocks: refblocks87, circles: circles81 } = power_factor_meter_default;
|
15318
15474
|
var power_factor_meter_horz_default = defineSymbol({
|
15319
15475
|
primitives: [
|
15320
|
-
...Object.values(
|
15321
|
-
...Object.values(
|
15476
|
+
...Object.values(paths87),
|
15477
|
+
...Object.values(circles81),
|
15322
15478
|
// { ...texts.top1, anchor: "middle_left" },
|
15323
15479
|
{
|
15324
15480
|
type: "text",
|
@@ -15345,21 +15501,21 @@ var power_factor_meter_horz_default = defineSymbol({
|
|
15345
15501
|
}
|
15346
15502
|
],
|
15347
15503
|
ports: [
|
15348
|
-
{ ...
|
15504
|
+
{ ...refblocks87.left1, labels: ["1"] },
|
15349
15505
|
// TODO add more "standard" labels
|
15350
|
-
{ ...
|
15506
|
+
{ ...refblocks87.right1, labels: ["2"] }
|
15351
15507
|
// TODO add more "standard" labels
|
15352
15508
|
],
|
15353
|
-
size: { width:
|
15354
|
-
center: { x:
|
15509
|
+
size: { width: bounds87.width, height: bounds87.height },
|
15510
|
+
center: { x: bounds87.centerX, y: bounds87.centerY }
|
15355
15511
|
});
|
15356
15512
|
|
15357
15513
|
// symbols/power_factor_meter_vert.ts
|
15358
15514
|
var rotatedSymbol13 = rotateSymbol(power_factor_meter_horz_default);
|
15359
|
-
var
|
15360
|
-
var ref37 =
|
15361
|
-
var val36 =
|
15362
|
-
var text_cos =
|
15515
|
+
var texts97 = rotatedSymbol13.primitives.filter((p) => p.type === "text");
|
15516
|
+
var ref37 = texts97.find((t) => t.text === "{REF}");
|
15517
|
+
var val36 = texts97.find((t) => t.text === "{VAL}");
|
15518
|
+
var text_cos = texts97.find((t) => t.text === "COS \u03C6");
|
15363
15519
|
ref37.x = 0.35;
|
15364
15520
|
ref37.y = 0;
|
15365
15521
|
ref37.anchor = "middle_left";
|
@@ -15490,22 +15646,22 @@ var push_button_normally_closed_momentary_default = {
|
|
15490
15646
|
};
|
15491
15647
|
|
15492
15648
|
// symbols/push_button_normally_closed_momentary_horz.ts
|
15493
|
-
var { paths:
|
15649
|
+
var { paths: paths88, texts: texts98, bounds: bounds88, refblocks: refblocks88, circles: circles82 } = push_button_normally_closed_momentary_default;
|
15494
15650
|
var push_button_normally_closed_momentary_horz_default = defineSymbol({
|
15495
15651
|
primitives: [
|
15496
|
-
...Object.values(
|
15497
|
-
...Object.values(
|
15498
|
-
{ ...
|
15499
|
-
{ ...
|
15652
|
+
...Object.values(paths88),
|
15653
|
+
...Object.values(circles82),
|
15654
|
+
{ ...texts98.top1, anchor: "middle_left" },
|
15655
|
+
{ ...texts98.bottom1, anchor: "middle_left" }
|
15500
15656
|
],
|
15501
15657
|
ports: [
|
15502
|
-
{ ...
|
15658
|
+
{ ...refblocks88.left1, labels: ["1"] },
|
15503
15659
|
// TODO add more "standard" labels
|
15504
|
-
{ ...
|
15660
|
+
{ ...refblocks88.right1, labels: ["2"] }
|
15505
15661
|
// TODO add more "standard" labels
|
15506
15662
|
],
|
15507
|
-
size: { width:
|
15508
|
-
center: { x:
|
15663
|
+
size: { width: bounds88.width, height: bounds88.height },
|
15664
|
+
center: { x: bounds88.centerX, y: bounds88.centerY }
|
15509
15665
|
});
|
15510
15666
|
|
15511
15667
|
// symbols/push_button_normally_closed_momentary_vert.ts
|
@@ -15660,22 +15816,22 @@ var push_button_normally_open_momentary_default = {
|
|
15660
15816
|
};
|
15661
15817
|
|
15662
15818
|
// symbols/push_button_normally_open_momentary_horz.ts
|
15663
|
-
var { paths:
|
15819
|
+
var { paths: paths89, texts: texts99, bounds: bounds89, refblocks: refblocks89, circles: circles83 } = push_button_normally_open_momentary_default;
|
15664
15820
|
var push_button_normally_open_momentary_horz_default = defineSymbol({
|
15665
15821
|
primitives: [
|
15666
|
-
...Object.values(
|
15667
|
-
...Object.values(
|
15668
|
-
{ ...
|
15669
|
-
{ ...
|
15822
|
+
...Object.values(paths89),
|
15823
|
+
...Object.values(circles83),
|
15824
|
+
{ ...texts99.top1, anchor: "middle_left" },
|
15825
|
+
{ ...texts99.bottom1, anchor: "middle_left" }
|
15670
15826
|
],
|
15671
15827
|
ports: [
|
15672
|
-
{ ...
|
15828
|
+
{ ...refblocks89.left1, labels: ["1"] },
|
15673
15829
|
// TODO add more "standard" labels
|
15674
|
-
{ ...
|
15830
|
+
{ ...refblocks89.right1, labels: ["2"] }
|
15675
15831
|
// TODO add more "standard" labels
|
15676
15832
|
],
|
15677
|
-
size: { width:
|
15678
|
-
center: { x:
|
15833
|
+
size: { width: bounds89.width, height: bounds89.height },
|
15834
|
+
center: { x: bounds89.centerX, y: bounds89.centerY }
|
15679
15835
|
});
|
15680
15836
|
|
15681
15837
|
// symbols/push_button_normally_open_momentary_vert.ts
|
@@ -16091,26 +16247,26 @@ var rectifier_diode_default = {
|
|
16091
16247
|
};
|
16092
16248
|
|
16093
16249
|
// symbols/rectifier_diode_horz.ts
|
16094
|
-
var { paths:
|
16250
|
+
var { paths: paths90, texts: texts100, bounds: bounds90, refblocks: refblocks90, circles: circles84 } = rectifier_diode_default;
|
16095
16251
|
var rectifier_diode_horz_default = defineSymbol({
|
16096
16252
|
primitives: [
|
16097
|
-
...Object.values(
|
16098
|
-
...Object.values(
|
16099
|
-
{ ...
|
16100
|
-
{ ...
|
16253
|
+
...Object.values(paths90),
|
16254
|
+
...Object.values(circles84),
|
16255
|
+
{ ...texts100.top1, anchor: "middle_right" },
|
16256
|
+
{ ...texts100.bottom1, anchor: "middle_right" }
|
16101
16257
|
],
|
16102
16258
|
ports: [
|
16103
|
-
{ ...
|
16259
|
+
{ ...refblocks90.top1, labels: ["1"] },
|
16104
16260
|
// TODO add more "standard" labels
|
16105
|
-
{ ...
|
16261
|
+
{ ...refblocks90.bottom1, labels: ["2"] },
|
16106
16262
|
// TODO add more "standard" labels
|
16107
|
-
{ ...
|
16263
|
+
{ ...refblocks90.left1, labels: ["3"] },
|
16108
16264
|
// TODO add more "standard" labels
|
16109
|
-
{ ...
|
16265
|
+
{ ...refblocks90.right1, labels: ["4"] }
|
16110
16266
|
// TODO add more "standard" labels
|
16111
16267
|
],
|
16112
|
-
size: { width:
|
16113
|
-
center: { x:
|
16268
|
+
size: { width: bounds90.width, height: bounds90.height },
|
16269
|
+
center: { x: bounds90.centerX, y: bounds90.centerY }
|
16114
16270
|
});
|
16115
16271
|
|
16116
16272
|
// symbols/rectifier_diode_vert.ts
|
@@ -16332,11 +16488,11 @@ var resistor_default = {
|
|
16332
16488
|
};
|
16333
16489
|
|
16334
16490
|
// symbols/resistor_down.ts
|
16335
|
-
var { paths:
|
16491
|
+
var { paths: paths91, texts: texts101, bounds: bounds91, refblocks: refblocks91, circles: circles85 } = resistor_default;
|
16336
16492
|
var resistor_down_default = modifySymbol({
|
16337
16493
|
primitives: [
|
16338
|
-
...Object.values(
|
16339
|
-
...Object.values(
|
16494
|
+
...Object.values(paths91),
|
16495
|
+
...Object.values(circles85),
|
16340
16496
|
{
|
16341
16497
|
type: "text",
|
16342
16498
|
text: "{REF}",
|
@@ -16351,21 +16507,21 @@ var resistor_down_default = modifySymbol({
|
|
16351
16507
|
}
|
16352
16508
|
],
|
16353
16509
|
ports: [
|
16354
|
-
{ ...
|
16510
|
+
{ ...refblocks91.left1, labels: ["1"] },
|
16355
16511
|
// TODO add more "standard" labels
|
16356
|
-
{ ...
|
16512
|
+
{ ...refblocks91.right1, labels: ["2"] }
|
16357
16513
|
// TODO add more "standard" labels
|
16358
16514
|
],
|
16359
|
-
size: { width:
|
16360
|
-
center: { x:
|
16515
|
+
size: { width: bounds91.width, height: bounds91.height },
|
16516
|
+
center: { x: bounds91.centerX, y: bounds91.centerY }
|
16361
16517
|
}).rotateRightFacingSymbol("down").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
|
16362
16518
|
|
16363
16519
|
// symbols/resistor_left.ts
|
16364
|
-
var { paths:
|
16520
|
+
var { paths: paths92, texts: texts102, bounds: bounds92, refblocks: refblocks92, circles: circles86 } = resistor_default;
|
16365
16521
|
var resistor_left_default = modifySymbol({
|
16366
16522
|
primitives: [
|
16367
|
-
...Object.values(
|
16368
|
-
...Object.values(
|
16523
|
+
...Object.values(paths92),
|
16524
|
+
...Object.values(circles86),
|
16369
16525
|
{
|
16370
16526
|
type: "text",
|
16371
16527
|
text: "{REF}",
|
@@ -16380,21 +16536,21 @@ var resistor_left_default = modifySymbol({
|
|
16380
16536
|
}
|
16381
16537
|
],
|
16382
16538
|
ports: [
|
16383
|
-
{ ...
|
16539
|
+
{ ...refblocks92.left1, labels: ["1"] },
|
16384
16540
|
// TODO add more "standard" labels
|
16385
|
-
{ ...
|
16541
|
+
{ ...refblocks92.right1, labels: ["2"] }
|
16386
16542
|
// TODO add more "standard" labels
|
16387
16543
|
],
|
16388
|
-
size: { width:
|
16389
|
-
center: { x:
|
16544
|
+
size: { width: bounds92.width, height: bounds92.height },
|
16545
|
+
center: { x: bounds92.centerX, y: bounds92.centerY }
|
16390
16546
|
}).rotateRightFacingSymbol("left").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_bottom").changeTextAnchor("{VAL}", "middle_top").build();
|
16391
16547
|
|
16392
16548
|
// symbols/resistor_right.ts
|
16393
|
-
var { paths:
|
16549
|
+
var { paths: paths93, texts: texts103, bounds: bounds93, refblocks: refblocks93, circles: circles87 } = resistor_default;
|
16394
16550
|
var resistor_right_default = modifySymbol({
|
16395
16551
|
primitives: [
|
16396
|
-
...Object.values(
|
16397
|
-
...Object.values(
|
16552
|
+
...Object.values(paths93),
|
16553
|
+
...Object.values(circles87),
|
16398
16554
|
{
|
16399
16555
|
type: "text",
|
16400
16556
|
text: "{REF}",
|
@@ -16409,21 +16565,21 @@ var resistor_right_default = modifySymbol({
|
|
16409
16565
|
}
|
16410
16566
|
],
|
16411
16567
|
ports: [
|
16412
|
-
{ ...
|
16568
|
+
{ ...refblocks93.left1, labels: ["1"] },
|
16413
16569
|
// TODO add more "standard" labels
|
16414
|
-
{ ...
|
16570
|
+
{ ...refblocks93.right1, labels: ["2"] }
|
16415
16571
|
// TODO add more "standard" labels
|
16416
16572
|
],
|
16417
|
-
size: { width:
|
16418
|
-
center: { x:
|
16573
|
+
size: { width: bounds93.width, height: bounds93.height },
|
16574
|
+
center: { x: bounds93.centerX, y: bounds93.centerY }
|
16419
16575
|
}).rotateRightFacingSymbol("right").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_bottom").changeTextAnchor("{VAL}", "middle_top").build();
|
16420
16576
|
|
16421
16577
|
// symbols/resistor_up.ts
|
16422
|
-
var { paths:
|
16578
|
+
var { paths: paths94, texts: texts104, bounds: bounds94, refblocks: refblocks94, circles: circles88 } = resistor_default;
|
16423
16579
|
var resistor_up_default = modifySymbol({
|
16424
16580
|
primitives: [
|
16425
|
-
...Object.values(
|
16426
|
-
...Object.values(
|
16581
|
+
...Object.values(paths94),
|
16582
|
+
...Object.values(circles88),
|
16427
16583
|
{
|
16428
16584
|
type: "text",
|
16429
16585
|
text: "{REF}",
|
@@ -16438,13 +16594,13 @@ var resistor_up_default = modifySymbol({
|
|
16438
16594
|
}
|
16439
16595
|
],
|
16440
16596
|
ports: [
|
16441
|
-
{ ...
|
16597
|
+
{ ...refblocks94.left1, labels: ["1"] },
|
16442
16598
|
// TODO add more "standard" labels
|
16443
|
-
{ ...
|
16599
|
+
{ ...refblocks94.right1, labels: ["2"] }
|
16444
16600
|
// TODO add more "standard" labels
|
16445
16601
|
],
|
16446
|
-
size: { width:
|
16447
|
-
center: { x:
|
16602
|
+
size: { width: bounds94.width, height: bounds94.height },
|
16603
|
+
center: { x: bounds94.centerX, y: bounds94.centerY }
|
16448
16604
|
}).rotateRightFacingSymbol("up").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
|
16449
16605
|
|
16450
16606
|
// assets/generated/resonator.json
|
@@ -16793,11 +16949,11 @@ var resonator_default = {
|
|
16793
16949
|
};
|
16794
16950
|
|
16795
16951
|
// symbols/resonator_horz.ts
|
16796
|
-
var { paths:
|
16952
|
+
var { paths: paths95, texts: texts105, bounds: bounds95, refblocks: refblocks95, circles: circles89 } = resonator_default;
|
16797
16953
|
var resonator_horz_default = defineSymbol({
|
16798
16954
|
primitives: [
|
16799
|
-
...Object.values(
|
16800
|
-
...Object.values(
|
16955
|
+
...Object.values(paths95),
|
16956
|
+
...Object.values(circles89),
|
16801
16957
|
// { ...texts.top1, anchor: "middle_left" },
|
16802
16958
|
// { ...texts.bottom1, anchor: "middle_left" },
|
16803
16959
|
{
|
@@ -16816,15 +16972,15 @@ var resonator_horz_default = defineSymbol({
|
|
16816
16972
|
}
|
16817
16973
|
],
|
16818
16974
|
ports: [
|
16819
|
-
{ ...
|
16975
|
+
{ ...refblocks95.left1, labels: ["1"] },
|
16820
16976
|
// TODO add more "standard" labels
|
16821
|
-
{ ...
|
16977
|
+
{ ...refblocks95.right1, labels: ["2"] },
|
16822
16978
|
// TODO add more "standard" labels
|
16823
|
-
{ ...
|
16979
|
+
{ ...refblocks95.right2, labels: ["3"] }
|
16824
16980
|
// TODO add more "standard" labels
|
16825
16981
|
],
|
16826
|
-
size: { width:
|
16827
|
-
center: { x:
|
16982
|
+
size: { width: bounds95.width, height: bounds95.height },
|
16983
|
+
center: { x: bounds95.centerX, y: bounds95.centerY }
|
16828
16984
|
});
|
16829
16985
|
|
16830
16986
|
// symbols/resonator_vert.ts
|
@@ -17216,15 +17372,15 @@ var silicon_controlled_rectifier_default = {
|
|
17216
17372
|
};
|
17217
17373
|
|
17218
17374
|
// symbols/silicon_controlled_rectifier_horz.ts
|
17219
|
-
var { paths:
|
17375
|
+
var { paths: paths96, texts: texts106, bounds: bounds96, refblocks: refblocks96, circles: circles90 } = silicon_controlled_rectifier_default;
|
17220
17376
|
var silicon_controlled_rectifier_horz_default = modifySymbol(silicon_controlled_rectifier_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).labelPort("bottom1", ["3"]).changeTextAnchor("{REF}", "middle_bottom").build();
|
17221
17377
|
|
17222
17378
|
// symbols/silicon_controlled_rectifier_vert.ts
|
17223
17379
|
var rotatedSymbol14 = rotateSymbol(silicon_controlled_rectifier_horz_default);
|
17224
|
-
var
|
17380
|
+
var texts107 = rotatedSymbol14.primitives.filter(
|
17225
17381
|
(primitive) => primitive.type === "text"
|
17226
17382
|
);
|
17227
|
-
var ref42 =
|
17383
|
+
var ref42 = texts107.find((text) => text.text === "{REF}");
|
17228
17384
|
ref42.y = 0;
|
17229
17385
|
ref42.anchor = "middle_left";
|
17230
17386
|
var silicon_controlled_rectifier_vert_default = rotatedSymbol14;
|
@@ -20784,7 +20940,7 @@ var step_recovery_diode_default = {
|
|
20784
20940
|
};
|
20785
20941
|
|
20786
20942
|
// symbols/step_recovery_diode_horz.ts
|
20787
|
-
var { paths:
|
20943
|
+
var { paths: paths97, texts: texts108, bounds: bounds97, refblocks: refblocks97, circles: circles91 } = step_recovery_diode_default;
|
20788
20944
|
var step_recovery_diode_horz_default = modifySymbol(step_recovery_diode_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
|
20789
20945
|
|
20790
20946
|
// symbols/step_recovery_diode_vert.ts
|
@@ -20877,11 +21033,11 @@ var tachometer_default = {
|
|
20877
21033
|
};
|
20878
21034
|
|
20879
21035
|
// symbols/tachometer_horz.ts
|
20880
|
-
var { paths:
|
21036
|
+
var { paths: paths98, texts: texts109, bounds: bounds98, refblocks: refblocks98, circles: circles92 } = tachometer_default;
|
20881
21037
|
var tachometer_horz_default = defineSymbol({
|
20882
21038
|
primitives: [
|
20883
|
-
...Object.values(
|
20884
|
-
...Object.values(
|
21039
|
+
...Object.values(paths98),
|
21040
|
+
...Object.values(circles92),
|
20885
21041
|
{
|
20886
21042
|
type: "text",
|
20887
21043
|
text: "{REF}",
|
@@ -20896,16 +21052,16 @@ var tachometer_horz_default = defineSymbol({
|
|
20896
21052
|
y: 0.35,
|
20897
21053
|
anchor: "middle_bottom"
|
20898
21054
|
},
|
20899
|
-
{ ...
|
21055
|
+
{ ...texts109.left1, y: 0.01, anchor: "center", fontSize: 0.2 }
|
20900
21056
|
],
|
20901
21057
|
ports: [
|
20902
|
-
{ ...
|
21058
|
+
{ ...refblocks98.left1, labels: ["1"] },
|
20903
21059
|
// TODO add more "standard" labels
|
20904
|
-
{ ...
|
21060
|
+
{ ...refblocks98.right1, labels: ["2"] }
|
20905
21061
|
// TODO add more "standard" labels
|
20906
21062
|
],
|
20907
|
-
size: { width:
|
20908
|
-
center: { x:
|
21063
|
+
size: { width: bounds98.width, height: bounds98.height },
|
21064
|
+
center: { x: bounds98.centerX, y: bounds98.centerY }
|
20909
21065
|
});
|
20910
21066
|
|
20911
21067
|
// symbols/tachometer_vert.ts
|
@@ -21327,16 +21483,16 @@ var triac_default = {
|
|
21327
21483
|
};
|
21328
21484
|
|
21329
21485
|
// symbols/triac_horz.ts
|
21330
|
-
var { paths:
|
21486
|
+
var { paths: paths99, texts: texts110, bounds: bounds99, refblocks: refblocks99, circles: circles93 } = triac_default;
|
21331
21487
|
var triac_horz_default = modifySymbol(triac_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).labelPort("bottom1", ["3"]).changeTextAnchor("{REF}", "middle_bottom").build();
|
21332
21488
|
|
21333
21489
|
// symbols/triac_vert.ts
|
21334
21490
|
var rotatedSymbol16 = rotateSymbol(triac_horz_default);
|
21335
|
-
var
|
21491
|
+
var texts111 = rotatedSymbol16.primitives.filter(
|
21336
21492
|
(primitive) => primitive.type === "text"
|
21337
21493
|
);
|
21338
|
-
var ref60 =
|
21339
|
-
var val56 =
|
21494
|
+
var ref60 = texts111.find((text) => text.text === "{REF}");
|
21495
|
+
var val56 = texts111.find((text) => text.text === "{VAL}");
|
21340
21496
|
ref60.y = 0;
|
21341
21497
|
val56.y = 0;
|
21342
21498
|
var triac_vert_default = rotatedSymbol16;
|
@@ -21503,22 +21659,22 @@ var tunnel_diode_default = {
|
|
21503
21659
|
};
|
21504
21660
|
|
21505
21661
|
// symbols/tunnel_diode_horz.ts
|
21506
|
-
var { paths:
|
21662
|
+
var { paths: paths100, texts: texts112, bounds: bounds100, refblocks: refblocks100, circles: circles94 } = tunnel_diode_default;
|
21507
21663
|
var tunnel_diode_horz_default = defineSymbol({
|
21508
21664
|
primitives: [
|
21509
|
-
...Object.values(
|
21510
|
-
...Object.values(
|
21511
|
-
{ ...
|
21512
|
-
{ ...
|
21665
|
+
...Object.values(paths100),
|
21666
|
+
...Object.values(circles94),
|
21667
|
+
{ ...texts112.top1, anchor: "middle_bottom" },
|
21668
|
+
{ ...texts112.bottom1, anchor: "middle_top" }
|
21513
21669
|
],
|
21514
21670
|
ports: [
|
21515
|
-
{ ...
|
21671
|
+
{ ...refblocks100.left1, labels: ["1"] },
|
21516
21672
|
// TODO add more "standard" labels
|
21517
|
-
{ ...
|
21673
|
+
{ ...refblocks100.right1, labels: ["2"] }
|
21518
21674
|
// TODO add more "standard" labels
|
21519
21675
|
],
|
21520
|
-
size: { width:
|
21521
|
-
center: { x:
|
21676
|
+
size: { width: bounds100.width, height: bounds100.height },
|
21677
|
+
center: { x: bounds100.centerX, y: bounds100.centerY }
|
21522
21678
|
});
|
21523
21679
|
|
21524
21680
|
// symbols/tunnel_diode_vert.ts
|
@@ -21701,34 +21857,34 @@ var unijunction_transistor_default = {
|
|
21701
21857
|
};
|
21702
21858
|
|
21703
21859
|
// symbols/unijunction_transistor_horz.ts
|
21704
|
-
var { paths:
|
21860
|
+
var { paths: paths101, texts: texts113, bounds: bounds101, refblocks: refblocks101, circles: circles95 } = unijunction_transistor_default;
|
21705
21861
|
var unijunction_transistor_horz_default = defineSymbol({
|
21706
21862
|
primitives: [
|
21707
|
-
...Object.values(
|
21708
|
-
...Object.values(
|
21709
|
-
{ ...
|
21710
|
-
{ ...
|
21863
|
+
...Object.values(paths101),
|
21864
|
+
...Object.values(circles95),
|
21865
|
+
{ ...texts113.top1, anchor: "middle_left" },
|
21866
|
+
{ ...texts113.bottom1, anchor: "middle_right" }
|
21711
21867
|
],
|
21712
21868
|
ports: [
|
21713
|
-
{ ...
|
21869
|
+
{ ...refblocks101.top1, labels: ["1"] },
|
21714
21870
|
// TODO add more "standard" labels
|
21715
|
-
{ ...
|
21871
|
+
{ ...refblocks101.bottom1, labels: ["2"] },
|
21716
21872
|
// TODO add more "standard" labels
|
21717
|
-
{ ...
|
21873
|
+
{ ...refblocks101.left1, labels: ["3"] }
|
21718
21874
|
// TODO add more "standard" labels
|
21719
21875
|
],
|
21720
|
-
size: { width:
|
21721
|
-
center: { x:
|
21876
|
+
size: { width: bounds101.width, height: bounds101.height },
|
21877
|
+
center: { x: bounds101.centerX, y: bounds101.centerY }
|
21722
21878
|
});
|
21723
21879
|
|
21724
21880
|
// symbols/unijunction_transistor_vert.ts
|
21725
21881
|
var rotatedSymbol17 = rotateSymbol(unijunction_transistor_horz_default);
|
21726
|
-
var
|
21882
|
+
var texts114 = rotatedSymbol17.primitives.filter(
|
21727
21883
|
(primitive) => primitive.type === "text"
|
21728
21884
|
);
|
21729
|
-
var ref62 =
|
21885
|
+
var ref62 = texts114.find((text) => text.text === "{REF}");
|
21730
21886
|
ref62.y = 0.1;
|
21731
|
-
var val58 =
|
21887
|
+
var val58 = texts114.find((text) => text.text === "{VAL}");
|
21732
21888
|
val58.y = 0.1;
|
21733
21889
|
val58.x = -0.4;
|
21734
21890
|
var unijunction_transistor_vert_default = rotatedSymbol17;
|
@@ -21972,33 +22128,33 @@ var var_meter_default = {
|
|
21972
22128
|
};
|
21973
22129
|
|
21974
22130
|
// symbols/var_meter_horz.ts
|
21975
|
-
var { paths:
|
22131
|
+
var { paths: paths102, texts: texts115, bounds: bounds102, refblocks: refblocks102, circles: circles96 } = var_meter_default;
|
21976
22132
|
var var_meter_horz_default = defineSymbol({
|
21977
22133
|
primitives: [
|
21978
|
-
...Object.values(
|
21979
|
-
...Object.values(
|
22134
|
+
...Object.values(paths102),
|
22135
|
+
...Object.values(circles96),
|
21980
22136
|
{
|
21981
|
-
...
|
22137
|
+
...texts115.top1,
|
21982
22138
|
x: 0,
|
21983
22139
|
y: -0.3594553499999995,
|
21984
22140
|
anchor: "middle_top"
|
21985
22141
|
},
|
21986
22142
|
{
|
21987
|
-
...
|
22143
|
+
...texts115.bottom1,
|
21988
22144
|
x: 0,
|
21989
22145
|
y: 0.35,
|
21990
22146
|
anchor: "middle_bottom"
|
21991
22147
|
},
|
21992
|
-
{ ...
|
22148
|
+
{ ...texts115.left1, x: -0.02, y: 0.01, fontSize: 0.2, anchor: "center" }
|
21993
22149
|
],
|
21994
22150
|
ports: [
|
21995
|
-
{ ...
|
22151
|
+
{ ...refblocks102.left1, labels: ["1"] },
|
21996
22152
|
// TODO add more "standard" labels
|
21997
|
-
{ ...
|
22153
|
+
{ ...refblocks102.right1, labels: ["2"] }
|
21998
22154
|
// TODO add more "standard" labels
|
21999
22155
|
],
|
22000
|
-
size: { width:
|
22001
|
-
center: { x:
|
22156
|
+
size: { width: bounds102.width, height: bounds102.height },
|
22157
|
+
center: { x: bounds102.centerX, y: bounds102.centerY }
|
22002
22158
|
});
|
22003
22159
|
|
22004
22160
|
// symbols/var_meter_vert.ts
|
@@ -22151,22 +22307,22 @@ var varactor_diode_default = {
|
|
22151
22307
|
};
|
22152
22308
|
|
22153
22309
|
// symbols/varactor_diode_horz.ts
|
22154
|
-
var { paths:
|
22310
|
+
var { paths: paths103, texts: texts116, bounds: bounds103, refblocks: refblocks103, circles: circles97 } = varactor_diode_default;
|
22155
22311
|
var varactor_diode_horz_default = defineSymbol({
|
22156
22312
|
primitives: [
|
22157
|
-
...Object.values(
|
22158
|
-
...Object.values(
|
22159
|
-
{ ...
|
22160
|
-
{ ...
|
22313
|
+
...Object.values(paths103),
|
22314
|
+
...Object.values(circles97),
|
22315
|
+
{ ...texts116.top1, anchor: "middle_bottom" },
|
22316
|
+
{ ...texts116.bottom1, anchor: "middle_top" }
|
22161
22317
|
],
|
22162
22318
|
ports: [
|
22163
|
-
{ ...
|
22319
|
+
{ ...refblocks103.left1, labels: ["1"] },
|
22164
22320
|
// TODO add more "standard" labels
|
22165
|
-
{ ...
|
22321
|
+
{ ...refblocks103.right1, labels: ["2"] }
|
22166
22322
|
// TODO add more "standard" labels
|
22167
22323
|
],
|
22168
|
-
size: { width:
|
22169
|
-
center: { x:
|
22324
|
+
size: { width: bounds103.width, height: bounds103.height },
|
22325
|
+
center: { x: bounds103.centerX, y: bounds103.centerY }
|
22170
22326
|
});
|
22171
22327
|
|
22172
22328
|
// symbols/varactor_diode_vert.ts
|
@@ -22314,26 +22470,26 @@ var varistor_default = {
|
|
22314
22470
|
};
|
22315
22471
|
|
22316
22472
|
// symbols/varistor_horz.ts
|
22317
|
-
var { paths:
|
22473
|
+
var { paths: paths104, texts: texts117, bounds: bounds104, refblocks: refblocks104 } = varistor_default;
|
22318
22474
|
var varistor_horz_default = defineSymbol({
|
22319
22475
|
primitives: [
|
22320
|
-
...Object.values(
|
22321
|
-
{ ...
|
22322
|
-
{ ...
|
22476
|
+
...Object.values(paths104),
|
22477
|
+
{ ...texts117.top1, anchor: "middle_left" },
|
22478
|
+
{ ...texts117.bottom1, anchor: "middle_right" }
|
22323
22479
|
],
|
22324
22480
|
ports: [
|
22325
22481
|
{
|
22326
|
-
...
|
22482
|
+
...refblocks104.left1,
|
22327
22483
|
labels: ["1", "-"]
|
22328
22484
|
},
|
22329
22485
|
{
|
22330
|
-
...
|
22486
|
+
...refblocks104.right1,
|
22331
22487
|
labels: ["2", "+"]
|
22332
22488
|
}
|
22333
22489
|
],
|
22334
|
-
size: { width:
|
22490
|
+
size: { width: bounds104.width, height: bounds104.height },
|
22335
22491
|
//{ width: 1, height: 0.24 },
|
22336
|
-
center: { x:
|
22492
|
+
center: { x: bounds104.centerX, y: bounds104.centerY }
|
22337
22493
|
});
|
22338
22494
|
|
22339
22495
|
// symbols/varistor_vert.ts
|
@@ -22426,11 +22582,11 @@ var varmeter_default = {
|
|
22426
22582
|
};
|
22427
22583
|
|
22428
22584
|
// symbols/varmeter_horz.ts
|
22429
|
-
var { paths:
|
22585
|
+
var { paths: paths105, texts: texts118, bounds: bounds105, refblocks: refblocks105, circles: circles98 } = varmeter_default;
|
22430
22586
|
var varmeter_horz_default = defineSymbol({
|
22431
22587
|
primitives: [
|
22432
|
-
...Object.values(
|
22433
|
-
...Object.values(
|
22588
|
+
...Object.values(paths105),
|
22589
|
+
...Object.values(circles98),
|
22434
22590
|
{
|
22435
22591
|
type: "text",
|
22436
22592
|
text: "{REF}",
|
@@ -22445,16 +22601,16 @@ var varmeter_horz_default = defineSymbol({
|
|
22445
22601
|
y: 0.35,
|
22446
22602
|
anchor: "middle_bottom"
|
22447
22603
|
},
|
22448
|
-
{ ...
|
22604
|
+
{ ...texts118.left1, anchor: "center", y: 0.02, fontSize: 0.2 }
|
22449
22605
|
],
|
22450
22606
|
ports: [
|
22451
|
-
{ ...
|
22607
|
+
{ ...refblocks105.left1, labels: ["1"] },
|
22452
22608
|
// TODO add more "standard" labels
|
22453
|
-
{ ...
|
22609
|
+
{ ...refblocks105.right1, labels: ["2"] }
|
22454
22610
|
// TODO add more "standard" labels
|
22455
22611
|
],
|
22456
|
-
size: { width:
|
22457
|
-
center: { x:
|
22612
|
+
size: { width: bounds105.width, height: bounds105.height },
|
22613
|
+
center: { x: bounds105.centerX, y: bounds105.centerY }
|
22458
22614
|
});
|
22459
22615
|
|
22460
22616
|
// symbols/varmeter_vert.ts
|
@@ -22659,7 +22815,7 @@ var volt_meter_default = {
|
|
22659
22815
|
};
|
22660
22816
|
|
22661
22817
|
// symbols/volt_meter_horz.ts
|
22662
|
-
var { paths:
|
22818
|
+
var { paths: paths106, texts: texts119, bounds: bounds106, circles: circles99, refblocks: refblocks106 } = volt_meter_default;
|
22663
22819
|
var volt_meter_horz_default = modifySymbol(volt_meter_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
|
22664
22820
|
|
22665
22821
|
// symbols/volt_meter_vert.ts
|
@@ -22752,11 +22908,11 @@ var watt_hour_meter_default = {
|
|
22752
22908
|
};
|
22753
22909
|
|
22754
22910
|
// symbols/watt_hour_meter_horz.ts
|
22755
|
-
var { paths:
|
22911
|
+
var { paths: paths107, texts: texts120, bounds: bounds107, refblocks: refblocks107, circles: circles100 } = watt_hour_meter_default;
|
22756
22912
|
var watt_hour_meter_horz_default = defineSymbol({
|
22757
22913
|
primitives: [
|
22758
|
-
...Object.values(
|
22759
|
-
...Object.values(
|
22914
|
+
...Object.values(paths107),
|
22915
|
+
...Object.values(circles100),
|
22760
22916
|
{
|
22761
22917
|
type: "text",
|
22762
22918
|
text: "{REF}",
|
@@ -22771,16 +22927,16 @@ var watt_hour_meter_horz_default = defineSymbol({
|
|
22771
22927
|
y: 0.35,
|
22772
22928
|
anchor: "middle_bottom"
|
22773
22929
|
},
|
22774
|
-
{ ...
|
22930
|
+
{ ...texts120.left1, anchor: "center", y: 0.01, fontSize: 0.2 }
|
22775
22931
|
],
|
22776
22932
|
ports: [
|
22777
|
-
{ ...
|
22933
|
+
{ ...refblocks107.left1, labels: ["1"] },
|
22778
22934
|
// TODO add more "standard" labels
|
22779
|
-
{ ...
|
22935
|
+
{ ...refblocks107.right1, labels: ["2"] }
|
22780
22936
|
// TODO add more "standard" labels
|
22781
22937
|
],
|
22782
|
-
size: { width:
|
22783
|
-
center: { x:
|
22938
|
+
size: { width: bounds107.width, height: bounds107.height },
|
22939
|
+
center: { x: bounds107.centerX, y: bounds107.centerY }
|
22784
22940
|
});
|
22785
22941
|
|
22786
22942
|
// symbols/watt_hour_meter_vert.ts
|
@@ -22884,11 +23040,11 @@ var wattmeter_default = {
|
|
22884
23040
|
};
|
22885
23041
|
|
22886
23042
|
// symbols/wattmeter_horz.ts
|
22887
|
-
var { paths:
|
23043
|
+
var { paths: paths108, texts: texts121, bounds: bounds108, refblocks: refblocks108, circles: circles101 } = wattmeter_default;
|
22888
23044
|
var wattmeter_horz_default = defineSymbol({
|
22889
23045
|
primitives: [
|
22890
|
-
...Object.values(
|
22891
|
-
...Object.values(
|
23046
|
+
...Object.values(paths108),
|
23047
|
+
...Object.values(circles101),
|
22892
23048
|
{
|
22893
23049
|
type: "text",
|
22894
23050
|
text: "{REF}",
|
@@ -22903,16 +23059,16 @@ var wattmeter_horz_default = defineSymbol({
|
|
22903
23059
|
y: 0.35,
|
22904
23060
|
anchor: "middle_bottom"
|
22905
23061
|
},
|
22906
|
-
{ ...
|
23062
|
+
{ ...texts121.left1, anchor: "center", y: 0.01, fontSize: 0.3 }
|
22907
23063
|
],
|
22908
23064
|
ports: [
|
22909
|
-
{ ...
|
23065
|
+
{ ...refblocks108.left1, labels: ["1"] },
|
22910
23066
|
// TODO add more "standard" labels
|
22911
|
-
{ ...
|
23067
|
+
{ ...refblocks108.right1, labels: ["2"] }
|
22912
23068
|
// TODO add more "standard" labels
|
22913
23069
|
],
|
22914
|
-
size: { width:
|
22915
|
-
center: { x:
|
23070
|
+
size: { width: bounds108.width, height: bounds108.height },
|
23071
|
+
center: { x: bounds108.centerX, y: bounds108.centerY }
|
22916
23072
|
});
|
22917
23073
|
|
22918
23074
|
// symbols/wattmeter_vert.ts
|
@@ -23076,22 +23232,22 @@ var zener_diode_default = {
|
|
23076
23232
|
};
|
23077
23233
|
|
23078
23234
|
// symbols/zener_diode_horz.ts
|
23079
|
-
var { paths:
|
23235
|
+
var { paths: paths109, texts: texts122, bounds: bounds109, refblocks: refblocks109, circles: circles102 } = zener_diode_default;
|
23080
23236
|
var zener_diode_horz_default = defineSymbol({
|
23081
23237
|
primitives: [
|
23082
|
-
...Object.values(
|
23083
|
-
...Object.values(
|
23084
|
-
{ ...
|
23085
|
-
{ ...
|
23238
|
+
...Object.values(paths109),
|
23239
|
+
...Object.values(circles102),
|
23240
|
+
{ ...texts122.top1, anchor: "middle_bottom" },
|
23241
|
+
{ ...texts122.bottom1, anchor: "middle_top" }
|
23086
23242
|
],
|
23087
23243
|
ports: [
|
23088
|
-
{ ...
|
23244
|
+
{ ...refblocks109.left1, labels: ["1"] },
|
23089
23245
|
// TODO add more "standard" labels
|
23090
|
-
{ ...
|
23246
|
+
{ ...refblocks109.right1, labels: ["2"] }
|
23091
23247
|
// TODO add more "standard" labels
|
23092
23248
|
],
|
23093
|
-
size: { width:
|
23094
|
-
center: { x:
|
23249
|
+
size: { width: bounds109.width, height: bounds109.height },
|
23250
|
+
center: { x: bounds109.centerX, y: bounds109.centerY }
|
23095
23251
|
});
|
23096
23252
|
|
23097
23253
|
// symbols/zener_diode_vert.ts
|
@@ -23196,7 +23352,11 @@ var symbols_index_default = {
|
|
23196
23352
|
"ferrite_bead_left": ferrite_bead_left_default,
|
23197
23353
|
"ferrite_bead_right": ferrite_bead_right_default,
|
23198
23354
|
"ferrite_bead_up": ferrite_bead_up_default,
|
23355
|
+
"filled_diode_down": filled_diode_down_default,
|
23199
23356
|
"filled_diode_horz": filled_diode_horz_default,
|
23357
|
+
"filled_diode_left": filled_diode_left_default,
|
23358
|
+
"filled_diode_right": filled_diode_right_default,
|
23359
|
+
"filled_diode_up": filled_diode_up_default,
|
23200
23360
|
"filled_diode_vert": filled_diode_vert_default,
|
23201
23361
|
"frequency_meter_horz": frequency_meter_horz_default,
|
23202
23362
|
"frequency_meter_vert": frequency_meter_vert_default,
|