@tscircuit/core 0.0.1835 → 0.0.1836
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 +10 -6
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -8279,6 +8279,7 @@ var Cutout = class extends PrimitiveComponent2 {
|
|
|
8279
8279
|
const pcb_group_id = this.getGroup()?.pcb_group_id ?? void 0;
|
|
8280
8280
|
const globalPosition = this._getGlobalPcbPositionBeforeLayout();
|
|
8281
8281
|
const container = this.getPrimitiveContainer();
|
|
8282
|
+
const pcb_component_id = this.parent?.pcb_component_id ?? container?.pcb_component_id ?? void 0;
|
|
8282
8283
|
const parentRotation = container?._parsedProps.pcbRotation ?? 0;
|
|
8283
8284
|
let inserted_pcb_cutout = void 0;
|
|
8284
8285
|
if (props.shape === "rect") {
|
|
@@ -8290,7 +8291,8 @@ var Cutout = class extends PrimitiveComponent2 {
|
|
|
8290
8291
|
width: isRotated90 ? props.height : props.width,
|
|
8291
8292
|
height: isRotated90 ? props.width : props.height,
|
|
8292
8293
|
subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
|
|
8293
|
-
pcb_group_id
|
|
8294
|
+
pcb_group_id,
|
|
8295
|
+
pcb_component_id
|
|
8294
8296
|
};
|
|
8295
8297
|
inserted_pcb_cutout = db.pcb_cutout.insert(rectData);
|
|
8296
8298
|
} else if (props.shape === "circle") {
|
|
@@ -8299,7 +8301,8 @@ var Cutout = class extends PrimitiveComponent2 {
|
|
|
8299
8301
|
center: globalPosition,
|
|
8300
8302
|
radius: props.radius,
|
|
8301
8303
|
subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
|
|
8302
|
-
pcb_group_id
|
|
8304
|
+
pcb_group_id,
|
|
8305
|
+
pcb_component_id
|
|
8303
8306
|
};
|
|
8304
8307
|
inserted_pcb_cutout = db.pcb_cutout.insert(circleData);
|
|
8305
8308
|
} else if (props.shape === "polygon") {
|
|
@@ -8311,7 +8314,8 @@ var Cutout = class extends PrimitiveComponent2 {
|
|
|
8311
8314
|
shape: "polygon",
|
|
8312
8315
|
points: transformedPoints,
|
|
8313
8316
|
subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
|
|
8314
|
-
pcb_group_id
|
|
8317
|
+
pcb_group_id,
|
|
8318
|
+
pcb_component_id
|
|
8315
8319
|
};
|
|
8316
8320
|
inserted_pcb_cutout = db.pcb_cutout.insert(polygonData);
|
|
8317
8321
|
}
|
|
@@ -46089,7 +46093,7 @@ function Group_getRoutingPhasePlans(group) {
|
|
|
46089
46093
|
var package_default = {
|
|
46090
46094
|
name: "@tscircuit/core",
|
|
46091
46095
|
type: "module",
|
|
46092
|
-
version: "0.0.
|
|
46096
|
+
version: "0.0.1835",
|
|
46093
46097
|
types: "dist/index.d.ts",
|
|
46094
46098
|
main: "dist/index.js",
|
|
46095
46099
|
module: "dist/index.js",
|
|
@@ -46157,7 +46161,7 @@ var package_default = {
|
|
|
46157
46161
|
"bun-match-svg": "0.0.12",
|
|
46158
46162
|
"calculate-elbow": "^0.0.12",
|
|
46159
46163
|
"chokidar-cli": "^3.0.0",
|
|
46160
|
-
"circuit-json": "^0.0.
|
|
46164
|
+
"circuit-json": "^0.0.481",
|
|
46161
46165
|
"circuit-json-to-bpc": "^0.0.13",
|
|
46162
46166
|
"circuit-json-to-connectivity-map": "^0.0.30",
|
|
46163
46167
|
"circuit-json-to-gltf": "^0.0.118",
|
|
@@ -46221,7 +46225,7 @@ var package_default = {
|
|
|
46221
46225
|
overrides: {
|
|
46222
46226
|
"@tscircuit/circuit-json-util": "^0.0.106",
|
|
46223
46227
|
"@tscircuit/props": "^0.0.646",
|
|
46224
|
-
"circuit-json": "^0.0.
|
|
46228
|
+
"circuit-json": "^0.0.481"
|
|
46225
46229
|
}
|
|
46226
46230
|
};
|
|
46227
46231
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.1836",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"bun-match-svg": "0.0.12",
|
|
70
70
|
"calculate-elbow": "^0.0.12",
|
|
71
71
|
"chokidar-cli": "^3.0.0",
|
|
72
|
-
"circuit-json": "^0.0.
|
|
72
|
+
"circuit-json": "^0.0.481",
|
|
73
73
|
"circuit-json-to-bpc": "^0.0.13",
|
|
74
74
|
"circuit-json-to-connectivity-map": "^0.0.30",
|
|
75
75
|
"circuit-json-to-gltf": "^0.0.118",
|
|
@@ -133,6 +133,6 @@
|
|
|
133
133
|
"overrides": {
|
|
134
134
|
"@tscircuit/circuit-json-util": "^0.0.106",
|
|
135
135
|
"@tscircuit/props": "^0.0.646",
|
|
136
|
-
"circuit-json": "^0.0.
|
|
136
|
+
"circuit-json": "^0.0.481"
|
|
137
137
|
}
|
|
138
138
|
}
|