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
c08d830a
Commit
c08d830a
authored
Jun 18, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix connect issue
parent
5e20101c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
connect.js
src/core/connect.js
+4
-4
No files found.
src/core/connect.js
View file @
c08d830a
...
@@ -3,11 +3,11 @@
...
@@ -3,11 +3,11 @@
utils
.
extend
(
KityMinder
,
{
utils
.
extend
(
KityMinder
,
{
_connectProviders
:
{},
_connectProviders
:
{},
_defaultConnectProvider
:
function
(
node
,
parent
)
{
_defaultConnectProvider
:
function
(
node
,
parent
,
connection
)
{
return
[
connection
.
setPathData
(
[
'M'
,
parent
.
getLayoutPoint
(),
'M'
,
parent
.
getLayoutPoint
(),
'L'
,
node
.
getLayoutPoint
()
'L'
,
node
.
getLayoutPoint
()
];
]
)
;
},
},
registerConnectProvider
:
function
(
layout
,
provider
)
{
registerConnectProvider
:
function
(
layout
,
provider
)
{
...
@@ -60,7 +60,7 @@ kity.extendClass(Minder, {
...
@@ -60,7 +60,7 @@ kity.extendClass(Minder, {
}
}
connection
.
setVisible
(
true
);
connection
.
setVisible
(
true
);
var
provider
=
KityMinder
.
getConnectProvider
(
node
.
getLayout
());
var
provider
=
KityMinder
.
getConnectProvider
(
parent
.
getLayout
());
provider
(
node
,
parent
,
connection
);
provider
(
node
,
parent
,
connection
);
}
}
...
...
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