Class: IndividualHatMap
core/IndividualHatMap.IndividualHatMap
Implements
Constructors
constructor
• new IndividualHatMap(graph)
Parameters
| Name | Type |
|---|---|
graph | Graph |
Defined in
Properties
_tokenHats
• Private _tokenHats: readonly TokenHat[] = []
Defined in
deregisterFunctions
• Private deregisterFunctions: () => void[] = []
Defined in
documentTokenLists
• Private documentTokenLists: Map<string, LiveToken[]>
Defined in
isExpired
• Private isExpired: boolean = false
Defined in
map
• Private map: Object = {}
Index signature
▪ [decoratedCharacter: string]: LiveToken
Defined in
Accessors
tokenHats
• get tokenHats(): readonly TokenHat[]
Returns
readonly TokenHat[]
Defined in
Methods
checkExpired
▸ Private checkExpired(): void
Returns
void
Defined in
clone
▸ clone(): IndividualHatMap
Returns
Defined in
dispose
▸ dispose(): void
Returns
void
Defined in
getDocumentTokenList
▸ Private getDocumentTokenList(document): LiveToken[]
Parameters
| Name | Type |
|---|---|
document | TextDocument |
Returns
Defined in
getEntries
▸ getEntries(): readonly [string, Token][]
Returns
readonly [string, Token][]
Implementation of
Defined in
getToken
▸ getToken(hatStyle, character): Token
Parameters
| Name | Type |
|---|---|
hatStyle | string |
character | string |
Returns
Implementation of
Defined in
makeTokenLive
▸ Private makeTokenLive(token): LiveToken
Parameters
| Name | Type |
|---|---|
token | Token |
Returns
Defined in
setTokenHats
▸ setTokenHats(tokenHats): void
Overwrites the hat assignemnt for this hat token map.
Parameters
| Name | Type | Description |
|---|---|---|
tokenHats | readonly TokenHat[] | The new hat assignments |
Returns
void