Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upDesired operations for Transform2D library #151
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
identicalsnowflake
Feb 1, 2015
I was hoping for something like this, too. I'm writing CSS bindings, and I'm trying to use Elm types as much as possible, and I wanted to accept the core type Transform2D for the CSS transform property, but I can't because there isn't any way to inspect the Transform2D object.
identicalsnowflake
commented
Feb 1, 2015
|
I was hoping for something like this, too. I'm writing CSS bindings, and I'm trying to use Elm types as much as possible, and I wanted to accept the core type Transform2D for the CSS transform property, but I can't because there isn't any way to inspect the Transform2D object. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
evancz
May 11, 2016
Member
Sorry this did not get attention til now! The Graphics.* modules now live in evancz/elm-graphics so I am trying to get stuff migrated over there.
That said, I would like to keep that API stable for now. I expect to be focusing on <canvas> for professional users and "friendly graphics" for learning as separate use cases. Progress will be made when those start happening.
|
Sorry this did not get attention til now! The That said, I would like to keep that API stable for now. I expect to be focusing on |
imeckler commentedJan 30, 2015
I think that the
Transform2Dtype is a bit too abstract. I'm currently trying to debug something involving them and it's impossible to actually inspect them. The module itself provides no way to define functions out of the type, and it seems the only placeTransform2Ds can be used is inGraphics.Collage.groupTransform. Such a library is of general use, i.e., not only with forms, and I think some version of the following functions would be quite reasonable to add:In fact these two functions are interderivable (up to floating point errors), so just one would be enough if you're all feeling spartan.