Comparing version 9.3.8 to 9.3.9
@@ -19,3 +19,3 @@ "use strict"; | ||
_global: exports.glob, | ||
version: '9.3.8', | ||
version: '9.3.9', | ||
isBrowser: detectBrowser(), | ||
@@ -22,0 +22,0 @@ isUnminified: /param/.test(function (param) { }.toString()), |
@@ -124,3 +124,8 @@ "use strict"; | ||
context.beginPath(); | ||
context.moveTo(lineTranslateX, translateY + lineTranslateY + Math.round(fontSize / 2)); | ||
let yOffset = Global_1.Konva._fixTextRendering | ||
? Math.round(fontSize / 4) | ||
: Math.round(fontSize / 2); | ||
const x = lineTranslateX; | ||
const y = translateY + lineTranslateY + yOffset; | ||
context.moveTo(x, y); | ||
spacesNumber = text.split(' ').length - 1; | ||
@@ -130,3 +135,3 @@ oneWord = spacesNumber === 0; | ||
align === JUSTIFY && !lastLine ? totalWidth - padding * 2 : width; | ||
context.lineTo(lineTranslateX + Math.round(lineWidth), translateY + lineTranslateY + Math.round(fontSize / 2)); | ||
context.lineTo(x + Math.round(lineWidth), y); | ||
context.lineWidth = fontSize / 15; | ||
@@ -141,3 +146,4 @@ const gradient = this._getLinearGradient(); | ||
context.beginPath(); | ||
context.moveTo(lineTranslateX, translateY + lineTranslateY); | ||
let yOffset = Global_1.Konva._fixTextRendering ? -Math.round(fontSize / 4) : 0; | ||
context.moveTo(lineTranslateX, translateY + lineTranslateY + yOffset); | ||
spacesNumber = text.split(' ').length - 1; | ||
@@ -149,3 +155,3 @@ oneWord = spacesNumber === 0; | ||
: width; | ||
context.lineTo(lineTranslateX + Math.round(lineWidth), translateY + lineTranslateY); | ||
context.lineTo(lineTranslateX + Math.round(lineWidth), translateY + lineTranslateY + yOffset); | ||
context.lineWidth = fontSize / 15; | ||
@@ -152,0 +158,0 @@ const gradient = this._getLinearGradient(); |
{ | ||
"name": "konva", | ||
"version": "9.3.8", | ||
"version": "9.3.9", | ||
"author": "Anton Lavrenov", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1403378
32655