class Element
Class methods
-
centerInViewport #
Element.centerInViewport(element[, options]) ⇒ Element
Element#centerInViewport([options]) ⇒ Element-
element(Element|String) – the element or id of element to center. -
options(Object) – Top and left boundaries, defaults to {minTop: -Infinity, minLeft: -Infinity}.
Centers element in viewport. If no position has been specified (i.e. position is
undefinedor ‘static’) will be absolutely positioned.This method can be called either as an instance method or as a generic method. If calling as a generic, pass the instance in as the first argument.
-
-
setDimensions #
Element.setDimensions(element[, dimensions]) ⇒ Element
Element#setDimensions([dimensions]) ⇒ Element-
element(Element|String) – Element or id of element. -
dimensions(Object) – The desired width and height (defaults to current dimensions of element).
This method can be called either as an instance method or as a generic method. If calling as a generic, pass the instance in as the first argument.
-
-
setHeight #
Element.setHeight(element[, height]) ⇒ Element
Element#setHeight([height]) ⇒ Element-
element(Element|String) – Element or id of element. -
height(Number) – The desired height (defaults to current height of element).
This method can be called either as an instance method or as a generic method. If calling as a generic, pass the instance in as the first argument.
-
-
setWidth #
Element.setWidth(element[, width]) ⇒ Element
Element#setWidth([width]) ⇒ Element-
element(Element|String) – Element or id of element. -
width(Number) – The desired width (defaults to current width of element).
This method can be called either as an instance method or as a generic method. If calling as a generic, pass the instance in as the first argument.
-
