Skip to content

Commit 4c160cd

Browse files
committed
Deploying to gh-pages from @ 9181a41 🚀
1 parent fc0dc7b commit 4c160cd

9 files changed

Lines changed: 73 additions & 41 deletions

SpawnDev.BlazorJS.lib.module.js

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
(function () {
2+
// helper function used in place of 'in' operator for hecking if a property exists to allow a consistent operation regardless of obj's type
3+
function _in(key, obj) {
4+
if (obj === null || obj === void 0) return false;
5+
if (typeof obj === 'object') return key in obj;
6+
return obj[key] !== void 0;
7+
}
28
class BlazorJSInterop {
39
constructor() {
410
this.reviverAttached = false;
@@ -116,7 +122,7 @@
116122
if (obj === void 0 || obj === null) throw new Error('obj null or undefined');
117123
var { parent, propertyName, shortCircuit } = this.pathObjectInfo(obj, key);
118124
if (shortCircuit) return false;
119-
return propertyName in parent;
125+
return _in(propertyName, parent);
120126
}
121127
// *****************************************************
122128
// ************ globalThis Property Methods ************
@@ -375,7 +381,7 @@
375381
var target;
376382
var propertyName;
377383
var shortCircuit = false;
378-
if (typeof path === 'string' && !(path in parent)) {
384+
if (typeof path === 'string' && !(_in(path, parent))) {
379385
var parts = path.split('.');
380386
propertyName = parts[parts.length - 1];
381387
var part;
@@ -413,7 +419,7 @@
413419
customReviverfunction(key, value) {
414420
var _this = this;
415421
if (value && typeof value === 'object') {
416-
if ('_callbackId' in value) {
422+
if (_in('_callbackId', value)) {
417423
var _callbackId = value._callbackId;
418424
var callback = _this.callbacks[_callbackId];
419425
if (callback) return callback;
@@ -441,7 +447,7 @@
441447
_this.callbacks[_callbackId] = callback;
442448
return callback;
443449
}
444-
else if ('_callbackAsyncId' in value) {
450+
else if (_in('_callbackAsyncId', value)) {
445451
var _callbackId = value._callbackAsyncId;
446452
var callback = _this.asyncCallbacks[_callbackId];
447453
if (callback) return callback;
@@ -470,13 +476,13 @@
470476
_this.asyncCallbacks[_callbackId] = callback;
471477
return callback;
472478
}
473-
else if ('__wrappedJSObject' in value) {
479+
else if (_in('__wrappedJSObject', value)) {
474480
return value.__wrappedJSObject;
475481
}
476-
else if ('__undefinedref__' in value) {
482+
else if (_in('__undefinedref__', value)) {
477483
return;
478484
}
479-
else if ('$bigint' in value) {
485+
else if (_in('$bigint', value)) {
480486
return BigInt(value.$bigint);
481487
}
482488
}

SpawnDev.MatrixLEDDisplay.3lqfx81qnl.bundle.scp.css

Lines changed: 0 additions & 26 deletions
This file was deleted.

SpawnDev.MatrixLEDDisplay.Demo.styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'SpawnDev.MatrixLEDDisplay.3lqfx81qnl.bundle.scp.css';
1+
@import 'SpawnDev.MatrixLEDDisplay.w4qv49szkg.bundle.scp.css';
22

33
/* /Layout/AppTray/AppTrayArea.razor.rz.scp.css */
44

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
/* /Components/LEDMatrix.razor.rz.scp.css */
2+
.led-matrix[b-ewizjrd0aq] {
3+
border: 1px solid black;
4+
display: inline-block;
5+
}
6+
7+
.button-row[b-ewizjrd0aq] {
8+
margin: 0;
9+
border: 0;
10+
padding: 0;
11+
line-height: 0;
12+
}
13+
14+
button[b-ewizjrd0aq] {
15+
width: 20px;
16+
height: 20px;
17+
border: 1px solid black;
18+
background-color: #04AA6D; /* Green */
19+
color: white;
20+
text-align: center;
21+
text-decoration: none;
22+
display: inline-block;
23+
font-size: 16px;
24+
margin: 0;
25+
padding: 0;
26+
}
27+
/* /Components/PixelArtView.razor.rz.scp.css */
28+
.led-matrix[b-6v9uwk2gfv] {
29+
border: 1px solid black;
30+
display: inline-block;
31+
}
32+
33+
.button-row[b-6v9uwk2gfv] {
34+
margin: 0;
35+
border: 0;
36+
padding: 0;
37+
line-height: 0;
38+
}
39+
40+
button[b-6v9uwk2gfv] {
41+
width: 20px;
42+
height: 20px;
43+
border: 1px solid black;
44+
background-color: #04AA6D; /* Green */
45+
color: white;
46+
text-align: center;
47+
text-decoration: none;
48+
display: inline-block;
49+
font-size: 16px;
50+
margin: 0;
51+
padding: 0;
52+
}
512 Bytes
Binary file not shown.

_framework/SpawnDev.BlazorJS.wasm

2.5 KB
Binary file not shown.
7 KB
Binary file not shown.
13.5 KB
Binary file not shown.

_framework/blazor.boot.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"mainAssemblyName": "SpawnDev.MatrixLEDDisplay.Demo",
33
"resources": {
4-
"hash": "sha256-jCzg+tTgu/VshCiVL1KBT8p/6S0Ackzu2CKyeDUecFo=",
4+
"hash": "sha256-8bElHkKJYCrjcgL0Iu0HZqePN7fovy28QNN5PfixN+I=",
55
"jsModuleNative": {
66
"dotnet.native.js": "sha256-Z9Xe/xz8JqHq5fNG6eiZW/7ysMS/8ItmX5BYPIQPNTc="
77
},
@@ -18,7 +18,7 @@
1818
},
1919
"coreAssembly": {},
2020
"assembly": {
21-
"Microsoft.AspNetCore.Components.wasm": "sha256-MOu4Po3Z3rKuEjDVTBWQkktpk1Y4R0Yv1B3p9G8PxFQ=",
21+
"Microsoft.AspNetCore.Components.wasm": "sha256-L0hMrF6hrTOGA9b99+5SSWoJgVtyoIopuhti9cfOBH4=",
2222
"Microsoft.AspNetCore.Components.Forms.wasm": "sha256-zOEnJqsO/ulIIHpjg5BT47E+R1wRosu7p0plp8HZryc=",
2323
"Microsoft.AspNetCore.Components.Web.wasm": "sha256-UTaugy3BZlVg7LNvpWFbS5dYbUPUc0EBaLTUVGVUXjc=",
2424
"Microsoft.AspNetCore.Components.WebAssembly.wasm": "sha256-a4pwgjpRHmbUcj1W9aO214pmXLjFGsIY/d3PtkSqmxM=",
@@ -34,7 +34,7 @@
3434
"Microsoft.JSInterop.wasm": "sha256-NOP1yHrMj+QL0Xqorr14TPfSu0zujVqllEl1jxFI+LE=",
3535
"Microsoft.JSInterop.WebAssembly.wasm": "sha256-73fobmdfDEgPi5c9HIlVzjHZtWrtF7HElTQFBTEttnQ=",
3636
"Radzen.Blazor.wasm": "sha256-suJtLNy//qAerYQ23f19kwLEB1q75oPoJzh3yYSfsxA=",
37-
"SpawnDev.BlazorJS.wasm": "sha256-vjXSe84qsGhwaXY1ePsdKB7dtx95B+TpgQ+YOVrl880=",
37+
"SpawnDev.BlazorJS.wasm": "sha256-rcAI+q77RlnEVQfwipsSRR5uRl3NoRa4j389WuN9C6w=",
3838
"System.Linq.Dynamic.Core.wasm": "sha256-zY4O55eQ9gC1F0jl4MFsfpX6oCP3eabUwmK1PIrgx3Q=",
3939
"Microsoft.CSharp.wasm": "sha256-SB+CoEogIqgWxSbbSq1masuAVlLBi7Lmy9Oy7WhhpbE=",
4040
"System.Collections.Concurrent.wasm": "sha256-kIIql6gFAqcsYa4azyk235R7l/9cw+aCct0BfHEvEMk=",
@@ -82,14 +82,14 @@
8282
"System.Xml.XDocument.wasm": "sha256-Jko0vukE6+krICixdxcj4vyrVsPz+KCYLvj/0hUb9mI=",
8383
"System.wasm": "sha256-/Ib2sECJIp5OmAw2FVP/3jA36Bh6yA6fac798DlmOd8=",
8484
"System.Private.CoreLib.wasm": "sha256-uFbogQ4c2aDzH48t7yYOGQIvslfAujZyS5/d/QSVQTM=",
85-
"SpawnDev.MatrixLEDDisplay.wasm": "sha256-41hvr3FOCfkbx8cPHoEoA9aRAkRX14+sINHFwsR50b4=",
86-
"SpawnDev.MatrixLEDDisplay.Demo.wasm": "sha256-f+BN5Dn+HBXiIya2Ft/TnmyOwpZY35WBmd82KvfHjWA="
85+
"SpawnDev.MatrixLEDDisplay.wasm": "sha256-VGL8Cs7XfDL3ytkXWTri/6b3mwVXT9c7QvfsOgMOxe0=",
86+
"SpawnDev.MatrixLEDDisplay.Demo.wasm": "sha256-kzzTSpn/awr9cSNfcaT/8mQnmFV8+WjQkPVsJYwhYgE="
8787
},
8888
"libraryInitializers": {
89-
"SpawnDev.BlazorJS.lib.module.js": "sha256-He/MmXng7zf8Jyezvvf4fudQYyVkjhf7DodMUnMOSqc="
89+
"SpawnDev.BlazorJS.lib.module.js": "sha256-MSEFzzIHfyaslxH4GvsWrzxOUHz5n4SKxG0AiWpiYV0="
9090
},
9191
"modulesAfterRuntimeReady": {
92-
"../SpawnDev.BlazorJS.lib.module.js": "sha256-He/MmXng7zf8Jyezvvf4fudQYyVkjhf7DodMUnMOSqc="
92+
"../SpawnDev.BlazorJS.lib.module.js": "sha256-MSEFzzIHfyaslxH4GvsWrzxOUHz5n4SKxG0AiWpiYV0="
9393
}
9494
},
9595
"cacheBootResources": true,

0 commit comments

Comments
 (0)