MCPcopy Create free account
hub / github.com/drawcall/AgileJS / fill

Method fill

src/animate/Keyframes.js:78–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 }
77
78 fill() {
79 this.sort();
80 let prevValue;
81
82 for (let time in this.keyframes) {
83 const frame = this.keyframes[time];
84
85 for (let key in prevValue) {
86 if (frame[key] === undefined) frame[key] = prevValue[key];
87 }
88
89 prevValue = frame;
90 }
91 }
92
93 sort() {
94 const cloneObj = {};

Callers 2

addMethod · 0.95

Calls 1

sortMethod · 0.95

Tested by

no test coverage detected