You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched and referenced existing issues, feature requests and discussions
I am filing a FEATURE request.
Description
New Method and properties add and override
Current State
Based on the documents properties and method will be add but when i am trying to add it gives an error.
Documents:
// declare the methods for typescript
declare module "fabric" {
// to have the properties recognized on the instance and in the constructor
interface Rect {
getText: () => string;
}
// to have the properties typed in the exported object
interface Text {
getText: () => string;
}
}
// then add the methods to the classes:
Rect.prototype.getText = function() { return 'none'; }
Text.prototype.getText = function() { return this.text; }
compile time error shown getText in available in Text and Rect class
please give me a solution if it is available in fabricjs
i am using Angular 17
Additional Context
No response
The text was updated successfully, but these errors were encountered:
CheckList
Description
New Method and properties add and override
Current State
Based on the documents properties and method will be add but when i am trying to add it gives an error.
Documents:
// declare the methods for typescript
declare module "fabric" {
// to have the properties recognized on the instance and in the constructor
interface Rect {
getText: () => string;
}
// to have the properties typed in the exported object
interface Text {
getText: () => string;
}
}
// then add the methods to the classes:
Rect.prototype.getText = function() { return 'none'; }
Text.prototype.getText = function() { return this.text; }
compile time error shown getText in available in Text and Rect class
please give me a solution if it is available in fabricjs
i am using Angular 17
Additional Context
No response
The text was updated successfully, but these errors were encountered: