Module: stb/ui/grid

Classes

Grid

Methods

(inner) fill(map, x, y, dX, dY, value)

Fill the given rectangle area with value.

Parameters:
Name Type Description
map Array.<Array>

link to navigation map

x number

current horizontal position

y number

current vertical position

dX number

amount of horizontal cell to fill

dY number

amount of vertical cell to fill

value *

filling data

Source:

(inner) map(data) → {Array.<Array>}

Create a navigation map from incoming data.

Parameters:
Name Type Description
data Array.<Array>

user 2-dimensional array of objects

Source:
Returns:

navigation map

Type
Array.<Array>

(inner) normalize(data) → {Array.<Array>}

Make all the data items identical. Wrap to objects if necessary and add missing properties.

Parameters:
Name Type Description
data Array.<Array>

user 2-dimensional array

Source:
Returns:

reworked incoming data

Type
Array.<Array>