Interface RatioSquarifyTilingFactory

interface RatioSquarifyTilingFactory {
    ratio(ratio): RatioSquarifyTilingFactory;
    (node, x0, y0, x1, y1): void;
}
  • Parameters

    Returns void

Methods

Methods

  • Specifies the desired aspect ratio of the generated rectangles. Note that the orientation of the generated rectangles (tall or wide) is not implied by the ratio. Furthermore, the rectangles ratio are not guaranteed to have the exact specified aspect ratio. If not specified, the aspect ratio defaults to the golden ratio, φ = (1 + sqrt(5)) / 2, per Kong et al.

    Parameters

    • ratio: number

      The specified ratio value greater than or equal to one.

    Returns RatioSquarifyTilingFactory