PERGOLA LOGO

pergola.Preview

System events: YES.

User events and functions: NO.

System component. This class is a dependency of pergola.Window and shows an updated preview (clone of the window's doc.transformable layer, reflecting its current rendering) when hovering a pergola.WindowTab in tabsDock. You don't need to instantiate this class, or invoke any of its methods explicitly.

Example.

Listed: class properties/methods; prototype properties and methods; instance properties. Prototype properties and methods inherited by the Class superclass are not listed.

class

None

prototype

PROPERTIES

parent

pergola.user.

rx

Defined in pergola.presentationAttributes – number (user space units).

width

Defined in pergola.presentationAttributes – number (user space units).

height

Defined in pergola.presentationAttributes – number (user space units).

fill

Defined in pergola.presentationAttributes – string.

stroke

Defined in pergola.presentationAttributes – string.

"fill-opacity"

Defined in pergola.presentationAttributes – string or number.

"stroke-opacity"

Defined in pergola.presentationAttributes – string or number.

METHODS

show()

Shows the preview. You don't normally need to invoke this method explicitly.

hide()

Hides the preview. You don't normally need to invoke this method explicitly.

update()

Updates the preview of this owner window on transformations and DOM changes. Dynamic updating is disabled for windows of type "datagrid", where only the first shot of visible data is taken at runtime. You don't normally need to invoke this method explicitly.

build(object)

this inherits the properties specified in object. Prototype properties specified in object are overridden. Creates elements. Returns this.

instance

name

String. If not passed to the constructor, gets a generated XML name (Class).

id

String. The return value of this name.toXML(). This container ID. Used as prefix where other elements' IDs are attributed.

owner

Must be specified in the initialization object, designates the owner object.

container

<g> element. Contains a clone of the window's doc.transformable layer, reflecting its current rendering.