@quenty/viewport 11.6.1 → 11.8.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,25 @@
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
+ # [11.8.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/viewport@11.7.0...@quenty/viewport@11.8.0) (2024-09-12)
7
+
8
+
9
+ ### Features
10
+
11
+ * Unedited all changes ([60e64e3](https://github.com/Quenty/NevermoreEngine/commit/60e64e3efce17c10c4b8965871187d231b338dd4))
12
+
13
+
14
+
15
+
16
+
17
+ # [11.7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/viewport@11.6.1...@quenty/viewport@11.7.0) (2024-08-09)
18
+
19
+ **Note:** Version bump only for package @quenty/viewport
20
+
21
+
22
+
23
+
24
+
6
25
  ## [11.6.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/viewport@11.6.0...@quenty/viewport@11.6.1) (2024-07-16)
7
26
 
8
27
  **Note:** Version bump only for package @quenty/viewport
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/viewport",
3
- "version": "11.6.1",
3
+ "version": "11.8.0",
4
4
  "description": "Rendering functionality for viewportFrames",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,25 +25,25 @@
25
25
  ],
26
26
  "dependencies": {
27
27
  "@quenty/adorneeutils": "^3.2.0",
28
- "@quenty/baseobject": "^10.3.0",
29
- "@quenty/basicpane": "^13.3.0",
30
- "@quenty/blend": "^12.3.0",
31
- "@quenty/camera": "^14.5.1",
32
- "@quenty/geometryutils": "^6.3.0",
33
- "@quenty/inputobjectutils": "^4.4.0",
34
- "@quenty/loader": "^10.3.0",
35
- "@quenty/maid": "^3.2.0",
28
+ "@quenty/baseobject": "^10.4.0",
29
+ "@quenty/basicpane": "^13.5.0",
30
+ "@quenty/blend": "^12.5.0",
31
+ "@quenty/camera": "^14.7.0",
32
+ "@quenty/geometryutils": "^6.4.0",
33
+ "@quenty/inputobjectutils": "^4.6.0",
34
+ "@quenty/loader": "^10.4.0",
35
+ "@quenty/maid": "^3.3.0",
36
36
  "@quenty/math": "^2.7.0",
37
- "@quenty/rx": "^13.3.0",
38
- "@quenty/signal": "^7.3.0",
39
- "@quenty/spring": "^10.3.0",
40
- "@quenty/valueobject": "^13.3.0"
37
+ "@quenty/rx": "^13.5.0",
38
+ "@quenty/signal": "^7.4.0",
39
+ "@quenty/spring": "^10.4.0",
40
+ "@quenty/valueobject": "^13.5.0"
41
41
  },
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  },
45
45
  "devDependencies": {
46
- "@quenty/insertserviceutils": "^10.3.0"
46
+ "@quenty/insertserviceutils": "^10.4.0"
47
47
  },
48
- "gitHead": "d9ffcf779b43c299fbb2dd0bd15d56b83b3e5043"
48
+ "gitHead": "fb172906f3ee725269ec1e5f4daf9dca227e729d"
49
49
  }
@@ -91,29 +91,9 @@ function Viewport.blend(props)
91
91
  local maid = Maid.new()
92
92
 
93
93
  local viewport = Viewport.new()
94
-
95
- local function bindObservable(propName, callback)
96
- if props[propName] then
97
- local observe = Blend.toPropertyObservable(props[propName])
98
- if observe then
99
- maid:GiveTask(observe:Subscribe(function(value)
100
- callback(value)
101
- end))
102
- else
103
- callback(props[propName])
104
- end
105
- end
106
- end
107
-
108
- bindObservable("FieldOfView", function(value)
109
- viewport:SetFieldOfView(value)
110
- end)
111
- bindObservable("Instance", function(value)
112
- viewport:SetInstance(value)
113
- end)
114
- bindObservable("Transparency", function(value)
115
- viewport:SetTransparency(value)
116
- end)
94
+ viewport:SetInstance(props.Instance)
95
+ viewport:SetFieldOfView(props.FieldOfView)
96
+ viewport:SetTransparency(props.Transparency)
117
97
 
118
98
  maid:GiveTask(viewport:Render(props):Subscribe(function(result)
119
99
  sub:Fire(result)
@@ -144,9 +124,7 @@ end
144
124
  @param transparency number
145
125
  ]=]
146
126
  function Viewport:SetTransparency(transparency)
147
- assert(type(transparency) == "number", "Bad transparency")
148
-
149
- self._transparency.Value = transparency
127
+ return self._transparency:Mount(transparency or 0)
150
128
  end
151
129
 
152
130
  --[=[
@@ -155,9 +133,7 @@ end
155
133
  @param fieldOfView number
156
134
  ]=]
157
135
  function Viewport:SetFieldOfView(fieldOfView)
158
- assert(type(fieldOfView) == "number", "Bad fieldOfView")
159
-
160
- self._fieldOfView.Value = fieldOfView
136
+ return self._fieldOfView:Mount(fieldOfView or 20)
161
137
  end
162
138
 
163
139
  --[=[
@@ -173,9 +149,7 @@ end
173
149
  @param instance Instance?
174
150
  ]=]
175
151
  function Viewport:SetInstance(instance)
176
- assert(typeof(instance) == "Instance" or instance == nil, "Bad instance")
177
-
178
- self._current.Value = instance
152
+ self._current:Mount(instance)
179
153
 
180
154
  return function()
181
155
  if self._current.Value == instance then