andymeneely / squib

A Ruby DSL for prototyping card games.
http://squib.rocks
MIT License
923 stars 67 forks source link

Add support for custom anchors for PNGs and SVGs #392

Open Ninjananas opened 2 weeks ago

Ninjananas commented 2 weeks ago

Motivation

Hi Andy!

First of all, I'd like to thank you for Squib, it's a great tool that has been a HUGE help in my board game project.

As some people have pointed before in https://github.com/andymeneely/squib/discussions/356 and https://github.com/andymeneely/squib/issues/238 for example, having more flexible ways to position images would be super cool, and I too need it for my project.

I have not implemented all the ideas in https://github.com/andymeneely/squib/issues/238, I have only added an anchor: argument to the ScaleBox (which is used by the svg and png dsl methods).

rotated_anchors

I made sure that my changes are retro-compatible. Existing codebases should not be affected at all by these changes if they don't use the new features.

I have...

I have not...