@quenty/uiobjectutils 6.23.1 → 6.23.2

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.23.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/uiobjectutils@6.23.1...@quenty/uiobjectutils@6.23.2) (2026-01-23)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Return inside point for debugging too ([a0cf24f](https://github.com/Quenty/NevermoreEngine/commit/a0cf24f765a387203b8e69099be99afb212260b8))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [6.23.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/uiobjectutils@6.23.0...@quenty/uiobjectutils@6.23.1) (2026-01-21)
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.23.1",
3
+ "version": "6.23.2",
4
4
  "description": "UI object utils library for Roblox",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -37,5 +37,5 @@
37
37
  "@quenty/loader": "10.9.3",
38
38
  "@quenty/rx": "13.23.1"
39
39
  },
40
- "gitHead": "cc1fcc17caeaae61ff9337195df211376a5c691f"
40
+ "gitHead": "678ed19a89624c08a39990f43f45747cc3dad143"
41
41
  }
@@ -47,7 +47,7 @@ function UICornerUtils.clampPositionToFrame(
47
47
  frameSize: Vector2,
48
48
  radius: number,
49
49
  point: Vector2
50
- ): (Vector2?, Vector2?)
50
+ ): (Vector2?, Vector2?, Vector2?)
51
51
  assert(radius >= 0, "Bad radius")
52
52
  assert(point, "Bad point")
53
53
 
@@ -77,18 +77,18 @@ function UICornerUtils.clampPositionToFrame(
77
77
  rpy = miny
78
78
  end
79
79
 
80
- local position = Vector2.new(rpx, rpy)
80
+ local insidePosition = Vector2.new(rpx, rpy)
81
81
 
82
82
  -- project in direction of offset
83
- local direction = point - position
83
+ local direction = point - insidePosition
84
84
  if direction.Magnitude == 0 then
85
85
  -- Shouldn't happen!
86
- return nil, nil
86
+ return nil, nil, nil
87
87
  end
88
88
 
89
89
  local normal = direction.Unit
90
- local outsidePosition = position + normal * radius
91
- return outsidePosition, normal
90
+ local outsidePosition = insidePosition + normal * radius
91
+ return outsidePosition, normal, insidePosition
92
92
  end
93
93
 
94
94
  return UICornerUtils