Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-engine
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
劳工
zeroing-engine
Commits
669ce07b
Commit
669ce07b
authored
May 28, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
37999307
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
11 deletions
+10
-11
workspace.xml
.idea/workspace.xml
+3
-4
engine.js
debug/engine.js
+3
-3
engine.js.map
debug/engine.js.map
+1
-1
AlignManager.ts
src/zeroing/decorators/AlignManager.ts
+3
-3
No files found.
.idea/workspace.xml
View file @
669ce07b
...
@@ -2,9 +2,7 @@
...
@@ -2,9 +2,7 @@
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"af35c04f-08f6-48ed-85db-2f94c60e87fd"
name=
"Default Changelist"
comment=
""
>
<list
default=
"true"
id=
"af35c04f-08f6-48ed-85db-2f94c60e87fd"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/zeroing/decorators/AlignManager.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/zeroing/decorators/AlignManager.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/zeroing/decorators/AlignManager.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/zeroing/decorators/AlignManager.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/zeroing/decorators/auto-adjust.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/zeroing/decorators/auto-adjust.ts"
afterDir=
"false"
/>
</list>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
@@ -286,10 +284,11 @@
...
@@ -286,10 +284,11 @@
<screen
x=
"1680"
y=
"-229"
width=
"1920"
height=
"1177"
/>
<screen
x=
"1680"
y=
"-229"
width=
"1920"
height=
"1177"
/>
</state>
</state>
<state
x=
"2327"
y=
"157"
key=
"git4idea.merge.GitPullDialog/35.23.1645.1027/1680.-229.1920.1177@1680.-229.1920.1177"
timestamp=
"1587714144888"
/>
<state
x=
"2327"
y=
"157"
key=
"git4idea.merge.GitPullDialog/35.23.1645.1027/1680.-229.1920.1177@1680.-229.1920.1177"
timestamp=
"1587714144888"
/>
<state
x=
"2305"
y=
"
36"
width=
"670"
height=
"676"
key=
"search.everywhere.popup"
timestamp=
"1590057778157
"
>
<state
x=
"2305"
y=
"
66"
width=
"670"
height=
"676"
key=
"search.everywhere.popup"
timestamp=
"1590635743033
"
>
<screen
x=
"1680"
y=
"-
22
9"
width=
"1920"
height=
"1177"
/>
<screen
x=
"1680"
y=
"-
19
9"
width=
"1920"
height=
"1177"
/>
</state>
</state>
<state
x=
"2305"
y=
"18"
width=
"670"
height=
"690"
key=
"search.everywhere.popup/0.0.1680.1050/1680.-252.1920.1200@1680.-252.1920.1200"
timestamp=
"1587713287518"
/>
<state
x=
"2305"
y=
"18"
width=
"670"
height=
"690"
key=
"search.everywhere.popup/0.0.1680.1050/1680.-252.1920.1200@1680.-252.1920.1200"
timestamp=
"1587713287518"
/>
<state
x=
"2305"
y=
"66"
width=
"670"
height=
"676"
key=
"search.everywhere.popup/35.23.1645.1027/1680.-199.1920.1177@1680.-199.1920.1177"
timestamp=
"1590635743033"
/>
<state
x=
"2305"
y=
"36"
width=
"670"
height=
"676"
key=
"search.everywhere.popup/35.23.1645.1027/1680.-229.1920.1177@1680.-229.1920.1177"
timestamp=
"1590057778157"
/>
<state
x=
"2305"
y=
"36"
width=
"670"
height=
"676"
key=
"search.everywhere.popup/35.23.1645.1027/1680.-229.1920.1177@1680.-229.1920.1177"
timestamp=
"1590057778157"
/>
<state
x=
"570"
y=
"254"
width=
"670"
height=
"590"
key=
"search.everywhere.popup/35.23.1645.1027/1680.-229.1920.1177@35.23.1645.1027"
timestamp=
"1587004990635"
/>
<state
x=
"570"
y=
"254"
width=
"670"
height=
"590"
key=
"search.everywhere.popup/35.23.1645.1027/1680.-229.1920.1177@35.23.1645.1027"
timestamp=
"1587004990635"
/>
<state
x=
"570"
y=
"254"
width=
"670"
height=
"590"
key=
"search.everywhere.popup/35.23.1645.1027@35.23.1645.1027"
timestamp=
"1589767535433"
/>
<state
x=
"570"
y=
"254"
width=
"670"
height=
"590"
key=
"search.everywhere.popup/35.23.1645.1027@35.23.1645.1027"
timestamp=
"1589767535433"
/>
...
...
debug/engine.js
View file @
669ce07b
...
@@ -1952,7 +1952,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
...
@@ -1952,7 +1952,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return
;
return
;
var
percentWidth
=
that
.
percentWidth
,
percentHeight
=
that
.
percentHeight
,
top
=
that
.
top
,
bottom
=
that
.
bottom
,
left
=
that
.
left
,
right
=
that
.
right
,
percentTop
=
that
.
percentTop
,
percentBottom
=
that
.
percentBottom
,
percentLeft
=
that
.
percentLeft
,
percentRight
=
that
.
percentRight
,
horizonCenter
=
that
.
horizonCenter
,
verticalCenter
=
that
.
verticalCenter
;
var
percentWidth
=
that
.
percentWidth
,
percentHeight
=
that
.
percentHeight
,
top
=
that
.
top
,
bottom
=
that
.
bottom
,
left
=
that
.
left
,
right
=
that
.
right
,
percentTop
=
that
.
percentTop
,
percentBottom
=
that
.
percentBottom
,
percentLeft
=
that
.
percentLeft
,
percentRight
=
that
.
percentRight
,
horizonCenter
=
that
.
horizonCenter
,
verticalCenter
=
that
.
verticalCenter
;
var
_a
=
that
.
_width
,
tW_Z
=
_a
===
void
0
?
0
:
_a
,
_b
=
that
.
_height
,
tH_Z
=
_b
===
void
0
?
0
:
_b
;
var
_a
=
that
.
_width
,
tW_Z
=
_a
===
void
0
?
0
:
_a
,
_b
=
that
.
_height
,
tH_Z
=
_b
===
void
0
?
0
:
_b
;
if
(
that
.
_instanceType
==
"TextFieldNode"
)
{
if
(
that
.
_instanceType
==
"TextFieldNode"
||
that
.
_instanceType
==
"Label"
)
{
tW_Z
=
that
.
width
;
tW_Z
=
that
.
width
;
tH_Z
=
that
.
height
;
tH_Z
=
that
.
height
;
}
}
...
@@ -2004,7 +2004,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
...
@@ -2004,7 +2004,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
if
(
toBoolean
(
that
.
children
[
i
].
right
))
if
(
toBoolean
(
that
.
children
[
i
].
right
))
continue
;
continue
;
var
_x
=
that
.
children
[
i
].
x
||
0
;
var
_x
=
that
.
children
[
i
].
x
||
0
;
var
_w
=
(
that
.
_instanceType
==
"TextFieldNode"
)
?
that
.
width
:
(
that
.
children
[
i
].
__width
||
0
);
var
_w
=
(
that
.
_instanceType
==
"TextFieldNode"
||
that
.
_instanceType
==
"Label"
)
?
that
.
width
:
(
that
.
children
[
i
].
__width
||
0
);
(
_x
+
_w
>
maxR
)
?
maxR
=
_x
+
_w
:
0
;
(
_x
+
_w
>
maxR
)
?
maxR
=
_x
+
_w
:
0
;
}
}
that
.
width
=
maxR
;
that
.
width
=
maxR
;
...
@@ -2017,7 +2017,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
...
@@ -2017,7 +2017,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
if
(
toBoolean
(
that
.
children
[
i
].
bottom
))
if
(
toBoolean
(
that
.
children
[
i
].
bottom
))
continue
;
continue
;
var
_y
=
that
.
children
[
i
].
y
||
0
;
var
_y
=
that
.
children
[
i
].
y
||
0
;
var
_h
=
(
that
.
_instanceType
==
"TextFieldNode"
)
?
that
.
height
:
(
that
.
children
[
i
].
__height
||
0
);
var
_h
=
(
that
.
_instanceType
==
"TextFieldNode"
||
that
.
_instanceType
==
"Label"
)
?
that
.
height
:
(
that
.
children
[
i
].
__height
||
0
);
(
_y
+
_h
>
maxB
)
?
maxB
=
_y
+
_h
:
0
;
(
_y
+
_h
>
maxB
)
?
maxB
=
_y
+
_h
:
0
;
}
}
that
.
height
=
maxB
;
that
.
height
=
maxB
;
...
...
debug/engine.js.map
View file @
669ce07b
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/zeroing/decorators/AlignManager.ts
View file @
669ce07b
...
@@ -57,7 +57,7 @@ class AlignManager {
...
@@ -57,7 +57,7 @@ class AlignManager {
}
=
that
;
}
=
that
;
let
{
_width
:
tW_Z
=
0
,
_height
:
tH_Z
=
0
}
=
that
;
let
{
_width
:
tW_Z
=
0
,
_height
:
tH_Z
=
0
}
=
that
;
if
(
that
.
_instanceType
==
"TextFieldNode"
)
{
if
(
that
.
_instanceType
==
"TextFieldNode"
||
that
.
_instanceType
==
"Label"
)
{
tW_Z
=
that
.
width
;
tW_Z
=
that
.
width
;
tH_Z
=
that
.
height
;
tH_Z
=
that
.
height
;
}
}
...
@@ -179,7 +179,7 @@ class AlignManager {
...
@@ -179,7 +179,7 @@ class AlignManager {
for
(
let
i
=
0
;
i
<
len
;
i
++
)
{
for
(
let
i
=
0
;
i
<
len
;
i
++
)
{
if
(
toBoolean
(
that
.
children
[
i
].
right
))
continue
;
/// TODO 开启这个,忽略带 right 值的子节点
if
(
toBoolean
(
that
.
children
[
i
].
right
))
continue
;
/// TODO 开启这个,忽略带 right 值的子节点
let
_x
=
that
.
children
[
i
].
x
||
0
;
let
_x
=
that
.
children
[
i
].
x
||
0
;
let
_w
=
(
that
.
_instanceType
==
"TextFieldNode"
)
?
that
.
width
:
(
that
.
children
[
i
].
__width
||
0
);
let
_w
=
(
that
.
_instanceType
==
"TextFieldNode"
||
that
.
_instanceType
==
"Label"
)
?
that
.
width
:
(
that
.
children
[
i
].
__width
||
0
);
(
_x
+
_w
>
maxR
)
?
maxR
=
_x
+
_w
:
0
;
(
_x
+
_w
>
maxR
)
?
maxR
=
_x
+
_w
:
0
;
}
}
that
.
width
=
maxR
;
that
.
width
=
maxR
;
...
@@ -210,7 +210,7 @@ class AlignManager {
...
@@ -210,7 +210,7 @@ class AlignManager {
for
(
let
i
=
0
;
i
<
len
;
i
++
)
{
for
(
let
i
=
0
;
i
<
len
;
i
++
)
{
if
(
toBoolean
(
that
.
children
[
i
].
bottom
))
continue
;
/// TODO 开启这个,忽略带 bottom 值的子节点
if
(
toBoolean
(
that
.
children
[
i
].
bottom
))
continue
;
/// TODO 开启这个,忽略带 bottom 值的子节点
let
_y
=
that
.
children
[
i
].
y
||
0
;
let
_y
=
that
.
children
[
i
].
y
||
0
;
let
_h
=
(
that
.
_instanceType
==
"TextFieldNode"
)
?
that
.
height
:
(
that
.
children
[
i
].
__height
||
0
);
let
_h
=
(
that
.
_instanceType
==
"TextFieldNode"
||
that
.
_instanceType
==
"Label"
)
?
that
.
height
:
(
that
.
children
[
i
].
__height
||
0
);
(
_y
+
_h
>
maxB
)
?
maxB
=
_y
+
_h
:
0
;
(
_y
+
_h
>
maxB
)
?
maxB
=
_y
+
_h
:
0
;
}
}
that
.
height
=
maxB
;
that
.
height
=
maxB
;
...
...
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