Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#12819 closed enhancement (fixed)

[patch][ccla] It should be possible to get the gfx shape that is the target of an input event.

Reported by: Patrick Ruzand Owned by: Eugene Lazutkin
Priority: high Milestone: 1.7
Component: DojoX GFX Version: 1.6.0
Keywords: 1.7-mobile Cc: pruzand@…
Blocked By: Blocking:

Description

Currently, there's no mean in gfx to easily get the target shape of an input event in the event handler. In some cases, a closure-based approach could be used, but it does not answer all the use cases (for example a event handler on a Group that listens to event on children via bubbling). The final purpose of this patch is to enable developer to easily have access to the gfx target of an input event. For this, the patch includes: o a shape registry that maps gfx shape to uid o a binding between the shape rawnode and the shape uid o an input event "normalization" that adds a 'gfxTarget' property to the event that references the gfx shape targeted by the event.

Attachments (3)

gfxtarget+registry.patch (17.9 KB) - added by Patrick Ruzand 9 years ago.
patch + tests
12819.patch (20.2 KB) - added by Patrick Ruzand 9 years ago.
some code cleanup according to Eugene's review.
12819.1.patch (16.3 KB) - added by Patrick Ruzand 9 years ago.
renaming.

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by Patrick Ruzand

Attachment: gfxtarget+registry.patch added

patch + tests

Changed 9 years ago by Patrick Ruzand

Attachment: 12819.patch added

some code cleanup according to Eugene's review.

Changed 9 years ago by Patrick Ruzand

Attachment: 12819.1.patch added

renaming.

comment:1 Changed 9 years ago by Chris Mitchell

Resolution: fixed
Status: newclosed

(In [24607]) fixes #12819 - gfx target registry !strict

comment:2 Changed 9 years ago by bill

Milestone: tbd1.7
Note: See TracTickets for help on using tickets.