Version 2.8.0
This relase adds some features introduced in Tabris.js 3.0 and 3.1 to Tabris.js 2.x. Like usual it also includes some minor bugfixes.
ImageBitmap and drawImage
Until now the ConvasContext
class implemented by Tabris.js completely lacked the w3c standard method drawImage
. The new drawImage
method takes instances of ImageBitmap
, which represent uncrompressed in-memory images. ImageBitmap
objects can be created with the asynchronous createImageBitmap
method from a Blob
contining a JPEG or PNG image.
ImageBitmap
is a W3C standard and supported by all three Tabris.js 2 platforms.
Widget property "absoluteBounds"
The new property absoluteBounds
provides widget bounds relative to the tabris.ui.contentView
widget instead of the direct parent like bounds
does.
ScrollView properties "scrollXState" and "scrollYState"
The ScrollView adds the properties scrollXState
and scrollYState
which indicate whether the view is currently, dragging, scrolling or in a resting position. Matching change events are available to observe these state changes while in motion.