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
e720f6e2
Commit
e720f6e2
authored
Apr 23, 2014
by
Akikonata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed extra code
parent
b06b0874
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
63 deletions
+2
-63
layout.bottom.js
src/module/layout.bottom.js
+1
-42
layout.default.js
src/module/layout.default.js
+1
-21
No files found.
src/module/layout.bottom.js
View file @
e720f6e2
...
@@ -351,35 +351,9 @@ KityMinder.registerModule( "LayoutBottom", function () {
...
@@ -351,35 +351,9 @@ KityMinder.registerModule( "LayoutBottom", function () {
default
:
default
:
break
;
break
;
}
}
// this._fire( new MinderEvent( "beforeRenderNode", {
// node: node
// }, false ) );
// this._fire( new MinderEvent( "RenderNode", {
// node: node
// }, false ) );
this
.
_firePharse
(
new
MinderEvent
(
"RenderNodeLeft"
,
{
node
:
node
},
false
)
);
this
.
_firePharse
(
new
MinderEvent
(
"RenderNodeCenter"
,
{
node
:
node
},
false
)
);
this
.
_firePharse
(
new
MinderEvent
(
"RenderNodeRight"
,
{
node
:
node
},
false
)
);
this
.
_firePharse
(
new
MinderEvent
(
"RenderNodeBottom"
,
{
node
:
node
},
false
)
);
this
.
_firePharse
(
new
MinderEvent
(
"RenderNodeTop"
,
{
node
:
node
},
false
)
);
},
},
updateLayout
:
function
(
node
)
{
updateLayout
:
function
(
node
)
{
// this._fire( new MinderEvent( "beforeRenderNode", {
node
.
getRenderContainer
().
clear
();
// node: node
// }, false ) );
// this._fire( new MinderEvent( "RenderNode", {
// node: node
// }, false ) );
this
.
_firePharse
(
new
MinderEvent
(
"RenderNodeLeft"
,
{
this
.
_firePharse
(
new
MinderEvent
(
"RenderNodeLeft"
,
{
node
:
node
node
:
node
},
false
)
);
},
false
)
);
...
@@ -416,21 +390,6 @@ KityMinder.registerModule( "LayoutBottom", function () {
...
@@ -416,21 +390,6 @@ KityMinder.registerModule( "LayoutBottom", function () {
_root
.
getLayout
().
align
=
"center"
;
_root
.
getLayout
().
align
=
"center"
;
updateBg
(
_root
);
updateBg
(
_root
);
initLayout
(
_root
);
initLayout
(
_root
);
this
.
_firePharse
(
new
MinderEvent
(
"RenderNodeLeft"
,
{
node
:
_root
},
false
)
);
this
.
_firePharse
(
new
MinderEvent
(
"RenderNodeCenter"
,
{
node
:
_root
},
false
)
);
this
.
_firePharse
(
new
MinderEvent
(
"RenderNodeRight"
,
{
node
:
_root
},
false
)
);
this
.
_firePharse
(
new
MinderEvent
(
"RenderNodeBottom"
,
{
node
:
_root
},
false
)
);
this
.
_firePharse
(
new
MinderEvent
(
"RenderNodeTop"
,
{
node
:
_root
},
false
)
);
updateShapeByCont
(
_root
);
updateShapeByCont
(
_root
);
updateLayoutAll
(
_root
);
updateLayoutAll
(
_root
);
translateNode
(
_root
);
translateNode
(
_root
);
...
...
src/module/layout.default.js
View file @
e720f6e2
...
@@ -440,6 +440,7 @@ KityMinder.registerModule( "LayoutDefault", function () {
...
@@ -440,6 +440,7 @@ KityMinder.registerModule( "LayoutDefault", function () {
}
}
},
},
updateLayout
:
function
(
node
)
{
updateLayout
:
function
(
node
)
{
node
.
getRenderContainer
().
clear
();
this
.
_firePharse
(
new
MinderEvent
(
"RenderNodeLeft"
,
{
this
.
_firePharse
(
new
MinderEvent
(
"RenderNodeLeft"
,
{
node
:
node
node
:
node
},
false
)
);
},
false
)
);
...
@@ -474,27 +475,6 @@ KityMinder.registerModule( "LayoutDefault", function () {
...
@@ -474,27 +475,6 @@ KityMinder.registerModule( "LayoutDefault", function () {
_root
.
getLayout
().
align
=
"center"
;
_root
.
getLayout
().
align
=
"center"
;
updateBg
(
_root
);
updateBg
(
_root
);
initLayout
(
_root
);
initLayout
(
_root
);
// this._fire( new MinderEvent( "beforeRenderNode", {
// node: _root
// }, false ) );
// this._fire( new MinderEvent( "RenderNode", {
// node: _root
// }, false ) );
this
.
_firePharse
(
new
MinderEvent
(
"RenderNodeLeft"
,
{
node
:
_root
},
false
)
);
this
.
_firePharse
(
new
MinderEvent
(
"RenderNodeCenter"
,
{
node
:
_root
},
false
)
);
this
.
_firePharse
(
new
MinderEvent
(
"RenderNodeRight"
,
{
node
:
_root
},
false
)
);
this
.
_firePharse
(
new
MinderEvent
(
"RenderNodeBottom"
,
{
node
:
_root
},
false
)
);
this
.
_firePharse
(
new
MinderEvent
(
"RenderNodeTop"
,
{
node
:
_root
},
false
)
);
updateShapeByCont
(
_root
);
updateShapeByCont
(
_root
);
updateLayoutHorizon
(
_root
);
updateLayoutHorizon
(
_root
);
updateLayoutVertical
(
_root
);
updateLayoutVertical
(
_root
);
...
...
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