@tscircuit/core 0.0.449 → 0.0.451

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 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
  }
@@ -10260,6 +10261,7 @@ declare class Potentiometer extends NormalComponent<typeof potentiometerProps> {
10260
10261
  }>;
10261
10262
  shouldRenderAsSchematicBox: boolean;
10262
10263
  };
10264
+ _getSchematicSymbolDisplayValue(): string | undefined;
10263
10265
  doInitialSourceRender(): void;
10264
10266
  }
10265
10267
 
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: {
@@ -8965,6 +8969,7 @@ var Inductor = class extends NormalComponent {
8965
8969
 
8966
8970
  // lib/components/normal-components/Potentiometer.ts
8967
8971
  import { potentiometerProps } from "@tscircuit/props";
8972
+ import { formatSiUnit as formatSiUnit5 } from "format-si-unit";
8968
8973
  function getPotentiometerSymbolName(variant) {
8969
8974
  switch (variant) {
8970
8975
  case "three_pin":
@@ -8984,6 +8989,9 @@ var Potentiometer = class extends NormalComponent {
8984
8989
  shouldRenderAsSchematicBox: false
8985
8990
  };
8986
8991
  }
8992
+ _getSchematicSymbolDisplayValue() {
8993
+ return `${formatSiUnit5(this._parsedProps.maxResistance)}\u03A9`;
8994
+ }
8987
8995
  doInitialSourceRender() {
8988
8996
  const { db } = this.root;
8989
8997
  const { _parsedProps: props } = this;
@@ -9040,7 +9048,7 @@ var PushButton = class extends NormalComponent {
9040
9048
 
9041
9049
  // lib/components/normal-components/Crystal.ts
9042
9050
  import { crystalProps } from "@tscircuit/props";
9043
- import { formatSiUnit as formatSiUnit4 } from "format-si-unit";
9051
+ import { formatSiUnit as formatSiUnit6 } from "format-si-unit";
9044
9052
  var Crystal = class extends NormalComponent {
9045
9053
  // @ts-ignore
9046
9054
  get config() {
@@ -9067,7 +9075,7 @@ var Crystal = class extends NormalComponent {
9067
9075
  });
9068
9076
  }
9069
9077
  _getSchematicSymbolDisplayValue() {
9070
- return `${formatSiUnit4(this._parsedProps.frequency)}Hz`;
9078
+ return `${formatSiUnit6(this._parsedProps.frequency)}Hz`;
9071
9079
  }
9072
9080
  doInitialSourceRender() {
9073
9081
  const { db } = this.root;
@@ -9319,7 +9327,7 @@ import { identity as identity4 } from "transformation-matrix";
9319
9327
  var package_default = {
9320
9328
  name: "@tscircuit/core",
9321
9329
  type: "module",
9322
- version: "0.0.448",
9330
+ version: "0.0.450",
9323
9331
  types: "dist/index.d.ts",
9324
9332
  main: "dist/index.js",
9325
9333
  module: "dist/index.js",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.449",
4
+ "version": "0.0.451",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",