@quenty/transitionmodel 7.29.0 → 7.29.1-canary.45a29f2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [7.29.1-canary.45a29f2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/transitionmodel@7.29.0...@quenty/transitionmodel@7.29.1-canary.45a29f2.0) (2026-01-18)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* Add helper events to TransitionModel ([2c88eab](https://github.com/Quenty/NevermoreEngine/commit/2c88eab68739666688e76113ecb2ce1fcb8973b5))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [7.29.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/transitionmodel@7.28.0...@quenty/transitionmodel@7.29.0) (2026-01-16)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/transitionmodel
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/transitionmodel",
|
|
3
|
-
"version": "7.29.0",
|
|
3
|
+
"version": "7.29.1-canary.45a29f2.0",
|
|
4
4
|
"description": "Helps with Gui visiblity showing and hiding",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -29,21 +29,21 @@
|
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@quenty/baseobject": "10.9.3",
|
|
32
|
-
"@quenty/basicpane": "13.24.0",
|
|
33
|
-
"@quenty/blend": "12.27.0",
|
|
32
|
+
"@quenty/basicpane": "13.24.1-canary.45a29f2.0",
|
|
33
|
+
"@quenty/blend": "12.27.1-canary.45a29f2.0",
|
|
34
34
|
"@quenty/ducktype": "5.9.3",
|
|
35
|
-
"@quenty/instanceutils": "13.23.0",
|
|
35
|
+
"@quenty/instanceutils": "13.23.1-canary.45a29f2.0",
|
|
36
36
|
"@quenty/loader": "10.9.3",
|
|
37
37
|
"@quenty/maid": "3.5.3",
|
|
38
38
|
"@quenty/promise": "10.13.0",
|
|
39
|
-
"@quenty/rx": "13.22.0",
|
|
39
|
+
"@quenty/rx": "13.22.1-canary.45a29f2.0",
|
|
40
40
|
"@quenty/signal": "7.11.5",
|
|
41
41
|
"@quenty/spring": "10.10.1",
|
|
42
|
-
"@quenty/timedtween": "7.27.0",
|
|
43
|
-
"@quenty/valueobject": "13.24.0"
|
|
42
|
+
"@quenty/timedtween": "7.27.1-canary.45a29f2.0",
|
|
43
|
+
"@quenty/valueobject": "13.24.1-canary.45a29f2.0"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "45a29f21a00d72d7971299695e28129d5b9d0cfb"
|
|
49
49
|
}
|
|
@@ -9,6 +9,7 @@ local BasicPane = require("BasicPane")
|
|
|
9
9
|
local Maid = require("Maid")
|
|
10
10
|
local Observable = require("Observable")
|
|
11
11
|
local Promise = require("Promise")
|
|
12
|
+
local Signal = require("Signal")
|
|
12
13
|
local SpringObject = require("SpringObject")
|
|
13
14
|
local SpringUtils = require("SpringUtils")
|
|
14
15
|
local TransitionModel = require("TransitionModel")
|
|
@@ -24,6 +25,9 @@ export type SpringTransitionModel<T> =
|
|
|
24
25
|
_hideTarget: any,
|
|
25
26
|
_springObject: any,
|
|
26
27
|
_transitionModel: TransitionModel.TransitionModel,
|
|
28
|
+
|
|
29
|
+
HidingComplete: Signal.Signal<()>,
|
|
30
|
+
ShowingComplete: Signal.Signal<()>,
|
|
27
31
|
},
|
|
28
32
|
{} :: typeof({ __index = SpringTransitionModel })
|
|
29
33
|
))
|
|
@@ -46,6 +50,9 @@ function SpringTransitionModel.new<T>(showTarget: T?, hideTarget: T?): SpringTra
|
|
|
46
50
|
self._transitionModel = self._maid:Add(TransitionModel.new())
|
|
47
51
|
self._transitionModel:BindToPaneVisbility(self)
|
|
48
52
|
|
|
53
|
+
self.HidingComplete = self._transitionModel.HidingComplete
|
|
54
|
+
self.ShowingComplete = self._transitionModel.ShowingComplete
|
|
55
|
+
|
|
49
56
|
self._springObject = self._maid:Add(SpringObject.new(self:_computeHideTarget()))
|
|
50
57
|
self._springObject.Speed = 30
|
|
51
58
|
|
|
@@ -13,6 +13,7 @@ local DuckTypeUtils = require("DuckTypeUtils")
|
|
|
13
13
|
local Maid = require("Maid")
|
|
14
14
|
local Observable = require("Observable")
|
|
15
15
|
local Promise = require("Promise")
|
|
16
|
+
local Signal = require("Signal")
|
|
16
17
|
local ValueObject = require("ValueObject")
|
|
17
18
|
|
|
18
19
|
local TransitionModel = setmetatable({}, BasicPane)
|
|
@@ -28,6 +29,9 @@ export type TransitionModel =
|
|
|
28
29
|
_isHidingComplete: ValueObject.ValueObject<boolean>,
|
|
29
30
|
_hideCallback: ShowHideCallback?,
|
|
30
31
|
_showCallback: ShowHideCallback?,
|
|
32
|
+
|
|
33
|
+
HidingComplete: Signal.Signal<()>,
|
|
34
|
+
ShowingComplete: Signal.Signal<()>,
|
|
31
35
|
},
|
|
32
36
|
{} :: typeof({ __index = TransitionModel })
|
|
33
37
|
))
|
|
@@ -47,6 +51,9 @@ function TransitionModel.new(): TransitionModel
|
|
|
47
51
|
self._isShowingComplete = self._maid:Add(ValueObject.new(false, "boolean"))
|
|
48
52
|
self._isHidingComplete = self._maid:Add(ValueObject.new(true, "boolean"))
|
|
49
53
|
|
|
54
|
+
self.HidingComplete = self._maid:Add(Signal.new())
|
|
55
|
+
self.ShowingComplete = self._maid:Add(Signal.new())
|
|
56
|
+
|
|
50
57
|
self._showCallback = nil
|
|
51
58
|
self._hideCallback = nil
|
|
52
59
|
|
|
@@ -281,6 +288,7 @@ function TransitionModel._executeShow(self: TransitionModel, doNotAnimate: boole
|
|
|
281
288
|
|
|
282
289
|
promise:Then(function()
|
|
283
290
|
self._isShowingComplete.Value = true
|
|
291
|
+
self.ShowingComplete:Fire()
|
|
284
292
|
end)
|
|
285
293
|
|
|
286
294
|
if self.Destroy then
|
|
@@ -319,6 +327,7 @@ function TransitionModel._executeHide(self: TransitionModel, doNotAnimate: boole
|
|
|
319
327
|
|
|
320
328
|
promise:Then(function()
|
|
321
329
|
self._isHidingComplete.Value = true
|
|
330
|
+
self.HidingComplete:Fire()
|
|
322
331
|
end)
|
|
323
332
|
|
|
324
333
|
if self.Destroy then
|