@excalidraw/element 0.18.0-4e471c107 → 0.18.0-6d75c4b34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dev/index.js CHANGED
@@ -3825,7 +3825,7 @@ var getTextWidth = (text, font) => {
3825
3825
  return width;
3826
3826
  };
3827
3827
  var getTextHeight = (text, fontSize, lineHeight) => {
3828
- if (text === "") {
3828
+ if (text.trim() === "") {
3829
3829
  return 0;
3830
3830
  }
3831
3831
  const lineCount = splitIntoLines(text).length;