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 2021/04/08 03:32:24 UTC

[GitHub] [echarts] pissang edited a comment on pull request #14602: fix(linear-gradient): avoid the infinite value in `linearMap` util.

pissang edited a comment on pull request #14602:
URL: https://github.com/apache/echarts/pull/14602#issuecomment-815419488


   @plainheart I think `linearMap(Infinity, domain, range)` has `Infinity` result is reasonable.
   
   We can clamp it if we want to limit it in the range: `linearMap(Infinity, domain, range, true)`. Or validate it before using it as coord of gradient. In this case, validation seems better.


-- 
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