matrix-dom
    Preparing search index...

    Function square

    • Return a single layer matrix where x and y are equal

      Parameters

      • props: MatrixProps = {}

        Additional data to append to each level: x for each column (the tile data), y for each row, z for each layer and matrix for the matrix itself. Each is a single configuration object, not an array.

      • size: number

        Used to define the width and height as equal values (depth is set to 1)

      Returns Matrix