@quenty/uiobjectutils 6.16.3 → 6.16.4-canary.11a5dcf.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
|
+
## [6.16.4-canary.11a5dcf.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/uiobjectutils@6.16.3...@quenty/uiobjectutils@6.16.4-canary.11a5dcf.0) (2025-05-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Additional type checking updates ([05ba29a](https://github.com/Quenty/NevermoreEngine/commit/05ba29a03efc9f3feed74b34f1d9dfb237496214))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [6.16.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/uiobjectutils@6.16.2...@quenty/uiobjectutils@6.16.3) (2025-04-10)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/uiobjectutils
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/uiobjectutils",
|
|
3
|
-
"version": "6.16.
|
|
3
|
+
"version": "6.16.4-canary.11a5dcf.0",
|
|
4
4
|
"description": "UI object utils library for Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@quenty/brio": "
|
|
32
|
-
"@quenty/enumutils": "
|
|
33
|
-
"@quenty/instanceutils": "
|
|
34
|
-
"@quenty/loader": "
|
|
35
|
-
"@quenty/rx": "
|
|
31
|
+
"@quenty/brio": "14.17.4-canary.11a5dcf.0",
|
|
32
|
+
"@quenty/enumutils": "3.4.2",
|
|
33
|
+
"@quenty/instanceutils": "13.17.4-canary.11a5dcf.0",
|
|
34
|
+
"@quenty/loader": "10.8.4-canary.11a5dcf.0",
|
|
35
|
+
"@quenty/rx": "13.17.4-canary.11a5dcf.0"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "11a5dcf7d4c7a0bfbf3337e97d30e8346ea09d3f"
|
|
38
38
|
}
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
local require = require(script.Parent.loader).load(script)
|
|
7
7
|
|
|
8
|
-
local
|
|
8
|
+
local Brio = require("Brio")
|
|
9
|
+
local Observable = require("Observable")
|
|
9
10
|
local Rx = require("Rx")
|
|
10
11
|
local RxBrioUtils = require("RxBrioUtils")
|
|
11
|
-
local
|
|
12
|
-
local _Brio = require("Brio")
|
|
12
|
+
local RxInstanceUtils = require("RxInstanceUtils")
|
|
13
13
|
|
|
14
14
|
local GuiInteractionUtils = {}
|
|
15
15
|
|
|
@@ -19,7 +19,7 @@ local GuiInteractionUtils = {}
|
|
|
19
19
|
@param gui GuiObject
|
|
20
20
|
@return Observable<boolean>
|
|
21
21
|
]=]
|
|
22
|
-
function GuiInteractionUtils.observeInteractionEnabled(gui: GuiObject):
|
|
22
|
+
function GuiInteractionUtils.observeInteractionEnabled(gui: GuiObject): Observable.Observable<boolean>
|
|
23
23
|
assert(typeof(gui) == "Instance" and gui:IsA("GuiObject"), "Bad gui")
|
|
24
24
|
|
|
25
25
|
return Rx.combineLatest({
|
|
@@ -42,7 +42,7 @@ end
|
|
|
42
42
|
@param gui GuiObject
|
|
43
43
|
@return Observable<Brio<true>>
|
|
44
44
|
]=]
|
|
45
|
-
function GuiInteractionUtils.observeInteractionEnabledBrio(gui: GuiObject):
|
|
45
|
+
function GuiInteractionUtils.observeInteractionEnabledBrio(gui: GuiObject): Observable.Observable<Brio.Brio<true>>
|
|
46
46
|
assert(typeof(gui) == "Instance" and gui:IsA("GuiObject"), "Bad gui")
|
|
47
47
|
|
|
48
48
|
return GuiInteractionUtils.observeInteractionEnabled(gui):Pipe({
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
local require = require(script.Parent.loader).load(script)
|
|
9
9
|
|
|
10
|
+
local Observable = require("Observable")
|
|
10
11
|
local Rx = require("Rx")
|
|
11
12
|
local RxInstanceUtils = require("RxInstanceUtils")
|
|
12
|
-
local _Observable = require("Observable")
|
|
13
13
|
|
|
14
14
|
local RxClippedRectUtils = {}
|
|
15
15
|
|
|
@@ -25,7 +25,7 @@ type State = {
|
|
|
25
25
|
@param gui Gui
|
|
26
26
|
@return Observable<Rect>
|
|
27
27
|
]=]
|
|
28
|
-
function RxClippedRectUtils.observeClippedRect(gui: GuiObject):
|
|
28
|
+
function RxClippedRectUtils.observeClippedRect(gui: GuiObject): Observable.Observable<Rect>
|
|
29
29
|
assert(typeof(gui) == "Instance" and gui:IsA("GuiObject"), "Bad GuiBase2d")
|
|
30
30
|
|
|
31
31
|
-- At least use our object's size here...
|
|
@@ -61,7 +61,7 @@ type ClippedRectState = {
|
|
|
61
61
|
@param gui Gui
|
|
62
62
|
@return Observable<Rect>
|
|
63
63
|
]=]
|
|
64
|
-
function RxClippedRectUtils.observeClippedRectInScale(gui: GuiObject):
|
|
64
|
+
function RxClippedRectUtils.observeClippedRectInScale(gui: GuiObject): Observable.Observable<Rect>
|
|
65
65
|
assert(typeof(gui) == "Instance" and gui:IsA("GuiObject"), "Bad GuiBase2d")
|
|
66
66
|
|
|
67
67
|
return Rx.combineLatest({
|
|
@@ -89,7 +89,7 @@ function RxClippedRectUtils.observeClippedRectInScale(gui: GuiObject): _Observab
|
|
|
89
89
|
}) :: any
|
|
90
90
|
end
|
|
91
91
|
|
|
92
|
-
function RxClippedRectUtils._observeClippedRectImpl(gui: GuiObject):
|
|
92
|
+
function RxClippedRectUtils._observeClippedRectImpl(gui: GuiObject): Observable.Observable<Rect>
|
|
93
93
|
if gui:IsA("GuiObject") then
|
|
94
94
|
return RxInstanceUtils.observeProperty(gui, "ClipsDescendants"):Pipe({
|
|
95
95
|
Rx.switchMap(function(clipDescendants)
|
|
@@ -153,7 +153,7 @@ function RxClippedRectUtils._computeClippedRect(state: State): Rect
|
|
|
153
153
|
return Rect.new(topLeftX, topLeftY, topLeftX + sizeX, topLeftY + sizeY)
|
|
154
154
|
end
|
|
155
155
|
|
|
156
|
-
function RxClippedRectUtils._observeParentClippedRect(gui: GuiBase2d):
|
|
156
|
+
function RxClippedRectUtils._observeParentClippedRect(gui: GuiBase2d): Observable.Observable<Rect?>
|
|
157
157
|
assert(typeof(gui) == "Instance" and gui:IsA("GuiBase2d"), "Bad GuiBase2d")
|
|
158
158
|
|
|
159
159
|
return RxInstanceUtils.observeFirstAncestor(gui, "GuiObject"):Pipe({
|