svg

how to zoom in on a complex svg structure

生来就可爱ヽ(ⅴ<●) 提交于 2020-11-30 04:59:57
问题 I have a complex set of shapes that are in the snippet. They are rendered with React but I'm really just looking for some pointers about how I would go about being able to zoom these shapes in and out. My googling is failing and I can only really find examples of graphs. How can zoom in and out complex structures like this? <svg height="767" width="903"> <g class="vx-group vx-tree" transform="translate(20, 70)"> <g class="vx-group" transform="translate(0, 70)"> <g class="vx-group" transform=