RoomlePlanner.default

planner-core/src/roomle-planner.default

Shared API between configurator and planner

Implements

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new default(creator)

Parameters

Properties

_creator_

_creator_: string

Implementation of

Context.creator

Accessors

PlannerCoreTypes

get PlannerCoreTypes(): PlannerKernelContainer

Returns

PlannerKernelContainer

an object which has all type constants from Roomle Core (C/C++)


callbacks

get callbacks(): default

Returns

default

Implementation of

ExternalEmbeddable.callbacks

set callbacks(callback): void

Parameters

Returns

void

Implementation of

ExternalEmbeddable.callbacks

Methods

back

back(): void

Returns

void


backTo

backTo(_cssClass): void

Parameters

Returns

void


backToPlanner

backToPlanner(): void

Returns

void


calcPartsPriceSum

calcPartsPriceSum(partList): Promise<KernelPartListPrice>

Parameters

Returns

Promise<KernelPartListPrice>


cancelSelection

cancelSelection(reason?): void

Parameters

Returns

void

Implementation of

RoomlePlannerCallback.cancelSelection


changeExteriorWallsMaterial

changeExteriorWallsMaterial(material): void

Parameters

Returns

void


changeFloorsMaterial

changeFloorsMaterial(material): void

Parameters

Returns

void


changeInteriorWallsMaterial

changeInteriorWallsMaterial(material): void

Parameters

Returns

void


createNewSerializedConfiguration

createNewSerializedConfiguration(configurationRuntimeId): Promise<string>

Parameters

Returns

Promise<string>


deleteSelection

deleteSelection(): void

Returns

void

Implementation of

RoomlePlannerCallback.deleteSelection


disableAdvancedDocking

disableAdvancedDocking(): void

disable docking of objects that fit together when objects are snapped in the plan

Returns

void


disableMeasurementLineDrawing

disableMeasurementLineDrawing(): void

Returns

void


disableMultiselect

disableMultiselect(): void

Disable the selection of multiple elements.

Returns

void


disableRotation

disableRotation(): void

Disable rotation of selected elements

Returns

void


disableShowChildrenOfPlanObject

disableShowChildrenOfPlanObject(planElementViewModel): void

disable interaction with child components of configurable objects in the plan

Parameters

Returns

void


disableSnapping

disableSnapping(): void

disable all types of snapping

Returns

void


disableWallDrawing

disableWallDrawing(): void

Returns

void


dragInObject

dragInObject(id, dragEvent): Promise<number>

Parameters

Returns

Promise<number>


drawWalls

drawWalls(wallDefinitions, interactionOptions?): KernelWall[]

Draws walls according to the wall definitions this can be used to create a room on the fly

Parameters

Returns

KernelWall[]


duplicateItems

duplicateItems(itemList): PlanObject[]

Duplicates all planObjects in the array and inserts them into the current plan

Parameters

Returns

PlanObject[]


enableAdvancedDocking

enableAdvancedDocking(): void

enable docking of objects that fit together when objects are snapped in the plan

Returns

void


enableMeasurementLineDrawing

enableMeasurementLineDrawing(): void

Returns

void


enableMultiselect

enableMultiselect(): void

Enable the selection of multiple elements. Common parameters shared between those elements can then be changed at once

Returns

void

Implementation of

RubensAPI.enableMultiselect


enableRotation

enableRotation(): void

Enables rotation of selected elements

Returns

void


enableShowChildrenOfPlanObject

enableShowChildrenOfPlanObject(planElementViewModel): void

enable interaction with child components of configurable objects in the plan

Parameters

Returns

void


enableSnapping

enableSnapping(): void

enable snapping of object to object and object to wall

Returns

void


enableWallDrawing

enableWallDrawing(): void

Returns

void


escapeDrawing

escapeDrawing(cancelDrawing): void

Parameters

Returns

void


exportCanvasScreenshot

exportCanvasScreenshot(quality?): Promise<string>

Parameters

Returns

Promise<string>

Implementation of

RubensAPI.exportCanvasScreenshot


exportGLB

exportGLB(): void

Returns

void


exportImageFromCamera

exportImageFromCamera(filename?, shouldWaitForAssets?): Promise<void>

Parameters

Returns

Promise<void>

Implementation of

RubensAPI.exportImageFromCamera


formatValueToUnitString

formatValueToUnitString(value, parameter): string | number

Returns the formatted value based on the parameter.unitType

Parameters

Returns

string | number


generateTCExport

generateTCExport(planObjectIds?): Promise<any>

Parameters

Returns

Promise<any>


getCameraOffset

getCameraOffset(): CanvasOffset

Gets the available screen space for our item default: 'left: 0, top: 1, right: 1, bottom: 0'

Returns

CanvasOffset

Implementation of

GlobalAPI.getCameraOffset


getConfigurator

getConfigurator(): Configurator

Returns

Configurator


getConfiguratorApi

getConfiguratorApi(): default

Returns

default


getConfiguratorContext

getConfiguratorContext(): default

returns class containing configurator specific data properties

Returns

default


getCurrentSkin

getCurrentSkin(): Promise<RapiSkin>

Returns

Promise<RapiSkin>


getObjects

getObjects(): Promise<UiPlanObject[]>

returns all objects found in the current plan this includes info about size, rotation, id and parts

Returns

Promise<UiPlanObject[]>


getPartlistOf

getPartlistOf(id): Promise<KernelPartList>

get the Partlist of certain runtimeID can be used if partlist of a selected Item is needed

Parameters

Returns

Promise<KernelPartList>

kernelPartlist with processed price, currency and RAL colors


getPlanInteractionHandler

getPlanInteractionHandler(): Promise<PlanInteractionHandler>

Returns

Promise<PlanInteractionHandler>


getPlanModelViewHelper

getPlanModelViewHelper(): Promise<PlanModelViewHelper>

Returns

Promise<PlanModelViewHelper>


getPlanOverview

getPlanOverview(): Promise<PlanOverview>

get all info available for the current plan, including objects, rooms and walls

Returns

Promise<PlanOverview>


getPlanXmlFrom

getPlanXmlFrom(plan): any

Parameters

Returns

any


getRuntimeComponentIdOfRootComponent

getRuntimeComponentIdOfRootComponent(planObjectId): number

Returns the runtime component id of the plan object with the given id

Parameters

Returns

number

number the number of the runtime id of the root component

Implementation of

KernelUtilityForUi.getRuntimeComponentIdOfRootComponent


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

Implementation of

GlobalAPI.getScene


getStorage

getStorage(): default

returns manager class to interface with indexedDB storage

Returns

default

Implementation of

RubensAPI.getStorage


getUnitFormatter

getUnitFormatter(): default

returns unit formatter for formatting input und output values in scene

Returns

default

Implementation of

GlobalAPI.getUnitFormatter


getWallAngleDegrees

getWallAngleDegrees(wall): number

Returns the wall angle in degrees relative to the camera

Parameters

Returns

number


hasWalls

hasWalls(): boolean

Returns

boolean


importGLB

importGLB(url): void

Parameters

Returns

void


init

init(element, preloadPlanId?, options?): Promise<void>

Parameters

Returns

Promise<void>


insertItemList

insertItemList(ids): Promise<number[]>

Parameters