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
a79d745a
Commit
a79d745a
authored
Sep 27, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
77c7ffd4
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
12 deletions
+9
-12
index.es.js
dist/index.es.js
+2
-3
index.es.js.map
dist/index.es.js.map
+1
-1
index.js
dist/index.js
+2
-3
index.js.map
dist/index.js.map
+1
-1
index.umd.js
dist/index.umd.js
+2
-3
index.umd.js.map
dist/index.umd.js.map
+1
-1
No files found.
dist/index.es.js
View file @
a79d745a
...
@@ -272,17 +272,16 @@ async function execute$1(psdFile, options) {
...
@@ -272,17 +272,16 @@ async function execute$1(psdFile, options) {
viewNode
.
type
=
'image'
;
viewNode
.
type
=
'image'
;
const
uuid
=
generateUUID
();
const
uuid
=
generateUUID
();
const
fileName
=
Date
.
now
().
valueOf
();
const
ext
=
'.png'
;
const
ext
=
'.png'
;
properties
.
source
=
'asset|'
+
uuid
;
properties
.
source
=
'asset|'
+
uuid
;
const
imageFilePath
=
path
.
join
(
imagesPath
,
fileName
+
ext
);
const
imageFilePath
=
path
.
join
(
imagesPath
,
uuid
+
ext
);
await
fs
.
ensureDir
(
path
.
dirname
(
imageFilePath
));
await
fs
.
ensureDir
(
path
.
dirname
(
imageFilePath
));
await
node
.
origin
.
saveAsPng
(
imageFilePath
);
await
node
.
origin
.
saveAsPng
(
imageFilePath
);
assets
.
push
({
assets
.
push
({
name
:
fileName
,
name
:
uuid
,
ext
,
ext
,
uuid
,
uuid
,
});
});
...
...
dist/index.es.js.map
View file @
a79d745a
This diff is collapsed.
Click to expand it.
dist/index.js
View file @
a79d745a
...
@@ -278,17 +278,16 @@ async function execute$1(psdFile, options) {
...
@@ -278,17 +278,16 @@ async function execute$1(psdFile, options) {
viewNode
.
type
=
'image'
;
viewNode
.
type
=
'image'
;
const
uuid
=
generateUUID
();
const
uuid
=
generateUUID
();
const
fileName
=
Date
.
now
().
valueOf
();
const
ext
=
'.png'
;
const
ext
=
'.png'
;
properties
.
source
=
'asset|'
+
uuid
;
properties
.
source
=
'asset|'
+
uuid
;
const
imageFilePath
=
path
.
join
(
imagesPath
,
fileName
+
ext
);
const
imageFilePath
=
path
.
join
(
imagesPath
,
uuid
+
ext
);
await
fs
.
ensureDir
(
path
.
dirname
(
imageFilePath
));
await
fs
.
ensureDir
(
path
.
dirname
(
imageFilePath
));
await
node
.
origin
.
saveAsPng
(
imageFilePath
);
await
node
.
origin
.
saveAsPng
(
imageFilePath
);
assets
.
push
({
assets
.
push
({
name
:
fileName
,
name
:
uuid
,
ext
,
ext
,
uuid
,
uuid
,
});
});
...
...
dist/index.js.map
View file @
a79d745a
This diff is collapsed.
Click to expand it.
dist/index.umd.js
View file @
a79d745a
...
@@ -278,17 +278,16 @@
...
@@ -278,17 +278,16 @@
viewNode
.
type
=
'image'
;
viewNode
.
type
=
'image'
;
const
uuid
=
generateUUID
();
const
uuid
=
generateUUID
();
const
fileName
=
Date
.
now
().
valueOf
();
const
ext
=
'.png'
;
const
ext
=
'.png'
;
properties
.
source
=
'asset|'
+
uuid
;
properties
.
source
=
'asset|'
+
uuid
;
const
imageFilePath
=
path
.
join
(
imagesPath
,
fileName
+
ext
);
const
imageFilePath
=
path
.
join
(
imagesPath
,
uuid
+
ext
);
await
fs
.
ensureDir
(
path
.
dirname
(
imageFilePath
));
await
fs
.
ensureDir
(
path
.
dirname
(
imageFilePath
));
await
node
.
origin
.
saveAsPng
(
imageFilePath
);
await
node
.
origin
.
saveAsPng
(
imageFilePath
);
assets
.
push
({
assets
.
push
({
name
:
fileName
,
name
:
uuid
,
ext
,
ext
,
uuid
,
uuid
,
});
});
...
...
dist/index.umd.js.map
View file @
a79d745a
This diff is collapsed.
Click to expand it.
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