schematic-symbols 0.0.177 → 0.0.179
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.js +287 -212
- 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 };
|
@@ -12840,8 +12840,8 @@ var npn_bipolar_transistor_down_default = modifySymbol({
|
|
12840
12840
|
],
|
12841
12841
|
ports: [
|
12842
12842
|
{ ...refblocks70.top1, labels: ["1"] },
|
12843
|
-
{ ...refblocks70.bottom1, labels: ["
|
12844
|
-
{ ...refblocks70.left1, labels: ["
|
12843
|
+
{ ...refblocks70.bottom1, labels: ["2"] },
|
12844
|
+
{ ...refblocks70.left1, labels: ["3"] }
|
12845
12845
|
],
|
12846
12846
|
size: { width: bounds70.width, height: bounds70.height },
|
12847
12847
|
center: { x: bounds70.centerX, y: bounds70.centerY }
|
@@ -12849,7 +12849,7 @@ var npn_bipolar_transistor_down_default = modifySymbol({
|
|
12849
12849
|
|
12850
12850
|
// symbols/npn_bipolar_transistor_horz.ts
|
12851
12851
|
var { paths: paths71, texts: texts76, bounds: bounds71, refblocks: refblocks71, circles: circles67 } = npn_bipolar_transistor_default;
|
12852
|
-
var npn_bipolar_transistor_horz_default = modifySymbol(npn_bipolar_transistor_default).rotateRightFacingSymbol("up").changeTextAnchor("{VAL}", "middle_left").labelPort("left1", ["
|
12852
|
+
var npn_bipolar_transistor_horz_default = modifySymbol(npn_bipolar_transistor_default).rotateRightFacingSymbol("up").changeTextAnchor("{VAL}", "middle_left").labelPort("left1", ["3"]).labelPort("top1", ["1"]).labelPort("bottom1", ["2"]).changeTextAnchor("{REF}", "middle_right").build();
|
12853
12853
|
|
12854
12854
|
// symbols/npn_bipolar_transistor_left.ts
|
12855
12855
|
var { paths: paths72, texts: texts77, bounds: bounds72, refblocks: refblocks72, circles: circles68 } = npn_bipolar_transistor_default;
|
@@ -12872,8 +12872,8 @@ var npn_bipolar_transistor_left_default = modifySymbol({
|
|
12872
12872
|
],
|
12873
12873
|
ports: [
|
12874
12874
|
{ ...refblocks72.top1, labels: ["1"] },
|
12875
|
-
{ ...refblocks72.bottom1, labels: ["
|
12876
|
-
{ ...refblocks72.left1, labels: ["
|
12875
|
+
{ ...refblocks72.bottom1, labels: ["2"] },
|
12876
|
+
{ ...refblocks72.left1, labels: ["3"] }
|
12877
12877
|
],
|
12878
12878
|
size: { width: bounds72.width, height: bounds72.height },
|
12879
12879
|
center: { x: bounds72.centerX, y: bounds72.centerY }
|
@@ -12900,8 +12900,8 @@ var npn_bipolar_transistor_right_default = modifySymbol({
|
|
12900
12900
|
],
|
12901
12901
|
ports: [
|
12902
12902
|
{ ...refblocks73.top1, labels: ["1"] },
|
12903
|
-
{ ...refblocks73.bottom1, labels: ["
|
12904
|
-
{ ...refblocks73.left1, labels: ["
|
12903
|
+
{ ...refblocks73.bottom1, labels: ["2"] },
|
12904
|
+
{ ...refblocks73.left1, labels: ["3"] }
|
12905
12905
|
],
|
12906
12906
|
size: { width: bounds73.width, height: bounds73.height },
|
12907
12907
|
center: { x: bounds73.centerX, y: bounds73.centerY }
|
@@ -12928,8 +12928,8 @@ var npn_bipolar_transistor_up_default = modifySymbol({
|
|
12928
12928
|
],
|
12929
12929
|
ports: [
|
12930
12930
|
{ ...refblocks74.top1, labels: ["1"] },
|
12931
|
-
{ ...refblocks74.bottom1, labels: ["
|
12932
|
-
{ ...refblocks74.left1, labels: ["
|
12931
|
+
{ ...refblocks74.bottom1, labels: ["2"] },
|
12932
|
+
{ ...refblocks74.left1, labels: ["3"] }
|
12933
12933
|
],
|
12934
12934
|
size: { width: bounds74.width, height: bounds74.height },
|
12935
12935
|
center: { x: bounds74.centerX, y: bounds74.centerY }
|
@@ -12956,8 +12956,8 @@ var npn_bipolar_transistor_vert_default = modifySymbol({
|
|
12956
12956
|
],
|
12957
12957
|
ports: [
|
12958
12958
|
{ ...refblocks75.top1, labels: ["1"] },
|
12959
|
-
{ ...refblocks75.bottom1, labels: ["
|
12960
|
-
{ ...refblocks75.left1, labels: ["
|
12959
|
+
{ ...refblocks75.bottom1, labels: ["2"] },
|
12960
|
+
{ ...refblocks75.left1, labels: ["3"] }
|
12961
12961
|
],
|
12962
12962
|
size: { width: bounds75.width, height: bounds75.height },
|
12963
12963
|
center: { x: bounds75.centerX, y: bounds75.centerY }
|
@@ -14501,8 +14501,8 @@ var pnp_bipolar_transistor_down_default = modifySymbol({
|
|
14501
14501
|
],
|
14502
14502
|
ports: [
|
14503
14503
|
{ ...refblocks79.top1, labels: ["1"] },
|
14504
|
-
{ ...refblocks79.bottom1, labels: ["
|
14505
|
-
{ ...refblocks79.left1, labels: ["
|
14504
|
+
{ ...refblocks79.bottom1, labels: ["2"] },
|
14505
|
+
{ ...refblocks79.left1, labels: ["3"] }
|
14506
14506
|
],
|
14507
14507
|
size: { width: bounds79.width, height: bounds79.height },
|
14508
14508
|
center: { x: bounds79.centerX, y: bounds79.centerY }
|
@@ -14510,7 +14510,7 @@ var pnp_bipolar_transistor_down_default = modifySymbol({
|
|
14510
14510
|
|
14511
14511
|
// symbols/pnp_bipolar_transistor_horz.ts
|
14512
14512
|
var { paths: paths80, texts: texts89, bounds: bounds80, refblocks: refblocks80, circles: circles76 } = pnp_bipolar_transistor_default;
|
14513
|
-
var pnp_bipolar_transistor_horz_default = modifySymbol(pnp_bipolar_transistor_default).rotateRightFacingSymbol("up").changeTextAnchor("{VAL}", "middle_left").labelPort("left1", ["
|
14513
|
+
var pnp_bipolar_transistor_horz_default = modifySymbol(pnp_bipolar_transistor_default).rotateRightFacingSymbol("up").changeTextAnchor("{VAL}", "middle_left").labelPort("left1", ["3"]).labelPort("top1", ["1"]).labelPort("bottom1", ["2"]).changeTextAnchor("{REF}", "middle_right").build();
|
14514
14514
|
|
14515
14515
|
// symbols/pnp_bipolar_transistor_left.ts
|
14516
14516
|
var { paths: paths81, texts: texts90, bounds: bounds81, refblocks: refblocks81, circles: circles77 } = pnp_bipolar_transistor_default;
|
@@ -14533,8 +14533,8 @@ var pnp_bipolar_transistor_left_default = modifySymbol({
|
|
14533
14533
|
],
|
14534
14534
|
ports: [
|
14535
14535
|
{ ...refblocks81.top1, labels: ["1"] },
|
14536
|
-
{ ...refblocks81.bottom1, labels: ["
|
14537
|
-
{ ...refblocks81.left1, labels: ["
|
14536
|
+
{ ...refblocks81.bottom1, labels: ["2"] },
|
14537
|
+
{ ...refblocks81.left1, labels: ["3"] }
|
14538
14538
|
],
|
14539
14539
|
size: { width: bounds81.width, height: bounds81.height },
|
14540
14540
|
center: { x: bounds81.centerX, y: bounds81.centerY }
|
@@ -14561,8 +14561,8 @@ var pnp_bipolar_transistor_right_default = modifySymbol({
|
|
14561
14561
|
],
|
14562
14562
|
ports: [
|
14563
14563
|
{ ...refblocks82.top1, labels: ["1"] },
|
14564
|
-
{ ...refblocks82.bottom1, labels: ["
|
14565
|
-
{ ...refblocks82.left1, labels: ["
|
14564
|
+
{ ...refblocks82.bottom1, labels: ["2"] },
|
14565
|
+
{ ...refblocks82.left1, labels: ["3"] }
|
14566
14566
|
],
|
14567
14567
|
size: { width: bounds82.width, height: bounds82.height },
|
14568
14568
|
center: { x: bounds82.centerX, y: bounds82.centerY }
|
@@ -14589,8 +14589,8 @@ var pnp_bipolar_transistor_up_default = modifySymbol({
|
|
14589
14589
|
],
|
14590
14590
|
ports: [
|
14591
14591
|
{ ...refblocks83.top1, labels: ["1"] },
|
14592
|
-
{ ...refblocks83.bottom1, labels: ["
|
14593
|
-
{ ...refblocks83.left1, labels: ["
|
14592
|
+
{ ...refblocks83.bottom1, labels: ["2"] },
|
14593
|
+
{ ...refblocks83.left1, labels: ["3"] }
|
14594
14594
|
],
|
14595
14595
|
size: { width: bounds83.width, height: bounds83.height },
|
14596
14596
|
center: { x: bounds83.centerX, y: bounds83.centerY }
|
@@ -14617,8 +14617,8 @@ var pnp_bipolar_transistor_vert_default = modifySymbol({
|
|
14617
14617
|
],
|
14618
14618
|
ports: [
|
14619
14619
|
{ ...refblocks84.top1, labels: ["1"] },
|
14620
|
-
{ ...refblocks84.bottom1, labels: ["
|
14621
|
-
{ ...refblocks84.left1, labels: ["
|
14620
|
+
{ ...refblocks84.bottom1, labels: ["2"] },
|
14621
|
+
{ ...refblocks84.left1, labels: ["3"] }
|
14622
14622
|
],
|
14623
14623
|
size: { width: bounds84.width, height: bounds84.height },
|
14624
14624
|
center: { x: bounds84.centerX, y: bounds84.centerY }
|
@@ -15371,17 +15371,92 @@ var potentiometer3_default = {
|
|
15371
15371
|
circles: {}
|
15372
15372
|
};
|
15373
15373
|
|
15374
|
-
// symbols/potentiometer3_right.ts
|
15375
|
-
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();
|
15376
|
-
|
15377
15374
|
// symbols/potentiometer3_down.ts
|
15378
|
-
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();
|
15379
15401
|
|
15380
15402
|
// symbols/potentiometer3_left.ts
|
15381
|
-
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();
|
15382
15432
|
|
15383
15433
|
// symbols/potentiometer3_up.ts
|
15384
|
-
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();
|
15385
15460
|
|
15386
15461
|
// assets/generated/power_factor_meter.json
|
15387
15462
|
var power_factor_meter_default = {
|
@@ -15470,11 +15545,11 @@ var power_factor_meter_default = {
|
|
15470
15545
|
};
|
15471
15546
|
|
15472
15547
|
// symbols/power_factor_meter_horz.ts
|
15473
|
-
var { paths:
|
15548
|
+
var { paths: paths90, texts: texts99, bounds: bounds90, refblocks: refblocks90, circles: circles84 } = power_factor_meter_default;
|
15474
15549
|
var power_factor_meter_horz_default = defineSymbol({
|
15475
15550
|
primitives: [
|
15476
|
-
...Object.values(
|
15477
|
-
...Object.values(
|
15551
|
+
...Object.values(paths90),
|
15552
|
+
...Object.values(circles84),
|
15478
15553
|
// { ...texts.top1, anchor: "middle_left" },
|
15479
15554
|
{
|
15480
15555
|
type: "text",
|
@@ -15501,21 +15576,21 @@ var power_factor_meter_horz_default = defineSymbol({
|
|
15501
15576
|
}
|
15502
15577
|
],
|
15503
15578
|
ports: [
|
15504
|
-
{ ...
|
15579
|
+
{ ...refblocks90.left1, labels: ["1"] },
|
15505
15580
|
// TODO add more "standard" labels
|
15506
|
-
{ ...
|
15581
|
+
{ ...refblocks90.right1, labels: ["2"] }
|
15507
15582
|
// TODO add more "standard" labels
|
15508
15583
|
],
|
15509
|
-
size: { width:
|
15510
|
-
center: { x:
|
15584
|
+
size: { width: bounds90.width, height: bounds90.height },
|
15585
|
+
center: { x: bounds90.centerX, y: bounds90.centerY }
|
15511
15586
|
});
|
15512
15587
|
|
15513
15588
|
// symbols/power_factor_meter_vert.ts
|
15514
15589
|
var rotatedSymbol13 = rotateSymbol(power_factor_meter_horz_default);
|
15515
|
-
var
|
15516
|
-
var ref37 =
|
15517
|
-
var val36 =
|
15518
|
-
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");
|
15519
15594
|
ref37.x = 0.35;
|
15520
15595
|
ref37.y = 0;
|
15521
15596
|
ref37.anchor = "middle_left";
|
@@ -15646,22 +15721,22 @@ var push_button_normally_closed_momentary_default = {
|
|
15646
15721
|
};
|
15647
15722
|
|
15648
15723
|
// symbols/push_button_normally_closed_momentary_horz.ts
|
15649
|
-
var { paths:
|
15724
|
+
var { paths: paths91, texts: texts101, bounds: bounds91, refblocks: refblocks91, circles: circles85 } = push_button_normally_closed_momentary_default;
|
15650
15725
|
var push_button_normally_closed_momentary_horz_default = defineSymbol({
|
15651
15726
|
primitives: [
|
15652
|
-
...Object.values(
|
15653
|
-
...Object.values(
|
15654
|
-
{ ...
|
15655
|
-
{ ...
|
15727
|
+
...Object.values(paths91),
|
15728
|
+
...Object.values(circles85),
|
15729
|
+
{ ...texts101.top1, anchor: "middle_left" },
|
15730
|
+
{ ...texts101.bottom1, anchor: "middle_left" }
|
15656
15731
|
],
|
15657
15732
|
ports: [
|
15658
|
-
{ ...
|
15733
|
+
{ ...refblocks91.left1, labels: ["1"] },
|
15659
15734
|
// TODO add more "standard" labels
|
15660
|
-
{ ...
|
15735
|
+
{ ...refblocks91.right1, labels: ["2"] }
|
15661
15736
|
// TODO add more "standard" labels
|
15662
15737
|
],
|
15663
|
-
size: { width:
|
15664
|
-
center: { x:
|
15738
|
+
size: { width: bounds91.width, height: bounds91.height },
|
15739
|
+
center: { x: bounds91.centerX, y: bounds91.centerY }
|
15665
15740
|
});
|
15666
15741
|
|
15667
15742
|
// symbols/push_button_normally_closed_momentary_vert.ts
|
@@ -15816,22 +15891,22 @@ var push_button_normally_open_momentary_default = {
|
|
15816
15891
|
};
|
15817
15892
|
|
15818
15893
|
// symbols/push_button_normally_open_momentary_horz.ts
|
15819
|
-
var { paths:
|
15894
|
+
var { paths: paths92, texts: texts102, bounds: bounds92, refblocks: refblocks92, circles: circles86 } = push_button_normally_open_momentary_default;
|
15820
15895
|
var push_button_normally_open_momentary_horz_default = defineSymbol({
|
15821
15896
|
primitives: [
|
15822
|
-
...Object.values(
|
15823
|
-
...Object.values(
|
15824
|
-
{ ...
|
15825
|
-
{ ...
|
15897
|
+
...Object.values(paths92),
|
15898
|
+
...Object.values(circles86),
|
15899
|
+
{ ...texts102.top1, anchor: "middle_left" },
|
15900
|
+
{ ...texts102.bottom1, anchor: "middle_left" }
|
15826
15901
|
],
|
15827
15902
|
ports: [
|
15828
|
-
{ ...
|
15903
|
+
{ ...refblocks92.left1, labels: ["1"] },
|
15829
15904
|
// TODO add more "standard" labels
|
15830
|
-
{ ...
|
15905
|
+
{ ...refblocks92.right1, labels: ["2"] }
|
15831
15906
|
// TODO add more "standard" labels
|
15832
15907
|
],
|
15833
|
-
size: { width:
|
15834
|
-
center: { x:
|
15908
|
+
size: { width: bounds92.width, height: bounds92.height },
|
15909
|
+
center: { x: bounds92.centerX, y: bounds92.centerY }
|
15835
15910
|
});
|
15836
15911
|
|
15837
15912
|
// symbols/push_button_normally_open_momentary_vert.ts
|
@@ -16247,26 +16322,26 @@ var rectifier_diode_default = {
|
|
16247
16322
|
};
|
16248
16323
|
|
16249
16324
|
// symbols/rectifier_diode_horz.ts
|
16250
|
-
var { paths:
|
16325
|
+
var { paths: paths93, texts: texts103, bounds: bounds93, refblocks: refblocks93, circles: circles87 } = rectifier_diode_default;
|
16251
16326
|
var rectifier_diode_horz_default = defineSymbol({
|
16252
16327
|
primitives: [
|
16253
|
-
...Object.values(
|
16254
|
-
...Object.values(
|
16255
|
-
{ ...
|
16256
|
-
{ ...
|
16328
|
+
...Object.values(paths93),
|
16329
|
+
...Object.values(circles87),
|
16330
|
+
{ ...texts103.top1, anchor: "middle_right" },
|
16331
|
+
{ ...texts103.bottom1, anchor: "middle_right" }
|
16257
16332
|
],
|
16258
16333
|
ports: [
|
16259
|
-
{ ...
|
16334
|
+
{ ...refblocks93.top1, labels: ["1"] },
|
16260
16335
|
// TODO add more "standard" labels
|
16261
|
-
{ ...
|
16336
|
+
{ ...refblocks93.bottom1, labels: ["2"] },
|
16262
16337
|
// TODO add more "standard" labels
|
16263
|
-
{ ...
|
16338
|
+
{ ...refblocks93.left1, labels: ["3"] },
|
16264
16339
|
// TODO add more "standard" labels
|
16265
|
-
{ ...
|
16340
|
+
{ ...refblocks93.right1, labels: ["4"] }
|
16266
16341
|
// TODO add more "standard" labels
|
16267
16342
|
],
|
16268
|
-
size: { width:
|
16269
|
-
center: { x:
|
16343
|
+
size: { width: bounds93.width, height: bounds93.height },
|
16344
|
+
center: { x: bounds93.centerX, y: bounds93.centerY }
|
16270
16345
|
});
|
16271
16346
|
|
16272
16347
|
// symbols/rectifier_diode_vert.ts
|
@@ -16488,11 +16563,11 @@ var resistor_default = {
|
|
16488
16563
|
};
|
16489
16564
|
|
16490
16565
|
// symbols/resistor_down.ts
|
16491
|
-
var { paths:
|
16566
|
+
var { paths: paths94, texts: texts104, bounds: bounds94, refblocks: refblocks94, circles: circles88 } = resistor_default;
|
16492
16567
|
var resistor_down_default = modifySymbol({
|
16493
16568
|
primitives: [
|
16494
|
-
...Object.values(
|
16495
|
-
...Object.values(
|
16569
|
+
...Object.values(paths94),
|
16570
|
+
...Object.values(circles88),
|
16496
16571
|
{
|
16497
16572
|
type: "text",
|
16498
16573
|
text: "{REF}",
|
@@ -16507,21 +16582,21 @@ var resistor_down_default = modifySymbol({
|
|
16507
16582
|
}
|
16508
16583
|
],
|
16509
16584
|
ports: [
|
16510
|
-
{ ...
|
16585
|
+
{ ...refblocks94.left1, labels: ["1"] },
|
16511
16586
|
// TODO add more "standard" labels
|
16512
|
-
{ ...
|
16587
|
+
{ ...refblocks94.right1, labels: ["2"] }
|
16513
16588
|
// TODO add more "standard" labels
|
16514
16589
|
],
|
16515
|
-
size: { width:
|
16516
|
-
center: { x:
|
16590
|
+
size: { width: bounds94.width, height: bounds94.height },
|
16591
|
+
center: { x: bounds94.centerX, y: bounds94.centerY }
|
16517
16592
|
}).rotateRightFacingSymbol("down").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
|
16518
16593
|
|
16519
16594
|
// symbols/resistor_left.ts
|
16520
|
-
var { paths:
|
16595
|
+
var { paths: paths95, texts: texts105, bounds: bounds95, refblocks: refblocks95, circles: circles89 } = resistor_default;
|
16521
16596
|
var resistor_left_default = modifySymbol({
|
16522
16597
|
primitives: [
|
16523
|
-
...Object.values(
|
16524
|
-
...Object.values(
|
16598
|
+
...Object.values(paths95),
|
16599
|
+
...Object.values(circles89),
|
16525
16600
|
{
|
16526
16601
|
type: "text",
|
16527
16602
|
text: "{REF}",
|
@@ -16536,21 +16611,21 @@ var resistor_left_default = modifySymbol({
|
|
16536
16611
|
}
|
16537
16612
|
],
|
16538
16613
|
ports: [
|
16539
|
-
{ ...
|
16614
|
+
{ ...refblocks95.left1, labels: ["1"] },
|
16540
16615
|
// TODO add more "standard" labels
|
16541
|
-
{ ...
|
16616
|
+
{ ...refblocks95.right1, labels: ["2"] }
|
16542
16617
|
// TODO add more "standard" labels
|
16543
16618
|
],
|
16544
|
-
size: { width:
|
16545
|
-
center: { x:
|
16619
|
+
size: { width: bounds95.width, height: bounds95.height },
|
16620
|
+
center: { x: bounds95.centerX, y: bounds95.centerY }
|
16546
16621
|
}).rotateRightFacingSymbol("left").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_bottom").changeTextAnchor("{VAL}", "middle_top").build();
|
16547
16622
|
|
16548
16623
|
// symbols/resistor_right.ts
|
16549
|
-
var { paths:
|
16624
|
+
var { paths: paths96, texts: texts106, bounds: bounds96, refblocks: refblocks96, circles: circles90 } = resistor_default;
|
16550
16625
|
var resistor_right_default = modifySymbol({
|
16551
16626
|
primitives: [
|
16552
|
-
...Object.values(
|
16553
|
-
...Object.values(
|
16627
|
+
...Object.values(paths96),
|
16628
|
+
...Object.values(circles90),
|
16554
16629
|
{
|
16555
16630
|
type: "text",
|
16556
16631
|
text: "{REF}",
|
@@ -16565,21 +16640,21 @@ var resistor_right_default = modifySymbol({
|
|
16565
16640
|
}
|
16566
16641
|
],
|
16567
16642
|
ports: [
|
16568
|
-
{ ...
|
16643
|
+
{ ...refblocks96.left1, labels: ["1"] },
|
16569
16644
|
// TODO add more "standard" labels
|
16570
|
-
{ ...
|
16645
|
+
{ ...refblocks96.right1, labels: ["2"] }
|
16571
16646
|
// TODO add more "standard" labels
|
16572
16647
|
],
|
16573
|
-
size: { width:
|
16574
|
-
center: { x:
|
16648
|
+
size: { width: bounds96.width, height: bounds96.height },
|
16649
|
+
center: { x: bounds96.centerX, y: bounds96.centerY }
|
16575
16650
|
}).rotateRightFacingSymbol("right").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_bottom").changeTextAnchor("{VAL}", "middle_top").build();
|
16576
16651
|
|
16577
16652
|
// symbols/resistor_up.ts
|
16578
|
-
var { paths:
|
16653
|
+
var { paths: paths97, texts: texts107, bounds: bounds97, refblocks: refblocks97, circles: circles91 } = resistor_default;
|
16579
16654
|
var resistor_up_default = modifySymbol({
|
16580
16655
|
primitives: [
|
16581
|
-
...Object.values(
|
16582
|
-
...Object.values(
|
16656
|
+
...Object.values(paths97),
|
16657
|
+
...Object.values(circles91),
|
16583
16658
|
{
|
16584
16659
|
type: "text",
|
16585
16660
|
text: "{REF}",
|
@@ -16594,13 +16669,13 @@ var resistor_up_default = modifySymbol({
|
|
16594
16669
|
}
|
16595
16670
|
],
|
16596
16671
|
ports: [
|
16597
|
-
{ ...
|
16672
|
+
{ ...refblocks97.left1, labels: ["1"] },
|
16598
16673
|
// TODO add more "standard" labels
|
16599
|
-
{ ...
|
16674
|
+
{ ...refblocks97.right1, labels: ["2"] }
|
16600
16675
|
// TODO add more "standard" labels
|
16601
16676
|
],
|
16602
|
-
size: { width:
|
16603
|
-
center: { x:
|
16677
|
+
size: { width: bounds97.width, height: bounds97.height },
|
16678
|
+
center: { x: bounds97.centerX, y: bounds97.centerY }
|
16604
16679
|
}).rotateRightFacingSymbol("up").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
|
16605
16680
|
|
16606
16681
|
// assets/generated/resonator.json
|
@@ -16949,11 +17024,11 @@ var resonator_default = {
|
|
16949
17024
|
};
|
16950
17025
|
|
16951
17026
|
// symbols/resonator_horz.ts
|
16952
|
-
var { paths:
|
17027
|
+
var { paths: paths98, texts: texts108, bounds: bounds98, refblocks: refblocks98, circles: circles92 } = resonator_default;
|
16953
17028
|
var resonator_horz_default = defineSymbol({
|
16954
17029
|
primitives: [
|
16955
|
-
...Object.values(
|
16956
|
-
...Object.values(
|
17030
|
+
...Object.values(paths98),
|
17031
|
+
...Object.values(circles92),
|
16957
17032
|
// { ...texts.top1, anchor: "middle_left" },
|
16958
17033
|
// { ...texts.bottom1, anchor: "middle_left" },
|
16959
17034
|
{
|
@@ -16972,15 +17047,15 @@ var resonator_horz_default = defineSymbol({
|
|
16972
17047
|
}
|
16973
17048
|
],
|
16974
17049
|
ports: [
|
16975
|
-
{ ...
|
17050
|
+
{ ...refblocks98.left1, labels: ["1"] },
|
16976
17051
|
// TODO add more "standard" labels
|
16977
|
-
{ ...
|
17052
|
+
{ ...refblocks98.right1, labels: ["2"] },
|
16978
17053
|
// TODO add more "standard" labels
|
16979
|
-
{ ...
|
17054
|
+
{ ...refblocks98.right2, labels: ["3"] }
|
16980
17055
|
// TODO add more "standard" labels
|
16981
17056
|
],
|
16982
|
-
size: { width:
|
16983
|
-
center: { x:
|
17057
|
+
size: { width: bounds98.width, height: bounds98.height },
|
17058
|
+
center: { x: bounds98.centerX, y: bounds98.centerY }
|
16984
17059
|
});
|
16985
17060
|
|
16986
17061
|
// symbols/resonator_vert.ts
|
@@ -17372,15 +17447,15 @@ var silicon_controlled_rectifier_default = {
|
|
17372
17447
|
};
|
17373
17448
|
|
17374
17449
|
// symbols/silicon_controlled_rectifier_horz.ts
|
17375
|
-
var { paths:
|
17450
|
+
var { paths: paths99, texts: texts109, bounds: bounds99, refblocks: refblocks99, circles: circles93 } = silicon_controlled_rectifier_default;
|
17376
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();
|
17377
17452
|
|
17378
17453
|
// symbols/silicon_controlled_rectifier_vert.ts
|
17379
17454
|
var rotatedSymbol14 = rotateSymbol(silicon_controlled_rectifier_horz_default);
|
17380
|
-
var
|
17455
|
+
var texts110 = rotatedSymbol14.primitives.filter(
|
17381
17456
|
(primitive) => primitive.type === "text"
|
17382
17457
|
);
|
17383
|
-
var ref42 =
|
17458
|
+
var ref42 = texts110.find((text) => text.text === "{REF}");
|
17384
17459
|
ref42.y = 0;
|
17385
17460
|
ref42.anchor = "middle_left";
|
17386
17461
|
var silicon_controlled_rectifier_vert_default = rotatedSymbol14;
|
@@ -20940,7 +21015,7 @@ var step_recovery_diode_default = {
|
|
20940
21015
|
};
|
20941
21016
|
|
20942
21017
|
// symbols/step_recovery_diode_horz.ts
|
20943
|
-
var { paths:
|
21018
|
+
var { paths: paths100, texts: texts111, bounds: bounds100, refblocks: refblocks100, circles: circles94 } = step_recovery_diode_default;
|
20944
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();
|
20945
21020
|
|
20946
21021
|
// symbols/step_recovery_diode_vert.ts
|
@@ -21033,11 +21108,11 @@ var tachometer_default = {
|
|
21033
21108
|
};
|
21034
21109
|
|
21035
21110
|
// symbols/tachometer_horz.ts
|
21036
|
-
var { paths:
|
21111
|
+
var { paths: paths101, texts: texts112, bounds: bounds101, refblocks: refblocks101, circles: circles95 } = tachometer_default;
|
21037
21112
|
var tachometer_horz_default = defineSymbol({
|
21038
21113
|
primitives: [
|
21039
|
-
...Object.values(
|
21040
|
-
...Object.values(
|
21114
|
+
...Object.values(paths101),
|
21115
|
+
...Object.values(circles95),
|
21041
21116
|
{
|
21042
21117
|
type: "text",
|
21043
21118
|
text: "{REF}",
|
@@ -21052,16 +21127,16 @@ var tachometer_horz_default = defineSymbol({
|
|
21052
21127
|
y: 0.35,
|
21053
21128
|
anchor: "middle_bottom"
|
21054
21129
|
},
|
21055
|
-
{ ...
|
21130
|
+
{ ...texts112.left1, y: 0.01, anchor: "center", fontSize: 0.2 }
|
21056
21131
|
],
|
21057
21132
|
ports: [
|
21058
|
-
{ ...
|
21133
|
+
{ ...refblocks101.left1, labels: ["1"] },
|
21059
21134
|
// TODO add more "standard" labels
|
21060
|
-
{ ...
|
21135
|
+
{ ...refblocks101.right1, labels: ["2"] }
|
21061
21136
|
// TODO add more "standard" labels
|
21062
21137
|
],
|
21063
|
-
size: { width:
|
21064
|
-
center: { x:
|
21138
|
+
size: { width: bounds101.width, height: bounds101.height },
|
21139
|
+
center: { x: bounds101.centerX, y: bounds101.centerY }
|
21065
21140
|
});
|
21066
21141
|
|
21067
21142
|
// symbols/tachometer_vert.ts
|
@@ -21483,16 +21558,16 @@ var triac_default = {
|
|
21483
21558
|
};
|
21484
21559
|
|
21485
21560
|
// symbols/triac_horz.ts
|
21486
|
-
var { paths:
|
21561
|
+
var { paths: paths102, texts: texts113, bounds: bounds102, refblocks: refblocks102, circles: circles96 } = triac_default;
|
21487
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();
|
21488
21563
|
|
21489
21564
|
// symbols/triac_vert.ts
|
21490
21565
|
var rotatedSymbol16 = rotateSymbol(triac_horz_default);
|
21491
|
-
var
|
21566
|
+
var texts114 = rotatedSymbol16.primitives.filter(
|
21492
21567
|
(primitive) => primitive.type === "text"
|
21493
21568
|
);
|
21494
|
-
var ref60 =
|
21495
|
-
var val56 =
|
21569
|
+
var ref60 = texts114.find((text) => text.text === "{REF}");
|
21570
|
+
var val56 = texts114.find((text) => text.text === "{VAL}");
|
21496
21571
|
ref60.y = 0;
|
21497
21572
|
val56.y = 0;
|
21498
21573
|
var triac_vert_default = rotatedSymbol16;
|
@@ -21659,22 +21734,22 @@ var tunnel_diode_default = {
|
|
21659
21734
|
};
|
21660
21735
|
|
21661
21736
|
// symbols/tunnel_diode_horz.ts
|
21662
|
-
var { paths:
|
21737
|
+
var { paths: paths103, texts: texts115, bounds: bounds103, refblocks: refblocks103, circles: circles97 } = tunnel_diode_default;
|
21663
21738
|
var tunnel_diode_horz_default = defineSymbol({
|
21664
21739
|
primitives: [
|
21665
|
-
...Object.values(
|
21666
|
-
...Object.values(
|
21667
|
-
{ ...
|
21668
|
-
{ ...
|
21740
|
+
...Object.values(paths103),
|
21741
|
+
...Object.values(circles97),
|
21742
|
+
{ ...texts115.top1, anchor: "middle_bottom" },
|
21743
|
+
{ ...texts115.bottom1, anchor: "middle_top" }
|
21669
21744
|
],
|
21670
21745
|
ports: [
|
21671
|
-
{ ...
|
21746
|
+
{ ...refblocks103.left1, labels: ["1"] },
|
21672
21747
|
// TODO add more "standard" labels
|
21673
|
-
{ ...
|
21748
|
+
{ ...refblocks103.right1, labels: ["2"] }
|
21674
21749
|
// TODO add more "standard" labels
|
21675
21750
|
],
|
21676
|
-
size: { width:
|
21677
|
-
center: { x:
|
21751
|
+
size: { width: bounds103.width, height: bounds103.height },
|
21752
|
+
center: { x: bounds103.centerX, y: bounds103.centerY }
|
21678
21753
|
});
|
21679
21754
|
|
21680
21755
|
// symbols/tunnel_diode_vert.ts
|
@@ -21857,34 +21932,34 @@ var unijunction_transistor_default = {
|
|
21857
21932
|
};
|
21858
21933
|
|
21859
21934
|
// symbols/unijunction_transistor_horz.ts
|
21860
|
-
var { paths:
|
21935
|
+
var { paths: paths104, texts: texts116, bounds: bounds104, refblocks: refblocks104, circles: circles98 } = unijunction_transistor_default;
|
21861
21936
|
var unijunction_transistor_horz_default = defineSymbol({
|
21862
21937
|
primitives: [
|
21863
|
-
...Object.values(
|
21864
|
-
...Object.values(
|
21865
|
-
{ ...
|
21866
|
-
{ ...
|
21938
|
+
...Object.values(paths104),
|
21939
|
+
...Object.values(circles98),
|
21940
|
+
{ ...texts116.top1, anchor: "middle_left" },
|
21941
|
+
{ ...texts116.bottom1, anchor: "middle_right" }
|
21867
21942
|
],
|
21868
21943
|
ports: [
|
21869
|
-
{ ...
|
21944
|
+
{ ...refblocks104.top1, labels: ["1"] },
|
21870
21945
|
// TODO add more "standard" labels
|
21871
|
-
{ ...
|
21946
|
+
{ ...refblocks104.bottom1, labels: ["2"] },
|
21872
21947
|
// TODO add more "standard" labels
|
21873
|
-
{ ...
|
21948
|
+
{ ...refblocks104.left1, labels: ["3"] }
|
21874
21949
|
// TODO add more "standard" labels
|
21875
21950
|
],
|
21876
|
-
size: { width:
|
21877
|
-
center: { x:
|
21951
|
+
size: { width: bounds104.width, height: bounds104.height },
|
21952
|
+
center: { x: bounds104.centerX, y: bounds104.centerY }
|
21878
21953
|
});
|
21879
21954
|
|
21880
21955
|
// symbols/unijunction_transistor_vert.ts
|
21881
21956
|
var rotatedSymbol17 = rotateSymbol(unijunction_transistor_horz_default);
|
21882
|
-
var
|
21957
|
+
var texts117 = rotatedSymbol17.primitives.filter(
|
21883
21958
|
(primitive) => primitive.type === "text"
|
21884
21959
|
);
|
21885
|
-
var ref62 =
|
21960
|
+
var ref62 = texts117.find((text) => text.text === "{REF}");
|
21886
21961
|
ref62.y = 0.1;
|
21887
|
-
var val58 =
|
21962
|
+
var val58 = texts117.find((text) => text.text === "{VAL}");
|
21888
21963
|
val58.y = 0.1;
|
21889
21964
|
val58.x = -0.4;
|
21890
21965
|
var unijunction_transistor_vert_default = rotatedSymbol17;
|
@@ -22128,33 +22203,33 @@ var var_meter_default = {
|
|
22128
22203
|
};
|
22129
22204
|
|
22130
22205
|
// symbols/var_meter_horz.ts
|
22131
|
-
var { paths:
|
22206
|
+
var { paths: paths105, texts: texts118, bounds: bounds105, refblocks: refblocks105, circles: circles99 } = var_meter_default;
|
22132
22207
|
var var_meter_horz_default = defineSymbol({
|
22133
22208
|
primitives: [
|
22134
|
-
...Object.values(
|
22135
|
-
...Object.values(
|
22209
|
+
...Object.values(paths105),
|
22210
|
+
...Object.values(circles99),
|
22136
22211
|
{
|
22137
|
-
...
|
22212
|
+
...texts118.top1,
|
22138
22213
|
x: 0,
|
22139
22214
|
y: -0.3594553499999995,
|
22140
22215
|
anchor: "middle_top"
|
22141
22216
|
},
|
22142
22217
|
{
|
22143
|
-
...
|
22218
|
+
...texts118.bottom1,
|
22144
22219
|
x: 0,
|
22145
22220
|
y: 0.35,
|
22146
22221
|
anchor: "middle_bottom"
|
22147
22222
|
},
|
22148
|
-
{ ...
|
22223
|
+
{ ...texts118.left1, x: -0.02, y: 0.01, fontSize: 0.2, anchor: "center" }
|
22149
22224
|
],
|
22150
22225
|
ports: [
|
22151
|
-
{ ...
|
22226
|
+
{ ...refblocks105.left1, labels: ["1"] },
|
22152
22227
|
// TODO add more "standard" labels
|
22153
|
-
{ ...
|
22228
|
+
{ ...refblocks105.right1, labels: ["2"] }
|
22154
22229
|
// TODO add more "standard" labels
|
22155
22230
|
],
|
22156
|
-
size: { width:
|
22157
|
-
center: { x:
|
22231
|
+
size: { width: bounds105.width, height: bounds105.height },
|
22232
|
+
center: { x: bounds105.centerX, y: bounds105.centerY }
|
22158
22233
|
});
|
22159
22234
|
|
22160
22235
|
// symbols/var_meter_vert.ts
|
@@ -22307,22 +22382,22 @@ var varactor_diode_default = {
|
|
22307
22382
|
};
|
22308
22383
|
|
22309
22384
|
// symbols/varactor_diode_horz.ts
|
22310
|
-
var { paths:
|
22385
|
+
var { paths: paths106, texts: texts119, bounds: bounds106, refblocks: refblocks106, circles: circles100 } = varactor_diode_default;
|
22311
22386
|
var varactor_diode_horz_default = defineSymbol({
|
22312
22387
|
primitives: [
|
22313
|
-
...Object.values(
|
22314
|
-
...Object.values(
|
22315
|
-
{ ...
|
22316
|
-
{ ...
|
22388
|
+
...Object.values(paths106),
|
22389
|
+
...Object.values(circles100),
|
22390
|
+
{ ...texts119.top1, anchor: "middle_bottom" },
|
22391
|
+
{ ...texts119.bottom1, anchor: "middle_top" }
|
22317
22392
|
],
|
22318
22393
|
ports: [
|
22319
|
-
{ ...
|
22394
|
+
{ ...refblocks106.left1, labels: ["1"] },
|
22320
22395
|
// TODO add more "standard" labels
|
22321
|
-
{ ...
|
22396
|
+
{ ...refblocks106.right1, labels: ["2"] }
|
22322
22397
|
// TODO add more "standard" labels
|
22323
22398
|
],
|
22324
|
-
size: { width:
|
22325
|
-
center: { x:
|
22399
|
+
size: { width: bounds106.width, height: bounds106.height },
|
22400
|
+
center: { x: bounds106.centerX, y: bounds106.centerY }
|
22326
22401
|
});
|
22327
22402
|
|
22328
22403
|
// symbols/varactor_diode_vert.ts
|
@@ -22470,26 +22545,26 @@ var varistor_default = {
|
|
22470
22545
|
};
|
22471
22546
|
|
22472
22547
|
// symbols/varistor_horz.ts
|
22473
|
-
var { paths:
|
22548
|
+
var { paths: paths107, texts: texts120, bounds: bounds107, refblocks: refblocks107 } = varistor_default;
|
22474
22549
|
var varistor_horz_default = defineSymbol({
|
22475
22550
|
primitives: [
|
22476
|
-
...Object.values(
|
22477
|
-
{ ...
|
22478
|
-
{ ...
|
22551
|
+
...Object.values(paths107),
|
22552
|
+
{ ...texts120.top1, anchor: "middle_left" },
|
22553
|
+
{ ...texts120.bottom1, anchor: "middle_right" }
|
22479
22554
|
],
|
22480
22555
|
ports: [
|
22481
22556
|
{
|
22482
|
-
...
|
22557
|
+
...refblocks107.left1,
|
22483
22558
|
labels: ["1", "-"]
|
22484
22559
|
},
|
22485
22560
|
{
|
22486
|
-
...
|
22561
|
+
...refblocks107.right1,
|
22487
22562
|
labels: ["2", "+"]
|
22488
22563
|
}
|
22489
22564
|
],
|
22490
|
-
size: { width:
|
22565
|
+
size: { width: bounds107.width, height: bounds107.height },
|
22491
22566
|
//{ width: 1, height: 0.24 },
|
22492
|
-
center: { x:
|
22567
|
+
center: { x: bounds107.centerX, y: bounds107.centerY }
|
22493
22568
|
});
|
22494
22569
|
|
22495
22570
|
// symbols/varistor_vert.ts
|
@@ -22582,11 +22657,11 @@ var varmeter_default = {
|
|
22582
22657
|
};
|
22583
22658
|
|
22584
22659
|
// symbols/varmeter_horz.ts
|
22585
|
-
var { paths:
|
22660
|
+
var { paths: paths108, texts: texts121, bounds: bounds108, refblocks: refblocks108, circles: circles101 } = varmeter_default;
|
22586
22661
|
var varmeter_horz_default = defineSymbol({
|
22587
22662
|
primitives: [
|
22588
|
-
...Object.values(
|
22589
|
-
...Object.values(
|
22663
|
+
...Object.values(paths108),
|
22664
|
+
...Object.values(circles101),
|
22590
22665
|
{
|
22591
22666
|
type: "text",
|
22592
22667
|
text: "{REF}",
|
@@ -22601,16 +22676,16 @@ var varmeter_horz_default = defineSymbol({
|
|
22601
22676
|
y: 0.35,
|
22602
22677
|
anchor: "middle_bottom"
|
22603
22678
|
},
|
22604
|
-
{ ...
|
22679
|
+
{ ...texts121.left1, anchor: "center", y: 0.02, fontSize: 0.2 }
|
22605
22680
|
],
|
22606
22681
|
ports: [
|
22607
|
-
{ ...
|
22682
|
+
{ ...refblocks108.left1, labels: ["1"] },
|
22608
22683
|
// TODO add more "standard" labels
|
22609
|
-
{ ...
|
22684
|
+
{ ...refblocks108.right1, labels: ["2"] }
|
22610
22685
|
// TODO add more "standard" labels
|
22611
22686
|
],
|
22612
|
-
size: { width:
|
22613
|
-
center: { x:
|
22687
|
+
size: { width: bounds108.width, height: bounds108.height },
|
22688
|
+
center: { x: bounds108.centerX, y: bounds108.centerY }
|
22614
22689
|
});
|
22615
22690
|
|
22616
22691
|
// symbols/varmeter_vert.ts
|
@@ -22815,7 +22890,7 @@ var volt_meter_default = {
|
|
22815
22890
|
};
|
22816
22891
|
|
22817
22892
|
// symbols/volt_meter_horz.ts
|
22818
|
-
var { paths:
|
22893
|
+
var { paths: paths109, texts: texts122, bounds: bounds109, circles: circles102, refblocks: refblocks109 } = volt_meter_default;
|
22819
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();
|
22820
22895
|
|
22821
22896
|
// symbols/volt_meter_vert.ts
|
@@ -22908,11 +22983,11 @@ var watt_hour_meter_default = {
|
|
22908
22983
|
};
|
22909
22984
|
|
22910
22985
|
// symbols/watt_hour_meter_horz.ts
|
22911
|
-
var { paths:
|
22986
|
+
var { paths: paths110, texts: texts123, bounds: bounds110, refblocks: refblocks110, circles: circles103 } = watt_hour_meter_default;
|
22912
22987
|
var watt_hour_meter_horz_default = defineSymbol({
|
22913
22988
|
primitives: [
|
22914
|
-
...Object.values(
|
22915
|
-
...Object.values(
|
22989
|
+
...Object.values(paths110),
|
22990
|
+
...Object.values(circles103),
|
22916
22991
|
{
|
22917
22992
|
type: "text",
|
22918
22993
|
text: "{REF}",
|
@@ -22927,16 +23002,16 @@ var watt_hour_meter_horz_default = defineSymbol({
|
|
22927
23002
|
y: 0.35,
|
22928
23003
|
anchor: "middle_bottom"
|
22929
23004
|
},
|
22930
|
-
{ ...
|
23005
|
+
{ ...texts123.left1, anchor: "center", y: 0.01, fontSize: 0.2 }
|
22931
23006
|
],
|
22932
23007
|
ports: [
|
22933
|
-
{ ...
|
23008
|
+
{ ...refblocks110.left1, labels: ["1"] },
|
22934
23009
|
// TODO add more "standard" labels
|
22935
|
-
{ ...
|
23010
|
+
{ ...refblocks110.right1, labels: ["2"] }
|
22936
23011
|
// TODO add more "standard" labels
|
22937
23012
|
],
|
22938
|
-
size: { width:
|
22939
|
-
center: { x:
|
23013
|
+
size: { width: bounds110.width, height: bounds110.height },
|
23014
|
+
center: { x: bounds110.centerX, y: bounds110.centerY }
|
22940
23015
|
});
|
22941
23016
|
|
22942
23017
|
// symbols/watt_hour_meter_vert.ts
|
@@ -23040,11 +23115,11 @@ var wattmeter_default = {
|
|
23040
23115
|
};
|
23041
23116
|
|
23042
23117
|
// symbols/wattmeter_horz.ts
|
23043
|
-
var { paths:
|
23118
|
+
var { paths: paths111, texts: texts124, bounds: bounds111, refblocks: refblocks111, circles: circles104 } = wattmeter_default;
|
23044
23119
|
var wattmeter_horz_default = defineSymbol({
|
23045
23120
|
primitives: [
|
23046
|
-
...Object.values(
|
23047
|
-
...Object.values(
|
23121
|
+
...Object.values(paths111),
|
23122
|
+
...Object.values(circles104),
|
23048
23123
|
{
|
23049
23124
|
type: "text",
|
23050
23125
|
text: "{REF}",
|
@@ -23059,16 +23134,16 @@ var wattmeter_horz_default = defineSymbol({
|
|
23059
23134
|
y: 0.35,
|
23060
23135
|
anchor: "middle_bottom"
|
23061
23136
|
},
|
23062
|
-
{ ...
|
23137
|
+
{ ...texts124.left1, anchor: "center", y: 0.01, fontSize: 0.3 }
|
23063
23138
|
],
|
23064
23139
|
ports: [
|
23065
|
-
{ ...
|
23140
|
+
{ ...refblocks111.left1, labels: ["1"] },
|
23066
23141
|
// TODO add more "standard" labels
|
23067
|
-
{ ...
|
23142
|
+
{ ...refblocks111.right1, labels: ["2"] }
|
23068
23143
|
// TODO add more "standard" labels
|
23069
23144
|
],
|
23070
|
-
size: { width:
|
23071
|
-
center: { x:
|
23145
|
+
size: { width: bounds111.width, height: bounds111.height },
|
23146
|
+
center: { x: bounds111.centerX, y: bounds111.centerY }
|
23072
23147
|
});
|
23073
23148
|
|
23074
23149
|
// symbols/wattmeter_vert.ts
|
@@ -23232,22 +23307,22 @@ var zener_diode_default = {
|
|
23232
23307
|
};
|
23233
23308
|
|
23234
23309
|
// symbols/zener_diode_horz.ts
|
23235
|
-
var { paths:
|
23310
|
+
var { paths: paths112, texts: texts125, bounds: bounds112, refblocks: refblocks112, circles: circles105 } = zener_diode_default;
|
23236
23311
|
var zener_diode_horz_default = defineSymbol({
|
23237
23312
|
primitives: [
|
23238
|
-
...Object.values(
|
23239
|
-
...Object.values(
|
23240
|
-
{ ...
|
23241
|
-
{ ...
|
23313
|
+
...Object.values(paths112),
|
23314
|
+
...Object.values(circles105),
|
23315
|
+
{ ...texts125.top1, anchor: "middle_bottom" },
|
23316
|
+
{ ...texts125.bottom1, anchor: "middle_top" }
|
23242
23317
|
],
|
23243
23318
|
ports: [
|
23244
|
-
{ ...
|
23319
|
+
{ ...refblocks112.left1, labels: ["1"] },
|
23245
23320
|
// TODO add more "standard" labels
|
23246
|
-
{ ...
|
23321
|
+
{ ...refblocks112.right1, labels: ["2"] }
|
23247
23322
|
// TODO add more "standard" labels
|
23248
23323
|
],
|
23249
|
-
size: { width:
|
23250
|
-
center: { x:
|
23324
|
+
size: { width: bounds112.width, height: bounds112.height },
|
23325
|
+
center: { x: bounds112.centerX, y: bounds112.centerY }
|
23251
23326
|
});
|
23252
23327
|
|
23253
23328
|
// symbols/zener_diode_vert.ts
|