Background Achieve one-click export to excel And distinguish charts and tables as different sheets The final effect is Code implementation Function implementation <script lang=”ts”> import * as echarts from ‘echarts’; import ExcelJS from ‘exceljs’; import {<!– –> saveAs } from ‘file-saver’; import {<!– –>getAsyncTempCurrentData} from ‘../../../api/fenxi’ import {<!– –> toRefs } from ‘vue’ import FileSaver […]
Tag: ksh
React HooksHooks
1. useState() useState allows function components to have state like class components. Function components use useState to allow components to re-render and update views. Syntax, parameters and return value description: const [ ①state , ②dispatch ] = useState(③initData) ① state, intended to be provided to the UI as a data source for rendering views. ② […]
Java Array: Yes, if I don’t install it, it will just be my bookshelf.
[CFD Workshop] Model mesh (triangular mesh)
[CFD Workshop] Model mesh (triangular mesh) Preface mesh geometry grid number Programming implementation Data reading Grid data construction This series of blog posts is about my process of learning the theory of two-dimensional shallow water equations and compiling a practical two-dimensional shallow water flow model. (Review of the previous blog) Foreword This 2D shallow water […]
@9.23 GOSIM Workshop | Rust game engine Bevy makes its debut!
Co-authorsofthisarticle:ZhouLiang/ZhangHandong ” Thisyear(2023),thefirstGOSIMWorkshop(9.23-24)[1]andGOSIMConference(9.26)[2]willbeheldinShanghaiinSeptember.TheGOSIMvenuewillsupport”simultaneousinterpretation”,sofriendscanbuyticketsandparticipatewithconfidence.ForthosewhoarenotfamiliarwiththeGOSIMconference,youcanrefertothedetailedintroductionattheendofthearticle. ThisGOSIMWorkshopgameandmetaversesub-foruminvitedAlice,thecoremaintainerofBevy,awell-knownprojectintheRustopensourcegameengine,togiveyouawonderfulsharing.BeforeattendingtheWorkshop,youshouldhavesomeunderstandingoftheBevygameengine.ThroughthisarticleyouwillunderstandthelateststatusofBevyandlearntheECSarchitecture. IntroductiontoBevy ” Theauthorofthischapter:ZhouLiang,aformergameindustryveteran,workedfromPHPtoMR,andcurrentlydevoteshisenergytoBevy. bevylogo Bevy[3]isadata-drivenfreeopensourcegameenginebuiltinRustwithECSarchitectureasthecore.Itcurrentlyhas26KstarsonGithubandisthesecondmostpopulargameengineonGithub(RustGameenginerankedfirst)[4].BevyjustcelebrateditsthirdbirthdayinearlyAugustthisyear.Itisyoung,elegantandfullofenergy. Therearemanymatureenginesonthemarket,suchasUnrealEngine[5],Unity[6],Godot[7],Cocos2d[8]Wait,thenwhydoesBevystillappear?Theauthorexplainedthereasons[9],andthereareseveralreasonsthatimpressedme: Freeandopensource ” ItmustbeFreeandOpenSource,with_nostringsattached_.Gamesareanimportantpartofourculture,andhumansareinvestingmillionsofhoursintogamedevelopment.Whydowe(asgamedevelopers/enginedevelopers)continuetobuildanecosystemofclosedsourcemonopoliesthatcutintooursalesanddepriveusofvisibilityintothetechnologyweuseeveryday?Asacommunity,Ibelievewecandobetter.ThisstandardeliminatesUnrealandUnity,despitetheirlargefeaturesets. Recently,Unity’snewchargingmodel[10]hascausedshockintheindustry.Payingbasedoninstallationvolumeisanadditionalburdenforsmallandmedium-sizeddevelopers.Bevyusesdual-protocolauthorizationfromMITandAPACHE2,whichisveryuser-friendly. TurtlesAllTheWayDown[11] ” Ideally,theengineiswritteninthesamelanguageasthegame.BeingabletoruntheIDE”gotodefinition”commandonasymbolinthegameandjumpdirectlytotheenginesourcecodeisaverypowerfulconcept.Youalsodon’tneedtoworryaboutheavylanguagetranslationlayersorlossyabstractions.Theengine’scommunityismorelikely(andable)tocontributetotheengineiftheyusethesamelanguageastheenginetobuildgames. JustasthedevelopmentlanguageofUnrealisC++,thedevelopmentlanguageofUnityandGodotisC#,BevyisapuregameenginedevelopedbyRust.Ifyouarearustenthusiast,youcanlearnalotfromthebevyproject,suchashowtoimplementRustreflection[12].Ifyouareagameengineenthusiast,youcanfollowBevy’scommunitytolearngameengineknowledgefromRFCdiscussionstomoduleimplementation. Simple ” Itneedstobeeasytouseforcommontasks,butalsonothidethedetailsfromyou.Manyenginesareeither”easytousebuttoohighlevel”or”lowlevelbutdifficulttocompletecommontasks”.Additionally,manyenginesinRustareriddledwithlifecyclesandgenerics.Granted,botharepowerfultools,buttheyalsoimposecognitiveloadandreduceergonomics.Genericscanalsohaveahugeimpactoncompiletimesifyou’renotcareful. ManytimeslifecycleandgenericsarestumblingblocksfornovicesinRust.Bevytakestheseintoconsiderationandhidesthesedetailsindailyuse,makingiteasytogetstarted. Datadriven ” Needtobedatadriven/dataoriented/datafirst.ECSisacommonwaytodothis,butit’sdefinitelynottheonlyway.Theseparadigmscanmakeyourgamefaster(cachefriendly,easiertoparallelize),buttheyalsomakecommontaskslikegamestateserializationandsynchronizationverysimple. IfyouareinterestedintheECS(entity,component,system)model,allBevy’senginelogicandbusinesslogicaredata-drivenbasedonBevyECS[13],andtheAPIofECSisalsoconstantlyevolving.,fasterandeasiertouse. BevyCommunity Okay,sowhatarethedevelopmentprospectsofBevy?WillitenteraperiodofstagnationlikeAmethystEngine[14]? Bevycommunityorganizationisdividedintothefollowingroles: Projectmanager maintainer Domainexperts Firstofall,IwouldliketointroduceBevy’screator@cart[15].HeisfamiliarwithUnreal,Unity,SDL,Three.JSandotherframeworks,andhasdevelopedgamesusingGodotfor4years.AfterBevywasreleased,cartresignedfromhisjobasaseniordevelopmentengineeratMicrosoftanddevotedhimselffull-timetothedevelopmentofBevy.Cartcurrentlyservesastheteam’sBDFL(LifelongBenevolentDictator[16]),responsibleforcoreenginedevelopment,guidingprojectdirectionandmanagingthecommunity. Theninadditiontocart,thereare4maintainers@james7132[17],@alice-i-cecile[18],@superdump[19],@mockersf[20].Therearemanymoredomainexpertsandcontributors,whichcanbeviewedhere[21] TheBevycommunityhasreachedaconsensustousetheRFCprocesstomanagetheprojectanduseathree-monthrollingtimepointtoreleaseversionsstartingfromBevy0.6.Bevyjustreleasedversion0.11lastmonth,basicallyoneversioneverythreemonths,andbasicallycompletedtheplan. Asatechnicalprojectmanager,madscientist,anddocumentationlead,@alice-i-cecileisresponsiblefordrafting,refining,andcommentingonRFCsthathelpbuildBevy’sinfrastructure,andrecentlypublishedablog[“Makingfulluseofopensourceenthusiasm-Classificationbycontroversyandcommunityreview”(https://www.leafwing-studios.com/blog/triage-by-controversy/)],sharedthegovernanceexperienceoftheBevycommunity.AtthisOpenSourceInnovationConference(_GOSIM_2023)@alice-i-cecilewillcomeasaguestspeakertoshare”Taffy:BringingaDeadDependencyBacktoLifeThroughOpenSource“.Taffy,asadependentlibraryofbevy_ui,hasbeenabandonedformanyyears.Shewillintroducehowtouseopensourcetechnologytofork,repairandmaintainthiscomplexlibrary. BevyECS ThisyearBevyhasjustcompletedECSScheduleV3[23],realizing”stageless”schedulingRFC[24] BevyhasalwaysprioritizedECSergonomics: Schedulingofthesystem app .add_systems(Startup,(a,b)) .add_systems(Update,(c,d,e)) .add_systems(FixedUpdate,(f,g)) .add_systems(PostUpdate,h) .add_systems(OnEnter(AppState::Menu),enter_menu) .add_systems(OnExit(AppState::Menu),exit_menu) Judgmentofoperatingconditions app.add_system(move_player.run_if(is_alive.or_else(is_zombie))) Queryfiltering usebevy_ecs::prelude::*; #[derive(Component)] structPosition{x:f32,y:f32} #[derive(Component)] structPlayer; […]
ASP.NET 6 uses worksheets to add data source meta-operation MongoDB
Command introduction The 7z command is a compression and decompression tool in the Linux system, which can be used to create, compress and decompress files in 7z format. 7z is a highly compressed file format, usually with a higher compression ratio than other common compression formats such as zip and gzip. Command installation Enter the […]
ASP.NET 6 uses worksheets to add data source meta-operation MongoDB
1. Navigation and routing In Flutter, navigation and routing are key concepts for building multi-page applications. Navigation is the process of switching from one page (or routing) to another. Each page corresponds to a Widget. In Flutter, page switching is managed by Navigator. 1.1. Basic Navigation In Flutter, use MaterialApp to manage the navigation stack. […]
vba case 1: merge workbooks, worksheets
One: put the file I should have put the file resources on it. It’s the first time I did it. I don’t know if you can see the electronic file form of excel. If you don’t see it, teach me how to put it on. Two: custom code regulation (easy to view) Next, let’s explain […]
P5095 [USACO12OPEN] Bookshelf S
P5095 [USACO12OPEN] Bookshelf S Article directory P5095 [USACO12OPEN] Bookshelf S topic description input format output format Sample #1 Sample input #1 Sample output #1 hint train of thought game time code others code Description of topic Farmer John always likes to sit down and read a book when he has nothing to do. Over the […]
bookshop(node+umi)
model.js table structure const mongoose = require(“./db”) var Schema = mongoose.Schema // books var bookSchema = new Schema({<!– –> bookName: String, img: String, // Determine whether it is in the bookshelf: false is not in the bookshelf, true is in the bookshelf state: {<!– –> type: Boolean, default: false }, // Judge whether it is […]