UNPKG

lottie-web

Version:

After Effects plugin for exporting animations to SVG + JavaScript or canvas + JavaScript

21 lines (17 loc) 857 B
import { extendPrototype, } from '../../../utils/functionExtensions'; import DynamicPropertyContainer from '../../../utils/helpers/dynamicProperties'; import PropertyFactory from '../../../utils/PropertyFactory'; import DashProperty from '../../../utils/shapes/DashProperty'; import SVGGradientFillStyleData from './SVGGradientFillStyleData'; function SVGGradientStrokeStyleData(elem, data, styleOb) { this.initDynamicPropertyContainer(elem); this.getValue = this.iterateDynamicProperties; this.w = PropertyFactory.getProp(elem, data.w, 0, null, this); this.d = new DashProperty(elem, data.d || {}, 'svg', this); this.initGradientData(elem, data, styleOb); this._isAnimated = !!this._isAnimated; } extendPrototype([SVGGradientFillStyleData, DynamicPropertyContainer], SVGGradientStrokeStyleData); export default SVGGradientStrokeStyleData;