RoomlePlanner.Internal.default
planner-core/src/roomle-planner.internal.default
Hierarchy
↳
default
Implements
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new default(creator
, offset
, plannerCallback
, mode
)
Parameters
creator
string
offset
plannerCallback
mode
Enumify
<{ CAMERA_2D
: "2D"
= '2D'; CAMERA_3D
: "3D"
= '3D'; CAMERA_FP
: "FP"
= 'FP' }>
Overrides
Properties
_creator_
• _creator_: string
Inherited from
currentSelection
• currentSelection: SelectionPayload
= null
Accessors
configuratorContext
• get
configuratorContext(): default
Returns
Methods
_preparePerspectiveImage
▸ _preparePerspectiveImage(options?
): Promise
<Base64Image
>
Parameters
options
Returns
Promise
<Base64Image
>
addComponentHandlers
▸ addComponentHandlers(component
): void
Parameters
component
Returns
void
Inherited from
addEventListener
▸ addEventListener(_listener
): void
Parameters
_listener
Returns
void
Inherited from
addMesh
▸ addMesh(_planElement
, _material
, _vertices
, _indices
, _uvCoords
, _normals
): void
Parameters
_planElement
_material
any
_vertices
Float32Array
_indices
Int32Array
_uvCoords
Float32Array
_normals
Float32Array
Returns
void
Implementation of
PlannerKernelCallbackI.addMesh
addPlanMesh
▸ addPlanMesh(_plan
, _material
, _vertices
, _indices
, _uvCoords
, _normals
, _type
): void
Parameters
_plan
_material
any
_vertices
Float32Array
_indices
Int32Array
_uvCoords
Float32Array
_normals
Float32Array
_type
Returns
void
Implementation of
PlannerKernelCallbackI.addPlanMesh
addPlanObjectToScene
▸ addPlanObjectToScene(planViewModel
): Promise
<void
>
Parameters
planViewModel
Returns
Promise
<void
>
Implementation of
PlannerKernelCallbackI.addPlanObjectToScene
addPreviewHandlers
▸ addPreviewHandlers(previewComponent
): void
Parameters
previewComponent
Returns
void
Inherited from
addPreviewLineHandlers
▸ addPreviewLineHandlers(previewLineComponent
): void
Parameters
previewLineComponent
Returns
void
Inherited from
default.addPreviewLineHandlers
animateElement
▸ animateElement(elementId
, parameterName
, value
, applyToChildren
, animate
): void
Parameters
elementId
number
parameterName
string
value
string
applyToChildren
boolean
animate
boolean
Returns
void
Inherited from
backToPlanner
▸ backToPlanner(): void
Returns
void
beginPlanConstruction
▸ beginPlanConstruction(_plan
): void
Parameters
_plan
Returns
void
Implementation of
PlannerKernelCallbackI.beginPlanConstruction
cameraBehaviourChanged
▸ cameraBehaviourChanged(): void
Returns
void
Overrides
default.cameraBehaviourChanged
cancelComponentSelection
▸ cancelComponentSelection(resetCamera?
): void
Parameters
resetCamera?
boolean
Returns
void
Inherited from
default.cancelComponentSelection
cancelDockings
▸ cancelDockings(): void
Returns
void
Inherited from
cancelPlanElementSelection
▸ cancelPlanElementSelection(reason
): void
Parameters
reason
Returns
void
cancelPreviousDockings
▸ cancelPreviousDockings(): void
Returns
void
Inherited from
default.cancelPreviousDockings
changeEnvironmentMapIntensity
▸ changeEnvironmentMapIntensity(intensity
): void
Parameters
intensity
number
Returns
void
Inherited from
default.changeEnvironmentMapIntensity
changeExteriorWallsMaterial
▸ changeExteriorWallsMaterial(material
): void
Parameters
material
Returns
void
changeFloorMaterial
▸ changeFloorMaterial(material
): Promise
<void
>
Parameters
material
Returns
Promise
<void
>
Inherited from
changeFloorsMaterial
▸ changeFloorsMaterial(material
): void
Parameters
material
Returns
void
changeInteriorWallsMaterial
▸ changeInteriorWallsMaterial(material
): void
Parameters
material
Returns
void
changeOffset
▸ changeOffset(offset
): void
Parameters
offset
Returns
void
Inherited from
cleanUp
▸ cleanUp(): void
Returns
void
Inherited from
clearScene
▸ clearScene(): void
Returns
void
Overrides
componentDeleted
▸ componentDeleted(component
): void
Parameters
component
Returns
void
Inherited from
componentUpdated
▸ componentUpdated(component
, _kernelComponent
): void
Parameters
component
_kernelComponent
Returns
void
Inherited from
configurationLoaded
▸ configurationLoaded(component
, isFreeFlying
): void
Parameters
component
isFreeFlying
boolean
Returns
void
Inherited from
debugScene
▸ debugScene(): Scene
Returns
Scene
Inherited from
debugSceneGraph
▸ debugSceneGraph(id?
): void
Parameters
id?
number
Returns
void
Inherited from
deletePlanElementByIds
▸ deletePlanElementByIds(runtimeIds
): Promise
<void
>
Parameters
runtimeIds
number
[]
Returns
Promise
<void
>
deletePlanElementSelection
▸ deletePlanElementSelection(): Promise
<void
>
Returns
Promise
<void
>
destroy
▸ destroy(): void
Returns
void
Overrides
disableAdvancedDocking
▸ disableAdvancedDocking(): void
Returns
void
disableConfiguratorEvents
▸ disableConfiguratorEvents(): void
Returns
void
Inherited from
default.disableConfiguratorEvents
disableEvents
▸ disableEvents(): void
Returns
void
Overrides
disableMeasurementLineDrawing
▸ disableMeasurementLineDrawing(): void
Returns
void
disablePlannerEvents
▸ disablePlannerEvents(): void
Returns
void
disableRotation
▸ disableRotation(): void
Returns
void
disableShowChildrenOfPlanObject
▸ disableShowChildrenOfPlanObject(planElementViewModel
): void
Parameters
planElementViewModel
Returns
void
disableSnapping
▸ disableSnapping(): void
Returns
void
disableWallDrawing
▸ disableWallDrawing(): void
Returns
void
display
▸ display(component
): void
Parameters
component
Returns
void
Inherited from
dragIn
▸ dragIn(dragEvent
): void
Parameters
dragEvent
DragEvent
Returns
void
enableAdvancedDocking
▸ enableAdvancedDocking(): void
Returns
void
enableConfiguratorEvents
▸ enableConfiguratorEvents(): void
Returns
void
Inherited from
default.enableConfiguratorEvents
enableDragIn
▸ enableDragIn(dragEvent
): void
Parameters
dragEvent
DragEvent
Returns
void
Inherited from
enableEvents
▸ enableEvents(): void
Returns
void
Overrides
enableHD
▸ enableHD(source?
): void
Parameters
source?
Returns
void
Inherited from
enableMeasurementLineDrawing
▸ enableMeasurementLineDrawing(): void
Returns
void
enablePlannerEvents
▸ enablePlannerEvents(): void
Returns
void
enableRotation
▸ enableRotation(): void
Returns
void
enableShowChildrenOfPlanObject
▸ enableShowChildrenOfPlanObject(planElementViewModel
): void
Parameters
planElementViewModel
Returns
void
enableSnapping
▸ enableSnapping(): void
Returns
void
enableWallDrawing
▸ enableWallDrawing(): void
Returns
void
endPlanConstruction
▸ endPlanConstruction(_plan
): void
Parameters
_plan
Returns
void
Implementation of
PlannerKernelCallbackI.endPlanConstruction
escapeDrawing
▸ escapeDrawing(cancelDrawing
): void
Parameters
cancelDrawing
boolean
Returns
void
exportCanvasScreenshot
▸ exportCanvasScreenshot(quality?
): Promise
<string
>
Parameters
quality
number
1
Returns
Promise
<string
>
Inherited from
default.exportCanvasScreenshot
exportGLB
▸ exportGLB(_exportObjects?
, _id?
): void
Parameters
_exportObjects?
Object3D
<Object3DEventMap
>[]
_id?
string
Returns
void
exportImageFromCamera
▸ exportImageFromCamera(filename
, shouldWaitForAssets?
): Promise
<void
>
Parameters
filename
string
undefined
shouldWaitForAssets
boolean
false
Returns
Promise
<void
>
Inherited from
getBounds
▸ getBounds(): Box3
Returns
Box3
Overrides
getCameraOffset
▸ getCameraOffset(): CanvasOffset
Returns
Inherited from
getComponent
▸ getComponent(componentRuntimeId
): KernelComponent
Parameters
componentRuntimeId
number
Returns
Inherited from
getGeometryBounds
▸ getGeometryBounds(): Box3
Returns
Box3
Overrides
getOrthographicOffsetCamera
▸ getOrthographicOffsetCamera(): OrthographicOffsetCamera
Returns
Inherited from
default.getOrthographicOffsetCamera
getPlanObject
▸ getPlanObject(id
): KernelPlanObject
Parameters
id
number
Returns
getPlannerSceneEventHandler
▸ getPlannerSceneEventHandler(): default
Returns
getRootPlanObjectId
▸ getRootPlanObjectId(id
): number
This is needed to get the root plan object id in case a plan element is selected which has been docked using advanced docking
Parameters
id
number
Returns
number
getScene
▸ getScene(): Scene
Returns
Scene
Inherited from
getScreenXY
▸ getScreenXY(position
): Vector3
Parameters
position
Vector3
Returns
Vector3
Inherited from
getWallAngleDegrees
▸ getWallAngleDegrees(wall
): number
Parameters
wall
Returns
number
handleEvent
▸ handleEvent(evt
): void
Parameters
evt
Event
Returns
void
Inherited from
handlerSwitchedPlans
▸ handlerSwitchedPlans(fromPlan
, toPlan
): void
Parameters
Returns
void
Implementation of
PlannerKernelCallbackI.handlerSwitchedPlans
hideDimensions
▸ hideDimensions(): void
Returns
void
Inherited from
highlightParts
▸ highlightParts(ids
): void
Parameters
ids
number
[]
Returns
void
Inherited from
importGLB
▸ importGLB(url
): void
Parameters
url
string
Returns
void
loadDynamicLightSetting
▸ loadDynamicLightSetting(source
): Promise
<void
>
Parameters
Returns
Promise
<void
>
Inherited from
default.loadDynamicLightSetting
loadEnvMap
▸ loadEnvMap(url
): Promise
<void
>
Parameters
url
string
Returns
Promise
<void
>
Inherited from
loadSceneSettings
▸ loadSceneSettings(sceneSetting
): Promise
<void
>
Parameters
sceneSetting
Returns
Promise
<void
>
Inherited from
loadStaticPlanObjects
▸ loadStaticPlanObjects(): void
Returns
void
lockCamera
▸ lockCamera(): void
Returns
void
Inherited from
moveCamera
▸ moveCamera(cameraParameter
): Promise
<void
>
Parameters
cameraParameter
Returns
Promise
<void
>
Overrides
moveElementPosition
▸ moveElementPosition(selectedElement
, position
): void
Parameters
selectedElement
position
Returns
void
moveElementsPosition
▸ moveElementsPosition(selectedElements
, position
): void
Parameters
selectedElements
default
[]
position
Returns
void
pause
▸ pause(): void
Returns
void
Inherited from
planBoundsChanged
▸ planBoundsChanged(): void
Returns
void
Implementation of
PlannerKernelCallbackI.planBoundsChanged
planCleared
▸ planCleared(): void
Returns
void
Implementation of
PlannerKernelCallbackI.planCleared
planCompletelyLoaded
▸ planCompletelyLoaded(_plan
): void
Parameters
_plan
Returns
void
Implementation of
PlannerKernelCallbackI.planCompletelyLoaded
planElementChanged
▸ planElementChanged(_plan
, planElementViewModel
): Promise
<void
>
Parameters
Returns
Promise
<void
>
Implementation of
PlannerKernelCallbackI.planElementChanged
planElementRemoved
▸ planElementRemoved(element
): void
Parameters
element
Returns
void
Implementation of
PlannerKernelCallbackI.planElementRemoved
planHistoryStateChanged
▸ planHistoryStateChanged(): void
Returns
void
Implementation of
PlannerKernelCallbackI.planHistoryStateChanged
planObjectConfigurationLoaded
▸ planObjectConfigurationLoaded(plan
, element
, _success
): void
Parameters
Returns
void
Implementation of
PlannerKernelCallbackI.planObjectConfigurationLoaded
planObjectConstructionDone
▸ planObjectConstructionDone(_planObject
): void
Parameters
_planObject
Returns
void
Inherited from
default.planObjectConstructionDone
planObjectUpdated
▸ planObjectUpdated(planObject
, geometryChanged
, pendingDocking
): void
Parameters
Returns
void
Inherited from
planXMLLoaded
▸ planXMLLoaded(plan
): void
Parameters
plan
Returns
void
preload
▸ preload(id
): void
Parameters
id
string
Returns
void
preparePartImage
▸ preparePartImage(partId
, options
): Promise
<any
>
Parameters
partId
number
options
Returns
Promise
<any
>
Inherited from
preparePerspectiveImage
▸ preparePerspectiveImage(options?
): Promise
<Base64Image
>
Parameters
options
Returns
Promise
<Base64Image
>
Overrides
default.preparePerspectiveImage
preparePerspectiveImageOf
▸ preparePerspectiveImageOf(runtimeId
, options?
): Promise
<Base64Image
>
Parameters
runtimeId
number
options
Returns
Promise
<Base64Image
>
prepareTopImage
▸ prepareTopImage(options?
): Promise
<Base64Image
>
Parameters
options
Returns
Promise
<Base64Image
>
Overrides
previewConstructionDone
▸ previewConstructionDone(_component
, hasPreviews
): void
Parameters
_component
hasPreviews
boolean
Returns
void
Inherited from
default.previewConstructionDone
removeEventListener
▸ removeEventListener(_listener
): void
Parameters
_listener
Returns
void
Inherited from
removePlanObjectFromScene
▸ removePlanObjectFromScene(planViewModel
): void
Parameters
planViewModel
Returns
void
Implementation of
PlannerKernelCallbackI.removePlanObjectFromScene
renderImage
▸ renderImage(renderOptions
): Promise
<Base64Image
>
Parameters
renderOptions
Partial
<{ useCurrentPerspective
: boolean
= false }>
Returns
Promise
<Base64Image
>
Inherited from
requestCatalogItem
▸ requestCatalogItem(catalogItemId
): void
Parameters
catalogItemId
string
Returns
void
Implementation of
PlannerKernelCallbackI.requestCatalogItem
requestDeleteSelectedComponent
▸ requestDeleteSelectedComponent(): void
Returns
void
Inherited from
default.requestDeleteSelectedComponent
requestDockingsPreview
▸ requestDockingsPreview(userInitiated
, possibleChild?
, dragEvent?
, dragIn?
): void
Parameters
Returns
void
Inherited from
default.requestDockingsPreview
resetCameraPositionToStart
▸ resetCameraPositionToStart(): void
Returns
void
Overrides
default.resetCameraPositionToStart
resetConfiguratorContext
▸ resetConfiguratorContext(): void
Returns
void
resetPreviews
▸ resetPreviews(): void
Returns
void
Inherited from
resume
▸ resume(): void
Returns
void
Inherited from
rotatePlanElementSelection
▸ rotatePlanElementSelection(rotateBy
): void
Parameters
rotateBy
number
Returns
void
saveConfigToIdb
▸ saveConfigToIdb(): void
Returns
void
Inherited from
sceneChanged
▸ sceneChanged(): void
Returns
void
Overrides
sceneCleared
▸ sceneCleared(shouldHardReset
): void
Parameters
shouldHardReset
boolean
Returns
void
Inherited from
selectComponent
▸ selectComponent(runtimeId
): void
Parameters
runtimeId
number
Returns
void
Inherited from
selectPlanObject
▸ selectPlanObject(runtimeId
): Promise
<void
>
Parameters
runtimeId
number
Returns
Promise
<void
>
setBackgroundColor
▸ setBackgroundColor(hex
): void
Parameters
hex
string
Returns
void
Inherited from
setBackgroundImage
▸ setBackgroundImage(url
): void
Parameters
url
string
Returns
void
Inherited from
setCameraOffset
▸ setCameraOffset(offset
): void
Parameters
offset
Returns
void
Inherited from
setCompletelyLoaded
▸ setCompletelyLoaded(completelyLoaded
): void
Parameters
completelyLoaded
boolean
Returns
void
setEnvironmentMap
▸ setEnvironmentMap(url?
, intensity?
, rotation?
, maxLightSources?
): void
Parameters
url?
string
intensity?
number
rotation?
number
maxLightSources?
number
Returns
void
Inherited from
setMeasurementLineLength
▸ setMeasurementLineLength(measurementId
, length
, wallDirection
): void
Parameters
measurementId
number
length
number
wallDirection
string
Returns
void
setMode
▸ setMode(mode
): void
Parameters
mode
Enumify
<{ CAMERA_2D
: "2D"
= '2D'; CAMERA_3D
: "3D"
= '3D'; CAMERA_FP
: "FP"
= 'FP' }>
Returns
void
setObjectToWallMeasurementLength
▸ setObjectToWallMeasurementLength(planElementId
, measurementId
, length
): void
Parameters
planElementId
number
measurementId
number
length
number
Returns
void
setSceneEvents
▸ setSceneEvents(sceneEvents
): void
Parameters
sceneEvents
Returns
void
setSelectionMode
▸ setSelectionMode(mode
): void
Parameters
mode
Returns
void
Inherited from
setWallMeasurementLength
▸ setWallMeasurementLength(measurementId
, length
, wallDirection
): void
Parameters
Returns
void
showDimensions
▸ showDimensions(): Promise
<void
>
Returns
Promise
<void
>
Inherited from
showGUI
▸ showGUI(): void
Returns
void
Inherited from
showStats
▸ showStats(): void
Returns
void
Inherited from
showsChildrenOfPlanObject
▸ showsChildrenOfPlanObject(planElementViewModel
): boolean
Parameters
planElementViewModel
Returns
boolean
startConfiguring
▸ startConfiguring(): void
Returns
void
startViewing
▸ startViewing(): void
Returns
void
startedDrawing
▸ startedDrawing(): void
called by kernel
Returns
void
Implementation of
PlannerKernelCallbackI.startedDrawing
stoppedDrawing
▸ stoppedDrawing(): void
called by kernel
Returns
void
Implementation of
PlannerKernelCallbackI.stoppedDrawing
switchTo2D
▸ switchTo2D(): void
Returns
void
switchTo3D
▸ switchTo3D(): void
Returns
void
switchToFirstPerson
▸ switchToFirstPerson(): void
Returns
void
toggleConfigureInRoom
▸ toggleConfigureInRoom(): void
Returns
void
unlockCamera
▸ unlockCamera(): void
Returns
void
Inherited from
updateCamera
▸ updateCamera(_changeCamera?
): void
Parameters
_changeCamera
boolean
true
Returns
void
Inherited from
updateCameraOnDrawWalls
▸ updateCameraOnDrawWalls(): void
Returns
void
updateScene
▸ updateScene(): void
Returns
void
Inherited from
zoomIn
▸ zoomIn(value?
): void
Parameters
value?
number
Returns
void
Inherited from
zoomOut
▸ zoomOut(value?
): void
Parameters
value?
number
Returns
void
Inherited from
Last updated