API ReferenceGlobalsCommonKernelAccess

# Class: CommonKernelAccess

# Hierarchy

# Implements

# Index

# Constructors

# Properties

# Accessors

# Methods

# Constructors

# constructor

+ new CommonKernelAccess(creator: string, kernelType: KERNEL_TYPE): CommonKernelAccess

Defined in packages/common-core/src/services/common-kernel-access.ts:140

Parameters:

Name Type
creator string
kernelType KERNEL_TYPE

Returns: CommonKernelAccess

# Properties

# creator

creator: string

Implementation of Context.creator

Defined in packages/common-core/src/services/common-kernel-access.ts:76

# Accessors

# kernelContainer

get kernelContainer(): any

Defined in packages/common-core/src/services/common-kernel-access.ts:154

Returns: any


# kernelInstance

get kernelInstance(): ConfiguratorKernelClass

Defined in packages/common-core/src/services/common-kernel-access.ts:158

Returns: ConfiguratorKernelClass

# Methods

# Editor3ChangedNamedMesh

Editor3ChangedNamedMesh(runtimeComponentId: number, meshId: string, geometryId: string, materialId: string, transform: Float32Array): void

Defined in packages/common-core/src/services/common-kernel-access.ts:373

Parameters:

Name Type
runtimeComponentId number
meshId string
geometryId string
materialId string
transform Float32Array

Returns: void


# Editor3dAddBakedMesh

Editor3dAddBakedMesh(runtimeComponentId: number, materialId: string, vertices: Int32Array, indices: Int32Array, uvCoords: Float32Array, normals: Float32Array): void

Defined in packages/common-core/src/services/common-kernel-access.ts:365

Parameters:

Name Type
runtimeComponentId number
materialId string
vertices Int32Array
indices Int32Array
uvCoords Float32Array
normals Float32Array

Returns: void


# Editor3dAddNamedMesh

Editor3dAddNamedMesh(runtimeComponentId: number, meshId: string, geometryId: string, materialId: string, transform: Float32Array, vertices: Int32Array, indices: Int32Array, uvCoords: Float32Array, normals: Float32Array): void

Defined in packages/common-core/src/services/common-kernel-access.ts:369

Parameters:

Name Type
runtimeComponentId number
meshId string
geometryId string
materialId string
transform Float32Array
vertices Int32Array
indices Int32Array
uvCoords Float32Array
normals Float32Array

Returns: void


# Editor3dBeginConstruction

Editor3dBeginConstruction(id: number, isDeltaUpdate: boolean): void

Defined in packages/common-core/src/services/common-kernel-access.ts:381

Parameters:

Name Type
id number
isDeltaUpdate boolean

Returns: void


# Editor3dComponentCreated

Editor3dComponentCreated(id: number, position: KernelVector3, eulerAngles: KernelVector3, parentObjectRuntimeId: number): void

Defined in packages/common-core/src/services/common-kernel-access.ts:389

Parameters:

Name Type
id number
position KernelVector3
eulerAngles KernelVector3
parentObjectRuntimeId number

Returns: void


# Editor3dComponentDocked

Editor3dComponentDocked(componentId: number, parentId: number, componentPosition: KernelVector3, componentRotation: KernelVector3): void

Defined in packages/common-core/src/services/common-kernel-access.ts:393

Parameters:

Name Type
componentId number
parentId number
componentPosition KernelVector3
componentRotation KernelVector3

Returns: void


# Editor3dEndConstruction

Editor3dEndConstruction(id: number): void

Defined in packages/common-core/src/services/common-kernel-access.ts:385

Parameters:

Name Type
id number

Returns: void


# Editor3dGeometryNotReady

Editor3dGeometryNotReady(id: number): void

Defined in packages/common-core/src/services/common-kernel-access.ts:401

Parameters:

Name Type
id number

Returns: void


# Editor3dGeometryReady

Editor3dGeometryReady(id: number): void

Defined in packages/common-core/src/services/common-kernel-access.ts:397

Parameters:

Name Type
id number

Returns: void


# Editor3dRemoveNamedMesh

Editor3dRemoveNamedMesh(runtimeComponentId: number, geometryId: string): void

Defined in packages/common-core/src/services/common-kernel-access.ts:377

Parameters:

Name Type
runtimeComponentId number
geometryId string

Returns: void


# addConfiguratorListener

addConfiguratorListener(listener: ConfiguratorKernelCallbackI): void

Defined in packages/common-core/src/services/common-kernel-access.ts:454

Parameters:

Name Type
listener ConfiguratorKernelCallbackI

Returns: void


# cleanUpCallbacks

cleanUpCallbacks(): void

Defined in packages/common-core/src/services/common-kernel-access.ts:462

Returns: void


# componentDeleted

componentDeleted(componentId: number): void

Defined in packages/common-core/src/services/common-kernel-access.ts:405

Parameters:

Name Type
componentId number

Returns: void


# componentMetaUpdated

componentMetaUpdated(componentId: number): void

Defined in packages/common-core/src/services/common-kernel-access.ts:409

Parameters:

Name Type
componentId number

Returns: void


# destroy

destroy(): void

Defined in packages/common-core/src/services/common-kernel-access.ts:506

Returns: void


# dockComponentWithPosition

dockComponentWithPosition(parentId: number, parentDockId: number, childId: number, childDockId: number, position: KernelVector3): void

Defined in packages/common-core/src/services/common-kernel-access.ts:358

Parameters:

Name Type
parentId number
parentDockId number
childId number
childDockId number
position KernelVector3

Returns: void


# getConfigurationData

getConfigurationData(planObjectId: number): Promise‹unknown›

Defined in packages/common-core/src/services/common-kernel-access.ts:276

Parameters:

Name Type
planObjectId number

Returns: Promise‹unknown›


# loadComponent

loadComponent(conversationId: number, configuration: ConfigurationObject, parentId: number): void

Defined in packages/common-core/src/services/common-kernel-access.ts:302

Parameters:

Name Type
conversationId number
configuration ConfigurationObject
parentId number

Returns: void


# loadSubComponent

loadSubComponent(parentId: number, partId: number, componentId: string): void

Defined in packages/common-core/src/services/common-kernel-access.ts:324

Parameters:

Name Type
parentId number
partId number
componentId string

Returns: void


# pause

pause(): void

Defined in packages/common-core/src/services/common-kernel-access.ts:497

Returns: void


# removeConfiguratorListener

removeConfiguratorListener(listener: ConfiguratorKernelCallbackI): void

Defined in packages/common-core/src/services/common-kernel-access.ts:458

Parameters:

Name Type
listener ConfiguratorKernelCallbackI

Returns: void


# requestDeleteComponent

requestDeleteComponent(componentId: number): void

Defined in packages/common-core/src/services/common-kernel-access.ts:350

Parameters:

Name Type
componentId number

Returns: void


# requestMaterialProperties

requestMaterialProperties(materialId: RapiId): Promise‹void›

Defined in packages/common-core/src/services/common-kernel-access.ts:468

Parameters:

Name Type
materialId RapiId

Returns: Promise‹void›


# requestMaterialsInGroup

requestMaterialsInGroup(groupId: string): void

Defined in packages/common-core/src/services/common-kernel-access.ts:418

Parameters:

Name Type
groupId string

Returns: void


# requestPlanComponentConstruction

requestPlanComponentConstruction(id: number): void

Defined in packages/common-core/src/services/common-kernel-access.ts:446

Parameters:

Name Type
id number

Returns: void


# resume

resume(): void

Defined in packages/common-core/src/services/common-kernel-access.ts:501

Returns: void


# sceneCleared

sceneCleared(): void

Defined in packages/common-core/src/services/common-kernel-access.ts:414

Returns: void