@quenty/rectutils 1.2.0 → 1.2.1-canary.545.2374fb2.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 +11 -0
- package/package.json +3 -3
- package/src/Shared/RectUtils.lua +2 -3
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
|
+
## [1.2.1-canary.545.2374fb2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rectutils@1.2.0...@quenty/rectutils@1.2.1-canary.545.2374fb2.0) (2025-04-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Add types to packages ([2374fb2](https://github.com/Quenty/NevermoreEngine/commit/2374fb2b043cfbe0e9b507b3316eec46a4e353a0))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [1.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rectutils@1.1.0...@quenty/rectutils@1.2.0) (2025-02-18)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/rectutils
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/rectutils",
|
|
3
|
-
"version": "1.2.0",
|
|
3
|
+
"version": "1.2.1-canary.545.2374fb2.0",
|
|
4
4
|
"description": "Utility methods for Rect data object",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/loader": "
|
|
28
|
+
"@quenty/loader": "10.8.1-canary.545.2374fb2.0"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "2374fb2b043cfbe0e9b507b3316eec46a4e353a0"
|
|
34
34
|
}
|
package/src/Shared/RectUtils.lua
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
+
--!strict
|
|
1
2
|
--[=[
|
|
2
3
|
Utility method to work with the Roblox Rect data object.
|
|
3
4
|
|
|
4
5
|
@class RectUtils
|
|
5
6
|
]=]
|
|
6
7
|
|
|
7
|
-
local require = require(script.Parent.loader).load(script)
|
|
8
|
-
|
|
9
8
|
local RectUtils = {}
|
|
10
9
|
|
|
11
10
|
--[=[
|
|
@@ -14,7 +13,7 @@ local RectUtils = {}
|
|
|
14
13
|
@param position Vector2
|
|
15
14
|
@return boolean
|
|
16
15
|
]=]
|
|
17
|
-
function RectUtils.contains(rect: Rect, position: Vector2)
|
|
16
|
+
function RectUtils.contains(rect: Rect, position: Vector2): boolean
|
|
18
17
|
local relativePosition = position - rect.Min
|
|
19
18
|
|
|
20
19
|
return relativePosition.X >= 0
|