Skip to content

Commit

Permalink
Merge pull request #371 from OzGav/master
Browse files Browse the repository at this point in the history
Fix typo in utils.ts
  • Loading branch information
exetico authored Oct 3, 2023
2 parents b61ac91 + ad14647 commit 637ace5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class Utils {
textElement.textContent = '';

// Note the user about the intended change in a dataset
textElement.dataset.ha_floorplan_notice = 'The text_set function splitted your text into multiple tspans. Only the style of the first tspan is preserved. The style from the original tspan is reused on every tspan. The x and y are calculated on basis of the first tspan or text-element.';
textElement.dataset.ha_floorplan_notice = 'The text_set function split your text into multiple tspans. Only the style of the first tspan is preserved. The style from the original tspan is reused on every tspan. The x and y are calculated on the basis of the first tspan or text-element.';

// Get x location of text, if no found, set to 0
const textXPosition = textElement.getAttribute('x') || '0';
Expand Down Expand Up @@ -394,4 +394,4 @@ export class Utils {
}
return localStorage[ID_BROWER_KEY];
}
}
}

0 comments on commit 637ace5

Please sign in to comment.