@leafer-ui/text 1.0.0-beta.8 → 1.0.0-beta.9

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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/TextRows.ts +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-ui/text",
3
- "version": "1.0.0-beta.8",
3
+ "version": "1.0.0-beta.9",
4
4
  "description": "@leafer-ui/text",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -19,10 +19,10 @@
19
19
  "leaferjs"
20
20
  ],
21
21
  "dependencies": {
22
- "@leafer-ui/core": "1.0.0-beta.8"
22
+ "@leafer-ui/core": "1.0.0-beta.9"
23
23
  },
24
24
  "devDependencies": {
25
- "@leafer/interface": "1.0.0-beta.8",
26
- "@leafer-ui/interface": "1.0.0-beta.8"
25
+ "@leafer/interface": "1.0.0-beta.9",
26
+ "@leafer-ui/interface": "1.0.0-beta.9"
27
27
  }
28
28
  }
package/src/TextRows.ts CHANGED
@@ -74,7 +74,11 @@ export function createRows(drawData: ITextDrawData, content: string, style: ITex
74
74
 
75
75
  }
76
76
 
77
- if (!(char === ' ' && (rowWidth + wordWidth) === 0)) {
77
+ if (char === ' ' && paraStart !== true && (rowWidth + wordWidth) === 0) {
78
+
79
+ // trim space
80
+
81
+ } else {
78
82
 
79
83
  if (charType === Break) {
80
84