@quenty/timedtween 2.4.0 → 3.0.0-canary.c90a5c7.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,12 +3,9 @@
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
- # [2.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/timedtween@2.3.0...@quenty/timedtween@2.4.0) (2024-01-08)
6
+ # [3.0.0-canary.c90a5c7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/timedtween@2.3.0...@quenty/timedtween@3.0.0-canary.c90a5c7.0) (2024-01-08)
7
7
 
8
-
9
- ### Features
10
-
11
- * Add TimedTween:GetTransitionTime() and TimedTween:ObserveTransitionTime() ([22f95a4](https://github.com/Quenty/NevermoreEngine/commit/22f95a4d76063dec5e14d0848fa27ee24ead2bb1))
8
+ **Note:** Version bump only for package @quenty/timedtween
12
9
 
13
10
 
14
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/timedtween",
3
- "version": "2.4.0",
3
+ "version": "3.0.0-canary.c90a5c7.0",
4
4
  "description": "Linear timed tweening model",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,19 +25,19 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/basicpane": "^8.4.0",
29
- "@quenty/blend": "^7.4.0",
30
- "@quenty/loader": "^7.3.0",
31
- "@quenty/maid": "^2.6.0",
32
- "@quenty/math": "^2.5.0",
33
- "@quenty/promise": "^7.2.0",
34
- "@quenty/promisemaid": "^2.2.0",
35
- "@quenty/rx": "^8.4.0",
36
- "@quenty/steputils": "^3.3.0",
37
- "@quenty/valueobject": "^8.4.0"
28
+ "@quenty/basicpane": "9.0.0-canary.c90a5c7.0",
29
+ "@quenty/blend": "8.0.0-canary.c90a5c7.0",
30
+ "@quenty/loader": "8.0.0-canary.c90a5c7.0",
31
+ "@quenty/maid": "2.6.0",
32
+ "@quenty/math": "2.5.0",
33
+ "@quenty/promise": "8.0.0-canary.c90a5c7.0",
34
+ "@quenty/promisemaid": "3.0.0-canary.c90a5c7.0",
35
+ "@quenty/rx": "9.0.0-canary.c90a5c7.0",
36
+ "@quenty/steputils": "3.3.0",
37
+ "@quenty/valueobject": "9.0.0-canary.c90a5c7.0"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "075fb03a03f12ade8758f667767ba738204e0c4b"
42
+ "gitHead": "c90a5c74ac7045804ba6018fc3424e406d13f21a"
43
43
  }
@@ -1,6 +1,4 @@
1
1
  --[=[
2
- Tween that is a specific time, useful for countdowns and other things
3
-
4
2
  @class TimedTween
5
3
  ]=]
6
4
 
@@ -20,12 +18,6 @@ local TimedTween = setmetatable({}, BasicPane)
20
18
  TimedTween.ClassName = "TimedTween"
21
19
  TimedTween.__index = TimedTween
22
20
 
23
- --[=[
24
- Timed transition module
25
-
26
- @param transitionTime number? -- Optional
27
- @return TimedTween
28
- ]=]
29
21
  function TimedTween.new(transitionTime)
30
22
  local self = setmetatable(BasicPane.new(), TimedTween)
31
23
 
@@ -53,49 +45,14 @@ function TimedTween.new(transitionTime)
53
45
  return self
54
46
  end
55
47
 
56
- --[=[
57
- Sets the transition time
58
-
59
- @param transitionTime number | Observable<number>
60
- @return MaidTask
61
- ]=]
62
48
  function TimedTween:SetTransitionTime(transitionTime)
63
49
  return self._transitionTime:Mount(transitionTime)
64
50
  end
65
51
 
66
- --[=[
67
- Gets the transition time
68
-
69
- @return number
70
- ]=]
71
- function TimedTween:GetTransitionTime()
72
- return self._transitionTime.Value
73
- end
74
-
75
- --[=[
76
- Observes the transition time
77
-
78
- @return Observable<number>
79
- ]=]
80
- function TimedTween:ObserveTransitionTime()
81
- return self._transitionTime:Observe()
82
- end
83
-
84
- --[=[
85
- Observes how far into the transition we are, from 0 to 1
86
-
87
- @return Observable<number>
88
- ]=]
89
52
  function TimedTween:ObserveRenderStepped()
90
53
  return self:ObserveOnSignal(RunService.RenderStepped)
91
54
  end
92
55
 
93
- --[=[
94
- Observes the transition on a specific signal
95
-
96
- @param signal Signal
97
- @return Observable<number>
98
- ]=]
99
56
  function TimedTween:ObserveOnSignal(signal)
100
57
  return Observable.new(function(sub)
101
58
  local maid = Maid.new()
@@ -114,20 +71,10 @@ function TimedTween:ObserveOnSignal(signal)
114
71
  end)
115
72
  end
116
73
 
117
- --[=[
118
- Observes the transition
119
-
120
- @return Observable<number>
121
- ]=]
122
74
  function TimedTween:Observe()
123
75
  return self:ObserveOnSignal(RunService.RenderStepped)
124
76
  end
125
77
 
126
- --[=[
127
- Promises when the tween is finished
128
-
129
- @return Promise
130
- ]=]
131
78
  function TimedTween:PromiseFinished()
132
79
  local initState = self:_computeState(os.clock())
133
80
  if initState.rtime <= 0 then