You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/03/23 08:23:47 UTC

[GitHub] [incubator-echarts] autukill opened a new issue #12318: Tooltip 使用 richText 模式后, Tooltip的边框宽度和边框颜色失效了

autukill opened a new issue #12318: Tooltip 使用 richText 模式后, Tooltip的边框宽度和边框颜色失效了
URL: https://github.com/apache/incubator-echarts/issues/12318
 
 
   ### Version
   4.7.0
   
   ### Steps to reproduce
   tooltip: {
           renderMode: 'richText',
           borderColor: "red",
           borderWidth: 1
       }
   
   ### What is expected?
   tooltip 开启 richText 模式后,配置的边框的颜色和宽度能生效
   
   ### What is actually happening?
   tooltip 开启 richText 模式后,配置的边框的颜色和宽度无法生效
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] hyungkiShin removed a comment on issue #12318: Tooltip 使用 richText 模式后, Tooltip的边框宽度和边框颜色失效了

Posted by GitBox <gi...@apache.org>.
hyungkiShin removed a comment on issue #12318: Tooltip 使用 richText 模式后, Tooltip的边框宽度和边框颜色失效了
URL: https://github.com/apache/incubator-echarts/issues/12318#issuecomment-603097389
 
 
   test
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12318: Tooltip 使用 richText 模式后, Tooltip的边框宽度和边框颜色失效了

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12318: Tooltip 使用 richText 模式后, Tooltip的边框宽度和边框颜色失效了
URL: https://github.com/apache/incubator-echarts/issues/12318#issuecomment-602450569
 
 
   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.
   
   If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] autukill removed a comment on issue #12318: Tooltip 使用 richText 模式后, Tooltip的边框宽度和边框颜色失效了

Posted by GitBox <gi...@apache.org>.
autukill removed a comment on issue #12318: Tooltip 使用 richText 模式后, Tooltip的边框宽度和边框颜色失效了
URL: https://github.com/apache/incubator-echarts/issues/12318#issuecomment-602451358
 
 
   ![TIM截图20200323162517](https://user-images.githubusercontent.com/5186639/77296598-ee25ed00-6d22-11ea-8b07-395f7b0dc473.png)
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] autukill commented on issue #12318: Tooltip 使用 richText 模式后, Tooltip的边框宽度和边框颜色失效了

Posted by GitBox <gi...@apache.org>.
autukill commented on issue #12318: Tooltip 使用 richText 模式后, Tooltip的边框宽度和边框颜色失效了
URL: https://github.com/apache/incubator-echarts/issues/12318#issuecomment-602451358
 
 
   ![TIM截图20200323162517](https://user-images.githubusercontent.com/5186639/77296598-ee25ed00-6d22-11ea-8b07-395f7b0dc473.png)
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] Ovilia commented on issue #12318: Tooltip 使用 richText 模式后, Tooltip的边框宽度和边框颜色失效了

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #12318: Tooltip 使用 richText 模式后, Tooltip的边框宽度和边框颜色失效了
URL: https://github.com/apache/incubator-echarts/issues/12318#issuecomment-604839098
 
 
   @autukill 赞,要不你提个 PR?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] autukill commented on issue #12318: Tooltip 使用 richText 模式后, Tooltip的边框宽度和边框颜色失效了

Posted by GitBox <gi...@apache.org>.
autukill commented on issue #12318: Tooltip 使用 richText 模式后, Tooltip的边框宽度和边框颜色失效了
URL: https://github.com/apache/incubator-echarts/issues/12318#issuecomment-604193224
 
 
   @Ovilia 
   查看tooltip的源码后,发现边框的颜色和宽度没有实现, 但查看 zrender 的文档后,发现实现这个功能还是很容易实现的:
   
   https://ecomfe.github.io/zrender-doc/public/api.html#zrenderdisplayable
   - opts.style.textBackgroundColor 文字包围盒颜色。
   - opts.style.textBorderColor 文字包围盒描边颜色。
   
   修改源码 lib/component/tooltip/TooltipRichContent.js 第126行为以下
   ``` javascript
   this.el = new Text({
         style: {
           rich: markers,
           text: content,
           textLineHeight: 20,
           textBackgroundColor: tooltipModel.get('backgroundColor'),
           textBorderRadius: tooltipModel.get('borderRadius'),
           textFill: tooltipModel.get('textStyle.color'),
           textPadding: tooltipModel.get('padding'),
           textBorderWidth: tooltipModel.get('borderWidth'),
           textBorderColor: tooltipModel.get('borderColor')
         },
         z: tooltipModel.get('z')
   });
   ``` 
   修改新增了下面两行
   - textBorderWidth: tooltipModel.get('borderWidth'),
   - textBorderColor: tooltipModel.get('borderColor')
   
   tooltip 的富文本还有一些可配置的没有给出来, 比如 textLineHeight 行高被写死为 20.
   
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] autukill commented on issue #12318: Tooltip 使用 richText 模式后, Tooltip的边框宽度和边框颜色失效了

Posted by GitBox <gi...@apache.org>.
autukill commented on issue #12318: Tooltip 使用 richText 模式后, Tooltip的边框宽度和边框颜色失效了
URL: https://github.com/apache/incubator-echarts/issues/12318#issuecomment-602453319
 
 
   ![TIM截图20200323162517](https://user-images.githubusercontent.com/5186639/77296947-84f2a980-6d23-11ea-8ee1-d202dab8e26d.png)
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] autukill removed a comment on issue #12318: Tooltip 使用 richText 模式后, Tooltip的边框宽度和边框颜色失效了

Posted by GitBox <gi...@apache.org>.
autukill removed a comment on issue #12318: Tooltip 使用 richText 模式后, Tooltip的边框宽度和边框颜色失效了
URL: https://github.com/apache/incubator-echarts/issues/12318#issuecomment-609424352
 
 
   > @autukill 赞,要不你提个 PR?
   
   提了 #12383

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] hyungkiShin commented on issue #12318: Tooltip 使用 richText 模式后, Tooltip的边框宽度和边框颜色失效了

Posted by GitBox <gi...@apache.org>.
hyungkiShin commented on issue #12318: Tooltip 使用 richText 模式后, Tooltip的边框宽度和边框颜色失效了
URL: https://github.com/apache/incubator-echarts/issues/12318#issuecomment-603097389
 
 
   test
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] autukill commented on issue #12318: Tooltip 使用 richText 模式后, Tooltip的边框宽度和边框颜色失效了

Posted by GitBox <gi...@apache.org>.
autukill commented on issue #12318: Tooltip 使用 richText 模式后, Tooltip的边框宽度和边框颜色失效了
URL: https://github.com/apache/incubator-echarts/issues/12318#issuecomment-609424352
 
 
   > @autukill 赞,要不你提个 PR?
   
   提了 #12383

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] autukill closed issue #12318: Tooltip 使用 richText 模式后, Tooltip的边框宽度和边框颜色失效了

Posted by GitBox <gi...@apache.org>.
autukill closed issue #12318:
URL: https://github.com/apache/incubator-echarts/issues/12318


   


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org