提交 791b6c9a 编写于 作者: 1 100pah

enhance: set default outsideStroke.

上级 5cb15bc7
......@@ -801,6 +801,9 @@ export function createTextConfig(
// fill and auto is determined by the color of path fill if it's not specified by developers.
textConfig.outsideFill = opt.autoColor || null;
textConfig.insideStroke = opt.autoColor || null;
// Set default stroke, which is useful when label is over other
// messy graphics (like lines) in background.
textConfig.outsideStroke = 'rgba(255, 255, 255, 0.7)';
// if (!textStyle.fill) {
// textConfig.insideFill = 'auto';
// textConfig.outsideFill = opt.autoColor || null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册