bumbu/svg-pan-zoom

Destroy does not reset element to its origins

Open

#171 创建于 2015年12月9日

在 GitHub 查看
 (9 评论) (0 反应) (0 负责人)JavaScript (1,585 star) (383 fork)batch import
bughelp wanted

描述

I have the case where I initialize and destroy an SVG Element based on its visibility and experienced, that the wrapping g with its transform="matrix(...);" attribute is not reset after destroying it. When then re-initializing the object, it will show the SVG at a veeery small scale as a starting point. Because the translation is then applied on top of the already existing matrix.

I tried to just remove the transform attribute by hand but that didn't produce my wanted result.

Any suggestions?

贡献者指南