Difference between revisions of "DOMCurve"
From Virtual World Web Wiki
(Documentation for the DOMCurve class) |
(Documentation for the DOMCurve class) |
||
Line 1: | Line 1: | ||
+ | Represents an animation of DOM properties over time. A Curve is made up of [[DOMCurveKeyframe]] child nodes with time indexes. Each keyframe can have multiple [[DOMCurveValue]] nodes which set the value of a property at that point in time. Then a [[DOMCurvePlayer]] node "plays" the curve, projecting its animated properties onto other DOM nodes in the scene that match the [[Selectors|selector]] specified. The results of a curve's playing are not guarenteed to be perfectly synchronized, but many efforts are made to ensure all clients and the server are as close as possible. This is a powerful mechanism for low-cost, high-frequency animations of the DOM with almost no network traffic. | ||
+ | |||
+ | '''See also:''' [[DOM Curves]] | ||
+ | |||
*'''Inherits class: [[DOMObject]]''' | *'''Inherits class: [[DOMObject]]''' | ||
===Remarks <nowiki>[</nowiki>[{{fullurl:DOMCurve Remarks|action=edit}} edit]<nowiki>]</nowiki>=== | ===Remarks <nowiki>[</nowiki>[{{fullurl:DOMCurve Remarks|action=edit}} edit]<nowiki>]</nowiki>=== | ||
Line 5: | Line 9: | ||
===Constructors=== | ===Constructors=== | ||
:{{CSharp|DOMCurve()}} | :{{CSharp|DOMCurve()}} | ||
+ | :: | ||
+ | ::Constructs a new DOMCurve with default settings | ||
:{{CSharp|DOMCurve(DOMObject[] children)}} | :{{CSharp|DOMCurve(DOMObject[] children)}} | ||
+ | :: | ||
+ | ::Constructs a new DOMCurve, adding children at the same time | ||
:{{CSharp|DOMCurve(string title, DOMObject[] children)}} | :{{CSharp|DOMCurve(string title, DOMObject[] children)}} | ||
+ | :: | ||
+ | ::Constructs a new DOMCurve, setting a title and adding children at the same time | ||
===Methods=== | ===Methods=== | ||
:{{CSharp|DOMCurve FromJson(string json)}} | :{{CSharp|DOMCurve FromJson(string json)}} | ||
+ | :: | ||
+ | ::loads a curve's keyframes and keyframe values from JSON | ||
:{{CSharp|string ToJson()}} | :{{CSharp|string ToJson()}} | ||
+ | :: | ||
+ | ::Converts the current curve and its keyframes and keyframe values to JSON | ||
__NOTOC____NOEDITSECTION__ | __NOTOC____NOEDITSECTION__ |
Revision as of 19:40, 4 April 2017
Represents an animation of DOM properties over time. A Curve is made up of DOMCurveKeyframe child nodes with time indexes. Each keyframe can have multiple DOMCurveValue nodes which set the value of a property at that point in time. Then a DOMCurvePlayer node "plays" the curve, projecting its animated properties onto other DOM nodes in the scene that match the selector specified. The results of a curve's playing are not guarenteed to be perfectly synchronized, but many efforts are made to ensure all clients and the server are as close as possible. This is a powerful mechanism for low-cost, high-frequency animations of the DOM with almost no network traffic.
See also: DOM Curves
- Inherits class: DOMObject
Remarks [edit]
Constructors
- DOMCurve()
- Constructs a new DOMCurve with default settings
- DOMCurve(DOMObject[] children)
- Constructs a new DOMCurve, adding children at the same time
- DOMCurve(string title, DOMObject[] children)
- Constructs a new DOMCurve, setting a title and adding children at the same time
Methods
- DOMCurve FromJson(string json)
- loads a curve's keyframes and keyframe values from JSON
- string ToJson()
- Converts the current curve and its keyframes and keyframe values to JSON