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
6e79243c
Commit
6e79243c
authored
Dec 20, 2013
by
techird
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
https://github.com/kitygraph/kityminder
into dev
Conflicts: minder_module/module.render.js
parents
ad872831
599d15fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
module.render.js
minder_module/module.render.js
+30
-0
kityminder.js
src/core/kityminder.js
+4
-0
No files found.
minder_module/module.render.js
0 → 100644
View file @
6e79243c
var
mindermoduleRender
=
function
()
{
console
.
log
(
"render loaded"
);
var
commandDrawShape
=
kity
.
createClass
(
"commandDrawShape"
,
{
base
:
Command
,
"execute"
:
function
(
km
,
config
)
{
var
node
=
kity
.
createClass
(
{
base
:
kity
.
Group
,
}
);
}
}
);
return
{
"commands"
:
{
//todo:command字典,name-action 键值对模式编写
ommandDrawRect
:
commandDrawShape
},
"events"
:
{
//todo:事件响应函数绑定列表,事件名-响应函数 键值对模式编写
"click"
:
function
(
e
)
{
},
"keydown keyup"
:
function
(
e
)
{
}
}
};
};
\ No newline at end of file
src/core/kityminder.js
View file @
6e79243c
...
...
@@ -16,6 +16,10 @@ var KityMinder = km.KityMinder = kity.createClass( "KityMinder", {
this
.
_root
=
new
MinderNode
(
this
);
this
.
_rc
.
addShape
(
this
.
_root
.
getRenderContainer
()
);
},
getDrawingArea
:
function
()
{
return
this
.
_paper
;
}
}
);
...
...
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