@tscircuit/pcb-viewer 1.11.355 → 1.11.357
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 +16 -9
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -8002,7 +8002,8 @@ var convertElementToPrimitives = (element, allElements) => {
|
|
|
8002
8002
|
_parent_pcb_component,
|
|
8003
8003
|
_parent_source_component,
|
|
8004
8004
|
_source_port,
|
|
8005
|
-
roundness: rect_border_radius
|
|
8005
|
+
roundness: rect_border_radius,
|
|
8006
|
+
is_hoverable: false
|
|
8006
8007
|
},
|
|
8007
8008
|
{
|
|
8008
8009
|
_pcb_drawing_object_id: `circle_${globalPcbDrawingObjectCount++}`,
|
|
@@ -8011,7 +8012,8 @@ var convertElementToPrimitives = (element, allElements) => {
|
|
|
8011
8012
|
x: x + parsed_hole_offset_x,
|
|
8012
8013
|
y: y + parsed_hole_offset_y,
|
|
8013
8014
|
r: hole_diameter / 2,
|
|
8014
|
-
layer: "drill"
|
|
8015
|
+
layer: "drill",
|
|
8016
|
+
is_hoverable: false
|
|
8015
8017
|
}
|
|
8016
8018
|
];
|
|
8017
8019
|
} else if (element.shape === "pill_hole_with_rect_pad") {
|
|
@@ -8051,7 +8053,8 @@ var convertElementToPrimitives = (element, allElements) => {
|
|
|
8051
8053
|
_parent_pcb_component,
|
|
8052
8054
|
_parent_source_component,
|
|
8053
8055
|
_source_port,
|
|
8054
|
-
roundness: rect_border_radius
|
|
8056
|
+
roundness: rect_border_radius,
|
|
8057
|
+
is_hoverable: false
|
|
8055
8058
|
},
|
|
8056
8059
|
{
|
|
8057
8060
|
_pcb_drawing_object_id: `pill_${globalPcbDrawingObjectCount++}`,
|
|
@@ -8061,7 +8064,8 @@ var convertElementToPrimitives = (element, allElements) => {
|
|
|
8061
8064
|
y,
|
|
8062
8065
|
w: hole_width,
|
|
8063
8066
|
h: hole_height,
|
|
8064
|
-
layer: "drill"
|
|
8067
|
+
layer: "drill",
|
|
8068
|
+
is_hoverable: false
|
|
8065
8069
|
}
|
|
8066
8070
|
];
|
|
8067
8071
|
} else if (element.shape === "rotated_pill_hole_with_rect_pad") {
|
|
@@ -8105,7 +8109,8 @@ var convertElementToPrimitives = (element, allElements) => {
|
|
|
8105
8109
|
_parent_source_component,
|
|
8106
8110
|
_source_port,
|
|
8107
8111
|
ccw_rotation: rect_ccw_rotation,
|
|
8108
|
-
roundness: rect_border_radius
|
|
8112
|
+
roundness: rect_border_radius,
|
|
8113
|
+
is_hoverable: false
|
|
8109
8114
|
},
|
|
8110
8115
|
{
|
|
8111
8116
|
_pcb_drawing_object_id: `pill_${globalPcbDrawingObjectCount++}`,
|
|
@@ -8116,7 +8121,8 @@ var convertElementToPrimitives = (element, allElements) => {
|
|
|
8116
8121
|
w: hole_width,
|
|
8117
8122
|
h: hole_height,
|
|
8118
8123
|
layer: "drill",
|
|
8119
|
-
ccw_rotation: hole_ccw_rotation
|
|
8124
|
+
ccw_rotation: hole_ccw_rotation,
|
|
8125
|
+
is_hoverable: false
|
|
8120
8126
|
}
|
|
8121
8127
|
];
|
|
8122
8128
|
} else if (element.shape === "hole_with_polygon_pad") {
|
|
@@ -13845,6 +13851,7 @@ var MouseElementTracker = ({
|
|
|
13845
13851
|
if (primitive._element?.type === "pcb_via") continue;
|
|
13846
13852
|
if (primitive._element?.type === "pcb_component") continue;
|
|
13847
13853
|
if (primitive?.layer === "drill") continue;
|
|
13854
|
+
if (primitive?.is_hoverable === false) continue;
|
|
13848
13855
|
let basePoint = null;
|
|
13849
13856
|
let w = 0;
|
|
13850
13857
|
let h = 0;
|
|
@@ -14371,7 +14378,7 @@ import { css as css3 } from "@emotion/css";
|
|
|
14371
14378
|
// package.json
|
|
14372
14379
|
var package_default = {
|
|
14373
14380
|
name: "@tscircuit/pcb-viewer",
|
|
14374
|
-
version: "1.11.
|
|
14381
|
+
version: "1.11.356",
|
|
14375
14382
|
main: "dist/index.js",
|
|
14376
14383
|
type: "module",
|
|
14377
14384
|
repository: "tscircuit/pcb-viewer",
|
|
@@ -14421,11 +14428,11 @@ var package_default = {
|
|
|
14421
14428
|
},
|
|
14422
14429
|
dependencies: {
|
|
14423
14430
|
"@emotion/css": "^11.11.2",
|
|
14424
|
-
"@tscircuit/alphabet": "^0.0.
|
|
14431
|
+
"@tscircuit/alphabet": "^0.0.23",
|
|
14425
14432
|
"@tscircuit/math-utils": "^0.0.29",
|
|
14426
14433
|
"@vitejs/plugin-react": "^5.0.2",
|
|
14427
14434
|
"circuit-json": "^0.0.403",
|
|
14428
|
-
"circuit-to-canvas": "^0.0.
|
|
14435
|
+
"circuit-to-canvas": "^0.0.94",
|
|
14429
14436
|
"circuit-to-svg": "^0.0.337",
|
|
14430
14437
|
color: "^4.2.3",
|
|
14431
14438
|
"react-supergrid": "^1.0.10",
|