@rbxts/app-forge 0.7.2-prototype.29 → 0.7.2-prototype.30
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/out/renders.luau +32 -16
- package/package.json +1 -1
package/out/renders.luau
CHANGED
|
@@ -256,24 +256,24 @@ do
|
|
|
256
256
|
_loaded[_name] = newMap
|
|
257
257
|
end
|
|
258
258
|
function Renders:initalize(props, target, root)
|
|
259
|
-
if not self.__px then
|
|
260
|
-
local _result = props.config
|
|
261
|
-
if _result ~= nil then
|
|
262
|
-
_result = _result.px.target
|
|
263
|
-
end
|
|
264
|
-
local _result_1 = props.config
|
|
265
|
-
if _result_1 ~= nil then
|
|
266
|
-
_result_1 = _result_1.px.resolution
|
|
267
|
-
end
|
|
268
|
-
local _result_2 = props.config
|
|
269
|
-
if _result_2 ~= nil then
|
|
270
|
-
_result_2 = _result_2.px.minScale
|
|
271
|
-
end
|
|
272
|
-
usePx(_result, _result_1, _result_2)
|
|
273
|
-
self.__px = true
|
|
274
|
-
end
|
|
275
259
|
if target then
|
|
276
260
|
mount(function()
|
|
261
|
+
if not self.__px then
|
|
262
|
+
local _result = props.config
|
|
263
|
+
if _result ~= nil then
|
|
264
|
+
_result = _result.px.target
|
|
265
|
+
end
|
|
266
|
+
local _result_1 = props.config
|
|
267
|
+
if _result_1 ~= nil then
|
|
268
|
+
_result_1 = _result_1.px.resolution
|
|
269
|
+
end
|
|
270
|
+
local _result_2 = props.config
|
|
271
|
+
if _result_2 ~= nil then
|
|
272
|
+
_result_2 = _result_2.px.minScale
|
|
273
|
+
end
|
|
274
|
+
usePx(_result, _result_1, _result_2)
|
|
275
|
+
self.__px = true
|
|
276
|
+
end
|
|
277
277
|
local _result
|
|
278
278
|
if root then
|
|
279
279
|
_result = root
|
|
@@ -289,6 +289,22 @@ do
|
|
|
289
289
|
return _result
|
|
290
290
|
end)
|
|
291
291
|
else
|
|
292
|
+
if not self.__px then
|
|
293
|
+
local _result = props.config
|
|
294
|
+
if _result ~= nil then
|
|
295
|
+
_result = _result.px.target
|
|
296
|
+
end
|
|
297
|
+
local _result_1 = props.config
|
|
298
|
+
if _result_1 ~= nil then
|
|
299
|
+
_result_1 = _result_1.px.resolution
|
|
300
|
+
end
|
|
301
|
+
local _result_2 = props.config
|
|
302
|
+
if _result_2 ~= nil then
|
|
303
|
+
_result_2 = _result_2.px.minScale
|
|
304
|
+
end
|
|
305
|
+
usePx(_result, _result_1, _result_2)
|
|
306
|
+
self.__px = true
|
|
307
|
+
end
|
|
292
308
|
local _attributes = table.clone(props)
|
|
293
309
|
setmetatable(_attributes, nil)
|
|
294
310
|
return Vide.jsx(self.Load, _attributes)
|