webapi: github.com/gowebapi/webapi/css/animations/webani Index | Files

package webani

import "github.com/gowebapi/webapi/css/animations/webani"

Package webani defines a model for synchronization and timing of changes to the presentation of a Web page.

Index

Package Files

doc.go webani.go

type Animation Uses

type Animation struct {
    domcore.EventTarget
}

class: Animation

func AnimationFromJS Uses

func AnimationFromJS(value js.Wrapper) *Animation

AnimationFromJS is casting a js.Wrapper into Animation.

func NewAnimation Uses

func NewAnimation(effect *AnimationEffect, timeline *AnimationTimeline) (_result *Animation)

func (*Animation) AddEventCancel Uses

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 Uses

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) Cancel Uses

func (_this *Animation) Cancel()

func (*Animation) CurrentTime Uses

func (_this *Animation) CurrentTime() *float64

CurrentTime returning attribute 'currentTime' with type float64 (idl: double).

func (*Animation) Effect Uses

func (_this *Animation) Effect() *AnimationEffect

Effect returning attribute 'effect' with type AnimationEffect (idl: AnimationEffect).

func (*Animation) Finish Uses

func (_this *Animation) Finish()

func (*Animation) Finished Uses

func (_this *Animation) Finished() *javascript.Promise

Finished returning attribute 'finished' with type javascript.Promise (idl: Promise).

func (*Animation) Id Uses

func (_this *Animation) Id() string

Id returning attribute 'id' with type string (idl: DOMString).

func (*Animation) OnCancel Uses

func (_this *Animation) OnCancel() domcore.EventHandlerFunc

OnCancel returning attribute 'oncancel' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*Animation) OnFinish Uses

func (_this *Animation) OnFinish() domcore.EventHandlerFunc

OnFinish returning attribute 'onfinish' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*Animation) Pause Uses

func (_this *Animation) Pause()

func (*Animation) Pending Uses

func (_this *Animation) Pending() bool

Pending returning attribute 'pending' with type bool (idl: boolean).

func (*Animation) Play Uses

func (_this *Animation) Play()

func (*Animation) PlayState Uses

func (_this *Animation) PlayState() AnimationPlayState

PlayState returning attribute 'playState' with type AnimationPlayState (idl: AnimationPlayState).

func (*Animation) PlaybackRate Uses

func (_this *Animation) PlaybackRate() float64

PlaybackRate returning attribute 'playbackRate' with type float64 (idl: double).

func (*Animation) Ready Uses

func (_this *Animation) Ready() *javascript.Promise

Ready returning attribute 'ready' with type javascript.Promise (idl: Promise).

func (*Animation) Reverse Uses

func (_this *Animation) Reverse()

func (*Animation) SetCurrentTime Uses

func (_this *Animation) SetCurrentTime(value *float64)

SetCurrentTime setting attribute 'currentTime' with type float64 (idl: double).

func (*Animation) SetEffect Uses

func (_this *Animation) SetEffect(value *AnimationEffect)

SetEffect setting attribute 'effect' with type AnimationEffect (idl: AnimationEffect).

func (*Animation) SetId Uses

func (_this *Animation) SetId(value string)

SetId setting attribute 'id' with type string (idl: DOMString).

func (*Animation) SetOnCancel Uses

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 Uses

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 Uses

func (_this *Animation) SetPlaybackRate(value float64)

SetPlaybackRate setting attribute 'playbackRate' with type float64 (idl: double).

func (*Animation) SetStartTime Uses

func (_this *Animation) SetStartTime(value *float64)

SetStartTime setting attribute 'startTime' with type float64 (idl: double).

func (*Animation) SetTimeline Uses

func (_this *Animation) SetTimeline(value *AnimationTimeline)

SetTimeline setting attribute 'timeline' with type AnimationTimeline (idl: AnimationTimeline).

func (*Animation) StartTime Uses

func (_this *Animation) StartTime() *float64

StartTime returning attribute 'startTime' with type float64 (idl: double).

func (*Animation) Timeline Uses

func (_this *Animation) Timeline() *AnimationTimeline

Timeline returning attribute 'timeline' with type AnimationTimeline (idl: AnimationTimeline).

func (*Animation) UpdatePlaybackRate Uses

func (_this *Animation) UpdatePlaybackRate(playbackRate float64)

type AnimationEffect Uses

type AnimationEffect struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: AnimationEffect

func AnimationEffectFromJS Uses

func AnimationEffectFromJS(value js.Wrapper) *AnimationEffect

AnimationEffectFromJS is casting a js.Wrapper into AnimationEffect.

func (*AnimationEffect) GetComputedTiming Uses

func (_this *AnimationEffect) GetComputedTiming() (_result *ComputedEffectTiming)

func (*AnimationEffect) GetTiming Uses

func (_this *AnimationEffect) GetTiming() (_result *EffectTiming)

func (*AnimationEffect) JSValue Uses

func (_this *AnimationEffect) JSValue() js.Value

func (*AnimationEffect) UpdateTiming Uses

func (_this *AnimationEffect) UpdateTiming(timing *OptionalEffectTiming)

type AnimationPlayState Uses

type AnimationPlayState int

enum: AnimationPlayState

const (
    IdleAnimationPlayState AnimationPlayState = iota
    RunningAnimationPlayState
    PausedAnimationPlayState
    FinishedAnimationPlayState
)

func AnimationPlayStateFromJS Uses

func AnimationPlayStateFromJS(value js.Value) AnimationPlayState

AnimationPlayStateFromJS is converting a javascript value into a AnimationPlayState enum value.

func (*AnimationPlayState) JSValue Uses

func (this *AnimationPlayState) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (AnimationPlayState) Value Uses

func (this AnimationPlayState) Value() string

Value is converting this into javascript defined string value

type AnimationPlaybackEvent Uses

type AnimationPlaybackEvent struct {
    domcore.Event
}

class: AnimationPlaybackEvent

func AnimationPlaybackEventFromJS Uses

func AnimationPlaybackEventFromJS(value js.Wrapper) *AnimationPlaybackEvent

AnimationPlaybackEventFromJS is casting a js.Wrapper into AnimationPlaybackEvent.

func NewAnimationPlaybackEvent Uses

func NewAnimationPlaybackEvent(_type string, eventInitDict *AnimationPlaybackEventInit) (_result *AnimationPlaybackEvent)

func (*AnimationPlaybackEvent) CurrentTime Uses

func (_this *AnimationPlaybackEvent) CurrentTime() *float64

CurrentTime returning attribute 'currentTime' with type float64 (idl: double).

func (*AnimationPlaybackEvent) TimelineTime Uses

func (_this *AnimationPlaybackEvent) TimelineTime() *float64

TimelineTime returning attribute 'timelineTime' with type float64 (idl: double).

type AnimationPlaybackEventInit Uses

type AnimationPlaybackEventInit struct {
    Bubbles      bool
    Cancelable   bool
    Composed     bool
    CurrentTime  *float64
    TimelineTime *float64
}

dictionary: AnimationPlaybackEventInit

func AnimationPlaybackEventInitFromJS Uses

func AnimationPlaybackEventInitFromJS(value js.Wrapper) *AnimationPlaybackEventInit

AnimationPlaybackEventInitFromJS is allocating a new AnimationPlaybackEventInit object and copy all values from input javascript object

func (*AnimationPlaybackEventInit) JSValue Uses

func (_this *AnimationPlaybackEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type AnimationTimeline Uses

type AnimationTimeline struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: AnimationTimeline

func AnimationTimelineFromJS Uses

func AnimationTimelineFromJS(value js.Wrapper) *AnimationTimeline

AnimationTimelineFromJS is casting a js.Wrapper into AnimationTimeline.

func (*AnimationTimeline) CurrentTime Uses

func (_this *AnimationTimeline) CurrentTime() *float64

CurrentTime returning attribute 'currentTime' with type float64 (idl: double).

func (*AnimationTimeline) JSValue Uses

func (_this *AnimationTimeline) JSValue() js.Value

type BaseComputedKeyframe Uses

type BaseComputedKeyframe struct {
    Offset         *float64
    ComputedOffset float64
    Easing         string
    Composite      CompositeOperationOrAuto
}

dictionary: BaseComputedKeyframe

func BaseComputedKeyframeFromJS Uses

func BaseComputedKeyframeFromJS(value js.Wrapper) *BaseComputedKeyframe

BaseComputedKeyframeFromJS is allocating a new BaseComputedKeyframe object and copy all values from input javascript object

func (*BaseComputedKeyframe) JSValue Uses

func (_this *BaseComputedKeyframe) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type BaseKeyframe Uses

type BaseKeyframe struct {
    Offset    *float64
    Easing    string
    Composite CompositeOperationOrAuto
}

dictionary: BaseKeyframe

func BaseKeyframeFromJS Uses

func BaseKeyframeFromJS(value js.Wrapper) *BaseKeyframe

BaseKeyframeFromJS is allocating a new BaseKeyframe object and copy all values from input javascript object

func (*BaseKeyframe) JSValue Uses

func (_this *BaseKeyframe) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type BasePropertyIndexedKeyframe Uses

type BasePropertyIndexedKeyframe struct {
    Offset    *Union
    Easing    *Union
    Composite *Union
}

dictionary: BasePropertyIndexedKeyframe

func BasePropertyIndexedKeyframeFromJS Uses

func BasePropertyIndexedKeyframeFromJS(value js.Wrapper) *BasePropertyIndexedKeyframe

BasePropertyIndexedKeyframeFromJS is allocating a new BasePropertyIndexedKeyframe object and copy all values from input javascript object

func (*BasePropertyIndexedKeyframe) JSValue Uses

func (_this *BasePropertyIndexedKeyframe) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type CompositeOperation Uses

type CompositeOperation int

enum: CompositeOperation

const (
    ReplaceCompositeOperation CompositeOperation = iota
    AddCompositeOperation
    AccumulateCompositeOperation
)

func CompositeOperationFromJS Uses

func CompositeOperationFromJS(value js.Value) CompositeOperation

CompositeOperationFromJS is converting a javascript value into a CompositeOperation enum value.

func (*CompositeOperation) JSValue Uses

func (this *CompositeOperation) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (CompositeOperation) Value Uses

func (this CompositeOperation) Value() string

Value is converting this into javascript defined string value

type CompositeOperationOrAuto Uses

type CompositeOperationOrAuto int

enum: CompositeOperationOrAuto

const (
    ReplaceCompositeOperationOrAuto CompositeOperationOrAuto = iota
    AddCompositeOperationOrAuto
    AccumulateCompositeOperationOrAuto
    AutoCompositeOperationOrAuto
)

func CompositeOperationOrAutoFromJS Uses

func CompositeOperationOrAutoFromJS(value js.Value) CompositeOperationOrAuto

CompositeOperationOrAutoFromJS is converting a javascript value into a CompositeOperationOrAuto enum value.

func (*CompositeOperationOrAuto) JSValue Uses

func (this *CompositeOperationOrAuto) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (CompositeOperationOrAuto) Value Uses

func (this CompositeOperationOrAuto) Value() string

Value is converting this into javascript defined string value

type ComputedEffectTiming Uses

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 Uses

func ComputedEffectTimingFromJS(value js.Wrapper) *ComputedEffectTiming

ComputedEffectTimingFromJS is allocating a new ComputedEffectTiming object and copy all values from input javascript object

func (*ComputedEffectTiming) JSValue Uses

func (_this *ComputedEffectTiming) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type DocumentTimeline Uses

type DocumentTimeline struct {
    AnimationTimeline
}

class: DocumentTimeline

func DocumentTimelineFromJS Uses

func DocumentTimelineFromJS(value js.Wrapper) *DocumentTimeline

DocumentTimelineFromJS is casting a js.Wrapper into DocumentTimeline.

func NewDocumentTimeline Uses

func NewDocumentTimeline(options *DocumentTimelineOptions) (_result *DocumentTimeline)

type DocumentTimelineOptions Uses

type DocumentTimelineOptions struct {
    OriginTime float64
}

dictionary: DocumentTimelineOptions

func DocumentTimelineOptionsFromJS Uses

func DocumentTimelineOptionsFromJS(value js.Wrapper) *DocumentTimelineOptions

DocumentTimelineOptionsFromJS is allocating a new DocumentTimelineOptions object and copy all values from input javascript object

func (*DocumentTimelineOptions) JSValue Uses

func (_this *DocumentTimelineOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type EffectTiming Uses

type EffectTiming struct {
    Delay          float64
    EndDelay       float64
    Fill           FillMode
    IterationStart float64
    Iterations     float64
    Duration       *Union
    Direction      PlaybackDirection
    Easing         string
}

dictionary: EffectTiming

func EffectTimingFromJS Uses

func EffectTimingFromJS(value js.Wrapper) *EffectTiming

EffectTimingFromJS is allocating a new EffectTiming object and copy all values from input javascript object

func (*EffectTiming) JSValue Uses

func (_this *EffectTiming) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type FillMode Uses

type FillMode int

enum: FillMode

const (
    NoneFillMode FillMode = iota
    ForwardsFillMode
    BackwardsFillMode
    BothFillMode
    AutoFillMode
)

func FillModeFromJS Uses

func FillModeFromJS(value js.Value) FillMode

FillModeFromJS is converting a javascript value into a FillMode enum value.

func (*FillMode) JSValue Uses

func (this *FillMode) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (FillMode) Value Uses

func (this FillMode) Value() string

Value is converting this into javascript defined string value

type IterationCompositeOperation Uses

type IterationCompositeOperation int

enum: IterationCompositeOperation

const (
    ReplaceIterationCompositeOperation IterationCompositeOperation = iota
    AccumulateIterationCompositeOperation
)

func IterationCompositeOperationFromJS Uses

func IterationCompositeOperationFromJS(value js.Value) IterationCompositeOperation

IterationCompositeOperationFromJS is converting a javascript value into a IterationCompositeOperation enum value.

func (*IterationCompositeOperation) JSValue Uses

func (this *IterationCompositeOperation) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (IterationCompositeOperation) Value Uses

func (this IterationCompositeOperation) Value() string

Value is converting this into javascript defined string value

type KeyframeAnimationOptions Uses

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 Uses

func KeyframeAnimationOptionsFromJS(value js.Wrapper) *KeyframeAnimationOptions

KeyframeAnimationOptionsFromJS is allocating a new KeyframeAnimationOptions object and copy all values from input javascript object

func (*KeyframeAnimationOptions) JSValue Uses

func (_this *KeyframeAnimationOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type KeyframeEffect Uses

type KeyframeEffect struct {
    AnimationEffect
}

class: KeyframeEffect

func KeyframeEffectFromJS Uses

func KeyframeEffectFromJS(value js.Wrapper) *KeyframeEffect

KeyframeEffectFromJS is casting a js.Wrapper into KeyframeEffect.

func NewKeyframeEffect Uses

func NewKeyframeEffect(source *KeyframeEffect) (_result *KeyframeEffect)

func (*KeyframeEffect) Composite Uses

func (_this *KeyframeEffect) Composite() CompositeOperation

Composite returning attribute 'composite' with type CompositeOperation (idl: CompositeOperation).

func (*KeyframeEffect) GetKeyframes Uses

func (_this *KeyframeEffect) GetKeyframes() (_result []*javascript.Object)

func (*KeyframeEffect) IterationComposite Uses

func (_this *KeyframeEffect) IterationComposite() IterationCompositeOperation

IterationComposite returning attribute 'iterationComposite' with type IterationCompositeOperation (idl: IterationCompositeOperation).

func (*KeyframeEffect) SetComposite Uses

func (_this *KeyframeEffect) SetComposite(value CompositeOperation)

SetComposite setting attribute 'composite' with type CompositeOperation (idl: CompositeOperation).

func (*KeyframeEffect) SetIterationComposite Uses

func (_this *KeyframeEffect) SetIterationComposite(value IterationCompositeOperation)

SetIterationComposite setting attribute 'iterationComposite' with type IterationCompositeOperation (idl: IterationCompositeOperation).

func (*KeyframeEffect) SetKeyframes Uses

func (_this *KeyframeEffect) SetKeyframes(keyframes *javascript.Object)

func (*KeyframeEffect) SetTarget Uses

func (_this *KeyframeEffect) SetTarget(value *Union)

SetTarget setting attribute 'target' with type Union (idl: Union).

func (*KeyframeEffect) Target Uses

func (_this *KeyframeEffect) Target() *Union

Target returning attribute 'target' with type Union (idl: Union).

type KeyframeEffectOptions Uses

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 Uses

func KeyframeEffectOptionsFromJS(value js.Wrapper) *KeyframeEffectOptions

KeyframeEffectOptionsFromJS is allocating a new KeyframeEffectOptions object and copy all values from input javascript object

func (*KeyframeEffectOptions) JSValue Uses

func (_this *KeyframeEffectOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type OptionalEffectTiming Uses

type OptionalEffectTiming struct {
    Delay          float64
    EndDelay       float64
    Fill           FillMode
    IterationStart float64
    Iterations     float64
    Duration       *Union
    Direction      PlaybackDirection
    Easing         string
}

dictionary: OptionalEffectTiming

func OptionalEffectTimingFromJS Uses

func OptionalEffectTimingFromJS(value js.Wrapper) *OptionalEffectTiming

OptionalEffectTimingFromJS is allocating a new OptionalEffectTiming object and copy all values from input javascript object

func (*OptionalEffectTiming) JSValue Uses

func (_this *OptionalEffectTiming) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type PlaybackDirection Uses

type PlaybackDirection int

enum: PlaybackDirection

const (
    NormalPlaybackDirection PlaybackDirection = iota
    ReversePlaybackDirection
    AlternatePlaybackDirection
    AlternateReversePlaybackDirection
)

func PlaybackDirectionFromJS Uses

func PlaybackDirectionFromJS(value js.Value) PlaybackDirection

PlaybackDirectionFromJS is converting a javascript value into a PlaybackDirection enum value.

func (*PlaybackDirection) JSValue Uses

func (this *PlaybackDirection) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (PlaybackDirection) Value Uses

func (this PlaybackDirection) Value() string

Value is converting this into javascript defined string value

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

func (u *Union) JSValue() js.Value

Package webani imports 3 packages (graph) and is imported by 5 packages. Updated 2019-10-03. Refresh now. Tools for package owners.