@tscircuit/core 0.0.625 → 0.0.626
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 +1 -0
- package/dist/index.js +13 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2705,6 +2705,7 @@ declare class Capacitor extends NormalComponent<typeof capacitorProps, Polarized
|
|
|
2705
2705
|
}>;
|
|
2706
2706
|
sourceFtype: "simple_capacitor";
|
|
2707
2707
|
};
|
|
2708
|
+
initPorts(): void;
|
|
2708
2709
|
_getSchematicSymbolDisplayValue(): string | undefined;
|
|
2709
2710
|
doInitialCreateNetsFromProps(): void;
|
|
2710
2711
|
doInitialCreateTracesFromProps(): void;
|
package/dist/index.js
CHANGED
|
@@ -10068,6 +10068,18 @@ var Capacitor = class extends NormalComponent {
|
|
|
10068
10068
|
sourceFtype: FTYPE.simple_capacitor
|
|
10069
10069
|
};
|
|
10070
10070
|
}
|
|
10071
|
+
initPorts() {
|
|
10072
|
+
if (typeof this.props.footprint === "string") {
|
|
10073
|
+
super.initPorts({
|
|
10074
|
+
additionalAliases: {
|
|
10075
|
+
pin1: ["anode", "pos"],
|
|
10076
|
+
pin2: ["cathode", "neg"]
|
|
10077
|
+
}
|
|
10078
|
+
});
|
|
10079
|
+
} else {
|
|
10080
|
+
super.initPorts();
|
|
10081
|
+
}
|
|
10082
|
+
}
|
|
10071
10083
|
_getSchematicSymbolDisplayValue() {
|
|
10072
10084
|
const capacitanceDisplay = `${formatSiUnit(this._parsedProps.capacitance)}F`;
|
|
10073
10085
|
if (this._parsedProps.schShowRatings && this._parsedProps.maxVoltageRating) {
|
|
@@ -12313,7 +12325,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
12313
12325
|
var package_default = {
|
|
12314
12326
|
name: "@tscircuit/core",
|
|
12315
12327
|
type: "module",
|
|
12316
|
-
version: "0.0.
|
|
12328
|
+
version: "0.0.625",
|
|
12317
12329
|
types: "dist/index.d.ts",
|
|
12318
12330
|
main: "dist/index.js",
|
|
12319
12331
|
module: "dist/index.js",
|