@tscircuit/core 0.0.622 → 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
@@ -7491,7 +7491,8 @@ var getSimpleRouteJsonFromCircuitJson = ({
7491
7491
  ...db.pcb_smtpad.list(),
7492
7492
  ...db.pcb_plated_hole.list(),
7493
7493
  ...db.pcb_hole.list(),
7494
- ...db.pcb_via.list()
7494
+ ...db.pcb_via.list(),
7495
+ ...db.pcb_cutout.list()
7495
7496
  // getObstaclesFromSoup is old and doesn't support diagonal traces
7496
7497
  // ...db.pcb_trace.list(),
7497
7498
  ].filter(
@@ -11217,6 +11218,7 @@ var PinHeader = class extends NormalComponent {
11217
11218
 
11218
11219
  // lib/components/normal-components/Resonator.ts
11219
11220
  import { resonatorProps } from "@tscircuit/props";
11221
+ import { formatSiUnit as formatSiUnit4 } from "format-si-unit";
11220
11222
  function getResonatorSymbolName(variant) {
11221
11223
  switch (variant) {
11222
11224
  case "two_ground_pins":
@@ -11253,11 +11255,18 @@ var Resonator = class extends NormalComponent {
11253
11255
  });
11254
11256
  this.source_component_id = source_component.source_component_id;
11255
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
+ }
11256
11265
  };
11257
11266
 
11258
11267
  // lib/components/normal-components/Inductor.ts
11259
11268
  import { inductorProps } from "@tscircuit/props";
11260
- import { formatSiUnit as formatSiUnit4 } from "format-si-unit";
11269
+ import { formatSiUnit as formatSiUnit5 } from "format-si-unit";
11261
11270
  var Inductor = class extends NormalComponent {
11262
11271
  get config() {
11263
11272
  return {
@@ -11268,7 +11277,7 @@ var Inductor = class extends NormalComponent {
11268
11277
  };
11269
11278
  }
11270
11279
  _getSchematicSymbolDisplayValue() {
11271
- return `${formatSiUnit4(this._parsedProps.inductance)}H`;
11280
+ return `${formatSiUnit5(this._parsedProps.inductance)}H`;
11272
11281
  }
11273
11282
  initPorts() {
11274
11283
  super.initPorts({
@@ -11294,7 +11303,7 @@ var Inductor = class extends NormalComponent {
11294
11303
 
11295
11304
  // lib/components/normal-components/Potentiometer.ts
11296
11305
  import { potentiometerProps } from "@tscircuit/props";
11297
- import { formatSiUnit as formatSiUnit5 } from "format-si-unit";
11306
+ import { formatSiUnit as formatSiUnit6 } from "format-si-unit";
11298
11307
  function getPotentiometerSymbolName(variant) {
11299
11308
  switch (variant) {
11300
11309
  case "three_pin":
@@ -11315,7 +11324,7 @@ var Potentiometer = class extends NormalComponent {
11315
11324
  };
11316
11325
  }
11317
11326
  _getSchematicSymbolDisplayValue() {
11318
- return `${formatSiUnit5(this._parsedProps.maxResistance)}\u03A9`;
11327
+ return `${formatSiUnit6(this._parsedProps.maxResistance)}\u03A9`;
11319
11328
  }
11320
11329
  doInitialSourceRender() {
11321
11330
  const { db } = this.root;
@@ -11399,7 +11408,7 @@ var PushButton = class extends NormalComponent {
11399
11408
 
11400
11409
  // lib/components/normal-components/Crystal.ts
11401
11410
  import { crystalProps } from "@tscircuit/props";
11402
- import { formatSiUnit as formatSiUnit6 } from "format-si-unit";
11411
+ import { formatSiUnit as formatSiUnit7 } from "format-si-unit";
11403
11412
  var Crystal = class extends NormalComponent {
11404
11413
  // @ts-ignore
11405
11414
  get config() {
@@ -11426,9 +11435,9 @@ var Crystal = class extends NormalComponent {
11426
11435
  });
11427
11436
  }
11428
11437
  _getSchematicSymbolDisplayValue() {
11429
- const freqDisplay = `${formatSiUnit6(this._parsedProps.frequency)}Hz`;
11438
+ const freqDisplay = `${formatSiUnit7(this._parsedProps.frequency)}Hz`;
11430
11439
  if (this._parsedProps.loadCapacitance) {
11431
- return `${freqDisplay} / ${formatSiUnit6(
11440
+ return `${freqDisplay} / ${formatSiUnit7(
11432
11441
  this._parsedProps.loadCapacitance
11433
11442
  )}F`;
11434
11443
  }
@@ -12055,7 +12064,7 @@ import { identity as identity5 } from "transformation-matrix";
12055
12064
  var package_default = {
12056
12065
  name: "@tscircuit/core",
12057
12066
  type: "module",
12058
- version: "0.0.621",
12067
+ version: "0.0.623",
12059
12068
  types: "dist/index.d.ts",
12060
12069
  main: "dist/index.js",
12061
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.622",
4
+ "version": "0.0.624",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",