fabric
Version:
Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.
16 lines (12 loc) • 383 B
text/typescript
import type { FabricObject } from '../shapes/Object/FabricObject';
export type SVGParsingOutput = {
objects: (FabricObject | null)[];
options: Record<string, any>;
elements: Element[];
allElements: Element[];
};
export type TSvgReviverCallback = (
element: Element,
fabricObject: FabricObject,
) => void;
export type CSSRules = Record<string, Record<string, string>>;