@tscircuit/core 0.0.623 → 0.0.624

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
@@ -11572,6 +11572,7 @@ declare class Resonator extends NormalComponent<typeof resonatorProps> {
11572
11572
  shouldRenderAsSchematicBox: boolean;
11573
11573
  };
11574
11574
  doInitialSourceRender(): void;
11575
+ _getSchematicSymbolDisplayValue(): string | undefined;
11575
11576
  }
11576
11577
 
11577
11578
  declare class Inductor extends NormalComponent<typeof inductorProps, PassivePorts> {
package/dist/index.js CHANGED
@@ -11218,6 +11218,7 @@ var PinHeader = class extends NormalComponent {
11218
11218
 
11219
11219
  // lib/components/normal-components/Resonator.ts
11220
11220
  import { resonatorProps } from "@tscircuit/props";
11221
+ import { formatSiUnit as formatSiUnit4 } from "format-si-unit";
11221
11222
  function getResonatorSymbolName(variant) {
11222
11223
  switch (variant) {
11223
11224
  case "two_ground_pins":
@@ -11254,11 +11255,18 @@ var Resonator = class extends NormalComponent {
11254
11255
  });
11255
11256
  this.source_component_id = source_component.source_component_id;
11256
11257
  }
11258
+ _getSchematicSymbolDisplayValue() {
11259
+ const freqDisplay = `${formatSiUnit4(this._parsedProps.frequency)}Hz`;
11260
+ if (this._parsedProps.loadCapacitance) {
11261
+ return `${freqDisplay} / ${formatSiUnit4(this._parsedProps.loadCapacitance)}F`;
11262
+ }
11263
+ return freqDisplay;
11264
+ }
11257
11265
  };
11258
11266
 
11259
11267
  // lib/components/normal-components/Inductor.ts
11260
11268
  import { inductorProps } from "@tscircuit/props";
11261
- import { formatSiUnit as formatSiUnit4 } from "format-si-unit";
11269
+ import { formatSiUnit as formatSiUnit5 } from "format-si-unit";
11262
11270
  var Inductor = class extends NormalComponent {
11263
11271
  get config() {
11264
11272
  return {
@@ -11269,7 +11277,7 @@ var Inductor = class extends NormalComponent {
11269
11277
  };
11270
11278
  }
11271
11279
  _getSchematicSymbolDisplayValue() {
11272
- return `${formatSiUnit4(this._parsedProps.inductance)}H`;
11280
+ return `${formatSiUnit5(this._parsedProps.inductance)}H`;
11273
11281
  }
11274
11282
  initPorts() {
11275
11283
  super.initPorts({
@@ -11295,7 +11303,7 @@ var Inductor = class extends NormalComponent {
11295
11303
 
11296
11304
  // lib/components/normal-components/Potentiometer.ts
11297
11305
  import { potentiometerProps } from "@tscircuit/props";
11298
- import { formatSiUnit as formatSiUnit5 } from "format-si-unit";
11306
+ import { formatSiUnit as formatSiUnit6 } from "format-si-unit";
11299
11307
  function getPotentiometerSymbolName(variant) {
11300
11308
  switch (variant) {
11301
11309
  case "three_pin":
@@ -11316,7 +11324,7 @@ var Potentiometer = class extends NormalComponent {
11316
11324
  };
11317
11325
  }
11318
11326
  _getSchematicSymbolDisplayValue() {
11319
- return `${formatSiUnit5(this._parsedProps.maxResistance)}\u03A9`;
11327
+ return `${formatSiUnit6(this._parsedProps.maxResistance)}\u03A9`;
11320
11328
  }
11321
11329
  doInitialSourceRender() {
11322
11330
  const { db } = this.root;
@@ -11400,7 +11408,7 @@ var PushButton = class extends NormalComponent {
11400
11408
 
11401
11409
  // lib/components/normal-components/Crystal.ts
11402
11410
  import { crystalProps } from "@tscircuit/props";
11403
- import { formatSiUnit as formatSiUnit6 } from "format-si-unit";
11411
+ import { formatSiUnit as formatSiUnit7 } from "format-si-unit";
11404
11412
  var Crystal = class extends NormalComponent {
11405
11413
  // @ts-ignore
11406
11414
  get config() {
@@ -11427,9 +11435,9 @@ var Crystal = class extends NormalComponent {
11427
11435
  });
11428
11436
  }
11429
11437
  _getSchematicSymbolDisplayValue() {
11430
- const freqDisplay = `${formatSiUnit6(this._parsedProps.frequency)}Hz`;
11438
+ const freqDisplay = `${formatSiUnit7(this._parsedProps.frequency)}Hz`;
11431
11439
  if (this._parsedProps.loadCapacitance) {
11432
- return `${freqDisplay} / ${formatSiUnit6(
11440
+ return `${freqDisplay} / ${formatSiUnit7(
11433
11441
  this._parsedProps.loadCapacitance
11434
11442
  )}F`;
11435
11443
  }
@@ -12056,7 +12064,7 @@ import { identity as identity5 } from "transformation-matrix";
12056
12064
  var package_default = {
12057
12065
  name: "@tscircuit/core",
12058
12066
  type: "module",
12059
- version: "0.0.622",
12067
+ version: "0.0.623",
12060
12068
  types: "dist/index.d.ts",
12061
12069
  main: "dist/index.js",
12062
12070
  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.623",
4
+ "version": "0.0.624",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",