UNPKG

fabric

Version:

Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.

7 lines 390 B
/** * Parses an SVG document, returning all of the gradient declarations found in it * @param {SVGDocument} doc SVG document to parse * @return {Object} Gradient definitions; key corresponds to element id, value -- to gradient definition element */ export declare function getGradientDefs(doc: Document): Record<string, SVGGradientElement>; //# sourceMappingURL=getGradientDefs.d.ts.map