threepipe
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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