Skip to content
On this page

Module: features/clickables/clickable

Components

Interfaces

Type Aliases

Clickable

Ƭ Clickable<T>: Replace<T & BaseClickable, { canClick: GetComputableTypeWithDefault<T["canClick"], true> ; classes: GetComputableType<T["classes"]> ; display: GetComputableType<T["display"]> ; mark: GetComputableType<T["mark"]> ; style: GetComputableType<T["style"]> ; visibility: GetComputableTypeWithDefault<T["visibility"], Visible> }>

Type parameters

NameType
Textends ClickableOptions

Defined in

profectus/src/features/clickables/clickable.ts:43


GenericClickable

Ƭ GenericClickable: Replace<Clickable<ClickableOptions>, { canClick: ProcessedComputable<boolean> ; visibility: ProcessedComputable<Visibility> }>

Defined in

profectus/src/features/clickables/clickable.ts:55

Variables

ClickableType

Const ClickableType: typeof ClickableType

Defined in

profectus/src/features/clickables/clickable.ts:16

Functions

createClickable

createClickable<T>(optionsFunc?): Clickable<T>

Type parameters

NameType
Textends ClickableOptions

Parameters

NameType
optionsFunc?OptionsFunc<T, BaseClickable, GenericClickable>

Returns

Clickable<T>


setupAutoClick

setupAutoClick(layer, clickable, autoActive?): Unsubscribe

Parameters

NameTypeDefault value
layerBaseLayerundefined
clickableGenericClickableundefined
autoActiveComputable<boolean>true

Returns

Unsubscribe