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
49bba4e6
Commit
49bba4e6
authored
Apr 23, 2014
by
campaign
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改渲染方式
parent
0cd57fa1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
8 deletions
+29
-8
import.js
import.js
+9
-8
nodetext.js
src/module/nodetext.js
+20
-0
No files found.
import.js
View file @
49bba4e6
...
...
@@ -26,19 +26,20 @@
,
'module/layout.default.js'
,
'module/layout.bottom.js'
,
'core/minder.select.js'
,
'module/view.js'
,
'module/dragtree.js'
,
'module/dropfile.js'
,
'module/keyboard.js'
//
,'module/view.js'
//
,'module/dragtree.js'
//
,'module/dropfile.js'
//
,'module/keyboard.js'
,
'module/select.js'
,
'module/history.js'
//
,'module/history.js'
,
'module/editor.js'
,
'module/editor.range.js'
,
'module/editor.receiver.js'
,
'module/editor.selection.js'
,
'module/basestyle.js'
,
'module/font.js'
,
'module/zoom.js'
// ,'module/basestyle.js'
// ,'module/font.js'
// ,'module/zoom.js'
,
'module/nodetext.js'
,
'ui/jquery-ui-1.10.4.custom.min.js'
,
'ui/widget.js'
,
'ui/button.js'
...
...
src/module/nodetext.js
0 → 100644
View file @
49bba4e6
KityMinder
.
registerModule
(
"NodeText"
,
function
()
{
var
km
=
this
;
return
{
events
:{
'renderNodeCenter'
:
function
(
e
){
var
node
=
e
.
node
;
if
(
node
.
getType
()
==
'root'
)
debugger
var
width
=
node
.
getContRc
().
getWidth
();
var
textShape
=
new
kity
.
Text
(
node
.
getData
(
'text'
)
||
''
);
textShape
.
setAttr
(
'_nodeTextShape'
,
true
);
node
.
getContRc
().
appendShape
(
textShape
);
var
style
=
this
.
getCurrentLayoutStyle
()[
node
.
getType
()];
textShape
.
fill
(
style
.
color
).
setSize
(
style
.
fontSize
);
textShape
.
setPosition
(
width
,
textShape
.
getHeight
()
*
.
75
)
}
}
}
}
);
\ 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