Add menu item and hotkey to center view on current selection (#4068)
* tentatively adding this * Update src/components/ModelingMachineProvider.tsx Co-authored-by: Jonathan Tran <jonnytran@gmail.com> * Show shortcut in UI dialog * Move command into modelingMachine action * Add a menu item to the view menu * Switch gizmo tests to use "deprecated" test setup in prep for new fixture-based test * Add e2e test for center view to selection * Bump @kittycad/lib to latest and fix tsc * Bump @kittycad/lib to v2.0.7 to fix electron building * A snapshot a day keeps the bugs away! 📷🐛 (OS: windows-latest) * A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu-latest) * A snapshot a day keeps the bugs away! 📷🐛 (OS: windows-latest) --------- Co-authored-by: Jonathan Tran <jonnytran@gmail.com> Co-authored-by: Frank Noirot <frank@kittycad.io> Co-authored-by: 49fl <ircsurfer33@gmail.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Frank Noirot <frank@zoo.dev>
This commit is contained in:
@ -282,6 +282,7 @@ export class KclManager {
|
||||
type: 'zoom_to_fit',
|
||||
object_ids: zoomObjectId ? [zoomObjectId] : [], // leave empty to zoom to all objects
|
||||
padding: 0.1, // padding around the objects
|
||||
animated: false, // don't animate the zoom for now
|
||||
},
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user