@tscircuit/core 0.0.792 → 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.
- package/dist/index.js +4 -4
- 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
|
-
|
|
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
|
};
|
|
@@ -14788,7 +14788,7 @@ var PcbNoteDimension = class extends PrimitiveComponent2 {
|
|
|
14788
14788
|
_resolvePoint(input, transform) {
|
|
14789
14789
|
if (typeof input === "string") {
|
|
14790
14790
|
const target = this.getSubcircuit().selectOne(
|
|
14791
|
-
input
|
|
14791
|
+
`.${input}`
|
|
14792
14792
|
);
|
|
14793
14793
|
if (!target) {
|
|
14794
14794
|
this.renderError(`PcbNoteDimension could not find selector "${input}"`);
|
|
@@ -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.
|
|
16871
|
+
version: "0.0.793",
|
|
16872
16872
|
types: "dist/index.d.ts",
|
|
16873
16873
|
main: "dist/index.js",
|
|
16874
16874
|
module: "dist/index.js",
|