@tscircuit/core 0.0.973 → 0.0.975

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 +5 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9542,6 +9542,7 @@ var NormalComponent3 = class extends PrimitiveComponent2 {
9542
9542
  doInitialPartsEngineRender() {
9543
9543
  if (this.props.doNotPlace) return;
9544
9544
  if (this.getInheritedProperty("bomDisabled")) return;
9545
+ if (this.getInheritedProperty("partsEngineDisabled")) return;
9545
9546
  const partsEngine = this.getInheritedProperty("partsEngine");
9546
9547
  if (!partsEngine) return;
9547
9548
  const { db } = this.root;
@@ -9583,6 +9584,7 @@ var NormalComponent3 = class extends PrimitiveComponent2 {
9583
9584
  updatePartsEngineRender() {
9584
9585
  if (this.props.doNotPlace) return;
9585
9586
  if (this.getInheritedProperty("bomDisabled")) return;
9587
+ if (this.getInheritedProperty("partsEngineDisabled")) return;
9586
9588
  const { db } = this.root;
9587
9589
  const source_component = db.source_component.get(this.source_component_id);
9588
9590
  if (!source_component) return;
@@ -9629,10 +9631,8 @@ var NormalComponent3 = class extends PrimitiveComponent2 {
9629
9631
  const props = this._parsedProps;
9630
9632
  const hasExplicitPcbPosition = props.pcbX !== void 0 || props.pcbY !== void 0;
9631
9633
  if (!hasExplicitPcbPosition) return;
9632
- const sourceComponent = db.source_component.get(this.source_component_id);
9633
- const positionedRelativeToGroupId = sourceComponent?.source_group_id ? db.pcb_group.getWhere({
9634
- source_group_id: sourceComponent.source_group_id
9635
- })?.pcb_group_id : void 0;
9634
+ const parentGroup = this.getGroup();
9635
+ const positionedRelativeToGroupId = parentGroup?.pcb_group_id ?? void 0;
9636
9636
  const positionedRelativeToBoardId = positionedRelativeToGroupId ? void 0 : this._getBoard()?.pcb_board_id ?? void 0;
9637
9637
  db.pcb_component.update(this.pcb_component_id, {
9638
9638
  position_mode: "relative_to_group_anchor",
@@ -20898,7 +20898,7 @@ import { identity as identity5 } from "transformation-matrix";
20898
20898
  var package_default = {
20899
20899
  name: "@tscircuit/core",
20900
20900
  type: "module",
20901
- version: "0.0.972",
20901
+ version: "0.0.974",
20902
20902
  types: "dist/index.d.ts",
20903
20903
  main: "dist/index.js",
20904
20904
  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.973",
4
+ "version": "0.0.975",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",