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
553b3b74
Commit
553b3b74
authored
Sep 07, 2020
by
任建锋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加锚点
parent
edb5a4b8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
index.es.js
dist/index.es.js
+2
-2
zeroing.js
src/zeroing.js
+1
-0
No files found.
dist/index.es.js
View file @
553b3b74
...
...
@@ -203,7 +203,7 @@ async function execute(psdFile, options) {
value
=
0
;
}
}
console
.
log
(
properties
);
//
console.log(properties);
properties
.
style
[
field
]
=
value
;
}
}
...
...
@@ -220,7 +220,7 @@ async function execute(psdFile, options) {
};
let
dealLater
=
true
;
if
(
x
!==
0
)
{
console
.
log
(
properties
);
//
console.log(properties);
if
(
!
properties
.
style
.
left
){
properties
.
style
.
left
=
x
-
(
isSecondLayer
?
offset
.
x
:
0
);
}
...
...
src/zeroing.js
View file @
553b3b74
...
...
@@ -181,6 +181,7 @@ export async function execute(psdFile, options) {
}
}
properties
.
style
.
position
=
"absolute"
properties
.
style
.
transformOrigin
=
"0px 0px 0px"
;
viewNode
.
rect
=
{
x
:
properties
.
style
.
left
?
properties
.
style
.
left
:
0
,
y
:
properties
.
style
.
top
?
properties
.
style
.
top
:
0
,
...
...
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