@tscircuit/core 0.0.293 → 0.0.295

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 +6 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -794,7 +794,8 @@ var PrimitiveComponent = class extends Renderable {
794
794
  * schematic components
795
795
  */
796
796
  computeSchematicPropsTransform() {
797
- return compose(translate(this.props.schX ?? 0, this.props.schY ?? 0));
797
+ const { _parsedProps: props } = this;
798
+ return compose(translate(props.schX ?? 0, props.schY ?? 0));
798
799
  }
799
800
  /**
800
801
  * Compute a transformation matrix combining all parent transforms for this
@@ -5622,7 +5623,8 @@ var Chip = class extends NormalComponent {
5622
5623
  // Default height, adjust as needed
5623
5624
  layer: props.layer ?? "top",
5624
5625
  rotation: props.pcbRotation ?? 0,
5625
- source_component_id: this.source_component_id
5626
+ source_component_id: this.source_component_id,
5627
+ subcircuit_id: this.getSubcircuit().subcircuit_id ?? void 0
5626
5628
  });
5627
5629
  this.pcb_component_id = pcb_component.pcb_component_id;
5628
5630
  }
@@ -5702,7 +5704,8 @@ var Jumper = class extends NormalComponent {
5702
5704
  // Default height, adjust as needed
5703
5705
  layer: props.layer ?? "top",
5704
5706
  rotation: props.pcbRotation ?? 0,
5705
- source_component_id: this.source_component_id
5707
+ source_component_id: this.source_component_id,
5708
+ subcircuit_id: this.getSubcircuit().subcircuit_id ?? void 0
5706
5709
  });
5707
5710
  this.pcb_component_id = pcb_component.pcb_component_id;
5708
5711
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.293",
4
+ "version": "0.0.295",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",