fire pan/zoom events only when inside a defined g - svgpanzoom

Basically i'd like to fire pan/zoom events only when mouse\pinch occour on a specified group.
PS: the layer demo allow transformation on a group but panning-zooming events still propagate from the svg tag

Feature was added in version 3.2.5.

Related

View Cube Event

I am searching for an event that gets fired when the user interacts with the view cube.
Use Case: I have drawn markups in the viewer (Using markupscore extension) and set the default interaction with the viewer on. So whenever a user rotates the view with the help of view cube I want to remove the markups, for which I need the event that is getting fired when the user interacts with view cube.
Unfortunately there's no events available specific to reflect user interaction with View cube - events like CAMERA_CHANGE_EVENT, RENDER_PRESENTED_EVENT etc would get fired whenever navigation and/or rendering takes place, regardless of what the user does with the viewcube ...
I'd propose to Engineering to consider implementing specific events for viewcube interaction ...
In the meantime as workaround you can try to capture the mouse events by adding a listener for the viewcube UI element, something like:
const viewCube = Unfortunately there's no events available specific to reflect user interaction with View cube - `CAMERA_CHANGE_EVENT` would get fired whenever
I'd propose to Engineering to consider
In the meantime as workaround you can try to capture the mouse events by adding a listener for the viewcube UI element, something like:
NOP_VIEWER.addEventListener(Autodesk.Viewing.VIEW_CUBE_CREATED_EVENT, ()=>{ // wait till viewcube is ready ...
const viewCube = NOP_VIEWER.getExtension('Autodesk.ViewCubeUi')
viewCube.container.addEventListener('click', handler ...) // or work on child elements through the container
//...
})

What is the use of VIDEOEXPOSE in pygame?

I dont really understand the utility of this event type. It seems to appear at the same time as the VIDEORESIZE event but it does not have any attribute like the QUIT event. The official documentation of pygame events does not talk about this one http://www.pygame.org/docs/ref/event.html... Does anyone know why this event type was created ?
From the pygame.display documentation:
Hardware displays that draw direct to the screen will get pygame.VIDEOEXPOSE events when portions of the window must be redrawn.

What is the invalidateProperties(), invalidateSize() and invalidateDisplayList() functions did while extending a component in adobe flex/air?

What invalidateProperties(), invalidateSize() and invalidateDisplayList() methods are did when extending a component in adobe flex/air ?.
And why these are necessary?
As per the documentation, these functions signal flex/flash to call another function before updating and rendering the display list. This "other function" seems to be for validation (and possibly altering the values if they're incorrect). So by calling an invalidate function, you force a recalculation. Or, in other words, a redraw. This removes any left over graphical artifacts.
That's my explanation via the documentation. Perhaps someone with more experience can build upon my answer.
All these components are based upon the RENDER event so no matter how many changes they go through (ex: x, y, width, etc ...) they are drawn only once per frame. But to get the RENDER event to trigger for each component a stage.invalidate() must be called and parsed on a per component basis. All the component invalidate methods allow you to force a redrawing of the component by skying the RENDER event step or in other cases by starting the RENDER event workflow.

how to know when Map control was first manipulated?

I am using the Map control in Windows Phone 8.
I need to implement a page where user can select his location using the map control.
I am trying to know when the app was first manipulated by the user.
Some background info:
I saw that when the control is shown, it automatically centers the world map, and CenterChanged event is raised.
I am not able to understand how ManipulationStarted, ManipulationDelta and ManipulationCompleted work.
the first time I drag, ManipulationStarted is not called, only ManipulationCompleted.
I could consider the first manipulation by user as being the 2nd time the CenterChanged is fired.
But this is a hack or a guess, I am not happy not having a good understanding how it works.
The Map control intercepts and handles Manipulation events and as such you don't get all of them. Remember, once routed events are marked at e.Handled=true they no longer bubble up.
Depending on your Scenario WP8 exposes the UseOptimizedManipulationRouting property which might prove useful. Setting UseOptimizedManipulationRouting=false causes Map, Pivot and other controls to not swallow events for nested controls.
If that doesn't help, have a look at the following Nokia Wiki article where the author ran into the same problem as you did and used Touch.FrameReported to get out of it # http://www.developer.nokia.com/Community/Wiki/Real-time_rotation_of_the_Windows_Phone_8_Map_Control

Handle qooxdoo inline widget events in jQuery

I've embedded a qooxdoo widget (the table) within an existing web app using inline integration (http://qooxdoo.org/documentation/0.8/ui_inline).
Is it possible to raise an event in the widget that can be handled externally within the main web app? Specifically I want to raise a "row selected" event when the user selects an item in the table.
Thanks,
Paul
afaik the table selection model has the event "changeSelection".
tableInstance.getSelectionModel().addListener("changeSelection", yourListener, yourContext);
With this event you can get the necessary infos within your listener method and fire an event to a DOM element which any JS library can use to listen to.
qx.event.Registration.fireEvent(document.body, "rowSelected", qx.event.type.Event);
You can fire the event at every DOM element you like to. In your case you can use jQuery to listen to the event and get the infos.
Hope that helps you further.
Regards,
Alex