RoomleConfigurator.Internal.GlobalAPI
configurator-core/src/roomle-configurator.internal.GlobalAPI
Implemented by
Table of contents
Accessors
Methods
Accessors
globalCallbacks
• get
globalCallbacks(): GlobalCallback
Returns
Methods
getCameraOffset
▸ getCameraOffset(): CanvasOffset
Gets the available screen space for our item default: 'left: 0, top: 1, right: 1, bottom: 0'
Returns
getMain
▸ getMain(): default
Returns
getScene
▸ getScene(): Scene
Returns the three.js scene (https://threejs.org/docs/#api/en/scenes/Scene) WARNING: This is the actual scene (reference) and not a copy!
Returns
Scene
getStorage
▸ getStorage(): default
Returns
getUnitFormatter
▸ getUnitFormatter(): default
Returns
setCameraOffset
▸ setCameraOffset(offset
): void
Sets the available screen space for our item Example 1: right 0.9 means 10% padding on the right side Example 2: bottom 0.2 means 20% padding on the bottom side default: 'left: 0, top: 1, right: 1, bottom: 0'
Parameters
offset
Returns
void
setEnvironmentMap
▸ setEnvironmentMap(params
): void
Parameters
params
Returns
void
updateScene
▸ updateScene(): void
Updates the scene (recalculating bounds) and restart rendering
Returns
void
updateSize
▸ updateSize(): void
Returns
void
Last updated