-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in Fabric 5.0 #43
Comments
@marcohamersma Thanks, your suggestion all sounds great and reasonable! Let me look into Fabric 5.0, make appropriate changes, and move Fabric.js to |
I am also facing the same issue with fabric 5+. Would love to use this library for our next release. |
I've created a pull request for these fixes :) There is however another issue that I'm having with Fabric's new-ish Eraser functionality/mixin. This among other things adds an The problem occurs when running So I think the issue is with the |
The same issue - have you already resolved it or do you have any progress to share? |
I have no progress on this, I refrained from updating Fabric for the time being |
I know the readme states that the library is only available for version 3 and 4, but I figured I would make an issue anyway to make sure people know that there is currently a few errors/bugs.
error in
_reset
it seems in the
_reset
method PSBrush callsthis._setBrushstyles()
(a function it inherits from fabric) with no arguments, but it seems that in version 5_setBrushStyles
expects the context to be passed as the first argument:I managed to monkeypatch this fix this in my code by doing the following
Brush color
When the brush's color is set to a color, the brush will still show up as black while drawing, only switching to the proper color after finishing the stroke
Screen.Recording.2022-05-23.at.18.02.39.mov
Peer dependency
Additionally, it would be good if Fabricjs became a
peerDependency
, rather than a dependency.The text was updated successfully, but these errors were encountered: