threepipe
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

EditorViewWidgetPlugin.md 970B


prev:

text: 'VirtualCamerasPlugin'
link: './VirtualCamerasPlugin'

next:

text: 'Object3DWidgetsPlugin'
link: './Object3DWidgetsPlugin'

EditorViewWidgetPlugin

ExampleSource CodeAPI Reference

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.

Simply add the plugin to the viewer to see the widget.

import {ThreeViewer, EditorViewWidgetPlugin} from 'threepipe'

const viewer = new ThreeViewer({...})

const plugin = viewer.addPluginSync(new EditorViewWidgetPlugin())

// to hide the widget
plugin.enabled = false