blob: 27b258ae2bdc6c310e70e5d7e473046882b3b1de [file] [log] [blame]
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;