Fix stroke for text along path wiht negative x scale
This commit is contained in:
@@ -918,7 +918,9 @@ class Executor {
|
|||||||
part = parts[c]; // x, y, anchorX, rotation, chunk
|
part = parts[c]; // x, y, anchorX, rotation, chunk
|
||||||
chars = /** @type {string} */ (part[4]);
|
chars = /** @type {string} */ (part[4]);
|
||||||
label = this.createLabel(chars, textKey, '', strokeKey);
|
label = this.createLabel(chars, textKey, '', strokeKey);
|
||||||
anchorX = /** @type {number} */ (part[2]) + strokeWidth;
|
anchorX =
|
||||||
|
/** @type {number} */ (part[2]) +
|
||||||
|
(textScale[0] < 0 ? -strokeWidth : strokeWidth);
|
||||||
anchorY =
|
anchorY =
|
||||||
baseline * label.height +
|
baseline * label.height +
|
||||||
((0.5 - baseline) * 2 * strokeWidth * textScale[1]) /
|
((0.5 - baseline) * 2 * strokeWidth * textScale[1]) /
|
||||||
|
|||||||
Reference in New Issue
Block a user