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
62395235
Commit
62395235
authored
Oct 18, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文本处理增加单一颜色
parent
e63747e6
Changes
9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
16 additions
and
5 deletions
+16
-5
index.es.js
dist/index.es.js
+2
-0
index.es.js.map
dist/index.es.js.map
+1
-1
index.js
dist/index.js
+2
-0
index.js.map
dist/index.js.map
+1
-1
index.umd.js
dist/index.umd.js
+2
-0
index.umd.js.map
dist/index.umd.js.map
+1
-1
generator.cjs.js
samples/zeroing-demo/generator.cjs.js
+4
-1
generator.cjs.js.map
samples/zeroing-demo/generator.cjs.js.map
+1
-1
zeroing.js
src/zeroing.js
+2
-0
No files found.
dist/index.es.js
View file @
62395235
...
...
@@ -258,6 +258,8 @@ async function execute$1(psdFile, options) {
const
{
RunLengthArray
}
=
fontInfo
.
engineData
.
EngineDict
.
StyleRun
;
properties
.
text
=
fontInfo
.
textValue
;
let
[
r
,
g
,
b
,
a
]
=
fontInfo
.
colors
()[
0
];
properties
.
color
=
`rgba(
${
r
}
,
${
g
}
,
${
b
}
,
${
a
/
255
}
)`
;
properties
.
textflow
=
{
fonts
,
styles
,
RunLengthArray
,
};
...
...
dist/index.es.js.map
View file @
62395235
This diff is collapsed.
Click to expand it.
dist/index.js
View file @
62395235
...
...
@@ -264,6 +264,8 @@ async function execute$1(psdFile, options) {
const
{
RunLengthArray
}
=
fontInfo
.
engineData
.
EngineDict
.
StyleRun
;
properties
.
text
=
fontInfo
.
textValue
;
let
[
r
,
g
,
b
,
a
]
=
fontInfo
.
colors
()[
0
];
properties
.
color
=
`rgba(
${
r
}
,
${
g
}
,
${
b
}
,
${
a
/
255
}
)`
;
properties
.
textflow
=
{
fonts
,
styles
,
RunLengthArray
,
};
...
...
dist/index.js.map
View file @
62395235
This diff is collapsed.
Click to expand it.
dist/index.umd.js
View file @
62395235
...
...
@@ -264,6 +264,8 @@
const
{
RunLengthArray
}
=
fontInfo
.
engineData
.
EngineDict
.
StyleRun
;
properties
.
text
=
fontInfo
.
textValue
;
let
[
r
,
g
,
b
,
a
]
=
fontInfo
.
colors
()[
0
];
properties
.
color
=
`rgba(
${
r
}
,
${
g
}
,
${
b
}
,
${
a
/
255
}
)`
;
properties
.
textflow
=
{
fonts
,
styles
,
RunLengthArray
,
};
...
...
dist/index.umd.js.map
View file @
62395235
This diff is collapsed.
Click to expand it.
samples/zeroing-demo/generator.cjs.js
View file @
62395235
...
...
@@ -108,6 +108,8 @@ async function execute(psdFile, options) {
const
{
RunLengthArray
}
=
fontInfo
.
engineData
.
EngineDict
.
StyleRun
;
properties
.
text
=
fontInfo
.
textValue
;
let
[
r
,
g
,
b
,
a
]
=
fontInfo
.
colors
()[
0
];
properties
.
color
=
`rgba(
${
r
}
,
${
g
}
,
${
b
}
,
${
a
/
255
}
)`
;
properties
.
textflow
=
{
fonts
,
styles
,
RunLengthArray
,
};
...
...
@@ -127,7 +129,7 @@ async function execute(psdFile, options) {
const
uuid
=
generateUUID
();
const
ext
=
'.png'
;
properties
.
source
=
'asset
|
'
+
uuid
;
properties
.
source
=
'asset
://
'
+
uuid
;
const
imageFilePath
=
path
.
join
(
imagesPath
,
uuid
+
ext
);
await
fs
.
ensureDir
(
path
.
dirname
(
imageFilePath
));
...
...
@@ -143,6 +145,7 @@ async function execute(psdFile, options) {
name
,
ext
,
uuid
,
hash
:
hashFileName
,
});
}
}
...
...
samples/zeroing-demo/generator.cjs.js.map
View file @
62395235
This diff is collapsed.
Click to expand it.
src/zeroing.js
View file @
62395235
...
...
@@ -51,6 +51,8 @@ export async function execute(psdFile, options) {
const
{
RunLengthArray
}
=
fontInfo
.
engineData
.
EngineDict
.
StyleRun
;
properties
.
text
=
fontInfo
.
textValue
;
let
[
r
,
g
,
b
,
a
]
=
fontInfo
.
colors
()[
0
];
properties
.
color
=
`rgba(
${
r
}
,
${
g
}
,
${
b
}
,
${
a
/
255
}
)`
;
properties
.
textflow
=
{
fonts
,
styles
,
RunLengthArray
,
};
...
...
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