-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
refactor(tests): move path tests from qunit to vitest #10552
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
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
|
||
expect(path, 'should be instance of Path').toBeInstanceOf(Path); | ||
|
||
// @ts-expect-error -- TODO: check why transformMatrix is not set on the Path as potential type? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@asturur should transformMatrix
be set as nullable property of the path?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah the type should be fixed.
fromElement returns the FabricObject with attached that property that then we remove one line of code after.
Each 'FromElement' should call 'removeTransformMatrix' but i think to avoid duplicated calls it was done in a single place in the parsing logic.
Build Stats
|
|
I have canvas events in my local branch |
I would also take webgl test if you dont mind |
I fixed the types for FromElement that indeed could return the transformMatrix. |
Take all you want i have a stack of things to do, i do not need to do more tests. I did a bunch for sharing more than other |
No description provided.