mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-16 19:17:57 +01:00
add focus function
This commit is contained in:
parent
d2c70f3b2f
commit
bcf0bb254d
@ -80,7 +80,9 @@ export function createScene(canvas, props, state) {
|
|||||||
};
|
};
|
||||||
updateCanvas(canvas);
|
updateCanvas(canvas);
|
||||||
|
|
||||||
return { editorControls, scene, mesh, camera, renderer, render, box, setSize, updateCanvas };
|
const focus = () => editorControls.focus(mesh);
|
||||||
|
|
||||||
|
return { editorControls, scene, mesh, camera, renderer, render, box, setSize, updateCanvas, focus };
|
||||||
}
|
}
|
||||||
|
|
||||||
export function fetchProgress(url, { method = 'get', headers = {}, body = {} } = {}, onProgress) {
|
export function fetchProgress(url, { method = 'get', headers = {}, body = {} } = {}, onProgress) {
|
||||||
|
Loading…
Reference in New Issue
Block a user