schematic-symbols 0.0.132 → 0.0.133
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +5 -1
- package/dist/index.js +442 -116
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -44,10 +44,10 @@ function getBoundsOfPrimitives(primitives) {
|
|
44
44
|
function defineSymbol(symbol) {
|
45
45
|
let size = symbol.size;
|
46
46
|
if (!size) {
|
47
|
-
const
|
47
|
+
const bounds59 = getBoundsOfPrimitives(symbol.primitives);
|
48
48
|
size = {
|
49
|
-
width:
|
50
|
-
height:
|
49
|
+
width: bounds59.maxX - bounds59.minX,
|
50
|
+
height: bounds59.maxY - bounds59.minY
|
51
51
|
};
|
52
52
|
}
|
53
53
|
return { ...symbol, size };
|
@@ -494,14 +494,14 @@ var rotateRightFacingSymbol = (symbol, opts) => {
|
|
494
494
|
...applyToPoint(transform2, port)
|
495
495
|
})
|
496
496
|
);
|
497
|
-
const
|
497
|
+
const bounds59 = getBoundsOfPrimitives(rotatedPrimitives);
|
498
498
|
return {
|
499
499
|
primitives: rotatedPrimitives,
|
500
500
|
center,
|
501
501
|
ports: rotatedPorts,
|
502
502
|
size: {
|
503
|
-
width:
|
504
|
-
height:
|
503
|
+
width: bounds59.maxX - bounds59.minX,
|
504
|
+
height: bounds59.maxY - bounds59.minY
|
505
505
|
},
|
506
506
|
...overrides
|
507
507
|
};
|
@@ -902,10 +902,10 @@ var SymbolModifier = class {
|
|
902
902
|
return this;
|
903
903
|
}
|
904
904
|
computeSize() {
|
905
|
-
const
|
905
|
+
const bounds59 = getBoundsOfPrimitives(this.symbol.primitives);
|
906
906
|
return {
|
907
|
-
width:
|
908
|
-
height:
|
907
|
+
width: bounds59.maxX - bounds59.minX,
|
908
|
+
height: bounds59.maxY - bounds59.minY
|
909
909
|
};
|
910
910
|
}
|
911
911
|
build() {
|
@@ -14421,6 +14421,328 @@ ref32.anchor = "middle_left";
|
|
14421
14421
|
val28.anchor = "middle_right";
|
14422
14422
|
var rectifier_diode_vert_default = rotated20;
|
14423
14423
|
|
14424
|
+
// assets/generated/resistor.json
|
14425
|
+
var resistor_default = {
|
14426
|
+
paths: {
|
14427
|
+
path27: {
|
14428
|
+
type: "path",
|
14429
|
+
points: [
|
14430
|
+
{
|
14431
|
+
x: 0.4569043500000003,
|
14432
|
+
y: 0.039157350000001756
|
14433
|
+
},
|
14434
|
+
{
|
14435
|
+
x: 0.20771145000000057,
|
14436
|
+
y: 0.039157350000001756
|
14437
|
+
}
|
14438
|
+
],
|
14439
|
+
color: "primary",
|
14440
|
+
fill: false
|
14441
|
+
},
|
14442
|
+
"path27-0": {
|
14443
|
+
type: "path",
|
14444
|
+
points: [
|
14445
|
+
{
|
14446
|
+
x: -0.20769534999999983,
|
14447
|
+
y: 0.039438150000000505
|
14448
|
+
},
|
14449
|
+
{
|
14450
|
+
x: -0.45688825,
|
14451
|
+
y: 0.039438150000000505
|
14452
|
+
}
|
14453
|
+
],
|
14454
|
+
color: "primary",
|
14455
|
+
fill: false
|
14456
|
+
},
|
14457
|
+
"path27-8-2-4": {
|
14458
|
+
type: "path",
|
14459
|
+
points: [
|
14460
|
+
{
|
14461
|
+
x: 0.20630645000000047,
|
14462
|
+
y: 0.039758450000002554
|
14463
|
+
},
|
14464
|
+
{
|
14465
|
+
x: 0.1862114500000005,
|
14466
|
+
y: -0.048316949999996694
|
14467
|
+
}
|
14468
|
+
],
|
14469
|
+
color: "primary",
|
14470
|
+
fill: false
|
14471
|
+
},
|
14472
|
+
"path27-8-2-4-29": {
|
14473
|
+
type: "path",
|
14474
|
+
points: [
|
14475
|
+
{
|
14476
|
+
x: -0.18642914999999993,
|
14477
|
+
y: 0.13528805000000332
|
14478
|
+
},
|
14479
|
+
{
|
14480
|
+
x: -0.20595035000000017,
|
14481
|
+
y: 0.038328650000002185
|
14482
|
+
}
|
14483
|
+
],
|
14484
|
+
color: "primary",
|
14485
|
+
fill: false
|
14486
|
+
},
|
14487
|
+
"path27-8-2-4-5": {
|
14488
|
+
type: "path",
|
14489
|
+
points: [
|
14490
|
+
{
|
14491
|
+
x: 0.18570235000000013,
|
14492
|
+
y: -0.04760624999999763
|
14493
|
+
},
|
14494
|
+
{
|
14495
|
+
x: 0.13272245000000016,
|
14496
|
+
y: 0.13556055000000278
|
14497
|
+
}
|
14498
|
+
],
|
14499
|
+
color: "primary",
|
14500
|
+
fill: false
|
14501
|
+
},
|
14502
|
+
"path27-8-2-4-5-1": {
|
14503
|
+
type: "path",
|
14504
|
+
points: [
|
14505
|
+
{
|
14506
|
+
x: 0.0797579500000003,
|
14507
|
+
y: -0.04767594999999858
|
14508
|
+
},
|
14509
|
+
{
|
14510
|
+
x: 0.13273785000000027,
|
14511
|
+
y: 0.13549085000000183
|
14512
|
+
}
|
14513
|
+
],
|
14514
|
+
color: "primary",
|
14515
|
+
fill: false
|
14516
|
+
},
|
14517
|
+
"path27-8-2-4-5-1-9": {
|
14518
|
+
type: "path",
|
14519
|
+
points: [
|
14520
|
+
{
|
14521
|
+
x: 0.07970425000000025,
|
14522
|
+
y: -0.04777924999999961
|
14523
|
+
},
|
14524
|
+
{
|
14525
|
+
x: 0.026724350000000285,
|
14526
|
+
y: 0.1353875500000008
|
14527
|
+
}
|
14528
|
+
],
|
14529
|
+
color: "primary",
|
14530
|
+
fill: false
|
14531
|
+
},
|
14532
|
+
"path27-8-2-4-5-1-9-2": {
|
14533
|
+
type: "path",
|
14534
|
+
points: [
|
14535
|
+
{
|
14536
|
+
x: -0.026406449999999637,
|
14537
|
+
y: -0.04765794999999784
|
14538
|
+
},
|
14539
|
+
{
|
14540
|
+
x: 0.02657345000000033,
|
14541
|
+
y: 0.13550885000000257
|
14542
|
+
}
|
14543
|
+
],
|
14544
|
+
color: "primary",
|
14545
|
+
fill: false
|
14546
|
+
},
|
14547
|
+
"path27-8-2-4-5-1-9-2-1": {
|
14548
|
+
type: "path",
|
14549
|
+
points: [
|
14550
|
+
{
|
14551
|
+
x: -0.026501049999999804,
|
14552
|
+
y: -0.047703750000000156
|
14553
|
+
},
|
14554
|
+
{
|
14555
|
+
x: -0.07948094999999977,
|
14556
|
+
y: 0.13546305000000203
|
14557
|
+
}
|
14558
|
+
],
|
14559
|
+
color: "primary",
|
14560
|
+
fill: false
|
14561
|
+
},
|
14562
|
+
"path27-8-2-4-5-1-9-2-1-2": {
|
14563
|
+
type: "path",
|
14564
|
+
points: [
|
14565
|
+
{
|
14566
|
+
x: -0.13244634999999993,
|
14567
|
+
y: -0.04776144999999943
|
14568
|
+
},
|
14569
|
+
{
|
14570
|
+
x: -0.07946644999999997,
|
14571
|
+
y: 0.13540535000000276
|
14572
|
+
}
|
14573
|
+
],
|
14574
|
+
color: "primary",
|
14575
|
+
fill: false
|
14576
|
+
},
|
14577
|
+
"path27-8-2-4-5-1-9-2-1-2-2": {
|
14578
|
+
type: "path",
|
14579
|
+
points: [
|
14580
|
+
{
|
14581
|
+
x: -0.13283204999999976,
|
14582
|
+
y: -0.047856349999998216
|
14583
|
+
},
|
14584
|
+
{
|
14585
|
+
x: -0.18581194999999973,
|
14586
|
+
y: 0.1353104500000022
|
14587
|
+
}
|
14588
|
+
],
|
14589
|
+
color: "primary",
|
14590
|
+
fill: false
|
14591
|
+
}
|
14592
|
+
},
|
14593
|
+
texts: {
|
14594
|
+
top1: {
|
14595
|
+
type: "text",
|
14596
|
+
text: "{REF}",
|
14597
|
+
x: -0.05143284999999986,
|
14598
|
+
y: 0.4200086500000033
|
14599
|
+
},
|
14600
|
+
bottom1: {
|
14601
|
+
type: "text",
|
14602
|
+
text: "{VAL}",
|
14603
|
+
x: -0.04241885000000023,
|
14604
|
+
y: -0.42000864999999976
|
14605
|
+
}
|
14606
|
+
},
|
14607
|
+
refblocks: {
|
14608
|
+
left1: {
|
14609
|
+
x: -0.46575425000000026,
|
14610
|
+
y: 0.037257550000001416
|
14611
|
+
},
|
14612
|
+
right1: {
|
14613
|
+
x: 0.4657542499999998,
|
14614
|
+
y: 0.03817785000000207
|
14615
|
+
}
|
14616
|
+
},
|
14617
|
+
bounds: {
|
14618
|
+
minX: -0.49391269100000024,
|
14619
|
+
maxX: 0.4939126909999998,
|
14620
|
+
minY: -0.42000864999999976,
|
14621
|
+
maxY: 0.4200086500000033,
|
14622
|
+
width: 0.987825382,
|
14623
|
+
height: 0.8400173000000031,
|
14624
|
+
centerX: -2220446049250313e-31,
|
14625
|
+
centerY: 17763568394002505e-31
|
14626
|
+
},
|
14627
|
+
circles: {}
|
14628
|
+
};
|
14629
|
+
|
14630
|
+
// symbols/resistor_down.ts
|
14631
|
+
var { paths: paths40, texts: texts53, bounds: bounds40, refblocks: refblocks40, circles: circles36 } = resistor_default;
|
14632
|
+
var resistor_down_default = modifySymbol({
|
14633
|
+
primitives: [
|
14634
|
+
...Object.values(paths40),
|
14635
|
+
...Object.values(circles36),
|
14636
|
+
{
|
14637
|
+
type: "text",
|
14638
|
+
text: "{REF}",
|
14639
|
+
x: -0.2,
|
14640
|
+
y: 0.2194553499999995
|
14641
|
+
},
|
14642
|
+
{
|
14643
|
+
type: "text",
|
14644
|
+
text: "{VAL}",
|
14645
|
+
x: 0.2,
|
14646
|
+
y: 0.2194553499999995
|
14647
|
+
}
|
14648
|
+
],
|
14649
|
+
ports: [
|
14650
|
+
{ ...refblocks40.left1, labels: ["1"] },
|
14651
|
+
// TODO add more "standard" labels
|
14652
|
+
{ ...refblocks40.right1, labels: ["2"] }
|
14653
|
+
// TODO add more "standard" labels
|
14654
|
+
],
|
14655
|
+
size: { width: bounds40.width, height: bounds40.height },
|
14656
|
+
center: { x: bounds40.centerX, y: bounds40.centerY }
|
14657
|
+
}).rotateRightFacingSymbol("down").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
|
14658
|
+
|
14659
|
+
// symbols/resistor_left.ts
|
14660
|
+
var { paths: paths41, texts: texts54, bounds: bounds41, refblocks: refblocks41, circles: circles37 } = resistor_default;
|
14661
|
+
var resistor_left_default = modifySymbol({
|
14662
|
+
primitives: [
|
14663
|
+
...Object.values(paths41),
|
14664
|
+
...Object.values(circles37),
|
14665
|
+
{
|
14666
|
+
type: "text",
|
14667
|
+
text: "{REF}",
|
14668
|
+
x: 0,
|
14669
|
+
y: -0.1704553499999995
|
14670
|
+
},
|
14671
|
+
{
|
14672
|
+
type: "text",
|
14673
|
+
text: "{VAL}",
|
14674
|
+
x: 0,
|
14675
|
+
y: 0.2294553499999995
|
14676
|
+
}
|
14677
|
+
],
|
14678
|
+
ports: [
|
14679
|
+
{ ...refblocks41.left1, labels: ["1"] },
|
14680
|
+
// TODO add more "standard" labels
|
14681
|
+
{ ...refblocks41.right1, labels: ["2"] }
|
14682
|
+
// TODO add more "standard" labels
|
14683
|
+
],
|
14684
|
+
size: { width: bounds41.width, height: bounds41.height },
|
14685
|
+
center: { x: bounds41.centerX, y: bounds41.centerY }
|
14686
|
+
}).rotateRightFacingSymbol("left").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_bottom").changeTextAnchor("{VAL}", "middle_top").build();
|
14687
|
+
|
14688
|
+
// symbols/resistor_right.ts
|
14689
|
+
var { paths: paths42, texts: texts55, bounds: bounds42, refblocks: refblocks42, circles: circles38 } = resistor_default;
|
14690
|
+
var resistor_right_default = modifySymbol({
|
14691
|
+
primitives: [
|
14692
|
+
...Object.values(paths42),
|
14693
|
+
...Object.values(circles38),
|
14694
|
+
{
|
14695
|
+
type: "text",
|
14696
|
+
text: "{REF}",
|
14697
|
+
x: 0,
|
14698
|
+
y: 0.2294553499999995
|
14699
|
+
},
|
14700
|
+
{
|
14701
|
+
type: "text",
|
14702
|
+
text: "{VAL}",
|
14703
|
+
x: 0,
|
14704
|
+
y: -0.1704553499999995
|
14705
|
+
}
|
14706
|
+
],
|
14707
|
+
ports: [
|
14708
|
+
{ ...refblocks42.left1, labels: ["1"] },
|
14709
|
+
// TODO add more "standard" labels
|
14710
|
+
{ ...refblocks42.right1, labels: ["2"] }
|
14711
|
+
// TODO add more "standard" labels
|
14712
|
+
],
|
14713
|
+
size: { width: bounds42.width, height: bounds42.height },
|
14714
|
+
center: { x: bounds42.centerX, y: bounds42.centerY }
|
14715
|
+
}).rotateRightFacingSymbol("right").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_bottom").changeTextAnchor("{VAL}", "middle_top").build();
|
14716
|
+
|
14717
|
+
// symbols/resistor_up.ts
|
14718
|
+
var { paths: paths43, texts: texts56, bounds: bounds43, refblocks: refblocks43, circles: circles39 } = resistor_default;
|
14719
|
+
var resistor_up_default = modifySymbol({
|
14720
|
+
primitives: [
|
14721
|
+
...Object.values(paths43),
|
14722
|
+
...Object.values(circles39),
|
14723
|
+
{
|
14724
|
+
type: "text",
|
14725
|
+
text: "{REF}",
|
14726
|
+
x: 0.2,
|
14727
|
+
y: -0.1404553499999995
|
14728
|
+
},
|
14729
|
+
{
|
14730
|
+
type: "text",
|
14731
|
+
text: "{VAL}",
|
14732
|
+
x: -0.2,
|
14733
|
+
y: -0.1494553499999995
|
14734
|
+
}
|
14735
|
+
],
|
14736
|
+
ports: [
|
14737
|
+
{ ...refblocks43.left1, labels: ["1"] },
|
14738
|
+
// TODO add more "standard" labels
|
14739
|
+
{ ...refblocks43.right1, labels: ["2"] }
|
14740
|
+
// TODO add more "standard" labels
|
14741
|
+
],
|
14742
|
+
size: { width: bounds43.width, height: bounds43.height },
|
14743
|
+
center: { x: bounds43.centerX, y: bounds43.centerY }
|
14744
|
+
}).rotateRightFacingSymbol("up").labelPort("left", ["1"]).labelPort("right", ["2"]).changeTextAnchor("{REF}", "middle_left").changeTextAnchor("{VAL}", "middle_left").build();
|
14745
|
+
|
14424
14746
|
// assets/generated/resonator.json
|
14425
14747
|
var resonator_default = {
|
14426
14748
|
paths: {
|
@@ -14767,11 +15089,11 @@ var resonator_default = {
|
|
14767
15089
|
};
|
14768
15090
|
|
14769
15091
|
// symbols/resonator_horz.ts
|
14770
|
-
var { paths:
|
15092
|
+
var { paths: paths44, texts: texts57, bounds: bounds44, refblocks: refblocks44, circles: circles40 } = resonator_default;
|
14771
15093
|
var resonator_horz_default = defineSymbol({
|
14772
15094
|
primitives: [
|
14773
|
-
...Object.values(
|
14774
|
-
...Object.values(
|
15095
|
+
...Object.values(paths44),
|
15096
|
+
...Object.values(circles40),
|
14775
15097
|
// { ...texts.top1, anchor: "middle_left" },
|
14776
15098
|
// { ...texts.bottom1, anchor: "middle_left" },
|
14777
15099
|
{
|
@@ -14790,15 +15112,15 @@ var resonator_horz_default = defineSymbol({
|
|
14790
15112
|
}
|
14791
15113
|
],
|
14792
15114
|
ports: [
|
14793
|
-
{ ...
|
15115
|
+
{ ...refblocks44.left1, labels: ["1"] },
|
14794
15116
|
// TODO add more "standard" labels
|
14795
|
-
{ ...
|
15117
|
+
{ ...refblocks44.right1, labels: ["2"] },
|
14796
15118
|
// TODO add more "standard" labels
|
14797
|
-
{ ...
|
15119
|
+
{ ...refblocks44.right2, labels: ["3"] }
|
14798
15120
|
// TODO add more "standard" labels
|
14799
15121
|
],
|
14800
|
-
size: { width:
|
14801
|
-
center: { x:
|
15122
|
+
size: { width: bounds44.width, height: bounds44.height },
|
15123
|
+
center: { x: bounds44.centerX, y: bounds44.centerY }
|
14802
15124
|
});
|
14803
15125
|
|
14804
15126
|
// symbols/resonator_vert.ts
|
@@ -15154,15 +15476,15 @@ var silicon_controlled_rectifier_default = {
|
|
15154
15476
|
};
|
15155
15477
|
|
15156
15478
|
// symbols/silicon_controlled_rectifier_horz.ts
|
15157
|
-
var { paths:
|
15479
|
+
var { paths: paths45, texts: texts58, bounds: bounds45, refblocks: refblocks45, circles: circles41 } = silicon_controlled_rectifier_default;
|
15158
15480
|
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();
|
15159
15481
|
|
15160
15482
|
// symbols/silicon_controlled_rectifier_vert.ts
|
15161
15483
|
var rotatedSymbol19 = rotateSymbol(silicon_controlled_rectifier_horz_default);
|
15162
|
-
var
|
15484
|
+
var texts59 = rotatedSymbol19.primitives.filter(
|
15163
15485
|
(primitive) => primitive.type === "text"
|
15164
15486
|
);
|
15165
|
-
var ref34 =
|
15487
|
+
var ref34 = texts59.find((text) => text.text === "{REF}");
|
15166
15488
|
ref34.y = 0;
|
15167
15489
|
ref34.anchor = "middle_left";
|
15168
15490
|
var silicon_controlled_rectifier_vert_default = rotatedSymbol19;
|
@@ -18722,7 +19044,7 @@ var step_recovery_diode_default = {
|
|
18722
19044
|
};
|
18723
19045
|
|
18724
19046
|
// symbols/step_recovery_diode_horz.ts
|
18725
|
-
var { paths:
|
19047
|
+
var { paths: paths46, texts: texts60, bounds: bounds46, refblocks: refblocks46, circles: circles42 } = step_recovery_diode_default;
|
18726
19048
|
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();
|
18727
19049
|
|
18728
19050
|
// symbols/step_recovery_diode_vert.ts
|
@@ -18815,11 +19137,11 @@ var tachometer_default = {
|
|
18815
19137
|
};
|
18816
19138
|
|
18817
19139
|
// symbols/tachometer_horz.ts
|
18818
|
-
var { paths:
|
19140
|
+
var { paths: paths47, texts: texts61, bounds: bounds47, refblocks: refblocks47, circles: circles43 } = tachometer_default;
|
18819
19141
|
var tachometer_horz_default = defineSymbol({
|
18820
19142
|
primitives: [
|
18821
|
-
...Object.values(
|
18822
|
-
...Object.values(
|
19143
|
+
...Object.values(paths47),
|
19144
|
+
...Object.values(circles43),
|
18823
19145
|
{
|
18824
19146
|
type: "text",
|
18825
19147
|
text: "{REF}",
|
@@ -18834,16 +19156,16 @@ var tachometer_horz_default = defineSymbol({
|
|
18834
19156
|
y: 0.35,
|
18835
19157
|
anchor: "middle_bottom"
|
18836
19158
|
},
|
18837
|
-
{ ...
|
19159
|
+
{ ...texts61.left1, y: 0.01, anchor: "center", fontSize: 0.2 }
|
18838
19160
|
],
|
18839
19161
|
ports: [
|
18840
|
-
{ ...
|
19162
|
+
{ ...refblocks47.left1, labels: ["1"] },
|
18841
19163
|
// TODO add more "standard" labels
|
18842
|
-
{ ...
|
19164
|
+
{ ...refblocks47.right1, labels: ["2"] }
|
18843
19165
|
// TODO add more "standard" labels
|
18844
19166
|
],
|
18845
|
-
size: { width:
|
18846
|
-
center: { x:
|
19167
|
+
size: { width: bounds47.width, height: bounds47.height },
|
19168
|
+
center: { x: bounds47.centerX, y: bounds47.centerY }
|
18847
19169
|
});
|
18848
19170
|
|
18849
19171
|
// symbols/tachometer_vert.ts
|
@@ -19214,16 +19536,16 @@ var triac_default = {
|
|
19214
19536
|
};
|
19215
19537
|
|
19216
19538
|
// symbols/triac_horz.ts
|
19217
|
-
var { paths:
|
19539
|
+
var { paths: paths48, texts: texts62, bounds: bounds48, refblocks: refblocks48, circles: circles44 } = triac_default;
|
19218
19540
|
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();
|
19219
19541
|
|
19220
19542
|
// symbols/triac_vert.ts
|
19221
19543
|
var rotatedSymbol21 = rotateSymbol(triac_horz_default);
|
19222
|
-
var
|
19544
|
+
var texts63 = rotatedSymbol21.primitives.filter(
|
19223
19545
|
(primitive) => primitive.type === "text"
|
19224
19546
|
);
|
19225
|
-
var ref50 =
|
19226
|
-
var val45 =
|
19547
|
+
var ref50 = texts63.find((text) => text.text === "{REF}");
|
19548
|
+
var val45 = texts63.find((text) => text.text === "{VAL}");
|
19227
19549
|
ref50.y = 0;
|
19228
19550
|
val45.y = 0;
|
19229
19551
|
var triac_vert_default = rotatedSymbol21;
|
@@ -19390,22 +19712,22 @@ var tunnel_diode_default = {
|
|
19390
19712
|
};
|
19391
19713
|
|
19392
19714
|
// symbols/tunnel_diode_horz.ts
|
19393
|
-
var { paths:
|
19715
|
+
var { paths: paths49, texts: texts64, bounds: bounds49, refblocks: refblocks49, circles: circles45 } = tunnel_diode_default;
|
19394
19716
|
var tunnel_diode_horz_default = defineSymbol({
|
19395
19717
|
primitives: [
|
19396
|
-
...Object.values(
|
19397
|
-
...Object.values(
|
19398
|
-
{ ...
|
19399
|
-
{ ...
|
19718
|
+
...Object.values(paths49),
|
19719
|
+
...Object.values(circles45),
|
19720
|
+
{ ...texts64.top1, anchor: "middle_bottom" },
|
19721
|
+
{ ...texts64.bottom1, anchor: "middle_top" }
|
19400
19722
|
],
|
19401
19723
|
ports: [
|
19402
|
-
{ ...
|
19724
|
+
{ ...refblocks49.left1, labels: ["1"] },
|
19403
19725
|
// TODO add more "standard" labels
|
19404
|
-
{ ...
|
19726
|
+
{ ...refblocks49.right1, labels: ["2"] }
|
19405
19727
|
// TODO add more "standard" labels
|
19406
19728
|
],
|
19407
|
-
size: { width:
|
19408
|
-
center: { x:
|
19729
|
+
size: { width: bounds49.width, height: bounds49.height },
|
19730
|
+
center: { x: bounds49.centerX, y: bounds49.centerY }
|
19409
19731
|
});
|
19410
19732
|
|
19411
19733
|
// symbols/tunnel_diode_vert.ts
|
@@ -19588,34 +19910,34 @@ var unijunction_transistor_default = {
|
|
19588
19910
|
};
|
19589
19911
|
|
19590
19912
|
// symbols/unijunction_transistor_horz.ts
|
19591
|
-
var { paths:
|
19913
|
+
var { paths: paths50, texts: texts65, bounds: bounds50, refblocks: refblocks50, circles: circles46 } = unijunction_transistor_default;
|
19592
19914
|
var unijunction_transistor_horz_default = defineSymbol({
|
19593
19915
|
primitives: [
|
19594
|
-
...Object.values(
|
19595
|
-
...Object.values(
|
19596
|
-
{ ...
|
19597
|
-
{ ...
|
19916
|
+
...Object.values(paths50),
|
19917
|
+
...Object.values(circles46),
|
19918
|
+
{ ...texts65.top1, anchor: "middle_left" },
|
19919
|
+
{ ...texts65.bottom1, anchor: "middle_right" }
|
19598
19920
|
],
|
19599
19921
|
ports: [
|
19600
|
-
{ ...
|
19922
|
+
{ ...refblocks50.top1, labels: ["1"] },
|
19601
19923
|
// TODO add more "standard" labels
|
19602
|
-
{ ...
|
19924
|
+
{ ...refblocks50.bottom1, labels: ["2"] },
|
19603
19925
|
// TODO add more "standard" labels
|
19604
|
-
{ ...
|
19926
|
+
{ ...refblocks50.left1, labels: ["3"] }
|
19605
19927
|
// TODO add more "standard" labels
|
19606
19928
|
],
|
19607
|
-
size: { width:
|
19608
|
-
center: { x:
|
19929
|
+
size: { width: bounds50.width, height: bounds50.height },
|
19930
|
+
center: { x: bounds50.centerX, y: bounds50.centerY }
|
19609
19931
|
});
|
19610
19932
|
|
19611
19933
|
// symbols/unijunction_transistor_vert.ts
|
19612
19934
|
var rotatedSymbol22 = rotateSymbol(unijunction_transistor_horz_default);
|
19613
|
-
var
|
19935
|
+
var texts66 = rotatedSymbol22.primitives.filter(
|
19614
19936
|
(primitive) => primitive.type === "text"
|
19615
19937
|
);
|
19616
|
-
var ref52 =
|
19938
|
+
var ref52 = texts66.find((text) => text.text === "{REF}");
|
19617
19939
|
ref52.y = 0.1;
|
19618
|
-
var val47 =
|
19940
|
+
var val47 = texts66.find((text) => text.text === "{VAL}");
|
19619
19941
|
val47.y = 0.1;
|
19620
19942
|
val47.x = -0.4;
|
19621
19943
|
var unijunction_transistor_vert_default = rotatedSymbol22;
|
@@ -19707,33 +20029,33 @@ var var_meter_default = {
|
|
19707
20029
|
};
|
19708
20030
|
|
19709
20031
|
// symbols/var_meter_horz.ts
|
19710
|
-
var { paths:
|
20032
|
+
var { paths: paths51, texts: texts67, bounds: bounds51, refblocks: refblocks51, circles: circles47 } = var_meter_default;
|
19711
20033
|
var var_meter_horz_default = defineSymbol({
|
19712
20034
|
primitives: [
|
19713
|
-
...Object.values(
|
19714
|
-
...Object.values(
|
20035
|
+
...Object.values(paths51),
|
20036
|
+
...Object.values(circles47),
|
19715
20037
|
{
|
19716
|
-
...
|
20038
|
+
...texts67.top1,
|
19717
20039
|
x: 0,
|
19718
20040
|
y: -0.3594553499999995,
|
19719
20041
|
anchor: "middle_top"
|
19720
20042
|
},
|
19721
20043
|
{
|
19722
|
-
...
|
20044
|
+
...texts67.bottom1,
|
19723
20045
|
x: 0,
|
19724
20046
|
y: 0.35,
|
19725
20047
|
anchor: "middle_bottom"
|
19726
20048
|
},
|
19727
|
-
{ ...
|
20049
|
+
{ ...texts67.left1, x: -0.02, y: 0.01, fontSize: 0.2, anchor: "center" }
|
19728
20050
|
],
|
19729
20051
|
ports: [
|
19730
|
-
{ ...
|
20052
|
+
{ ...refblocks51.left1, labels: ["1"] },
|
19731
20053
|
// TODO add more "standard" labels
|
19732
|
-
{ ...
|
20054
|
+
{ ...refblocks51.right1, labels: ["2"] }
|
19733
20055
|
// TODO add more "standard" labels
|
19734
20056
|
],
|
19735
|
-
size: { width:
|
19736
|
-
center: { x:
|
20057
|
+
size: { width: bounds51.width, height: bounds51.height },
|
20058
|
+
center: { x: bounds51.centerX, y: bounds51.centerY }
|
19737
20059
|
});
|
19738
20060
|
|
19739
20061
|
// symbols/var_meter_vert.ts
|
@@ -19886,22 +20208,22 @@ var varactor_diode_default = {
|
|
19886
20208
|
};
|
19887
20209
|
|
19888
20210
|
// symbols/varactor_diode_horz.ts
|
19889
|
-
var { paths:
|
20211
|
+
var { paths: paths52, texts: texts68, bounds: bounds52, refblocks: refblocks52, circles: circles48 } = varactor_diode_default;
|
19890
20212
|
var varactor_diode_horz_default = defineSymbol({
|
19891
20213
|
primitives: [
|
19892
|
-
...Object.values(
|
19893
|
-
...Object.values(
|
19894
|
-
{ ...
|
19895
|
-
{ ...
|
20214
|
+
...Object.values(paths52),
|
20215
|
+
...Object.values(circles48),
|
20216
|
+
{ ...texts68.top1, anchor: "middle_bottom" },
|
20217
|
+
{ ...texts68.bottom1, anchor: "middle_top" }
|
19896
20218
|
],
|
19897
20219
|
ports: [
|
19898
|
-
{ ...
|
20220
|
+
{ ...refblocks52.left1, labels: ["1"] },
|
19899
20221
|
// TODO add more "standard" labels
|
19900
|
-
{ ...
|
20222
|
+
{ ...refblocks52.right1, labels: ["2"] }
|
19901
20223
|
// TODO add more "standard" labels
|
19902
20224
|
],
|
19903
|
-
size: { width:
|
19904
|
-
center: { x:
|
20225
|
+
size: { width: bounds52.width, height: bounds52.height },
|
20226
|
+
center: { x: bounds52.centerX, y: bounds52.centerY }
|
19905
20227
|
});
|
19906
20228
|
|
19907
20229
|
// symbols/varactor_diode_vert.ts
|
@@ -20049,26 +20371,26 @@ var varistor_default = {
|
|
20049
20371
|
};
|
20050
20372
|
|
20051
20373
|
// symbols/varistor_horz.ts
|
20052
|
-
var { paths:
|
20374
|
+
var { paths: paths53, texts: texts69, bounds: bounds53, refblocks: refblocks53 } = varistor_default;
|
20053
20375
|
var varistor_horz_default = defineSymbol({
|
20054
20376
|
primitives: [
|
20055
|
-
...Object.values(
|
20056
|
-
{ ...
|
20057
|
-
{ ...
|
20377
|
+
...Object.values(paths53),
|
20378
|
+
{ ...texts69.top1, anchor: "middle_left" },
|
20379
|
+
{ ...texts69.bottom1, anchor: "middle_right" }
|
20058
20380
|
],
|
20059
20381
|
ports: [
|
20060
20382
|
{
|
20061
|
-
...
|
20383
|
+
...refblocks53.left1,
|
20062
20384
|
labels: ["1", "-"]
|
20063
20385
|
},
|
20064
20386
|
{
|
20065
|
-
...
|
20387
|
+
...refblocks53.right1,
|
20066
20388
|
labels: ["2", "+"]
|
20067
20389
|
}
|
20068
20390
|
],
|
20069
|
-
size: { width:
|
20391
|
+
size: { width: bounds53.width, height: bounds53.height },
|
20070
20392
|
//{ width: 1, height: 0.24 },
|
20071
|
-
center: { x:
|
20393
|
+
center: { x: bounds53.centerX, y: bounds53.centerY }
|
20072
20394
|
});
|
20073
20395
|
|
20074
20396
|
// symbols/varistor_vert.ts
|
@@ -20161,11 +20483,11 @@ var varmeter_default = {
|
|
20161
20483
|
};
|
20162
20484
|
|
20163
20485
|
// symbols/varmeter_horz.ts
|
20164
|
-
var { paths:
|
20486
|
+
var { paths: paths54, texts: texts70, bounds: bounds54, refblocks: refblocks54, circles: circles49 } = varmeter_default;
|
20165
20487
|
var varmeter_horz_default = defineSymbol({
|
20166
20488
|
primitives: [
|
20167
|
-
...Object.values(
|
20168
|
-
...Object.values(
|
20489
|
+
...Object.values(paths54),
|
20490
|
+
...Object.values(circles49),
|
20169
20491
|
{
|
20170
20492
|
type: "text",
|
20171
20493
|
text: "{REF}",
|
@@ -20180,16 +20502,16 @@ var varmeter_horz_default = defineSymbol({
|
|
20180
20502
|
y: 0.35,
|
20181
20503
|
anchor: "middle_bottom"
|
20182
20504
|
},
|
20183
|
-
{ ...
|
20505
|
+
{ ...texts70.left1, anchor: "center", y: 0.02, fontSize: 0.2 }
|
20184
20506
|
],
|
20185
20507
|
ports: [
|
20186
|
-
{ ...
|
20508
|
+
{ ...refblocks54.left1, labels: ["1"] },
|
20187
20509
|
// TODO add more "standard" labels
|
20188
|
-
{ ...
|
20510
|
+
{ ...refblocks54.right1, labels: ["2"] }
|
20189
20511
|
// TODO add more "standard" labels
|
20190
20512
|
],
|
20191
|
-
size: { width:
|
20192
|
-
center: { x:
|
20513
|
+
size: { width: bounds54.width, height: bounds54.height },
|
20514
|
+
center: { x: bounds54.centerX, y: bounds54.centerY }
|
20193
20515
|
});
|
20194
20516
|
|
20195
20517
|
// symbols/varmeter_vert.ts
|
@@ -20306,7 +20628,7 @@ var volt_meter_default = {
|
|
20306
20628
|
};
|
20307
20629
|
|
20308
20630
|
// symbols/volt_meter_horz.ts
|
20309
|
-
var { paths:
|
20631
|
+
var { paths: paths55, texts: texts71, bounds: bounds55, circles: circles50, refblocks: refblocks55 } = volt_meter_default;
|
20310
20632
|
var volt_meter_horz_default = modifySymbol(volt_meter_default).changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_bottom").build();
|
20311
20633
|
|
20312
20634
|
// symbols/volt_meter_vert.ts
|
@@ -20399,11 +20721,11 @@ var watt_hour_meter_default = {
|
|
20399
20721
|
};
|
20400
20722
|
|
20401
20723
|
// symbols/watt_hour_meter_horz.ts
|
20402
|
-
var { paths:
|
20724
|
+
var { paths: paths56, texts: texts72, bounds: bounds56, refblocks: refblocks56, circles: circles51 } = watt_hour_meter_default;
|
20403
20725
|
var watt_hour_meter_horz_default = defineSymbol({
|
20404
20726
|
primitives: [
|
20405
|
-
...Object.values(
|
20406
|
-
...Object.values(
|
20727
|
+
...Object.values(paths56),
|
20728
|
+
...Object.values(circles51),
|
20407
20729
|
{
|
20408
20730
|
type: "text",
|
20409
20731
|
text: "{REF}",
|
@@ -20418,16 +20740,16 @@ var watt_hour_meter_horz_default = defineSymbol({
|
|
20418
20740
|
y: 0.35,
|
20419
20741
|
anchor: "middle_bottom"
|
20420
20742
|
},
|
20421
|
-
{ ...
|
20743
|
+
{ ...texts72.left1, anchor: "center", y: 0.01, fontSize: 0.2 }
|
20422
20744
|
],
|
20423
20745
|
ports: [
|
20424
|
-
{ ...
|
20746
|
+
{ ...refblocks56.left1, labels: ["1"] },
|
20425
20747
|
// TODO add more "standard" labels
|
20426
|
-
{ ...
|
20748
|
+
{ ...refblocks56.right1, labels: ["2"] }
|
20427
20749
|
// TODO add more "standard" labels
|
20428
20750
|
],
|
20429
|
-
size: { width:
|
20430
|
-
center: { x:
|
20751
|
+
size: { width: bounds56.width, height: bounds56.height },
|
20752
|
+
center: { x: bounds56.centerX, y: bounds56.centerY }
|
20431
20753
|
});
|
20432
20754
|
|
20433
20755
|
// symbols/watt_hour_meter_vert.ts
|
@@ -20531,11 +20853,11 @@ var wattmeter_default = {
|
|
20531
20853
|
};
|
20532
20854
|
|
20533
20855
|
// symbols/wattmeter_horz.ts
|
20534
|
-
var { paths:
|
20856
|
+
var { paths: paths57, texts: texts73, bounds: bounds57, refblocks: refblocks57, circles: circles52 } = wattmeter_default;
|
20535
20857
|
var wattmeter_horz_default = defineSymbol({
|
20536
20858
|
primitives: [
|
20537
|
-
...Object.values(
|
20538
|
-
...Object.values(
|
20859
|
+
...Object.values(paths57),
|
20860
|
+
...Object.values(circles52),
|
20539
20861
|
{
|
20540
20862
|
type: "text",
|
20541
20863
|
text: "{REF}",
|
@@ -20550,16 +20872,16 @@ var wattmeter_horz_default = defineSymbol({
|
|
20550
20872
|
y: 0.35,
|
20551
20873
|
anchor: "middle_bottom"
|
20552
20874
|
},
|
20553
|
-
{ ...
|
20875
|
+
{ ...texts73.left1, anchor: "center", y: 0.01, fontSize: 0.3 }
|
20554
20876
|
],
|
20555
20877
|
ports: [
|
20556
|
-
{ ...
|
20878
|
+
{ ...refblocks57.left1, labels: ["1"] },
|
20557
20879
|
// TODO add more "standard" labels
|
20558
|
-
{ ...
|
20880
|
+
{ ...refblocks57.right1, labels: ["2"] }
|
20559
20881
|
// TODO add more "standard" labels
|
20560
20882
|
],
|
20561
|
-
size: { width:
|
20562
|
-
center: { x:
|
20883
|
+
size: { width: bounds57.width, height: bounds57.height },
|
20884
|
+
center: { x: bounds57.centerX, y: bounds57.centerY }
|
20563
20885
|
});
|
20564
20886
|
|
20565
20887
|
// symbols/wattmeter_vert.ts
|
@@ -20723,22 +21045,22 @@ var zener_diode_default = {
|
|
20723
21045
|
};
|
20724
21046
|
|
20725
21047
|
// symbols/zener_diode_horz.ts
|
20726
|
-
var { paths:
|
21048
|
+
var { paths: paths58, texts: texts74, bounds: bounds58, refblocks: refblocks58, circles: circles53 } = zener_diode_default;
|
20727
21049
|
var zener_diode_horz_default = defineSymbol({
|
20728
21050
|
primitives: [
|
20729
|
-
...Object.values(
|
20730
|
-
...Object.values(
|
20731
|
-
{ ...
|
20732
|
-
{ ...
|
21051
|
+
...Object.values(paths58),
|
21052
|
+
...Object.values(circles53),
|
21053
|
+
{ ...texts74.top1, anchor: "middle_bottom" },
|
21054
|
+
{ ...texts74.bottom1, anchor: "middle_top" }
|
20733
21055
|
],
|
20734
21056
|
ports: [
|
20735
|
-
{ ...
|
21057
|
+
{ ...refblocks58.left1, labels: ["1"] },
|
20736
21058
|
// TODO add more "standard" labels
|
20737
|
-
{ ...
|
21059
|
+
{ ...refblocks58.right1, labels: ["2"] }
|
20738
21060
|
// TODO add more "standard" labels
|
20739
21061
|
],
|
20740
|
-
size: { width:
|
20741
|
-
center: { x:
|
21062
|
+
size: { width: bounds58.width, height: bounds58.height },
|
21063
|
+
center: { x: bounds58.centerX, y: bounds58.centerY }
|
20742
21064
|
});
|
20743
21065
|
|
20744
21066
|
// symbols/zener_diode_vert.ts
|
@@ -20887,6 +21209,10 @@ var symbols_index_default = {
|
|
20887
21209
|
"push_button_normally_open_momentary_vert": push_button_normally_open_momentary_vert_default,
|
20888
21210
|
"rectifier_diode_horz": rectifier_diode_horz_default,
|
20889
21211
|
"rectifier_diode_vert": rectifier_diode_vert_default,
|
21212
|
+
"resistor_down": resistor_down_default,
|
21213
|
+
"resistor_left": resistor_left_default,
|
21214
|
+
"resistor_right": resistor_right_default,
|
21215
|
+
"resistor_up": resistor_up_default,
|
20890
21216
|
"resonator_horz": resonator_horz_default,
|
20891
21217
|
"resonator_vert": resonator_vert_default,
|
20892
21218
|
"schottky_diode_horz": schottky_diode_horz_default,
|