@quenty/viewport 11.5.0 → 11.5.1-canary.478.013677d.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
+ ## [11.5.1-canary.478.013677d.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/viewport@11.5.0...@quenty/viewport@11.5.1-canary.478.013677d.0) (2024-08-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * Unedited all changes ([60e64e3](https://github.com/Quenty/NevermoreEngine/commit/60e64e3efce17c10c4b8965871187d231b338dd4))
12
+
13
+
14
+
15
+
16
+
6
17
  # [11.5.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/viewport@11.4.0...@quenty/viewport@11.5.0) (2024-05-09)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/viewport",
3
- "version": "11.5.0",
3
+ "version": "11.5.1-canary.478.013677d.0",
4
4
  "description": "Rendering functionality for viewportFrames",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -24,26 +24,26 @@
24
24
  "Quenty"
25
25
  ],
26
26
  "dependencies": {
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.0",
32
- "@quenty/geometryutils": "^6.3.0",
33
- "@quenty/inputobjectutils": "^4.4.0",
34
- "@quenty/loader": "^10.3.0",
35
- "@quenty/maid": "^3.2.0",
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"
27
+ "@quenty/adorneeutils": "3.2.0",
28
+ "@quenty/baseobject": "10.3.1-canary.478.013677d.0",
29
+ "@quenty/basicpane": "13.3.1-canary.478.013677d.0",
30
+ "@quenty/blend": "12.3.1-canary.478.013677d.0",
31
+ "@quenty/camera": "14.5.1-canary.478.013677d.0",
32
+ "@quenty/geometryutils": "6.3.1-canary.478.013677d.0",
33
+ "@quenty/inputobjectutils": "4.4.1-canary.478.013677d.0",
34
+ "@quenty/loader": "10.3.1-canary.478.013677d.0",
35
+ "@quenty/maid": "3.2.0",
36
+ "@quenty/math": "2.7.0",
37
+ "@quenty/rx": "13.3.1-canary.478.013677d.0",
38
+ "@quenty/signal": "7.3.1-canary.478.013677d.0",
39
+ "@quenty/spring": "10.3.1-canary.478.013677d.0",
40
+ "@quenty/valueobject": "13.3.1-canary.478.013677d.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.3.1-canary.478.013677d.0"
47
47
  },
48
- "gitHead": "3fd5cdca3128bf34c8d9dfae1e92d62533b6e6f5"
48
+ "gitHead": "013677ddf1f34b223c027d332d00450722b8fd41"
49
49
  }
@@ -90,29 +90,9 @@ function Viewport.blend(props)
90
90
  local maid = Maid.new()
91
91
 
92
92
  local viewport = Viewport.new()
93
-
94
- local function bindObservable(propName, callback)
95
- if props[propName] then
96
- local observe = Blend.toPropertyObservable(props[propName])
97
- if observe then
98
- maid:GiveTask(observe:Subscribe(function(value)
99
- callback(value)
100
- end))
101
- else
102
- callback(props[propName])
103
- end
104
- end
105
- end
106
-
107
- bindObservable("FieldOfView", function(value)
108
- viewport:SetFieldOfView(value)
109
- end)
110
- bindObservable("Instance", function(value)
111
- viewport:SetInstance(value)
112
- end)
113
- bindObservable("Transparency", function(value)
114
- viewport:SetTransparency(value)
115
- end)
93
+ viewport:SetInstance(props.Instance)
94
+ viewport:SetFieldOfView(props.FieldOfView)
95
+ viewport:SetTransparency(props.Transparency)
116
96
 
117
97
  maid:GiveTask(viewport:Render(props):Subscribe(function(result)
118
98
  sub:Fire(result)
@@ -132,9 +112,7 @@ end
132
112
  @param transparency number
133
113
  ]=]
134
114
  function Viewport:SetTransparency(transparency)
135
- assert(type(transparency) == "number", "Bad transparency")
136
-
137
- self._transparency.Value = transparency
115
+ return self._transparency:Mount(transparency or 0)
138
116
  end
139
117
 
140
118
  --[=[
@@ -143,9 +121,7 @@ end
143
121
  @param fieldOfView number
144
122
  ]=]
145
123
  function Viewport:SetFieldOfView(fieldOfView)
146
- assert(type(fieldOfView) == "number", "Bad fieldOfView")
147
-
148
- self._fieldOfView.Value = fieldOfView
124
+ return self._fieldOfView:Mount(fieldOfView or 20)
149
125
  end
150
126
 
151
127
  --[=[
@@ -161,9 +137,7 @@ end
161
137
  @param instance Instance?
162
138
  ]=]
163
139
  function Viewport:SetInstance(instance)
164
- assert(typeof(instance) == "Instance" or instance == nil, "Bad instance")
165
-
166
- self._current.Value = instance
140
+ self._current:Mount(instance)
167
141
 
168
142
  return function()
169
143
  if self._current.Value == instance then