Class: H_ui_big_view

H_ui_big_view

Full-size image viewer: the framework's own modal window holding an image at its nominal size, with a zoom tool (+ −, wheel, two-finger pinch) and a move tool (drag once zoomed).
Built on H_ui_window, so the theme's modal rules apply and Esc, the mask and the close button behave as for any modal; the content also carries the calling module's class, so a module can adjust it without the toolkit knowing about it.
Opened by H_ui.show_big_view(), fed by Media::get_html() with the 'big_view' option.

new H_ui_big_view()

ui.js, line 2057

Methods

staticH_ui_big_view.pinch_distance(touches){number}

ui.js, line 2145
Distance between the two first fingers of a pinch.
Name Type Description
touches TouchList The touches of the event.
Returns:
Type Description
number The distance, never zero.

show_image(src, module_class)

ui.js, line 2156
Loads an image and opens the window on it, at its nominal size.
Name Type Default Description
src string The image url.
module_class string '' optional Extra class on the content, named after the calling module.