first commit
This commit is contained in:
29
node_modules/lottie-web/player/js/utils/helpers/dynamicProperties.js
generated
vendored
Normal file
29
node_modules/lottie-web/player/js/utils/helpers/dynamicProperties.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
function DynamicPropertyContainer() {}
|
||||
DynamicPropertyContainer.prototype = {
|
||||
addDynamicProperty: function (prop) {
|
||||
if (this.dynamicProperties.indexOf(prop) === -1) {
|
||||
this.dynamicProperties.push(prop);
|
||||
this.container.addDynamicProperty(this);
|
||||
this._isAnimated = true;
|
||||
}
|
||||
},
|
||||
iterateDynamicProperties: function () {
|
||||
this._mdf = false;
|
||||
var i;
|
||||
var len = this.dynamicProperties.length;
|
||||
for (i = 0; i < len; i += 1) {
|
||||
this.dynamicProperties[i].getValue();
|
||||
if (this.dynamicProperties[i]._mdf) {
|
||||
this._mdf = true;
|
||||
}
|
||||
}
|
||||
},
|
||||
initDynamicPropertyContainer: function (container) {
|
||||
this.container = container;
|
||||
this.dynamicProperties = [];
|
||||
this._mdf = false;
|
||||
this._isAnimated = false;
|
||||
},
|
||||
};
|
||||
|
||||
export default DynamicPropertyContainer;
|
Reference in New Issue
Block a user