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