susiwen8 commented on a change in pull request #12947:
URL:
https://github.com/apache/incubator-echarts/pull/12947#discussion_r458143633
##########
File path: src/component/tooltip/TooltipHTMLContent.ts
##########
@@ -38,6 +39,55 @@ const vendors = ['', '-webkit-', '-moz-', '-o-'];
const gCssText =
'position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;';
+function mirrowPos(pos: string): string {
+ pos = pos === 'left'
+ ? 'right'
+ : pos === 'right'
+ ? 'left'
+ : pos === 'top'
+ ? 'bottom'
+ : 'top';
+ return pos;
+}
+
+function assembleArrow(
+ backgroundColor: ColorString,
+ borderColor: ZRColor,
+ arrowPosition: TooltipOption['position']
+) {
+ if (zrUtil.isObject(borderColor) && borderColor.type !== 'pattern') {
Review comment:
TS will throw error that said `Property 'colorStops' does not exist on
type 'LinearGradientObject | RadialGradientObject | PatternObject'.
Property 'colorStops' does not exist on type 'PatternObject'`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]