@tscircuit/core 0.0.1275 → 0.0.1276
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 +1 -18
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -21807,7 +21807,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
21807
21807
|
var package_default = {
|
|
21808
21808
|
name: "@tscircuit/core",
|
|
21809
21809
|
type: "module",
|
|
21810
|
-
version: "0.0.
|
|
21810
|
+
version: "0.0.1275",
|
|
21811
21811
|
types: "dist/index.d.ts",
|
|
21812
21812
|
main: "dist/index.js",
|
|
21813
21813
|
module: "dist/index.js",
|
|
@@ -25100,23 +25100,6 @@ var Breakout = class extends Group5 {
|
|
|
25100
25100
|
}
|
|
25101
25101
|
doInitialPcbPrimitiveRender() {
|
|
25102
25102
|
super.doInitialPcbPrimitiveRender();
|
|
25103
|
-
if (this.root?.pcbDisabled) return;
|
|
25104
|
-
const { db } = this.root;
|
|
25105
|
-
const props = this._parsedProps;
|
|
25106
|
-
if (!this.pcb_group_id) return;
|
|
25107
|
-
const pcb_group = db.pcb_group.get(this.pcb_group_id);
|
|
25108
|
-
const padLeft = props.paddingLeft ?? props.padding ?? 0;
|
|
25109
|
-
const padRight = props.paddingRight ?? props.padding ?? 0;
|
|
25110
|
-
const padTop = props.paddingTop ?? props.padding ?? 0;
|
|
25111
|
-
const padBottom = props.paddingBottom ?? props.padding ?? 0;
|
|
25112
|
-
db.pcb_group.update(this.pcb_group_id, {
|
|
25113
|
-
width: (pcb_group.width ?? 0) + padLeft + padRight,
|
|
25114
|
-
height: (pcb_group.height ?? 0) + padTop + padBottom,
|
|
25115
|
-
center: {
|
|
25116
|
-
x: pcb_group.center.x + (padRight - padLeft) / 2,
|
|
25117
|
-
y: pcb_group.center.y + (padTop - padBottom) / 2
|
|
25118
|
-
}
|
|
25119
|
-
});
|
|
25120
25103
|
}
|
|
25121
25104
|
};
|
|
25122
25105
|
|