adoin opened a new issue, #18716:
URL: https://github.com/apache/echarts/issues/18716

   ### What problem does this feature solve?
   
   参考了一众的issue,知道主题切换有一些问题。
   在这里提供一个思路也希望能有这方面的实践。
   svg模式下可以用css的变量来填充颜色i.o. fill="var(--primry-1-color)"。
   
canvas模式下只能:getComputedStyle(context.canvas).getPropertyValue("--primry-1-color"),而后进行后续绘制
   如此可把主题文件css化,打通layer渲染和canvas/svg渲染。
   从而实现如主题切换、局部状态改变之类的需求
   
   
   
   ### What does the proposed API look like?
   
   如上


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to