Commit b4a9dc23 authored by hy's avatar hy

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

parent 8c91b7e4
......@@ -76,7 +76,7 @@ define(function(require, exports, module) {
'comic sans ms': -0.2,
'impact,chicago': -0.12,
'times new roman': -0.02,
'default': -0.15
'default': -0.15
},
'Lux': {
'andale mono': -0.05,
......@@ -84,7 +84,7 @@ define(function(require, exports, module) {
'impact,chicago': -0.13,
'times new roman': -0.1,
'arial black,avant garde': -0.17,
'default': 0
'default': 0
}
},
'firefox': {
......@@ -106,7 +106,7 @@ define(function(require, exports, module) {
'times new roman': -0.22,
'sans-serif': -0.22,
'arial black,avant garde': -0.17,
'default': -0.16
'default': -0.16
},
'Lux': {
"宋体,SimSun": -0.2,
......@@ -217,6 +217,10 @@ define(function(require, exports, module) {
node._currentTextHash = textHash;
if (node.type === 'root') {
node.minder.fire('roottextchange', {node: node});
};
return function() {
textGroup.eachItem(function(i, textShape) {
var y = yStart + i * fontSize * lineHeight;
......@@ -285,4 +289,4 @@ define(function(require, exports, module) {
});
module.exports = TextRenderer;
});
\ No newline at end of file
});
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