提交 35f4942a 编写于 作者: S sushuang

tweak

上级 ff5715ce
...@@ -83,6 +83,9 @@ define(function(require) { ...@@ -83,6 +83,9 @@ define(function(require) {
label: { label: {
normal: { normal: {
show: true, show: true,
// Do not use textDistance, for ellipsis rect just the same as treemap node rect.
distance: 0,
padding: 5,
position: 'inside', // Can be [5, '5%'] or position stirng like 'insideTopLeft', ... position: 'inside', // Can be [5, '5%'] or position stirng like 'insideTopLeft', ...
// formatter: null, // formatter: null,
color: '#fff', color: '#fff',
......
...@@ -478,7 +478,9 @@ define(function(require) { ...@@ -478,7 +478,9 @@ define(function(require) {
var labelRotate = textStyleModel.getShallow('rotate'); var labelRotate = textStyleModel.getShallow('rotate');
labelRotate != null && (labelRotate *= Math.PI / 180); labelRotate != null && (labelRotate *= Math.PI / 180);
textStyle.textRotation = labelRotate; textStyle.textRotation = labelRotate;
textStyle.textDistance = textStyleModel.getShallow('distance') || (opt.forMerge ? null : 5); textStyle.textDistance = zrUtil.retrieve2(
textStyleModel.getShallow('distance'), opt.forMerge ? null : 5
);
} }
var ecModel = textStyleModel.ecModel; var ecModel = textStyleModel.ecModel;
......
...@@ -93,7 +93,8 @@ ...@@ -93,7 +93,8 @@
formatter: '{a|{a}} {b}\n{c|{c}}', formatter: '{a|{a}} {b}\n{c|{c}}',
rich: { rich: {
a: { a: {
color: '#ffff00' // color: '#ffff00',
fontSize: 18
}, },
c: { c: {
fontSize: 20, fontSize: 20,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册