API Reference › Globals › RoomleConfigurator
# Class: RoomleConfigurator
# Hierarchy
- RoomleConfigurator
# Implements
- GlobalAPI
- Context
- KernelUtilityForUi
- ConfiguratorKernelAccessCallbackI
- ExternalEmbeddable‹ConfiguratorUiCallbacks›
# Index
# Constructors
# Properties
# Accessors
# Methods
- cancelDockings
- cancelSelection
- changeFloorMaterial
- changeFloorMaterialById
- changeOffset
- cleanup
- clearHistory
- disableHDGeometry
- disableMultiselect
- enableHDGeometry
- enableMeshSelection
- enableMultiselect
- formatValueToUnitString
- generateImagesOfCurrentConfiguration
- getAdditionalContentsOf
- getCameraOffset
- getConfiguratorSettings
- getCurrentConfiguration
- getCurrentConfigurationHash
- getCurrentSelection
- getHashOfSerializedConfiguration
- getParameterGroups
- getParametersOfPlanObject
- getParametersOfRootComponent
- getRuntimeComponentIdOfRootComponent
- getScene
- getShortUrlOfCurrentConfiguration
- getTagById
- hideDimensions
- highlightParts
- init
- isReady
- loadComponentIntoKernel
- loadConfigurableItemById
- loadConfiguration
- loadConfigurationById
- loadDynamicLightSetting
- loadError
- loadSceneSetting
- moveCamera
- pauseKernelCallbacks
- preLoadConfigurableItemById
- preLoadConfigurationById
- preparePartImage
- preparePerspectiveImage
- prepareTopImage
- previewDockings
- redo
- removeTypeChangeTag
- renderImage
- requestAsset
- requestDeleteComponent
- resetCameraPosition
- resumeKernelCallbacks
- saveCurrentConfiguration
- selectComponent
- setActiveGroupInView
- setCameraOffset
- setComponentParameter
- setOverrides
- setParameter
- setParameterOfPlanObject
- setParameterOfRootComponent
- showDimensions
- showGUI
- showStats
- syncCatalog
- syncFloorTag
- syncPlanObjectToView
- syncTypeChangeTag
- undo
- updateParameters
- updatePossibleChildren
- updateScene
- updateSize
- zoomIn
- zoomOut
# Constructors
# constructor
+ new RoomleConfigurator(creator
: string): RoomleConfigurator
Defined in packages/configurator-core/src/roomle-configurator.ts:182
Parameters:
Name | Type |
---|---|
creator | string |
Returns: RoomleConfigurator
# Properties
# creator
• creator: string
Implementation of Context.creator
Defined in packages/configurator-core/src/roomle-configurator.ts:97
# Accessors
# callbacks
• get callbacks(): ConfiguratorUiCallbacks
Defined in packages/configurator-core/src/roomle-configurator.ts:1430
Return ConfiguratorUiCallbacks to override
Returns: ConfiguratorUiCallbacks
# globalCallbacks
• get globalCallbacks(): GlobalCallback
Defined in packages/configurator-core/src/roomle-configurator.ts:1438
internal
Return GlobalCallback to override
Returns: GlobalCallback
# Methods
# cancelDockings
▸ cancelDockings(): void
Defined in packages/configurator-core/src/roomle-configurator.ts:618
Remove/cancel all dockings/ghosts
Returns: void
# cancelSelection
▸ cancelSelection(): void
Defined in packages/configurator-core/src/roomle-configurator.ts:578
Cancels the selection of all currently selected components
Returns: void
# changeFloorMaterial
▸ changeFloorMaterial(material
: RapiMaterial): Promise‹void›
Defined in packages/configurator-core/src/roomle-configurator.ts:1096
Sets the material of the floor to the given RapiMaterial. If the current environment is not floor environment it will be changed
Parameters:
Name | Type |
---|---|
material | RapiMaterial |
Returns: Promise‹void›
promise that resolves when material has been changed
# changeFloorMaterialById
▸ changeFloorMaterialById(materialId
: string): Promise‹void›
Defined in packages/configurator-core/src/roomle-configurator.ts:1120
Sets the material of the floor to the given material id. If the current environment is not floor environment it will be changed
Example material ids are: roomle_floor:DresdenEiche roomle_floor:Ibiza roomle_floor:Palma roomle_floor:Elba roomle_floor:Manacor roomle_floor:KernEiche roomle_floor:KieferScandic roomle_floor:EicheHabsburg roomle_floor:FuldaKiefer roomle_floor:Ashton roomle_floor:EicheLondon
Parameters:
Name | Type |
---|---|
materialId | string |
Returns: Promise‹void›
promise that resolves when material has been changed
# changeOffset
▸ changeOffset(offset
: CanvasOffset): void
Defined in packages/configurator-core/src/roomle-configurator.ts:600
Change the camera offset, see CanvasOffset for more details
Parameters:
Name | Type | Description |
---|---|---|
offset | CanvasOffset |
Returns: void
# cleanup
▸ cleanup(options
: CleanupOptions): void
Defined in packages/configurator-core/src/roomle-configurator.ts:1380
Clears the scene and all components/meshes. Also unregisters configurator callbacks in kernel.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
options | CleanupOptions | {} | CleanupOptions |
Returns: void
# clearHistory
▸ clearHistory(): void
Defined in packages/configurator-core/src/roomle-configurator.ts:1768
clears current configurator history
Returns: void
# disableHDGeometry
▸ disableHDGeometry(): Promise‹void | ConfigurationLoadedResponse›
Defined in packages/configurator-core/src/roomle-configurator.ts:592
Disable the use of HD Geometry
Returns: Promise‹void | ConfigurationLoadedResponse›
# disableMultiselect
▸ disableMultiselect(): void
Defined in packages/configurator-core/src/roomle-configurator.ts:973
Disable selection of multiple components. By default only one component can be selected at a time
Returns: void
# enableHDGeometry
▸ enableHDGeometry(): Promise‹void | ConfigurationLoadedResponse›
Defined in packages/configurator-core/src/roomle-configurator.ts:585
Enable the use of HD geometry. Also reloads the object with HD geometry enabled
Returns: Promise‹void | ConfigurationLoadedResponse›
# enableMeshSelection
▸ enableMeshSelection(enabled
: boolean): void
Defined in packages/configurator-core/src/roomle-configurator.ts:1342
By default the outline pass uses the bounding box mesh of each component to highlight the object. When mesh selection is enabled, the meshes of the object are used directly. This is the recommended setting for non square/rectangular (shelf) components like sofas.
Parameters:
Name | Type | Description |
---|---|---|
enabled | boolean |
Returns: void
# enableMultiselect
▸ enableMultiselect(): void
Defined in packages/configurator-core/src/roomle-configurator.ts:965
Enable the selection of multiple components. Common parameters shared between those components can then be changed at once
Returns: void
# formatValueToUnitString
▸ formatValueToUnitString(value
: number, parameter
: KernelParameter): string | number
Defined in packages/configurator-core/src/roomle-configurator.ts:1041
Returns the formatted value based on the parameter.unitType
Parameters:
Name | Type | Description |
---|---|---|
value | number | - |
parameter | KernelParameter |
Returns: string | number
# generateImagesOfCurrentConfiguration
▸ generateImagesOfCurrentConfiguration(): Promise‹object›
Defined in packages/configurator-core/src/roomle-configurator.ts:731
Generates images of the current configuration
Returns: Promise‹object›
Promise containing the topImage
, perspectgetAdditionalContentsOfiveImage
and a boolean isLocally
which indicates if the images were generated while being offline
# getAdditionalContentsOf
▸ getAdditionalContentsOf(rapiItems
: RapiItem[]): Promise‹RapiAdditionalContent[]›
Defined in packages/configurator-core/src/roomle-configurator.ts:1148
It is possible to add additional content to a configurable-item in our backend for example, product images, product videos etc. To fetch them you can use this method
Parameters:
Name | Type | Description |
---|---|---|
rapiItems | RapiItem[] |
Returns: Promise‹RapiAdditionalContent[]›
# getCameraOffset
▸ getCameraOffset(): CanvasOffset
Implementation of GlobalAPI
Defined in packages/configurator-core/src/roomle-configurator.ts:1361
Returns: CanvasOffset
# getConfiguratorSettings
▸ getConfiguratorSettings(id
: RapiId): Promise‹RapiConfiguratorSettings›
Defined in packages/configurator-core/src/roomle-configurator.ts:1700
Get the data which is assigned to the configurator object, especially things like allowed hosts
Parameters:
Name | Type |
---|---|
id | RapiId |
Returns: Promise‹RapiConfiguratorSettings›
# getCurrentConfiguration
▸ getCurrentConfiguration(): Promise‹ConfigurationString›
Defined in packages/configurator-core/src/roomle-configurator.ts:981
Returns: Promise‹ConfigurationString›
Promise with the current configuration string/hash
# getCurrentConfigurationHash
▸ getCurrentConfigurationHash(): Promise‹ConfigurationHash›
Defined in packages/configurator-core/src/roomle-configurator.ts:1463
returns the current configuration hash, this can be used for analytics or other stuff like caching etc
Returns: Promise‹ConfigurationHash›
string current configuration hash
# getCurrentSelection
▸ getCurrentSelection(): string[]
Defined in packages/configurator-core/src/roomle-configurator.ts:1467
Returns: string[]
# getHashOfSerializedConfiguration
▸ getHashOfSerializedConfiguration(serializedConfiguration
: string): ConfigurationHash
Defined in packages/configurator-core/src/roomle-configurator.ts:1776
Returns the hash of the given serialized configuration
Parameters:
Name | Type | Description |
---|---|---|
serializedConfiguration | string |
Returns: ConfigurationHash
# getParameterGroups
▸ getParameterGroups(): KernelParameterGroup[]
Defined in packages/configurator-core/src/roomle-configurator.ts:1693
Get all parameter groups defined on the component, even if it has no parameters assigned
Returns: KernelParameterGroup[]
# getParametersOfPlanObject
▸ getParametersOfPlanObject(): Promise‹KernelParameter[]›
Defined in packages/configurator-core/src/roomle-configurator.ts:934
Returns all parameters which correspond to the plan object. This is also exposed for embedding
Returns: Promise‹KernelParameter[]›
# getParametersOfRootComponent
▸ getParametersOfRootComponent(): Promise‹KernelParameter[]›
Defined in packages/configurator-core/src/roomle-configurator.ts:956
Returns all parameters which correspond to the root component. This is also exposed for embedding
Returns: Promise‹KernelParameter[]›
# getRuntimeComponentIdOfRootComponent
▸ getRuntimeComponentIdOfRootComponent(): number
Defined in packages/configurator-core/src/roomle-configurator.ts:1446
Returns the runtime component id of root component of the current plan object
Returns: number
number the number of the runtime id of the root component
# getScene
▸ getScene(): Scene
Implementation of GlobalAPI
Defined in packages/configurator-core/src/roomle-configurator.ts:198
Returns: Scene
# getShortUrlOfCurrentConfiguration
▸ getShortUrlOfCurrentConfiguration(): Promise‹string›
Defined in packages/configurator-core/src/roomle-configurator.ts:1018
Returns: Promise‹string›
Promise containing the short url for the current configuration
# getTagById
▸ getTagById(tagId
: RapiId, options?
: object): Promise‹RapiTagForUi›
Defined in packages/configurator-core/src/roomle-configurator.ts:1052
Get tag for a given tag id
Parameters:
▪ tagId: RapiId
▪Optional
options: object
{ include: RAPI_PATHS[] }
Name | Type |
---|---|
include | RAPI_PATHS[] |
Returns: Promise‹RapiTagForUi›
Promise containing the tag including items and materials for that tag
# hideDimensions
▸ hideDimensions(): void
Defined in packages/configurator-core/src/roomle-configurator.ts:1204
Hides dimensions when they are shown (see showDimensions). Calling hideDimensions does not force dimensions to be always hidden.
See onDimensionsVisibilityChange to get notified when dimension visibility changes
Returns: void
# highlightParts
▸ highlightParts(ids
: number[]): void
Defined in packages/configurator-core/src/roomle-configurator.ts:1738
Highlight parts in the scene with the given ids Use empty array to remove highlights
Parameters:
Name | Type | Description |
---|---|---|
ids | number[] |
Returns: void
# init
▸ init(element
: HTMLElement, initData?
: InitDataDefinition): Promise‹void›
Defined in packages/configurator-core/src/roomle-configurator.ts:558
This method has to be called before configurator is ready to use
Parameters:
Name | Type | Description |
---|---|---|
element | HTMLElement | which should contain the configurator |
initData? | InitDataDefinition | - |
Returns: Promise‹void›
Promise which is resolved when configurator is initialized
# isReady
▸ isReady(): void
Implementation of ConfiguratorKernelAccessCallbackI
Defined in packages/configurator-core/src/roomle-configurator.ts:1486
Returns: void
# loadComponentIntoKernel
▸ loadComponentIntoKernel(componentString
: string): Promise‹void›
Defined in packages/configurator-core/src/roomle-configurator.ts:992
Loads the component (defined as string) into the kernel
Parameters:
Name | Type |
---|---|
componentString | string |
Returns: Promise‹void›
Promise which gets resolved when the component has been loaded
# loadConfigurableItemById
▸ loadConfigurableItemById(itemId
: RapiId, initData?
: InitDataDefinition): Promise‹ConfigurationLoadedResponse›
Defined in packages/configurator-core/src/roomle-configurator.ts:833
Loads a configuration based on the item id
Parameters:
Name | Type | Description |
---|---|---|
itemId | RapiId | - |
initData? | InitDataDefinition |
Returns: Promise‹ConfigurationLoadedResponse›
# loadConfiguration
▸ loadConfiguration(configuration
: ConfigurationString, initData?
: InitDataDefinition): Promise‹ConfigurationLoadedResponse›
Defined in packages/configurator-core/src/roomle-configurator.ts:793
Loads an item based on a configuration string
For example: {'componentId":"muuto:Muuto-Stacked'}
Parameters:
Name | Type | Description |
---|---|---|
configuration | ConfigurationString | - |
initData? | InitDataDefinition |
Returns: Promise‹ConfigurationLoadedResponse›
# loadConfigurationById
▸ loadConfigurationById(configurationId
: RapiId, initData?
: InitDataDefinition): Promise‹ConfigurationLoadedResponse›
Defined in packages/configurator-core/src/roomle-configurator.ts:811
Loads an item based on a configuration hash
For example: koinor:FORMIA_LeftGroup:79FBF0D6C79A2598B5FF943111EA29DC0C6884AA97F4383582B47F69C14DDB2C
Parameters:
Name | Type | Description |
---|---|---|
configurationId | RapiId | - |
initData? | InitDataDefinition |
Returns: Promise‹ConfigurationLoadedResponse›
# loadDynamicLightSetting
▸ loadDynamicLightSetting(source
: DynamicLightSettingSource): Promise‹void›
Defined in packages/configurator-core/src/roomle-configurator.ts:1294
Loads a dynamic light settings into the scene. The dynamic light setting source can be an object (js), json, or an url (url to json). See SceneSettings how to define it.
Exampe:
{
"lights": [
{
"type": "rectarea",
"name": "main",
"intensity": 240,
"color": "#ffffff",
"position": {
"x": -0.5,
"y": 6,
"z": 3
},
"target": {
"x": 0,
"y": 0,
"z": 0
},
"castShadow": true,
"width": 0.8,
"height": 0.8
},
{
"type": "spot",
"name": "side",
"intensity": 0.3,
"color": "#ffffff",
"position": {
"x": 2,
"y": 3,
"z": 1.5
},
"target": {
"x": 0,
"y": 0.1,
"z": 0
},
"castShadow": false,
"angle": 50,
"penumbra": 0.5
},
{
"type": "ambient",
"name": "ambient",
"intensity": 0.3,
"color": "#ffffff",
"position": {
"x": 0,
"y": 0,
"z": 0
}
}
]
}
Parameters:
Name | Type | Description |
---|---|---|
source | DynamicLightSettingSource |
Returns: Promise‹void›
# loadError
▸ loadError(error?
: any): void
Implementation of ConfiguratorKernelAccessCallbackI
Defined in packages/configurator-core/src/roomle-configurator.ts:1665
Parameters:
Name | Type |
---|---|
error? | any |
Returns: void
# loadSceneSetting
▸ loadSceneSetting(sceneSettings
: SceneSettings): Promise‹void›
Defined in packages/configurator-core/src/roomle-configurator.ts:1331
Loads a SceneSettings object, currently it can can contain a light setting definition (see loadDynamicLightSetting) and an environment definition (see EnvironmentSetting).
Parameters:
Name | Type | Description |
---|---|---|
sceneSettings | SceneSettings |
Returns: Promise‹void›
# moveCamera
▸ moveCamera(cameraParameter
: CameraParameter): Promise‹void›
Defined in packages/configurator-core/src/roomle-configurator.ts:1704
Parameters:
Name | Type |
---|---|
cameraParameter | CameraParameter |
Returns: Promise‹void›
# pauseKernelCallbacks
▸ pauseKernelCallbacks(): void
Defined in packages/configurator-core/src/roomle-configurator.ts:1677
Returns: void
# preLoadConfigurableItemById
▸ preLoadConfigurableItemById(itemId
: RapiId): Promise‹RapiItem›
Defined in packages/configurator-core/src/roomle-configurator.ts:852
Downloads and caches the selected item id for faster use
Parameters:
Name | Type | Description |
---|---|---|
itemId | RapiId |
Returns: Promise‹RapiItem›
# preLoadConfigurationById
▸ preLoadConfigurationById(configurationId
: RapiId): Promise‹RapiConfiguration›
Defined in packages/configurator-core/src/roomle-configurator.ts:844
Downloads and caches the selected configuration id for faster use
Parameters:
Name | Type | Description |
---|---|---|
configurationId | RapiId |
Returns: Promise‹RapiConfiguration›
# preparePartImage
▸ preparePartImage(partId
: number, options?
: PrepareImageOptions | number): Promise‹Base64Image›
Defined in packages/configurator-core/src/roomle-configurator.ts:650
Generates an image of one part (slightly from the side) and returns it as base 64 WARNING: It's only possible to render one sub part at a time
- @param partId id of the sub part, received from part list
- @param size size of the rendered image in pixel (default is 256), will render faster when size is smaller
Parameters:
Name | Type |
---|---|
partId | number |
options? | PrepareImageOptions | number |
Returns: Promise‹Base64Image›
# preparePerspectiveImage
▸ preparePerspectiveImage(options
: PrepareImageOptions): Promise‹Base64Image›
Defined in packages/configurator-core/src/roomle-configurator.ts:640
Generates a perspective image (slightly from the side) and returns it as base 64
Parameters:
Name | Type | Default |
---|---|---|
options | PrepareImageOptions | {} |
Returns: Promise‹Base64Image›
# prepareTopImage
▸ prepareTopImage(options?
: PrepareImageOptions | boolean): Promise‹Base64Image›
Defined in packages/configurator-core/src/roomle-configurator.ts:743
Generates a top image (birds perspective) and returns it as base 64
Parameters:
Name | Type |
---|---|
options? | PrepareImageOptions | boolean |
Returns: Promise‹Base64Image›
# previewDockings
▸ previewDockings(possibleChild
: UiPossibleChild, dragEvent?
: DragEvent, dragIn?
: boolean): void
Defined in packages/configurator-core/src/roomle-configurator.ts:611
Shows dockings/ghosts for the selected possible child
Parameters:
Name | Type | Description |
---|---|---|
possibleChild | UiPossibleChild | - |
dragEvent? | DragEvent | - |
dragIn? | boolean |
Returns: void
# redo
▸ redo(): void
Defined in packages/configurator-core/src/roomle-configurator.ts:1758
Redo last action calls configuratorHistory.redo where array of last configuration are stored only possible if undo was called before
Returns: void
# removeTypeChangeTag
▸ removeTypeChangeTag(rapiId
: RapiId): void
Defined in packages/configurator-core/src/roomle-configurator.ts:1168
Just calls onRemoveTypeChangeTag on ConfiguratorUiCallbacks
Parameters:
Name | Type | Description |
---|---|---|
rapiId | RapiId |
Returns: void
# renderImage
▸ renderImage(renderOptions
: RenderOptions): Promise‹Base64Image›
Defined in packages/configurator-core/src/roomle-configurator.ts:633
Renders the current item in high quality, it also uses the current lightsetting
Parameters:
Name | Type | Description |
---|---|---|
renderOptions | RenderOptions |
Returns: Promise‹Base64Image›
# requestAsset
▸ requestAsset(url
: string): AssetUrl
Defined in packages/configurator-core/src/roomle-configurator.ts:1085
Returns same url when online or caches url when offline
Parameters:
Name | Type | Description |
---|---|---|
url | string |
Returns: AssetUrl
# requestDeleteComponent
▸ requestDeleteComponent(): void
Defined in packages/configurator-core/src/roomle-configurator.ts:625
Deletes the currently selected component if possible
Returns: void
# resetCameraPosition
▸ resetCameraPosition(): void
Defined in packages/configurator-core/src/roomle-configurator.ts:764
Resets the camera back to the start position
Returns: void
# resumeKernelCallbacks
▸ resumeKernelCallbacks(): void
Defined in packages/configurator-core/src/roomle-configurator.ts:1672
Returns: void
# saveCurrentConfiguration
▸ saveCurrentConfiguration(): Promise‹RapiConfigurationEnhanced›
Defined in packages/configurator-core/src/roomle-configurator.ts:673
Saves the current configuration (parameters etc) and returns a new configuration object including the configuration hash
Returns: Promise‹RapiConfigurationEnhanced›
# selectComponent
▸ selectComponent(runtimeId
: number): Promise‹void›
Defined in packages/configurator-core/src/roomle-configurator.ts:1713
Select a component by runtime id. You can retrieve this ID from partlist etc If it's already selected it will be deselected to mimic the behavior of click/touch
Parameters:
Name | Type | Description |
---|---|---|
runtimeId | number | number, the runtime id of the component. You can retrieve this ID from partlist etc |
Returns: Promise‹void›
# setActiveGroupInView
▸ setActiveGroupInView(group
: string): void
Defined in packages/configurator-core/src/roomle-configurator.ts:1686
Set the name of the parameter group which is selected at the moment
Parameters:
Name | Type | Description |
---|---|---|
group | string |
Returns: void
# setCameraOffset
▸ setCameraOffset(offset
: CanvasOffset): void
Implementation of GlobalAPI
Defined in packages/configurator-core/src/roomle-configurator.ts:1357
Parameters:
Name | Type |
---|---|
offset | CanvasOffset |
Returns: void
# setComponentParameter
▸ setComponentParameter(runtimeId
: number, parameter
: KernelParameter, value
: string): Promise‹void›
Defined in packages/configurator-core/src/roomle-configurator.ts:1728
Sets the parameter of the component by it's runtime id parameters of the plan object are set
Parameters:
Name | Type | Description |
---|---|---|
runtimeId | number | number, the runtime id of the component. You can retrieve this ID from partlist etc |
parameter | KernelParameter | an instance of the kernel parameter we want to set, use {key: "your-key"} if you do not have a kernel instance and do not need validation of the input |
value | string | the value we want to set on the parameter as string |
Returns: Promise‹void›
# setOverrides
▸ setOverrides(initData
: InitDataDefinition & GlobalInitDataDefinition): void
Defined in packages/configurator-core/src/roomle-configurator.ts:542
Set general configuration parameter
Parameters:
Name | Type | Description |
---|---|---|
initData | InitDataDefinition & GlobalInitDataDefinition |
Returns: void
# setParameter
▸ setParameter(parameter
: KernelParameter, value
: string, isRaw
: boolean): Promise‹void›
Defined in packages/configurator-core/src/roomle-configurator.ts:888
Sets the parameter of the selected component. If nothing is selected the parameters of the parameters of the plan object are set
Parameters:
Name | Type | Default | Description |
---|---|---|---|
parameter | KernelParameter | - | an instance of the kernel parameter we want to set, use {key: "your-key"} if you do not have a kernel instance and do not need validation of the input |
value | string | - | the value we want to set on the parameter as string |
isRaw | boolean | false | turn this to true if you dont want the kernel to parse the value string, e.g. convert 100cm to 1000 |
Returns: Promise‹void›
# setParameterOfPlanObject
▸ setParameterOfPlanObject(parameter
: KernelParameter, value
: string): Promise‹void›
Defined in packages/configurator-core/src/roomle-configurator.ts:919
Method to set a parameter on the plan object. This is used by embedding as well
Parameters:
Name | Type | Description |
---|---|---|
parameter | KernelParameter | an instance of the kernel parameter we want to set, use {key: "your-key"} if you do not have a kernel instance and do not need validation of the input |
value | string | the value we want to set on the parameter as string |
Returns: Promise‹void›
# setParameterOfRootComponent
▸ setParameterOfRootComponent(parameter
: KernelParameter, value
: string): Promise‹void›
Defined in packages/configurator-core/src/roomle-configurator.ts:945
Method to set a parameter on the root component. This is used by embedding as well
Parameters:
Name | Type | Description |
---|---|---|
parameter | KernelParameter | an instance of the kernel parameter we want to set, use {key: "your-key"} if you do not have a kernel instance and do not need validation of the input |
value | string | the value we want to set on the parameter as string |
Returns: Promise‹void›
# showDimensions
▸ showDimensions(): void
Defined in packages/configurator-core/src/roomle-configurator.ts:1194
Show dimensions (width, height, depth) of object
See onDimensionsVisibilityChange to get notified when dimension visibility changes
Returns: void
# showGUI
▸ showGUI(): void
Defined in packages/configurator-core/src/roomle-configurator.ts:1172
Returns: void
# showStats
▸ showStats(): void
Defined in packages/configurator-core/src/roomle-configurator.ts:1185
Show overlay with statistic data for: fps memory in MB number of draw calls number of poly/triangle count number of geometries number of textures
Returns: void
# syncCatalog
▸ syncCatalog(catalogId
: RapiId): Promise‹void›
Defined in packages/configurator-core/src/roomle-configurator.ts:1212
Start sync of catalog to make it offline available
Parameters:
Name | Type | Description |
---|---|---|
catalogId | RapiId |
Returns: Promise‹void›
# syncFloorTag
▸ syncFloorTag(tagId
: RapiId): Promise‹void›
Defined in packages/configurator-core/src/roomle-configurator.ts:1220
Start sync of floor tag to make it offline available
Parameters:
Name | Type | Description |
---|---|---|
tagId | RapiId |
Returns: Promise‹void›
# syncPlanObjectToView
▸ syncPlanObjectToView(conversationId
: number, objectId
: number): void
Defined in packages/configurator-core/src/roomle-configurator.ts:818
Parameters:
Name | Type |
---|---|
conversationId | number |
objectId | number |
Returns: void
# syncTypeChangeTag
▸ syncTypeChangeTag(tagId
: RapiId): Promise‹void›
Defined in packages/configurator-core/src/roomle-configurator.ts:1228
Start sync of type change tag to make it offline available
Parameters:
Name | Type | Description |
---|---|---|
tagId | RapiId |
Returns: Promise‹void›
# undo
▸ undo(): void
Defined in packages/configurator-core/src/roomle-configurator.ts:1746
Undo last action calls configuratorHistory.undo where array of last configuration are stored
Returns: void
# updateParameters
▸ updateParameters(parameters
: KernelParameter[], parameterGroups
: KernelParameterGroup[], elementId
: number | number[], parameterUpdateType
: PARAMETER_UPDATE_TYPE): void
Implementation of ConfiguratorKernelAccessCallbackI
Defined in packages/configurator-core/src/roomle-configurator.ts:1625
Parameters:
Name | Type |
---|---|
parameters | KernelParameter[] |
parameterGroups | KernelParameterGroup[] |
elementId | number | number[] |
parameterUpdateType | PARAMETER_UPDATE_TYPE |
Returns: void
# updatePossibleChildren
▸ updatePossibleChildren(elementId
: number, children
: KernelPossibleChild[], parameterUpdateType?
: PARAMETER_UPDATE_TYPE): void
Implementation of ConfiguratorKernelAccessCallbackI
Defined in packages/configurator-core/src/roomle-configurator.ts:1501
Parameters:
Name | Type |
---|---|
elementId | number |
children | KernelPossibleChild[] |
parameterUpdateType? | PARAMETER_UPDATE_TYPE |
Returns: void
# updateScene
▸ updateScene(): void
Implementation of GlobalAPI
Defined in packages/configurator-core/src/roomle-configurator.ts:202
Returns: void
# updateSize
▸ updateSize(): void
Implementation of GlobalAPI
Defined in packages/configurator-core/src/roomle-configurator.ts:1353
This function has to be called when the size of the container (the html element which has been used in the init method) changes It is VERY important to call this method because the SDK can not detect if the DOM element which embeds the canvas of the 3D scene changes in size
Returns: void
# zoomIn
▸ zoomIn(value?
: number): void
Defined in packages/configurator-core/src/roomle-configurator.ts:1415
Moves the camera closer to the object. Default value (when no value given) is 4, higher value moves a bigger distance.
Parameters:
Name | Type | Description |
---|---|---|
value? | number |
Returns: void
# zoomOut
▸ zoomOut(value?
: number): void
Defined in packages/configurator-core/src/roomle-configurator.ts:1423
Moves the camera away from the object. Default value (when no value given) is 4, higher value moves a bigger distance.
Parameters:
Name | Type | Description |
---|---|---|
value? | number |
Returns: void