Has anyone created a size selection to artboard or a size artboard to selection extension?
Hmm not sure if I understand the use case clearly? Could you elaborate that a bit further?
In my case, I’m creating a new project and added an image to it that is larger or smaller than the current artboard.
With this command I would select the image and choose, “Size artboard to image”. The artboard and the image are now the same size where the artboard matches the selection size. The alternative to this is, “Size the image to the artboard” where the selection is resized to match the artboard.
ah! I actually built a sample that does something like that: https://github.com/AdobeXD/plugin-samples/blob/757d67a933bc37d301162abfc4070a70a8ba8a40/sg-fit-to-object/main.js
This is not in the Plugin Manager though
Nice! Yes the fit to artboard is what I’m looking for.