MCPcopy
hub / github.com/ampproject/amphtml / setCurve

Method setCurve

src/utils/animation.js:68–73  ·  view source on GitHub ↗

* Sets the default curve for the animation. Each segment is allowed to have * its own curve, but this curve will be used if a segment doesn't specify * its own. * @param {!./core/data-structures/curve.CurveDef|string|undefined} curve * @return {!Animation}

(curve)

Source from the content-addressed store, hash-verified

66 * @return {!Animation}
67 */
68 setCurve(curve) {
69 if (curve) {
70 this.curve_ = getCurve(curve);
71 }
72 return this;
73 }
74
75 /**
76 * Adds a segment to the animation. Each segment starts at offset (delay) and

Callers 2

animateExpand_Method · 0.95
animateMethod · 0.80

Calls 1

getCurveFunction · 0.90

Tested by

no test coverage detected