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
20f0547a
Commit
20f0547a
authored
Oct 15, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改展开按钮的位置
parent
badc9a99
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
under.js
src/connect/under.js
+6
-6
expand.js
src/module/expand.js
+2
-2
No files found.
src/connect/under.js
View file @
20f0547a
...
@@ -24,13 +24,13 @@ KityMinder.registerConnectProvider('under', function(node, parent, connection, w
...
@@ -24,13 +24,13 @@ KityMinder.registerConnectProvider('under', function(node, parent, connection, w
var
p1
,
p2
,
p3
,
mx
;
var
p1
,
p2
,
p3
,
mx
;
if
(
side
==
'right'
)
{
if
(
side
==
'right'
)
{
p1
=
new
kity
.
Point
(
pBox
.
right
+
10
,
startY
);
p1
=
new
kity
.
Point
(
pBox
.
right
,
startY
);
p2
=
new
kity
.
Point
(
box
.
left
,
underY
);
p2
=
new
kity
.
Point
(
box
.
left
-
10
,
underY
);
p3
=
new
kity
.
Point
(
box
.
right
+
10
,
underY
);
p3
=
new
kity
.
Point
(
box
.
right
,
underY
);
}
else
{
}
else
{
p1
=
new
kity
.
Point
(
pBox
.
left
-
10
,
startY
);
p1
=
new
kity
.
Point
(
pBox
.
left
,
startY
);
p2
=
new
kity
.
Point
(
box
.
right
,
underY
);
p2
=
new
kity
.
Point
(
box
.
right
+
10
,
underY
);
p3
=
new
kity
.
Point
(
box
.
left
-
10
,
underY
);
p3
=
new
kity
.
Point
(
box
.
left
,
underY
);
}
}
mx
=
(
p1
.
x
+
p2
.
x
)
/
2
;
mx
=
(
p1
.
x
+
p2
.
x
)
/
2
;
...
...
src/module/expand.js
View file @
20f0547a
...
@@ -233,8 +233,8 @@ KityMinder.registerModule('Expand', function() {
...
@@ -233,8 +233,8 @@ KityMinder.registerModule('Expand', function() {
expander
.
setState
(
visible
&&
node
.
children
.
length
?
node
.
getData
(
EXPAND_STATE_DATA
)
:
'hide'
);
expander
.
setState
(
visible
&&
node
.
children
.
length
?
node
.
getData
(
EXPAND_STATE_DATA
)
:
'hide'
);
var
vector
=
node
.
getLayoutVector
Out
().
normalize
(
expander
.
radius
+
node
.
getStyle
(
'stroke-width'
));
var
vector
=
node
.
getLayoutVector
In
().
normalize
(
expander
.
radius
+
node
.
getStyle
(
'stroke-width'
));
var
position
=
node
.
getVertex
Out
().
offset
(
vector
);
var
position
=
node
.
getVertex
In
().
offset
(
vector
.
reverse
()
);
this
.
expander
.
setTranslate
(
position
);
this
.
expander
.
setTranslate
(
position
);
}
}
...
...
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