lottie-web
Version:
After Effects plugin for exporting animations to SVG + JavaScript or canvas + JavaScript
18 lines (15 loc) • 410 B
JavaScript
function SlotManager(animationData) {
this.animationData = animationData;
}
SlotManager.prototype.getProp = function (data) {
if (this.animationData.slots
&& this.animationData.slots[data.sid]
) {
return Object.assign(data, this.animationData.slots[data.sid].p);
}
return data;
};
function slotFactory(animationData) {
return new SlotManager(animationData);
}
export default slotFactory;