Interactables module
- Source:
Members
(static, constant) blackNeedle :HTMLElement|null
Needle with black thread.
Type:
- HTMLElement | null
- Source:
(static, constant) greenBucket :HTMLElement|null
Green dye bucket.
Type:
- HTMLElement | null
- Source:
(static, constant) heartPatch :HTMLElement
Heart patch element.
Type:
- HTMLElement
- Source:
(static, constant) orangeBucket :HTMLElement|null
Orange dye bucket.
Type:
- HTMLElement | null
- Source:
(static, constant) pinkBucket :HTMLElement|null
Pink dye bucket.
Type:
- HTMLElement | null
- Source:
(static, constant) scrissors :HTMLElement|null
Scissors element.
Type:
- HTMLElement | null
- Source:
(static, constant) smileyPatch :HTMLElement
Smiley patch element.
Type:
- HTMLElement
- Source:
(static, constant) starPatch :HTMLElement
Star patch element.
Type:
- HTMLElement
- Source:
(static, constant) whiteNeedle :HTMLElement|null
Needle with white thread.
Type:
- HTMLElement | null
- Source:
Methods
(static) isBigPatch(interactable) → {boolean}
Determines if the interactable is a big patch (heart patch or smiley patch).
Parameters:
| Name | Type | Description |
|---|---|---|
interactable |
HTMLElement | Drag item to check. |
- Source:
Returns:
true if the item is a big patch; otherwise, false.
- Type
- boolean
(static) isBucket(interactable) → {boolean}
Determines if the interactable is a dye bucket.
Parameters:
| Name | Type | Description |
|---|---|---|
interactable |
HTMLElement | Drag item to check. |
- Source:
Returns:
true if the item is a dye bucket; otherwise, false.
- Type
- boolean
(static) isNeedle(interactable) → {boolean}
Determines if the interactable is a needle.
Parameters:
| Name | Type | Description |
|---|---|---|
interactable |
HTMLElement | Drag item to check. |
- Source:
Returns:
true if the item is a needle; otherwise, false.
- Type
- boolean
(static) isPatch(interactable) → {boolean}
Determines if the interactable is a patch.
Parameters:
| Name | Type | Description |
|---|---|---|
interactable |
HTMLElement | Drag item to check. |
- Source:
Returns:
true if the item is a patch; otherwise, false.
- Type
- boolean
(static) isStarPatch(interactable) → {boolean}
Determines if the interactable is a star patch.
Parameters:
| Name | Type | Description |
|---|---|---|
interactable |
HTMLElement | Drag item to check. |
- Source:
Returns:
true if the item is a star patch; otherwise, false.
- Type
- boolean