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

@leafer-ui/paint

Package Overview
Dependencies
Maintainers
1
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafer-ui/paint - npm Package Compare versions

Comparing version
2.0.1
to
2.0.2
+5
-5
package.json
{
"name": "@leafer-ui/paint",
"version": "2.0.1",
"version": "2.0.2",
"description": "@leafer-ui/paint",

@@ -25,9 +25,9 @@ "author": "Chao (Leafer) Wan",

"dependencies": {
"@leafer/core": "2.0.1",
"@leafer-ui/draw": "2.0.1"
"@leafer/core": "2.0.2",
"@leafer-ui/draw": "2.0.2"
},
"devDependencies": {
"@leafer/interface": "2.0.1",
"@leafer-ui/interface": "2.0.1"
"@leafer/interface": "2.0.2",
"@leafer-ui/interface": "2.0.2"
}
}

@@ -61,8 +61,11 @@ import { DataHelper, isArray, isObject, isString, isUndefined } from '@leafer/core'

let leafPaint: ILeafPaint
const { boxBounds } = ui.__layout
const { boxBounds } = ui.__layout, { type } = paint
switch (paint.type) {
switch (type) {
case 'image':
case 'film':
case 'video':
if (!paint.url) return undefined
leafPaint = PaintImage.image(ui, attrName, paint, boxBounds, !recycleMap || !recycleMap[paint.url])
if (type !== 'image') PaintImage[type](leafPaint)
break

@@ -79,3 +82,3 @@ case 'linear':

case 'solid':
const { type, color, opacity } = paint
const { color, opacity } = paint
leafPaint = { type, style: ColorConvert.string(color, opacity) }

@@ -82,0 +85,0 @@ break