API Reference › Globals › RoomleComponentFactory
# Interface: RoomleComponentFactory
# Hierarchy
- RoomleComponentFactory
# Index
# Methods
# Methods
# create
▸ create(id
: number, position
: KernelVector3, eulerAngles
: KernelVector3, parentObjectId
: number): RoomleComponent
Defined in packages/common-core/src/webgl/roomle-component-factory.ts:118
Parameters:
Name | Type |
---|---|
id | number |
position | KernelVector3 |
eulerAngles | KernelVector3 |
parentObjectId | number |
Returns: RoomleComponent
# createCamera
▸ createCamera(fov
: number, aspect
: number, near
: number, far
: number, offset?
: CanvasOffset): PerspectiveOffsetCamera
Defined in packages/common-core/src/webgl/roomle-component-factory.ts:130
Parameters:
Name | Type |
---|---|
fov | number |
aspect | number |
near | number |
far | number |
offset? | CanvasOffset |
Returns: PerspectiveOffsetCamera
# createPreview
▸ createPreview(id
: number, parentObjectId
: number): PreviewComponent
Defined in packages/common-core/src/webgl/roomle-component-factory.ts:122
Parameters:
Name | Type |
---|---|
id | number |
parentObjectId | number |
Returns: PreviewComponent
# createPreviewLine
▸ createPreviewLine(previewComponent
: PreviewComponent): PreviewLineComponent
Defined in packages/common-core/src/webgl/roomle-component-factory.ts:124
Parameters:
Name | Type |
---|---|
previewComponent | PreviewComponent |
Returns: PreviewLineComponent
# createStatic
▸ createStatic(id
: number, url
: string): StaticComponent
Defined in packages/common-core/src/webgl/roomle-component-factory.ts:120
Parameters:
Name | Type |
---|---|
id | number |
url | string |
Returns: StaticComponent
# isPreview
▸ isPreview(obj
: RoomleComponent): boolean
Defined in packages/common-core/src/webgl/roomle-component-factory.ts:126
Parameters:
Name | Type |
---|---|
obj | RoomleComponent |
Returns: boolean
# isPreviewLine
▸ isPreviewLine(obj
: RoomleComponent): boolean
Defined in packages/common-core/src/webgl/roomle-component-factory.ts:128
Parameters:
Name | Type |
---|---|
obj | RoomleComponent |
Returns: boolean