Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
psd-parse
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
psd-parse
Commits
2ecf75b0
Commit
2ecf75b0
authored
Nov 15, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善文本逻辑
parent
901b139a
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
15 deletions
+19
-15
index.es.js
dist/index.es.js
+4
-3
index.es.js.map
dist/index.es.js.map
+1
-1
index.js
dist/index.js
+4
-3
index.js.map
dist/index.js.map
+1
-1
index.umd.js
dist/index.umd.js
+4
-3
index.umd.js.map
dist/index.umd.js.map
+1
-1
zeroing.js
src/zeroing.js
+4
-3
No files found.
dist/index.es.js
View file @
2ecf75b0
...
@@ -258,11 +258,12 @@ async function execute$1(psdFile, options) {
...
@@ -258,11 +258,12 @@ async function execute$1(psdFile, options) {
const
{
RunLengthArray
}
=
fontInfo
.
engineData
.
EngineDict
.
StyleRun
;
const
{
RunLengthArray
}
=
fontInfo
.
engineData
.
EngineDict
.
StyleRun
;
properties
.
text
=
fontInfo
.
textValue
;
properties
.
text
=
fontInfo
.
textValue
;
properties
.
size
=
styles
.
sizes
()[
0
]
/
2
;
let
[
r
,
g
,
b
,
a
]
=
fontInfo
.
colors
()[
0
];
let
[
r
,
g
,
b
,
a
]
=
fontInfo
.
colors
()[
0
];
properties
.
c
olor
=
`rgba(
${
r
}
,
${
g
}
,
${
b
}
,
${
a
/
255
}
)`
;
properties
.
fillC
olor
=
`rgba(
${
r
}
,
${
g
}
,
${
b
}
,
${
a
/
255
}
)`
;
properties
.
textflow
=
{
/*
properties.textflow = {
fonts, styles, RunLengthArray,
fonts, styles, RunLengthArray,
};
};
*/
viewNode
.
type
=
'label'
;
viewNode
.
type
=
'label'
;
}
else
if
(
solidColor
)
{
}
else
if
(
solidColor
)
{
const
{
r
,
g
,
b
}
=
solidColor
();
const
{
r
,
g
,
b
}
=
solidColor
();
...
...
dist/index.es.js.map
View file @
2ecf75b0
This diff is collapsed.
Click to expand it.
dist/index.js
View file @
2ecf75b0
...
@@ -264,11 +264,12 @@ async function execute$1(psdFile, options) {
...
@@ -264,11 +264,12 @@ async function execute$1(psdFile, options) {
const
{
RunLengthArray
}
=
fontInfo
.
engineData
.
EngineDict
.
StyleRun
;
const
{
RunLengthArray
}
=
fontInfo
.
engineData
.
EngineDict
.
StyleRun
;
properties
.
text
=
fontInfo
.
textValue
;
properties
.
text
=
fontInfo
.
textValue
;
properties
.
size
=
styles
.
sizes
()[
0
]
/
2
;
let
[
r
,
g
,
b
,
a
]
=
fontInfo
.
colors
()[
0
];
let
[
r
,
g
,
b
,
a
]
=
fontInfo
.
colors
()[
0
];
properties
.
c
olor
=
`rgba(
${
r
}
,
${
g
}
,
${
b
}
,
${
a
/
255
}
)`
;
properties
.
fillC
olor
=
`rgba(
${
r
}
,
${
g
}
,
${
b
}
,
${
a
/
255
}
)`
;
properties
.
textflow
=
{
/*
properties.textflow = {
fonts, styles, RunLengthArray,
fonts, styles, RunLengthArray,
};
};
*/
viewNode
.
type
=
'label'
;
viewNode
.
type
=
'label'
;
}
else
if
(
solidColor
)
{
}
else
if
(
solidColor
)
{
const
{
r
,
g
,
b
}
=
solidColor
();
const
{
r
,
g
,
b
}
=
solidColor
();
...
...
dist/index.js.map
View file @
2ecf75b0
This diff is collapsed.
Click to expand it.
dist/index.umd.js
View file @
2ecf75b0
...
@@ -264,11 +264,12 @@
...
@@ -264,11 +264,12 @@
const
{
RunLengthArray
}
=
fontInfo
.
engineData
.
EngineDict
.
StyleRun
;
const
{
RunLengthArray
}
=
fontInfo
.
engineData
.
EngineDict
.
StyleRun
;
properties
.
text
=
fontInfo
.
textValue
;
properties
.
text
=
fontInfo
.
textValue
;
properties
.
size
=
styles
.
sizes
()[
0
]
/
2
;
let
[
r
,
g
,
b
,
a
]
=
fontInfo
.
colors
()[
0
];
let
[
r
,
g
,
b
,
a
]
=
fontInfo
.
colors
()[
0
];
properties
.
c
olor
=
`rgba(
${
r
}
,
${
g
}
,
${
b
}
,
${
a
/
255
}
)`
;
properties
.
fillC
olor
=
`rgba(
${
r
}
,
${
g
}
,
${
b
}
,
${
a
/
255
}
)`
;
properties
.
textflow
=
{
/*
properties.textflow = {
fonts, styles, RunLengthArray,
fonts, styles, RunLengthArray,
};
};
*/
viewNode
.
type
=
'label'
;
viewNode
.
type
=
'label'
;
}
else
if
(
solidColor
)
{
}
else
if
(
solidColor
)
{
const
{
r
,
g
,
b
}
=
solidColor
();
const
{
r
,
g
,
b
}
=
solidColor
();
...
...
dist/index.umd.js.map
View file @
2ecf75b0
This diff is collapsed.
Click to expand it.
src/zeroing.js
View file @
2ecf75b0
...
@@ -51,11 +51,12 @@ export async function execute(psdFile, options) {
...
@@ -51,11 +51,12 @@ export async function execute(psdFile, options) {
const
{
RunLengthArray
}
=
fontInfo
.
engineData
.
EngineDict
.
StyleRun
;
const
{
RunLengthArray
}
=
fontInfo
.
engineData
.
EngineDict
.
StyleRun
;
properties
.
text
=
fontInfo
.
textValue
;
properties
.
text
=
fontInfo
.
textValue
;
properties
.
size
=
styles
.
sizes
()[
0
]
/
2
;
let
[
r
,
g
,
b
,
a
]
=
fontInfo
.
colors
()[
0
];
let
[
r
,
g
,
b
,
a
]
=
fontInfo
.
colors
()[
0
];
properties
.
c
olor
=
`rgba(
${
r
}
,
${
g
}
,
${
b
}
,
${
a
/
255
}
)`
;
properties
.
fillC
olor
=
`rgba(
${
r
}
,
${
g
}
,
${
b
}
,
${
a
/
255
}
)`
;
properties
.
textflow
=
{
/*
properties.textflow = {
fonts, styles, RunLengthArray,
fonts, styles, RunLengthArray,
};
};
*/
viewNode
.
type
=
'label'
;
viewNode
.
type
=
'label'
;
}
else
if
(
solidColor
)
{
}
else
if
(
solidColor
)
{
const
{
r
,
g
,
b
}
=
solidColor
();
const
{
r
,
g
,
b
}
=
solidColor
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment