Constructor
new CanvasMenu(renderer, settingsopt)
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
renderer |
THREE.WebGLRenderer | WebGLRenderer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
settings |
Object |
<optional> |
{} | the following settings are available
Properties
|
- Source:
Members
menu
Menu array
- Source:
- See:
-
- arrayMenu of the DropdownMenu.create
Methods
getFullScreenSettings(stereoEffect)
Parameters:
Name | Type | Description |
---|---|---|
stereoEffect |
StereoEffect | StereoEffect. |
- Source:
Returns:
Set stereoEffect to fullScreenSettings and returns fullScreenSettings.
isFullScreen()
- Source:
Returns:
true if canvas is full screen.
querySelector(selectors)
Parameters:
Name | Type | Description |
---|---|---|
selectors |
string | See CSS selectors in HTML DOM querySelector() Method for details. |
- Source:
Returns:
First element that matches a specified CSS selector(s) in the canvasMenu.
setFullScreen(fullScreen)
Sets the full screen of the canvas.
Parameters:
Name | Type | Description |
---|---|---|
fullScreen |
boolean | false - full screen of the canvas. |
- Source:
setFullScreenButton(fullScreen)
Sets the "Full Screen" button. Available only if settings.fullScreen is defined.
Parameters:
Name | Type | Description |
---|---|---|
fullScreen |
boolean | true - non full screen.
false - full screen of the canvas. |
- Source:
setSize(width)
Sets the size of the slider element of the player's menu.
Parameters:
Name | Type | Description |
---|---|---|
width |
Number | width of the canvas |
- Source: