A module used to change the information of user action entered by various input devices such as touch screen or mouse into the logical virtual coordinates.
This add setOptions and setAxis methods to change the options related to the Axes instance to simplify use cases like this.
Changing Options
AxesOption
Changing easing, interruptable can be applied to an animation currently in progress.
Changing maximumDuration, minimumDuration, deceleration applies when calculating to play the animation on next time. If you want to change the remaining time of an animation that is playing too, you may use updateAnimation method.
Changing round, nested can applied after inputs that made after changing these options.
AxisOption
Changing range, bounce, circular can applied after inputs that made after changing these options.
If the current position is outside the range set in the new option, it does not move the coordinates within the range directly since it can trigger change event.
However, when next user input occur, new range will be applied in the process of calculating the new position. Triggering change event to position within range.
Details
Among the cases of using Axes, there is a case of directly changing the options of an Axes instance such like below.
This add
setOptions
andsetAxis
methods to change the options related to the Axes instance to simplify use cases like this.Changing Options
AxesOption
Changing
easing
,interruptable
can be applied to an animation currently in progress. ChangingmaximumDuration
,minimumDuration
,deceleration
applies when calculating to play the animation on next time. If you want to change the remaining time of an animation that is playing too, you may useupdateAnimation
method. Changinground
,nested
can applied after inputs that made after changing these options.AxisOption
Changing
range
,bounce
,circular
can applied after inputs that made after changing these options. If the current position is outside the range set in the new option, it does not move the coordinates within the range directly since it can triggerchange
event. However, when next user input occur, new range will be applied in the process of calculating the new position. Triggeringchange
event to position within range.