This file tracks changes made to the Enyo API since the last public release. While this list should not be considered exhaustive, we hope it will provide useful guidance for those maintaining existing Enyo apps, as well as those planning new ones.
Since the release of Enyo 2.5.1.1, we have introduced support for resolution
independence, a set of new abilities that allow apps to automatically scale
themselves to run under different screen resolutions. Within Enyo core, this
is achieved largely through code in the new Node module
less-plugin-resolution-independence
(under tools/minifier/node_modules
) and
in resolution.js
, home of the new enyo.ri
namespace.
In addition to the work on resolution independence, we have made the following API changes in Enyo core:
-
Added
enyo.Loop
, a run-loop based on requestAnimationFrame. -
Added work-in-progress kinds
enyo.BackgroundTaskManager
,enyo.PriorityQueue
, andenyo.SystemMonitor
, and work-in-progress mixinenyo.TaskManagerSupport
. -
Added work-in-progress kind
enyo.LightPanels
and work-in-progress mixinenyo.ViewPreloadSupport
. -
In
enyo.Animator
, addedcomplete()
method. -
In
enyo.Control
:-
Added accessibility API for voice readout (text-to-speech). This includes configuration properties
accessibilityLabel
,accessibilityAlert
, andaccessibilityDisabled
, along with their associated getter and setter methods. -
Added
renderOnShow
property. If set totrue
, the control will not be rendered until itsshowing
property has also been set totrue
. -
Added second parameter (
preventRooting
) torenderInto()
.
-
-
In
enyo.DataList
, added new API methodgetVisibleControlRange()
and related configuration propertyvisibleThreshold
. -
In
enyo.DataRepeater
, added newselectionType
property. -
In
enyo.gesture.drag
, addedconfigureHoldPulse()
, which may be used to define custom hold events. -
In
enyo.Scroller
, addedstop()
method. -
In
enyo.Scroller
andenyo.TouchScrollStrategy
, addedremeasure()
method. -
In
enyo.Select
, added new configuration propertiessize
,multiple
, anddisabled
. -
In
enyo.SpriteAnimation
, added support for JavaScript timing-based animation, which may be enabled by setting the newuseCssAnimation
flag tofalse
. -
In
enyo.UiComponent
, addedgetNextControl()
method, which returns a control's next sibling control.