@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.
- package/dist/index.js +3 -4
- 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
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
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,
|