fix: fix align in text path

This commit is contained in:
gtktsc
2023-03-22 21:58:00 +01:00
parent 888fbf3254
commit a622479674
6 changed files with 240 additions and 249 deletions

View File

@@ -277,7 +277,7 @@ describe('TextPath', function () {
layer.add(textpath);
stage.add(layer);
cloneAndCompareLayer(layer, 200);
cloneAndCompareLayer(layer, 200, 10);
});
it('Text path with letter spacing', function () {
@@ -757,9 +757,9 @@ describe('TextPath', function () {
// just different results in different envs
if (isBrowser) {
assert.equal(Math.round(rect.height), 329, 'check height');
} else {
assert.equal(Math.round(rect.height), 331, 'check height');
} else {
assert.equal(Math.round(rect.height), 333, 'check height');
}
textpath.text('');