timjs / elm-collage

Create interactive vector graphics and position them relative to each other
BSD 3-Clause "New" or "Revised" License
58 stars 19 forks source link

impose back on fore instead of fore on back #19

Open gitLabor8 opened 6 years ago

gitLabor8 commented 6 years ago

When placing a hitbox around a shape, I use 'impose' to 'forget' the envelopes of the hitbox in further calculations: impose hitbox shape However, onClick messages on this shape do not work anymore, since hitbox is placed on top of it. I would love to see a feature that works like 'impose', but keeps the the envelopes of the fore.

timjs commented 6 years ago

After some experimenting, it appears that the most common use case for impose is to use the foreground and forget the background. I will change this in the next major version.