@quenty/adorneevalue 10.18.3 → 10.18.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
+ ## [10.18.4-canary.11a5dcf.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/adorneevalue@10.18.3...@quenty/adorneevalue@10.18.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
  ## [10.18.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/adorneevalue@10.18.2...@quenty/adorneevalue@10.18.3) (2025-04-10)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/adorneevalue
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/adorneevalue",
3
- "version": "10.18.3",
3
+ "version": "10.18.4-canary.11a5dcf.0",
4
4
  "description": "Adorneevalue - Helper class to transform a an adornee into relative positions/information.",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,15 +25,15 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/adorneeutils": "^3.3.3",
29
- "@quenty/baseobject": "^10.8.3",
30
- "@quenty/blend": "^12.18.3",
31
- "@quenty/loader": "^10.8.3",
32
- "@quenty/maid": "^3.4.3",
33
- "@quenty/valueobject": "^13.17.3"
28
+ "@quenty/adorneeutils": "3.3.3",
29
+ "@quenty/baseobject": "10.8.4-canary.11a5dcf.0",
30
+ "@quenty/blend": "12.18.4-canary.11a5dcf.0",
31
+ "@quenty/loader": "10.8.4-canary.11a5dcf.0",
32
+ "@quenty/maid": "3.4.4-canary.11a5dcf.0",
33
+ "@quenty/valueobject": "13.17.4-canary.11a5dcf.0"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "b06c070ae91d5dab7bd8de6e290ad2caabb15d8f"
38
+ "gitHead": "11a5dcf7d4c7a0bfbf3337e97d30e8346ea09d3f"
39
39
  }
@@ -11,9 +11,9 @@ local Workspace = game:GetService("Workspace")
11
11
  local AdorneeUtils = require("AdorneeUtils")
12
12
  local BaseObject = require("BaseObject")
13
13
  local Blend = require("Blend")
14
+ local Observable = require("Observable")
15
+ local Signal = require("Signal")
14
16
  local ValueObject = require("ValueObject")
15
- local _Observable = require("Observable")
16
- local _Signal = require("Signal")
17
17
 
18
18
  local AdorneeValue = setmetatable({}, BaseObject)
19
19
  AdorneeValue.ClassName = "AdorneeValue"
@@ -25,7 +25,7 @@ export type AdorneeValue = typeof(setmetatable(
25
25
  {} :: {
26
26
  _adornee: ValueObject.ValueObject<AdorneeValueOption?>,
27
27
  Value: AdorneeValueOption?,
28
- Changed: _Signal.Signal<(AdorneeValueOption?, AdorneeValueOption?)>,
28
+ Changed: Signal.Signal<(AdorneeValueOption?, AdorneeValueOption?)>,
29
29
  },
30
30
  {} :: typeof({ __index = AdorneeValue })
31
31
  )) & BaseObject.BaseObject
@@ -57,7 +57,7 @@ end
57
57
 
58
58
  @return Observable<Instance | CFrame | Vector3 | nil>
59
59
  ]=]
60
- function AdorneeValue.Observe(self: AdorneeValue): _Observable.Observable<(Instance | CFrame | Vector3)?>
60
+ function AdorneeValue.Observe(self: AdorneeValue): Observable.Observable<(Instance | CFrame | Vector3)?>
61
61
  return self._adornee:Observe()
62
62
  end
63
63
 
@@ -112,7 +112,7 @@ end
112
112
 
113
113
  @return Observable<CFrame | nil>
114
114
  ]=]
115
- function AdorneeValue.ObserveBottomCFrame(self: AdorneeValue)
115
+ function AdorneeValue.ObserveBottomCFrame(self: AdorneeValue): Observable.Observable<CFrame?>
116
116
  return Blend.Computed(self._adornee, function(adornee: Instance): CFrame?
117
117
  if typeof(adornee) == "CFrame" then
118
118
  return adornee
@@ -140,7 +140,7 @@ end
140
140
 
141
141
  @return Observable<Vector3 | nil>
142
142
  ]=]
143
- function AdorneeValue.ObserveCenterPosition(self: AdorneeValue): _Observable.Observable<Vector3?>
143
+ function AdorneeValue.ObserveCenterPosition(self: AdorneeValue): Observable.Observable<Vector3?>
144
144
  return Blend.Computed(self._adornee, function()
145
145
  return self:GetCenterPosition()
146
146
  end)
@@ -174,7 +174,7 @@ end
174
174
 
175
175
  @return Observable<number?>
176
176
  ]=]
177
- function AdorneeValue.ObserveRadius(self: AdorneeValue)
177
+ function AdorneeValue.ObserveRadius(self: AdorneeValue): Observable.Observable<number?>
178
178
  return Blend.Computed(self._adornee, function()
179
179
  return self:GetRadius()
180
180
  end)
@@ -216,7 +216,11 @@ end
216
216
  @param observeRadius Observable<number>
217
217
  @return Observable
218
218
  ]=]
219
- function AdorneeValue.ObservePositionTowards(self: AdorneeValue, observeTargetPosition, observeRadius)
219
+ function AdorneeValue.ObservePositionTowards(
220
+ self: AdorneeValue,
221
+ observeTargetPosition: Observable.Observable<Vector3>,
222
+ observeRadius: Observable.Observable<number>
223
+ )
220
224
  -- TODO: Some sort of de-duplication/multicast.
221
225
 
222
226
  return Blend.Computed(
@@ -315,11 +319,11 @@ function AdorneeValue.RenderPositionAttachment(self: AdorneeValue, props)
315
319
  end)
316
320
 
317
321
  return Blend.New "Attachment" {
318
- Name = props.Name or "AdorneeValueAttachment";
319
- Parent = observeParentPart;
320
- CFrame = observeCFrame;
321
- [Blend.Children] = props[Blend.Children];
322
+ Name = props.Name or "AdorneeValueAttachment",
323
+ Parent = observeParentPart,
324
+ CFrame = observeCFrame,
325
+ [Blend.Children] = props[Blend.Children],
322
326
  }
323
327
  end
324
328
 
325
- return AdorneeValue
329
+ return AdorneeValue