schematic-symbols 0.0.176 → 0.0.178
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 +695 -460
- 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 bounds113 = 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: bounds113.maxX - bounds113.minX,
|
303
|
+
height: bounds113.maxY - bounds113.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 bounds113 = getBoundsOfPrimitives(this.symbol.primitives);
|
352
352
|
return {
|
353
|
-
width:
|
354
|
-
height:
|
353
|
+
width: bounds113.maxX - bounds113.minX,
|
354
|
+
height: bounds113.maxY - bounds113.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 bounds113 = getBoundsOfPrimitives(symbol11.primitives);
|
1255
1255
|
size = {
|
1256
|
-
width:
|
1257
|
-
height:
|
1256
|
+
width: bounds113.maxX - bounds113.minX,
|
1257
|
+
height: bounds113.maxY - bounds113.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
|
@@ -15215,17 +15371,92 @@ var potentiometer3_default = {
|
|
15215
15371
|
circles: {}
|
15216
15372
|
};
|
15217
15373
|
|
15218
|
-
// symbols/potentiometer3_right.ts
|
15219
|
-
var potentiometer3_right_default = modifySymbol(potentiometer3_default).labelPort("left", ["1"]).labelPort("right", ["3"]).labelPort("bottom", ["2"]).changeTextAnchor("{REF}", "middle_bottom").changeTextAnchor("{VAL}", "middle_top").build();
|
15220
|
-
|
15221
15374
|
// symbols/potentiometer3_down.ts
|
15222
|
-
var
|
15375
|
+
var { paths: paths87, texts: texts96, bounds: bounds87, refblocks: refblocks87, circles: circles81 } = potentiometer3_default;
|
15376
|
+
var potentiometer3_down_default = modifySymbol({
|
15377
|
+
primitives: [
|
15378
|
+
...Object.values(paths87),
|
15379
|
+
...Object.values(circles81),
|
15380
|
+
{
|
15381
|
+
type: "text",
|
15382
|
+
text: "{REF}",
|
15383
|
+
x: -0.15,
|
15384
|
+
y: 0.2394553499999995
|
15385
|
+
},
|
15386
|
+
{
|
15387
|
+
type: "text",
|
15388
|
+
text: "{VAL}",
|
15389
|
+
x: 0.15,
|
15390
|
+
y: 0.2394553499999995
|
15391
|
+
}
|
15392
|
+
],
|
15393
|
+
ports: [
|
15394
|
+
{ ...refblocks87.left, labels: ["1"] },
|
15395
|
+
{ ...refblocks87.right, labels: ["2"] },
|
15396
|
+
{ ...refblocks87.bottom, labels: ["3"] }
|
15397
|
+
],
|
15398
|
+
size: { width: bounds87.width, height: bounds87.height },
|
15399
|
+
center: { x: bounds87.centerX, y: bounds87.centerY }
|
15400
|
+
}).rotateRightFacingSymbol("down").labelPort("left", ["1"]).labelPort("right", ["2"]).labelPort("bottom", ["3"]).changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
|
15223
15401
|
|
15224
15402
|
// symbols/potentiometer3_left.ts
|
15225
|
-
var
|
15403
|
+
var { paths: paths88, texts: texts97, bounds: bounds88, refblocks: refblocks88, circles: circles82 } = potentiometer3_default;
|
15404
|
+
var potentiometer3_left_default = modifySymbol({
|
15405
|
+
primitives: [
|
15406
|
+
...Object.values(paths88),
|
15407
|
+
...Object.values(circles82),
|
15408
|
+
{
|
15409
|
+
type: "text",
|
15410
|
+
text: "{REF}",
|
15411
|
+
x: -0.3,
|
15412
|
+
y: -0.3894553499999995
|
15413
|
+
},
|
15414
|
+
{
|
15415
|
+
type: "text",
|
15416
|
+
text: "{VAL}",
|
15417
|
+
x: -0.3,
|
15418
|
+
y: 0.3194553499999995
|
15419
|
+
}
|
15420
|
+
],
|
15421
|
+
ports: [
|
15422
|
+
{ ...refblocks88.left, labels: ["1"] },
|
15423
|
+
{ ...refblocks88.right, labels: ["2"] },
|
15424
|
+
{ ...refblocks88.bottom, labels: ["3"] }
|
15425
|
+
],
|
15426
|
+
size: { width: bounds88.width, height: bounds88.height },
|
15427
|
+
center: { x: bounds88.centerX, y: bounds88.centerY }
|
15428
|
+
}).rotateRightFacingSymbol("left").labelPort("left", ["1"]).labelPort("right", ["2"]).labelPort("bottom", ["3"]).changeTextAnchor("{REF}", "middle_bottom").changeTextAnchor("{VAL}", "middle_top").build();
|
15429
|
+
|
15430
|
+
// symbols/potentiometer3_right.ts
|
15431
|
+
var potentiometer3_right_default = modifySymbol(potentiometer3_default).labelPort("left", ["1"]).labelPort("right", ["2"]).labelPort("bottom", ["3"]).changeTextAnchor("{REF}", "middle_bottom").changeTextAnchor("{VAL}", "middle_top").build();
|
15226
15432
|
|
15227
15433
|
// symbols/potentiometer3_up.ts
|
15228
|
-
var
|
15434
|
+
var { paths: paths89, texts: texts98, bounds: bounds89, refblocks: refblocks89, circles: circles83 } = potentiometer3_default;
|
15435
|
+
var potentiometer3_up_default = modifySymbol({
|
15436
|
+
primitives: [
|
15437
|
+
...Object.values(paths89),
|
15438
|
+
...Object.values(circles83),
|
15439
|
+
{
|
15440
|
+
type: "text",
|
15441
|
+
text: "{REF}",
|
15442
|
+
x: 0.3,
|
15443
|
+
y: -0.2894553499999995
|
15444
|
+
},
|
15445
|
+
{
|
15446
|
+
type: "text",
|
15447
|
+
text: "{VAL}",
|
15448
|
+
x: -0.3,
|
15449
|
+
y: -0.2894553499999995
|
15450
|
+
}
|
15451
|
+
],
|
15452
|
+
ports: [
|
15453
|
+
{ ...refblocks89.left, labels: ["1"] },
|
15454
|
+
{ ...refblocks89.right, labels: ["2"] },
|
15455
|
+
{ ...refblocks89.bottom, labels: ["3"] }
|
15456
|
+
],
|
15457
|
+
size: { width: bounds89.width, height: bounds89.height },
|
15458
|
+
center: { x: bounds89.centerX, y: bounds89.centerY }
|
15459
|
+
}).rotateRightFacingSymbol("up").labelPort("left", ["1"]).labelPort("right", ["2"]).labelPort("bottom", ["3"]).changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
|
15229
15460
|
|
15230
15461
|
// assets/generated/power_factor_meter.json
|
15231
15462
|
var power_factor_meter_default = {
|
@@ -15314,11 +15545,11 @@ var power_factor_meter_default = {
|
|
15314
15545
|
};
|
15315
15546
|
|
15316
15547
|
// symbols/power_factor_meter_horz.ts
|
15317
|
-
var { paths:
|
15548
|
+
var { paths: paths90, texts: texts99, bounds: bounds90, refblocks: refblocks90, circles: circles84 } = power_factor_meter_default;
|
15318
15549
|
var power_factor_meter_horz_default = defineSymbol({
|
15319
15550
|
primitives: [
|
15320
|
-
...Object.values(
|
15321
|
-
...Object.values(
|
15551
|
+
...Object.values(paths90),
|
15552
|
+
...Object.values(circles84),
|
15322
15553
|
// { ...texts.top1, anchor: "middle_left" },
|
15323
15554
|
{
|
15324
15555
|
type: "text",
|
@@ -15345,21 +15576,21 @@ var power_factor_meter_horz_default = defineSymbol({
|
|
15345
15576
|
}
|
15346
15577
|
],
|
15347
15578
|
ports: [
|
15348
|
-
{ ...
|
15579
|
+
{ ...refblocks90.left1, labels: ["1"] },
|
15349
15580
|
// TODO add more "standard" labels
|
15350
|
-
{ ...
|
15581
|
+
{ ...refblocks90.right1, labels: ["2"] }
|
15351
15582
|
// TODO add more "standard" labels
|
15352
15583
|
],
|
15353
|
-
size: { width:
|
15354
|
-
center: { x:
|
15584
|
+
size: { width: bounds90.width, height: bounds90.height },
|
15585
|
+
center: { x: bounds90.centerX, y: bounds90.centerY }
|
15355
15586
|
});
|
15356
15587
|
|
15357
15588
|
// symbols/power_factor_meter_vert.ts
|
15358
15589
|
var rotatedSymbol13 = rotateSymbol(power_factor_meter_horz_default);
|
15359
|
-
var
|
15360
|
-
var ref37 =
|
15361
|
-
var val36 =
|
15362
|
-
var text_cos =
|
15590
|
+
var texts100 = rotatedSymbol13.primitives.filter((p) => p.type === "text");
|
15591
|
+
var ref37 = texts100.find((t) => t.text === "{REF}");
|
15592
|
+
var val36 = texts100.find((t) => t.text === "{VAL}");
|
15593
|
+
var text_cos = texts100.find((t) => t.text === "COS \u03C6");
|
15363
15594
|
ref37.x = 0.35;
|
15364
15595
|
ref37.y = 0;
|
15365
15596
|
ref37.anchor = "middle_left";
|
@@ -15490,22 +15721,22 @@ var push_button_normally_closed_momentary_default = {
|
|
15490
15721
|
};
|
15491
15722
|
|
15492
15723
|
// symbols/push_button_normally_closed_momentary_horz.ts
|
15493
|
-
var { paths:
|
15724
|
+
var { paths: paths91, texts: texts101, bounds: bounds91, refblocks: refblocks91, circles: circles85 } = push_button_normally_closed_momentary_default;
|
15494
15725
|
var push_button_normally_closed_momentary_horz_default = defineSymbol({
|
15495
15726
|
primitives: [
|
15496
|
-
...Object.values(
|
15497
|
-
...Object.values(
|
15498
|
-
{ ...
|
15499
|
-
{ ...
|
15727
|
+
...Object.values(paths91),
|
15728
|
+
...Object.values(circles85),
|
15729
|
+
{ ...texts101.top1, anchor: "middle_left" },
|
15730
|
+
{ ...texts101.bottom1, anchor: "middle_left" }
|
15500
15731
|
],
|
15501
15732
|
ports: [
|
15502
|
-
{ ...
|
15733
|
+
{ ...refblocks91.left1, labels: ["1"] },
|
15503
15734
|
// TODO add more "standard" labels
|
15504
|
-
{ ...
|
15735
|
+
{ ...refblocks91.right1, labels: ["2"] }
|
15505
15736
|
// TODO add more "standard" labels
|
15506
15737
|
],
|
15507
|
-
size: { width:
|
15508
|
-
center: { x:
|
15738
|
+
size: { width: bounds91.width, height: bounds91.height },
|
15739
|
+
center: { x: bounds91.centerX, y: bounds91.centerY }
|
15509
15740
|
});
|
15510
15741
|
|
15511
15742
|
// symbols/push_button_normally_closed_momentary_vert.ts
|
@@ -15660,22 +15891,22 @@ var push_button_normally_open_momentary_default = {
|
|
15660
15891
|
};
|
15661
15892
|
|
15662
15893
|
// symbols/push_button_normally_open_momentary_horz.ts
|
15663
|
-
var { paths:
|
15894
|
+
var { paths: paths92, texts: texts102, bounds: bounds92, refblocks: refblocks92, circles: circles86 } = push_button_normally_open_momentary_default;
|
15664
15895
|
var push_button_normally_open_momentary_horz_default = defineSymbol({
|
15665
15896
|
primitives: [
|
15666
|
-
...Object.values(
|
15667
|
-
...Object.values(
|
15668
|
-
{ ...
|
15669
|
-
{ ...
|
15897
|
+
...Object.values(paths92),
|
15898
|
+
...Object.values(circles86),
|
15899
|
+
{ ...texts102.top1, anchor: "middle_left" },
|
15900
|
+
{ ...texts102.bottom1, anchor: "middle_left" }
|
15670
15901
|
],
|
15671
15902
|
ports: [
|
15672
|
-
{ ...
|
15903
|
+
{ ...refblocks92.left1, labels: ["1"] },
|
15673
15904
|
// TODO add more "standard" labels
|
15674
|
-
{ ...
|
15905
|
+
{ ...refblocks92.right1, labels: ["2"] }
|
15675
15906
|
// TODO add more "standard" labels
|
15676
15907
|
],
|
15677
|
-
size: { width:
|
15678
|
-
center: { x:
|
15908
|
+
size: { width: bounds92.width, height: bounds92.height },
|
15909
|
+
center: { x: bounds92.centerX, y: bounds92.centerY }
|
15679
15910
|
});
|
15680
15911
|
|
15681
15912
|
// symbols/push_button_normally_open_momentary_vert.ts
|
@@ -16091,26 +16322,26 @@ var rectifier_diode_default = {
|
|
16091
16322
|
};
|
16092
16323
|
|
16093
16324
|
// symbols/rectifier_diode_horz.ts
|
16094
|
-
var { paths:
|
16325
|
+
var { paths: paths93, texts: texts103, bounds: bounds93, refblocks: refblocks93, circles: circles87 } = rectifier_diode_default;
|
16095
16326
|
var rectifier_diode_horz_default = defineSymbol({
|
16096
16327
|
primitives: [
|
16097
|
-
...Object.values(
|
16098
|
-
...Object.values(
|
16099
|
-
{ ...
|
16100
|
-
{ ...
|
16328
|
+
...Object.values(paths93),
|
16329
|
+
...Object.values(circles87),
|
16330
|
+
{ ...texts103.top1, anchor: "middle_right" },
|
16331
|
+
{ ...texts103.bottom1, anchor: "middle_right" }
|
16101
16332
|
],
|
16102
16333
|
ports: [
|
16103
|
-
{ ...
|
16334
|
+
{ ...refblocks93.top1, labels: ["1"] },
|
16104
16335
|
// TODO add more "standard" labels
|
16105
|
-
{ ...
|
16336
|
+
{ ...refblocks93.bottom1, labels: ["2"] },
|
16106
16337
|
// TODO add more "standard" labels
|
16107
|
-
{ ...
|
16338
|
+
{ ...refblocks93.left1, labels: ["3"] },
|
16108
16339
|
// TODO add more "standard" labels
|
16109
|
-
{ ...
|
16340
|
+
{ ...refblocks93.right1, labels: ["4"] }
|
16110
16341
|
// TODO add more "standard" labels
|
16111
16342
|
],
|
16112
|
-
size: { width:
|
16113
|
-
center: { x:
|
16343
|
+
size: { width: bounds93.width, height: bounds93.height },
|
16344
|
+
center: { x: bounds93.centerX, y: bounds93.centerY }
|
16114
16345
|
});
|
16115
16346
|
|
16116
16347
|
// symbols/rectifier_diode_vert.ts
|
@@ -16332,11 +16563,11 @@ var resistor_default = {
|
|
16332
16563
|
};
|
16333
16564
|
|
16334
16565
|
// symbols/resistor_down.ts
|
16335
|
-
var { paths:
|
16566
|
+
var { paths: paths94, texts: texts104, bounds: bounds94, refblocks: refblocks94, circles: circles88 } = resistor_default;
|
16336
16567
|
var resistor_down_default = modifySymbol({
|
16337
16568
|
primitives: [
|
16338
|
-
...Object.values(
|
16339
|
-
...Object.values(
|
16569
|
+
...Object.values(paths94),
|
16570
|
+
...Object.values(circles88),
|
16340
16571
|
{
|
16341
16572
|
type: "text",
|
16342
16573
|
text: "{REF}",
|
@@ -16351,21 +16582,21 @@ var resistor_down_default = modifySymbol({
|
|
16351
16582
|
}
|
16352
16583
|
],
|
16353
16584
|
ports: [
|
16354
|
-
{ ...
|
16585
|
+
{ ...refblocks94.left1, labels: ["1"] },
|
16355
16586
|
// TODO add more "standard" labels
|
16356
|
-
{ ...
|
16587
|
+
{ ...refblocks94.right1, labels: ["2"] }
|
16357
16588
|
// TODO add more "standard" labels
|
16358
16589
|
],
|
16359
|
-
size: { width:
|
16360
|
-
center: { x:
|
16590
|
+
size: { width: bounds94.width, height: bounds94.height },
|
16591
|
+
center: { x: bounds94.centerX, y: bounds94.centerY }
|
16361
16592
|
}).rotateRightFacingSymbol("down").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
|
16362
16593
|
|
16363
16594
|
// symbols/resistor_left.ts
|
16364
|
-
var { paths:
|
16595
|
+
var { paths: paths95, texts: texts105, bounds: bounds95, refblocks: refblocks95, circles: circles89 } = resistor_default;
|
16365
16596
|
var resistor_left_default = modifySymbol({
|
16366
16597
|
primitives: [
|
16367
|
-
...Object.values(
|
16368
|
-
...Object.values(
|
16598
|
+
...Object.values(paths95),
|
16599
|
+
...Object.values(circles89),
|
16369
16600
|
{
|
16370
16601
|
type: "text",
|
16371
16602
|
text: "{REF}",
|
@@ -16380,21 +16611,21 @@ var resistor_left_default = modifySymbol({
|
|
16380
16611
|
}
|
16381
16612
|
],
|
16382
16613
|
ports: [
|
16383
|
-
{ ...
|
16614
|
+
{ ...refblocks95.left1, labels: ["1"] },
|
16384
16615
|
// TODO add more "standard" labels
|
16385
|
-
{ ...
|
16616
|
+
{ ...refblocks95.right1, labels: ["2"] }
|
16386
16617
|
// TODO add more "standard" labels
|
16387
16618
|
],
|
16388
|
-
size: { width:
|
16389
|
-
center: { x:
|
16619
|
+
size: { width: bounds95.width, height: bounds95.height },
|
16620
|
+
center: { x: bounds95.centerX, y: bounds95.centerY }
|
16390
16621
|
}).rotateRightFacingSymbol("left").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_bottom").changeTextAnchor("{VAL}", "middle_top").build();
|
16391
16622
|
|
16392
16623
|
// symbols/resistor_right.ts
|
16393
|
-
var { paths:
|
16624
|
+
var { paths: paths96, texts: texts106, bounds: bounds96, refblocks: refblocks96, circles: circles90 } = resistor_default;
|
16394
16625
|
var resistor_right_default = modifySymbol({
|
16395
16626
|
primitives: [
|
16396
|
-
...Object.values(
|
16397
|
-
...Object.values(
|
16627
|
+
...Object.values(paths96),
|
16628
|
+
...Object.values(circles90),
|
16398
16629
|
{
|
16399
16630
|
type: "text",
|
16400
16631
|
text: "{REF}",
|
@@ -16409,21 +16640,21 @@ var resistor_right_default = modifySymbol({
|
|
16409
16640
|
}
|
16410
16641
|
],
|
16411
16642
|
ports: [
|
16412
|
-
{ ...
|
16643
|
+
{ ...refblocks96.left1, labels: ["1"] },
|
16413
16644
|
// TODO add more "standard" labels
|
16414
|
-
{ ...
|
16645
|
+
{ ...refblocks96.right1, labels: ["2"] }
|
16415
16646
|
// TODO add more "standard" labels
|
16416
16647
|
],
|
16417
|
-
size: { width:
|
16418
|
-
center: { x:
|
16648
|
+
size: { width: bounds96.width, height: bounds96.height },
|
16649
|
+
center: { x: bounds96.centerX, y: bounds96.centerY }
|
16419
16650
|
}).rotateRightFacingSymbol("right").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_bottom").changeTextAnchor("{VAL}", "middle_top").build();
|
16420
16651
|
|
16421
16652
|
// symbols/resistor_up.ts
|
16422
|
-
var { paths:
|
16653
|
+
var { paths: paths97, texts: texts107, bounds: bounds97, refblocks: refblocks97, circles: circles91 } = resistor_default;
|
16423
16654
|
var resistor_up_default = modifySymbol({
|
16424
16655
|
primitives: [
|
16425
|
-
...Object.values(
|
16426
|
-
...Object.values(
|
16656
|
+
...Object.values(paths97),
|
16657
|
+
...Object.values(circles91),
|
16427
16658
|
{
|
16428
16659
|
type: "text",
|
16429
16660
|
text: "{REF}",
|
@@ -16438,13 +16669,13 @@ var resistor_up_default = modifySymbol({
|
|
16438
16669
|
}
|
16439
16670
|
],
|
16440
16671
|
ports: [
|
16441
|
-
{ ...
|
16672
|
+
{ ...refblocks97.left1, labels: ["1"] },
|
16442
16673
|
// TODO add more "standard" labels
|
16443
|
-
{ ...
|
16674
|
+
{ ...refblocks97.right1, labels: ["2"] }
|
16444
16675
|
// TODO add more "standard" labels
|
16445
16676
|
],
|
16446
|
-
size: { width:
|
16447
|
-
center: { x:
|
16677
|
+
size: { width: bounds97.width, height: bounds97.height },
|
16678
|
+
center: { x: bounds97.centerX, y: bounds97.centerY }
|
16448
16679
|
}).rotateRightFacingSymbol("up").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
|
16449
16680
|
|
16450
16681
|
// assets/generated/resonator.json
|
@@ -16793,11 +17024,11 @@ var resonator_default = {
|
|
16793
17024
|
};
|
16794
17025
|
|
16795
17026
|
// symbols/resonator_horz.ts
|
16796
|
-
var { paths:
|
17027
|
+
var { paths: paths98, texts: texts108, bounds: bounds98, refblocks: refblocks98, circles: circles92 } = resonator_default;
|
16797
17028
|
var resonator_horz_default = defineSymbol({
|
16798
17029
|
primitives: [
|
16799
|
-
...Object.values(
|
16800
|
-
...Object.values(
|
17030
|
+
...Object.values(paths98),
|
17031
|
+
...Object.values(circles92),
|
16801
17032
|
// { ...texts.top1, anchor: "middle_left" },
|
16802
17033
|
// { ...texts.bottom1, anchor: "middle_left" },
|
16803
17034
|
{
|
@@ -16816,15 +17047,15 @@ var resonator_horz_default = defineSymbol({
|
|
16816
17047
|
}
|
16817
17048
|
],
|
16818
17049
|
ports: [
|
16819
|
-
{ ...
|
17050
|
+
{ ...refblocks98.left1, labels: ["1"] },
|
16820
17051
|
// TODO add more "standard" labels
|
16821
|
-
{ ...
|
17052
|
+
{ ...refblocks98.right1, labels: ["2"] },
|
16822
17053
|
// TODO add more "standard" labels
|
16823
|
-
{ ...
|
17054
|
+
{ ...refblocks98.right2, labels: ["3"] }
|
16824
17055
|
// TODO add more "standard" labels
|
16825
17056
|
],
|
16826
|
-
size: { width:
|
16827
|
-
center: { x:
|
17057
|
+
size: { width: bounds98.width, height: bounds98.height },
|
17058
|
+
center: { x: bounds98.centerX, y: bounds98.centerY }
|
16828
17059
|
});
|
16829
17060
|
|
16830
17061
|
// symbols/resonator_vert.ts
|
@@ -17216,15 +17447,15 @@ var silicon_controlled_rectifier_default = {
|
|
17216
17447
|
};
|
17217
17448
|
|
17218
17449
|
// symbols/silicon_controlled_rectifier_horz.ts
|
17219
|
-
var { paths:
|
17450
|
+
var { paths: paths99, texts: texts109, bounds: bounds99, refblocks: refblocks99, circles: circles93 } = silicon_controlled_rectifier_default;
|
17220
17451
|
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
17452
|
|
17222
17453
|
// symbols/silicon_controlled_rectifier_vert.ts
|
17223
17454
|
var rotatedSymbol14 = rotateSymbol(silicon_controlled_rectifier_horz_default);
|
17224
|
-
var
|
17455
|
+
var texts110 = rotatedSymbol14.primitives.filter(
|
17225
17456
|
(primitive) => primitive.type === "text"
|
17226
17457
|
);
|
17227
|
-
var ref42 =
|
17458
|
+
var ref42 = texts110.find((text) => text.text === "{REF}");
|
17228
17459
|
ref42.y = 0;
|
17229
17460
|
ref42.anchor = "middle_left";
|
17230
17461
|
var silicon_controlled_rectifier_vert_default = rotatedSymbol14;
|
@@ -20784,7 +21015,7 @@ var step_recovery_diode_default = {
|
|
20784
21015
|
};
|
20785
21016
|
|
20786
21017
|
// symbols/step_recovery_diode_horz.ts
|
20787
|
-
var { paths:
|
21018
|
+
var { paths: paths100, texts: texts111, bounds: bounds100, refblocks: refblocks100, circles: circles94 } = step_recovery_diode_default;
|
20788
21019
|
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
21020
|
|
20790
21021
|
// symbols/step_recovery_diode_vert.ts
|
@@ -20877,11 +21108,11 @@ var tachometer_default = {
|
|
20877
21108
|
};
|
20878
21109
|
|
20879
21110
|
// symbols/tachometer_horz.ts
|
20880
|
-
var { paths:
|
21111
|
+
var { paths: paths101, texts: texts112, bounds: bounds101, refblocks: refblocks101, circles: circles95 } = tachometer_default;
|
20881
21112
|
var tachometer_horz_default = defineSymbol({
|
20882
21113
|
primitives: [
|
20883
|
-
...Object.values(
|
20884
|
-
...Object.values(
|
21114
|
+
...Object.values(paths101),
|
21115
|
+
...Object.values(circles95),
|
20885
21116
|
{
|
20886
21117
|
type: "text",
|
20887
21118
|
text: "{REF}",
|
@@ -20896,16 +21127,16 @@ var tachometer_horz_default = defineSymbol({
|
|
20896
21127
|
y: 0.35,
|
20897
21128
|
anchor: "middle_bottom"
|
20898
21129
|
},
|
20899
|
-
{ ...
|
21130
|
+
{ ...texts112.left1, y: 0.01, anchor: "center", fontSize: 0.2 }
|
20900
21131
|
],
|
20901
21132
|
ports: [
|
20902
|
-
{ ...
|
21133
|
+
{ ...refblocks101.left1, labels: ["1"] },
|
20903
21134
|
// TODO add more "standard" labels
|
20904
|
-
{ ...
|
21135
|
+
{ ...refblocks101.right1, labels: ["2"] }
|
20905
21136
|
// TODO add more "standard" labels
|
20906
21137
|
],
|
20907
|
-
size: { width:
|
20908
|
-
center: { x:
|
21138
|
+
size: { width: bounds101.width, height: bounds101.height },
|
21139
|
+
center: { x: bounds101.centerX, y: bounds101.centerY }
|
20909
21140
|
});
|
20910
21141
|
|
20911
21142
|
// symbols/tachometer_vert.ts
|
@@ -21327,16 +21558,16 @@ var triac_default = {
|
|
21327
21558
|
};
|
21328
21559
|
|
21329
21560
|
// symbols/triac_horz.ts
|
21330
|
-
var { paths:
|
21561
|
+
var { paths: paths102, texts: texts113, bounds: bounds102, refblocks: refblocks102, circles: circles96 } = triac_default;
|
21331
21562
|
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
21563
|
|
21333
21564
|
// symbols/triac_vert.ts
|
21334
21565
|
var rotatedSymbol16 = rotateSymbol(triac_horz_default);
|
21335
|
-
var
|
21566
|
+
var texts114 = rotatedSymbol16.primitives.filter(
|
21336
21567
|
(primitive) => primitive.type === "text"
|
21337
21568
|
);
|
21338
|
-
var ref60 =
|
21339
|
-
var val56 =
|
21569
|
+
var ref60 = texts114.find((text) => text.text === "{REF}");
|
21570
|
+
var val56 = texts114.find((text) => text.text === "{VAL}");
|
21340
21571
|
ref60.y = 0;
|
21341
21572
|
val56.y = 0;
|
21342
21573
|
var triac_vert_default = rotatedSymbol16;
|
@@ -21503,22 +21734,22 @@ var tunnel_diode_default = {
|
|
21503
21734
|
};
|
21504
21735
|
|
21505
21736
|
// symbols/tunnel_diode_horz.ts
|
21506
|
-
var { paths:
|
21737
|
+
var { paths: paths103, texts: texts115, bounds: bounds103, refblocks: refblocks103, circles: circles97 } = tunnel_diode_default;
|
21507
21738
|
var tunnel_diode_horz_default = defineSymbol({
|
21508
21739
|
primitives: [
|
21509
|
-
...Object.values(
|
21510
|
-
...Object.values(
|
21511
|
-
{ ...
|
21512
|
-
{ ...
|
21740
|
+
...Object.values(paths103),
|
21741
|
+
...Object.values(circles97),
|
21742
|
+
{ ...texts115.top1, anchor: "middle_bottom" },
|
21743
|
+
{ ...texts115.bottom1, anchor: "middle_top" }
|
21513
21744
|
],
|
21514
21745
|
ports: [
|
21515
|
-
{ ...
|
21746
|
+
{ ...refblocks103.left1, labels: ["1"] },
|
21516
21747
|
// TODO add more "standard" labels
|
21517
|
-
{ ...
|
21748
|
+
{ ...refblocks103.right1, labels: ["2"] }
|
21518
21749
|
// TODO add more "standard" labels
|
21519
21750
|
],
|
21520
|
-
size: { width:
|
21521
|
-
center: { x:
|
21751
|
+
size: { width: bounds103.width, height: bounds103.height },
|
21752
|
+
center: { x: bounds103.centerX, y: bounds103.centerY }
|
21522
21753
|
});
|
21523
21754
|
|
21524
21755
|
// symbols/tunnel_diode_vert.ts
|
@@ -21701,34 +21932,34 @@ var unijunction_transistor_default = {
|
|
21701
21932
|
};
|
21702
21933
|
|
21703
21934
|
// symbols/unijunction_transistor_horz.ts
|
21704
|
-
var { paths:
|
21935
|
+
var { paths: paths104, texts: texts116, bounds: bounds104, refblocks: refblocks104, circles: circles98 } = unijunction_transistor_default;
|
21705
21936
|
var unijunction_transistor_horz_default = defineSymbol({
|
21706
21937
|
primitives: [
|
21707
|
-
...Object.values(
|
21708
|
-
...Object.values(
|
21709
|
-
{ ...
|
21710
|
-
{ ...
|
21938
|
+
...Object.values(paths104),
|
21939
|
+
...Object.values(circles98),
|
21940
|
+
{ ...texts116.top1, anchor: "middle_left" },
|
21941
|
+
{ ...texts116.bottom1, anchor: "middle_right" }
|
21711
21942
|
],
|
21712
21943
|
ports: [
|
21713
|
-
{ ...
|
21944
|
+
{ ...refblocks104.top1, labels: ["1"] },
|
21714
21945
|
// TODO add more "standard" labels
|
21715
|
-
{ ...
|
21946
|
+
{ ...refblocks104.bottom1, labels: ["2"] },
|
21716
21947
|
// TODO add more "standard" labels
|
21717
|
-
{ ...
|
21948
|
+
{ ...refblocks104.left1, labels: ["3"] }
|
21718
21949
|
// TODO add more "standard" labels
|
21719
21950
|
],
|
21720
|
-
size: { width:
|
21721
|
-
center: { x:
|
21951
|
+
size: { width: bounds104.width, height: bounds104.height },
|
21952
|
+
center: { x: bounds104.centerX, y: bounds104.centerY }
|
21722
21953
|
});
|
21723
21954
|
|
21724
21955
|
// symbols/unijunction_transistor_vert.ts
|
21725
21956
|
var rotatedSymbol17 = rotateSymbol(unijunction_transistor_horz_default);
|
21726
|
-
var
|
21957
|
+
var texts117 = rotatedSymbol17.primitives.filter(
|
21727
21958
|
(primitive) => primitive.type === "text"
|
21728
21959
|
);
|
21729
|
-
var ref62 =
|
21960
|
+
var ref62 = texts117.find((text) => text.text === "{REF}");
|
21730
21961
|
ref62.y = 0.1;
|
21731
|
-
var val58 =
|
21962
|
+
var val58 = texts117.find((text) => text.text === "{VAL}");
|
21732
21963
|
val58.y = 0.1;
|
21733
21964
|
val58.x = -0.4;
|
21734
21965
|
var unijunction_transistor_vert_default = rotatedSymbol17;
|
@@ -21972,33 +22203,33 @@ var var_meter_default = {
|
|
21972
22203
|
};
|
21973
22204
|
|
21974
22205
|
// symbols/var_meter_horz.ts
|
21975
|
-
var { paths:
|
22206
|
+
var { paths: paths105, texts: texts118, bounds: bounds105, refblocks: refblocks105, circles: circles99 } = var_meter_default;
|
21976
22207
|
var var_meter_horz_default = defineSymbol({
|
21977
22208
|
primitives: [
|
21978
|
-
...Object.values(
|
21979
|
-
...Object.values(
|
22209
|
+
...Object.values(paths105),
|
22210
|
+
...Object.values(circles99),
|
21980
22211
|
{
|
21981
|
-
...
|
22212
|
+
...texts118.top1,
|
21982
22213
|
x: 0,
|
21983
22214
|
y: -0.3594553499999995,
|
21984
22215
|
anchor: "middle_top"
|
21985
22216
|
},
|
21986
22217
|
{
|
21987
|
-
...
|
22218
|
+
...texts118.bottom1,
|
21988
22219
|
x: 0,
|
21989
22220
|
y: 0.35,
|
21990
22221
|
anchor: "middle_bottom"
|
21991
22222
|
},
|
21992
|
-
{ ...
|
22223
|
+
{ ...texts118.left1, x: -0.02, y: 0.01, fontSize: 0.2, anchor: "center" }
|
21993
22224
|
],
|
21994
22225
|
ports: [
|
21995
|
-
{ ...
|
22226
|
+
{ ...refblocks105.left1, labels: ["1"] },
|
21996
22227
|
// TODO add more "standard" labels
|
21997
|
-
{ ...
|
22228
|
+
{ ...refblocks105.right1, labels: ["2"] }
|
21998
22229
|
// TODO add more "standard" labels
|
21999
22230
|
],
|
22000
|
-
size: { width:
|
22001
|
-
center: { x:
|
22231
|
+
size: { width: bounds105.width, height: bounds105.height },
|
22232
|
+
center: { x: bounds105.centerX, y: bounds105.centerY }
|
22002
22233
|
});
|
22003
22234
|
|
22004
22235
|
// symbols/var_meter_vert.ts
|
@@ -22151,22 +22382,22 @@ var varactor_diode_default = {
|
|
22151
22382
|
};
|
22152
22383
|
|
22153
22384
|
// symbols/varactor_diode_horz.ts
|
22154
|
-
var { paths:
|
22385
|
+
var { paths: paths106, texts: texts119, bounds: bounds106, refblocks: refblocks106, circles: circles100 } = varactor_diode_default;
|
22155
22386
|
var varactor_diode_horz_default = defineSymbol({
|
22156
22387
|
primitives: [
|
22157
|
-
...Object.values(
|
22158
|
-
...Object.values(
|
22159
|
-
{ ...
|
22160
|
-
{ ...
|
22388
|
+
...Object.values(paths106),
|
22389
|
+
...Object.values(circles100),
|
22390
|
+
{ ...texts119.top1, anchor: "middle_bottom" },
|
22391
|
+
{ ...texts119.bottom1, anchor: "middle_top" }
|
22161
22392
|
],
|
22162
22393
|
ports: [
|
22163
|
-
{ ...
|
22394
|
+
{ ...refblocks106.left1, labels: ["1"] },
|
22164
22395
|
// TODO add more "standard" labels
|
22165
|
-
{ ...
|
22396
|
+
{ ...refblocks106.right1, labels: ["2"] }
|
22166
22397
|
// TODO add more "standard" labels
|
22167
22398
|
],
|
22168
|
-
size: { width:
|
22169
|
-
center: { x:
|
22399
|
+
size: { width: bounds106.width, height: bounds106.height },
|
22400
|
+
center: { x: bounds106.centerX, y: bounds106.centerY }
|
22170
22401
|
});
|
22171
22402
|
|
22172
22403
|
// symbols/varactor_diode_vert.ts
|
@@ -22314,26 +22545,26 @@ var varistor_default = {
|
|
22314
22545
|
};
|
22315
22546
|
|
22316
22547
|
// symbols/varistor_horz.ts
|
22317
|
-
var { paths:
|
22548
|
+
var { paths: paths107, texts: texts120, bounds: bounds107, refblocks: refblocks107 } = varistor_default;
|
22318
22549
|
var varistor_horz_default = defineSymbol({
|
22319
22550
|
primitives: [
|
22320
|
-
...Object.values(
|
22321
|
-
{ ...
|
22322
|
-
{ ...
|
22551
|
+
...Object.values(paths107),
|
22552
|
+
{ ...texts120.top1, anchor: "middle_left" },
|
22553
|
+
{ ...texts120.bottom1, anchor: "middle_right" }
|
22323
22554
|
],
|
22324
22555
|
ports: [
|
22325
22556
|
{
|
22326
|
-
...
|
22557
|
+
...refblocks107.left1,
|
22327
22558
|
labels: ["1", "-"]
|
22328
22559
|
},
|
22329
22560
|
{
|
22330
|
-
...
|
22561
|
+
...refblocks107.right1,
|
22331
22562
|
labels: ["2", "+"]
|
22332
22563
|
}
|
22333
22564
|
],
|
22334
|
-
size: { width:
|
22565
|
+
size: { width: bounds107.width, height: bounds107.height },
|
22335
22566
|
//{ width: 1, height: 0.24 },
|
22336
|
-
center: { x:
|
22567
|
+
center: { x: bounds107.centerX, y: bounds107.centerY }
|
22337
22568
|
});
|
22338
22569
|
|
22339
22570
|
// symbols/varistor_vert.ts
|
@@ -22426,11 +22657,11 @@ var varmeter_default = {
|
|
22426
22657
|
};
|
22427
22658
|
|
22428
22659
|
// symbols/varmeter_horz.ts
|
22429
|
-
var { paths:
|
22660
|
+
var { paths: paths108, texts: texts121, bounds: bounds108, refblocks: refblocks108, circles: circles101 } = varmeter_default;
|
22430
22661
|
var varmeter_horz_default = defineSymbol({
|
22431
22662
|
primitives: [
|
22432
|
-
...Object.values(
|
22433
|
-
...Object.values(
|
22663
|
+
...Object.values(paths108),
|
22664
|
+
...Object.values(circles101),
|
22434
22665
|
{
|
22435
22666
|
type: "text",
|
22436
22667
|
text: "{REF}",
|
@@ -22445,16 +22676,16 @@ var varmeter_horz_default = defineSymbol({
|
|
22445
22676
|
y: 0.35,
|
22446
22677
|
anchor: "middle_bottom"
|
22447
22678
|
},
|
22448
|
-
{ ...
|
22679
|
+
{ ...texts121.left1, anchor: "center", y: 0.02, fontSize: 0.2 }
|
22449
22680
|
],
|
22450
22681
|
ports: [
|
22451
|
-
{ ...
|
22682
|
+
{ ...refblocks108.left1, labels: ["1"] },
|
22452
22683
|
// TODO add more "standard" labels
|
22453
|
-
{ ...
|
22684
|
+
{ ...refblocks108.right1, labels: ["2"] }
|
22454
22685
|
// TODO add more "standard" labels
|
22455
22686
|
],
|
22456
|
-
size: { width:
|
22457
|
-
center: { x:
|
22687
|
+
size: { width: bounds108.width, height: bounds108.height },
|
22688
|
+
center: { x: bounds108.centerX, y: bounds108.centerY }
|
22458
22689
|
});
|
22459
22690
|
|
22460
22691
|
// symbols/varmeter_vert.ts
|
@@ -22659,7 +22890,7 @@ var volt_meter_default = {
|
|
22659
22890
|
};
|
22660
22891
|
|
22661
22892
|
// symbols/volt_meter_horz.ts
|
22662
|
-
var { paths:
|
22893
|
+
var { paths: paths109, texts: texts122, bounds: bounds109, circles: circles102, refblocks: refblocks109 } = volt_meter_default;
|
22663
22894
|
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
22895
|
|
22665
22896
|
// symbols/volt_meter_vert.ts
|
@@ -22752,11 +22983,11 @@ var watt_hour_meter_default = {
|
|
22752
22983
|
};
|
22753
22984
|
|
22754
22985
|
// symbols/watt_hour_meter_horz.ts
|
22755
|
-
var { paths:
|
22986
|
+
var { paths: paths110, texts: texts123, bounds: bounds110, refblocks: refblocks110, circles: circles103 } = watt_hour_meter_default;
|
22756
22987
|
var watt_hour_meter_horz_default = defineSymbol({
|
22757
22988
|
primitives: [
|
22758
|
-
...Object.values(
|
22759
|
-
...Object.values(
|
22989
|
+
...Object.values(paths110),
|
22990
|
+
...Object.values(circles103),
|
22760
22991
|
{
|
22761
22992
|
type: "text",
|
22762
22993
|
text: "{REF}",
|
@@ -22771,16 +23002,16 @@ var watt_hour_meter_horz_default = defineSymbol({
|
|
22771
23002
|
y: 0.35,
|
22772
23003
|
anchor: "middle_bottom"
|
22773
23004
|
},
|
22774
|
-
{ ...
|
23005
|
+
{ ...texts123.left1, anchor: "center", y: 0.01, fontSize: 0.2 }
|
22775
23006
|
],
|
22776
23007
|
ports: [
|
22777
|
-
{ ...
|
23008
|
+
{ ...refblocks110.left1, labels: ["1"] },
|
22778
23009
|
// TODO add more "standard" labels
|
22779
|
-
{ ...
|
23010
|
+
{ ...refblocks110.right1, labels: ["2"] }
|
22780
23011
|
// TODO add more "standard" labels
|
22781
23012
|
],
|
22782
|
-
size: { width:
|
22783
|
-
center: { x:
|
23013
|
+
size: { width: bounds110.width, height: bounds110.height },
|
23014
|
+
center: { x: bounds110.centerX, y: bounds110.centerY }
|
22784
23015
|
});
|
22785
23016
|
|
22786
23017
|
// symbols/watt_hour_meter_vert.ts
|
@@ -22884,11 +23115,11 @@ var wattmeter_default = {
|
|
22884
23115
|
};
|
22885
23116
|
|
22886
23117
|
// symbols/wattmeter_horz.ts
|
22887
|
-
var { paths:
|
23118
|
+
var { paths: paths111, texts: texts124, bounds: bounds111, refblocks: refblocks111, circles: circles104 } = wattmeter_default;
|
22888
23119
|
var wattmeter_horz_default = defineSymbol({
|
22889
23120
|
primitives: [
|
22890
|
-
...Object.values(
|
22891
|
-
...Object.values(
|
23121
|
+
...Object.values(paths111),
|
23122
|
+
...Object.values(circles104),
|
22892
23123
|
{
|
22893
23124
|
type: "text",
|
22894
23125
|
text: "{REF}",
|
@@ -22903,16 +23134,16 @@ var wattmeter_horz_default = defineSymbol({
|
|
22903
23134
|
y: 0.35,
|
22904
23135
|
anchor: "middle_bottom"
|
22905
23136
|
},
|
22906
|
-
{ ...
|
23137
|
+
{ ...texts124.left1, anchor: "center", y: 0.01, fontSize: 0.3 }
|
22907
23138
|
],
|
22908
23139
|
ports: [
|
22909
|
-
{ ...
|
23140
|
+
{ ...refblocks111.left1, labels: ["1"] },
|
22910
23141
|
// TODO add more "standard" labels
|
22911
|
-
{ ...
|
23142
|
+
{ ...refblocks111.right1, labels: ["2"] }
|
22912
23143
|
// TODO add more "standard" labels
|
22913
23144
|
],
|
22914
|
-
size: { width:
|
22915
|
-
center: { x:
|
23145
|
+
size: { width: bounds111.width, height: bounds111.height },
|
23146
|
+
center: { x: bounds111.centerX, y: bounds111.centerY }
|
22916
23147
|
});
|
22917
23148
|
|
22918
23149
|
// symbols/wattmeter_vert.ts
|
@@ -23076,22 +23307,22 @@ var zener_diode_default = {
|
|
23076
23307
|
};
|
23077
23308
|
|
23078
23309
|
// symbols/zener_diode_horz.ts
|
23079
|
-
var { paths:
|
23310
|
+
var { paths: paths112, texts: texts125, bounds: bounds112, refblocks: refblocks112, circles: circles105 } = zener_diode_default;
|
23080
23311
|
var zener_diode_horz_default = defineSymbol({
|
23081
23312
|
primitives: [
|
23082
|
-
...Object.values(
|
23083
|
-
...Object.values(
|
23084
|
-
{ ...
|
23085
|
-
{ ...
|
23313
|
+
...Object.values(paths112),
|
23314
|
+
...Object.values(circles105),
|
23315
|
+
{ ...texts125.top1, anchor: "middle_bottom" },
|
23316
|
+
{ ...texts125.bottom1, anchor: "middle_top" }
|
23086
23317
|
],
|
23087
23318
|
ports: [
|
23088
|
-
{ ...
|
23319
|
+
{ ...refblocks112.left1, labels: ["1"] },
|
23089
23320
|
// TODO add more "standard" labels
|
23090
|
-
{ ...
|
23321
|
+
{ ...refblocks112.right1, labels: ["2"] }
|
23091
23322
|
// TODO add more "standard" labels
|
23092
23323
|
],
|
23093
|
-
size: { width:
|
23094
|
-
center: { x:
|
23324
|
+
size: { width: bounds112.width, height: bounds112.height },
|
23325
|
+
center: { x: bounds112.centerX, y: bounds112.centerY }
|
23095
23326
|
});
|
23096
23327
|
|
23097
23328
|
// symbols/zener_diode_vert.ts
|
@@ -23196,7 +23427,11 @@ var symbols_index_default = {
|
|
23196
23427
|
"ferrite_bead_left": ferrite_bead_left_default,
|
23197
23428
|
"ferrite_bead_right": ferrite_bead_right_default,
|
23198
23429
|
"ferrite_bead_up": ferrite_bead_up_default,
|
23430
|
+
"filled_diode_down": filled_diode_down_default,
|
23199
23431
|
"filled_diode_horz": filled_diode_horz_default,
|
23432
|
+
"filled_diode_left": filled_diode_left_default,
|
23433
|
+
"filled_diode_right": filled_diode_right_default,
|
23434
|
+
"filled_diode_up": filled_diode_up_default,
|
23200
23435
|
"filled_diode_vert": filled_diode_vert_default,
|
23201
23436
|
"frequency_meter_horz": frequency_meter_horz_default,
|
23202
23437
|
"frequency_meter_vert": frequency_meter_vert_default,
|