@tscircuit/core 0.0.449 → 0.0.450
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 +7 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -9847,6 +9847,7 @@ declare class Inductor extends NormalComponent<typeof inductorProps, PassivePort
|
|
|
9847
9847
|
}>;
|
|
9848
9848
|
sourceFtype: "simple_inductor";
|
|
9849
9849
|
};
|
|
9850
|
+
_getSchematicSymbolDisplayValue(): string | undefined;
|
|
9850
9851
|
initPorts(): void;
|
|
9851
9852
|
doInitialSourceRender(): void;
|
|
9852
9853
|
}
|
package/dist/index.js
CHANGED
|
@@ -8932,6 +8932,7 @@ var Resonator = class extends NormalComponent {
|
|
|
8932
8932
|
|
|
8933
8933
|
// lib/components/normal-components/Inductor.ts
|
|
8934
8934
|
import { inductorProps } from "@tscircuit/props";
|
|
8935
|
+
import { formatSiUnit as formatSiUnit4 } from "format-si-unit";
|
|
8935
8936
|
var Inductor = class extends NormalComponent {
|
|
8936
8937
|
get config() {
|
|
8937
8938
|
return {
|
|
@@ -8941,6 +8942,9 @@ var Inductor = class extends NormalComponent {
|
|
|
8941
8942
|
sourceFtype: FTYPE.simple_inductor
|
|
8942
8943
|
};
|
|
8943
8944
|
}
|
|
8945
|
+
_getSchematicSymbolDisplayValue() {
|
|
8946
|
+
return `${formatSiUnit4(this._parsedProps.inductance)}H`;
|
|
8947
|
+
}
|
|
8944
8948
|
initPorts() {
|
|
8945
8949
|
super.initPorts({
|
|
8946
8950
|
additionalAliases: {
|
|
@@ -9040,7 +9044,7 @@ var PushButton = class extends NormalComponent {
|
|
|
9040
9044
|
|
|
9041
9045
|
// lib/components/normal-components/Crystal.ts
|
|
9042
9046
|
import { crystalProps } from "@tscircuit/props";
|
|
9043
|
-
import { formatSiUnit as
|
|
9047
|
+
import { formatSiUnit as formatSiUnit5 } from "format-si-unit";
|
|
9044
9048
|
var Crystal = class extends NormalComponent {
|
|
9045
9049
|
// @ts-ignore
|
|
9046
9050
|
get config() {
|
|
@@ -9067,7 +9071,7 @@ var Crystal = class extends NormalComponent {
|
|
|
9067
9071
|
});
|
|
9068
9072
|
}
|
|
9069
9073
|
_getSchematicSymbolDisplayValue() {
|
|
9070
|
-
return `${
|
|
9074
|
+
return `${formatSiUnit5(this._parsedProps.frequency)}Hz`;
|
|
9071
9075
|
}
|
|
9072
9076
|
doInitialSourceRender() {
|
|
9073
9077
|
const { db } = this.root;
|
|
@@ -9319,7 +9323,7 @@ import { identity as identity4 } from "transformation-matrix";
|
|
|
9319
9323
|
var package_default = {
|
|
9320
9324
|
name: "@tscircuit/core",
|
|
9321
9325
|
type: "module",
|
|
9322
|
-
version: "0.0.
|
|
9326
|
+
version: "0.0.449",
|
|
9323
9327
|
types: "dist/index.d.ts",
|
|
9324
9328
|
main: "dist/index.js",
|
|
9325
9329
|
module: "dist/index.js",
|