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
3e646f89
Commit
3e646f89
authored
Dec 19, 2013
by
Akikonata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev
parent
5fc1721f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
14 deletions
+48
-14
module.default.test.js
minder_module/module.default.test.js
+21
-14
module.render.js
minder_module/module.render.js
+27
-0
No files found.
minder_module/module.default.test.js
View file @
3e646f89
var
mindermoduleDefaultTest
=
function
(){
var
mindermoduleDefaultTest
=
function
()
{
console
.
log
(
"test loaded"
);
console
.
log
(
"test loaded"
);
var
stroredData
=
"stored"
;
var
stroredData
=
"stored"
;
return
{
return
{
"commands"
:
{
"commands"
:
{
//todo:command字典,name-action 键值对模式编写
//todo:command字典,name-action 键值对模式编写
"testCommand"
:
kity
.
createClass
(
"testCommand"
,
{
"testCommand"
:
kity
.
createClass
(
"testCommand"
,
{
base
:
Command
,
base
:
Command
,
"execute"
:
function
(
km
,
arg1
,
arg2
,
arg3
)
{
"execute"
:
function
(
km
,
arg1
,
arg2
,
arg3
)
{
console
.
log
(
arg1
,
arg2
,
arg3
);
console
.
log
(
arg1
,
arg2
,
arg3
);
}
}
})
})
},
},
"events"
:
{
"events"
:
{
//todo:事件响应函数绑定列表,事件名-响应函数 键值对模式编写
//todo:事件响应函数绑定列表,事件名-响应函数 键值对模式编写
"click"
:
function
(
e
)
{
"click"
:
function
(
e
)
{
window
.
alert
(
"hahaha"
);
window
.
alert
(
"hahaha"
);
},
},
"keydown keyup"
:
function
(
e
)
{
"keydown keyup"
:
function
(
e
)
{
window
.
alert
(
"key"
);
window
.
alert
(
"key"
);
}
},
"beforecommand"
:
function
(
e
)
{
console
.
log
(
"precommand:"
,
e
);
e
.
cancel
();
},
"command"
:
function
(
e
)
{
console
.
log
(
"command exec!"
,
e
);
}
}
}
};
};
};
};
\ No newline at end of file
minder_module/module.render.js
0 → 100644
View file @
3e646f89
var
mindermoduleRender
=
function
(){
console
.
log
(
"render loaded"
);
var
commandDrawShape
=
kity
.
createClass
(
"commandDrawShape"
,{
base
:
Command
,
"execute"
:
function
(
km
,
config
){
}
});
return
{
"commands"
:
{
//todo:command字典,name-action 键值对模式编写
ommandDrawRect
:
commandDrawShape
},
"events"
:
{
//todo:事件响应函数绑定列表,事件名-响应函数 键值对模式编写
"click"
:
function
(
e
){
},
"keydown keyup"
:
function
(
e
){
}
}
};
};
\ 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