threepipe
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

EditorViewWidgetPlugin.md 970B

123456789101112131415161718192021222324252627282930313233
  1. ---
  2. prev:
  3. text: 'VirtualCamerasPlugin'
  4. link: './VirtualCamerasPlugin'
  5. next:
  6. text: 'Object3DWidgetsPlugin'
  7. link: './Object3DWidgetsPlugin'
  8. ---
  9. # EditorViewWidgetPlugin
  10. [//]: # (todo: image)
  11. [Example](https://threepipe.org/examples/#editor-view-widget-plugin/) —
  12. [Source Code](https://github.com/repalash/threepipe/blob/master/src/plugins/interaction/EditorViewWidgetPlugin.ts) —
  13. [API Reference](https://threepipe.org/docs/classes/EditorViewWidgetPlugin.html)
  14. EditorViewWidgetPlugin adds a ViewHelper in the parent of the viewer canvas to show the current camera view and allow the user to change the camera view to one of the primary world axes.
  15. Simply add the plugin to the viewer to see the widget.
  16. ```typescript
  17. import {ThreeViewer, EditorViewWidgetPlugin} from 'threepipe'
  18. const viewer = new ThreeViewer({...})
  19. const plugin = viewer.addPluginSync(new EditorViewWidgetPlugin())
  20. // to hide the widget
  21. plugin.enabled = false
  22. ```