first commit
This commit is contained in:
17
node_modules/lottie-web/player/js/utils/SlotManager.js
generated
vendored
Normal file
17
node_modules/lottie-web/player/js/utils/SlotManager.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
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;
|
Reference in New Issue
Block a user