-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
feat(fabric.util): Add a function to work with path measurements #6525
Conversation
src/util/path.js
Outdated
return (1 - t) * (1 - t) * (1 - t); | ||
} | ||
|
||
function getPointOnCubicBezierIterator(P1x, P1y, P2x, P2y, P3x, P3y, P4x, P4y) { |
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.
need to make those lowercase.
src/util/path.js
Outdated
@@ -396,39 +396,192 @@ | |||
return destinationPath; | |||
}; | |||
|
|||
/** | |||
* Calc lenght from point x1,y1 to x2,y2 |
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.
Length please
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 spelled it good almost everywhere, after various checks and corrections 😂
This function ( currently untested ) should provide us a way to measure paths.