ecomfe / zrender

A lightweight graphic library providing 2d draw for Apache ECharts
https://ecomfe.github.io/zrender-doc/public/
BSD 3-Clause "New" or "Revised" License
6.07k stars 1.56k forks source link

How to calculate graph union #1075

Closed Atox724 closed 6 months ago

Atox724 commented 7 months ago

How to calculate the union of graphs and obtain the vertex coordinates of the union graph to draw a new polygon

before: [ [ [600, 100], [1000, 100], [1000, 500], [600, 500], ], [ [800, 50], [1200, 350], [400, 350], ], ] image

after: [ [ [600, 100], [735, 100], [800, 50], [865, 100], [1000, 100], [1000, 200], [1200, 350], [1000, 350], [1000, 500], [1000, 500], [600, 500], [600, 350], [400, 350], [600, 200], ], ] image

Jancheng-z commented 7 months ago

这是来自QQ邮箱的假期自动回复邮件。   您好,我已经收到你的邮件,我将仔细阅读来信,祝君身体健康,合家美满!