@quenty/blend 2.3.0 → 2.3.1-canary.251.86f4a16.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 +16 -0
- package/package.json +17 -17
- package/src/Shared/Blend/Blend.lua +9 -5
- package/src/Shared/Blend/SpringObject.lua +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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
|
+
## [2.3.1-canary.251.86f4a16.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/blend@2.3.0...@quenty/blend@2.3.1-canary.251.86f4a16.0) (2022-03-06)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Instances from Blend.New are linked to lifetime of subscription without exception ([af282d2](https://github.com/Quenty/NevermoreEngine/commit/af282d264a0f06c2a94a5fd9c04ddbcb6cfbb7f1))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* Add SpringObject:IsAnimating() ([9e16f33](https://github.com/Quenty/NevermoreEngine/commit/9e16f33ebc6247f6cf65417b316485a181ce9900))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [2.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/blend@2.2.1...@quenty/blend@2.3.0) (2022-01-17)
|
|
7
23
|
|
|
8
24
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/blend",
|
|
3
|
-
"version": "2.3.0",
|
|
3
|
+
"version": "2.3.1-canary.251.86f4a16.0",
|
|
4
4
|
"description": "Declarative UI system.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -27,23 +27,23 @@
|
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@quenty/acceltween": "
|
|
31
|
-
"@quenty/brio": "
|
|
32
|
-
"@quenty/instanceutils": "
|
|
33
|
-
"@quenty/loader": "
|
|
34
|
-
"@quenty/maid": "
|
|
35
|
-
"@quenty/promise": "
|
|
36
|
-
"@quenty/rx": "
|
|
37
|
-
"@quenty/signal": "
|
|
38
|
-
"@quenty/spring": "
|
|
39
|
-
"@quenty/steputils": "
|
|
40
|
-
"@quenty/string": "
|
|
41
|
-
"@quenty/valuebaseutils": "
|
|
42
|
-
"@quenty/valueobject": "
|
|
30
|
+
"@quenty/acceltween": "2.1.0",
|
|
31
|
+
"@quenty/brio": "4.0.1-canary.251.86f4a16.0",
|
|
32
|
+
"@quenty/instanceutils": "3.8.1-canary.251.86f4a16.0",
|
|
33
|
+
"@quenty/loader": "3.4.1-canary.251.86f4a16.0",
|
|
34
|
+
"@quenty/maid": "2.1.0",
|
|
35
|
+
"@quenty/promise": "3.6.1-canary.251.86f4a16.0",
|
|
36
|
+
"@quenty/rx": "3.8.1-canary.251.86f4a16.0",
|
|
37
|
+
"@quenty/signal": "2.1.0",
|
|
38
|
+
"@quenty/spring": "3.3.1-canary.251.86f4a16.0",
|
|
39
|
+
"@quenty/steputils": "3.0.1",
|
|
40
|
+
"@quenty/string": "2.2.1",
|
|
41
|
+
"@quenty/valuebaseutils": "3.8.1-canary.251.86f4a16.0",
|
|
42
|
+
"@quenty/valueobject": "3.8.1-canary.251.86f4a16.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@quenty/contentproviderutils": "
|
|
46
|
-
"@quenty/playerthumbnailutils": "
|
|
45
|
+
"@quenty/contentproviderutils": "3.6.1-canary.251.86f4a16.0",
|
|
46
|
+
"@quenty/playerthumbnailutils": "3.7.1-canary.251.86f4a16.0"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "86f4a1664de613b1bcdd146b6833d9cf3202546f"
|
|
49
49
|
}
|
|
@@ -56,7 +56,7 @@ function Blend.New(className)
|
|
|
56
56
|
local maid = Maid.new()
|
|
57
57
|
|
|
58
58
|
local instance = Instance.new(className)
|
|
59
|
-
|
|
59
|
+
maid:GiveTask(instance)
|
|
60
60
|
|
|
61
61
|
if defaults then
|
|
62
62
|
for key, value in pairs(defaults) do
|
|
@@ -393,10 +393,14 @@ function Blend.Spring(source, speed, damper)
|
|
|
393
393
|
|
|
394
394
|
maid:GiveTask(stopAnimate)
|
|
395
395
|
maid:GiveTask(sourceObservable:Subscribe(function(value)
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
396
|
+
if value then
|
|
397
|
+
local linearValue = SpringUtils.toLinearIfNeeded(value)
|
|
398
|
+
spring = spring or createSpring(maid, linearValue)
|
|
399
|
+
spring.t = SpringUtils.toLinearIfNeeded(value)
|
|
400
|
+
startAnimate()
|
|
401
|
+
else
|
|
402
|
+
warn("Got nil value from emitted source")
|
|
403
|
+
end
|
|
400
404
|
end))
|
|
401
405
|
|
|
402
406
|
return maid
|
|
@@ -94,7 +94,14 @@ function SpringObject:ObserveOnSignal(signal)
|
|
|
94
94
|
|
|
95
95
|
return maid
|
|
96
96
|
end)
|
|
97
|
+
end
|
|
97
98
|
|
|
99
|
+
--[=[
|
|
100
|
+
Returns true when we're animating
|
|
101
|
+
@return boolean -- True if animating
|
|
102
|
+
]=]
|
|
103
|
+
function SpringObject:IsAnimating()
|
|
104
|
+
return (SpringUtils.animating(self._currentSpring))
|
|
98
105
|
end
|
|
99
106
|
|
|
100
107
|
--[=[
|