[elm-discuss] Re: How to map over a list of entities that are different types?

2016-05-16 Thread Wil C
So, I came up with a solution that seems to work. As reference (and for others), I did reference work on Entity-Component Systems mentioned in this group before. https://gist.github.com/TheSeamau5/8d7fac9f1937f0bab317 https://gist.github.com/TheSeamau5/ec9695232ae919185f4d And I found Chris

Re: [elm-discuss] This may be a problem of thinking, instead of implementing

2016-05-16 Thread Peter Damoc
Part of Elm philosophy is to get away from this kind of side-effects. Also, I don't think Elm has enough OOP infrastructure to implement what you want here. On Tue, May 17, 2016 at 5:28 AM, Nandiin Bao wrote: > Yes, exactly. And I want an elegant implementation. > > 在

[elm-discuss] How to render at a lower fps in 0.17?

2016-05-16 Thread Wil C
I've made the switch to 0.17, and I've also followed along with the mario example . I can see how to get the delta, but it's locked in at around 60 fps with a subscription like "AnimationFrame.diffs Tick". How do I subscribe to

[elm-discuss] Unable to access DataTransfer from Drag and Drop event - Elm 0.17

2016-05-16 Thread Ronn Ross
Still no luck, but I'm getting closer. The problem is I'm not sure how to build the decoder for the drop event. Dragging and dropping is working great I just need to get the file information from the drop event. In Js you can get the files array from the event using event.data

Re: [elm-discuss] How to not render an Html Node (from React to Elm)

2016-05-16 Thread Joaquín Oltra
Using style or a class name maybe? Is that hidden the attribute hidden on the div or something else? For now I've created a helper for that specific case resulting

Re: [elm-discuss] Html.toElement in Elm version 0.17?

2016-05-16 Thread Peter Damoc
you can easily use Html for layout and create your own little layout language with functions. For example, you can use this playground for visually thinking about the layout: https://demos.scotch.io/visual-guide-to-css3-flexbox-flexbox-playground/demos/ and a little helper module like this one:

Re: [elm-discuss] Html.toElement in Elm version 0.17?

2016-05-16 Thread Tobias Hermann
Ok, thank you. I liked to align input boxes etc. with the functions from Graphics.Element, because it isolated me from all the HTML/div/CSS thinking. But of course I understand. Also thanks for the remark about Graphics.Input. I was already wondering where it went. ;-) On Sunday, May 15, 2016

Re: [elm-discuss] This may be a problem of thinking, instead of implementing

2016-05-16 Thread Peter Damoc
Hi Nandiin, It is not clear for me what are you actually trying to accomplish here. I understand that you want the synchronization but it is not clear what would a satisfying solution would be. I somehow think you might want side-effects where by side-effects I mean have a piece of state (the