Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kityminder-core
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吴志俊
kityminder-core
Commits
02af05d8
Commit
02af05d8
authored
Feb 14, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arrange
parent
a9274b38
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
kity
kity
+1
-1
layout.default.js
src/module/layout.default.js
+3
-2
No files found.
kity
@
113f82dc
Subproject commit
9491171cf3bf6195d841934779b6e5e565319341
Subproject commit
113f82dc2dc4ad1e740f9264839aea0f117957e2
src/module/layout.default.js
View file @
02af05d8
...
@@ -77,7 +77,7 @@ KityMinder.registerModule( "LayoutDefault", function () {
...
@@ -77,7 +77,7 @@ KityMinder.registerModule( "LayoutDefault", function () {
//样式的配置(包括颜色、字号等)
//样式的配置(包括颜色、字号等)
var
nodeStyles
=
{
var
nodeStyles
=
{
"root"
:
{
"root"
:
{
color
:
'#
00
0'
,
color
:
'#
43
0'
,
fill
:
'#e9df98'
,
fill
:
'#e9df98'
,
fontSize
:
24
,
fontSize
:
24
,
padding
:
[
15.5
,
25.5
,
15.5
,
25.5
],
padding
:
[
15.5
,
25.5
,
15.5
,
25.5
],
...
@@ -310,7 +310,8 @@ KityMinder.registerModule( "LayoutDefault", function () {
...
@@ -310,7 +310,8 @@ KityMinder.registerModule( "LayoutDefault", function () {
var
bezier
=
Layout
.
connect
.
bezier
=
new
kity
.
Bezier
();
var
bezier
=
Layout
.
connect
.
bezier
=
new
kity
.
Bezier
();
var
circle
=
Layout
.
connect
.
circle
=
new
kity
.
Circle
();
var
circle
=
Layout
.
connect
.
circle
=
new
kity
.
Circle
();
connect
.
addShapes
(
[
bezier
,
circle
]
);
connect
.
addShapes
(
[
bezier
,
circle
]
);
minder
.
getRenderContainer
().
addShape
(
connect
).
bringTop
(
minder
.
getRoot
().
getRenderContainer
()
);
minder
.
getRenderContainer
().
addShape
(
connect
);
minder
.
getRoot
().
getRenderContainer
().
bringTop
();
}
}
var
parent
=
minder
.
getRoot
();
var
parent
=
minder
.
getRoot
();
var
rootX
=
parent
.
getLayout
().
x
;
var
rootX
=
parent
.
getLayout
().
x
;
...
...
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