Merge pull request #13901 from MoonE/text-types

Make Text options typesafe
This commit is contained in:
MoonE
2022-07-30 01:34:28 +02:00
committed by GitHub
5 changed files with 34 additions and 35 deletions
+1
View File
@@ -937,6 +937,7 @@ class KML extends XMLFeature {
*/
function createNameStyleFunction(foundStyle, name) {
const textOffset = [0, 0];
/** @type {CanvasTextAlign} */
let textAlign = 'start';
const imageStyle = foundStyle.getImage();
if (imageStyle) {