@quenty/scrollingframe 3.4.0 → 4.0.1-canary.238.2c4d310.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,22 @@
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
+ ## [4.0.1-canary.238.2c4d310.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/scrollingframe@4.0.0...@quenty/scrollingframe@4.0.1-canary.238.2c4d310.0) (2021-12-29)
7
+
8
+ **Note:** Version bump only for package @quenty/scrollingframe
9
+
10
+
11
+
12
+
13
+
14
+ # [4.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/scrollingframe@3.4.0...@quenty/scrollingframe@4.0.0) (2021-12-22)
15
+
16
+ **Note:** Version bump only for package @quenty/scrollingframe
17
+
18
+
19
+
20
+
21
+
6
22
  # [3.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/scrollingframe@3.3.0...@quenty/scrollingframe@3.4.0) (2021-12-18)
7
23
 
8
24
  **Note:** Version bump only for package @quenty/scrollingframe
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  ## ScrollingFrame
2
2
  <div align="center">
3
- <a href="http://quenty.github.io/api/">
3
+ <a href="http://quenty.github.io/NevermoreEngine/">
4
4
  <img src="https://img.shields.io/badge/docs-website-green.svg" alt="Documentation" />
5
5
  </a>
6
6
  <a href="https://discord.gg/mhtGUS8">
7
- <img src="https://img.shields.io/badge/discord-nevermore-blue.svg" alt="Discord" />
7
+ <img src="https://img.shields.io/discord/385151591524597761?color=5865F2&label=discord&logo=discord&logoColor=white" alt="Discord" />
8
8
  </a>
9
9
  <a href="https://github.com/Quenty/NevermoreEngine/actions">
10
10
  <img src="https://github.com/Quenty/NevermoreEngine/actions/workflows/build.yml/badge.svg" alt="Build and release status" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/scrollingframe",
3
- "version": "3.4.0",
3
+ "version": "4.0.1-canary.238.2c4d310.0",
4
4
  "description": "Creates an inertia based scrolling frame that is animated and has inertia frames Alternative to a Roblox ScrollingFrame with inertia scrolling and complete control over behavior and style",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,14 +25,14 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/loader": "^3.1.1",
29
- "@quenty/maid": "^2.0.1",
30
- "@quenty/signal": "^2.0.0",
31
- "@quenty/spring": "^2.2.0",
32
- "@quenty/table": "^2.1.0"
28
+ "@quenty/loader": "3.1.2-canary.238.2c4d310.0",
29
+ "@quenty/maid": "2.0.2-canary.238.2c4d310.0",
30
+ "@quenty/signal": "2.0.1-canary.238.2c4d310.0",
31
+ "@quenty/spring": "3.0.1-canary.238.2c4d310.0",
32
+ "@quenty/table": "2.1.1-canary.238.2c4d310.0"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "gitHead": "6eb398e9fb81191f0815885f807ab0cb3bb9bad1"
37
+ "gitHead": "2c4d310b84afd0570d89667dc5d4aa69a0ef304a"
38
38
  }
@@ -1,5 +1,7 @@
1
- --- ScrollType enum, determines scrolling behavior
2
- -- @module ScrollType
1
+ --[=[
2
+ ScrollType enum, determines scrolling behavior
3
+ @class ScrollType
4
+ ]=]
3
5
 
4
6
  local require = require(script.Parent.loader).load(script)
5
7
 
@@ -1,5 +1,7 @@
1
- --- Scrolling model for scrolling frame
2
- -- @module ScrollModel
1
+ --[=[
2
+ Scrolling model for scrolling frame
3
+ @class ScrollModel
4
+ ]=]
3
5
 
4
6
  local require = require(script.Parent.loader).load(script)
5
7
 
@@ -1,5 +1,6 @@
1
- ---
2
- -- @classmod Scrollbar
1
+ --[=[
2
+ @class Scrollbar
3
+ ]=]
3
4
 
4
5
  local require = require(script.Parent.loader).load(script)
5
6
 
@@ -1,6 +1,10 @@
1
- --- Creates an inertia based scrolling frame that is animated and has inertia frames
2
- -- Alternative to a Roblox ScrollingFrame with inertia scrolling and complete control over behavior and style
3
- -- @classmod ScrollingFrame
1
+ --[=[
2
+ Creates an inertia based scrolling frame that is animated and has inertia frames
3
+ Alternative to a Roblox ScrollingFrame with inertia scrolling and complete control over behavior and style.
4
+
5
+ @deprecated 1.0.0
6
+ @class ScrollingFrame
7
+ ]=]
4
8
 
5
9
  local require = require(script.Parent.loader).load(script)
6
10
 
@@ -16,8 +20,13 @@ local ScrollingFrame = {}
16
20
  ScrollingFrame.ClassName = "ScrollingFrame"
17
21
  ScrollingFrame.__index = ScrollingFrame
18
22
 
19
- --- Creates a new ScrollingFrame which can be used. Prefer Container.Active = true so scroll wheel works.
20
- -- Container should be in a Frame with ClipsDescendants = true
23
+ --[=[
24
+ Creates a new ScrollingFrame which can be used. Prefer Container.Active = true so scroll wheel works.
25
+ Container should be in a Frame with ClipsDescendants = true
26
+
27
+ @param gui BaseGui -- Gui to use
28
+ @return ScrollingFrame
29
+ ]=]
21
30
  function ScrollingFrame.new(gui)
22
31
  local self = setmetatable({}, ScrollingFrame)
23
32
 
@@ -48,7 +57,7 @@ function ScrollingFrame.new(gui)
48
57
  return self
49
58
  end
50
59
 
51
- --- Sets the scroll type for the frame
60
+ -- Sets the scroll type for the frame
52
61
  function ScrollingFrame:SetScrollType(scrollType)
53
62
  assert(Table.contains(SCROLL_TYPE, scrollType))
54
63
  self._scrollType = scrollType
@@ -70,7 +79,7 @@ function ScrollingFrame:RemoveScrollbar(scrollbar)
70
79
  end
71
80
  end
72
81
 
73
- --- Scrolls to the position in pixels offset
82
+ -- Scrolls to the position in pixels offset
74
83
  function ScrollingFrame:ScrollTo(position, doNotAnimate)
75
84
  self._model.Target = position
76
85
  if doNotAnimate then
@@ -79,12 +88,12 @@ function ScrollingFrame:ScrollTo(position, doNotAnimate)
79
88
  end
80
89
  end
81
90
 
82
- --- Scrolls to the top
91
+ -- Scrolls to the top
83
92
  function ScrollingFrame:ScrollToTop(doNotAnimate)
84
93
  self:ScrollTo(self._model.Min, doNotAnimate)
85
94
  end
86
95
 
87
- --- Scrolls to the bottom
96
+ -- Scrolls to the bottom
88
97
  function ScrollingFrame:ScrollToBottom(doNotAnimate)
89
98
  self:ScrollTo(self._model.Max, doNotAnimate)
90
99
  end
@@ -130,7 +139,7 @@ function ScrollingFrame:StopDrag()
130
139
  self:_freeScroll()
131
140
  end
132
141
 
133
- --- Scrolls until model is at rest
142
+ -- Scrolls until model is at rest
134
143
  function ScrollingFrame:_freeScroll(lowPriority)
135
144
  if lowPriority and self._maid._updateMaid then
136
145
  return
@@ -149,7 +158,7 @@ function ScrollingFrame:_freeScroll(lowPriority)
149
158
  self._maid._updateMaid = maid
150
159
  end
151
160
 
152
- ---
161
+ --
153
162
  -- @param[opt=1] strength
154
163
  function ScrollingFrame:_getVelocityTracker(strength)
155
164
  strength = strength or 1
@@ -193,8 +202,8 @@ end
193
202
 
194
203
 
195
204
 
196
- --- Binds input to a specific GUI
197
- -- @treturn Maid maid to cleanup inputs
205
+ -- Binds input to a specific GUI
206
+ -- @return maid Maid -- To cleanup inputs
198
207
  function ScrollingFrame:BindInput(gui, options)
199
208
  local maid = Maid.new()
200
209