mirror of
https://github.com/konvajs/konva.git
synced 2026-03-03 16:58:33 +08:00
Fixed TextPath Bug (Issue 249, Credit for bug fix: @therth)
This commit is contained in:
@@ -226,7 +226,8 @@
|
|||||||
else
|
else
|
||||||
currentT -= Math.PI / 360.0 * dTheta / Math.abs(dTheta);
|
currentT -= Math.PI / 360.0 * dTheta / Math.abs(dTheta);
|
||||||
|
|
||||||
if(Math.abs(currentT) > Math.abs(end)) {
|
// Credit for bug fix: @therth https://github.com/ericdrowell/KineticJS/issues/249
|
||||||
|
if(dTheta < 0 && currentT < end || dTheta >= 0 && currentT > end) {
|
||||||
currentT = end;
|
currentT = end;
|
||||||
needNewSegment = true;
|
needNewSegment = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user