import{_ as e,c as t,o as a,N as l}from"./chunks/framework.0799945b.js";const p=JSON.parse('{"title":"Module: features/clickables/clickable","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/modules/features/clickables/clickable.md","lastUpdated":null}'),c={name:"api/modules/features/clickables/clickable.md"},i=l('
Ƭ 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
> }>
An object that represents a feature that can be clicked or held down.
Name | Type |
---|---|
T | extends ClickableOptions |
profectus/src/features/clickables/clickable.ts:72
Ƭ GenericClickable: Replace
<Clickable
<ClickableOptions
>, { canClick
: ProcessedComputable
<boolean
> ; visibility
: ProcessedComputable
<Visibility
| boolean
> }>
A type that matches any valid Clickable object.
profectus/src/features/clickables/clickable.ts:85
• Const
ClickableType: typeof ClickableType
A symbol used to identify Clickable features.
profectus/src/features/clickables/clickable.ts:23
▸ createClickable<T
>(optionsFunc?
): Clickable
<T
>
Lazily creates a clickable with the given options.
Name | Type |
---|---|
T | extends ClickableOptions |
Name | Type | Description |
---|---|---|
optionsFunc? | OptionsFunc <T , BaseClickable , GenericClickable > | Clickable options. |
Clickable
<T
>
profectus/src/features/clickables/clickable.ts:97
▸ setupAutoClick(layer
, clickable
, autoActive?
): Unsubscribe
Utility to auto click a clickable whenever it can be.
Name | Type | Default value | Description |
---|---|---|---|
layer | BaseLayer | undefined | The layer the clickable is apart of |
clickable | GenericClickable | undefined | The clicker to click automatically |
autoActive | Computable <boolean > | true | Whether or not the clickable should currently be auto-clicking |
Unsubscribe