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

@leafer-ui/export

Package Overview
Dependencies
Maintainers
0
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafer-ui/export - npm Package Compare versions

Comparing version
1.0.0-rc.28
to
1.0.0-rc.30
+4
-4
package.json
{
"name": "@leafer-ui/export",
"version": "1.0.0-rc.28",
"version": "1.0.0-rc.30",
"description": "@leafer-ui/export",

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

"dependencies": {
"@leafer/core": "1.0.0-rc.28"
"@leafer/core": "1.0.0-rc.30"
},
"devDependencies": {
"@leafer/interface": "1.0.0-rc.28",
"@leafer-ui/interface": "1.0.0-rc.28"
"@leafer/interface": "1.0.0-rc.30",
"@leafer-ui/interface": "1.0.0-rc.30"
}
}

@@ -13,2 +13,6 @@ import { IExportFileType, IFunction, IRenderOptions, IBoundsData, IBounds, ILocationType, ILeaf } from '@leafer/interface'

this.running = true
const fileType = FileHelper.fileType(filename)
options = FileHelper.getExportOptions(options)
return addTask((success: IExportResultFunction) =>

@@ -24,11 +28,9 @@

const { toURL } = Platform
const { download } = Platform.origin
const fileType = FileHelper.fileType(filename)
if (filename === 'json') {
return over({ data: leaf.toJSON() })
return over({ data: leaf.toJSON(options.json) })
} else if (fileType === 'json') {
download(toURL(JSON.stringify(leaf.toJSON()), 'text'), filename)
download(toURL(JSON.stringify(leaf.toJSON(options.json)), 'text'), filename)
return over({ data: true })

@@ -52,4 +54,2 @@ }

options = FileHelper.getExportOptions(options)
let renderBounds: IBoundsData, trimBounds: IBounds, scaleX = 1, scaleY = 1

@@ -56,0 +56,0 @@ const { worldTransform, isLeafer, isFrame } = leaf