You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@leafer-ui/text

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafer-ui/text - npm Package Compare versions

Comparing version
1.8.0
to
1.9.0
+4
-4
package.json
{
"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)