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