Documentation ¶
Overview ¶
Package webani defines a model for synchronization and timing of changes to the presentation of a Web page.
Index ¶
- type Animation
- func (_this *Animation) AddEventCancel(listener func(event *AnimationPlaybackEvent, currentTarget *Animation)) js.Func
- func (_this *Animation) AddEventFinish(listener func(event *AnimationPlaybackEvent, currentTarget *Animation)) js.Func
- func (_this *Animation) Cancel()
- func (_this *Animation) CurrentTime() *float64
- func (_this *Animation) Effect() *AnimationEffect
- func (_this *Animation) Finish()
- func (_this *Animation) Finished() *javascript.Promise
- func (_this *Animation) Id() string
- func (_this *Animation) OnCancel() domcore.EventHandlerFunc
- func (_this *Animation) OnFinish() domcore.EventHandlerFunc
- func (_this *Animation) Pause()
- func (_this *Animation) Pending() bool
- func (_this *Animation) Play()
- func (_this *Animation) PlayState() AnimationPlayState
- func (_this *Animation) PlaybackRate() float64
- func (_this *Animation) Ready() *javascript.Promise
- func (_this *Animation) Reverse()
- func (_this *Animation) SetCurrentTime(value *float64)
- func (_this *Animation) SetEffect(value *AnimationEffect)
- func (_this *Animation) SetId(value string)
- func (_this *Animation) SetOnCancel(listener func(event *AnimationPlaybackEvent, currentTarget *Animation)) js.Func
- func (_this *Animation) SetOnFinish(listener func(event *AnimationPlaybackEvent, currentTarget *Animation)) js.Func
- func (_this *Animation) SetPlaybackRate(value float64)
- func (_this *Animation) SetStartTime(value *float64)
- func (_this *Animation) SetTimeline(value *AnimationTimeline)
- func (_this *Animation) StartTime() *float64
- func (_this *Animation) Timeline() *AnimationTimeline
- func (_this *Animation) UpdatePlaybackRate(playbackRate float64)
- type AnimationEffect
- type AnimationPlayState
- type AnimationPlaybackEvent
- type AnimationPlaybackEventInit
- type AnimationTimeline
- type BaseComputedKeyframe
- type BaseKeyframe
- type BasePropertyIndexedKeyframe
- type CompositeOperation
- type CompositeOperationOrAuto
- type ComputedEffectTiming
- type DocumentTimeline
- type DocumentTimelineOptions
- type EffectTiming
- type FillMode
- type IterationCompositeOperation
- type KeyframeAnimationOptions
- type KeyframeEffect
- func (_this *KeyframeEffect) Composite() CompositeOperation
- func (_this *KeyframeEffect) GetKeyframes() (_result []*javascript.Object)
- func (_this *KeyframeEffect) IterationComposite() IterationCompositeOperation
- func (_this *KeyframeEffect) SetComposite(value CompositeOperation)
- func (_this *KeyframeEffect) SetIterationComposite(value IterationCompositeOperation)
- func (_this *KeyframeEffect) SetKeyframes(keyframes *javascript.Object)
- func (_this *KeyframeEffect) SetTarget(value *Union)
- func (_this *KeyframeEffect) Target() *Union
- type KeyframeEffectOptions
- type OptionalEffectTiming
- type PlaybackDirection
- type Union
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Animation ¶
type Animation struct {
domcore.EventTarget
}
class: Animation
func AnimationFromJS ¶
AnimationFromJS is casting a js.Value into Animation.
func AnimationFromWrapper ¶
AnimationFromJS is casting from something that holds a js.Value into Animation.
func NewAnimation ¶
func NewAnimation(effect *AnimationEffect, timeline *AnimationTimeline) (_result *Animation)
func (*Animation) AddEventCancel ¶
func (_this *Animation) AddEventCancel(listener func(event *AnimationPlaybackEvent, currentTarget *Animation)) js.Func
AddCancel is adding doing AddEventListener for 'Cancel' on target. This method is returning allocated javascript function that need to be released.
func (*Animation) AddEventFinish ¶
func (_this *Animation) AddEventFinish(listener func(event *AnimationPlaybackEvent, currentTarget *Animation)) js.Func
AddFinish is adding doing AddEventListener for 'Finish' on target. This method is returning allocated javascript function that need to be released.
func (*Animation) CurrentTime ¶
CurrentTime returning attribute 'currentTime' with type float64 (idl: double).
func (*Animation) Effect ¶
func (_this *Animation) Effect() *AnimationEffect
Effect returning attribute 'effect' with type AnimationEffect (idl: AnimationEffect).
func (*Animation) Finished ¶
func (_this *Animation) Finished() *javascript.Promise
Finished returning attribute 'finished' with type javascript.Promise (idl: Promise).
func (*Animation) OnCancel ¶
func (_this *Animation) OnCancel() domcore.EventHandlerFunc
OnCancel returning attribute 'oncancel' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*Animation) OnFinish ¶
func (_this *Animation) OnFinish() domcore.EventHandlerFunc
OnFinish returning attribute 'onfinish' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*Animation) PlayState ¶
func (_this *Animation) PlayState() AnimationPlayState
PlayState returning attribute 'playState' with type AnimationPlayState (idl: AnimationPlayState).
func (*Animation) PlaybackRate ¶
PlaybackRate returning attribute 'playbackRate' with type float64 (idl: double).
func (*Animation) Ready ¶
func (_this *Animation) Ready() *javascript.Promise
Ready returning attribute 'ready' with type javascript.Promise (idl: Promise).
func (*Animation) SetCurrentTime ¶
SetCurrentTime setting attribute 'currentTime' with type float64 (idl: double).
func (*Animation) SetEffect ¶
func (_this *Animation) SetEffect(value *AnimationEffect)
SetEffect setting attribute 'effect' with type AnimationEffect (idl: AnimationEffect).
func (*Animation) SetOnCancel ¶
func (_this *Animation) SetOnCancel(listener func(event *AnimationPlaybackEvent, currentTarget *Animation)) js.Func
SetOnCancel is assigning a function to 'oncancel'. This This method is returning allocated javascript function that need to be released.
func (*Animation) SetOnFinish ¶
func (_this *Animation) SetOnFinish(listener func(event *AnimationPlaybackEvent, currentTarget *Animation)) js.Func
SetOnFinish is assigning a function to 'onfinish'. This This method is returning allocated javascript function that need to be released.
func (*Animation) SetPlaybackRate ¶
SetPlaybackRate setting attribute 'playbackRate' with type float64 (idl: double).
func (*Animation) SetStartTime ¶
SetStartTime setting attribute 'startTime' with type float64 (idl: double).
func (*Animation) SetTimeline ¶
func (_this *Animation) SetTimeline(value *AnimationTimeline)
SetTimeline setting attribute 'timeline' with type AnimationTimeline (idl: AnimationTimeline).
func (*Animation) StartTime ¶
StartTime returning attribute 'startTime' with type float64 (idl: double).
func (*Animation) Timeline ¶
func (_this *Animation) Timeline() *AnimationTimeline
Timeline returning attribute 'timeline' with type AnimationTimeline (idl: AnimationTimeline).
func (*Animation) UpdatePlaybackRate ¶
type AnimationEffect ¶
type AnimationEffect struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: AnimationEffect
func AnimationEffectFromJS ¶
func AnimationEffectFromJS(value js.Value) *AnimationEffect
AnimationEffectFromJS is casting a js.Value into AnimationEffect.
func AnimationEffectFromWrapper ¶
func AnimationEffectFromWrapper(input core.Wrapper) *AnimationEffect
AnimationEffectFromJS is casting from something that holds a js.Value into AnimationEffect.
func (*AnimationEffect) GetComputedTiming ¶
func (_this *AnimationEffect) GetComputedTiming() (_result *ComputedEffectTiming)
func (*AnimationEffect) GetTiming ¶
func (_this *AnimationEffect) GetTiming() (_result *EffectTiming)
func (*AnimationEffect) JSValue ¶
func (_this *AnimationEffect) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*AnimationEffect) UpdateTiming ¶
func (_this *AnimationEffect) UpdateTiming(timing *OptionalEffectTiming)
type AnimationPlayState ¶
type AnimationPlayState int
enum: AnimationPlayState
const ( IdleAnimationPlayState AnimationPlayState = iota RunningAnimationPlayState PausedAnimationPlayState FinishedAnimationPlayState )
func AnimationPlayStateFromJS ¶
func AnimationPlayStateFromJS(value js.Value) AnimationPlayState
AnimationPlayStateFromJS is converting a javascript value into a AnimationPlayState enum value.
func (*AnimationPlayState) JSValue ¶
func (this *AnimationPlayState) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (AnimationPlayState) Value ¶
func (this AnimationPlayState) Value() string
Value is converting this into javascript defined string value
type AnimationPlaybackEvent ¶
class: AnimationPlaybackEvent
func AnimationPlaybackEventFromJS ¶
func AnimationPlaybackEventFromJS(value js.Value) *AnimationPlaybackEvent
AnimationPlaybackEventFromJS is casting a js.Value into AnimationPlaybackEvent.
func AnimationPlaybackEventFromWrapper ¶
func AnimationPlaybackEventFromWrapper(input core.Wrapper) *AnimationPlaybackEvent
AnimationPlaybackEventFromJS is casting from something that holds a js.Value into AnimationPlaybackEvent.
func NewAnimationPlaybackEvent ¶
func NewAnimationPlaybackEvent(_type string, eventInitDict *AnimationPlaybackEventInit) (_result *AnimationPlaybackEvent)
func (*AnimationPlaybackEvent) CurrentTime ¶
func (_this *AnimationPlaybackEvent) CurrentTime() *float64
CurrentTime returning attribute 'currentTime' with type float64 (idl: double).
func (*AnimationPlaybackEvent) TimelineTime ¶
func (_this *AnimationPlaybackEvent) TimelineTime() *float64
TimelineTime returning attribute 'timelineTime' with type float64 (idl: double).
type AnimationPlaybackEventInit ¶
type AnimationPlaybackEventInit struct { Bubbles bool Cancelable bool Composed bool CurrentTime *float64 TimelineTime *float64 }
dictionary: AnimationPlaybackEventInit
func AnimationPlaybackEventInitFromJS ¶
func AnimationPlaybackEventInitFromJS(value js.Value) *AnimationPlaybackEventInit
AnimationPlaybackEventInitFromJS is allocating a new AnimationPlaybackEventInit object and copy all values in the value javascript object.
func (*AnimationPlaybackEventInit) JSValue ¶
func (_this *AnimationPlaybackEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type AnimationTimeline ¶
type AnimationTimeline struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: AnimationTimeline
func AnimationTimelineFromJS ¶
func AnimationTimelineFromJS(value js.Value) *AnimationTimeline
AnimationTimelineFromJS is casting a js.Value into AnimationTimeline.
func AnimationTimelineFromWrapper ¶
func AnimationTimelineFromWrapper(input core.Wrapper) *AnimationTimeline
AnimationTimelineFromJS is casting from something that holds a js.Value into AnimationTimeline.
func (*AnimationTimeline) CurrentTime ¶
func (_this *AnimationTimeline) CurrentTime() *float64
CurrentTime returning attribute 'currentTime' with type float64 (idl: double).
func (*AnimationTimeline) JSValue ¶
func (_this *AnimationTimeline) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
type BaseComputedKeyframe ¶
type BaseComputedKeyframe struct { Offset *float64 ComputedOffset float64 Easing string Composite CompositeOperationOrAuto }
dictionary: BaseComputedKeyframe
func BaseComputedKeyframeFromJS ¶
func BaseComputedKeyframeFromJS(value js.Value) *BaseComputedKeyframe
BaseComputedKeyframeFromJS is allocating a new BaseComputedKeyframe object and copy all values in the value javascript object.
func (*BaseComputedKeyframe) JSValue ¶
func (_this *BaseComputedKeyframe) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type BaseKeyframe ¶
type BaseKeyframe struct { Offset *float64 Easing string Composite CompositeOperationOrAuto }
dictionary: BaseKeyframe
func BaseKeyframeFromJS ¶
func BaseKeyframeFromJS(value js.Value) *BaseKeyframe
BaseKeyframeFromJS is allocating a new BaseKeyframe object and copy all values in the value javascript object.
func (*BaseKeyframe) JSValue ¶
func (_this *BaseKeyframe) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type BasePropertyIndexedKeyframe ¶
dictionary: BasePropertyIndexedKeyframe
func BasePropertyIndexedKeyframeFromJS ¶
func BasePropertyIndexedKeyframeFromJS(value js.Value) *BasePropertyIndexedKeyframe
BasePropertyIndexedKeyframeFromJS is allocating a new BasePropertyIndexedKeyframe object and copy all values in the value javascript object.
func (*BasePropertyIndexedKeyframe) JSValue ¶
func (_this *BasePropertyIndexedKeyframe) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type CompositeOperation ¶
type CompositeOperation int
enum: CompositeOperation
const ( ReplaceCompositeOperation CompositeOperation = iota AddCompositeOperation AccumulateCompositeOperation )
func CompositeOperationFromJS ¶
func CompositeOperationFromJS(value js.Value) CompositeOperation
CompositeOperationFromJS is converting a javascript value into a CompositeOperation enum value.
func (*CompositeOperation) JSValue ¶
func (this *CompositeOperation) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (CompositeOperation) Value ¶
func (this CompositeOperation) Value() string
Value is converting this into javascript defined string value
type CompositeOperationOrAuto ¶
type CompositeOperationOrAuto int
enum: CompositeOperationOrAuto
const ( ReplaceCompositeOperationOrAuto CompositeOperationOrAuto = iota AddCompositeOperationOrAuto AccumulateCompositeOperationOrAuto AutoCompositeOperationOrAuto )
func CompositeOperationOrAutoFromJS ¶
func CompositeOperationOrAutoFromJS(value js.Value) CompositeOperationOrAuto
CompositeOperationOrAutoFromJS is converting a javascript value into a CompositeOperationOrAuto enum value.
func (*CompositeOperationOrAuto) JSValue ¶
func (this *CompositeOperationOrAuto) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (CompositeOperationOrAuto) Value ¶
func (this CompositeOperationOrAuto) Value() string
Value is converting this into javascript defined string value
type ComputedEffectTiming ¶
type ComputedEffectTiming struct { Delay float64 EndDelay float64 Fill FillMode IterationStart float64 Iterations float64 Duration *Union Direction PlaybackDirection Easing string EndTime float64 ActiveDuration float64 LocalTime *float64 Progress *float64 CurrentIteration *float64 }
dictionary: ComputedEffectTiming
func ComputedEffectTimingFromJS ¶
func ComputedEffectTimingFromJS(value js.Value) *ComputedEffectTiming
ComputedEffectTimingFromJS is allocating a new ComputedEffectTiming object and copy all values in the value javascript object.
func (*ComputedEffectTiming) JSValue ¶
func (_this *ComputedEffectTiming) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type DocumentTimeline ¶
type DocumentTimeline struct {
AnimationTimeline
}
class: DocumentTimeline
func DocumentTimelineFromJS ¶
func DocumentTimelineFromJS(value js.Value) *DocumentTimeline
DocumentTimelineFromJS is casting a js.Value into DocumentTimeline.
func DocumentTimelineFromWrapper ¶
func DocumentTimelineFromWrapper(input core.Wrapper) *DocumentTimeline
DocumentTimelineFromJS is casting from something that holds a js.Value into DocumentTimeline.
func NewDocumentTimeline ¶
func NewDocumentTimeline(options *DocumentTimelineOptions) (_result *DocumentTimeline)
type DocumentTimelineOptions ¶
type DocumentTimelineOptions struct {
OriginTime float64
}
dictionary: DocumentTimelineOptions
func DocumentTimelineOptionsFromJS ¶
func DocumentTimelineOptionsFromJS(value js.Value) *DocumentTimelineOptions
DocumentTimelineOptionsFromJS is allocating a new DocumentTimelineOptions object and copy all values in the value javascript object.
func (*DocumentTimelineOptions) JSValue ¶
func (_this *DocumentTimelineOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type EffectTiming ¶
type EffectTiming struct { Delay float64 EndDelay float64 Fill FillMode IterationStart float64 Iterations float64 Duration *Union Direction PlaybackDirection Easing string }
dictionary: EffectTiming
func EffectTimingFromJS ¶
func EffectTimingFromJS(value js.Value) *EffectTiming
EffectTimingFromJS is allocating a new EffectTiming object and copy all values in the value javascript object.
func (*EffectTiming) JSValue ¶
func (_this *EffectTiming) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type FillMode ¶
type FillMode int
enum: FillMode
func FillModeFromJS ¶
FillModeFromJS is converting a javascript value into a FillMode enum value.
type IterationCompositeOperation ¶
type IterationCompositeOperation int
enum: IterationCompositeOperation
const ( ReplaceIterationCompositeOperation IterationCompositeOperation = iota AccumulateIterationCompositeOperation )
func IterationCompositeOperationFromJS ¶
func IterationCompositeOperationFromJS(value js.Value) IterationCompositeOperation
IterationCompositeOperationFromJS is converting a javascript value into a IterationCompositeOperation enum value.
func (*IterationCompositeOperation) JSValue ¶
func (this *IterationCompositeOperation) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (IterationCompositeOperation) Value ¶
func (this IterationCompositeOperation) Value() string
Value is converting this into javascript defined string value
type KeyframeAnimationOptions ¶
type KeyframeAnimationOptions struct { Delay float64 EndDelay float64 Fill FillMode IterationStart float64 Iterations float64 Duration *Union Direction PlaybackDirection Easing string IterationComposite IterationCompositeOperation Composite CompositeOperation Id string }
dictionary: KeyframeAnimationOptions
func KeyframeAnimationOptionsFromJS ¶
func KeyframeAnimationOptionsFromJS(value js.Value) *KeyframeAnimationOptions
KeyframeAnimationOptionsFromJS is allocating a new KeyframeAnimationOptions object and copy all values in the value javascript object.
func (*KeyframeAnimationOptions) JSValue ¶
func (_this *KeyframeAnimationOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type KeyframeEffect ¶
type KeyframeEffect struct {
AnimationEffect
}
class: KeyframeEffect
func KeyframeEffectFromJS ¶
func KeyframeEffectFromJS(value js.Value) *KeyframeEffect
KeyframeEffectFromJS is casting a js.Value into KeyframeEffect.
func KeyframeEffectFromWrapper ¶
func KeyframeEffectFromWrapper(input core.Wrapper) *KeyframeEffect
KeyframeEffectFromJS is casting from something that holds a js.Value into KeyframeEffect.
func NewKeyframeEffect ¶
func NewKeyframeEffect(source *KeyframeEffect) (_result *KeyframeEffect)
func (*KeyframeEffect) Composite ¶
func (_this *KeyframeEffect) Composite() CompositeOperation
Composite returning attribute 'composite' with type CompositeOperation (idl: CompositeOperation).
func (*KeyframeEffect) GetKeyframes ¶
func (_this *KeyframeEffect) GetKeyframes() (_result []*javascript.Object)
func (*KeyframeEffect) IterationComposite ¶
func (_this *KeyframeEffect) IterationComposite() IterationCompositeOperation
IterationComposite returning attribute 'iterationComposite' with type IterationCompositeOperation (idl: IterationCompositeOperation).
func (*KeyframeEffect) SetComposite ¶
func (_this *KeyframeEffect) SetComposite(value CompositeOperation)
SetComposite setting attribute 'composite' with type CompositeOperation (idl: CompositeOperation).
func (*KeyframeEffect) SetIterationComposite ¶
func (_this *KeyframeEffect) SetIterationComposite(value IterationCompositeOperation)
SetIterationComposite setting attribute 'iterationComposite' with type IterationCompositeOperation (idl: IterationCompositeOperation).
func (*KeyframeEffect) SetKeyframes ¶
func (_this *KeyframeEffect) SetKeyframes(keyframes *javascript.Object)
func (*KeyframeEffect) SetTarget ¶
func (_this *KeyframeEffect) SetTarget(value *Union)
SetTarget setting attribute 'target' with type Union (idl: Union).
func (*KeyframeEffect) Target ¶
func (_this *KeyframeEffect) Target() *Union
Target returning attribute 'target' with type Union (idl: Union).
type KeyframeEffectOptions ¶
type KeyframeEffectOptions struct { Delay float64 EndDelay float64 Fill FillMode IterationStart float64 Iterations float64 Duration *Union Direction PlaybackDirection Easing string IterationComposite IterationCompositeOperation Composite CompositeOperation }
dictionary: KeyframeEffectOptions
func KeyframeEffectOptionsFromJS ¶
func KeyframeEffectOptionsFromJS(value js.Value) *KeyframeEffectOptions
KeyframeEffectOptionsFromJS is allocating a new KeyframeEffectOptions object and copy all values in the value javascript object.
func (*KeyframeEffectOptions) JSValue ¶
func (_this *KeyframeEffectOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type OptionalEffectTiming ¶
type OptionalEffectTiming struct { Delay float64 EndDelay float64 Fill FillMode IterationStart float64 Iterations float64 Duration *Union Direction PlaybackDirection Easing string }
dictionary: OptionalEffectTiming
func OptionalEffectTimingFromJS ¶
func OptionalEffectTimingFromJS(value js.Value) *OptionalEffectTiming
OptionalEffectTimingFromJS is allocating a new OptionalEffectTiming object and copy all values in the value javascript object.
func (*OptionalEffectTiming) JSValue ¶
func (_this *OptionalEffectTiming) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type PlaybackDirection ¶
type PlaybackDirection int
enum: PlaybackDirection
const ( NormalPlaybackDirection PlaybackDirection = iota ReversePlaybackDirection AlternatePlaybackDirection AlternateReversePlaybackDirection )
func PlaybackDirectionFromJS ¶
func PlaybackDirectionFromJS(value js.Value) PlaybackDirection
PlaybackDirectionFromJS is converting a javascript value into a PlaybackDirection enum value.
func (*PlaybackDirection) JSValue ¶
func (this *PlaybackDirection) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (PlaybackDirection) Value ¶
func (this PlaybackDirection) Value() string
Value is converting this into javascript defined string value