@tscircuit/core 0.0.246 → 0.0.248

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -5
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -5062,7 +5062,8 @@ var Capacitor = class extends NormalComponent {
5062
5062
  // @ts-ignore
5063
5063
  manufacturer_part_number: props.manufacturerPartNumber ?? props.mfn,
5064
5064
  supplier_part_numbers: props.supplierPartNumbers,
5065
- capacitance: props.capacitance
5065
+ capacitance: props.capacitance,
5066
+ display_capacitance: this._getSchematicSymbolDisplayValue()
5066
5067
  });
5067
5068
  this.source_component_id = source_component.source_component_id;
5068
5069
  }
@@ -5279,7 +5280,8 @@ var Resistor = class extends NormalComponent {
5279
5280
  // @ts-ignore
5280
5281
  manufacturer_part_number: props.manufacturerPartNumber ?? props.mfn,
5281
5282
  supplier_part_numbers: props.supplierPartNumbers,
5282
- resistance: props.resistance
5283
+ resistance: props.resistance,
5284
+ display_resistance: this._getSchematicSymbolDisplayValue()
5283
5285
  });
5284
5286
  this.source_component_id = source_component.source_component_id;
5285
5287
  }
@@ -5998,7 +6000,7 @@ var RootCircuit = class {
5998
6000
  }
5999
6001
  if (this.children.length === 0) {
6000
6002
  throw new Error(
6001
- "Not able to guess root component: Project has no children (use project.add(...))"
6003
+ "Not able to guess root component: RootCircuit has no children (use circuit.add(...))"
6002
6004
  );
6003
6005
  }
6004
6006
  if (this.children.length > 0) {
@@ -6009,7 +6011,7 @@ var RootCircuit = class {
6009
6011
  }
6010
6012
  }
6011
6013
  throw new Error(
6012
- "Not able to guess root component: Project has multiple children and no board"
6014
+ "Not able to guess root component: RootCircuit has multiple children and no board"
6013
6015
  );
6014
6016
  }
6015
6017
  render() {
@@ -6017,7 +6019,7 @@ var RootCircuit = class {
6017
6019
  this._guessRootComponent();
6018
6020
  }
6019
6021
  const { firstChild, db } = this;
6020
- if (!firstChild) throw new Error("Project has no root component");
6022
+ if (!firstChild) throw new Error("RootCircuit has no root component");
6021
6023
  firstChild.parent = this;
6022
6024
  firstChild.runRenderCycle();
6023
6025
  this._hasRenderedAtleastOnce = true;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.246",
4
+ "version": "0.0.248",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -46,7 +46,7 @@
46
46
  "@tscircuit/props": "^0.0.123",
47
47
  "@tscircuit/schematic-autolayout": "^0.0.6",
48
48
  "@tscircuit/soup-util": "^0.0.41",
49
- "circuit-json": "^0.0.122",
49
+ "circuit-json": "^0.0.124",
50
50
  "circuit-json-to-connectivity-map": "^0.0.17",
51
51
  "format-si-unit": "^0.0.2",
52
52
  "nanoid": "^5.0.7",