@tscircuit/core 0.0.980 → 0.0.981

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 +20 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -17002,10 +17002,28 @@ var Panel = class extends Group6 {
17002
17002
  doInitialPanelBoardLayout() {
17003
17003
  if (this.root?.pcbDisabled) return;
17004
17004
  const layoutMode = this._parsedProps.layoutMode ?? "none";
17005
- if (layoutMode !== "grid") return;
17006
17005
  const childBoardInstances = this.children.filter(
17007
17006
  (c) => c instanceof Board
17008
17007
  );
17008
+ if (layoutMode !== "none") {
17009
+ for (const board of childBoardInstances) {
17010
+ const hasPcbX = board._parsedProps.pcbX !== void 0;
17011
+ const hasPcbY = board._parsedProps.pcbY !== void 0;
17012
+ if (hasPcbX || hasPcbY) {
17013
+ const properties = [];
17014
+ if (hasPcbX) properties.push("pcbX");
17015
+ if (hasPcbY) properties.push("pcbY");
17016
+ const propertyNames = properties.join(" and ");
17017
+ this.root.db.source_property_ignored_warning.insert({
17018
+ source_component_id: board.source_component_id,
17019
+ property_name: propertyNames,
17020
+ message: `Board has manual positioning (${propertyNames}) but panel layout mode is "${layoutMode}". Manual positioning will be ignored.`,
17021
+ error_type: "source_property_ignored_warning"
17022
+ });
17023
+ }
17024
+ }
17025
+ }
17026
+ if (layoutMode !== "grid") return;
17009
17027
  const tabWidth = this._parsedProps.tabWidth ?? DEFAULT_TAB_WIDTH;
17010
17028
  const boardGap = this._parsedProps.boardGap ?? tabWidth;
17011
17029
  const { positions, gridWidth, gridHeight } = packBoardsIntoGrid({
@@ -20956,7 +20974,7 @@ import { identity as identity5 } from "transformation-matrix";
20956
20974
  var package_default = {
20957
20975
  name: "@tscircuit/core",
20958
20976
  type: "module",
20959
- version: "0.0.979",
20977
+ version: "0.0.980",
20960
20978
  types: "dist/index.d.ts",
20961
20979
  main: "dist/index.js",
20962
20980
  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.980",
4
+ "version": "0.0.981",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",