paperjs/paper.js — Issue #77: Path.Line and dashArray don't work together
Author: pixelmount
Created: 2012-02-25 19:53:45+00:00
State: open

Hi,
there is a essential problem with the dashArray when it comes to Lines, the problem doesnt appear on circles or rectangles, just on lines. So a short example of what i did:
var path = new Path.Line(0,0,400,400);
path.strokeColor = "black";
path.dashArray = [5,10];
view.draw();

The Problem is, it seems like the middle dash of the line is the largest one, then the dashs become smaller and smaller when it comes to the start/end of the line (see screenshot). That's quite strange and i dont know why, I think that's a bug. Does anyone know how to solve this problem temporarily? Thank u.

Screenshot: http://pixelmount.com/paperjs/dashArray-Bug.jpg

Best regards,
dk