Best approach to extend fabric classes #9777
Closed
bitttttten
started this conversation in
General
Replies: 2 comments 11 replies
-
With which version of fabricJS are you working? |
Beta Was this translation helpful? Give feedback.
11 replies
-
Solved by doing something like:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey! Love the project and I just have a few questions. I'm looking to extend the base fabric object to always add an ID.
Later on I adjust the controls, and seems to break it.
I would imagine I can do something like this, although it doesn't seem to work exactly.
For example if I now try and set transparentCorners or cornerColor, this no longer works: https://stackblitz.com/edit/vitejs-vite-ahqkv6?file=src%2Fmain.ts.
What's the right approach here?
Beta Was this translation helpful? Give feedback.
All reactions