Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
psd-parse-web
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-web
Commits
b26e948e
Commit
b26e948e
authored
Jul 03, 2020
by
任建锋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--
parent
ef98d1a8
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
7 deletions
+7
-7
index.es.js
dist/index.es.js
+1
-1
index.es.js.map
dist/index.es.js.map
+1
-1
index.js
dist/index.js
+1
-1
index.js.map
dist/index.js.map
+1
-1
index.umd.js
dist/index.umd.js
+1
-1
index.umd.js.map
dist/index.umd.js.map
+1
-1
psd-tree.js
src/psd-tree.js
+1
-1
No files found.
dist/index.es.js
View file @
b26e948e
...
...
@@ -25,7 +25,7 @@ function walk(psNode, dataNode) {
const
x
=
left
-
pLeft
;
const
y
=
top
-
pTop
;
Object
.
assign
(
dataNode
,
{
x
,
y
,
width
,
height
,
alpha
:
opacity
/
255
,
visible
,
name
,
origin
:
psNode
,
label
:
`
${
name
}
> [
${
x
}
,
${
y
}
,
${
width
}
,
${
height
}
]`
});
Object
.
assign
(
dataNode
,
{
x
,
y
,
width
,
height
,
opacity
:
opacity
/
255
,
visible
,
name
,
origin
:
psNode
,
label
:
`
${
name
}
> [
${
x
}
,
${
y
}
,
${
width
}
,
${
height
}
]`
});
if
(
psNode
.
children
()
&&
psNode
.
children
().
length
>
0
){
dataNode
.
children
=
[];
}
...
...
dist/index.es.js.map
View file @
b26e948e
This diff is collapsed.
Click to expand it.
dist/index.js
View file @
b26e948e
...
...
@@ -31,7 +31,7 @@ function walk(psNode, dataNode) {
const
x
=
left
-
pLeft
;
const
y
=
top
-
pTop
;
Object
.
assign
(
dataNode
,
{
x
,
y
,
width
,
height
,
alpha
:
opacity
/
255
,
visible
,
name
,
origin
:
psNode
,
label
:
`
${
name
}
> [
${
x
}
,
${
y
}
,
${
width
}
,
${
height
}
]`
});
Object
.
assign
(
dataNode
,
{
x
,
y
,
width
,
height
,
opacity
:
opacity
/
255
,
visible
,
name
,
origin
:
psNode
,
label
:
`
${
name
}
> [
${
x
}
,
${
y
}
,
${
width
}
,
${
height
}
]`
});
if
(
psNode
.
children
()
&&
psNode
.
children
().
length
>
0
){
dataNode
.
children
=
[];
}
...
...
dist/index.js.map
View file @
b26e948e
This diff is collapsed.
Click to expand it.
dist/index.umd.js
View file @
b26e948e
...
...
@@ -31,7 +31,7 @@
const
x
=
left
-
pLeft
;
const
y
=
top
-
pTop
;
Object
.
assign
(
dataNode
,
{
x
,
y
,
width
,
height
,
alpha
:
opacity
/
255
,
visible
,
name
,
origin
:
psNode
,
label
:
`
${
name
}
> [
${
x
}
,
${
y
}
,
${
width
}
,
${
height
}
]`
});
Object
.
assign
(
dataNode
,
{
x
,
y
,
width
,
height
,
opacity
:
opacity
/
255
,
visible
,
name
,
origin
:
psNode
,
label
:
`
${
name
}
> [
${
x
}
,
${
y
}
,
${
width
}
,
${
height
}
]`
});
if
(
psNode
.
children
()
&&
psNode
.
children
().
length
>
0
){
dataNode
.
children
=
[];
}
...
...
dist/index.umd.js.map
View file @
b26e948e
This diff is collapsed.
Click to expand it.
src/psd-tree.js
View file @
b26e948e
...
...
@@ -19,7 +19,7 @@ function walk(psNode, dataNode) {
const
x
=
left
-
pLeft
;
const
y
=
top
-
pTop
;
Object
.
assign
(
dataNode
,
{
x
,
y
,
width
,
height
,
alpha
:
opacity
/
255
,
visible
,
name
,
origin
:
psNode
,
label
:
`
${
name
}
> [
${
x
}
,
${
y
}
,
${
width
}
,
${
height
}
]`
});
Object
.
assign
(
dataNode
,
{
x
,
y
,
width
,
height
,
opacity
:
opacity
/
255
,
visible
,
name
,
origin
:
psNode
,
label
:
`
${
name
}
> [
${
x
}
,
${
y
}
,
${
width
}
,
${
height
}
]`
});
if
(
psNode
.
children
()
&&
psNode
.
children
().
length
>
0
){
dataNode
.
children
=
[];
}
...
...
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