Skip to main content

SpringTransitionModel

Functions

new

SpringTransitionModel.new(
showTargetT?,--

Defaults to 1

hideTargetT?--

Defaults to 0*showTarget

) → SpringTransitionModel<T>

A transition model that has a spring underlying it. Very useful for animations on tracks that need to be on a spring.

IsShowingComplete

SpringTransitionModel:IsShowingComplete() → boolean

Returns true if showing is complete

IsHidingComplete

SpringTransitionModel:IsHidingComplete() → boolean

Returns true if hiding is complete

ObserveIsShowingComplete

SpringTransitionModel:ObserveIsShowingComplete() → Observable<boolean>

Observe is showing is complete

ObserveIsHidingComplete

SpringTransitionModel:ObserveIsHidingComplete() → Observable<boolean>

Observe is hiding is complete

BindToPaneVisbility

SpringTransitionModel:BindToPaneVisbility(paneBasicPane) → function--

Cleanup function

Binds the transition model to the actual visiblity of the pane

GetVelocity

SpringTransitionModel:GetVelocity() → T

Returns the spring's velocity

SetEpsilon

SpringTransitionModel:SetEpsilon(epsilonnumber) → ()

Sets the springs epsilon. This can affect how long the spring takes to finish.

SetSpeed

SpringTransitionModel:SetSpeed(speednumber) → ()

Sets the springs speed

SetDamper

SpringTransitionModel:SetDamper(dampernumber) → ()

Sets the springs damper

ObserveRenderStepped

SpringTransitionModel:ObserveRenderStepped() → Observable<T>

Observes the spring animating

Observe

SpringTransitionModel:Observe() → Observable<T>

Alias to spring transition model observation!

PromiseShow

SpringTransitionModel:PromiseShow(doNotAnimateboolean) → Promise

Shows the model and promises when the showing is complete.

PromiseHide

SpringTransitionModel:PromiseHide(doNotAnimateboolean) → Promise

Hides the model and promises when the showing is complete.

PromiseToggle

SpringTransitionModel:PromiseToggle(doNotAnimateboolean) → Promise

Toggles the model and promises when the transition is complete.

Show raw api
{
    "functions": [
        {
            "name": "new",
            "desc": "A transition model that has a spring underlying it. Very useful\nfor animations on tracks that need to be on a spring.",
            "params": [
                {
                    "name": "showTarget",
                    "desc": "Defaults to 1",
                    "lua_type": "T?"
                },
                {
                    "name": "hideTarget",
                    "desc": "Defaults to 0*showTarget",
                    "lua_type": "T?"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "SpringTransitionModel<T>"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 25,
                "path": "src/transitionmodel/src/Shared/SpringTransitionModel.lua"
            }
        },
        {
            "name": "IsShowingComplete",
            "desc": "Returns true if showing is complete",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 57,
                "path": "src/transitionmodel/src/Shared/SpringTransitionModel.lua"
            }
        },
        {
            "name": "IsHidingComplete",
            "desc": "Returns true if hiding is complete",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 65,
                "path": "src/transitionmodel/src/Shared/SpringTransitionModel.lua"
            }
        },
        {
            "name": "ObserveIsShowingComplete",
            "desc": "Observe is showing is complete",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<boolean>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 73,
                "path": "src/transitionmodel/src/Shared/SpringTransitionModel.lua"
            }
        },
        {
            "name": "ObserveIsHidingComplete",
            "desc": "Observe is hiding is complete",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<boolean>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 81,
                "path": "src/transitionmodel/src/Shared/SpringTransitionModel.lua"
            }
        },
        {
            "name": "BindToPaneVisbility",
            "desc": "Binds the transition model to the actual visiblity of the pane",
            "params": [
                {
                    "name": "pane",
                    "desc": "",
                    "lua_type": "BasicPane"
                }
            ],
            "returns": [
                {
                    "desc": "Cleanup function",
                    "lua_type": "function"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 91,
                "path": "src/transitionmodel/src/Shared/SpringTransitionModel.lua"
            }
        },
        {
            "name": "GetVelocity",
            "desc": "Returns the spring's velocity",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "T"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 121,
                "path": "src/transitionmodel/src/Shared/SpringTransitionModel.lua"
            }
        },
        {
            "name": "SetEpsilon",
            "desc": "Sets the springs epsilon. This can affect how long the spring takes\nto finish.",
            "params": [
                {
                    "name": "epsilon",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 131,
                "path": "src/transitionmodel/src/Shared/SpringTransitionModel.lua"
            }
        },
        {
            "name": "SetSpeed",
            "desc": "Sets the springs speed",
            "params": [
                {
                    "name": "speed",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 142,
                "path": "src/transitionmodel/src/Shared/SpringTransitionModel.lua"
            }
        },
        {
            "name": "SetDamper",
            "desc": "Sets the springs damper",
            "params": [
                {
                    "name": "damper",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 153,
                "path": "src/transitionmodel/src/Shared/SpringTransitionModel.lua"
            }
        },
        {
            "name": "ObserveRenderStepped",
            "desc": "Observes the spring animating",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<T>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 163,
                "path": "src/transitionmodel/src/Shared/SpringTransitionModel.lua"
            }
        },
        {
            "name": "Observe",
            "desc": "Alias to spring transition model observation!",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<T>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 172,
                "path": "src/transitionmodel/src/Shared/SpringTransitionModel.lua"
            }
        },
        {
            "name": "PromiseShow",
            "desc": "Shows the model and promises when the showing is complete.",
            "params": [
                {
                    "name": "doNotAnimate",
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 182,
                "path": "src/transitionmodel/src/Shared/SpringTransitionModel.lua"
            }
        },
        {
            "name": "PromiseHide",
            "desc": "Hides the model and promises when the showing is complete.",
            "params": [
                {
                    "name": "doNotAnimate",
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 192,
                "path": "src/transitionmodel/src/Shared/SpringTransitionModel.lua"
            }
        },
        {
            "name": "PromiseToggle",
            "desc": "Toggles the model and promises when the transition is complete.",
            "params": [
                {
                    "name": "doNotAnimate",
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 202,
                "path": "src/transitionmodel/src/Shared/SpringTransitionModel.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "SpringTransitionModel",
    "desc": "",
    "source": {
        "line": 4,
        "path": "src/transitionmodel/src/Shared/SpringTransitionModel.lua"
    }
}