Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
Overview
Overview
Details
Activity
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
zhaochengxiang
szse
Commits
193c344b
Commit
193c344b
authored
Jun 02, 2021
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add background animation
parent
9ae051cd
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
131 additions
and
1 deletion
+131
-1
Relation.css
src/view/Manage/Map/Component/Relation.css
+123
-0
Relation.jsx
src/view/Manage/Map/Component/Relation.jsx
+8
-1
border-left.0932.png
src/view/Manage/Map/Component/assets/border-left.0932.png
+0
-0
border-right.61f0.png
src/view/Manage/Map/Component/assets/border-right.61f0.png
+0
-0
bottom-bg.8d9e.png
src/view/Manage/Map/Component/assets/bottom-bg.8d9e.png
+0
-0
circle-1.6676.png
src/view/Manage/Map/Component/assets/circle-1.6676.png
+0
-0
circle-border.0bbb.png
src/view/Manage/Map/Component/assets/circle-border.0bbb.png
+0
-0
circle.93e1.png
src/view/Manage/Map/Component/assets/circle.93e1.png
+0
-0
node-bg-select.171e.png
src/view/Manage/Map/Component/assets/node-bg-select.171e.png
+0
-0
node-bg.8062.png
src/view/Manage/Map/Component/assets/node-bg.8062.png
+0
-0
No files found.
src/view/Manage/Map/Component/Relation.css
0 → 100644
View file @
193c344b
#left-control-container
{
position
:
absolute
;
top
:
50%
;
left
:
20px
;
width
:
400px
;
height
:
620px
;
margin-top
:
-310px
;
background-image
:
url('./assets/border-left.0932.png')
;
background-size
:
cover
;
background-position
:
0
;
-webkit-animation
:
leftflyin
1s
;
animation
:
leftflyin
1s
;
-webkit-animation-fill-mode
:
both
;
animation-fill-mode
:
both
;
pointer-events
:
none
;
}
@-webkit-keyframes
leftflyin
{
0
%
{
transform
:
translate3d
(
-999px
,
0
,
0
)
scale3d
(
10
,
10
,
1
)
}
to
{
transform
:
translateZ
(
0
)
scaleX
(
1
)
}
}
@keyframes
leftflyin
{
0
%
{
transform
:
translate3d
(
-999px
,
0
,
0
)
scale3d
(
10
,
10
,
1
)
}
to
{
transform
:
translateZ
(
0
)
scaleX
(
1
)
}
}
#right-control-container
{
position
:
absolute
;
top
:
50%
;
right
:
20px
;
width
:
400px
;
height
:
620px
;
margin-top
:
-310px
;
background-image
:
url(https://static.allhistory.com/online/common/img/border-right.61f0.png)
;
background-size
:
cover
;
background-position
:
100%
;
-webkit-animation
:
rightflyin
1s
;
animation
:
rightflyin
1s
;
-webkit-animation-fill-mode
:
both
;
animation-fill-mode
:
both
;
pointer-events
:
none
}
@-webkit-keyframes
rightflyin
{
0
%
{
transform
:
translate3d
(
999px
,
0
,
0
)
scale3d
(
10
,
10
,
1
)
}
to
{
transform
:
translateZ
(
0
)
scaleX
(
1
)
}
}
@keyframes
rightflyin
{
0
%
{
transform
:
translate3d
(
999px
,
0
,
0
)
scale3d
(
10
,
10
,
1
)
}
to
{
transform
:
translateZ
(
0
)
scaleX
(
1
)
}
}
#top-bg-container
{
top
:
-120px
;
height
:
240px
;
background-image
:
url(https://static.allhistory.com/online/common/img/top-bg.7c77.png)
;
background-size
:
100%
240px
}
#bottom-bg-container
,
#top-bg-container
{
position
:
absolute
;
width
:
100%
;
-webkit-animation
:
bottomfadein
1s
1s
;
animation
:
bottomfadein
1s
1s
;
-webkit-animation-fill-mode
:
both
;
animation-fill-mode
:
both
;
pointer-events
:
none
}
#bottom-bg-container
{
bottom
:
0
;
height
:
289px
;
background-image
:
url(https://static.allhistory.com/online/common/img/bottom-bg.8d9e.png)
;
background-size
:
cover
;
background-position
:
top
}
@-webkit-keyframes
bottomfadein
{
0
%
{
opacity
:
0
}
to
{
opacity
:
1
}
}
@keyframes
bottomfadein
{
0
%
{
opacity
:
0
}
to
{
opacity
:
1
}
}
\ No newline at end of file
src/view/Manage/Map/Component/Relation.jsx
View file @
193c344b
...
@@ -4,6 +4,8 @@ import G6 from '@antv/g6';
...
@@ -4,6 +4,8 @@ import G6 from '@antv/g6';
import
circle
from
'./circle.93e1.png'
import
circle
from
'./circle.93e1.png'
import
node
from
'./node-bg-select.171e.png'
import
node
from
'./node-bg-select.171e.png'
import
'./Relation.css'
const
colors
=
[
const
colors
=
[
'#BDD2FD'
,
'#BDD2FD'
,
'#C2C8D5'
,
'#C2C8D5'
,
...
@@ -36,7 +38,11 @@ class Relation extends React.Component {
...
@@ -36,7 +38,11 @@ class Relation extends React.Component {
render
()
{
render
()
{
return
(
return
(
<
div
ref=
{
ref
=>
this
.
elem
=
ref
}
style=
{
{
width
:
'100%'
,
height
:
'100%'
,
backgroundImage
:
'linear-gradient(to bottom left,#2e3b4e,#0d0d13 52%,#0d0d13)'
}
}
></
div
>
<
div
ref=
{
ref
=>
this
.
elem
=
ref
}
style=
{
{
width
:
'100%'
,
height
:
'100%'
,
backgroundImage
:
'linear-gradient(to bottom left,#2e3b4e,#0d0d13 52%,#0d0d13)'
}
}
>
<
div
id=
"left-control-container"
></
div
>
<
div
id=
"right-control-container"
></
div
>
<
div
id=
"bottom-bg-container"
></
div
>
</
div
>
);
);
}
}
}
}
...
@@ -47,6 +53,7 @@ export default Relation;
...
@@ -47,6 +53,7 @@ export default Relation;
let
root
=
null
,
depthCount
=
{}
let
root
=
null
,
depthCount
=
{}
function
countDepth
(
node
,
_depth
=
0
)
{
function
countDepth
(
node
,
_depth
=
0
)
{
// node.text = "测试123567890"
const
depth
=
_depth
+
1
const
depth
=
_depth
+
1
if
(
node
.
children
)
{
if
(
node
.
children
)
{
let
count
=
undefined
let
count
=
undefined
...
...
src/view/Manage/Map/Component/assets/border-left.0932.png
0 → 100644
View file @
193c344b
373 KB
src/view/Manage/Map/Component/assets/border-right.61f0.png
0 → 100644
View file @
193c344b
356 KB
src/view/Manage/Map/Component/assets/bottom-bg.8d9e.png
0 → 100644
View file @
193c344b
860 KB
src/view/Manage/Map/Component/assets/circle-1.6676.png
0 → 100644
View file @
193c344b
This diff is collapsed.
Click to expand it.
src/view/Manage/Map/Component/assets/circle-border.0bbb.png
0 → 100644
View file @
193c344b
569 KB
src/view/Manage/Map/Component/assets/circle.93e1.png
0 → 100644
View file @
193c344b
8.22 KB
src/view/Manage/Map/Component/assets/node-bg-select.171e.png
0 → 100644
View file @
193c344b
49.3 KB
src/view/Manage/Map/Component/assets/node-bg.8062.png
0 → 100644
View file @
193c344b
27.3 KB
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