Search
Preparing search index...
The search index is not available
SavageDOM
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Renderer
Class Renderer
Hierarchy
Renderer
Index
Constructors
constructor
Properties
_animation
Frame
_attribute
Interpolations
_attribute
Updates
_instance
Methods
_render
queue
Attribute
Update
register
Attribute
Interpolation
subscribe
Attribute
Observable
get
Instance
Constructors
constructor
new
Renderer
(
)
:
Renderer
Returns
Renderer
Properties
Private
_animation
Frame
_animation
Frame
:
Observable
<
number
>
= interval(0, animationFrameScheduler)
Private
_attribute
Interpolations
_attribute
Interpolations
:
object
Type declaration
[
key:
string
]:
ElementInterpolateRender
<
any
,
Element
<
any
>
>
Private
_attribute
Updates
_attribute
Updates
:
Subject
<
ElementUpdateRender
<
any
,
Element
<
any
,
Core_Attributes
,
BaseEvents
>
>
>
= new Subject<ElementUpdateRender<any, Element<any>>>()
Static
Private
_instance
_instance
:
Renderer
= new Renderer()
Methods
Private
_render
_render<ATTRIBUTES>
(
updates
:
ElementUpdateRender
<
ATTRIBUTES
,
AttributeOnlyElement
<
ATTRIBUTES
>
>
[]
)
:
void
Type parameters
ATTRIBUTES
:
Core_Attributes
Parameters
updates:
ElementUpdateRender
<
ATTRIBUTES
,
AttributeOnlyElement
<
ATTRIBUTES
>
>
[]
Returns
void
queue
Attribute
Update
queue
Attribute
Update<ATTRIBUTES, ELEMENT>
(
el
:
ELEMENT
, attrs
:
Partial
<
ATTRIBUTES
>
)
:
Promise
<
number
>
queue
Attribute
Update<ATTRIBUTES, ATTRIBUTE, ELEMENT>
(
el
:
ELEMENT
, attr
:
ATTRIBUTE
, val
:
ATTRIBUTES[ATTRIBUTE]
)
:
Promise
<
number
>
Type parameters
ATTRIBUTES
:
Core_Attributes
ELEMENT
:
AttributeOnlyElement
<
ATTRIBUTES
>
Parameters
el:
ELEMENT
attrs:
Partial
<
ATTRIBUTES
>
Returns
Promise
<
number
>
Type parameters
ATTRIBUTES
:
Core_Attributes
ATTRIBUTE
:
keyof ATTRIBUTES
ELEMENT
:
AttributeOnlyElement
<
ATTRIBUTES
>
Parameters
el:
ELEMENT
attr:
ATTRIBUTE
val:
ATTRIBUTES[ATTRIBUTE]
Returns
Promise
<
number
>
register
Attribute
Interpolation
register
Attribute
Interpolation<ATTRIBUTES, ATTRIBUTE, ELEMENT>
(
el
:
ELEMENT
, attr
:
ATTRIBUTE
, val
:
function
, duration
:
number
, easing
:
EasingFunction
)
:
Promise
<
number
>
Type parameters
ATTRIBUTES
:
Core_Attributes
ATTRIBUTE
:
keyof ATTRIBUTES
ELEMENT
:
AttributeOnlyElement
<
ATTRIBUTES
>
Parameters
el:
ELEMENT
attr:
ATTRIBUTE
val:
function
(
t
:
number
)
:
ATTRIBUTES[ATTRIBUTE]
Parameters
t:
number
Returns
ATTRIBUTES[ATTRIBUTE]
duration:
number
easing:
EasingFunction
Returns
Promise
<
number
>
subscribe
Attribute
Observable
subscribe
Attribute
Observable<ATTRIBUTES, ATTRIBUTE, ELEMENT>
(
el
:
ELEMENT
, attr
:
ATTRIBUTE
, val
:
Observable
<
ATTRIBUTES[ATTRIBUTE]
>
)
:
Subscription
Type parameters
ATTRIBUTES
:
Core_Attributes
ATTRIBUTE
:
keyof ATTRIBUTES
ELEMENT
:
AttributeOnlyElement
<
ATTRIBUTES
>
Parameters
el:
ELEMENT
attr:
ATTRIBUTE
val:
Observable
<
ATTRIBUTES[ATTRIBUTE]
>
Returns
Subscription
Static
get
Instance
get
Instance
(
)
:
Renderer
Returns
Renderer
Globals
Renderer
constructor
_animation
Frame
_attribute
Interpolations
_attribute
Updates
_instance
_render
queue
Attribute
Update
register
Attribute
Interpolation
subscribe
Attribute
Observable
get
Instance
Generated using
TypeDoc