Show:

Responsible for committing CSS3 properties to the DOM and providing DOM event hooks from a provided DOM element. Where Surface's API handles inputs from the developer from within Samsara, ElementOutput handles the DOM interaction layer.

Constructor

Core.DOMOutput

(
  • element
)
private

Parameters:

  • element Node

    document parent of this container

Item Index

Methods

Methods

compose

(
  • spec
  • parentSpec
  • size
)
Object private

Inherited from Core.LayoutNode but overwritten in

Defines the rules for composing layout specs: transform, align, origin and opacity. Transform is multiplied by the parent's transform (matrix multiplication). Align is a proportional offset relative to the parent size. Origin is a proportional offset relative to the current size. Opacity is multiplied by the parent's opacity.

Parameters:

  • spec Object

    Object layout spec

  • parentSpec Object

    Parent layout spec

  • size Array

    Object size

Returns:

Object:

The composed layout spec