@tscircuit/core 0.0.2158 → 0.0.2159
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 +14 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -119177,7 +119177,7 @@ var RoutingPhasePreparationError = class extends Error {
|
|
|
119177
119177
|
var package_default = {
|
|
119178
119178
|
name: "@tscircuit/core",
|
|
119179
119179
|
type: "module",
|
|
119180
|
-
version: "0.0.
|
|
119180
|
+
version: "0.0.2158",
|
|
119181
119181
|
types: "dist/index.d.ts",
|
|
119182
119182
|
main: "dist/index.js",
|
|
119183
119183
|
module: "dist/index.js",
|
|
@@ -125032,7 +125032,10 @@ var Board = class extends Group5 {
|
|
|
125032
125032
|
finalWidth,
|
|
125033
125033
|
finalHeight,
|
|
125034
125034
|
props.borderRadius
|
|
125035
|
-
)
|
|
125035
|
+
).map((point6) => ({
|
|
125036
|
+
x: point6.x + center.x,
|
|
125037
|
+
y: point6.y + center.y
|
|
125038
|
+
}));
|
|
125036
125039
|
}
|
|
125037
125040
|
const update2 = {
|
|
125038
125041
|
width: finalWidth,
|
|
@@ -125040,10 +125043,10 @@ var Board = class extends Group5 {
|
|
|
125040
125043
|
center
|
|
125041
125044
|
};
|
|
125042
125045
|
if (outline) {
|
|
125043
|
-
update2.outline = outline.map((point6) => ({
|
|
125046
|
+
update2.outline = props.outline ? outline.map((point6) => ({
|
|
125044
125047
|
x: point6.x + (props.outlineOffsetX ?? 0),
|
|
125045
125048
|
y: point6.y + (props.outlineOffsetY ?? 0)
|
|
125046
|
-
}));
|
|
125049
|
+
})) : outline;
|
|
125047
125050
|
}
|
|
125048
125051
|
db2.pcb_board.update(this.pcb_board_id, update2);
|
|
125049
125052
|
}
|
|
@@ -125174,10 +125177,13 @@ var Board = class extends Group5 {
|
|
|
125174
125177
|
computedWidth,
|
|
125175
125178
|
computedHeight,
|
|
125176
125179
|
props.borderRadius
|
|
125177
|
-
)
|
|
125180
|
+
).map((point6) => ({
|
|
125181
|
+
x: point6.x + center.x,
|
|
125182
|
+
y: point6.y + center.y
|
|
125183
|
+
}));
|
|
125178
125184
|
}
|
|
125179
125185
|
let outlineTranslation = { x: 0, y: 0 };
|
|
125180
|
-
if (outline && outline.length > 0 && (this.parent?.lowercaseComponentName === "panel" || this.parent?.lowercaseComponentName === "subpanel")) {
|
|
125186
|
+
if (props.outline && outline && outline.length > 0 && (this.parent?.lowercaseComponentName === "panel" || this.parent?.lowercaseComponentName === "subpanel")) {
|
|
125181
125187
|
const outlineBounds = getBoundsFromPoints13(outline);
|
|
125182
125188
|
if (outlineBounds) {
|
|
125183
125189
|
const outlineCenterX = (outlineBounds.minX + outlineBounds.maxX) / 2;
|
|
@@ -125204,10 +125210,10 @@ var Board = class extends Group5 {
|
|
|
125204
125210
|
num_layers: this.allLayers.length,
|
|
125205
125211
|
width: computedWidth,
|
|
125206
125212
|
height: computedHeight,
|
|
125207
|
-
outline: outline?.map((point6) => ({
|
|
125213
|
+
outline: props.outline ? outline?.map((point6) => ({
|
|
125208
125214
|
x: point6.x + (props.outlineOffsetX ?? 0) + outlineTranslation.x,
|
|
125209
125215
|
y: point6.y + (props.outlineOffsetY ?? 0) + outlineTranslation.y
|
|
125210
|
-
})),
|
|
125216
|
+
})) : outline,
|
|
125211
125217
|
material: props.material,
|
|
125212
125218
|
...resolvedIsViaInPadAllowed !== void 0 && {
|
|
125213
125219
|
is_via_in_pad_allowed: resolvedIsViaInPadAllowed
|