Module: features/clickables/clickable

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:51


GenericClickable

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

Defined in

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

Variables

ClickableType

Const ClickableType: typeof ClickableType

Defined in

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

Functions

createClickable

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

Type parameters

NameType
Textends ClickableOptions

Parameters

NameType
optionsFunc() => T & ThisType<Clickable<T>>

Returns

Clickable<T>

Defined in

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


setupAutoClick

setupAutoClick(layer, clickable, autoActive?): Unsubscribe

Parameters

NameTypeDefault value
layerGenericLayerundefined
clickableGenericClickableundefined
autoActiveComputable<boolean>true

Returns

Unsubscribe

Defined in

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