@tscircuit/core 0.0.935 → 0.0.936
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 +7 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3047,9 +3047,11 @@ var Hole = class extends PrimitiveComponent2 {
|
|
|
3047
3047
|
const position = this._getGlobalPcbPositionBeforeLayout();
|
|
3048
3048
|
const soldermaskMargin = props.solderMaskMargin;
|
|
3049
3049
|
const isCoveredWithSolderMask = props.coveredWithSolderMask ?? false;
|
|
3050
|
+
const pcb_component_id = this.parent?.pcb_component_id ?? this.getPrimitiveContainer()?.pcb_component_id;
|
|
3050
3051
|
if (props.shape === "pill") {
|
|
3051
3052
|
if (props.pcbRotation && props.pcbRotation !== 0) {
|
|
3052
3053
|
const inserted_hole = db.pcb_hole.insert({
|
|
3054
|
+
pcb_component_id,
|
|
3053
3055
|
type: "pcb_hole",
|
|
3054
3056
|
hole_shape: "rotated_pill",
|
|
3055
3057
|
hole_width: props.width,
|
|
@@ -3065,6 +3067,7 @@ var Hole = class extends PrimitiveComponent2 {
|
|
|
3065
3067
|
this.pcb_hole_id = inserted_hole.pcb_hole_id;
|
|
3066
3068
|
} else {
|
|
3067
3069
|
const inserted_hole = db.pcb_hole.insert({
|
|
3070
|
+
pcb_component_id,
|
|
3068
3071
|
type: "pcb_hole",
|
|
3069
3072
|
hole_shape: "pill",
|
|
3070
3073
|
hole_width: props.width,
|
|
@@ -3080,6 +3083,7 @@ var Hole = class extends PrimitiveComponent2 {
|
|
|
3080
3083
|
}
|
|
3081
3084
|
} else if (props.shape === "rect") {
|
|
3082
3085
|
const inserted_hole = db.pcb_hole.insert({
|
|
3086
|
+
pcb_component_id,
|
|
3083
3087
|
type: "pcb_hole",
|
|
3084
3088
|
hole_shape: "rect",
|
|
3085
3089
|
hole_width: props.width,
|
|
@@ -3094,6 +3098,7 @@ var Hole = class extends PrimitiveComponent2 {
|
|
|
3094
3098
|
this.pcb_hole_id = inserted_hole.pcb_hole_id;
|
|
3095
3099
|
} else {
|
|
3096
3100
|
const inserted_hole = db.pcb_hole.insert({
|
|
3101
|
+
pcb_component_id,
|
|
3097
3102
|
type: "pcb_hole",
|
|
3098
3103
|
hole_shape: "circle",
|
|
3099
3104
|
hole_diameter: props.diameter,
|
|
@@ -19685,7 +19690,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
19685
19690
|
var package_default = {
|
|
19686
19691
|
name: "@tscircuit/core",
|
|
19687
19692
|
type: "module",
|
|
19688
|
-
version: "0.0.
|
|
19693
|
+
version: "0.0.935",
|
|
19689
19694
|
types: "dist/index.d.ts",
|
|
19690
19695
|
main: "dist/index.js",
|
|
19691
19696
|
module: "dist/index.js",
|
|
@@ -19743,7 +19748,7 @@ var package_default = {
|
|
|
19743
19748
|
"bun-match-svg": "0.0.12",
|
|
19744
19749
|
"calculate-elbow": "^0.0.12",
|
|
19745
19750
|
"chokidar-cli": "^3.0.0",
|
|
19746
|
-
"circuit-json": "^0.0.
|
|
19751
|
+
"circuit-json": "^0.0.336",
|
|
19747
19752
|
"circuit-json-to-bpc": "^0.0.13",
|
|
19748
19753
|
"circuit-json-to-connectivity-map": "^0.0.23",
|
|
19749
19754
|
"circuit-json-to-gltf": "^0.0.31",
|
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.936",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"bun-match-svg": "0.0.12",
|
|
60
60
|
"calculate-elbow": "^0.0.12",
|
|
61
61
|
"chokidar-cli": "^3.0.0",
|
|
62
|
-
"circuit-json": "^0.0.
|
|
62
|
+
"circuit-json": "^0.0.336",
|
|
63
63
|
"circuit-json-to-bpc": "^0.0.13",
|
|
64
64
|
"circuit-json-to-connectivity-map": "^0.0.23",
|
|
65
65
|
"circuit-json-to-gltf": "^0.0.31",
|