All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.fluorumlabs.disconnect.highcharts.AnimationOptionsObject Maven / Gradle / Ivy

There is a newer version: 0.1.0-alpha2
Show newest version
package com.github.fluorumlabs.disconnect.highcharts;

import java.lang.FunctionalInterface;
import java.lang.String;
import javax.annotation.Nullable;
import js.lang.Any;
import org.teavm.jso.JSFunctor;
import org.teavm.jso.JSProperty;

/**
 * An animation configuration. Animation configurations can also be defined as
 * booleans, where false turns off animation and true defaults to a duration
 * of 500ms.
 *
 */
public interface AnimationOptionsObject extends Any {
  /**
   * A callback function to exectute when the animation finishes.
   *
   * @implspec complete?: () => void;
   *
   */
  @JSProperty("complete")
  @Nullable
  Complete getComplete();

  /**
   * A callback function to exectute when the animation finishes.
   *
   * @implspec complete?: () => void;
   *
   */
  @JSProperty("complete")
  void setComplete(Complete value);

  /**
   * The animation duration in milliseconds.
   *
   * @implspec duration: number;
   *
   */
  @JSProperty("duration")
  double getDuration();

  /**
   * The animation duration in milliseconds.
   *
   * @implspec duration: number;
   *
   */
  @JSProperty("duration")
  void setDuration(double value);

  /**
   * The name of an easing function as defined on the Math object.
   *
   * @implspec easing?: string;
   *
   */
  @JSProperty("easing")
  @Nullable
  String getEasing();

  /**
   * The name of an easing function as defined on the Math object.
   *
   * @implspec easing?: string;
   *
   */
  @JSProperty("easing")
  void setEasing(String value);

  /**
   * A callback function to execute on each step of each attribute or CSS
   * property that's being animated. The first argument contains information
   * about the animation and progress.
   *
   * @implspec step?: () => void;
   *
   */
  @JSProperty("step")
  @Nullable
  Step getStep();

  /**
   * A callback function to execute on each step of each attribute or CSS
   * property that's being animated. The first argument contains information
   * about the animation and progress.
   *
   * @implspec step?: () => void;
   *
   */
  @JSProperty("step")
  void setStep(Step value);

  /**
   */
  @JSFunctor
  @FunctionalInterface
  interface Complete extends Any {
    void apply();
  }

  /**
   */
  @JSFunctor
  @FunctionalInterface
  interface Step extends Any {
    void apply();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy