@tscircuit/core 0.0.379 → 0.0.380

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 +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4899,7 +4899,7 @@ var NormalComponent = class extends PrimitiveComponent2 {
4899
4899
  }
4900
4900
  }
4901
4901
  const manualPlacement = this.getSubcircuit()?._getSchematicManualPlacementForComponent(this);
4902
- if (this.schematic_component_id && this.props.schX !== void 0 && this.props.schY !== void 0 && manualPlacement) {
4902
+ if (this.schematic_component_id && (this.props.schX !== void 0 || this.props.schY !== void 0) && !!manualPlacement) {
4903
4903
  if (!this.schematic_component_id) {
4904
4904
  return;
4905
4905
  }
@@ -5031,7 +5031,7 @@ var NormalComponent = class extends PrimitiveComponent2 {
5031
5031
  }
5032
5032
  this.pcb_component_id = pcb_component.pcb_component_id;
5033
5033
  const manualPlacement = this.getSubcircuit()._getPcbManualPlacementForComponent(this);
5034
- if (this.props.pcbX !== void 0 && this.props.pcbY !== void 0 && manualPlacement) {
5034
+ if ((this.props.pcbX !== void 0 || this.props.pcbY !== void 0) && !!manualPlacement) {
5035
5035
  const warning = pcb_manual_edit_conflict_warning.parse({
5036
5036
  type: "pcb_manual_edit_conflict_warning",
5037
5037
  pcb_manual_edit_conflict_warning_id: `pcb_manual_edit_conflict_${this.source_component_id}`,
@@ -7710,7 +7710,7 @@ import { identity as identity4 } from "transformation-matrix";
7710
7710
  var package_default = {
7711
7711
  name: "@tscircuit/core",
7712
7712
  type: "module",
7713
- version: "0.0.378",
7713
+ version: "0.0.379",
7714
7714
  types: "dist/index.d.ts",
7715
7715
  main: "dist/index.js",
7716
7716
  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.379",
4
+ "version": "0.0.380",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",