What about GeometryUtils / convertPointFromNode()

275 views
Skip to first unread message

Jörg Birkhold

unread,
Mar 11, 2015, 9:48:55 AM3/11/15
to blin...@chromium.org
Hi there,

After the removal of webkitConvertPointFromPageToNode() and webkitConvertPointFromNodeToPage(), it is almost impossible to convert a point from a css transformed(rotated) element to the window/document K.O. system and vice versa.
Firefox has already implemented the Geometry Utils like convertPointFromNode(). Are there any plans to implement that in Blink?

Thanks 

Joerg

Douglas Stockwell

unread,
Mar 11, 2015, 11:54:52 PM3/11/15
to Jörg Birkhold, blin...@chromium.org
I've had a few discussions about Geometry Utils, I think it's valuable for Blink to implement. It's on the list of things for the style team to do, but as yet no one has signed up to do the work.

Jinho Bang

unread,
Mar 12, 2015, 1:14:27 AM3/12/15
to blin...@chromium.org, joerg.b...@foresee.biz
2015년 3월 12일 목요일 오후 12시 54분 52초 UTC+9, Douglas Stockwell 님의 말:
I've had a few discussions about Geometry Utils, I think it's valuable for Blink to implement. It's on the list of things for the style team to do, but as yet no one has signed up to do the work.


I think it is useful APIs.

If no one is working on this, I'm interested in implementing this.

I've implemented geometry interfaces such as DOMMatrix, DOMRect, DOMQuad and so on.

Especially, DOMQuad interface is only used by getBoxQuads() in geometry utils[1].

If someone is already working on this, please let me know :)

Thank you. 

Jörg Birkhold

unread,
Mar 14, 2015, 6:27:14 AM3/14/15
to blin...@chromium.org, joerg.b...@foresee.biz
Jinho, that sounds fantastic :-)

Douglas Stockwell

unread,
Mar 15, 2015, 7:02:59 PM3/15/15
to Jinho Bang, blin...@chromium.org, joerg.b...@foresee.biz
On Thu, Mar 12, 2015 at 4:14 PM Jinho Bang <jinho...@samsung.com> wrote:
If no one is working on this, I'm interested in implementing this.

Sounds great. I don't think you'll have any problems with an intent-to-implement for this.

Philip Jägenstedt

unread,
Mar 16, 2015, 12:39:55 AM3/16/15
to Douglas Stockwell, Jinho Bang, blink-dev, joerg.b...@foresee.biz
Implementing convertPointFromNode() sounds reasonable to me, although the spec is not done:

In the previous Intent to Implement: Geometry Interfaces there were concerns about performance, but perhaps with a new intent for a specific API using DOMPoint we could come to some resolution on that issue.

Philip

act...@gmail.com

unread,
Jul 13, 2016, 4:15:10 PM7/13/16
to blink-dev
I don't know what reason for not implementation? Mozilla monopoly?
Reply all
Reply to author
Forward
0 new messages