Class NativeInterpolator

  • All Implemented Interfaces:
    IsJSType

    @JsType(isNative=true,
            name="Function",
            namespace="<global>")
    public final class NativeInterpolator
    extends Object
    implements IsJSType
    Enables the capability to set a custom animation interpolator.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • create

        @JsOverlay
        public static NativeInterpolator create​(String code)
        Creates a callback in java script.
        All options in the configuration which can be set like scriptable, can be set with a native callback.
        The callback can receive only 3 arguments:
        • from: the initial value of element property
        • to:the target value of element property
        • factor: a value between 0 and 1 (inclusive) with the factor of animation
        Parameters:
        code - the code of the callback to execute
        Returns:
        a callback in java script
      • toSource

        @JsMethod(name="toString")
        public String toSource()
        Returns a string representing the source code of the function.
        Returns:
        a string representing the source code of the function