neft
Version:
Universal Platform
52 lines (35 loc) • 1.27 kB
text/coffeescript
'use strict'
module.exports = (impl) ->
{Types, items} = impl
DATA =
progress: 0
internalPropertyName: ''
propertySetter: null
isIntegerProperty: false
easing: null
easingType: 'Linear'
exports =
DATA: DATA
createData: impl.utils.createDataCloner 'Animation', DATA
create: (data) ->
impl.Types.Animation.create.call @, data
exports.setPropertyAnimationEasingType.call @, 'Linear'
setPropertyAnimationTarget: (val) ->
setPropertyAnimationProperty: do (_super = impl.setPropertyAnimationProperty) -> (val) ->
_super.call @, val
.dirty = true
return
setPropertyAnimationDuration: (val) ->
setPropertyAnimationStartDelay: (val) ->
setPropertyAnimationLoopDelay: (val) ->
setPropertyAnimationFrom: (val) ->
setPropertyAnimationTo: (val) ->
setPropertyAnimationUpdateData: (val) ->
setPropertyAnimationUpdateProperty: (val) ->
.dirty = true
setPropertyAnimationEasingType: do (_super = impl.setPropertyAnimationEasingType) -> (val) ->
_super.call @, val
.easingType = val
.elem?.easing = val
getPropertyAnimationProgress: ->
.progress