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
58054698
Commit
58054698
authored
May 04, 2014
by
techird
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
https://github.com/fex-team/kityminder
into dev
parents
32bc331d
3d7f6dd6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
icon.js
src/module/icon.js
+1
-1
layout.default.js
src/module/layout.default.js
+4
-2
No files found.
src/module/icon.js
View file @
58054698
...
@@ -44,7 +44,7 @@ KityMinder.registerModule( "IconModule", function () {
...
@@ -44,7 +44,7 @@ KityMinder.registerModule( "IconModule", function () {
}
}
if
(
val
<
5
)
d
.
close
();
if
(
val
<
5
)
d
.
close
();
_percent
.
fill
(
"#29A6BD"
);
_percent
.
fill
(
"#29A6BD"
);
_rc
.
setTranslate
(
_contRc
.
getWidth
()
+
5
,
0
);
_rc
.
setTranslate
(
_contRc
.
getWidth
()
/
2
,
0
);
};
};
var
setPriorityCommand
=
kity
.
createClass
(
"SetPriorityCommand"
,
(
function
()
{
var
setPriorityCommand
=
kity
.
createClass
(
"SetPriorityCommand"
,
(
function
()
{
return
{
return
{
...
...
src/module/layout.default.js
View file @
58054698
...
@@ -392,7 +392,7 @@ KityMinder.registerModule( "LayoutDefault", function () {
...
@@ -392,7 +392,7 @@ KityMinder.registerModule( "LayoutDefault", function () {
.
clear
()
.
clear
()
.
moveTo
(
sX
,
sY
)
.
moveTo
(
sX
,
sY
)
.
lineTo
(
sX
,
nodeY
>
sY
?
(
nodeY
-
nodeStyle
.
margin
[
3
]
)
:
(
nodeY
+
nodeStyle
.
margin
[
3
]
)
);
.
lineTo
(
sX
,
nodeY
>
sY
?
(
nodeY
-
nodeStyle
.
margin
[
3
]
)
:
(
nodeY
+
nodeStyle
.
margin
[
3
]
)
);
if
(
nodeY
>
sY
)
connect
.
getDrawer
().
carcTo
(
nodeStyle
.
margin
[
3
],
0
,
0
,
nodeX
,
nodeY
,
0
,
1
);
if
(
nodeY
>
sY
)
connect
.
getDrawer
().
carcTo
(
nodeStyle
.
margin
[
3
],
0
,
1
,
nodeX
,
nodeY
,
0
,
1
);
else
connect
.
getDrawer
().
carcTo
(
nodeStyle
.
margin
[
3
],
0
,
0
,
nodeX
,
nodeY
);
else
connect
.
getDrawer
().
carcTo
(
nodeStyle
.
margin
[
3
],
0
,
0
,
nodeX
,
nodeY
);
connect
.
stroke
(
nodeStyle
.
stroke
);
connect
.
stroke
(
nodeStyle
.
stroke
);
}
else
{
}
else
{
...
@@ -523,6 +523,8 @@ KityMinder.registerModule( "LayoutDefault", function () {
...
@@ -523,6 +523,8 @@ KityMinder.registerModule( "LayoutDefault", function () {
updateLayoutHorizon
(
_root
);
updateLayoutHorizon
(
_root
);
updateLayoutVertical
(
_root
);
updateLayoutVertical
(
_root
);
translateNode
(
_root
);
translateNode
(
_root
);
if
(
historyPoint
)
_root
.
setPoint
(
historyPoint
.
x
,
historyPoint
.
y
);
var
mains
=
_root
.
getChildren
();
var
mains
=
_root
.
getChildren
();
for
(
var
i
=
0
;
i
<
mains
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
mains
.
length
;
i
++
)
{
this
.
appendChildNode
(
_root
,
mains
[
i
]
);
this
.
appendChildNode
(
_root
,
mains
[
i
]
);
...
@@ -555,7 +557,7 @@ KityMinder.registerModule( "LayoutDefault", function () {
...
@@ -555,7 +557,7 @@ KityMinder.registerModule( "LayoutDefault", function () {
Layout
.
align
=
siblingLayout
.
align
;
Layout
.
align
=
siblingLayout
.
align
;
if
(
parent
.
getType
()
===
"root"
)
{
if
(
parent
.
getType
()
===
"root"
)
{
minder
.
handelNodeInsert
(
node
);
minder
.
handelNodeInsert
(
node
);
var
len
=
parent
.
getChildren
()
.
length
;
var
len
=
children
.
length
;
if
(
len
<
7
)
{
if
(
len
<
7
)
{
if
(
len
%
2
)
{
if
(
len
%
2
)
{
Layout
.
appendside
=
"right"
;
Layout
.
appendside
=
"right"
;
...
...
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