RoomleConfigurator.Internal.PlanInteractionHandler
configurator-core/src/roomle-configurator.internal.PlanInteractionHandler
Table of contents
Properties
Methods
Properties
customRaster
• customRaster: number
dockWhenSnap
• dockWhenSnap: boolean
enableDrawingSnap
• enableDrawingSnap: boolean
enableRaster
• enableRaster: boolean
enableSnap
• enableSnap: boolean
objectToObjectSnapMode
• objectToObjectSnapMode: SnapMode
objectToWallSnapMode
• objectToWallSnapMode: SnapMode
showChildrenOfPlanObjects
• showChildrenOfPlanObjects: ChildEntityMode
unDockOnMove
• unDockOnMove: boolean
unit
• unit: string
Methods
addMeasure
▸ addMeasure(startPosition
, endPosition
): PlanMeasure
Parameters
startPosition
endPosition
Returns
addNode
▸ addNode(point
): PlanNode
Parameters
point
Object
point.x
number
point.y
number
point.z
number
Returns
addOrUpdateExternalPlanObjects
▸ addOrUpdateExternalPlanObjects(serialzedConfiguration
, position
, rotationInRad
, findFreeSpaceInPlan
, applyGlobalChildMode
): PlanObject
[]
Parameters
serialzedConfiguration
string
position
rotationInRad
number
findFreeSpaceInPlan
boolean
applyGlobalChildMode
boolean
Returns
addPlanObjectFromItem
▸ addPlanObjectFromItem(object
, position
, type
, findFreeSpaceInPlan
): PlanObject
Parameters
object
position
type
number
findFreeSpaceInPlan
boolean
Returns
addPlanObjects
▸ addPlanObjects(list
, findFreeSpaceInPlan
): PlanObject
[]
Parameters
list
findFreeSpaceInPlan
boolean
Returns
addWall
▸ addWall(from
, to
): KernelWall
Parameters
from
to
Returns
beginDrawing
▸ beginDrawing(point
, vectorPreviewMode
): void
Parameters
point
Object
point.x
number
point.y
number
point.z
number
vectorPreviewMode
boolean
Returns
void
cancelDrawing
▸ cancelDrawing(): void
Returns
void
catalogItemLoaded
▸ catalogItemLoaded(catalogItem
): void
Parameters
catalogItem
Returns
void
consistsOfMergedComponents
▸ consistsOfMergedComponents(object
): boolean
Parameters
object
Returns
boolean
currentDrawingPosition
▸ currentDrawingPosition(point
): void
Parameters
point
Object
point.x
number
point.y
number
point.z
number
Returns
void
deactivateAllSnappingActivity
▸ deactivateAllSnappingActivity(): void
Returns
void
duplicatePlanObject
▸ duplicatePlanObject(object
, count
, findFreeSpaceInPlan
): PlanObject
[]
Parameters
object
count
number
findFreeSpaceInPlan
boolean
Returns
duplicatePlanObjects
▸ duplicatePlanObjects(objects
, count
, findFreeSpaceInPlan
): PlanObject
[]
Parameters
objects
count
number
findFreeSpaceInPlan
boolean
Returns
endDrawing
▸ endDrawing(point
): void
Parameters
point
Object
point.x
number
point.y
number
point.z
number
Returns
void
endInteraction
▸ endInteraction(): void
Returns
void
forceNode
▸ forceNode(point
): void
Parameters
point
Object
point.x
number
point.y
number
point.z
number
Returns
void
getConfiguratorKernel
▸ getConfiguratorKernel(): ConfiguratorKernelClass
Returns
getContinuousDrawingManager
▸ getContinuousDrawingManager(): ContinuousDrawingManager
Returns
getDefaultExteriorWallMaterial
▸ getDefaultExteriorWallMaterial(): KernelWallMaterial
Returns
getDefaultFloorMaterial
▸ getDefaultFloorMaterial(): KernelFloorMaterial
Returns
getDefaultInteriorWallMaterial
▸ getDefaultInteriorWallMaterial(): KernelWallMaterial
Returns
getPlan
▸ getPlan(): Plan
Returns
getShowChildrenOfPlanObject
▸ getShowChildrenOfPlanObject(object
): ChildEntityMode
Parameters
object
Returns
groupObjects
▸ groupObjects(planObjectPtrList
): ObjectGroupPtr
Parameters
planObjectPtrList
Returns
init
▸ init(reference
, zoomFactor
, viewSnapDist
, wallSnapMode
, objectSnapMode
, shouldSnap
, drawingType
): PlanInteractionHandler
Parameters
reference
zoomFactor
number
viewSnapDist
number
wallSnapMode
any
objectSnapMode
any
shouldSnap
boolean
drawingType
any
Returns
isRedoPossible
▸ isRedoPossible(): boolean
Returns
boolean
isUndoPossible
▸ isUndoPossible(): boolean
Returns
boolean
isVectorPreviewModeEnabled
▸ isVectorPreviewModeEnabled(): boolean
Returns
boolean
loadPlanXML
▸ loadPlanXML(xml
): Plan
Parameters
xml
string
Returns
moveElementBy
▸ moveElementBy(planObject
, distance
): void
Parameters
planObject
distance
Returns
void
moveElementTo
▸ moveElementTo(planObject
, point
): void
Parameters
planObject
point
Returns
void
moveObjectsBy
▸ moveObjectsBy(planObjects
, distance
): void
Parameters
planObjects
distance
Returns
void
reactivateAllSnappingActivity
▸ reactivateAllSnappingActivity(): void
Returns
void
redo
▸ redo(): void
Returns
void
removeElement
▸ removeElement(planObject
): void
Parameters
planObject
Returns
void
removeObjectWithId
▸ removeObjectWithId(objectId
): void
Parameters
objectId
string
Returns
void
rotateGroupBy
▸ rotateGroupBy(group
, anAngleInRad
, aroundPoint
): void
Parameters
group
anAngleInRad
number
aroundPoint
Returns
void
rotateObjectTo
▸ rotateObjectTo(planObject
, angleInRad
): void
Parameters
planObject
angleInRad
number
Returns
void
rotateObjectsBy
▸ rotateObjectsBy(planObjectPtrList
, anAngleInRad
, aroundPoint
): void
Parameters
planObjectPtrList
anAngleInRad
number
aroundPoint
Returns
void
setDefaultExteriorWallMaterial
▸ setDefaultExteriorWallMaterial(wallMaterial
): void
Parameters
wallMaterial
Returns
void
setDefaultFloorMaterial
▸ setDefaultFloorMaterial(floorMaterial
): void
Parameters
floorMaterial
Returns
void
setDefaultInteriorWallMaterial
▸ setDefaultInteriorWallMaterial(wallMaterial
): void