@toolpath/viewer 1.5.0 → 2.1.0
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/README.md +155 -25
- package/dist/{chunk-4TBLMR4Z.js → chunk-WTTOUG4P.js} +27 -14
- package/dist/engine/index.d.ts +2 -2
- package/dist/engine/index.js +1 -1
- package/dist/index.d.ts +224 -27
- package/dist/index.js +563 -111
- package/dist/{normalize-CvnV9Ggh.d.ts → normalize--FiXUhO4.d.ts} +7 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
2
3
|
import { Group, Mesh, LineSegments, Box3, Plane, BufferGeometry, Vector3, Raycaster, Object3D, Intersection, Camera } from 'three';
|
|
3
4
|
|
|
4
5
|
/**
|
|
@@ -851,6 +852,11 @@ interface PartMeshProps {
|
|
|
851
852
|
showEdges?: boolean;
|
|
852
853
|
/** Wireframe shows region boundaries and any hovered/painted faces, with no triangle diagonals. */
|
|
853
854
|
display?: PartDisplay;
|
|
855
|
+
/**
|
|
856
|
+
* Objects drawn on the part, such as `<ToolMarks>`. They can read its model
|
|
857
|
+
* and mesh with `usePartContext`.
|
|
858
|
+
*/
|
|
859
|
+
children?: ReactNode;
|
|
854
860
|
}
|
|
855
861
|
/**
|
|
856
862
|
* The part, as one mesh with one material.
|
|
@@ -862,7 +868,7 @@ interface PartMeshProps {
|
|
|
862
868
|
* React render at all: the hovered face lives in a ref, and routing it through
|
|
863
869
|
* state is what this rewrite exists to stop doing.
|
|
864
870
|
*/
|
|
865
|
-
declare const PartMesh: ({ model, geometry, selection, focus, candidates, highlights, regionHighlights, pickedRegions, hoveredFeatureIds, hover, activeDirection, section, onSectionChange, onAdjacency, focusFeature, onHover, onPick, theme, showEdges, display, }: PartMeshProps) => react.JSX.Element;
|
|
871
|
+
declare const PartMesh: ({ model, geometry, selection, focus, candidates, highlights, regionHighlights, pickedRegions, hoveredFeatureIds, hover, activeDirection, section, onSectionChange, onAdjacency, focusFeature, onHover, onPick, theme, showEdges, display, children, }: PartMeshProps) => react.JSX.Element;
|
|
866
872
|
|
|
867
873
|
interface EnginePartProps extends Omit<PartMeshProps, 'model' | 'geometry'> {
|
|
868
874
|
/**
|