修复外部指针文字覆盖的bug
This commit is contained in:
parent
ee9a5202b1
commit
3835b9b910
11621
dist/sv.js
vendored
11621
dist/sv.js
vendored
File diff suppressed because one or more lines are too long
@ -40,9 +40,10 @@ export default Util.registerShape('pointer', {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const { width: textWidth, height: textHeight } = text.getBBox();
|
const { width: textWidth, height: textHeight } = text.getBBox();
|
||||||
|
const {width: pointerWidth, height: pointerHeight} = keyShape.getBBox();
|
||||||
bgRect.attr({
|
bgRect.attr({
|
||||||
width: textWidth + 6,
|
width: textWidth + pointerWidth + 6,
|
||||||
height: textHeight + 6
|
height: textHeight + pointerHeight + 6
|
||||||
});
|
});
|
||||||
|
|
||||||
// 旋转文字
|
// 旋转文字
|
||||||
@ -61,6 +62,7 @@ export default Util.registerShape('pointer', {
|
|||||||
y: textY - textHeight / 2 - 3
|
y: textY - textHeight / 2 - 3
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
return bgRect;
|
||||||
}
|
}
|
||||||
|
|
||||||
return keyShape;
|
return keyShape;
|
||||||
|
Loading…
Reference in New Issue
Block a user