In order to maintain the efficiency of dragging layers, jCanvas only offsets the x
and y
properties for any draggable layer (including paths). Therefore, when dragging, you can compute the absolute positions of any set of path coordinates using something along these lines:
var absX1 = layer.x + layer.x1;
var absY1 = layer.y + layer.y1;
(assuming layer
references a jCanvas layer, of course)