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
9126cc2e
Commit
9126cc2e
authored
Jul 01, 2020
by
任建锋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--
parent
81d83998
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
37 additions
and
25 deletions
+37
-25
index.es.js
dist/index.es.js
+9
-6
index.es.js.map
dist/index.es.js.map
+1
-1
index.js
dist/index.js
+9
-6
index.js.map
dist/index.js.map
+1
-1
index.umd.js
dist/index.umd.js
+9
-6
index.umd.js.map
dist/index.umd.js.map
+1
-1
zeroing.js
src/zeroing.js
+7
-4
No files found.
dist/index.es.js
View file @
9126cc2e
...
...
@@ -60,9 +60,9 @@ async function walkNode(node, callback, includeSelf = false) {
}
/**
* Created by r
ockyl on 2019-09-26
.
* Created by r
enjianfeng on 2020-06-11
.
*
* 导出
zeroing
的视图
* 导出
spark
的视图
*/
const
relativePosPrefixMap
=
{
...
...
@@ -193,14 +193,17 @@ async function execute(psdFile, options) {
};
let
dealLater
=
true
;
if
(
x
!==
0
)
{
if
(
!
properties
.
style
.
left
){
properties
.
style
.
left
=
x
-
(
isSecondLayer
?
offset
.
x
:
0
);
}
}
if
(
y
!==
0
)
{
if
(
!
properties
.
style
.
top
){
properties
.
style
.
top
=
y
-
(
isSecondLayer
?
offset
.
y
:
0
);
}
}
properties
.
style
.
position
=
"absolute"
;
viewNode
.
rect
=
{
x
:
properties
.
style
.
left
?
properties
.
style
.
left
:
0
,
y
:
properties
.
style
.
top
?
properties
.
style
.
top
:
0
,
...
...
dist/index.es.js.map
View file @
9126cc2e
This diff is collapsed.
Click to expand it.
dist/index.js
View file @
9126cc2e
...
...
@@ -66,9 +66,9 @@ async function walkNode(node, callback, includeSelf = false) {
}
/**
* Created by r
ockyl on 2019-09-26
.
* Created by r
enjianfeng on 2020-06-11
.
*
* 导出
zeroing
的视图
* 导出
spark
的视图
*/
const
relativePosPrefixMap
=
{
...
...
@@ -199,14 +199,17 @@ async function execute(psdFile, options) {
};
let
dealLater
=
true
;
if
(
x
!==
0
)
{
if
(
!
properties
.
style
.
left
){
properties
.
style
.
left
=
x
-
(
isSecondLayer
?
offset
.
x
:
0
);
}
}
if
(
y
!==
0
)
{
if
(
!
properties
.
style
.
top
){
properties
.
style
.
top
=
y
-
(
isSecondLayer
?
offset
.
y
:
0
);
}
}
properties
.
style
.
position
=
"absolute"
;
viewNode
.
rect
=
{
x
:
properties
.
style
.
left
?
properties
.
style
.
left
:
0
,
y
:
properties
.
style
.
top
?
properties
.
style
.
top
:
0
,
...
...
dist/index.js.map
View file @
9126cc2e
This diff is collapsed.
Click to expand it.
dist/index.umd.js
View file @
9126cc2e
...
...
@@ -66,9 +66,9 @@
}
/**
* Created by r
ockyl on 2019-09-26
.
* Created by r
enjianfeng on 2020-06-11
.
*
* 导出
zeroing
的视图
* 导出
spark
的视图
*/
const
relativePosPrefixMap
=
{
...
...
@@ -199,14 +199,17 @@
};
let
dealLater
=
true
;
if
(
x
!==
0
)
{
if
(
!
properties
.
style
.
left
){
properties
.
style
.
left
=
x
-
(
isSecondLayer
?
offset
.
x
:
0
);
}
}
if
(
y
!==
0
)
{
if
(
!
properties
.
style
.
top
){
properties
.
style
.
top
=
y
-
(
isSecondLayer
?
offset
.
y
:
0
);
}
}
properties
.
style
.
position
=
"absolute"
;
viewNode
.
rect
=
{
x
:
properties
.
style
.
left
?
properties
.
style
.
left
:
0
,
y
:
properties
.
style
.
top
?
properties
.
style
.
top
:
0
,
...
...
dist/index.umd.js.map
View file @
9126cc2e
This diff is collapsed.
Click to expand it.
src/zeroing.js
View file @
9126cc2e
...
...
@@ -140,14 +140,17 @@ export async function execute(psdFile, options) {
};
let
dealLater
=
true
;
if
(
x
!==
0
)
{
if
(
!
properties
.
style
.
left
){
properties
.
style
.
left
=
x
-
(
isSecondLayer
?
offset
.
x
:
0
);
}
}
if
(
y
!==
0
)
{
if
(
!
properties
.
style
.
top
){
properties
.
style
.
top
=
y
-
(
isSecondLayer
?
offset
.
y
:
0
);
}
}
properties
.
style
.
position
=
"absolute"
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