Private
Readonly
coordsGet the number of set coordinates.
the number of items.
Delete the element at the coordinate.
The coordinates to delete from the space.
true if an element in the Map existed and has been removed, or false if the element does not exist.
Executes a provided function once per each key/value pair in the CoordMap, in insertion order.
The function to call over each element.
Optional
thisArg: unknownthe element representing this
Determine if coordinates are set with a value.
The coordinates to check.
boolean indicating whether an element with the specified key exists or not.
Get all the neighbors of a coordinate.
The coordinates to convert.
a tupled array of Dimensions, Before/After, and Coordinate/Value pairs.
Private
encodeTake an array of numbers representing coordinates and convert them into a coordinate key.
the coordinates to convert.
A string storing the coordinates of the provided array.
// returns "1,-2,3"
this.encodeCoordinate([1, -2, 3]);
Private
decodePrivate
recurse
An abstraction on Map which provides helper functions and serialization for coordinate based storage and lookup.