Skip to content
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

'glow' and 'getPointAtLength()' treat a curved bezier as straight lines in 2.1.2, whereas in 2.1.1 it works #824

Open
eliort opened this issue Jan 12, 2014 · 2 comments

Comments

@eliort
Copy link

eliort commented Jan 12, 2014

this code works well if 'raphael.js' is 2.1.1 but not for 2.1.2, where the path is shown as a curve but the 'glow' function highlights the linear paths between the points and 'getPointAtLength()' returns points on this linear path:

<title></title> <script src="raphael.js"></script>
<script type="text/javascript">
    function start() {
        var paper = Raphael(document.all.r);
        var animationPath = paper.path("M1052,141T1186,63T1281,206T1019,241");
        animationPath.glow();
        var point = animationPath.getPointAtLength(300);
        var c = paper.circle(point.x, point.y, 5);
    }
</script>
@CarloCannas
Copy link

This has been fixed in commit tomasAlabes@3bc12c3

More details on the original StackOverflow question: https://stackoverflow.com/questions/21065321/raphaeljss-getpointatlength-returns-linear-values-for-a-quadratic-bezier-curv

@eliort
Copy link
Author

eliort commented Jan 13, 2014

Great, thank you for all your help.

2014/1/13 CarloCannas notifications@github.com

This has been fixed in commit tomasAlabes/raphael@3bc12c3tomasAlabes@3bc12c3

More details on the original StackOverflow question:
https://stackoverflow.com/questions/21065321/raphaeljss-getpointatlength-returns-linear-values-for-a-quadratic-bezier-curv


Reply to this email directly or view it on GitHubhttps://github.com//issues/824#issuecomment-32136899
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants