Core.DOMOutput Class
Defined in:
samsara/dom/_DOMOutput.js:13
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
Item Index
Methods
Methods
compose
(
Object
private
-
spec
-
parentSpec
-
size
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:
Returns:
Object:
The composed layout spec