MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / from

Method from

modules/piu/All/piuTimeline.js:100–105  ·  view source on GitHub ↗
(target, fromProperties, duration, easing = null, delay = 0, when = this.duration)

Source from the content-addressed store, hash-verified

98 return this;
99 }
100 from(target, fromProperties, duration, easing = null, delay = 0, when = this.duration) {
101 when += delay;
102 this.duration = Math.max(when + duration, this.duration);
103 this.tweens.push(Tween.from(target, fromProperties, duration, easing, when));
104 return this;
105 }
106 on(target, onProperties, duration, easing = null, delay = 0, when = this.duration) {
107 when += delay;
108 this.duration = Math.max(when + duration, this.duration);

Callers 1

onDisplayingMethod · 0.95

Calls 3

maxMethod · 0.80
pushMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected