@tscircuit/core 0.0.151 → 0.0.152
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 +38 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3874,8 +3874,20 @@ var Capacitor = class extends NormalComponent {
|
|
|
3874
3874
|
};
|
|
3875
3875
|
}
|
|
3876
3876
|
initPorts() {
|
|
3877
|
-
this.add(
|
|
3878
|
-
|
|
3877
|
+
this.add(
|
|
3878
|
+
new Port({
|
|
3879
|
+
name: "pin1",
|
|
3880
|
+
pinNumber: 1,
|
|
3881
|
+
aliases: ["anode", "pos", "left"]
|
|
3882
|
+
})
|
|
3883
|
+
);
|
|
3884
|
+
this.add(
|
|
3885
|
+
new Port({
|
|
3886
|
+
name: "pin2",
|
|
3887
|
+
pinNumber: 2,
|
|
3888
|
+
aliases: ["cathode", "neg", "right"]
|
|
3889
|
+
})
|
|
3890
|
+
);
|
|
3879
3891
|
}
|
|
3880
3892
|
doInitialCreateNetsFromProps() {
|
|
3881
3893
|
this._createNetsFromProps([
|
|
@@ -3967,10 +3979,18 @@ var Diode = class extends NormalComponent {
|
|
|
3967
3979
|
}
|
|
3968
3980
|
initPorts() {
|
|
3969
3981
|
this.add(
|
|
3970
|
-
new Port({
|
|
3982
|
+
new Port({
|
|
3983
|
+
name: "pin1",
|
|
3984
|
+
pinNumber: 1,
|
|
3985
|
+
aliases: ["anode", "pos", "left"]
|
|
3986
|
+
})
|
|
3971
3987
|
);
|
|
3972
3988
|
this.add(
|
|
3973
|
-
new Port({
|
|
3989
|
+
new Port({
|
|
3990
|
+
name: "pin2",
|
|
3991
|
+
pinNumber: 2,
|
|
3992
|
+
aliases: ["cathode", "neg", "right"]
|
|
3993
|
+
})
|
|
3974
3994
|
);
|
|
3975
3995
|
}
|
|
3976
3996
|
pos = this.portMap.pin1;
|
|
@@ -4032,8 +4052,20 @@ var Led = class extends NormalComponent {
|
|
|
4032
4052
|
};
|
|
4033
4053
|
}
|
|
4034
4054
|
initPorts() {
|
|
4035
|
-
this.add(
|
|
4036
|
-
|
|
4055
|
+
this.add(
|
|
4056
|
+
new Port({
|
|
4057
|
+
name: "pin1",
|
|
4058
|
+
pinNumber: 1,
|
|
4059
|
+
aliases: ["anode", "pos", "left"]
|
|
4060
|
+
})
|
|
4061
|
+
);
|
|
4062
|
+
this.add(
|
|
4063
|
+
new Port({
|
|
4064
|
+
name: "pin2",
|
|
4065
|
+
pinNumber: 2,
|
|
4066
|
+
aliases: ["cathode", "neg", "right"]
|
|
4067
|
+
})
|
|
4068
|
+
);
|
|
4037
4069
|
}
|
|
4038
4070
|
pos = this.portMap.pin1;
|
|
4039
4071
|
anode = this.portMap.pin1;
|