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
d471a6a8
Commit
d471a6a8
authored
Jun 16, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码整理
parent
9b449152
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
81 additions
and
74 deletions
+81
-74
connect.js
src/core/connect.js
+7
-2
outline.js
src/module/outline.js
+74
-72
No files found.
src/core/connect.js
View file @
d471a6a8
...
...
@@ -32,13 +32,18 @@ kity.extendClass(Minder, {
node
.
_connection
=
connection
;
this
.
getRenderContainer
().
prependShape
(
connection
);
if
(
!
this
.
_connectContainer
)
{
this
.
_connectContainer
=
new
kity
.
Group
().
setId
(
KityMinder
.
uuid
(
'minder_connect_group'
));
this
.
getRenderContainer
().
prependShape
(
this
.
_connectContainer
);
}
this
.
_connectContainer
.
addShape
(
connection
);
},
removeConnect
:
function
(
node
)
{
var
me
=
this
;
node
.
traverse
(
function
(
node
)
{
me
.
getRenderContainer
()
.
removeShape
(
node
.
_connection
);
me
.
_connectContainer
.
removeShape
(
node
.
_connection
);
});
},
...
...
src/module/outline.js
View file @
d471a6a8
...
...
@@ -2,10 +2,7 @@
var
wireframe
=
/wire/
.
test
(
window
.
location
.
href
);
KityMinder
.
registerModule
(
'OutlineModule'
,
function
()
{
return
{
renderers
:
{
outline
:
kity
.
createClass
(
'OutlineRenderer'
,
{
var
OutlineRenderer
=
kity
.
createClass
(
'OutlineRenderer'
,
{
base
:
Renderer
,
create
:
function
(
node
)
{
...
...
@@ -76,7 +73,12 @@ KityMinder.registerModule('OutlineModule', function() {
}
return
outlineBox
;
}
})
});
KityMinder
.
registerModule
(
'OutlineModule'
,
function
()
{
return
{
renderers
:
{
outline
:
OutlineRenderer
}
};
});
\ No newline at end of file
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