提交 5cb15bc7 编写于 作者: 1 100pah

enhance: adjust insideFill/insideStroke

上级 05e35a3d
......@@ -799,17 +799,19 @@ export function createTextConfig(
}
// fill and auto is determined by the color of path fill if it's not specified by developers.
if (!textStyle.fill) {
textConfig.insideFill = 'auto';
textConfig.outsideFill = opt.autoColor || null;
}
if (!textStyle.stroke) {
textConfig.insideStroke = 'auto';
}
else if (opt.autoColor) {
// TODO: stroke set to autoColor. if label is inside?
textConfig.insideStroke = opt.autoColor;
}
textConfig.outsideFill = opt.autoColor || null;
textConfig.insideStroke = opt.autoColor || null;
// if (!textStyle.fill) {
// textConfig.insideFill = 'auto';
// textConfig.outsideFill = opt.autoColor || null;
// }
// if (!textStyle.stroke) {
// textConfig.insideStroke = 'auto';
// }
// else if (opt.autoColor) {
// // TODO: stroke set to autoColor. if label is inside?
// textConfig.insideStroke = opt.autoColor;
// }
return textConfig;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册