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
d66345b0
Commit
d66345b0
authored
Feb 13, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ui optimize
parent
b5cbafb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
layout.default.js
src/module/layout.default.js
+12
-10
No files found.
src/module/layout.default.js
View file @
d66345b0
...
...
@@ -77,23 +77,23 @@ KityMinder.registerModule( "LayoutDefault", function () {
//样式的配置(包括颜色、字号等)
var
nodeStyles
=
{
"root"
:
{
color
:
kity
.
Color
.
createHSL
(
200
,
50
,
30
)
,
fill
:
kity
.
Color
.
createHSL
(
200
,
30
,
80
)
,
fontSize
:
2
0
,
padding
:
[
1
0.5
,
10.5
,
10.5
,
10
.5
],
color
:
'#000'
,
fill
:
'#e9df98'
,
fontSize
:
2
4
,
padding
:
[
1
5.5
,
25.5
,
15.5
,
25
.5
],
margin
:
[
0
,
0
,
0
,
0
],
radius
:
2
0
,
highlight
:
"lightgreen"
radius
:
3
0
,
highlight
:
'rgb(254, 219, 0)'
},
"main"
:
{
stroke
:
new
kity
.
Pen
(
"white"
,
2
).
setLineCap
(
"round"
).
setLineJoin
(
"round"
),
fill
:
"white"
,
fill
:
'#A4c5c0'
,
color
:
"#333"
,
padding
:
[
10.5
,
20
,
10
.5
,
20
],
padding
:
[
6.5
,
20
,
6
.5
,
20
],
fontSize
:
16
,
margin
:
[
0
,
10
,
30
,
50
],
radius
:
10
,
highlight
:
"yellow"
highlight
:
'rgb(254, 219, 0)'
},
"sub"
:
{
stroke
:
new
kity
.
Pen
(
"white"
,
2
).
setLineCap
(
"round"
).
setLineJoin
(
"round"
),
...
...
@@ -101,7 +101,7 @@ KityMinder.registerModule( "LayoutDefault", function () {
fontSize
:
12
,
margin
:
[
0
,
10
,
20
,
6
],
padding
:
[
5
,
10
,
5.5
,
10
],
highlight
:
kity
.
Color
.
createHSL
(
200
,
50
,
60
)
highlight
:
'rgb(254, 219, 0)'
}
};
//更新背景
...
...
@@ -393,8 +393,10 @@ KityMinder.registerModule( "LayoutDefault", function () {
case
"sub"
:
if
(
highlight
)
{
Layout
.
highlightshape
.
fill
(
nodeStyle
.
highlight
).
setOpacity
(
1
);
node
.
getTextShape
().
fill
(
'black'
);
}
else
{
Layout
.
highlightshape
.
setOpacity
(
0
);
node
.
getTextShape
().
fill
(
'white'
);
}
break
;
default
:
...
...
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