API Reference › Globals › UiIntersectionHelper
# Class: UiIntersectionHelper
# Hierarchy
EventDispatcher‹UIIntersections›
↳ UiIntersectionHelper
# Index
# Constructors
# Properties
# Accessors
# Methods
- addEventListener
- calculateUIIntersection
- disableEvents
- dispatchEvent
- enableEvents
- removeEventListener
- updateToBounds
# Constructors
# constructor
+ new UiIntersectionHelper(camera
: PerspectiveCamera): UiIntersectionHelper
Defined in packages/configurator-core/src/utils/ui-intersection-helper.ts:22
Parameters:
Name | Type |
---|---|
camera | PerspectiveCamera |
Returns: UiIntersectionHelper
# Properties
# floorEnvironment
• floorEnvironment: boolean = false
Defined in packages/configurator-core/src/utils/ui-intersection-helper.ts:22
# Accessors
# canvasOffset
• set canvasOffset(offset
: CanvasOffset): void
Defined in packages/configurator-core/src/utils/ui-intersection-helper.ts:46
Parameters:
Name | Type |
---|---|
offset | CanvasOffset |
Returns: void
# Methods
# addEventListener
▸ addEventListener(eventName
: number, callback
: ListenerFunction‹UIIntersections›, scope
: any): void
Inherited from EventDispatcher.addEventListener
Defined in packages/configurator-core/src/utils/event-dispatcher.ts:29
Parameters:
Name | Type |
---|---|
eventName | number |
callback | ListenerFunction‹UIIntersections› |
scope | any |
Returns: void
# calculateUIIntersection
▸ calculateUIIntersection(): void
Defined in packages/configurator-core/src/utils/ui-intersection-helper.ts:51
Returns: void
# disableEvents
▸ disableEvents(): void
Inherited from EventDispatcher.disableEvents
Defined in packages/configurator-core/src/utils/event-dispatcher.ts:67
Returns: void
# dispatchEvent
▸ dispatchEvent(eventName
: number, arg?
: UIIntersections): void
Inherited from EventDispatcher.dispatchEvent
Defined in packages/configurator-core/src/utils/event-dispatcher.ts:33
Parameters:
Name | Type |
---|---|
eventName | number |
arg? | UIIntersections |
Returns: void
# enableEvents
▸ enableEvents(): void
Inherited from EventDispatcher.enableEvents
Defined in packages/configurator-core/src/utils/event-dispatcher.ts:63
Returns: void
# removeEventListener
▸ removeEventListener(eventName
: number, fun
: ListenerFunction‹UIIntersections›): void
Inherited from EventDispatcher.removeEventListener
Defined in packages/configurator-core/src/utils/event-dispatcher.ts:49
Parameters:
Name | Type |
---|---|
eventName | number |
fun | ListenerFunction‹UIIntersections› |
Returns: void
# updateToBounds
▸ updateToBounds(bounds
: Vector3, clientWidth
: number, clientHeight
: number): void
Defined in packages/configurator-core/src/utils/ui-intersection-helper.ts:29
Parameters:
Name | Type |
---|---|
bounds | Vector3 |
clientWidth | number |
clientHeight | number |
Returns: void