We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0da1ede commit b13dd33Copy full SHA for b13dd33
src/helper/tools/text-tool.js
@@ -186,7 +186,13 @@ class TextTool extends paper.Tool {
186
// edge. We need to correct for this in order for the element to overlap the object in paper.
187
let tx = 0;
188
if (this.element.parentElement) {
189
- tx = -this.textBox.internalBounds.x;
+ if (this.alignment === "right") {
190
+ tx = -this.textBox.internalBounds.x * 2;
191
+ }
192
+ if (this.alignment === "center") {
193
194
195
+ if (window.test) tx = window.test(this);
196
}
197
198
// Start by translating the element up so that its (0, 0) is now at the text baseline, like in paper
0 commit comments