first commit
This commit is contained in:
21
node_modules/lottie-web/player/js/elements/helpers/shapes/SVGStrokeStyleData.js
generated
vendored
Normal file
21
node_modules/lottie-web/player/js/elements/helpers/shapes/SVGStrokeStyleData.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import {
|
||||
extendPrototype,
|
||||
} from '../../../utils/functionExtensions';
|
||||
import DynamicPropertyContainer from '../../../utils/helpers/dynamicProperties';
|
||||
import PropertyFactory from '../../../utils/PropertyFactory';
|
||||
import DashProperty from '../../../utils/shapes/DashProperty';
|
||||
|
||||
function SVGStrokeStyleData(elem, data, styleOb) {
|
||||
this.initDynamicPropertyContainer(elem);
|
||||
this.getValue = this.iterateDynamicProperties;
|
||||
this.o = PropertyFactory.getProp(elem, data.o, 0, 0.01, this);
|
||||
this.w = PropertyFactory.getProp(elem, data.w, 0, null, this);
|
||||
this.d = new DashProperty(elem, data.d || {}, 'svg', this);
|
||||
this.c = PropertyFactory.getProp(elem, data.c, 1, 255, this);
|
||||
this.style = styleOb;
|
||||
this._isAnimated = !!this._isAnimated;
|
||||
}
|
||||
|
||||
extendPrototype([DynamicPropertyContainer], SVGStrokeStyleData);
|
||||
|
||||
export default SVGStrokeStyleData;
|
Reference in New Issue
Block a user