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
Name | Type |
---|---|
T | extends 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
Name | Type |
---|---|
T | extends ClickableOptions |
Parameters
Name | Type |
---|---|
optionsFunc? | OptionsFunc <T , BaseClickable , GenericClickable > |
Returns
Clickable
<T
>
setupAutoClick
▸ setupAutoClick(layer
, clickable
, autoActive?
): Unsubscribe
Parameters
Name | Type | Default value |
---|---|---|
layer | BaseLayer | undefined |
clickable | GenericClickable | undefined |
autoActive | Computable <boolean > | true |
Returns
Unsubscribe