victory v35.4.0 Release Notes

Release Date: 2020-11-25 // over 3 years ago
    • #1748 - Thank you @Hypnosphi!

    ๐Ÿ‘Œ Support for Global Events

    ๐Ÿš€ This release adds a concept of global events that are attached to window rather than to any of the elements rendered by Victory components. Global events are only supported for "parent" events that would normally be attached to svg elements rendered by Victory's containerComponents. Events that should be global can be flagged by including onGlobal in the name of the event handler. So, for example, use onGlobalMouseUp rather than onMouseUp to create a global mouse up handler.

    VictoryBrushContainer uses Global Events

    ๐Ÿšš VictoryBrushContainer now uses global events in its defaultEvents so that brushing continues even as the user's mouse moves outside of the chart area.