Boom
Boom
CC#
Created by VitalJeevanjot on 6/16/2023 in #help
Blazor server vs. Blazor web assembly + Minimal API
I mean for job secure blazor isn't it. Also if you know one and someone needs the other they'll take you. It's not a field with glut of people\
88 replies
CC#
Created by VitalJeevanjot on 6/16/2023 in #help
Blazor server vs. Blazor web assembly + Minimal API
very true too
88 replies
CC#
Created by VitalJeevanjot on 6/16/2023 in #help
Blazor server vs. Blazor web assembly + Minimal API
Well help tends to be like help on specific issue. if you're trying to guage public opinnion the #web channel might get you more.
88 replies
CC#
Created by VitalJeevanjot on 6/16/2023 in #help
Blazor server vs. Blazor web assembly + Minimal API
There's a cost sure, but that's just my thought. If you want to guage community probably get more response in web section rather than just my single opinion.
88 replies
CC#
Created by VitalJeevanjot on 6/16/2023 in #help
Blazor server vs. Blazor web assembly + Minimal API
I mean if you're asking opinion on future. WASM seems like it'd be more popular as it keeps the load on the server smaller. Where server requires the server running the app for each user.,
88 replies
CC#
Created by VitalJeevanjot on 6/16/2023 in #help
Blazor server vs. Blazor web assembly + Minimal API
I believe it's the other way around. Server is just running natively C# so you should be able to use anything. WASM may have some that aren't supported. Maybe ice can confirm that.
88 replies
CC#
Created by Boom on 6/16/2023 in #help
❔ Blazor Webassembly
nvm just missing the px
16 replies
CC#
Created by Boom on 6/16/2023 in #help
❔ Blazor Webassembly
but only getting one image showing up weird
16 replies
CC#
Created by Boom on 6/16/2023 in #help
❔ Blazor Webassembly
like this <div @ref="@context.ElementReference" class="panzoom" style="border-style: solid;width: 1000px; height: 1000px"> <img style="position: absolute; left: 100; top: 100; width: 100px; height: 100px" src="/Planets/star_blue01.png" /> <img style="position: absolute; left: 200; top: 200; width: 100px; height: 100px" src="/Planets/star_blue01.png" /> </div>
16 replies
CC#
Created by Boom on 6/16/2023 in #help
❔ Blazor Webassembly
Actually got advice in web that I could set imagine locations just by settings the left and top in css
16 replies
CC#
Created by Boom on 6/16/2023 in #help
❔ Blazor Webassembly
I've had that it doesn't seem to change anyhting
16 replies
CC#
Created by Boom on 6/16/2023 in #help
❔ Blazor Webassembly
If there is a way of putting up multiple images from a list at arbitrary x,y coordinates that doesn't need a this canvas I'd be happy to hear taht too
16 replies
CC#
Created by VitalJeevanjot on 6/16/2023 in #help
Blazor server vs. Blazor web assembly + Minimal API
The main advantages to each I found are the following: Server: Download size is smaller because it runs on server. The fact it's C# isn't served to clients so doesn't require browser supports webassembly. 0 offline support Higher latency Server runs everything so scales worse Web assembly: Download is larger as they have to download the app. Browser has to support webassembly. Can keep running without Internet after downloading the app. Much work offloaded to client so less load on the server Obviously in my research these are the things that influence my decision. But you may want to look at more factors.
88 replies
CC#
Created by VitalJeevanjot on 6/16/2023 in #help
Blazor server vs. Blazor web assembly + Minimal API
I'm still new to this and took a lot of reading about them myself. But without knowing the long term vision of the project it's hard to say.
88 replies
CC#
Created by Boom on 6/16/2023 in #help
❔ Blazor Webassembly
full repo is here in case you believe it's project issues https://github.com/mwsaari/NotAStarWarsSim But I believe I've pasted the relevant code.
16 replies
CC#
Created by Boom on 6/16/2023 in #help
❔ Blazor Webassembly
<div class="canvas" style="border-style: solid;width: 500px; height: 500px"> <BECanvas @ref="_canvasReference"> </BECanvas> </div> @code { ElementReference _planetImage; BECanvasComponent _canvasReference; Canvas2DContext _context; protected override async Task OnAfterRenderAsync(bool firstRender) { if(!firstRender) { return; } _context = await _canvasReference.CreateCanvas2DAsync(); await _context.DrawImageAsync(_planetImage, 0, 0, 400, 400); } }
16 replies
CC#
Created by Boom on 6/16/2023 in #help
❔ Blazor Webassembly
Yeah I can post more just tried to keep it simple
16 replies
CC#
Created by Boom on 6/16/2023 in #help
❔ Blazor Webassembly
code <div class="canvas" style="border-style: solid;width: 100%; height: 100%"> <BECanvas @ref="_canvasReference"> </BECanvas> </div> In OnAfterRenderAsync() { _context = await _canvasReference.CreateCanvas2DAsync(); await _context.DrawImageAsync(_planetImage, 0, 0, 400, 400); }
16 replies