You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
410 B
18 lines
410 B
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;
|