Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(f0: TransformList | string | undefined, f1: TransformList | string | undefined) {
super();
if (f0 !== void 0) {
f0 = TransformList.fromAny(f0);
}
if (f1 !== void 0) {
f1 = TransformList.fromAny(f1);
}
if (!f0 && !f1) {
f1 = f0 = new TransformList([]);
} else if (!f1) {
f1 = f0;
} else if (!f0) {
f0 = f1;
}
this.interpolators = [];
const n = Math.min(f0!.transforms.length, f1!.transforms.length);
for (let i = 0; i < n; i += 1) {
this.interpolators.push(Interpolator.transform(f0!.transforms[i], f1!.transforms[i]));
}
}
constructor(f0: TransformList | string | undefined, f1: TransformList | string | undefined) {
super();
if (f0 !== void 0) {
f0 = TransformList.fromAny(f0);
}
if (f1 !== void 0) {
f1 = TransformList.fromAny(f1);
}
if (!f0 && !f1) {
f1 = f0 = new TransformList([]);
} else if (!f1) {
f1 = f0;
} else if (!f0) {
f0 = f1;
}
this.interpolators = [];
const n = Math.min(f0!.transforms.length, f1!.transforms.length);
for (let i = 0; i < n; i += 1) {
this.interpolators.push(Interpolator.transform(f0!.transforms[i], f1!.transforms[i]));
}