-
Notifications
You must be signed in to change notification settings - Fork 37
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
Path 2D module #133
Path 2D module #133
Conversation
@TheSpyder what do you do with the generated js files from tests? are they used besides compile check? |
@utenma sorry I haven't looked at this yet. The "tests" are indeed a compile check; it ensures changes made do not impact the compiled JS (unless that's intentional). I hope to one day have full library coverage, if you could add a few extra test calls to methods you've added that would be great 👍 Should we delete the old binding methods you're replacing? |
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.
Getting there! just needs a few tweaks.
updated list of breaking changes |
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.
I am truly sorry for letting this sit for over 2 months. I had a long work trip and then things just kept coming up that I had to deal with first.
Just one little tweak and then I'll merge+release it.
ctx->beginPath | ||
ctx->strokePath2D(path) | ||
ctx->fillPath2D(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.
These don't have an equivalent test in your new code 🤔
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.
oh beginPath
is already tested, and the others moved. My bad.
Published as 0.10.0 |
As result of #132
Path2d module added with following js bindings, see on MDN
Syntax
Changelog
Breaking
TODO
src/Webapi/Webapi__Canvas.res
Canvas2d.newPath2D()
in favor ofPath2d.make(~d=?)
t
)