@tscircuit/pcb-viewer 1.11.354 → 1.11.356

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 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.353",
14381
+ version: "1.11.355",
14375
14382
  main: "dist/index.js",
14376
14383
  type: "module",
14377
14384
  repository: "tscircuit/pcb-viewer",
@@ -14408,7 +14415,7 @@ var package_default = {
14408
14415
  "react-cosmos-plugin-vite": "7.0.0-beta.0",
14409
14416
  "react-dom": "19.1.0",
14410
14417
  "react-use": "^17.4.0",
14411
- tscircuit: "^0.0.1517",
14418
+ tscircuit: "^0.0.1530",
14412
14419
  tsup: "^8.0.2",
14413
14420
  "type-fest": "^3.0.0",
14414
14421
  typescript: "^5.4.4",