@toolpath/dfm 0.3.0 → 0.3.1

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2510,10 +2510,9 @@ import { IconButton as IconButton5, ScrollArea as ScrollArea2, cn as cn15 } from
2510
2510
  import { Fragment as Fragment11, jsx as jsx25, jsxs as jsxs22 } from "react/jsx-runtime";
2511
2511
  var title = (faces, active, group) => {
2512
2512
  if (faces.length > 1) return `Comparing ${faces.length} faces`;
2513
- if (faces[active]?.region !== null && faces[active]?.region !== void 0)
2514
- return "Features on this face";
2515
- if (group !== void 0) return `${group} identical holes`;
2516
- return "Feature";
2513
+ const clicked = faces[active]?.region !== null && faces[active]?.region !== void 0;
2514
+ if (!clicked && group !== void 0) return `${group} identical holes`;
2515
+ return "Feature details";
2517
2516
  };
2518
2517
  var FeaturePanel = ({
2519
2518
  faces,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toolpath/dfm",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Toolpath DFM rules: the rule list, the rules and the part checker, and the feature panel",
5
5
  "license": "MIT",
6
6
  "engines": {