Difference between revisions of "DOMCurve"
From Virtual World Web Wiki
(Documentation for the DOMCurve class) |
(Documentation for the DOMCurve class) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | * '''Inherits class: [[DOMObject]]''' | + | 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 [[CSS 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:''' [[Curves]] | ||
+ | |||
+ | *'''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>=== | ||
− | {{:DOMCurve Remarks}} | + | {{#ifexist:DOMCurve Remarks|{{:DOMCurve Remarks}}|}} |
+ | |||
+ | ===Constructors=== | ||
+ | :{{CSharp|DOMCurve()}} | ||
+ | :: | ||
+ | ::Constructs a new DOMCurve with default settings | ||
+ | |||
+ | :{{CSharp|DOMCurve(DOMObject[] children)}} | ||
+ | :: | ||
+ | ::Constructs a new DOMCurve, adding children at the same time | ||
+ | |||
+ | :{{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)}} | ||
+ | :: | ||
+ | ::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__ |
Latest revision as of 14:13, 19 February 2019
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 CSS 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: 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