Commit bc182a2c authored by campaign's avatar campaign

修改模块适应新的渲染方式

parent 553068b4
...@@ -29,15 +29,15 @@ ...@@ -29,15 +29,15 @@
// ,'module/view.js' // ,'module/view.js'
// ,'module/dragtree.js' // ,'module/dragtree.js'
// ,'module/dropfile.js' // ,'module/dropfile.js'
// ,'module/keyboard.js' ,'module/keyboard.js'
,'module/select.js' ,'module/select.js'
// ,'module/history.js' ,'module/history.js'
,'module/editor.js' ,'module/editor.js'
,'module/editor.range.js' ,'module/editor.range.js'
,'module/editor.receiver.js' ,'module/editor.receiver.js'
,'module/editor.selection.js' ,'module/editor.selection.js'
// ,'module/basestyle.js' ,'module/basestyle.js'
// ,'module/font.js' ,'module/font.js'
// ,'module/zoom.js' // ,'module/zoom.js'
,'module/nodetext.js' ,'module/nodetext.js'
,'ui/jquery-ui-1.10.4.custom.min.js' ,'ui/jquery-ui-1.10.4.custom.min.js'
......
...@@ -78,7 +78,7 @@ KityMinder.registerModule( "basestylemodule", function () { ...@@ -78,7 +78,7 @@ KityMinder.registerModule( "basestylemodule", function () {
"italic": "ctrl+i" //italic "italic": "ctrl+i" //italic
}, },
"events": { "events": {
"beforeRenderNode": function ( e ) { "afterrendernodecenter": function ( e ) {
//加粗 //加粗
if ( e.node.getData( 'bold' ) ) { if ( e.node.getData( 'bold' ) ) {
e.node.getTextShape().setAttr( 'font-weight', 'bold' ); e.node.getTextShape().setAttr( 'font-weight', 'bold' );
......
...@@ -90,7 +90,7 @@ KityMinder.registerModule( "fontmodule", function () { ...@@ -90,7 +90,7 @@ KityMinder.registerModule( "fontmodule", function () {
}, },
"events": { "events": {
"beforeRenderNode": function ( e ) { "afterrendernodecenter": function ( e ) {
var val; var val;
if ( val = e.node.getData( 'fontfamily' ) ) { if ( val = e.node.getData( 'fontfamily' ) ) {
e.node.getTextShape().setAttr( 'font-family', val ); e.node.getTextShape().setAttr( 'font-family', val );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment