Skip to main content

Hider

A component that hides or isolates fragments within a 3D scene. It extends the base Component class and provides methods to control fragment visibility and isolation. 📕 Tutorial. 📘 API.

Extends

Properties

enabled

enabled: boolean = true

Component.enabled

Overrides

Component . enabled


uuid

static readonly uuid: "dd9ccf2d-8a21-4821-b7f6-2949add16a29"

A unique identifier for the component. This UUID is used to register the component within the Components system.

Methods

isConfigurable()

isConfigurable(): this is Configurable<any, any>

Whether is component is Configurable.

Returns

this is Configurable<any, any>

Inherited from

Component . isConfigurable


isDisposeable()

isDisposeable(): this is Disposable

Whether is component is Disposable.

Returns

this is Disposable

Inherited from

Component . isDisposeable


isHideable()

isHideable(): this is Hideable

Whether is component is Hideable.

Returns

this is Hideable

Inherited from

Component . isHideable


isResizeable()

isResizeable(): this is Resizeable

Whether is component is Resizeable.

Returns

this is Resizeable

Inherited from

Component . isResizeable


isUpdateable()

isUpdateable(): this is Updateable

Whether is component is Updateable.

Returns

this is Updateable

Inherited from

Component . isUpdateable


isolate()

isolate(items): void

Isolates fragments within the 3D scene by hiding all other fragments and showing only the specified ones. It calls the set method twice: first to hide all fragments, and then to show only the specified ones.

Parameters

ParameterTypeDescription
itemsFragmentIdMapA map of fragment IDs and their corresponding sub-fragment IDs to be isolated.
If not provided, all fragments will be isolated.

Returns

void


set()

set(visible, items?): void

Sets the visibility of fragments within the 3D scene. If no items parameter is provided, all fragments will be set to the specified visibility. If items is provided, only the specified fragments will be affected.

Parameters

ParameterTypeDescription
visiblebooleanThe visibility state to set for the fragments.
items?FragmentIdMapAn optional map of fragment IDs and their corresponding sub-fragment IDs to be affected.
If not provided, all fragments will be affected.

Returns

void