Class: HatAllocator
core/HatAllocator.HatAllocator
Constructors
constructor
• new HatAllocator(graph
, context
)
Parameters
Name | Type |
---|---|
graph | Graph |
context | Context |
Defined in
Properties
disposables
• Private
disposables: Disposable
[] = []
Defined in
timeoutHandle
• Private
timeoutHandle: null
| Timeout
= null
Defined in
Methods
allocateHats
▸ allocateHats(oldTokenHats?
): Promise
<void
>
Allocate hats to the visible tokens.
Parameters
Name | Type | Description |
---|---|---|
oldTokenHats? | TokenHat [] | If supplied, pretend that this allocation was the previous allocation when trying to maintain stable hats. This parameter is used for testing. |
Returns
Promise
<void
>
Defined in
allocateHatsDebounced
▸ allocateHatsDebounced(): void
Returns
void
Defined in
dispose
▸ dispose(): void
Returns
void