@tscircuit/core 0.0.793 → 0.0.794

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
@@ -13231,7 +13231,7 @@ var Board = class extends Group6 {
13231
13231
  if (!this.pcb_board_id) return;
13232
13232
  const { db } = this.root;
13233
13233
  const { _parsedProps: props } = this;
13234
- if (props.width && props.height) return;
13234
+ if (props.width && props.height || props.outline) return;
13235
13235
  let minX = Infinity;
13236
13236
  let minY = Infinity;
13237
13237
  let maxX = -Infinity;
@@ -13269,7 +13269,7 @@ var Board = class extends Group6 {
13269
13269
  const padding = 2;
13270
13270
  const computedWidth = hasComponents ? maxX - minX + padding * 2 : 0;
13271
13271
  const computedHeight = hasComponents ? maxY - minY + padding * 2 : 0;
13272
- let center = {
13272
+ const center = {
13273
13273
  x: hasComponents ? (minX + maxX) / 2 + (props.outlineOffsetX ?? 0) : props.outlineOffsetX ?? 0,
13274
13274
  y: hasComponents ? (minY + maxY) / 2 + (props.outlineOffsetY ?? 0) : props.outlineOffsetY ?? 0
13275
13275
  };
@@ -16868,7 +16868,7 @@ import { identity as identity6 } from "transformation-matrix";
16868
16868
  var package_default = {
16869
16869
  name: "@tscircuit/core",
16870
16870
  type: "module",
16871
- version: "0.0.792",
16871
+ version: "0.0.793",
16872
16872
  types: "dist/index.d.ts",
16873
16873
  main: "dist/index.js",
16874
16874
  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.793",
4
+ "version": "0.0.794",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",