animation

package
v0.0.0-...-640e031 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package animation provides the Chrome DevTools Protocol commands, types, and events for the Animation domain.

Generated by the cdproto-gen command.

Index

Constants

View Source
const (
	CommandDisable           = "Animation.disable"
	CommandEnable            = "Animation.enable"
	CommandGetCurrentTime    = "Animation.getCurrentTime"
	CommandGetPlaybackRate   = "Animation.getPlaybackRate"
	CommandReleaseAnimations = "Animation.releaseAnimations"
	CommandResolveAnimation  = "Animation.resolveAnimation"
	CommandSeekAnimations    = "Animation.seekAnimations"
	CommandSetPaused         = "Animation.setPaused"
	CommandSetPlaybackRate   = "Animation.setPlaybackRate"
	CommandSetTiming         = "Animation.setTiming"
)

Command names.

Variables

This section is empty.

Functions

This section is empty.

Types

type Animation

type Animation struct {
	ID           string  `json:"id"`               // Animation's id.
	Name         string  `json:"name"`             // Animation's name.
	PausedState  bool    `json:"pausedState"`      // Animation's internal paused state.
	PlayState    string  `json:"playState"`        // Animation's play state.
	PlaybackRate float64 `json:"playbackRate"`     // Animation's playback rate.
	StartTime    float64 `json:"startTime"`        // Animation's start time.
	CurrentTime  float64 `json:"currentTime"`      // Animation's current time.
	Type         Type    `json:"type"`             // Animation type of Animation.
	Source       *Effect `json:"source,omitempty"` // Animation's source animation node.
	CSSID        string  `json:"cssId,omitempty"`  // A unique ID for Animation representing the sources that triggered this CSS animation/transition.
}

Animation animation instance.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#type-Animation

func (Animation) MarshalEasyJSON

func (v Animation) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Animation) MarshalJSON

func (v Animation) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Animation) UnmarshalEasyJSON

func (v *Animation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Animation) UnmarshalJSON

func (v *Animation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DisableParams

type DisableParams struct{}

DisableParams disables animation domain notifications.

func Disable

func Disable() *DisableParams

Disable disables animation domain notifications.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#method-disable

func (*DisableParams) Do

func (p *DisableParams) Do(ctx context.Context) (err error)

Do executes Animation.disable against the provided context.

func (DisableParams) MarshalEasyJSON

func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON

func (v DisableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON

func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON

func (v *DisableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Effect

type Effect struct {
	Delay          float64           `json:"delay"`                   // AnimationEffect's delay.
	EndDelay       float64           `json:"endDelay"`                // AnimationEffect's end delay.
	IterationStart float64           `json:"iterationStart"`          // AnimationEffect's iteration start.
	Iterations     float64           `json:"iterations"`              // AnimationEffect's iterations.
	Duration       float64           `json:"duration"`                // AnimationEffect's iteration duration.
	Direction      string            `json:"direction"`               // AnimationEffect's playback direction.
	Fill           string            `json:"fill"`                    // AnimationEffect's fill mode.
	BackendNodeID  cdp.BackendNodeID `json:"backendNodeId,omitempty"` // AnimationEffect's target node.
	KeyframesRule  *KeyframesRule    `json:"keyframesRule,omitempty"` // AnimationEffect's keyframes.
	Easing         string            `json:"easing"`                  // AnimationEffect's timing function.
}

Effect animationEffect instance.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#type-AnimationEffect

func (Effect) MarshalEasyJSON

func (v Effect) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Effect) MarshalJSON

func (v Effect) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Effect) UnmarshalEasyJSON

func (v *Effect) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Effect) UnmarshalJSON

func (v *Effect) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EnableParams

type EnableParams struct{}

EnableParams enables animation domain notifications.

func Enable

func Enable() *EnableParams

Enable enables animation domain notifications.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#method-enable

func (*EnableParams) Do

func (p *EnableParams) Do(ctx context.Context) (err error)

Do executes Animation.enable against the provided context.

func (EnableParams) MarshalEasyJSON

func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON

func (v EnableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON

func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON

func (v *EnableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventAnimationCanceled

type EventAnimationCanceled struct {
	ID string `json:"id"` // Id of the animation that was cancelled.
}

EventAnimationCanceled event for when an animation has been cancelled.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#event-animationCanceled

func (EventAnimationCanceled) MarshalEasyJSON

func (v EventAnimationCanceled) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventAnimationCanceled) MarshalJSON

func (v EventAnimationCanceled) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventAnimationCanceled) UnmarshalEasyJSON

func (v *EventAnimationCanceled) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventAnimationCanceled) UnmarshalJSON

func (v *EventAnimationCanceled) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventAnimationCreated

type EventAnimationCreated struct {
	ID string `json:"id"` // Id of the animation that was created.
}

EventAnimationCreated event for each animation that has been created.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#event-animationCreated

func (EventAnimationCreated) MarshalEasyJSON

func (v EventAnimationCreated) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventAnimationCreated) MarshalJSON

func (v EventAnimationCreated) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventAnimationCreated) UnmarshalEasyJSON

func (v *EventAnimationCreated) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventAnimationCreated) UnmarshalJSON

func (v *EventAnimationCreated) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventAnimationStarted

type EventAnimationStarted struct {
	Animation *Animation `json:"animation"` // Animation that was started.
}

EventAnimationStarted event for animation that has been started.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#event-animationStarted

func (EventAnimationStarted) MarshalEasyJSON

func (v EventAnimationStarted) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventAnimationStarted) MarshalJSON

func (v EventAnimationStarted) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventAnimationStarted) UnmarshalEasyJSON

func (v *EventAnimationStarted) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventAnimationStarted) UnmarshalJSON

func (v *EventAnimationStarted) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetCurrentTimeParams

type GetCurrentTimeParams struct {
	ID string `json:"id"` // Id of animation.
}

GetCurrentTimeParams returns the current time of the an animation.

func GetCurrentTime

func GetCurrentTime(id string) *GetCurrentTimeParams

GetCurrentTime returns the current time of the an animation.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#method-getCurrentTime

parameters:

id - Id of animation.

func (*GetCurrentTimeParams) Do

func (p *GetCurrentTimeParams) Do(ctx context.Context) (currentTime float64, err error)

Do executes Animation.getCurrentTime against the provided context.

returns:

currentTime - Current time of the page.

func (GetCurrentTimeParams) MarshalEasyJSON

func (v GetCurrentTimeParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetCurrentTimeParams) MarshalJSON

func (v GetCurrentTimeParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetCurrentTimeParams) UnmarshalEasyJSON

func (v *GetCurrentTimeParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetCurrentTimeParams) UnmarshalJSON

func (v *GetCurrentTimeParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetCurrentTimeReturns

type GetCurrentTimeReturns struct {
	CurrentTime float64 `json:"currentTime,omitempty"` // Current time of the page.
}

GetCurrentTimeReturns return values.

func (GetCurrentTimeReturns) MarshalEasyJSON

func (v GetCurrentTimeReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetCurrentTimeReturns) MarshalJSON

func (v GetCurrentTimeReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetCurrentTimeReturns) UnmarshalEasyJSON

func (v *GetCurrentTimeReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetCurrentTimeReturns) UnmarshalJSON

func (v *GetCurrentTimeReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetPlaybackRateParams

type GetPlaybackRateParams struct{}

GetPlaybackRateParams gets the playback rate of the document timeline.

func GetPlaybackRate

func GetPlaybackRate() *GetPlaybackRateParams

GetPlaybackRate gets the playback rate of the document timeline.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#method-getPlaybackRate

func (*GetPlaybackRateParams) Do

func (p *GetPlaybackRateParams) Do(ctx context.Context) (playbackRate float64, err error)

Do executes Animation.getPlaybackRate against the provided context.

returns:

playbackRate - Playback rate for animations on page.

func (GetPlaybackRateParams) MarshalEasyJSON

func (v GetPlaybackRateParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetPlaybackRateParams) MarshalJSON

func (v GetPlaybackRateParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetPlaybackRateParams) UnmarshalEasyJSON

func (v *GetPlaybackRateParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetPlaybackRateParams) UnmarshalJSON

func (v *GetPlaybackRateParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetPlaybackRateReturns

type GetPlaybackRateReturns struct {
	PlaybackRate float64 `json:"playbackRate,omitempty"` // Playback rate for animations on page.
}

GetPlaybackRateReturns return values.

func (GetPlaybackRateReturns) MarshalEasyJSON

func (v GetPlaybackRateReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetPlaybackRateReturns) MarshalJSON

func (v GetPlaybackRateReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetPlaybackRateReturns) UnmarshalEasyJSON

func (v *GetPlaybackRateReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetPlaybackRateReturns) UnmarshalJSON

func (v *GetPlaybackRateReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type KeyframeStyle

type KeyframeStyle struct {
	Offset string `json:"offset"` // Keyframe's time offset.
	Easing string `json:"easing"` // AnimationEffect's timing function.
}

KeyframeStyle keyframe Style.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#type-KeyframeStyle

func (KeyframeStyle) MarshalEasyJSON

func (v KeyframeStyle) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (KeyframeStyle) MarshalJSON

func (v KeyframeStyle) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*KeyframeStyle) UnmarshalEasyJSON

func (v *KeyframeStyle) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*KeyframeStyle) UnmarshalJSON

func (v *KeyframeStyle) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type KeyframesRule

type KeyframesRule struct {
	Name      string           `json:"name,omitempty"` // CSS keyframed animation's name.
	Keyframes []*KeyframeStyle `json:"keyframes"`      // List of animation keyframes.
}

KeyframesRule keyframes Rule.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#type-KeyframesRule

func (KeyframesRule) MarshalEasyJSON

func (v KeyframesRule) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (KeyframesRule) MarshalJSON

func (v KeyframesRule) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*KeyframesRule) UnmarshalEasyJSON

func (v *KeyframesRule) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*KeyframesRule) UnmarshalJSON

func (v *KeyframesRule) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ReleaseAnimationsParams

type ReleaseAnimationsParams struct {
	Animations []string `json:"animations"` // List of animation ids to seek.
}

ReleaseAnimationsParams releases a set of animations to no longer be manipulated.

func ReleaseAnimations

func ReleaseAnimations(animations []string) *ReleaseAnimationsParams

ReleaseAnimations releases a set of animations to no longer be manipulated.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#method-releaseAnimations

parameters:

animations - List of animation ids to seek.

func (*ReleaseAnimationsParams) Do

func (p *ReleaseAnimationsParams) Do(ctx context.Context) (err error)

Do executes Animation.releaseAnimations against the provided context.

func (ReleaseAnimationsParams) MarshalEasyJSON

func (v ReleaseAnimationsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ReleaseAnimationsParams) MarshalJSON

func (v ReleaseAnimationsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ReleaseAnimationsParams) UnmarshalEasyJSON

func (v *ReleaseAnimationsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ReleaseAnimationsParams) UnmarshalJSON

func (v *ReleaseAnimationsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ResolveAnimationParams

type ResolveAnimationParams struct {
	AnimationID string `json:"animationId"` // Animation id.
}

ResolveAnimationParams gets the remote object of the Animation.

func ResolveAnimation

func ResolveAnimation(animationID string) *ResolveAnimationParams

ResolveAnimation gets the remote object of the Animation.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#method-resolveAnimation

parameters:

animationID - Animation id.

func (*ResolveAnimationParams) Do

func (p *ResolveAnimationParams) Do(ctx context.Context) (remoteObject *runtime.RemoteObject, err error)

Do executes Animation.resolveAnimation against the provided context.

returns:

remoteObject - Corresponding remote object.

func (ResolveAnimationParams) MarshalEasyJSON

func (v ResolveAnimationParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ResolveAnimationParams) MarshalJSON

func (v ResolveAnimationParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ResolveAnimationParams) UnmarshalEasyJSON

func (v *ResolveAnimationParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ResolveAnimationParams) UnmarshalJSON

func (v *ResolveAnimationParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ResolveAnimationReturns

type ResolveAnimationReturns struct {
	RemoteObject *runtime.RemoteObject `json:"remoteObject,omitempty"` // Corresponding remote object.
}

ResolveAnimationReturns return values.

func (ResolveAnimationReturns) MarshalEasyJSON

func (v ResolveAnimationReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ResolveAnimationReturns) MarshalJSON

func (v ResolveAnimationReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ResolveAnimationReturns) UnmarshalEasyJSON

func (v *ResolveAnimationReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ResolveAnimationReturns) UnmarshalJSON

func (v *ResolveAnimationReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SeekAnimationsParams

type SeekAnimationsParams struct {
	Animations  []string `json:"animations"`  // List of animation ids to seek.
	CurrentTime float64  `json:"currentTime"` // Set the current time of each animation.
}

SeekAnimationsParams seek a set of animations to a particular time within each animation.

func SeekAnimations

func SeekAnimations(animations []string, currentTime float64) *SeekAnimationsParams

SeekAnimations seek a set of animations to a particular time within each animation.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#method-seekAnimations

parameters:

animations - List of animation ids to seek.
currentTime - Set the current time of each animation.

func (*SeekAnimationsParams) Do

func (p *SeekAnimationsParams) Do(ctx context.Context) (err error)

Do executes Animation.seekAnimations against the provided context.

func (SeekAnimationsParams) MarshalEasyJSON

func (v SeekAnimationsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SeekAnimationsParams) MarshalJSON

func (v SeekAnimationsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SeekAnimationsParams) UnmarshalEasyJSON

func (v *SeekAnimationsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SeekAnimationsParams) UnmarshalJSON

func (v *SeekAnimationsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetPausedParams

type SetPausedParams struct {
	Animations []string `json:"animations"` // Animations to set the pause state of.
	Paused     bool     `json:"paused"`     // Paused state to set to.
}

SetPausedParams sets the paused state of a set of animations.

func SetPaused

func SetPaused(animations []string, paused bool) *SetPausedParams

SetPaused sets the paused state of a set of animations.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#method-setPaused

parameters:

animations - Animations to set the pause state of.
paused - Paused state to set to.

func (*SetPausedParams) Do

func (p *SetPausedParams) Do(ctx context.Context) (err error)

Do executes Animation.setPaused against the provided context.

func (SetPausedParams) MarshalEasyJSON

func (v SetPausedParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetPausedParams) MarshalJSON

func (v SetPausedParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetPausedParams) UnmarshalEasyJSON

func (v *SetPausedParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetPausedParams) UnmarshalJSON

func (v *SetPausedParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetPlaybackRateParams

type SetPlaybackRateParams struct {
	PlaybackRate float64 `json:"playbackRate"` // Playback rate for animations on page
}

SetPlaybackRateParams sets the playback rate of the document timeline.

func SetPlaybackRate

func SetPlaybackRate(playbackRate float64) *SetPlaybackRateParams

SetPlaybackRate sets the playback rate of the document timeline.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#method-setPlaybackRate

parameters:

playbackRate - Playback rate for animations on page

func (*SetPlaybackRateParams) Do

func (p *SetPlaybackRateParams) Do(ctx context.Context) (err error)

Do executes Animation.setPlaybackRate against the provided context.

func (SetPlaybackRateParams) MarshalEasyJSON

func (v SetPlaybackRateParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetPlaybackRateParams) MarshalJSON

func (v SetPlaybackRateParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetPlaybackRateParams) UnmarshalEasyJSON

func (v *SetPlaybackRateParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetPlaybackRateParams) UnmarshalJSON

func (v *SetPlaybackRateParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetTimingParams

type SetTimingParams struct {
	AnimationID string  `json:"animationId"` // Animation id.
	Duration    float64 `json:"duration"`    // Duration of the animation.
	Delay       float64 `json:"delay"`       // Delay of the animation.
}

SetTimingParams sets the timing of an animation node.

func SetTiming

func SetTiming(animationID string, duration float64, delay float64) *SetTimingParams

SetTiming sets the timing of an animation node.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#method-setTiming

parameters:

animationID - Animation id.
duration - Duration of the animation.
delay - Delay of the animation.

func (*SetTimingParams) Do

func (p *SetTimingParams) Do(ctx context.Context) (err error)

Do executes Animation.setTiming against the provided context.

func (SetTimingParams) MarshalEasyJSON

func (v SetTimingParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetTimingParams) MarshalJSON

func (v SetTimingParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetTimingParams) UnmarshalEasyJSON

func (v *SetTimingParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetTimingParams) UnmarshalJSON

func (v *SetTimingParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Type

type Type string

Type animation type of Animation.

See: https://chromedevtools.github.io/devtools-protocol/tot/Animation#type-type

const (
	TypeCSSTransition Type = "CSSTransition"
	TypeCSSAnimation  Type = "CSSAnimation"
	TypeWebAnimation  Type = "WebAnimation"
)

Type values.

func (Type) MarshalEasyJSON

func (t Type) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (Type) MarshalJSON

func (t Type) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (Type) String

func (t Type) String() string

String returns the Type as string value.

func (*Type) UnmarshalEasyJSON

func (t *Type) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*Type) UnmarshalJSON

func (t *Type) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL