@leafer-ui/text
Advanced tools
+4
-4
| { | ||
| "name": "@leafer-ui/text", | ||
| "version": "1.8.0", | ||
| "version": "1.9.0", | ||
| "description": "@leafer-ui/text", | ||
@@ -25,8 +25,8 @@ "author": "Chao (Leafer) Wan", | ||
| "dependencies": { | ||
| "@leafer/core": "1.8.0" | ||
| "@leafer/core": "1.9.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.8.0", | ||
| "@leafer-ui/interface": "1.8.0" | ||
| "@leafer/interface": "1.9.0", | ||
| "@leafer-ui/interface": "1.9.0" | ||
| } | ||
| } |
@@ -1,2 +0,2 @@ | ||
| import { Platform, Direction4 } from '@leafer/core' | ||
| import { Platform, Direction4, isString } from '@leafer/core' | ||
@@ -16,3 +16,3 @@ import { ITextData, ITextDrawData } from '@leafer-ui/interface' | ||
| if (typeof content !== 'string') content = String(content) | ||
| if (!isString(content)) content = String(content) | ||
@@ -19,0 +19,0 @@ let x = 0, y = 0 |
@@ -0,3 +1,4 @@ | ||
| import { isObject } from '@leafer/core' | ||
| import { ITextData, ITextDecorationType, ITextDrawData } from '@leafer-ui/interface' | ||
| import { ColorConvert } from '@leafer-ui/draw' | ||
@@ -10,3 +11,3 @@ | ||
| drawData.decorationHeight = fontSize / 11 | ||
| if (typeof textDecoration === 'object') { | ||
| if (isObject(textDecoration)) { | ||
| type = textDecoration.type | ||
@@ -13,0 +14,0 @@ if (textDecoration.color) drawData.decorationColor = ColorConvert.string(textDecoration.color) |
22058
0.14%460
0.22%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated