first commit
This commit is contained in:
28
node_modules/lottie-web/player/js/elements/svgElements/SVGCompElement.js
generated
vendored
Normal file
28
node_modules/lottie-web/player/js/elements/svgElements/SVGCompElement.js
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
import {
|
||||
extendPrototype,
|
||||
} from '../../utils/functionExtensions';
|
||||
import {
|
||||
createSizedArray,
|
||||
} from '../../utils/helpers/arrays';
|
||||
import PropertyFactory from '../../utils/PropertyFactory';
|
||||
import SVGRendererBase from '../../renderers/SVGRendererBase'; // eslint-disable-line
|
||||
import SVGBaseElement from './SVGBaseElement';
|
||||
import ICompElement from '../CompElement';
|
||||
|
||||
function SVGCompElement(data, globalData, comp) {
|
||||
this.layers = data.layers;
|
||||
this.supports3d = true;
|
||||
this.completeLayers = false;
|
||||
this.pendingElements = [];
|
||||
this.elements = this.layers ? createSizedArray(this.layers.length) : [];
|
||||
this.initElement(data, globalData, comp);
|
||||
this.tm = data.tm ? PropertyFactory.getProp(this, data.tm, 0, globalData.frameRate, this) : { _placeholder: true };
|
||||
}
|
||||
|
||||
extendPrototype([SVGRendererBase, ICompElement, SVGBaseElement], SVGCompElement);
|
||||
|
||||
SVGCompElement.prototype.createComp = function (data) {
|
||||
return new SVGCompElement(data, this.globalData, this);
|
||||
};
|
||||
|
||||
export default SVGCompElement;
|
Reference in New Issue
Block a user