Yes, I agree with Rex. The DOM is write-only by design. Going forward, I
don't expect there ever to be a generic way to read the DOM... if specific
problems come up that absolutely require it, they will be solved by
specific APIs, such as in elm-lang/window and elm-lang/dom.

On Thu, Dec 22, 2016 at 5:57 AM, Rex van der Spuy <dandylio...@gmail.com>
wrote:

>
>  Currently the solution seems to be 1) compute the bounding box manually
>> inside the update function whenever the selection <g> is modified, 2) keep
>> the bounding box data in the model and 3) use the bounding box from the
>> model when the update function performs other operations on the model (e.g.
>> detect if a click is inside).
>>
>
> That's how us game developers do it: all the geometry and position data is
> in the model. That data is then used to blindly draw the shapes in the
> view.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to elm-discuss+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to