Commit b4a9dc23 authored by hy's avatar hy

增加一个根节点文字修改事件

parent 8c91b7e4
...@@ -217,6 +217,10 @@ define(function(require, exports, module) { ...@@ -217,6 +217,10 @@ define(function(require, exports, module) {
node._currentTextHash = textHash; node._currentTextHash = textHash;
if (node.type === 'root') {
node.minder.fire('roottextchange', {node: node});
};
return function() { return function() {
textGroup.eachItem(function(i, textShape) { textGroup.eachItem(function(i, textShape) {
var y = yStart + i * fontSize * lineHeight; var y = yStart + i * fontSize * lineHeight;
......
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