Gjsify LogoGjsify Logo

Interface SpringAnimation_ConstructProps

Hierarchy

Index

Properties

clamp?: boolean

Whether the animation should be clamped.

If set to TRUE, the animation will abruptly end as soon as it reaches the final value, preventing overshooting.

It won't prevent overshooting [propertySpringAnimation:value-from] if a relative negative [propertySpringAnimation:initial-velocity] is set.

epsilon?: number

Precision of the spring.

The level of precision used to determine when the animation has come to a rest, that is, when the amplitude of the oscillations becomes smaller than this value.

If the epsilon value is too small, the animation will take a long time to stop after the animated value has stopped visibly changing.

If the epsilon value is too large, the animation will end prematurely.

The default value is 0.001.

initial_velocity?: number

The initial velocity to start the animation with.

Initial velocity affects only the animation curve, but not its duration.

spring_params?: SpringParams

Physical parameters describing the spring.

The target to animate.

value_from?: number

The value to animate from.

The animation will start at this value and end at [propertySpringAnimation:value-to].

value_to?: number

The value to animate to.

The animation will start at [propertySpringAnimation:value-from] and end at this value.

widget?: Gtk.Widget

The animation widget.

It provides the frame clock for the animation. It's not strictly necessary for this widget to be same as the one being animated.

The widget must be mapped in order for the animation to work. If it's not mapped, or if it gets unmapped during an ongoing animation, the animation will be automatically skipped.

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method