Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
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
常超
founder_vue
Commits
88f05d6a
Commit
88f05d6a
authored
Dec 21, 2021
by
liyuhang19990520
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自动布局
parent
ea47458d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
48 deletions
+56
-48
src/components/RelationalGraph.vue
+56
-48
No files found.
src/components/RelationalGraph.vue
View file @
88f05d6a
...
...
@@ -143,54 +143,59 @@ export default {
allowSwitchJunctionPoint
:
true
,
defaultLineShape
:
1
,
layouts
:
[
// {
// label: "上口树",
// layoutName: "tree",
// layoutClassName: "seeks-layout-center",
// from: "bottom",
// defaultNodeWidth: "74",
// defaultNodeHeight: "74",
// defaultJunctionPoint: "tb",
// defaultNodeShape: 1,
// defaultLineShape: 1,
// defaultNodeBorderWidth: 0,
// min_per_width: 80,
// min_per_height: 110,
// },
// {
// label: "中心图",
// layoutName: "center",
// layoutClassName: "seeks-layout-center",
// distance_coefficient: "0.8",
// },
// {
// label: "下口树",
// layoutName: "tree",
// layoutClassName: "seeks-layout-center",
// from: "top",
// defaultNodeWidth: "74",
// defaultNodeHeight: "74",
// defaultJunctionPoint: "tb",
// defaultNodeShape: 1,
// defaultLineShape: 1,
// defaultNodeBorderWidth: 0,
// min_per_width: 80,
// min_per_height: 110,
// },
// {
// label: "横向树",
// layoutName: "tree",
// layoutClassName: "seeks-layout-center",
// from: "left",
// defaultJunctionPoint: "lr",
// defaultNodeWidth: "74",
// defaultNodeHeight: "74",
// defaultNodeShape: 1,
// defaultLineShape: 1,
// defaultNodeBorderWidth: 0,
// min_per_width: 400,
// max_per_width: 400,
// min_per_height: 80,
// },
{
label
:
"上口树"
,
layoutName
:
"tree"
,
layoutClassName
:
"seeks-layout-center"
,
from
:
"bottom"
,
defaultNodeWidth
:
"74"
,
defaultNodeHeight
:
"74"
,
defaultJunctionPoint
:
"tb"
,
defaultNodeShape
:
1
,
defaultLineShape
:
1
,
defaultNodeBorderWidth
:
0
,
min_per_width
:
80
,
min_per_height
:
110
,
},
{
label
:
"中心图"
,
layoutName
:
"center"
,
layoutClassName
:
"seeks-layout-center"
,
distance_coefficient
:
"0.8"
,
},
{
label
:
"下口树"
,
layoutName
:
"tree"
,
layoutClassName
:
"seeks-layout-center"
,
from
:
"top"
,
defaultNodeWidth
:
"74"
,
defaultNodeHeight
:
"74"
,
defaultJunctionPoint
:
"tb"
,
defaultNodeShape
:
1
,
defaultLineShape
:
1
,
defaultNodeBorderWidth
:
0
,
min_per_width
:
80
,
min_per_height
:
110
,
},
{
label
:
"横向树"
,
layoutName
:
"tree"
,
layoutClassName
:
"seeks-layout-center"
,
from
:
"left"
,
defaultJunctionPoint
:
"lr"
,
defaultNodeWidth
:
"74"
,
defaultNodeHeight
:
"74"
,
defaultNodeShape
:
1
,
defaultLineShape
:
1
,
defaultNodeBorderWidth
:
0
,
min_per_width
:
400
,
max_per_width
:
400
,
min_per_height
:
80
,
label
:
"自动布局"
,
layoutName
:
"force"
,
layoutClassName
:
"seeks-layout-force"
,
},
],
defaultJunctionPoint
:
"border"
,
...
...
@@ -380,7 +385,10 @@ export default {
this
.
$refs
.
seeksRelationGraph
.
setJsonData
(
__graph_json_data
,
(
seeksRGGraph
)
=>
{
this
.
layoutsProps
(
seeksRGGraph
);
setTimeout
(()
=>
{
seeksRGGraph
.
graphSetting
.
layouter
.
stop
();
},
1000
);
// this.layoutsProps(seeksRGGraph);
if
(
this
.
type
==
"shce"
||
this
.
type
==
"cqthfx"
)
{
setTimeout
(()
=>
{
let
arr
=
seeksRGGraph
.
getNodes
();
...
...
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