Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import {fabric} from 'fabric';
- declare module 'fabric' {
- namespace fabric {
- interface Object {
- id: string;
- depth?: number;
- formulaX?: string;
- formulaY?: string;
- formulaWidth?: string;
- formulaHeight?: string;
- formulaRotation?: string;
- syncWithVariable?: string;
- }
- interface IObjectOptions {
- canvas?: fabric.Canvas
- }
- }
- }
- let foobar: fabric.Object = ...;
- foo.id = 'blarblar'; // OK
- const left = foo.get('left'); // OK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement