Class: SimpleDimensions
components.SimpleDimensions
A basic dimension tool to measure distances between 2 points in 3D and display a 3D symbol displaying the numeric value.
Hierarchy
Component
<SimpleDimensionLine
[]>↳
SimpleDimensions
Implements
Properties
afterCreate
• Readonly
afterCreate: Event
<SimpleDimensions
>
Implementation of
Defined in
temp/components/core/SimpleDimensions/index.ts:37
afterDelete
• Readonly
afterDelete: Event
<SimpleDimensions
>
Implementation of
Defined in
temp/components/core/SimpleDimensions/index.ts:43
afterUpdate
• Readonly
afterUpdate: Event
<SimpleDimensions
>
Implementation of
Defined in
temp/components/core/SimpleDimensions/index.ts:34
beforeCreate
• Readonly
beforeCreate: Event
<SimpleDimensions
>
Createable.beforeCreate
Defined in
temp/components/core/SimpleDimensions/index.ts:40
beforeDelete
• Readonly
beforeDelete: Event
<SimpleDimensions
>
Createable.beforeDelete
Defined in
temp/components/core/SimpleDimensions/index.ts:46
beforeUpdate
• Readonly
beforeUpdate: Event
<SimpleDimensions
>
Implementation of
Defined in
temp/components/core/SimpleDimensions/index.ts:31
name
• Readonly
name: "SimpleDimensions"
Overrides
Defined in
temp/components/core/SimpleDimensions/index.ts:28
onCreate
• onCreate: Event
<SimpleDimensionLine
>
Createable.onCreate
Defined in
temp/components/core/SimpleDimensions/index.ts:49
onDelete
• onDelete: Event
<SimpleDimensionLine
>
Createable.onDelete
Defined in
temp/components/core/SimpleDimensions/index.ts:52
previewElement
• previewElement: CSS2DObject
The symbol that is displayed where the dimension will be drawn.
Defined in
temp/components/core/SimpleDimensions/index.ts:61
snapDistance
• snapDistance: number
= 0.25
The minimum distance to force the dimension cursor to a vertex.
Defined in
temp/components/core/SimpleDimensions/index.ts:57
Accessors
color
• set
color(color
): void
The Color of the geometry of the dimensions.
Parameters
Name | Type |
---|---|
color | Color |
Returns
void
Defined in
temp/components/core/SimpleDimensions/index.ts:125
enabled
• get
enabled(): boolean
Returns
boolean
Overrides
Component.enabled
Defined in
temp/components/core/SimpleDimensions/index.ts:91
• set
enabled(state
): void
Parameters
Name | Type |
---|---|
state | boolean |
Returns
void
Overrides
Component.enabled
Defined in
temp/components/core/SimpleDimensions/index.ts:96
geometry
• get
geometry(): BufferGeometry
<NormalBufferAttributes
>
The geometry used in both endpoints of all the dimensions.
Returns
BufferGeometry
<NormalBufferAttributes
>
Defined in
temp/components/core/SimpleDimensions/index.ts:131
• set
geometry(geometry
): void
The geometry used in both endpoints of all the dimensions.
Parameters
Name | Type |
---|---|
geometry | BufferGeometry <NormalBufferAttributes > |
Returns
void
Defined in
temp/components/core/SimpleDimensions/index.ts:136
visible
• get
visible(): boolean
Returns
boolean
Implementation of
Defined in
temp/components/core/SimpleDimensions/index.ts:106
• set
visible(state
): void
Parameters
Name | Type |
---|---|
state | boolean |
Returns
void
Implementation of
Defined in
temp/components/core/SimpleDimensions/index.ts:111
Methods
cancelDrawing
▸ cancelDrawing(): void
Cancels the drawing of the current dimension.
Returns
void
Defined in
temp/components/core/SimpleDimensions/index.ts:271
create
▸ create(plane?
): void
Starts or finishes drawing a new dimension line.
Parameters
Name | Type | Description |
---|---|---|
plane? | Object3D <Event > | forces the dimension to be drawn on a plane. Use this if you are drawing dimensions in floor plan navigation. |
Returns
void
Implementation of
Createable.create
Defined in
temp/components/core/SimpleDimensions/index.ts:235
delete
▸ delete(): void
Deletes the dimension that the user is hovering over with the mouse or touch event.
Returns
void
Implementation of
Createable.delete
Defined in
temp/components/core/SimpleDimensions/index.ts:245
deleteAll
▸ deleteAll(): void
Deletes all the dimensions that have been previously created.
Returns
void
Defined in
temp/components/core/SimpleDimensions/index.ts:262
dispose
▸ dispose(): void
Returns
void
Implementation of
Disposable.dispose
Defined in
temp/components/core/SimpleDimensions/index.ts:200
get
▸ get(): SimpleDimensionLine
[]
Returns
SimpleDimensionLine
[]
Overrides
Defined in
temp/components/core/SimpleDimensions/index.ts:195
hasUI
▸ hasUI(): this is UI
Whether is component implements any kind of UI.
Returns
this is UI
Inherited from
Defined in
temp/components/base-types/component.ts:48
isDisposeable
▸ isDisposeable(): this is Disposable
Whether is component is Disposable.
Returns
this is Disposable
Inherited from
Defined in
temp/components/base-types/component.ts:28
isHideable
▸ isHideable(): this is Hideable
Whether is component is Hideable.
Returns
this is Hideable
Inherited from
Defined in
temp/components/base-types/component.ts:43
isResizeable
▸ isResizeable(): this is Resizeable
Whether is component is Resizeable.
Returns
this is Resizeable
Inherited from
Defined in
temp/components/base-types/component.ts:33
isUpdateable
▸ isUpdateable(): this is Updateable
Whether is component is Updateable.
Returns
this is Updateable
Inherited from
Defined in
temp/components/base-types/component.ts:38
update
▸ update(_delta
): void
Parameters
Name | Type |
---|---|
_delta | number |
Returns
void
Implementation of
Defined in
temp/components/core/SimpleDimensions/index.ts:211