Conversation
an idea for resizing the container El similar to html2canvas rather than rendered image
an idea for resizing the container El similar to html2canvas rather than rendered image
|
Hi @jswhisperer! I think is a good feature to add. However it would interfere with current width and height options in this way: currently when user just set a width or height option, the size will have a proportional increase or decrease. The other important thing is referred to the future plugin system. I prefer to maintain the snapDOM core as light as possible and allow modifications vie plugins. In fact, some parts of the current snapDOM will be optionals plugins. Your case is an ideal candidate for a plugin. I will inform when the @next branch will be ready to experiment with plugins so you can create one |
|
Totally understand the options API could also just be named like Feel free to close, this was an attempt to illustrate how I thought it might work. I would also use your logic with the current only apply containerWidth or containerHeight if set otherwise use the current clonedEl dimensions. But no need to worry about aspect ratio for this API idea. 🎉 |
|
Thank you, I will leave your PR open. I really appreciate your contribution and we can adapt it later |


an idea for resizing the container El similar to html2canvas rather than rendered image
it would be nice to have options to change the "el" or container el in the clone stages dimensions
these settings shouldn't worry about aspects etc, it should behave the same as if we override DOM style of the El (container) provided
this would behave more like html2canvas