MCPcopy Create free account
hub / github.com/ampproject/amphtml / constructor

Method constructor

src/utils/animation.js:45–59  ·  view source on GitHub ↗

* @param {!Node} contextNode * @param {!./service/vsync-impl.Vsync=} opt_vsync

(contextNode, opt_vsync)

Source from the content-addressed store, hash-verified

43 * @param {!./service/vsync-impl.Vsync=} opt_vsync
44 */
45 constructor(contextNode, opt_vsync) {
46 /** @private @const {!Node} */
47 this.contextNode_ = contextNode;
48
49 /** @private @const {!./service/vsync-impl.Vsync} */
50 this.vsync_ = opt_vsync || Services.vsyncFor(self);
51
52 /** @private {?./core/data-structures/curve.CurveDef} */
53 this.curve_ = null;
54
55 /**
56 * @private @const {!Array<!SegmentDef>}
57 */
58 this.segments_ = [];
59 }
60
61 /**
62 * Sets the default curve for the animation. Each segment is allowed to have

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected