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
f073a7f3
Commit
f073a7f3
authored
Jun 24, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev
parent
fdd070dd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
3 deletions
+11
-3
import.js
import.js
+1
-1
layout.js
src/core/layout.js
+4
-0
expand.js
src/module/expand.js
+2
-2
outline.js
src/module/outline.js
+4
-0
No files found.
import.js
View file @
f073a7f3
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
'template/bottom.js'
,
'template/bottom.js'
,
'module/node.js'
,
'module/node.js'
,
'module/text.js'
,
'module/text.js'
,
'module/expand.js'
,
'module/outline.js'
,
'module/outline.js'
,
'module/geometry.js'
,
'module/geometry.js'
,
'module/history.js'
,
'module/history.js'
,
...
@@ -59,7 +60,6 @@
...
@@ -59,7 +60,6 @@
'module/zoom.js'
,
'module/zoom.js'
,
'module/nodetext.js'
,
'module/nodetext.js'
,
'module/hyperlink.js'
,
'module/hyperlink.js'
,
'module/expand.js'
,
'module/arrange.js'
,
'module/arrange.js'
,
'ui/jquery-ui-1.10.4.custom.min.js'
,
'ui/jquery-ui-1.10.4.custom.min.js'
,
'ui/widget.js'
,
'ui/widget.js'
,
...
...
src/core/layout.js
View file @
f073a7f3
...
@@ -141,6 +141,10 @@ kity.extendClass(MinderNode, {
...
@@ -141,6 +141,10 @@ kity.extendClass(MinderNode, {
kity
.
extendClass
(
Minder
,
{
kity
.
extendClass
(
Minder
,
{
layout
:
function
(
root
,
duration
)
{
layout
:
function
(
root
,
duration
)
{
if
(
+
root
===
root
)
{
duration
=
root
;
root
=
null
;
}
root
=
root
||
this
.
getRoot
();
root
=
root
||
this
.
getRoot
();
...
...
src/module/expand.js
View file @
f073a7f3
...
@@ -75,7 +75,7 @@ KityMinder.registerModule('Expand', function() {
...
@@ -75,7 +75,7 @@ KityMinder.registerModule('Expand', function() {
node
.
traverse
(
function
(
node
)
{
node
.
traverse
(
function
(
node
)
{
node
.
render
();
node
.
render
();
});
});
node
.
layout
(
null
,
200
);
node
.
getMinder
().
layout
(
null
,
200
);
}
}
// 将展开的操作和状态读取接口拓展到 MinderNode 上
// 将展开的操作和状态读取接口拓展到 MinderNode 上
...
@@ -184,7 +184,7 @@ KityMinder.registerModule('Expand', function() {
...
@@ -184,7 +184,7 @@ KityMinder.registerModule('Expand', function() {
create
:
function
(
node
)
{
create
:
function
(
node
)
{
if
(
node
.
isRoot
())
return
;
if
(
node
.
isRoot
())
return
;
this
.
expander
=
new
Expander
(
node
);
this
.
expander
=
new
Expander
(
node
);
node
.
getRenderContainer
().
ad
dShape
(
this
.
expander
);
node
.
getRenderContainer
().
prepen
dShape
(
this
.
expander
);
node
.
expanderRenderer
=
this
;
node
.
expanderRenderer
=
this
;
this
.
node
=
node
;
this
.
node
=
node
;
return
this
.
expander
;
return
this
.
expander
;
...
...
src/module/outline.js
View file @
f073a7f3
...
@@ -77,6 +77,10 @@ var OutlineRenderer = kity.createClass('OutlineRenderer', {
...
@@ -77,6 +77,10 @@ var OutlineRenderer = kity.createClass('OutlineRenderer', {
}
}
});
});
var
ShadowRenderer
=
kity
.
createClass
(
'ShadowRenderer'
,
{
});
KityMinder
.
registerModule
(
'OutlineModule'
,
function
()
{
KityMinder
.
registerModule
(
'OutlineModule'
,
function
()
{
return
{
return
{
renderers
:
{
renderers
:
{
...
...
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