Commit 0d9c2580 authored by rockyl's avatar rockyl

完善文本逻辑

parent 2ecf75b0
......@@ -258,7 +258,7 @@ async function execute$1(psdFile, options) {
const {RunLengthArray} = fontInfo.engineData.EngineDict.StyleRun;
properties.text = fontInfo.textValue;
properties.size = styles.sizes()[0] / 2;
properties.size = fontInfo.sizes()[0] / 2;
let [r, g, b, a] = fontInfo.colors()[0];
properties.fillColor = `rgba(${r}, ${g}, ${b}, ${a / 255})`;
/*properties.textflow = {
......
This diff is collapsed.
......@@ -264,7 +264,7 @@ async function execute$1(psdFile, options) {
const {RunLengthArray} = fontInfo.engineData.EngineDict.StyleRun;
properties.text = fontInfo.textValue;
properties.size = styles.sizes()[0] / 2;
properties.size = fontInfo.sizes()[0] / 2;
let [r, g, b, a] = fontInfo.colors()[0];
properties.fillColor = `rgba(${r}, ${g}, ${b}, ${a / 255})`;
/*properties.textflow = {
......
This diff is collapsed.
......@@ -264,7 +264,7 @@
const {RunLengthArray} = fontInfo.engineData.EngineDict.StyleRun;
properties.text = fontInfo.textValue;
properties.size = styles.sizes()[0] / 2;
properties.size = fontInfo.sizes()[0] / 2;
let [r, g, b, a] = fontInfo.colors()[0];
properties.fillColor = `rgba(${r}, ${g}, ${b}, ${a / 255})`;
/*properties.textflow = {
......
This diff is collapsed.
......@@ -51,7 +51,7 @@ export async function execute(psdFile, options) {
const {RunLengthArray} = fontInfo.engineData.EngineDict.StyleRun;
properties.text = fontInfo.textValue;
properties.size = styles.sizes()[0] / 2;
properties.size = fontInfo.sizes()[0] / 2;
let [r, g, b, a] = fontInfo.colors()[0];
properties.fillColor = `rgba(${r}, ${g}, ${b}, ${a / 255})`;
/*properties.textflow = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment