@wubafe/picasso
Advanced tools
Comparing version 0.0.7 to 0.0.8
{ | ||
"name": "@wubafe/picasso", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "sketch设计稿智能解析工具", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -8,3 +8,2 @@ | ||
const parseSymbol = require("./parseSymbol"); | ||
const { handleMeta } = require("../../../common/sketchTools"); | ||
const calculateCoordinate = require("./calculateCoordinate"); | ||
@@ -115,4 +114,3 @@ const calculateHiddenLayer = require("./calculateHiddenLayer"); | ||
} | ||
//获取版本信息 | ||
let { appVersion, fonts } = handleMeta(sketchId, artboardIndex); | ||
return { | ||
@@ -122,4 +120,4 @@ data, | ||
size, | ||
appVersion, | ||
fonts, | ||
appVersion: '', | ||
fonts: '', | ||
isMongolian: false, | ||
@@ -126,0 +124,0 @@ errorObj |
@@ -104,2 +104,3 @@ const fs = require('fs'); | ||
process.exec(sketchtoolString, { maxBuffer: 20000*1024 }, (error,stdout,stderr) => { | ||
console.log(stderr); | ||
if (error!==null) { | ||
@@ -240,2 +241,3 @@ reject(error); | ||
}) => artboardName); | ||
artboardsList = artboardsList.map((item,index)=> ({...item, artboardIndex: index+1})); | ||
let resultList = []; | ||
@@ -251,5 +253,5 @@ | ||
} = artboardsList[i]; | ||
console.log(`---第${i + 1}张画板解析-开始---`); | ||
artboardIndex = i + 1; | ||
process.execSync(`cp -r ${cliSketchParseResultPath}/${sketchId}_info ${cliSketchParseResultPath}/${sketchId}_${artboardIndex}`); | ||
console.log(`---第${artboardIndex}张画板解析-开始---`); | ||
await processAsync(`cp -r ${cliSketchParseResultPath}/${sketchId}_info ${cliSketchParseResultPath}/${sketchId}_${artboardIndex}`); | ||
let errorObj = {}; | ||
@@ -277,3 +279,3 @@ let item = await artboardParse(sketchId, sketchName, artboardIndex, artboardName, errorObj, uuid,{ | ||
resultList.push(item); | ||
console.log(`---第${i + 1}张画板解析-结束---`); | ||
console.log(`---第${artboardIndex}张画板解析-结束---`); | ||
} | ||
@@ -280,0 +282,0 @@ // 删除多余文件 |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2673935
13681