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
Name | Type |
---|---|
T | extends 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
Name | Type |
---|---|
T | extends ClickableOptions |
Parameters
Name | Type |
---|---|
optionsFunc | () => T & ThisType <Clickable <T >> |
Returns
Clickable
<T
>
Defined in
profectus/src/features/clickables/clickable.ts:71
setupAutoClick
▸ setupAutoClick(layer
, clickable
, autoActive?
): Unsubscribe
Parameters
Name | Type | Default value |
---|---|---|
layer | GenericLayer | undefined |
clickable | GenericClickable | undefined |
autoActive | Computable <boolean > | true |
Returns
Unsubscribe