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
0cd57fa1
Commit
0cd57fa1
authored
Apr 23, 2014
by
campaign
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改渲染方式
parent
b06b0874
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
minder.data.js
src/core/minder.data.js
+1
-1
node.js
src/core/node.js
+2
-0
layout.default.js
src/module/layout.default.js
+1
-0
No files found.
src/core/minder.data.js
View file @
0cd57fa1
...
@@ -41,7 +41,7 @@ function importNode( node, json, km ) {
...
@@ -41,7 +41,7 @@ function importNode( node, json, km ) {
for
(
var
field
in
data
)
{
for
(
var
field
in
data
)
{
node
.
setData
(
field
,
data
[
field
]
);
node
.
setData
(
field
,
data
[
field
]
);
}
}
node
.
set
Text
(
data
.
text
||
km
.
getLang
(
DEFAULT_TEXT
[
node
.
getType
()
]
)
);
node
.
set
Data
(
'text'
,
data
.
text
||
km
.
getLang
(
DEFAULT_TEXT
[
node
.
getType
()
]
)
);
var
childrenTreeData
=
json
.
children
;
var
childrenTreeData
=
json
.
children
;
if
(
!
childrenTreeData
)
return
;
if
(
!
childrenTreeData
)
return
;
...
...
src/core/node.js
View file @
0cd57fa1
...
@@ -311,6 +311,8 @@ var MinderNode = KityMinder.MinderNode = kity.createClass( "MinderNode", {
...
@@ -311,6 +311,8 @@ var MinderNode = KityMinder.MinderNode = kity.createClass( "MinderNode", {
return
false
;
return
false
;
}
}
}
);
}
);
if
(
textShape
===
undefined
)
debugger
return
textShape
;
return
textShape
;
},
},
isSelected
:
function
()
{
isSelected
:
function
()
{
...
...
src/module/layout.default.js
View file @
0cd57fa1
...
@@ -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
)
);
...
...
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