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
47a399be
Commit
47a399be
authored
Feb 12, 2014
by
Akikonata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
d6858fca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
layout.default.js
src/module/layout.default.js
+3
-0
layout.js
src/module/layout.js
+9
-1
No files found.
src/module/layout.default.js
View file @
47a399be
...
@@ -518,6 +518,9 @@ KityMinder.registerModule( "LayoutDefault", function () {
...
@@ -518,6 +518,9 @@ KityMinder.registerModule( "LayoutDefault", function () {
}
}
}
}
}
}
},
expandNode
:
function
(
node
)
{
}
}
};
};
this
.
addLayoutStyle
(
"default"
,
_style
);
this
.
addLayoutStyle
(
"default"
,
_style
);
...
...
src/module/layout.js
View file @
47a399be
...
@@ -25,6 +25,7 @@ KityMinder.registerModule( "LayoutModule", function () {
...
@@ -25,6 +25,7 @@ KityMinder.registerModule( "LayoutModule", function () {
},
},
initStyle
:
function
()
{
initStyle
:
function
()
{
var
curStyle
=
this
.
getCurrentStyle
();
var
curStyle
=
this
.
getCurrentStyle
();
this
.
getRenderContainer
().
clear
();
this
.
getLayoutStyle
(
curStyle
).
initStyle
.
call
(
this
);
this
.
getLayoutStyle
(
curStyle
).
initStyle
.
call
(
this
);
},
},
appendChildNode
:
function
(
parent
,
node
,
index
)
{
appendChildNode
:
function
(
parent
,
node
,
index
)
{
...
@@ -42,6 +43,10 @@ KityMinder.registerModule( "LayoutModule", function () {
...
@@ -42,6 +43,10 @@ KityMinder.registerModule( "LayoutModule", function () {
updateLayout
:
function
(
node
)
{
updateLayout
:
function
(
node
)
{
var
curStyle
=
this
.
getCurrentStyle
();
var
curStyle
=
this
.
getCurrentStyle
();
this
.
getLayoutStyle
(
curStyle
).
updateLayout
.
call
(
this
,
node
);
this
.
getLayoutStyle
(
curStyle
).
updateLayout
.
call
(
this
,
node
);
},
expandNode
:
function
(
node
)
{
var
curStyle
=
this
.
getCurrentStyle
();
this
.
getLayoutStyle
(
curStyle
).
expandNode
.
call
(
this
,
node
);
}
}
}
);
}
);
kity
.
extendClass
(
MinderNode
,
{
kity
.
extendClass
(
MinderNode
,
{
...
@@ -155,7 +160,10 @@ KityMinder.registerModule( "LayoutModule", function () {
...
@@ -155,7 +160,10 @@ KityMinder.registerModule( "LayoutModule", function () {
switchLayout
(
this
,
this
.
getOptions
(
'defaultlayoutstyle'
)
);
switchLayout
(
this
,
this
.
getOptions
(
'defaultlayoutstyle'
)
);
},
},
"click"
:
function
(
e
)
{
"click"
:
function
(
e
)
{
var
ico
=
e
.
kityEvent
.
targetShape
.
container
;
if
(
ico
.
class
===
"shicon"
)
{
this
.
expandNode
(
ico
.
icon
.
_node
);
}
}
}
},
},
"defaultOptions"
:
{
"defaultOptions"
:
{
...
...
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