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
c20aca36
Commit
c20aca36
authored
Jan 27, 2014
by
Akikonata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
7eae9ddd
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
143 additions
and
162 deletions
+143
-162
kity
kity
+1
-1
node.js
src/core/node.js
+2
-2
layout.default.js
src/module/layout.default.js
+138
-159
layout.js
src/module/layout.js
+2
-0
No files found.
kity
@
8b33f729
Subproject commit
b8fb560558e1100936211e4823063eeae1ad1c83
Subproject commit
8b33f729a570f3501769d16ad4c329c0e7f4e08d
src/core/node.js
View file @
c20aca36
...
...
@@ -22,10 +22,10 @@ var MinderNode = KityMinder.MinderNode = kity.createClass( "MinderNode", {
return
this
.
getData
(
'point'
);
},
setType
:
function
(
type
)
{
this
.
_type
=
type
;
},
getType
:
function
(
type
)
{
return
this
.
_type
;
},
setText
:
function
(
text
)
{
this
.
setData
(
'text'
,
text
);
...
...
src/module/layout.default.js
View file @
c20aca36
This diff is collapsed.
Click to expand it.
src/module/layout.js
View file @
c20aca36
...
...
@@ -96,8 +96,10 @@ KityMinder.registerModule( "LayoutModule", function () {
execute
:
function
(
km
,
node
)
{
var
selectedNode
=
km
.
getSelectedNode
();
if
(
selectedNode
.
isRoot
()
)
{
node
.
setType
(
"main"
);
km
.
appendChildNode
(
selectedNode
,
node
);
}
else
{
node
.
setType
(
"sub"
);
km
.
appendSiblingNode
(
selectedNode
,
node
);
}
km
.
select
(
node
,
true
);
...
...
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