@quenty/buttondragmodel 1.15.3 → 1.15.4-canary.559.339cfa7.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
+ ## [1.15.4-canary.559.339cfa7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/buttondragmodel@1.15.3...@quenty/buttondragmodel@1.15.4-canary.559.339cfa7.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
  ## [1.15.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/buttondragmodel@1.15.2...@quenty/buttondragmodel@1.15.3) (2025-04-10)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/buttondragmodel
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/buttondragmodel",
3
- "version": "1.15.3",
3
+ "version": "1.15.4-canary.559.339cfa7.0",
4
4
  "description": "Model for dragging buttons around",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,15 +25,15 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/baseobject": "^10.8.3",
29
- "@quenty/inputobjectutils": "^4.18.3",
30
- "@quenty/loader": "^10.8.3",
31
- "@quenty/maid": "^3.4.3",
32
- "@quenty/rx": "^13.17.3",
33
- "@quenty/valueobject": "^13.17.3"
28
+ "@quenty/baseobject": "10.8.4-canary.559.339cfa7.0",
29
+ "@quenty/inputobjectutils": "4.18.4-canary.559.339cfa7.0",
30
+ "@quenty/loader": "10.8.4-canary.559.339cfa7.0",
31
+ "@quenty/maid": "3.4.4-canary.559.339cfa7.0",
32
+ "@quenty/rx": "13.17.4-canary.559.339cfa7.0",
33
+ "@quenty/valueobject": "13.17.4-canary.559.339cfa7.0"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "b06c070ae91d5dab7bd8de6e290ad2caabb15d8f"
38
+ "gitHead": "339cfa778736f08768ed7305041f6221faa35bfc"
39
39
  }
@@ -10,12 +10,12 @@ local require = require(script.Parent.loader).load(script)
10
10
  local UserInputService = game:GetService("UserInputService")
11
11
 
12
12
  local BaseObject = require("BaseObject")
13
- local Maid = require("Maid")
13
+ local Brio = require("Brio")
14
14
  local InputObjectUtils = require("InputObjectUtils")
15
+ local Maid = require("Maid")
16
+ local Observable = require("Observable")
17
+ local Signal = require("Signal")
15
18
  local ValueObject = require("ValueObject")
16
- local _Observable = require("Observable")
17
- local _Brio = require("Brio")
18
- local _Signal = require("Signal")
19
19
 
20
20
  local ButtonDragModel = setmetatable({}, BaseObject)
21
21
  ButtonDragModel.ClassName = "ButtonDragModel"
@@ -32,8 +32,8 @@ export type ButtonDragModel = typeof(setmetatable(
32
32
  _clampWithinButton: ValueObject.ValueObject<boolean>,
33
33
  _activePositions: { [InputObject | string]: Vector2? },
34
34
 
35
- DragPositionChanged: _Signal.Signal<Vector2>,
36
- IsDraggingChanged: _Signal.Signal<boolean>,
35
+ DragPositionChanged: Signal.Signal<Vector2>,
36
+ IsDraggingChanged: Signal.Signal<boolean>,
37
37
  },
38
38
  {} :: typeof({ __index = ButtonDragModel })
39
39
  )) & BaseObject.BaseObject
@@ -99,14 +99,14 @@ end
99
99
 
100
100
  @return Observable<boolean>
101
101
  ]=]
102
- function ButtonDragModel.ObserveIsPressed(self: ButtonDragModel): _Observable.Observable<boolean>
102
+ function ButtonDragModel.ObserveIsPressed(self: ButtonDragModel): Observable.Observable<boolean>
103
103
  return self._isPressed:Observe()
104
104
  end
105
105
 
106
106
  --[=[
107
107
  @return Observable<Brio<true>>
108
108
  ]=]
109
- function ButtonDragModel.ObserveIsPressedBrio(self: ButtonDragModel): _Observable.Observable<_Brio.Brio<boolean>>
109
+ function ButtonDragModel.ObserveIsPressedBrio(self: ButtonDragModel): Observable.Observable<Brio.Brio<boolean>>
110
110
  return self._isPressed:ObserveBrio(function(value)
111
111
  return value :: any
112
112
  end) :: any
@@ -115,7 +115,7 @@ end
115
115
  --[=[
116
116
  @return Observable<Vector2?>
117
117
  ]=]
118
- function ButtonDragModel.ObserveDragDelta(self: ButtonDragModel): _Observable.Observable<Vector2?>
118
+ function ButtonDragModel.ObserveDragDelta(self: ButtonDragModel): Observable.Observable<Vector2?>
119
119
  return self._dragDelta:Observe()
120
120
  end
121
121
 
@@ -144,7 +144,7 @@ end
144
144
 
145
145
  @return Observable<Vector2?>
146
146
  ]=]
147
- function ButtonDragModel.ObserveDragPosition(self: ButtonDragModel): _Observable.Observable<Vector2?>
147
+ function ButtonDragModel.ObserveDragPosition(self: ButtonDragModel): Observable.Observable<Vector2?>
148
148
  return self._dragPosition:Observe()
149
149
  end
150
150
 
@@ -367,4 +367,4 @@ function ButtonDragModel._incrementDragDelta(self: ButtonDragModel, delta: Vecto
367
367
  self._dragDelta.Value = current + Vector2.new(delta.X, delta.Y)
368
368
  end
369
369
 
370
- return ButtonDragModel
370
+ return ButtonDragModel