uber/react-vis

Thoughts on viewBox property

开放

#901 创建于 2018年8月16日

 (8 条评论) (1 个反应) (0 位负责人)JavaScript (868 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (8,615 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

I've been experimenting with react-vis components library and modifying it to pass a viewBox property all the way down to the svg element in XYPlot.

The results so far have been quite promising:

  • The elements inside the graph can easily be deployed in relation to each other using the internal coordinate system
  • Sizes can also be expresses in a way consistent with that system
  • The SVG scales appropriately, and it can be combined easily with flexbox.

So my question is: why is it that this doesn't have support out of the box? Is there any drawbacks I'm not noticing.

Thanks.

贡献者指南