API Docs for:
Show:

Space Class

Module: ui

Describes a space inside or around something like a margin or padding.

Item Index

Methods

Properties

Methods

fromArray

(
  • array
)
static

Creates a new space object from an array of coordinates.

Parameters:

  • array Number
    • An array of coordinates (left, top right, bottom).

set

(
  • left
  • top
  • right
  • bottom
)

Sets the coordinates of the space.

Parameters:

  • left Number
    • Space at the left in pixels.
  • top Number
    • Space at the top in pixels.
  • right Number
    • Space at the right in pixels.
  • bottom Number
    • Space at the bottom in pixels.

setFromObject

(
  • space
)

Sets the coordinates of the space by copying them from a specified space.

Parameters:

  • space Object
    • A space to copy.

Properties

bottom

Number

Space at the bottom in pixels.

left

Number

Space at the left in pixels.

right

Number

Space at the right in pixels.

top

Number

Space at the top in pixels.