regressionTests.test.tsx.snap 359 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547
  1. // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
  2. exports[`given element A and group of elements B and given both are selected when user clicks on B, on pointer up only elements from B should be selected > [end of test] appState 1`] = `
  3. {
  4. "activeEmbeddable": null,
  5. "activeTool": {
  6. "customType": null,
  7. "lastActiveTool": null,
  8. "locked": false,
  9. "type": "selection",
  10. },
  11. "collaborators": Map {},
  12. "contextMenu": null,
  13. "currentChartType": "bar",
  14. "currentHoveredFontFamily": null,
  15. "currentItemBackgroundColor": "transparent",
  16. "currentItemEndArrowhead": "arrow",
  17. "currentItemFillStyle": "solid",
  18. "currentItemFontFamily": 5,
  19. "currentItemFontSize": 20,
  20. "currentItemOpacity": 100,
  21. "currentItemRoughness": 1,
  22. "currentItemRoundness": "round",
  23. "currentItemStartArrowhead": null,
  24. "currentItemStrokeColor": "#1e1e1e",
  25. "currentItemStrokeStyle": "solid",
  26. "currentItemStrokeWidth": 2,
  27. "currentItemTextAlign": "left",
  28. "cursorButton": "up",
  29. "defaultSidebarDockedPreference": false,
  30. "draggingElement": null,
  31. "editingElement": null,
  32. "editingFrame": null,
  33. "editingGroupId": null,
  34. "editingLinearElement": null,
  35. "elementsToHighlight": null,
  36. "errorMessage": null,
  37. "exportBackground": true,
  38. "exportEmbedScene": false,
  39. "exportScale": 1,
  40. "exportWithDarkMode": false,
  41. "fileHandle": null,
  42. "followedBy": Set {},
  43. "frameRendering": {
  44. "clip": true,
  45. "enabled": true,
  46. "name": true,
  47. "outline": true,
  48. },
  49. "frameToHighlight": null,
  50. "gridSize": null,
  51. "height": 768,
  52. "isBindingEnabled": true,
  53. "isLoading": false,
  54. "isResizing": false,
  55. "isRotating": false,
  56. "lastPointerDownWith": "mouse",
  57. "multiElement": null,
  58. "name": "Untitled-201933152653",
  59. "objectsSnapModeEnabled": false,
  60. "offsetLeft": 0,
  61. "offsetTop": 0,
  62. "openDialog": null,
  63. "openMenu": null,
  64. "openPopup": null,
  65. "openSidebar": null,
  66. "originSnapOffset": null,
  67. "pasteDialog": {
  68. "data": null,
  69. "shown": false,
  70. },
  71. "penDetected": false,
  72. "penMode": false,
  73. "pendingImageElementId": null,
  74. "previousSelectedElementIds": {
  75. "id0": true,
  76. "id1": true,
  77. "id2": true,
  78. },
  79. "resizingElement": null,
  80. "scrollX": 0,
  81. "scrollY": 0,
  82. "scrolledOutside": false,
  83. "selectedElementIds": {
  84. "id0": true,
  85. "id2": true,
  86. },
  87. "selectedElementsAreBeingDragged": false,
  88. "selectedGroupIds": {
  89. "id5": true,
  90. },
  91. "selectedLinearElement": null,
  92. "selectionElement": null,
  93. "shouldCacheIgnoreZoom": false,
  94. "showHyperlinkPopup": false,
  95. "showWelcomeScreen": true,
  96. "snapLines": [],
  97. "startBoundElement": null,
  98. "stats": {
  99. "open": false,
  100. "panels": 3,
  101. },
  102. "suggestedBindings": [],
  103. "theme": "light",
  104. "toast": null,
  105. "userToFollow": null,
  106. "viewBackgroundColor": "#ffffff",
  107. "viewModeEnabled": false,
  108. "width": 1024,
  109. "zenModeEnabled": false,
  110. "zoom": {
  111. "value": 1,
  112. },
  113. }
  114. `;
  115. exports[`given element A and group of elements B and given both are selected when user clicks on B, on pointer up only elements from B should be selected > [end of test] history 1`] = `
  116. History {
  117. "onHistoryChangedEmitter": Emitter {
  118. "subscribers": [],
  119. },
  120. "redoStack": [],
  121. "undoStack": [
  122. HistoryEntry {
  123. "appStateChange": AppStateChange {
  124. "delta": Delta {
  125. "deleted": {
  126. "selectedElementIds": {
  127. "id0": true,
  128. },
  129. },
  130. "inserted": {
  131. "selectedElementIds": {},
  132. },
  133. },
  134. },
  135. "elementsChange": ElementsChange {
  136. "added": Map {},
  137. "removed": Map {
  138. "id0" => Delta {
  139. "deleted": {
  140. "angle": 0,
  141. "backgroundColor": "transparent",
  142. "boundElements": null,
  143. "customData": undefined,
  144. "fillStyle": "solid",
  145. "frameId": null,
  146. "groupIds": [],
  147. "height": 10,
  148. "index": "a0",
  149. "isDeleted": false,
  150. "link": null,
  151. "locked": false,
  152. "opacity": 100,
  153. "roughness": 1,
  154. "roundness": {
  155. "type": 3,
  156. },
  157. "strokeColor": "#1e1e1e",
  158. "strokeStyle": "solid",
  159. "strokeWidth": 2,
  160. "type": "rectangle",
  161. "width": 10,
  162. "x": 0,
  163. "y": 0,
  164. },
  165. "inserted": {
  166. "isDeleted": true,
  167. },
  168. },
  169. },
  170. "updated": Map {},
  171. },
  172. },
  173. HistoryEntry {
  174. "appStateChange": AppStateChange {
  175. "delta": Delta {
  176. "deleted": {
  177. "selectedElementIds": {
  178. "id1": true,
  179. },
  180. },
  181. "inserted": {
  182. "selectedElementIds": {
  183. "id0": true,
  184. },
  185. },
  186. },
  187. },
  188. "elementsChange": ElementsChange {
  189. "added": Map {},
  190. "removed": Map {
  191. "id1" => Delta {
  192. "deleted": {
  193. "angle": 0,
  194. "backgroundColor": "transparent",
  195. "boundElements": null,
  196. "customData": undefined,
  197. "fillStyle": "solid",
  198. "frameId": null,
  199. "groupIds": [],
  200. "height": 10,
  201. "index": "a1",
  202. "isDeleted": false,
  203. "link": null,
  204. "locked": false,
  205. "opacity": 100,
  206. "roughness": 1,
  207. "roundness": {
  208. "type": 3,
  209. },
  210. "strokeColor": "#1e1e1e",
  211. "strokeStyle": "solid",
  212. "strokeWidth": 2,
  213. "type": "rectangle",
  214. "width": 10,
  215. "x": 0,
  216. "y": 30,
  217. },
  218. "inserted": {
  219. "isDeleted": true,
  220. },
  221. },
  222. },
  223. "updated": Map {},
  224. },
  225. },
  226. HistoryEntry {
  227. "appStateChange": AppStateChange {
  228. "delta": Delta {
  229. "deleted": {
  230. "selectedElementIds": {
  231. "id2": true,
  232. },
  233. },
  234. "inserted": {
  235. "selectedElementIds": {
  236. "id1": true,
  237. },
  238. },
  239. },
  240. },
  241. "elementsChange": ElementsChange {
  242. "added": Map {},
  243. "removed": Map {
  244. "id2" => Delta {
  245. "deleted": {
  246. "angle": 0,
  247. "backgroundColor": "transparent",
  248. "boundElements": null,
  249. "customData": undefined,
  250. "fillStyle": "solid",
  251. "frameId": null,
  252. "groupIds": [],
  253. "height": 10,
  254. "index": "a2",
  255. "isDeleted": false,
  256. "link": null,
  257. "locked": false,
  258. "opacity": 100,
  259. "roughness": 1,
  260. "roundness": {
  261. "type": 3,
  262. },
  263. "strokeColor": "#1e1e1e",
  264. "strokeStyle": "solid",
  265. "strokeWidth": 2,
  266. "type": "rectangle",
  267. "width": 10,
  268. "x": 0,
  269. "y": 60,
  270. },
  271. "inserted": {
  272. "isDeleted": true,
  273. },
  274. },
  275. },
  276. "updated": Map {},
  277. },
  278. },
  279. HistoryEntry {
  280. "appStateChange": AppStateChange {
  281. "delta": Delta {
  282. "deleted": {
  283. "selectedElementIds": {
  284. "id0": true,
  285. },
  286. },
  287. "inserted": {
  288. "selectedElementIds": {
  289. "id2": true,
  290. },
  291. },
  292. },
  293. },
  294. "elementsChange": ElementsChange {
  295. "added": Map {},
  296. "removed": Map {},
  297. "updated": Map {},
  298. },
  299. },
  300. HistoryEntry {
  301. "appStateChange": AppStateChange {
  302. "delta": Delta {
  303. "deleted": {
  304. "selectedElementIds": {
  305. "id2": true,
  306. },
  307. },
  308. "inserted": {
  309. "selectedElementIds": {},
  310. },
  311. },
  312. },
  313. "elementsChange": ElementsChange {
  314. "added": Map {},
  315. "removed": Map {},
  316. "updated": Map {},
  317. },
  318. },
  319. HistoryEntry {
  320. "appStateChange": AppStateChange {
  321. "delta": Delta {
  322. "deleted": {
  323. "selectedGroupIds": {
  324. "id5": true,
  325. },
  326. },
  327. "inserted": {
  328. "selectedGroupIds": {},
  329. },
  330. },
  331. },
  332. "elementsChange": ElementsChange {
  333. "added": Map {},
  334. "removed": Map {},
  335. "updated": Map {
  336. "id0" => Delta {
  337. "deleted": {
  338. "groupIds": [
  339. "id5",
  340. ],
  341. "index": "a2",
  342. },
  343. "inserted": {
  344. "groupIds": [],
  345. "index": "a0",
  346. },
  347. },
  348. "id2" => Delta {
  349. "deleted": {
  350. "groupIds": [
  351. "id5",
  352. ],
  353. "index": "a3",
  354. },
  355. "inserted": {
  356. "groupIds": [],
  357. "index": "a2",
  358. },
  359. },
  360. },
  361. },
  362. },
  363. HistoryEntry {
  364. "appStateChange": AppStateChange {
  365. "delta": Delta {
  366. "deleted": {
  367. "selectedElementIds": {
  368. "id1": true,
  369. },
  370. },
  371. "inserted": {
  372. "selectedElementIds": {},
  373. },
  374. },
  375. },
  376. "elementsChange": ElementsChange {
  377. "added": Map {},
  378. "removed": Map {},
  379. "updated": Map {},
  380. },
  381. },
  382. HistoryEntry {
  383. "appStateChange": AppStateChange {
  384. "delta": Delta {
  385. "deleted": {
  386. "selectedElementIds": {},
  387. },
  388. "inserted": {
  389. "selectedElementIds": {
  390. "id1": true,
  391. },
  392. },
  393. },
  394. },
  395. "elementsChange": ElementsChange {
  396. "added": Map {},
  397. "removed": Map {},
  398. "updated": Map {},
  399. },
  400. },
  401. ],
  402. }
  403. `;
  404. exports[`given element A and group of elements B and given both are selected when user clicks on B, on pointer up only elements from B should be selected > [end of test] number of elements 1`] = `0`;
  405. exports[`given element A and group of elements B and given both are selected when user clicks on B, on pointer up only elements from B should be selected > [end of test] number of renders 1`] = `21`;
  406. exports[`given element A and group of elements B and given both are selected when user shift-clicks on B, on pointer up only element A should be selected > [end of test] appState 1`] = `
  407. {
  408. "activeEmbeddable": null,
  409. "activeTool": {
  410. "customType": null,
  411. "lastActiveTool": null,
  412. "locked": false,
  413. "type": "selection",
  414. },
  415. "collaborators": Map {},
  416. "contextMenu": null,
  417. "currentChartType": "bar",
  418. "currentHoveredFontFamily": null,
  419. "currentItemBackgroundColor": "transparent",
  420. "currentItemEndArrowhead": "arrow",
  421. "currentItemFillStyle": "solid",
  422. "currentItemFontFamily": 5,
  423. "currentItemFontSize": 20,
  424. "currentItemOpacity": 100,
  425. "currentItemRoughness": 1,
  426. "currentItemRoundness": "round",
  427. "currentItemStartArrowhead": null,
  428. "currentItemStrokeColor": "#1e1e1e",
  429. "currentItemStrokeStyle": "solid",
  430. "currentItemStrokeWidth": 2,
  431. "currentItemTextAlign": "left",
  432. "cursorButton": "up",
  433. "defaultSidebarDockedPreference": false,
  434. "draggingElement": null,
  435. "editingElement": null,
  436. "editingFrame": null,
  437. "editingGroupId": null,
  438. "editingLinearElement": null,
  439. "elementsToHighlight": null,
  440. "errorMessage": null,
  441. "exportBackground": true,
  442. "exportEmbedScene": false,
  443. "exportScale": 1,
  444. "exportWithDarkMode": false,
  445. "fileHandle": null,
  446. "followedBy": Set {},
  447. "frameRendering": {
  448. "clip": true,
  449. "enabled": true,
  450. "name": true,
  451. "outline": true,
  452. },
  453. "frameToHighlight": null,
  454. "gridSize": null,
  455. "height": 768,
  456. "isBindingEnabled": true,
  457. "isLoading": false,
  458. "isResizing": false,
  459. "isRotating": false,
  460. "lastPointerDownWith": "mouse",
  461. "multiElement": null,
  462. "name": "Untitled-201933152653",
  463. "objectsSnapModeEnabled": false,
  464. "offsetLeft": 0,
  465. "offsetTop": 0,
  466. "openDialog": null,
  467. "openMenu": null,
  468. "openPopup": null,
  469. "openSidebar": null,
  470. "originSnapOffset": null,
  471. "pasteDialog": {
  472. "data": null,
  473. "shown": false,
  474. },
  475. "penDetected": false,
  476. "penMode": false,
  477. "pendingImageElementId": null,
  478. "previousSelectedElementIds": {
  479. "id0": true,
  480. "id1": true,
  481. "id2": true,
  482. },
  483. "resizingElement": null,
  484. "scrollX": 0,
  485. "scrollY": 0,
  486. "scrolledOutside": false,
  487. "selectedElementIds": {
  488. "id1": true,
  489. },
  490. "selectedElementsAreBeingDragged": false,
  491. "selectedGroupIds": {
  492. "id0": true,
  493. "id1": true,
  494. "id2": true,
  495. "id4": false,
  496. },
  497. "selectedLinearElement": null,
  498. "selectionElement": null,
  499. "shouldCacheIgnoreZoom": false,
  500. "showHyperlinkPopup": false,
  501. "showWelcomeScreen": true,
  502. "snapLines": [],
  503. "startBoundElement": null,
  504. "stats": {
  505. "open": false,
  506. "panels": 3,
  507. },
  508. "suggestedBindings": [],
  509. "theme": "light",
  510. "toast": null,
  511. "userToFollow": null,
  512. "viewBackgroundColor": "#ffffff",
  513. "viewModeEnabled": false,
  514. "width": 1024,
  515. "zenModeEnabled": false,
  516. "zoom": {
  517. "value": 1,
  518. },
  519. }
  520. `;
  521. exports[`given element A and group of elements B and given both are selected when user shift-clicks on B, on pointer up only element A should be selected > [end of test] history 1`] = `
  522. History {
  523. "onHistoryChangedEmitter": Emitter {
  524. "subscribers": [],
  525. },
  526. "redoStack": [],
  527. "undoStack": [
  528. HistoryEntry {
  529. "appStateChange": AppStateChange {
  530. "delta": Delta {
  531. "deleted": {
  532. "selectedElementIds": {
  533. "id0": true,
  534. },
  535. },
  536. "inserted": {
  537. "selectedElementIds": {},
  538. },
  539. },
  540. },
  541. "elementsChange": ElementsChange {
  542. "added": Map {},
  543. "removed": Map {
  544. "id0" => Delta {
  545. "deleted": {
  546. "angle": 0,
  547. "backgroundColor": "transparent",
  548. "boundElements": null,
  549. "customData": undefined,
  550. "fillStyle": "solid",
  551. "frameId": null,
  552. "groupIds": [],
  553. "height": 100,
  554. "index": "a0",
  555. "isDeleted": false,
  556. "link": null,
  557. "locked": false,
  558. "opacity": 100,
  559. "roughness": 1,
  560. "roundness": {
  561. "type": 3,
  562. },
  563. "strokeColor": "#1e1e1e",
  564. "strokeStyle": "solid",
  565. "strokeWidth": 2,
  566. "type": "rectangle",
  567. "width": 100,
  568. "x": 0,
  569. "y": 0,
  570. },
  571. "inserted": {
  572. "isDeleted": true,
  573. },
  574. },
  575. },
  576. "updated": Map {},
  577. },
  578. },
  579. HistoryEntry {
  580. "appStateChange": AppStateChange {
  581. "delta": Delta {
  582. "deleted": {
  583. "selectedElementIds": {
  584. "id1": true,
  585. },
  586. },
  587. "inserted": {
  588. "selectedElementIds": {
  589. "id0": true,
  590. },
  591. },
  592. },
  593. },
  594. "elementsChange": ElementsChange {
  595. "added": Map {},
  596. "removed": Map {
  597. "id1" => Delta {
  598. "deleted": {
  599. "angle": 0,
  600. "backgroundColor": "transparent",
  601. "boundElements": null,
  602. "customData": undefined,
  603. "fillStyle": "solid",
  604. "frameId": null,
  605. "groupIds": [],
  606. "height": 100,
  607. "index": "a1",
  608. "isDeleted": false,
  609. "link": null,
  610. "locked": false,
  611. "opacity": 100,
  612. "roughness": 1,
  613. "roundness": {
  614. "type": 3,
  615. },
  616. "strokeColor": "#1e1e1e",
  617. "strokeStyle": "solid",
  618. "strokeWidth": 2,
  619. "type": "rectangle",
  620. "width": 100,
  621. "x": 110,
  622. "y": 110,
  623. },
  624. "inserted": {
  625. "isDeleted": true,
  626. },
  627. },
  628. },
  629. "updated": Map {},
  630. },
  631. },
  632. HistoryEntry {
  633. "appStateChange": AppStateChange {
  634. "delta": Delta {
  635. "deleted": {
  636. "selectedElementIds": {
  637. "id2": true,
  638. },
  639. },
  640. "inserted": {
  641. "selectedElementIds": {
  642. "id1": true,
  643. },
  644. },
  645. },
  646. },
  647. "elementsChange": ElementsChange {
  648. "added": Map {},
  649. "removed": Map {
  650. "id2" => Delta {
  651. "deleted": {
  652. "angle": 0,
  653. "backgroundColor": "transparent",
  654. "boundElements": null,
  655. "customData": undefined,
  656. "fillStyle": "solid",
  657. "frameId": null,
  658. "groupIds": [],
  659. "height": 100,
  660. "index": "a2",
  661. "isDeleted": false,
  662. "link": null,
  663. "locked": false,
  664. "opacity": 100,
  665. "roughness": 1,
  666. "roundness": {
  667. "type": 3,
  668. },
  669. "strokeColor": "#1e1e1e",
  670. "strokeStyle": "solid",
  671. "strokeWidth": 2,
  672. "type": "rectangle",
  673. "width": 100,
  674. "x": 220,
  675. "y": 220,
  676. },
  677. "inserted": {
  678. "isDeleted": true,
  679. },
  680. },
  681. },
  682. "updated": Map {},
  683. },
  684. },
  685. HistoryEntry {
  686. "appStateChange": AppStateChange {
  687. "delta": Delta {
  688. "deleted": {
  689. "selectedElementIds": {
  690. "id0": true,
  691. },
  692. },
  693. "inserted": {
  694. "selectedElementIds": {},
  695. },
  696. },
  697. },
  698. "elementsChange": ElementsChange {
  699. "added": Map {},
  700. "removed": Map {},
  701. "updated": Map {},
  702. },
  703. },
  704. HistoryEntry {
  705. "appStateChange": AppStateChange {
  706. "delta": Delta {
  707. "deleted": {
  708. "selectedGroupIds": {
  709. "id4": true,
  710. },
  711. },
  712. "inserted": {
  713. "selectedGroupIds": {},
  714. },
  715. },
  716. },
  717. "elementsChange": ElementsChange {
  718. "added": Map {},
  719. "removed": Map {},
  720. "updated": Map {
  721. "id0" => Delta {
  722. "deleted": {
  723. "groupIds": [
  724. "id4",
  725. ],
  726. "index": "a2",
  727. },
  728. "inserted": {
  729. "groupIds": [],
  730. "index": "a0",
  731. },
  732. },
  733. "id2" => Delta {
  734. "deleted": {
  735. "groupIds": [
  736. "id4",
  737. ],
  738. "index": "a3",
  739. },
  740. "inserted": {
  741. "groupIds": [],
  742. "index": "a2",
  743. },
  744. },
  745. },
  746. },
  747. },
  748. HistoryEntry {
  749. "appStateChange": AppStateChange {
  750. "delta": Delta {
  751. "deleted": {
  752. "selectedElementIds": {
  753. "id1": true,
  754. },
  755. },
  756. "inserted": {
  757. "selectedElementIds": {},
  758. },
  759. },
  760. },
  761. "elementsChange": ElementsChange {
  762. "added": Map {},
  763. "removed": Map {},
  764. "updated": Map {},
  765. },
  766. },
  767. HistoryEntry {
  768. "appStateChange": AppStateChange {
  769. "delta": Delta {
  770. "deleted": {
  771. "selectedElementIds": {},
  772. "selectedGroupIds": {
  773. "id0": true,
  774. "id1": true,
  775. "id2": true,
  776. "id4": false,
  777. },
  778. },
  779. "inserted": {
  780. "selectedElementIds": {
  781. "id0": true,
  782. "id2": true,
  783. },
  784. "selectedGroupIds": {
  785. "id4": true,
  786. },
  787. },
  788. },
  789. },
  790. "elementsChange": ElementsChange {
  791. "added": Map {},
  792. "removed": Map {},
  793. "updated": Map {},
  794. },
  795. },
  796. ],
  797. }
  798. `;
  799. exports[`given element A and group of elements B and given both are selected when user shift-clicks on B, on pointer up only element A should be selected > [end of test] number of elements 1`] = `0`;
  800. exports[`given element A and group of elements B and given both are selected when user shift-clicks on B, on pointer up only element A should be selected > [end of test] number of renders 1`] = `19`;
  801. exports[`regression tests > Cmd/Ctrl-click exclusively select element under pointer > [end of test] appState 1`] = `
  802. {
  803. "activeEmbeddable": null,
  804. "activeTool": {
  805. "customType": null,
  806. "lastActiveTool": null,
  807. "locked": false,
  808. "type": "selection",
  809. },
  810. "collaborators": Map {},
  811. "contextMenu": null,
  812. "currentChartType": "bar",
  813. "currentHoveredFontFamily": null,
  814. "currentItemBackgroundColor": "transparent",
  815. "currentItemEndArrowhead": "arrow",
  816. "currentItemFillStyle": "solid",
  817. "currentItemFontFamily": 5,
  818. "currentItemFontSize": 20,
  819. "currentItemOpacity": 100,
  820. "currentItemRoughness": 1,
  821. "currentItemRoundness": "round",
  822. "currentItemStartArrowhead": null,
  823. "currentItemStrokeColor": "#1e1e1e",
  824. "currentItemStrokeStyle": "solid",
  825. "currentItemStrokeWidth": 2,
  826. "currentItemTextAlign": "left",
  827. "cursorButton": "up",
  828. "defaultSidebarDockedPreference": false,
  829. "draggingElement": null,
  830. "editingElement": null,
  831. "editingFrame": null,
  832. "editingGroupId": "id10",
  833. "editingLinearElement": null,
  834. "elementsToHighlight": null,
  835. "errorMessage": null,
  836. "exportBackground": true,
  837. "exportEmbedScene": false,
  838. "exportScale": 1,
  839. "exportWithDarkMode": false,
  840. "fileHandle": null,
  841. "followedBy": Set {},
  842. "frameRendering": {
  843. "clip": true,
  844. "enabled": true,
  845. "name": true,
  846. "outline": true,
  847. },
  848. "frameToHighlight": null,
  849. "gridSize": null,
  850. "height": 768,
  851. "isBindingEnabled": false,
  852. "isLoading": false,
  853. "isResizing": false,
  854. "isRotating": false,
  855. "lastPointerDownWith": "mouse",
  856. "multiElement": null,
  857. "name": "Untitled-201933152653",
  858. "objectsSnapModeEnabled": false,
  859. "offsetLeft": 0,
  860. "offsetTop": 0,
  861. "openDialog": null,
  862. "openMenu": null,
  863. "openPopup": null,
  864. "openSidebar": null,
  865. "originSnapOffset": null,
  866. "pasteDialog": {
  867. "data": null,
  868. "shown": false,
  869. },
  870. "penDetected": false,
  871. "penMode": false,
  872. "pendingImageElementId": null,
  873. "previousSelectedElementIds": {},
  874. "resizingElement": null,
  875. "scrollX": 0,
  876. "scrollY": 0,
  877. "scrolledOutside": false,
  878. "selectedElementIds": {
  879. "id7": true,
  880. },
  881. "selectedElementsAreBeingDragged": false,
  882. "selectedGroupIds": {},
  883. "selectedLinearElement": null,
  884. "selectionElement": null,
  885. "shouldCacheIgnoreZoom": false,
  886. "showHyperlinkPopup": false,
  887. "showWelcomeScreen": true,
  888. "snapLines": [],
  889. "startBoundElement": null,
  890. "stats": {
  891. "open": false,
  892. "panels": 3,
  893. },
  894. "suggestedBindings": [],
  895. "theme": "light",
  896. "toast": null,
  897. "userToFollow": null,
  898. "viewBackgroundColor": "#ffffff",
  899. "viewModeEnabled": false,
  900. "width": 1024,
  901. "zenModeEnabled": false,
  902. "zoom": {
  903. "value": 1,
  904. },
  905. }
  906. `;
  907. exports[`regression tests > Cmd/Ctrl-click exclusively select element under pointer > [end of test] history 1`] = `
  908. History {
  909. "onHistoryChangedEmitter": Emitter {
  910. "subscribers": [],
  911. },
  912. "redoStack": [],
  913. "undoStack": [
  914. HistoryEntry {
  915. "appStateChange": AppStateChange {
  916. "delta": Delta {
  917. "deleted": {
  918. "selectedElementIds": {
  919. "id0": true,
  920. },
  921. },
  922. "inserted": {
  923. "selectedElementIds": {},
  924. },
  925. },
  926. },
  927. "elementsChange": ElementsChange {
  928. "added": Map {},
  929. "removed": Map {
  930. "id0" => Delta {
  931. "deleted": {
  932. "angle": 0,
  933. "backgroundColor": "transparent",
  934. "boundElements": null,
  935. "customData": undefined,
  936. "fillStyle": "solid",
  937. "frameId": null,
  938. "groupIds": [],
  939. "height": 10,
  940. "index": "a0",
  941. "isDeleted": false,
  942. "link": null,
  943. "locked": false,
  944. "opacity": 100,
  945. "roughness": 1,
  946. "roundness": {
  947. "type": 3,
  948. },
  949. "strokeColor": "#1e1e1e",
  950. "strokeStyle": "solid",
  951. "strokeWidth": 2,
  952. "type": "rectangle",
  953. "width": 10,
  954. "x": 0,
  955. "y": 0,
  956. },
  957. "inserted": {
  958. "isDeleted": true,
  959. },
  960. },
  961. },
  962. "updated": Map {},
  963. },
  964. },
  965. HistoryEntry {
  966. "appStateChange": AppStateChange {
  967. "delta": Delta {
  968. "deleted": {
  969. "selectedElementIds": {
  970. "id1": true,
  971. },
  972. },
  973. "inserted": {
  974. "selectedElementIds": {
  975. "id0": true,
  976. },
  977. },
  978. },
  979. },
  980. "elementsChange": ElementsChange {
  981. "added": Map {},
  982. "removed": Map {
  983. "id1" => Delta {
  984. "deleted": {
  985. "angle": 0,
  986. "backgroundColor": "transparent",
  987. "boundElements": null,
  988. "customData": undefined,
  989. "fillStyle": "solid",
  990. "frameId": null,
  991. "groupIds": [],
  992. "height": 10,
  993. "index": "a1",
  994. "isDeleted": false,
  995. "link": null,
  996. "locked": false,
  997. "opacity": 100,
  998. "roughness": 1,
  999. "roundness": {
  1000. "type": 3,
  1001. },
  1002. "strokeColor": "#1e1e1e",
  1003. "strokeStyle": "solid",
  1004. "strokeWidth": 2,
  1005. "type": "rectangle",
  1006. "width": 10,
  1007. "x": 30,
  1008. "y": 0,
  1009. },
  1010. "inserted": {
  1011. "isDeleted": true,
  1012. },
  1013. },
  1014. },
  1015. "updated": Map {},
  1016. },
  1017. },
  1018. HistoryEntry {
  1019. "appStateChange": AppStateChange {
  1020. "delta": Delta {
  1021. "deleted": {
  1022. "selectedElementIds": {
  1023. "id0": true,
  1024. },
  1025. },
  1026. "inserted": {
  1027. "selectedElementIds": {
  1028. "id1": true,
  1029. },
  1030. },
  1031. },
  1032. },
  1033. "elementsChange": ElementsChange {
  1034. "added": Map {},
  1035. "removed": Map {},
  1036. "updated": Map {},
  1037. },
  1038. },
  1039. HistoryEntry {
  1040. "appStateChange": AppStateChange {
  1041. "delta": Delta {
  1042. "deleted": {
  1043. "selectedElementIds": {
  1044. "id1": true,
  1045. },
  1046. },
  1047. "inserted": {
  1048. "selectedElementIds": {},
  1049. },
  1050. },
  1051. },
  1052. "elementsChange": ElementsChange {
  1053. "added": Map {},
  1054. "removed": Map {},
  1055. "updated": Map {},
  1056. },
  1057. },
  1058. HistoryEntry {
  1059. "appStateChange": AppStateChange {
  1060. "delta": Delta {
  1061. "deleted": {
  1062. "selectedGroupIds": {
  1063. "id4": true,
  1064. },
  1065. },
  1066. "inserted": {
  1067. "selectedGroupIds": {},
  1068. },
  1069. },
  1070. },
  1071. "elementsChange": ElementsChange {
  1072. "added": Map {},
  1073. "removed": Map {},
  1074. "updated": Map {
  1075. "id0" => Delta {
  1076. "deleted": {
  1077. "groupIds": [
  1078. "id4",
  1079. ],
  1080. },
  1081. "inserted": {
  1082. "groupIds": [],
  1083. },
  1084. },
  1085. "id1" => Delta {
  1086. "deleted": {
  1087. "groupIds": [
  1088. "id4",
  1089. ],
  1090. },
  1091. "inserted": {
  1092. "groupIds": [],
  1093. },
  1094. },
  1095. },
  1096. },
  1097. },
  1098. HistoryEntry {
  1099. "appStateChange": AppStateChange {
  1100. "delta": Delta {
  1101. "deleted": {
  1102. "editingGroupId": "id4",
  1103. "selectedElementIds": {},
  1104. "selectedGroupIds": {},
  1105. },
  1106. "inserted": {
  1107. "editingGroupId": null,
  1108. "selectedElementIds": {
  1109. "id1": true,
  1110. },
  1111. "selectedGroupIds": {
  1112. "id4": true,
  1113. },
  1114. },
  1115. },
  1116. },
  1117. "elementsChange": ElementsChange {
  1118. "added": Map {},
  1119. "removed": Map {},
  1120. "updated": Map {},
  1121. },
  1122. },
  1123. HistoryEntry {
  1124. "appStateChange": AppStateChange {
  1125. "delta": Delta {
  1126. "deleted": {
  1127. "editingGroupId": null,
  1128. "selectedElementIds": {
  1129. "id7": true,
  1130. },
  1131. },
  1132. "inserted": {
  1133. "editingGroupId": "id4",
  1134. "selectedElementIds": {
  1135. "id0": true,
  1136. },
  1137. },
  1138. },
  1139. },
  1140. "elementsChange": ElementsChange {
  1141. "added": Map {},
  1142. "removed": Map {
  1143. "id7" => Delta {
  1144. "deleted": {
  1145. "angle": 0,
  1146. "backgroundColor": "transparent",
  1147. "boundElements": null,
  1148. "customData": undefined,
  1149. "fillStyle": "solid",
  1150. "frameId": null,
  1151. "groupIds": [],
  1152. "height": 10,
  1153. "index": "a2",
  1154. "isDeleted": false,
  1155. "link": null,
  1156. "locked": false,
  1157. "opacity": 100,
  1158. "roughness": 1,
  1159. "roundness": {
  1160. "type": 3,
  1161. },
  1162. "strokeColor": "#1e1e1e",
  1163. "strokeStyle": "solid",
  1164. "strokeWidth": 2,
  1165. "type": "rectangle",
  1166. "width": 10,
  1167. "x": 60,
  1168. "y": 0,
  1169. },
  1170. "inserted": {
  1171. "isDeleted": true,
  1172. },
  1173. },
  1174. },
  1175. "updated": Map {},
  1176. },
  1177. },
  1178. HistoryEntry {
  1179. "appStateChange": AppStateChange {
  1180. "delta": Delta {
  1181. "deleted": {
  1182. "selectedElementIds": {
  1183. "id0": true,
  1184. "id1": true,
  1185. },
  1186. "selectedGroupIds": {
  1187. "id4": true,
  1188. },
  1189. },
  1190. "inserted": {
  1191. "selectedElementIds": {
  1192. "id7": true,
  1193. },
  1194. "selectedGroupIds": {},
  1195. },
  1196. },
  1197. },
  1198. "elementsChange": ElementsChange {
  1199. "added": Map {},
  1200. "removed": Map {},
  1201. "updated": Map {},
  1202. },
  1203. },
  1204. HistoryEntry {
  1205. "appStateChange": AppStateChange {
  1206. "delta": Delta {
  1207. "deleted": {
  1208. "selectedElementIds": {
  1209. "id7": true,
  1210. },
  1211. },
  1212. "inserted": {
  1213. "selectedElementIds": {},
  1214. },
  1215. },
  1216. },
  1217. "elementsChange": ElementsChange {
  1218. "added": Map {},
  1219. "removed": Map {},
  1220. "updated": Map {},
  1221. },
  1222. },
  1223. HistoryEntry {
  1224. "appStateChange": AppStateChange {
  1225. "delta": Delta {
  1226. "deleted": {
  1227. "selectedGroupIds": {
  1228. "id10": true,
  1229. },
  1230. },
  1231. "inserted": {
  1232. "selectedGroupIds": {
  1233. "id4": true,
  1234. },
  1235. },
  1236. },
  1237. },
  1238. "elementsChange": ElementsChange {
  1239. "added": Map {},
  1240. "removed": Map {},
  1241. "updated": Map {
  1242. "id0" => Delta {
  1243. "deleted": {
  1244. "groupIds": [
  1245. "id4",
  1246. "id10",
  1247. ],
  1248. },
  1249. "inserted": {
  1250. "groupIds": [
  1251. "id4",
  1252. ],
  1253. },
  1254. },
  1255. "id1" => Delta {
  1256. "deleted": {
  1257. "groupIds": [
  1258. "id4",
  1259. "id10",
  1260. ],
  1261. },
  1262. "inserted": {
  1263. "groupIds": [
  1264. "id4",
  1265. ],
  1266. },
  1267. },
  1268. "id7" => Delta {
  1269. "deleted": {
  1270. "groupIds": [
  1271. "id10",
  1272. ],
  1273. },
  1274. "inserted": {
  1275. "groupIds": [],
  1276. },
  1277. },
  1278. },
  1279. },
  1280. },
  1281. HistoryEntry {
  1282. "appStateChange": AppStateChange {
  1283. "delta": Delta {
  1284. "deleted": {
  1285. "editingGroupId": "id4",
  1286. "selectedElementIds": {},
  1287. "selectedGroupIds": {},
  1288. },
  1289. "inserted": {
  1290. "editingGroupId": null,
  1291. "selectedElementIds": {
  1292. "id1": true,
  1293. "id7": true,
  1294. },
  1295. "selectedGroupIds": {
  1296. "id10": true,
  1297. },
  1298. },
  1299. },
  1300. },
  1301. "elementsChange": ElementsChange {
  1302. "added": Map {},
  1303. "removed": Map {},
  1304. "updated": Map {},
  1305. },
  1306. },
  1307. HistoryEntry {
  1308. "appStateChange": AppStateChange {
  1309. "delta": Delta {
  1310. "deleted": {
  1311. "editingGroupId": "id10",
  1312. "selectedElementIds": {
  1313. "id7": true,
  1314. },
  1315. },
  1316. "inserted": {
  1317. "editingGroupId": "id4",
  1318. "selectedElementIds": {
  1319. "id0": true,
  1320. },
  1321. },
  1322. },
  1323. },
  1324. "elementsChange": ElementsChange {
  1325. "added": Map {},
  1326. "removed": Map {},
  1327. "updated": Map {},
  1328. },
  1329. },
  1330. ],
  1331. }
  1332. `;
  1333. exports[`regression tests > Cmd/Ctrl-click exclusively select element under pointer > [end of test] number of elements 1`] = `0`;
  1334. exports[`regression tests > Cmd/Ctrl-click exclusively select element under pointer > [end of test] number of renders 1`] = `29`;
  1335. exports[`regression tests > Drags selected element when hitting only bounding box and keeps element selected > [end of test] appState 1`] = `
  1336. {
  1337. "activeEmbeddable": null,
  1338. "activeTool": {
  1339. "customType": null,
  1340. "lastActiveTool": null,
  1341. "locked": false,
  1342. "type": "selection",
  1343. },
  1344. "collaborators": Map {},
  1345. "contextMenu": null,
  1346. "currentChartType": "bar",
  1347. "currentHoveredFontFamily": null,
  1348. "currentItemBackgroundColor": "transparent",
  1349. "currentItemEndArrowhead": "arrow",
  1350. "currentItemFillStyle": "solid",
  1351. "currentItemFontFamily": 5,
  1352. "currentItemFontSize": 20,
  1353. "currentItemOpacity": 100,
  1354. "currentItemRoughness": 1,
  1355. "currentItemRoundness": "round",
  1356. "currentItemStartArrowhead": null,
  1357. "currentItemStrokeColor": "#1e1e1e",
  1358. "currentItemStrokeStyle": "solid",
  1359. "currentItemStrokeWidth": 2,
  1360. "currentItemTextAlign": "left",
  1361. "cursorButton": "up",
  1362. "defaultSidebarDockedPreference": false,
  1363. "draggingElement": null,
  1364. "editingElement": null,
  1365. "editingFrame": null,
  1366. "editingGroupId": null,
  1367. "editingLinearElement": null,
  1368. "elementsToHighlight": null,
  1369. "errorMessage": null,
  1370. "exportBackground": true,
  1371. "exportEmbedScene": false,
  1372. "exportScale": 1,
  1373. "exportWithDarkMode": false,
  1374. "fileHandle": null,
  1375. "followedBy": Set {},
  1376. "frameRendering": {
  1377. "clip": true,
  1378. "enabled": true,
  1379. "name": true,
  1380. "outline": true,
  1381. },
  1382. "frameToHighlight": null,
  1383. "gridSize": null,
  1384. "height": 768,
  1385. "isBindingEnabled": true,
  1386. "isLoading": false,
  1387. "isResizing": false,
  1388. "isRotating": false,
  1389. "lastPointerDownWith": "mouse",
  1390. "multiElement": null,
  1391. "name": "Untitled-201933152653",
  1392. "objectsSnapModeEnabled": false,
  1393. "offsetLeft": 0,
  1394. "offsetTop": 0,
  1395. "openDialog": null,
  1396. "openMenu": null,
  1397. "openPopup": null,
  1398. "openSidebar": null,
  1399. "originSnapOffset": null,
  1400. "pasteDialog": {
  1401. "data": null,
  1402. "shown": false,
  1403. },
  1404. "penDetected": false,
  1405. "penMode": false,
  1406. "pendingImageElementId": null,
  1407. "previousSelectedElementIds": {},
  1408. "resizingElement": null,
  1409. "scrollX": 0,
  1410. "scrollY": 0,
  1411. "scrolledOutside": false,
  1412. "selectedElementIds": {
  1413. "id0": true,
  1414. },
  1415. "selectedElementsAreBeingDragged": false,
  1416. "selectedGroupIds": {},
  1417. "selectedLinearElement": null,
  1418. "selectionElement": null,
  1419. "shouldCacheIgnoreZoom": false,
  1420. "showHyperlinkPopup": false,
  1421. "showWelcomeScreen": true,
  1422. "snapLines": [],
  1423. "startBoundElement": null,
  1424. "stats": {
  1425. "open": false,
  1426. "panels": 3,
  1427. },
  1428. "suggestedBindings": [],
  1429. "theme": "light",
  1430. "toast": null,
  1431. "userToFollow": null,
  1432. "viewBackgroundColor": "#ffffff",
  1433. "viewModeEnabled": false,
  1434. "width": 1024,
  1435. "zenModeEnabled": false,
  1436. "zoom": {
  1437. "value": 1,
  1438. },
  1439. }
  1440. `;
  1441. exports[`regression tests > Drags selected element when hitting only bounding box and keeps element selected > [end of test] history 1`] = `
  1442. History {
  1443. "onHistoryChangedEmitter": Emitter {
  1444. "subscribers": [],
  1445. },
  1446. "redoStack": [],
  1447. "undoStack": [
  1448. HistoryEntry {
  1449. "appStateChange": AppStateChange {
  1450. "delta": Delta {
  1451. "deleted": {
  1452. "selectedElementIds": {
  1453. "id0": true,
  1454. },
  1455. },
  1456. "inserted": {
  1457. "selectedElementIds": {},
  1458. },
  1459. },
  1460. },
  1461. "elementsChange": ElementsChange {
  1462. "added": Map {},
  1463. "removed": Map {
  1464. "id0" => Delta {
  1465. "deleted": {
  1466. "angle": 0,
  1467. "backgroundColor": "transparent",
  1468. "boundElements": null,
  1469. "customData": undefined,
  1470. "fillStyle": "solid",
  1471. "frameId": null,
  1472. "groupIds": [],
  1473. "height": 10,
  1474. "index": "a0",
  1475. "isDeleted": false,
  1476. "link": null,
  1477. "locked": false,
  1478. "opacity": 100,
  1479. "roughness": 1,
  1480. "roundness": {
  1481. "type": 2,
  1482. },
  1483. "strokeColor": "#1e1e1e",
  1484. "strokeStyle": "solid",
  1485. "strokeWidth": 2,
  1486. "type": "ellipse",
  1487. "width": 10,
  1488. "x": 0,
  1489. "y": 0,
  1490. },
  1491. "inserted": {
  1492. "isDeleted": true,
  1493. },
  1494. },
  1495. },
  1496. "updated": Map {},
  1497. },
  1498. },
  1499. HistoryEntry {
  1500. "appStateChange": AppStateChange {
  1501. "delta": Delta {
  1502. "deleted": {},
  1503. "inserted": {},
  1504. },
  1505. },
  1506. "elementsChange": ElementsChange {
  1507. "added": Map {},
  1508. "removed": Map {},
  1509. "updated": Map {
  1510. "id0" => Delta {
  1511. "deleted": {
  1512. "x": 25,
  1513. "y": 25,
  1514. },
  1515. "inserted": {
  1516. "x": 0,
  1517. "y": 0,
  1518. },
  1519. },
  1520. },
  1521. },
  1522. },
  1523. ],
  1524. }
  1525. `;
  1526. exports[`regression tests > Drags selected element when hitting only bounding box and keeps element selected > [end of test] number of elements 1`] = `0`;
  1527. exports[`regression tests > Drags selected element when hitting only bounding box and keeps element selected > [end of test] number of renders 1`] = `11`;
  1528. exports[`regression tests > adjusts z order when grouping > [end of test] appState 1`] = `
  1529. {
  1530. "activeEmbeddable": null,
  1531. "activeTool": {
  1532. "customType": null,
  1533. "lastActiveTool": null,
  1534. "locked": false,
  1535. "type": "selection",
  1536. },
  1537. "collaborators": Map {},
  1538. "contextMenu": null,
  1539. "currentChartType": "bar",
  1540. "currentHoveredFontFamily": null,
  1541. "currentItemBackgroundColor": "transparent",
  1542. "currentItemEndArrowhead": "arrow",
  1543. "currentItemFillStyle": "solid",
  1544. "currentItemFontFamily": 5,
  1545. "currentItemFontSize": 20,
  1546. "currentItemOpacity": 100,
  1547. "currentItemRoughness": 1,
  1548. "currentItemRoundness": "round",
  1549. "currentItemStartArrowhead": null,
  1550. "currentItemStrokeColor": "#1e1e1e",
  1551. "currentItemStrokeStyle": "solid",
  1552. "currentItemStrokeWidth": 2,
  1553. "currentItemTextAlign": "left",
  1554. "cursorButton": "up",
  1555. "defaultSidebarDockedPreference": false,
  1556. "draggingElement": null,
  1557. "editingElement": null,
  1558. "editingFrame": null,
  1559. "editingGroupId": null,
  1560. "editingLinearElement": null,
  1561. "elementsToHighlight": null,
  1562. "errorMessage": null,
  1563. "exportBackground": true,
  1564. "exportEmbedScene": false,
  1565. "exportScale": 1,
  1566. "exportWithDarkMode": false,
  1567. "fileHandle": null,
  1568. "followedBy": Set {},
  1569. "frameRendering": {
  1570. "clip": true,
  1571. "enabled": true,
  1572. "name": true,
  1573. "outline": true,
  1574. },
  1575. "frameToHighlight": null,
  1576. "gridSize": null,
  1577. "height": 768,
  1578. "isBindingEnabled": true,
  1579. "isLoading": false,
  1580. "isResizing": false,
  1581. "isRotating": false,
  1582. "lastPointerDownWith": "mouse",
  1583. "multiElement": null,
  1584. "name": "Untitled-201933152653",
  1585. "objectsSnapModeEnabled": false,
  1586. "offsetLeft": 0,
  1587. "offsetTop": 0,
  1588. "openDialog": null,
  1589. "openMenu": null,
  1590. "openPopup": null,
  1591. "openSidebar": null,
  1592. "originSnapOffset": null,
  1593. "pasteDialog": {
  1594. "data": null,
  1595. "shown": false,
  1596. },
  1597. "penDetected": false,
  1598. "penMode": false,
  1599. "pendingImageElementId": null,
  1600. "previousSelectedElementIds": {
  1601. "id0": true,
  1602. },
  1603. "resizingElement": null,
  1604. "scrollX": 0,
  1605. "scrollY": 0,
  1606. "scrolledOutside": false,
  1607. "selectedElementIds": {
  1608. "id0": true,
  1609. "id2": true,
  1610. },
  1611. "selectedElementsAreBeingDragged": false,
  1612. "selectedGroupIds": {
  1613. "id5": true,
  1614. },
  1615. "selectedLinearElement": null,
  1616. "selectionElement": null,
  1617. "shouldCacheIgnoreZoom": false,
  1618. "showHyperlinkPopup": false,
  1619. "showWelcomeScreen": true,
  1620. "snapLines": [],
  1621. "startBoundElement": null,
  1622. "stats": {
  1623. "open": false,
  1624. "panels": 3,
  1625. },
  1626. "suggestedBindings": [],
  1627. "theme": "light",
  1628. "toast": null,
  1629. "userToFollow": null,
  1630. "viewBackgroundColor": "#ffffff",
  1631. "viewModeEnabled": false,
  1632. "width": 1024,
  1633. "zenModeEnabled": false,
  1634. "zoom": {
  1635. "value": 1,
  1636. },
  1637. }
  1638. `;
  1639. exports[`regression tests > adjusts z order when grouping > [end of test] history 1`] = `
  1640. History {
  1641. "onHistoryChangedEmitter": Emitter {
  1642. "subscribers": [],
  1643. },
  1644. "redoStack": [],
  1645. "undoStack": [
  1646. HistoryEntry {
  1647. "appStateChange": AppStateChange {
  1648. "delta": Delta {
  1649. "deleted": {
  1650. "selectedElementIds": {
  1651. "id0": true,
  1652. },
  1653. },
  1654. "inserted": {
  1655. "selectedElementIds": {},
  1656. },
  1657. },
  1658. },
  1659. "elementsChange": ElementsChange {
  1660. "added": Map {},
  1661. "removed": Map {
  1662. "id0" => Delta {
  1663. "deleted": {
  1664. "angle": 0,
  1665. "backgroundColor": "transparent",
  1666. "boundElements": null,
  1667. "customData": undefined,
  1668. "fillStyle": "solid",
  1669. "frameId": null,
  1670. "groupIds": [],
  1671. "height": 10,
  1672. "index": "a0",
  1673. "isDeleted": false,
  1674. "link": null,
  1675. "locked": false,
  1676. "opacity": 100,
  1677. "roughness": 1,
  1678. "roundness": {
  1679. "type": 3,
  1680. },
  1681. "strokeColor": "#1e1e1e",
  1682. "strokeStyle": "solid",
  1683. "strokeWidth": 2,
  1684. "type": "rectangle",
  1685. "width": 10,
  1686. "x": 10,
  1687. "y": 10,
  1688. },
  1689. "inserted": {
  1690. "isDeleted": true,
  1691. },
  1692. },
  1693. },
  1694. "updated": Map {},
  1695. },
  1696. },
  1697. HistoryEntry {
  1698. "appStateChange": AppStateChange {
  1699. "delta": Delta {
  1700. "deleted": {
  1701. "selectedElementIds": {
  1702. "id1": true,
  1703. },
  1704. },
  1705. "inserted": {
  1706. "selectedElementIds": {
  1707. "id0": true,
  1708. },
  1709. },
  1710. },
  1711. },
  1712. "elementsChange": ElementsChange {
  1713. "added": Map {},
  1714. "removed": Map {
  1715. "id1" => Delta {
  1716. "deleted": {
  1717. "angle": 0,
  1718. "backgroundColor": "transparent",
  1719. "boundElements": null,
  1720. "customData": undefined,
  1721. "fillStyle": "solid",
  1722. "frameId": null,
  1723. "groupIds": [],
  1724. "height": 10,
  1725. "index": "a1",
  1726. "isDeleted": false,
  1727. "link": null,
  1728. "locked": false,
  1729. "opacity": 100,
  1730. "roughness": 1,
  1731. "roundness": {
  1732. "type": 3,
  1733. },
  1734. "strokeColor": "#1e1e1e",
  1735. "strokeStyle": "solid",
  1736. "strokeWidth": 2,
  1737. "type": "rectangle",
  1738. "width": 10,
  1739. "x": 30,
  1740. "y": 10,
  1741. },
  1742. "inserted": {
  1743. "isDeleted": true,
  1744. },
  1745. },
  1746. },
  1747. "updated": Map {},
  1748. },
  1749. },
  1750. HistoryEntry {
  1751. "appStateChange": AppStateChange {
  1752. "delta": Delta {
  1753. "deleted": {
  1754. "selectedElementIds": {
  1755. "id2": true,
  1756. },
  1757. },
  1758. "inserted": {
  1759. "selectedElementIds": {
  1760. "id1": true,
  1761. },
  1762. },
  1763. },
  1764. },
  1765. "elementsChange": ElementsChange {
  1766. "added": Map {},
  1767. "removed": Map {
  1768. "id2" => Delta {
  1769. "deleted": {
  1770. "angle": 0,
  1771. "backgroundColor": "transparent",
  1772. "boundElements": null,
  1773. "customData": undefined,
  1774. "fillStyle": "solid",
  1775. "frameId": null,
  1776. "groupIds": [],
  1777. "height": 10,
  1778. "index": "a2",
  1779. "isDeleted": false,
  1780. "link": null,
  1781. "locked": false,
  1782. "opacity": 100,
  1783. "roughness": 1,
  1784. "roundness": {
  1785. "type": 3,
  1786. },
  1787. "strokeColor": "#1e1e1e",
  1788. "strokeStyle": "solid",
  1789. "strokeWidth": 2,
  1790. "type": "rectangle",
  1791. "width": 10,
  1792. "x": 50,
  1793. "y": 10,
  1794. },
  1795. "inserted": {
  1796. "isDeleted": true,
  1797. },
  1798. },
  1799. },
  1800. "updated": Map {},
  1801. },
  1802. },
  1803. HistoryEntry {
  1804. "appStateChange": AppStateChange {
  1805. "delta": Delta {
  1806. "deleted": {
  1807. "selectedElementIds": {
  1808. "id0": true,
  1809. },
  1810. },
  1811. "inserted": {
  1812. "selectedElementIds": {
  1813. "id2": true,
  1814. },
  1815. },
  1816. },
  1817. },
  1818. "elementsChange": ElementsChange {
  1819. "added": Map {},
  1820. "removed": Map {},
  1821. "updated": Map {},
  1822. },
  1823. },
  1824. HistoryEntry {
  1825. "appStateChange": AppStateChange {
  1826. "delta": Delta {
  1827. "deleted": {
  1828. "selectedElementIds": {
  1829. "id2": true,
  1830. },
  1831. },
  1832. "inserted": {
  1833. "selectedElementIds": {},
  1834. },
  1835. },
  1836. },
  1837. "elementsChange": ElementsChange {
  1838. "added": Map {},
  1839. "removed": Map {},
  1840. "updated": Map {},
  1841. },
  1842. },
  1843. HistoryEntry {
  1844. "appStateChange": AppStateChange {
  1845. "delta": Delta {
  1846. "deleted": {
  1847. "selectedGroupIds": {
  1848. "id5": true,
  1849. },
  1850. },
  1851. "inserted": {
  1852. "selectedGroupIds": {},
  1853. },
  1854. },
  1855. },
  1856. "elementsChange": ElementsChange {
  1857. "added": Map {},
  1858. "removed": Map {},
  1859. "updated": Map {
  1860. "id0" => Delta {
  1861. "deleted": {
  1862. "groupIds": [
  1863. "id5",
  1864. ],
  1865. "index": "a2",
  1866. },
  1867. "inserted": {
  1868. "groupIds": [],
  1869. "index": "a0",
  1870. },
  1871. },
  1872. "id2" => Delta {
  1873. "deleted": {
  1874. "groupIds": [
  1875. "id5",
  1876. ],
  1877. "index": "a3",
  1878. },
  1879. "inserted": {
  1880. "groupIds": [],
  1881. "index": "a2",
  1882. },
  1883. },
  1884. },
  1885. },
  1886. },
  1887. ],
  1888. }
  1889. `;
  1890. exports[`regression tests > adjusts z order when grouping > [end of test] number of elements 1`] = `0`;
  1891. exports[`regression tests > adjusts z order when grouping > [end of test] number of renders 1`] = `18`;
  1892. exports[`regression tests > alt-drag duplicates an element > [end of test] appState 1`] = `
  1893. {
  1894. "activeEmbeddable": null,
  1895. "activeTool": {
  1896. "customType": null,
  1897. "lastActiveTool": null,
  1898. "locked": false,
  1899. "type": "selection",
  1900. },
  1901. "collaborators": Map {},
  1902. "contextMenu": null,
  1903. "currentChartType": "bar",
  1904. "currentHoveredFontFamily": null,
  1905. "currentItemBackgroundColor": "transparent",
  1906. "currentItemEndArrowhead": "arrow",
  1907. "currentItemFillStyle": "solid",
  1908. "currentItemFontFamily": 5,
  1909. "currentItemFontSize": 20,
  1910. "currentItemOpacity": 100,
  1911. "currentItemRoughness": 1,
  1912. "currentItemRoundness": "round",
  1913. "currentItemStartArrowhead": null,
  1914. "currentItemStrokeColor": "#1e1e1e",
  1915. "currentItemStrokeStyle": "solid",
  1916. "currentItemStrokeWidth": 2,
  1917. "currentItemTextAlign": "left",
  1918. "cursorButton": "up",
  1919. "defaultSidebarDockedPreference": false,
  1920. "draggingElement": null,
  1921. "editingElement": null,
  1922. "editingFrame": null,
  1923. "editingGroupId": null,
  1924. "editingLinearElement": null,
  1925. "elementsToHighlight": null,
  1926. "errorMessage": null,
  1927. "exportBackground": true,
  1928. "exportEmbedScene": false,
  1929. "exportScale": 1,
  1930. "exportWithDarkMode": false,
  1931. "fileHandle": null,
  1932. "followedBy": Set {},
  1933. "frameRendering": {
  1934. "clip": true,
  1935. "enabled": true,
  1936. "name": true,
  1937. "outline": true,
  1938. },
  1939. "frameToHighlight": null,
  1940. "gridSize": null,
  1941. "height": 768,
  1942. "isBindingEnabled": true,
  1943. "isLoading": false,
  1944. "isResizing": false,
  1945. "isRotating": false,
  1946. "lastPointerDownWith": "mouse",
  1947. "multiElement": null,
  1948. "name": "Untitled-201933152653",
  1949. "objectsSnapModeEnabled": false,
  1950. "offsetLeft": 0,
  1951. "offsetTop": 0,
  1952. "openDialog": null,
  1953. "openMenu": null,
  1954. "openPopup": null,
  1955. "openSidebar": null,
  1956. "originSnapOffset": null,
  1957. "pasteDialog": {
  1958. "data": null,
  1959. "shown": false,
  1960. },
  1961. "penDetected": false,
  1962. "penMode": false,
  1963. "pendingImageElementId": null,
  1964. "previousSelectedElementIds": {
  1965. "id0": true,
  1966. },
  1967. "resizingElement": null,
  1968. "scrollX": 0,
  1969. "scrollY": 0,
  1970. "scrolledOutside": false,
  1971. "selectedElementIds": {
  1972. "id0": true,
  1973. },
  1974. "selectedElementsAreBeingDragged": false,
  1975. "selectedGroupIds": {},
  1976. "selectedLinearElement": null,
  1977. "selectionElement": null,
  1978. "shouldCacheIgnoreZoom": false,
  1979. "showHyperlinkPopup": false,
  1980. "showWelcomeScreen": true,
  1981. "snapLines": [],
  1982. "startBoundElement": null,
  1983. "stats": {
  1984. "open": false,
  1985. "panels": 3,
  1986. },
  1987. "suggestedBindings": [],
  1988. "theme": "light",
  1989. "toast": null,
  1990. "userToFollow": null,
  1991. "viewBackgroundColor": "#ffffff",
  1992. "viewModeEnabled": false,
  1993. "width": 1024,
  1994. "zenModeEnabled": false,
  1995. "zoom": {
  1996. "value": 1,
  1997. },
  1998. }
  1999. `;
  2000. exports[`regression tests > alt-drag duplicates an element > [end of test] history 1`] = `
  2001. History {
  2002. "onHistoryChangedEmitter": Emitter {
  2003. "subscribers": [],
  2004. },
  2005. "redoStack": [],
  2006. "undoStack": [
  2007. HistoryEntry {
  2008. "appStateChange": AppStateChange {
  2009. "delta": Delta {
  2010. "deleted": {
  2011. "selectedElementIds": {
  2012. "id0": true,
  2013. },
  2014. },
  2015. "inserted": {
  2016. "selectedElementIds": {},
  2017. },
  2018. },
  2019. },
  2020. "elementsChange": ElementsChange {
  2021. "added": Map {},
  2022. "removed": Map {
  2023. "id0" => Delta {
  2024. "deleted": {
  2025. "angle": 0,
  2026. "backgroundColor": "transparent",
  2027. "boundElements": null,
  2028. "customData": undefined,
  2029. "fillStyle": "solid",
  2030. "frameId": null,
  2031. "groupIds": [],
  2032. "height": 10,
  2033. "index": "a0",
  2034. "isDeleted": false,
  2035. "link": null,
  2036. "locked": false,
  2037. "opacity": 100,
  2038. "roughness": 1,
  2039. "roundness": {
  2040. "type": 3,
  2041. },
  2042. "strokeColor": "#1e1e1e",
  2043. "strokeStyle": "solid",
  2044. "strokeWidth": 2,
  2045. "type": "rectangle",
  2046. "width": 10,
  2047. "x": 10,
  2048. "y": 10,
  2049. },
  2050. "inserted": {
  2051. "isDeleted": true,
  2052. },
  2053. },
  2054. },
  2055. "updated": Map {},
  2056. },
  2057. },
  2058. HistoryEntry {
  2059. "appStateChange": AppStateChange {
  2060. "delta": Delta {
  2061. "deleted": {},
  2062. "inserted": {},
  2063. },
  2064. },
  2065. "elementsChange": ElementsChange {
  2066. "added": Map {},
  2067. "removed": Map {
  2068. "id0_copy" => Delta {
  2069. "deleted": {
  2070. "angle": 0,
  2071. "backgroundColor": "transparent",
  2072. "boundElements": null,
  2073. "customData": undefined,
  2074. "fillStyle": "solid",
  2075. "frameId": null,
  2076. "groupIds": [],
  2077. "height": 10,
  2078. "index": "a0",
  2079. "isDeleted": false,
  2080. "link": null,
  2081. "locked": false,
  2082. "opacity": 100,
  2083. "roughness": 1,
  2084. "roundness": {
  2085. "type": 3,
  2086. },
  2087. "strokeColor": "#1e1e1e",
  2088. "strokeStyle": "solid",
  2089. "strokeWidth": 2,
  2090. "type": "rectangle",
  2091. "width": 10,
  2092. "x": 10,
  2093. "y": 10,
  2094. },
  2095. "inserted": {
  2096. "isDeleted": true,
  2097. },
  2098. },
  2099. },
  2100. "updated": Map {
  2101. "id0" => Delta {
  2102. "deleted": {
  2103. "index": "a1",
  2104. "x": 20,
  2105. "y": 20,
  2106. },
  2107. "inserted": {
  2108. "index": "a0",
  2109. "x": 10,
  2110. "y": 10,
  2111. },
  2112. },
  2113. },
  2114. },
  2115. },
  2116. ],
  2117. }
  2118. `;
  2119. exports[`regression tests > alt-drag duplicates an element > [end of test] number of elements 1`] = `0`;
  2120. exports[`regression tests > alt-drag duplicates an element > [end of test] number of renders 1`] = `9`;
  2121. exports[`regression tests > arrow keys > [end of test] appState 1`] = `
  2122. {
  2123. "activeEmbeddable": null,
  2124. "activeTool": {
  2125. "customType": null,
  2126. "lastActiveTool": null,
  2127. "locked": false,
  2128. "type": "selection",
  2129. },
  2130. "collaborators": Map {},
  2131. "contextMenu": null,
  2132. "currentChartType": "bar",
  2133. "currentHoveredFontFamily": null,
  2134. "currentItemBackgroundColor": "transparent",
  2135. "currentItemEndArrowhead": "arrow",
  2136. "currentItemFillStyle": "solid",
  2137. "currentItemFontFamily": 5,
  2138. "currentItemFontSize": 20,
  2139. "currentItemOpacity": 100,
  2140. "currentItemRoughness": 1,
  2141. "currentItemRoundness": "round",
  2142. "currentItemStartArrowhead": null,
  2143. "currentItemStrokeColor": "#1e1e1e",
  2144. "currentItemStrokeStyle": "solid",
  2145. "currentItemStrokeWidth": 2,
  2146. "currentItemTextAlign": "left",
  2147. "cursorButton": "up",
  2148. "defaultSidebarDockedPreference": false,
  2149. "draggingElement": null,
  2150. "editingElement": null,
  2151. "editingFrame": null,
  2152. "editingGroupId": null,
  2153. "editingLinearElement": null,
  2154. "elementsToHighlight": null,
  2155. "errorMessage": null,
  2156. "exportBackground": true,
  2157. "exportEmbedScene": false,
  2158. "exportScale": 1,
  2159. "exportWithDarkMode": false,
  2160. "fileHandle": null,
  2161. "followedBy": Set {},
  2162. "frameRendering": {
  2163. "clip": true,
  2164. "enabled": true,
  2165. "name": true,
  2166. "outline": true,
  2167. },
  2168. "frameToHighlight": null,
  2169. "gridSize": null,
  2170. "height": 768,
  2171. "isBindingEnabled": true,
  2172. "isLoading": false,
  2173. "isResizing": false,
  2174. "isRotating": false,
  2175. "lastPointerDownWith": "mouse",
  2176. "multiElement": null,
  2177. "name": "Untitled-201933152653",
  2178. "objectsSnapModeEnabled": false,
  2179. "offsetLeft": 0,
  2180. "offsetTop": 0,
  2181. "openDialog": null,
  2182. "openMenu": null,
  2183. "openPopup": null,
  2184. "openSidebar": null,
  2185. "originSnapOffset": null,
  2186. "pasteDialog": {
  2187. "data": null,
  2188. "shown": false,
  2189. },
  2190. "penDetected": false,
  2191. "penMode": false,
  2192. "pendingImageElementId": null,
  2193. "previousSelectedElementIds": {},
  2194. "resizingElement": null,
  2195. "scrollX": 0,
  2196. "scrollY": 0,
  2197. "scrolledOutside": false,
  2198. "selectedElementIds": {
  2199. "id0": true,
  2200. },
  2201. "selectedElementsAreBeingDragged": false,
  2202. "selectedGroupIds": {},
  2203. "selectedLinearElement": null,
  2204. "selectionElement": null,
  2205. "shouldCacheIgnoreZoom": false,
  2206. "showHyperlinkPopup": false,
  2207. "showWelcomeScreen": true,
  2208. "snapLines": [],
  2209. "startBoundElement": null,
  2210. "stats": {
  2211. "open": false,
  2212. "panels": 3,
  2213. },
  2214. "suggestedBindings": [],
  2215. "theme": "light",
  2216. "toast": null,
  2217. "userToFollow": null,
  2218. "viewBackgroundColor": "#ffffff",
  2219. "viewModeEnabled": false,
  2220. "width": 1024,
  2221. "zenModeEnabled": false,
  2222. "zoom": {
  2223. "value": 1,
  2224. },
  2225. }
  2226. `;
  2227. exports[`regression tests > arrow keys > [end of test] history 1`] = `
  2228. History {
  2229. "onHistoryChangedEmitter": Emitter {
  2230. "subscribers": [],
  2231. },
  2232. "redoStack": [],
  2233. "undoStack": [
  2234. HistoryEntry {
  2235. "appStateChange": AppStateChange {
  2236. "delta": Delta {
  2237. "deleted": {
  2238. "selectedElementIds": {
  2239. "id0": true,
  2240. },
  2241. },
  2242. "inserted": {
  2243. "selectedElementIds": {},
  2244. },
  2245. },
  2246. },
  2247. "elementsChange": ElementsChange {
  2248. "added": Map {},
  2249. "removed": Map {
  2250. "id0" => Delta {
  2251. "deleted": {
  2252. "angle": 0,
  2253. "backgroundColor": "transparent",
  2254. "boundElements": null,
  2255. "customData": undefined,
  2256. "fillStyle": "solid",
  2257. "frameId": null,
  2258. "groupIds": [],
  2259. "height": 10,
  2260. "index": "a0",
  2261. "isDeleted": false,
  2262. "link": null,
  2263. "locked": false,
  2264. "opacity": 100,
  2265. "roughness": 1,
  2266. "roundness": {
  2267. "type": 3,
  2268. },
  2269. "strokeColor": "#1e1e1e",
  2270. "strokeStyle": "solid",
  2271. "strokeWidth": 2,
  2272. "type": "rectangle",
  2273. "width": 10,
  2274. "x": 10,
  2275. "y": 10,
  2276. },
  2277. "inserted": {
  2278. "isDeleted": true,
  2279. },
  2280. },
  2281. },
  2282. "updated": Map {},
  2283. },
  2284. },
  2285. ],
  2286. }
  2287. `;
  2288. exports[`regression tests > arrow keys > [end of test] number of elements 1`] = `0`;
  2289. exports[`regression tests > arrow keys > [end of test] number of renders 1`] = `13`;
  2290. exports[`regression tests > can drag element that covers another element, while another elem is selected > [end of test] appState 1`] = `
  2291. {
  2292. "activeEmbeddable": null,
  2293. "activeTool": {
  2294. "customType": null,
  2295. "lastActiveTool": null,
  2296. "locked": false,
  2297. "type": "selection",
  2298. },
  2299. "collaborators": Map {},
  2300. "contextMenu": null,
  2301. "currentChartType": "bar",
  2302. "currentHoveredFontFamily": null,
  2303. "currentItemBackgroundColor": "transparent",
  2304. "currentItemEndArrowhead": "arrow",
  2305. "currentItemFillStyle": "solid",
  2306. "currentItemFontFamily": 5,
  2307. "currentItemFontSize": 20,
  2308. "currentItemOpacity": 100,
  2309. "currentItemRoughness": 1,
  2310. "currentItemRoundness": "round",
  2311. "currentItemStartArrowhead": null,
  2312. "currentItemStrokeColor": "#1e1e1e",
  2313. "currentItemStrokeStyle": "solid",
  2314. "currentItemStrokeWidth": 2,
  2315. "currentItemTextAlign": "left",
  2316. "cursorButton": "up",
  2317. "defaultSidebarDockedPreference": false,
  2318. "draggingElement": null,
  2319. "editingElement": null,
  2320. "editingFrame": null,
  2321. "editingGroupId": null,
  2322. "editingLinearElement": null,
  2323. "elementsToHighlight": null,
  2324. "errorMessage": null,
  2325. "exportBackground": true,
  2326. "exportEmbedScene": false,
  2327. "exportScale": 1,
  2328. "exportWithDarkMode": false,
  2329. "fileHandle": null,
  2330. "followedBy": Set {},
  2331. "frameRendering": {
  2332. "clip": true,
  2333. "enabled": true,
  2334. "name": true,
  2335. "outline": true,
  2336. },
  2337. "frameToHighlight": null,
  2338. "gridSize": null,
  2339. "height": 768,
  2340. "isBindingEnabled": true,
  2341. "isLoading": false,
  2342. "isResizing": false,
  2343. "isRotating": false,
  2344. "lastPointerDownWith": "mouse",
  2345. "multiElement": null,
  2346. "name": "Untitled-201933152653",
  2347. "objectsSnapModeEnabled": false,
  2348. "offsetLeft": 0,
  2349. "offsetTop": 0,
  2350. "openDialog": null,
  2351. "openMenu": null,
  2352. "openPopup": null,
  2353. "openSidebar": null,
  2354. "originSnapOffset": null,
  2355. "pasteDialog": {
  2356. "data": null,
  2357. "shown": false,
  2358. },
  2359. "penDetected": false,
  2360. "penMode": false,
  2361. "pendingImageElementId": null,
  2362. "previousSelectedElementIds": {
  2363. "id2": true,
  2364. },
  2365. "resizingElement": null,
  2366. "scrollX": 0,
  2367. "scrollY": 0,
  2368. "scrolledOutside": false,
  2369. "selectedElementIds": {
  2370. "id1": true,
  2371. },
  2372. "selectedElementsAreBeingDragged": false,
  2373. "selectedGroupIds": {},
  2374. "selectedLinearElement": null,
  2375. "selectionElement": null,
  2376. "shouldCacheIgnoreZoom": false,
  2377. "showHyperlinkPopup": false,
  2378. "showWelcomeScreen": true,
  2379. "snapLines": [],
  2380. "startBoundElement": null,
  2381. "stats": {
  2382. "open": false,
  2383. "panels": 3,
  2384. },
  2385. "suggestedBindings": [],
  2386. "theme": "light",
  2387. "toast": null,
  2388. "userToFollow": null,
  2389. "viewBackgroundColor": "#ffffff",
  2390. "viewModeEnabled": false,
  2391. "width": 1024,
  2392. "zenModeEnabled": false,
  2393. "zoom": {
  2394. "value": 1,
  2395. },
  2396. }
  2397. `;
  2398. exports[`regression tests > can drag element that covers another element, while another elem is selected > [end of test] history 1`] = `
  2399. History {
  2400. "onHistoryChangedEmitter": Emitter {
  2401. "subscribers": [],
  2402. },
  2403. "redoStack": [],
  2404. "undoStack": [
  2405. HistoryEntry {
  2406. "appStateChange": AppStateChange {
  2407. "delta": Delta {
  2408. "deleted": {
  2409. "selectedElementIds": {
  2410. "id0": true,
  2411. },
  2412. },
  2413. "inserted": {
  2414. "selectedElementIds": {},
  2415. },
  2416. },
  2417. },
  2418. "elementsChange": ElementsChange {
  2419. "added": Map {},
  2420. "removed": Map {
  2421. "id0" => Delta {
  2422. "deleted": {
  2423. "angle": 0,
  2424. "backgroundColor": "transparent",
  2425. "boundElements": null,
  2426. "customData": undefined,
  2427. "fillStyle": "solid",
  2428. "frameId": null,
  2429. "groupIds": [],
  2430. "height": 200,
  2431. "index": "a0",
  2432. "isDeleted": false,
  2433. "link": null,
  2434. "locked": false,
  2435. "opacity": 100,
  2436. "roughness": 1,
  2437. "roundness": {
  2438. "type": 3,
  2439. },
  2440. "strokeColor": "#1e1e1e",
  2441. "strokeStyle": "solid",
  2442. "strokeWidth": 2,
  2443. "type": "rectangle",
  2444. "width": 200,
  2445. "x": 100,
  2446. "y": 100,
  2447. },
  2448. "inserted": {
  2449. "isDeleted": true,
  2450. },
  2451. },
  2452. },
  2453. "updated": Map {},
  2454. },
  2455. },
  2456. HistoryEntry {
  2457. "appStateChange": AppStateChange {
  2458. "delta": Delta {
  2459. "deleted": {
  2460. "selectedElementIds": {
  2461. "id1": true,
  2462. },
  2463. },
  2464. "inserted": {
  2465. "selectedElementIds": {
  2466. "id0": true,
  2467. },
  2468. },
  2469. },
  2470. },
  2471. "elementsChange": ElementsChange {
  2472. "added": Map {},
  2473. "removed": Map {
  2474. "id1" => Delta {
  2475. "deleted": {
  2476. "angle": 0,
  2477. "backgroundColor": "transparent",
  2478. "boundElements": null,
  2479. "customData": undefined,
  2480. "fillStyle": "solid",
  2481. "frameId": null,
  2482. "groupIds": [],
  2483. "height": 200,
  2484. "index": "a1",
  2485. "isDeleted": false,
  2486. "link": null,
  2487. "locked": false,
  2488. "opacity": 100,
  2489. "roughness": 1,
  2490. "roundness": {
  2491. "type": 3,
  2492. },
  2493. "strokeColor": "#1e1e1e",
  2494. "strokeStyle": "solid",
  2495. "strokeWidth": 2,
  2496. "type": "rectangle",
  2497. "width": 200,
  2498. "x": 100,
  2499. "y": 100,
  2500. },
  2501. "inserted": {
  2502. "isDeleted": true,
  2503. },
  2504. },
  2505. },
  2506. "updated": Map {},
  2507. },
  2508. },
  2509. HistoryEntry {
  2510. "appStateChange": AppStateChange {
  2511. "delta": Delta {
  2512. "deleted": {
  2513. "selectedElementIds": {
  2514. "id2": true,
  2515. },
  2516. },
  2517. "inserted": {
  2518. "selectedElementIds": {
  2519. "id1": true,
  2520. },
  2521. },
  2522. },
  2523. },
  2524. "elementsChange": ElementsChange {
  2525. "added": Map {},
  2526. "removed": Map {
  2527. "id2" => Delta {
  2528. "deleted": {
  2529. "angle": 0,
  2530. "backgroundColor": "transparent",
  2531. "boundElements": null,
  2532. "customData": undefined,
  2533. "fillStyle": "solid",
  2534. "frameId": null,
  2535. "groupIds": [],
  2536. "height": 350,
  2537. "index": "a2",
  2538. "isDeleted": false,
  2539. "link": null,
  2540. "locked": false,
  2541. "opacity": 100,
  2542. "roughness": 1,
  2543. "roundness": {
  2544. "type": 2,
  2545. },
  2546. "strokeColor": "#1e1e1e",
  2547. "strokeStyle": "solid",
  2548. "strokeWidth": 2,
  2549. "type": "ellipse",
  2550. "width": 350,
  2551. "x": 300,
  2552. "y": 300,
  2553. },
  2554. "inserted": {
  2555. "isDeleted": true,
  2556. },
  2557. },
  2558. },
  2559. "updated": Map {},
  2560. },
  2561. },
  2562. HistoryEntry {
  2563. "appStateChange": AppStateChange {
  2564. "delta": Delta {
  2565. "deleted": {
  2566. "selectedElementIds": {
  2567. "id1": true,
  2568. },
  2569. },
  2570. "inserted": {
  2571. "selectedElementIds": {
  2572. "id2": true,
  2573. },
  2574. },
  2575. },
  2576. },
  2577. "elementsChange": ElementsChange {
  2578. "added": Map {},
  2579. "removed": Map {},
  2580. "updated": Map {
  2581. "id1" => Delta {
  2582. "deleted": {
  2583. "x": 300,
  2584. "y": 300,
  2585. },
  2586. "inserted": {
  2587. "x": 100,
  2588. "y": 100,
  2589. },
  2590. },
  2591. },
  2592. },
  2593. },
  2594. ],
  2595. }
  2596. `;
  2597. exports[`regression tests > can drag element that covers another element, while another elem is selected > [end of test] number of elements 1`] = `0`;
  2598. exports[`regression tests > can drag element that covers another element, while another elem is selected > [end of test] number of renders 1`] = `18`;
  2599. exports[`regression tests > change the properties of a shape > [end of test] appState 1`] = `
  2600. {
  2601. "activeEmbeddable": null,
  2602. "activeTool": {
  2603. "customType": null,
  2604. "lastActiveTool": null,
  2605. "locked": false,
  2606. "type": "selection",
  2607. },
  2608. "collaborators": Map {},
  2609. "contextMenu": null,
  2610. "currentChartType": "bar",
  2611. "currentHoveredFontFamily": null,
  2612. "currentItemBackgroundColor": "#ffc9c9",
  2613. "currentItemEndArrowhead": "arrow",
  2614. "currentItemFillStyle": "solid",
  2615. "currentItemFontFamily": 5,
  2616. "currentItemFontSize": 20,
  2617. "currentItemOpacity": 100,
  2618. "currentItemRoughness": 1,
  2619. "currentItemRoundness": "round",
  2620. "currentItemStartArrowhead": null,
  2621. "currentItemStrokeColor": "#1971c2",
  2622. "currentItemStrokeStyle": "solid",
  2623. "currentItemStrokeWidth": 2,
  2624. "currentItemTextAlign": "left",
  2625. "cursorButton": "up",
  2626. "defaultSidebarDockedPreference": false,
  2627. "draggingElement": null,
  2628. "editingElement": null,
  2629. "editingFrame": null,
  2630. "editingGroupId": null,
  2631. "editingLinearElement": null,
  2632. "elementsToHighlight": null,
  2633. "errorMessage": null,
  2634. "exportBackground": true,
  2635. "exportEmbedScene": false,
  2636. "exportScale": 1,
  2637. "exportWithDarkMode": false,
  2638. "fileHandle": null,
  2639. "followedBy": Set {},
  2640. "frameRendering": {
  2641. "clip": true,
  2642. "enabled": true,
  2643. "name": true,
  2644. "outline": true,
  2645. },
  2646. "frameToHighlight": null,
  2647. "gridSize": null,
  2648. "height": 768,
  2649. "isBindingEnabled": true,
  2650. "isLoading": false,
  2651. "isResizing": false,
  2652. "isRotating": false,
  2653. "lastPointerDownWith": "mouse",
  2654. "multiElement": null,
  2655. "name": "Untitled-201933152653",
  2656. "objectsSnapModeEnabled": false,
  2657. "offsetLeft": 0,
  2658. "offsetTop": 0,
  2659. "openDialog": null,
  2660. "openMenu": null,
  2661. "openPopup": "elementStroke",
  2662. "openSidebar": null,
  2663. "originSnapOffset": null,
  2664. "pasteDialog": {
  2665. "data": null,
  2666. "shown": false,
  2667. },
  2668. "penDetected": false,
  2669. "penMode": false,
  2670. "pendingImageElementId": null,
  2671. "previousSelectedElementIds": {},
  2672. "resizingElement": null,
  2673. "scrollX": 0,
  2674. "scrollY": 0,
  2675. "scrolledOutside": false,
  2676. "selectedElementIds": {
  2677. "id0": true,
  2678. },
  2679. "selectedElementsAreBeingDragged": false,
  2680. "selectedGroupIds": {},
  2681. "selectedLinearElement": null,
  2682. "selectionElement": null,
  2683. "shouldCacheIgnoreZoom": false,
  2684. "showHyperlinkPopup": false,
  2685. "showWelcomeScreen": true,
  2686. "snapLines": [],
  2687. "startBoundElement": null,
  2688. "stats": {
  2689. "open": false,
  2690. "panels": 3,
  2691. },
  2692. "suggestedBindings": [],
  2693. "theme": "light",
  2694. "toast": null,
  2695. "userToFollow": null,
  2696. "viewBackgroundColor": "#ffffff",
  2697. "viewModeEnabled": false,
  2698. "width": 1024,
  2699. "zenModeEnabled": false,
  2700. "zoom": {
  2701. "value": 1,
  2702. },
  2703. }
  2704. `;
  2705. exports[`regression tests > change the properties of a shape > [end of test] history 1`] = `
  2706. History {
  2707. "onHistoryChangedEmitter": Emitter {
  2708. "subscribers": [],
  2709. },
  2710. "redoStack": [],
  2711. "undoStack": [
  2712. HistoryEntry {
  2713. "appStateChange": AppStateChange {
  2714. "delta": Delta {
  2715. "deleted": {
  2716. "selectedElementIds": {
  2717. "id0": true,
  2718. },
  2719. },
  2720. "inserted": {
  2721. "selectedElementIds": {},
  2722. },
  2723. },
  2724. },
  2725. "elementsChange": ElementsChange {
  2726. "added": Map {},
  2727. "removed": Map {
  2728. "id0" => Delta {
  2729. "deleted": {
  2730. "angle": 0,
  2731. "backgroundColor": "transparent",
  2732. "boundElements": null,
  2733. "customData": undefined,
  2734. "fillStyle": "solid",
  2735. "frameId": null,
  2736. "groupIds": [],
  2737. "height": 10,
  2738. "index": "a0",
  2739. "isDeleted": false,
  2740. "link": null,
  2741. "locked": false,
  2742. "opacity": 100,
  2743. "roughness": 1,
  2744. "roundness": {
  2745. "type": 3,
  2746. },
  2747. "strokeColor": "#1e1e1e",
  2748. "strokeStyle": "solid",
  2749. "strokeWidth": 2,
  2750. "type": "rectangle",
  2751. "width": 10,
  2752. "x": 10,
  2753. "y": 10,
  2754. },
  2755. "inserted": {
  2756. "isDeleted": true,
  2757. },
  2758. },
  2759. },
  2760. "updated": Map {},
  2761. },
  2762. },
  2763. HistoryEntry {
  2764. "appStateChange": AppStateChange {
  2765. "delta": Delta {
  2766. "deleted": {},
  2767. "inserted": {},
  2768. },
  2769. },
  2770. "elementsChange": ElementsChange {
  2771. "added": Map {},
  2772. "removed": Map {},
  2773. "updated": Map {
  2774. "id0" => Delta {
  2775. "deleted": {
  2776. "backgroundColor": "#ffec99",
  2777. },
  2778. "inserted": {
  2779. "backgroundColor": "transparent",
  2780. },
  2781. },
  2782. },
  2783. },
  2784. },
  2785. HistoryEntry {
  2786. "appStateChange": AppStateChange {
  2787. "delta": Delta {
  2788. "deleted": {},
  2789. "inserted": {},
  2790. },
  2791. },
  2792. "elementsChange": ElementsChange {
  2793. "added": Map {},
  2794. "removed": Map {},
  2795. "updated": Map {
  2796. "id0" => Delta {
  2797. "deleted": {
  2798. "backgroundColor": "#ffc9c9",
  2799. },
  2800. "inserted": {
  2801. "backgroundColor": "#ffec99",
  2802. },
  2803. },
  2804. },
  2805. },
  2806. },
  2807. HistoryEntry {
  2808. "appStateChange": AppStateChange {
  2809. "delta": Delta {
  2810. "deleted": {},
  2811. "inserted": {},
  2812. },
  2813. },
  2814. "elementsChange": ElementsChange {
  2815. "added": Map {},
  2816. "removed": Map {},
  2817. "updated": Map {
  2818. "id0" => Delta {
  2819. "deleted": {
  2820. "strokeColor": "#1971c2",
  2821. },
  2822. "inserted": {
  2823. "strokeColor": "#1e1e1e",
  2824. },
  2825. },
  2826. },
  2827. },
  2828. },
  2829. ],
  2830. }
  2831. `;
  2832. exports[`regression tests > change the properties of a shape > [end of test] number of elements 1`] = `0`;
  2833. exports[`regression tests > change the properties of a shape > [end of test] number of renders 1`] = `10`;
  2834. exports[`regression tests > click on an element and drag it > [dragged] appState 1`] = `
  2835. {
  2836. "activeEmbeddable": null,
  2837. "activeTool": {
  2838. "customType": null,
  2839. "lastActiveTool": null,
  2840. "locked": false,
  2841. "type": "selection",
  2842. },
  2843. "collaborators": Map {},
  2844. "contextMenu": null,
  2845. "currentChartType": "bar",
  2846. "currentHoveredFontFamily": null,
  2847. "currentItemBackgroundColor": "transparent",
  2848. "currentItemEndArrowhead": "arrow",
  2849. "currentItemFillStyle": "solid",
  2850. "currentItemFontFamily": 5,
  2851. "currentItemFontSize": 20,
  2852. "currentItemOpacity": 100,
  2853. "currentItemRoughness": 1,
  2854. "currentItemRoundness": "round",
  2855. "currentItemStartArrowhead": null,
  2856. "currentItemStrokeColor": "#1e1e1e",
  2857. "currentItemStrokeStyle": "solid",
  2858. "currentItemStrokeWidth": 2,
  2859. "currentItemTextAlign": "left",
  2860. "cursorButton": "up",
  2861. "defaultSidebarDockedPreference": false,
  2862. "draggingElement": null,
  2863. "editingElement": null,
  2864. "editingFrame": null,
  2865. "editingGroupId": null,
  2866. "editingLinearElement": null,
  2867. "elementsToHighlight": null,
  2868. "errorMessage": null,
  2869. "exportBackground": true,
  2870. "exportEmbedScene": false,
  2871. "exportScale": 1,
  2872. "exportWithDarkMode": false,
  2873. "fileHandle": null,
  2874. "followedBy": Set {},
  2875. "frameRendering": {
  2876. "clip": true,
  2877. "enabled": true,
  2878. "name": true,
  2879. "outline": true,
  2880. },
  2881. "frameToHighlight": null,
  2882. "gridSize": null,
  2883. "height": 768,
  2884. "isBindingEnabled": true,
  2885. "isLoading": false,
  2886. "isResizing": false,
  2887. "isRotating": false,
  2888. "lastPointerDownWith": "mouse",
  2889. "multiElement": null,
  2890. "name": "Untitled-201933152653",
  2891. "objectsSnapModeEnabled": false,
  2892. "offsetLeft": 0,
  2893. "offsetTop": 0,
  2894. "openDialog": null,
  2895. "openMenu": null,
  2896. "openPopup": null,
  2897. "openSidebar": null,
  2898. "originSnapOffset": null,
  2899. "pasteDialog": {
  2900. "data": null,
  2901. "shown": false,
  2902. },
  2903. "penDetected": false,
  2904. "penMode": false,
  2905. "pendingImageElementId": null,
  2906. "previousSelectedElementIds": {
  2907. "id0": true,
  2908. },
  2909. "resizingElement": null,
  2910. "scrollX": 0,
  2911. "scrollY": 0,
  2912. "scrolledOutside": false,
  2913. "selectedElementIds": {
  2914. "id0": true,
  2915. },
  2916. "selectedElementsAreBeingDragged": false,
  2917. "selectedGroupIds": {},
  2918. "selectedLinearElement": null,
  2919. "selectionElement": null,
  2920. "shouldCacheIgnoreZoom": false,
  2921. "showHyperlinkPopup": false,
  2922. "showWelcomeScreen": true,
  2923. "snapLines": [],
  2924. "startBoundElement": null,
  2925. "stats": {
  2926. "open": false,
  2927. "panels": 3,
  2928. },
  2929. "suggestedBindings": [],
  2930. "theme": "light",
  2931. "toast": null,
  2932. "userToFollow": null,
  2933. "viewBackgroundColor": "#ffffff",
  2934. "viewModeEnabled": false,
  2935. "width": 1024,
  2936. "zenModeEnabled": false,
  2937. "zoom": {
  2938. "value": 1,
  2939. },
  2940. }
  2941. `;
  2942. exports[`regression tests > click on an element and drag it > [dragged] element 0 1`] = `
  2943. {
  2944. "angle": 0,
  2945. "backgroundColor": "transparent",
  2946. "boundElements": null,
  2947. "customData": undefined,
  2948. "fillStyle": "solid",
  2949. "frameId": null,
  2950. "groupIds": [],
  2951. "height": 10,
  2952. "id": "id0",
  2953. "index": "a0",
  2954. "isDeleted": false,
  2955. "link": null,
  2956. "locked": false,
  2957. "opacity": 100,
  2958. "roughness": 1,
  2959. "roundness": {
  2960. "type": 3,
  2961. },
  2962. "seed": 1278240551,
  2963. "strokeColor": "#1e1e1e",
  2964. "strokeStyle": "solid",
  2965. "strokeWidth": 2,
  2966. "type": "rectangle",
  2967. "updated": 1,
  2968. "version": 4,
  2969. "versionNonce": 1116226695,
  2970. "width": 10,
  2971. "x": 20,
  2972. "y": 20,
  2973. }
  2974. `;
  2975. exports[`regression tests > click on an element and drag it > [dragged] history 1`] = `
  2976. History {
  2977. "onHistoryChangedEmitter": Emitter {
  2978. "subscribers": [
  2979. [Function],
  2980. [Function],
  2981. ],
  2982. },
  2983. "redoStack": [],
  2984. "undoStack": [
  2985. HistoryEntry {
  2986. "appStateChange": AppStateChange {
  2987. "delta": Delta {
  2988. "deleted": {
  2989. "selectedElementIds": {
  2990. "id0": true,
  2991. },
  2992. },
  2993. "inserted": {
  2994. "selectedElementIds": {},
  2995. },
  2996. },
  2997. },
  2998. "elementsChange": ElementsChange {
  2999. "added": Map {},
  3000. "removed": Map {
  3001. "id0" => Delta {
  3002. "deleted": {
  3003. "angle": 0,
  3004. "backgroundColor": "transparent",
  3005. "boundElements": null,
  3006. "customData": undefined,
  3007. "fillStyle": "solid",
  3008. "frameId": null,
  3009. "groupIds": [],
  3010. "height": 10,
  3011. "index": "a0",
  3012. "isDeleted": false,
  3013. "link": null,
  3014. "locked": false,
  3015. "opacity": 100,
  3016. "roughness": 1,
  3017. "roundness": {
  3018. "type": 3,
  3019. },
  3020. "strokeColor": "#1e1e1e",
  3021. "strokeStyle": "solid",
  3022. "strokeWidth": 2,
  3023. "type": "rectangle",
  3024. "width": 10,
  3025. "x": 10,
  3026. "y": 10,
  3027. },
  3028. "inserted": {
  3029. "isDeleted": true,
  3030. },
  3031. },
  3032. },
  3033. "updated": Map {},
  3034. },
  3035. },
  3036. HistoryEntry {
  3037. "appStateChange": AppStateChange {
  3038. "delta": Delta {
  3039. "deleted": {},
  3040. "inserted": {},
  3041. },
  3042. },
  3043. "elementsChange": ElementsChange {
  3044. "added": Map {},
  3045. "removed": Map {},
  3046. "updated": Map {
  3047. "id0" => Delta {
  3048. "deleted": {
  3049. "x": 20,
  3050. "y": 20,
  3051. },
  3052. "inserted": {
  3053. "x": 10,
  3054. "y": 10,
  3055. },
  3056. },
  3057. },
  3058. },
  3059. },
  3060. ],
  3061. }
  3062. `;
  3063. exports[`regression tests > click on an element and drag it > [dragged] number of elements 1`] = `1`;
  3064. exports[`regression tests > click on an element and drag it > [dragged] number of renders 1`] = `9`;
  3065. exports[`regression tests > click on an element and drag it > [end of test] appState 1`] = `
  3066. {
  3067. "activeEmbeddable": null,
  3068. "activeTool": {
  3069. "customType": null,
  3070. "lastActiveTool": null,
  3071. "locked": false,
  3072. "type": "selection",
  3073. },
  3074. "collaborators": Map {},
  3075. "contextMenu": null,
  3076. "currentChartType": "bar",
  3077. "currentHoveredFontFamily": null,
  3078. "currentItemBackgroundColor": "transparent",
  3079. "currentItemEndArrowhead": "arrow",
  3080. "currentItemFillStyle": "solid",
  3081. "currentItemFontFamily": 5,
  3082. "currentItemFontSize": 20,
  3083. "currentItemOpacity": 100,
  3084. "currentItemRoughness": 1,
  3085. "currentItemRoundness": "round",
  3086. "currentItemStartArrowhead": null,
  3087. "currentItemStrokeColor": "#1e1e1e",
  3088. "currentItemStrokeStyle": "solid",
  3089. "currentItemStrokeWidth": 2,
  3090. "currentItemTextAlign": "left",
  3091. "cursorButton": "up",
  3092. "defaultSidebarDockedPreference": false,
  3093. "draggingElement": null,
  3094. "editingElement": null,
  3095. "editingFrame": null,
  3096. "editingGroupId": null,
  3097. "editingLinearElement": null,
  3098. "elementsToHighlight": null,
  3099. "errorMessage": null,
  3100. "exportBackground": true,
  3101. "exportEmbedScene": false,
  3102. "exportScale": 1,
  3103. "exportWithDarkMode": false,
  3104. "fileHandle": null,
  3105. "followedBy": Set {},
  3106. "frameRendering": {
  3107. "clip": true,
  3108. "enabled": true,
  3109. "name": true,
  3110. "outline": true,
  3111. },
  3112. "frameToHighlight": null,
  3113. "gridSize": null,
  3114. "height": 768,
  3115. "isBindingEnabled": true,
  3116. "isLoading": false,
  3117. "isResizing": false,
  3118. "isRotating": false,
  3119. "lastPointerDownWith": "mouse",
  3120. "multiElement": null,
  3121. "name": "Untitled-201933152653",
  3122. "objectsSnapModeEnabled": false,
  3123. "offsetLeft": 0,
  3124. "offsetTop": 0,
  3125. "openDialog": null,
  3126. "openMenu": null,
  3127. "openPopup": null,
  3128. "openSidebar": null,
  3129. "originSnapOffset": null,
  3130. "pasteDialog": {
  3131. "data": null,
  3132. "shown": false,
  3133. },
  3134. "penDetected": false,
  3135. "penMode": false,
  3136. "pendingImageElementId": null,
  3137. "previousSelectedElementIds": {
  3138. "id0": true,
  3139. },
  3140. "resizingElement": null,
  3141. "scrollX": 0,
  3142. "scrollY": 0,
  3143. "scrolledOutside": false,
  3144. "selectedElementIds": {
  3145. "id0": true,
  3146. },
  3147. "selectedElementsAreBeingDragged": false,
  3148. "selectedGroupIds": {},
  3149. "selectedLinearElement": null,
  3150. "selectionElement": null,
  3151. "shouldCacheIgnoreZoom": false,
  3152. "showHyperlinkPopup": false,
  3153. "showWelcomeScreen": true,
  3154. "snapLines": [],
  3155. "startBoundElement": null,
  3156. "stats": {
  3157. "open": false,
  3158. "panels": 3,
  3159. },
  3160. "suggestedBindings": [],
  3161. "theme": "light",
  3162. "toast": null,
  3163. "userToFollow": null,
  3164. "viewBackgroundColor": "#ffffff",
  3165. "viewModeEnabled": false,
  3166. "width": 1024,
  3167. "zenModeEnabled": false,
  3168. "zoom": {
  3169. "value": 1,
  3170. },
  3171. }
  3172. `;
  3173. exports[`regression tests > click on an element and drag it > [end of test] history 1`] = `
  3174. History {
  3175. "onHistoryChangedEmitter": Emitter {
  3176. "subscribers": [],
  3177. },
  3178. "redoStack": [],
  3179. "undoStack": [
  3180. HistoryEntry {
  3181. "appStateChange": AppStateChange {
  3182. "delta": Delta {
  3183. "deleted": {
  3184. "selectedElementIds": {
  3185. "id0": true,
  3186. },
  3187. },
  3188. "inserted": {
  3189. "selectedElementIds": {},
  3190. },
  3191. },
  3192. },
  3193. "elementsChange": ElementsChange {
  3194. "added": Map {},
  3195. "removed": Map {
  3196. "id0" => Delta {
  3197. "deleted": {
  3198. "angle": 0,
  3199. "backgroundColor": "transparent",
  3200. "boundElements": null,
  3201. "customData": undefined,
  3202. "fillStyle": "solid",
  3203. "frameId": null,
  3204. "groupIds": [],
  3205. "height": 10,
  3206. "index": "a0",
  3207. "isDeleted": false,
  3208. "link": null,
  3209. "locked": false,
  3210. "opacity": 100,
  3211. "roughness": 1,
  3212. "roundness": {
  3213. "type": 3,
  3214. },
  3215. "strokeColor": "#1e1e1e",
  3216. "strokeStyle": "solid",
  3217. "strokeWidth": 2,
  3218. "type": "rectangle",
  3219. "width": 10,
  3220. "x": 10,
  3221. "y": 10,
  3222. },
  3223. "inserted": {
  3224. "isDeleted": true,
  3225. },
  3226. },
  3227. },
  3228. "updated": Map {},
  3229. },
  3230. },
  3231. HistoryEntry {
  3232. "appStateChange": AppStateChange {
  3233. "delta": Delta {
  3234. "deleted": {},
  3235. "inserted": {},
  3236. },
  3237. },
  3238. "elementsChange": ElementsChange {
  3239. "added": Map {},
  3240. "removed": Map {},
  3241. "updated": Map {
  3242. "id0" => Delta {
  3243. "deleted": {
  3244. "x": 20,
  3245. "y": 20,
  3246. },
  3247. "inserted": {
  3248. "x": 10,
  3249. "y": 10,
  3250. },
  3251. },
  3252. },
  3253. },
  3254. },
  3255. HistoryEntry {
  3256. "appStateChange": AppStateChange {
  3257. "delta": Delta {
  3258. "deleted": {},
  3259. "inserted": {},
  3260. },
  3261. },
  3262. "elementsChange": ElementsChange {
  3263. "added": Map {},
  3264. "removed": Map {},
  3265. "updated": Map {
  3266. "id0" => Delta {
  3267. "deleted": {
  3268. "x": 10,
  3269. "y": 10,
  3270. },
  3271. "inserted": {
  3272. "x": 20,
  3273. "y": 20,
  3274. },
  3275. },
  3276. },
  3277. },
  3278. },
  3279. ],
  3280. }
  3281. `;
  3282. exports[`regression tests > click on an element and drag it > [end of test] number of elements 1`] = `0`;
  3283. exports[`regression tests > click on an element and drag it > [end of test] number of renders 1`] = `11`;
  3284. exports[`regression tests > click to select a shape > [end of test] appState 1`] = `
  3285. {
  3286. "activeEmbeddable": null,
  3287. "activeTool": {
  3288. "customType": null,
  3289. "lastActiveTool": null,
  3290. "locked": false,
  3291. "type": "selection",
  3292. },
  3293. "collaborators": Map {},
  3294. "contextMenu": null,
  3295. "currentChartType": "bar",
  3296. "currentHoveredFontFamily": null,
  3297. "currentItemBackgroundColor": "transparent",
  3298. "currentItemEndArrowhead": "arrow",
  3299. "currentItemFillStyle": "solid",
  3300. "currentItemFontFamily": 5,
  3301. "currentItemFontSize": 20,
  3302. "currentItemOpacity": 100,
  3303. "currentItemRoughness": 1,
  3304. "currentItemRoundness": "round",
  3305. "currentItemStartArrowhead": null,
  3306. "currentItemStrokeColor": "#1e1e1e",
  3307. "currentItemStrokeStyle": "solid",
  3308. "currentItemStrokeWidth": 2,
  3309. "currentItemTextAlign": "left",
  3310. "cursorButton": "up",
  3311. "defaultSidebarDockedPreference": false,
  3312. "draggingElement": null,
  3313. "editingElement": null,
  3314. "editingFrame": null,
  3315. "editingGroupId": null,
  3316. "editingLinearElement": null,
  3317. "elementsToHighlight": null,
  3318. "errorMessage": null,
  3319. "exportBackground": true,
  3320. "exportEmbedScene": false,
  3321. "exportScale": 1,
  3322. "exportWithDarkMode": false,
  3323. "fileHandle": null,
  3324. "followedBy": Set {},
  3325. "frameRendering": {
  3326. "clip": true,
  3327. "enabled": true,
  3328. "name": true,
  3329. "outline": true,
  3330. },
  3331. "frameToHighlight": null,
  3332. "gridSize": null,
  3333. "height": 768,
  3334. "isBindingEnabled": true,
  3335. "isLoading": false,
  3336. "isResizing": false,
  3337. "isRotating": false,
  3338. "lastPointerDownWith": "mouse",
  3339. "multiElement": null,
  3340. "name": "Untitled-201933152653",
  3341. "objectsSnapModeEnabled": false,
  3342. "offsetLeft": 0,
  3343. "offsetTop": 0,
  3344. "openDialog": null,
  3345. "openMenu": null,
  3346. "openPopup": null,
  3347. "openSidebar": null,
  3348. "originSnapOffset": null,
  3349. "pasteDialog": {
  3350. "data": null,
  3351. "shown": false,
  3352. },
  3353. "penDetected": false,
  3354. "penMode": false,
  3355. "pendingImageElementId": null,
  3356. "previousSelectedElementIds": {
  3357. "id1": true,
  3358. },
  3359. "resizingElement": null,
  3360. "scrollX": 0,
  3361. "scrollY": 0,
  3362. "scrolledOutside": false,
  3363. "selectedElementIds": {
  3364. "id0": true,
  3365. },
  3366. "selectedElementsAreBeingDragged": false,
  3367. "selectedGroupIds": {},
  3368. "selectedLinearElement": null,
  3369. "selectionElement": null,
  3370. "shouldCacheIgnoreZoom": false,
  3371. "showHyperlinkPopup": false,
  3372. "showWelcomeScreen": true,
  3373. "snapLines": [],
  3374. "startBoundElement": null,
  3375. "stats": {
  3376. "open": false,
  3377. "panels": 3,
  3378. },
  3379. "suggestedBindings": [],
  3380. "theme": "light",
  3381. "toast": null,
  3382. "userToFollow": null,
  3383. "viewBackgroundColor": "#ffffff",
  3384. "viewModeEnabled": false,
  3385. "width": 1024,
  3386. "zenModeEnabled": false,
  3387. "zoom": {
  3388. "value": 1,
  3389. },
  3390. }
  3391. `;
  3392. exports[`regression tests > click to select a shape > [end of test] history 1`] = `
  3393. History {
  3394. "onHistoryChangedEmitter": Emitter {
  3395. "subscribers": [],
  3396. },
  3397. "redoStack": [],
  3398. "undoStack": [
  3399. HistoryEntry {
  3400. "appStateChange": AppStateChange {
  3401. "delta": Delta {
  3402. "deleted": {
  3403. "selectedElementIds": {
  3404. "id0": true,
  3405. },
  3406. },
  3407. "inserted": {
  3408. "selectedElementIds": {},
  3409. },
  3410. },
  3411. },
  3412. "elementsChange": ElementsChange {
  3413. "added": Map {},
  3414. "removed": Map {
  3415. "id0" => Delta {
  3416. "deleted": {
  3417. "angle": 0,
  3418. "backgroundColor": "transparent",
  3419. "boundElements": null,
  3420. "customData": undefined,
  3421. "fillStyle": "solid",
  3422. "frameId": null,
  3423. "groupIds": [],
  3424. "height": 10,
  3425. "index": "a0",
  3426. "isDeleted": false,
  3427. "link": null,
  3428. "locked": false,
  3429. "opacity": 100,
  3430. "roughness": 1,
  3431. "roundness": {
  3432. "type": 3,
  3433. },
  3434. "strokeColor": "#1e1e1e",
  3435. "strokeStyle": "solid",
  3436. "strokeWidth": 2,
  3437. "type": "rectangle",
  3438. "width": 10,
  3439. "x": 10,
  3440. "y": 10,
  3441. },
  3442. "inserted": {
  3443. "isDeleted": true,
  3444. },
  3445. },
  3446. },
  3447. "updated": Map {},
  3448. },
  3449. },
  3450. HistoryEntry {
  3451. "appStateChange": AppStateChange {
  3452. "delta": Delta {
  3453. "deleted": {
  3454. "selectedElementIds": {
  3455. "id1": true,
  3456. },
  3457. },
  3458. "inserted": {
  3459. "selectedElementIds": {
  3460. "id0": true,
  3461. },
  3462. },
  3463. },
  3464. },
  3465. "elementsChange": ElementsChange {
  3466. "added": Map {},
  3467. "removed": Map {
  3468. "id1" => Delta {
  3469. "deleted": {
  3470. "angle": 0,
  3471. "backgroundColor": "transparent",
  3472. "boundElements": null,
  3473. "customData": undefined,
  3474. "fillStyle": "solid",
  3475. "frameId": null,
  3476. "groupIds": [],
  3477. "height": 10,
  3478. "index": "a1",
  3479. "isDeleted": false,
  3480. "link": null,
  3481. "locked": false,
  3482. "opacity": 100,
  3483. "roughness": 1,
  3484. "roundness": {
  3485. "type": 3,
  3486. },
  3487. "strokeColor": "#1e1e1e",
  3488. "strokeStyle": "solid",
  3489. "strokeWidth": 2,
  3490. "type": "rectangle",
  3491. "width": 10,
  3492. "x": 30,
  3493. "y": 10,
  3494. },
  3495. "inserted": {
  3496. "isDeleted": true,
  3497. },
  3498. },
  3499. },
  3500. "updated": Map {},
  3501. },
  3502. },
  3503. HistoryEntry {
  3504. "appStateChange": AppStateChange {
  3505. "delta": Delta {
  3506. "deleted": {
  3507. "selectedElementIds": {
  3508. "id0": true,
  3509. },
  3510. },
  3511. "inserted": {
  3512. "selectedElementIds": {
  3513. "id1": true,
  3514. },
  3515. },
  3516. },
  3517. },
  3518. "elementsChange": ElementsChange {
  3519. "added": Map {},
  3520. "removed": Map {},
  3521. "updated": Map {},
  3522. },
  3523. },
  3524. ],
  3525. }
  3526. `;
  3527. exports[`regression tests > click to select a shape > [end of test] number of elements 1`] = `0`;
  3528. exports[`regression tests > click to select a shape > [end of test] number of renders 1`] = `12`;
  3529. exports[`regression tests > click-drag to select a group > [end of test] appState 1`] = `
  3530. {
  3531. "activeEmbeddable": null,
  3532. "activeTool": {
  3533. "customType": null,
  3534. "lastActiveTool": null,
  3535. "locked": false,
  3536. "type": "selection",
  3537. },
  3538. "collaborators": Map {},
  3539. "contextMenu": null,
  3540. "currentChartType": "bar",
  3541. "currentHoveredFontFamily": null,
  3542. "currentItemBackgroundColor": "transparent",
  3543. "currentItemEndArrowhead": "arrow",
  3544. "currentItemFillStyle": "solid",
  3545. "currentItemFontFamily": 5,
  3546. "currentItemFontSize": 20,
  3547. "currentItemOpacity": 100,
  3548. "currentItemRoughness": 1,
  3549. "currentItemRoundness": "round",
  3550. "currentItemStartArrowhead": null,
  3551. "currentItemStrokeColor": "#1e1e1e",
  3552. "currentItemStrokeStyle": "solid",
  3553. "currentItemStrokeWidth": 2,
  3554. "currentItemTextAlign": "left",
  3555. "cursorButton": "up",
  3556. "defaultSidebarDockedPreference": false,
  3557. "draggingElement": null,
  3558. "editingElement": null,
  3559. "editingFrame": null,
  3560. "editingGroupId": null,
  3561. "editingLinearElement": null,
  3562. "elementsToHighlight": null,
  3563. "errorMessage": null,
  3564. "exportBackground": true,
  3565. "exportEmbedScene": false,
  3566. "exportScale": 1,
  3567. "exportWithDarkMode": false,
  3568. "fileHandle": null,
  3569. "followedBy": Set {},
  3570. "frameRendering": {
  3571. "clip": true,
  3572. "enabled": true,
  3573. "name": true,
  3574. "outline": true,
  3575. },
  3576. "frameToHighlight": null,
  3577. "gridSize": null,
  3578. "height": 768,
  3579. "isBindingEnabled": true,
  3580. "isLoading": false,
  3581. "isResizing": false,
  3582. "isRotating": false,
  3583. "lastPointerDownWith": "mouse",
  3584. "multiElement": null,
  3585. "name": "Untitled-201933152653",
  3586. "objectsSnapModeEnabled": false,
  3587. "offsetLeft": 0,
  3588. "offsetTop": 0,
  3589. "openDialog": null,
  3590. "openMenu": null,
  3591. "openPopup": null,
  3592. "openSidebar": null,
  3593. "originSnapOffset": null,
  3594. "pasteDialog": {
  3595. "data": null,
  3596. "shown": false,
  3597. },
  3598. "penDetected": false,
  3599. "penMode": false,
  3600. "pendingImageElementId": null,
  3601. "previousSelectedElementIds": {
  3602. "id2": true,
  3603. },
  3604. "resizingElement": null,
  3605. "scrollX": 0,
  3606. "scrollY": 0,
  3607. "scrolledOutside": false,
  3608. "selectedElementIds": {
  3609. "id0": true,
  3610. "id1": true,
  3611. },
  3612. "selectedElementsAreBeingDragged": false,
  3613. "selectedGroupIds": {},
  3614. "selectedLinearElement": null,
  3615. "selectionElement": null,
  3616. "shouldCacheIgnoreZoom": false,
  3617. "showHyperlinkPopup": false,
  3618. "showWelcomeScreen": true,
  3619. "snapLines": [],
  3620. "startBoundElement": null,
  3621. "stats": {
  3622. "open": false,
  3623. "panels": 3,
  3624. },
  3625. "suggestedBindings": [],
  3626. "theme": "light",
  3627. "toast": null,
  3628. "userToFollow": null,
  3629. "viewBackgroundColor": "#ffffff",
  3630. "viewModeEnabled": false,
  3631. "width": 1024,
  3632. "zenModeEnabled": false,
  3633. "zoom": {
  3634. "value": 1,
  3635. },
  3636. }
  3637. `;
  3638. exports[`regression tests > click-drag to select a group > [end of test] history 1`] = `
  3639. History {
  3640. "onHistoryChangedEmitter": Emitter {
  3641. "subscribers": [],
  3642. },
  3643. "redoStack": [],
  3644. "undoStack": [
  3645. HistoryEntry {
  3646. "appStateChange": AppStateChange {
  3647. "delta": Delta {
  3648. "deleted": {
  3649. "selectedElementIds": {
  3650. "id0": true,
  3651. },
  3652. },
  3653. "inserted": {
  3654. "selectedElementIds": {},
  3655. },
  3656. },
  3657. },
  3658. "elementsChange": ElementsChange {
  3659. "added": Map {},
  3660. "removed": Map {
  3661. "id0" => Delta {
  3662. "deleted": {
  3663. "angle": 0,
  3664. "backgroundColor": "transparent",
  3665. "boundElements": null,
  3666. "customData": undefined,
  3667. "fillStyle": "solid",
  3668. "frameId": null,
  3669. "groupIds": [],
  3670. "height": 10,
  3671. "index": "a0",
  3672. "isDeleted": false,
  3673. "link": null,
  3674. "locked": false,
  3675. "opacity": 100,
  3676. "roughness": 1,
  3677. "roundness": {
  3678. "type": 3,
  3679. },
  3680. "strokeColor": "#1e1e1e",
  3681. "strokeStyle": "solid",
  3682. "strokeWidth": 2,
  3683. "type": "rectangle",
  3684. "width": 10,
  3685. "x": 10,
  3686. "y": 10,
  3687. },
  3688. "inserted": {
  3689. "isDeleted": true,
  3690. },
  3691. },
  3692. },
  3693. "updated": Map {},
  3694. },
  3695. },
  3696. HistoryEntry {
  3697. "appStateChange": AppStateChange {
  3698. "delta": Delta {
  3699. "deleted": {
  3700. "selectedElementIds": {
  3701. "id1": true,
  3702. },
  3703. },
  3704. "inserted": {
  3705. "selectedElementIds": {
  3706. "id0": true,
  3707. },
  3708. },
  3709. },
  3710. },
  3711. "elementsChange": ElementsChange {
  3712. "added": Map {},
  3713. "removed": Map {
  3714. "id1" => Delta {
  3715. "deleted": {
  3716. "angle": 0,
  3717. "backgroundColor": "transparent",
  3718. "boundElements": null,
  3719. "customData": undefined,
  3720. "fillStyle": "solid",
  3721. "frameId": null,
  3722. "groupIds": [],
  3723. "height": 10,
  3724. "index": "a1",
  3725. "isDeleted": false,
  3726. "link": null,
  3727. "locked": false,
  3728. "opacity": 100,
  3729. "roughness": 1,
  3730. "roundness": {
  3731. "type": 3,
  3732. },
  3733. "strokeColor": "#1e1e1e",
  3734. "strokeStyle": "solid",
  3735. "strokeWidth": 2,
  3736. "type": "rectangle",
  3737. "width": 10,
  3738. "x": 30,
  3739. "y": 10,
  3740. },
  3741. "inserted": {
  3742. "isDeleted": true,
  3743. },
  3744. },
  3745. },
  3746. "updated": Map {},
  3747. },
  3748. },
  3749. HistoryEntry {
  3750. "appStateChange": AppStateChange {
  3751. "delta": Delta {
  3752. "deleted": {
  3753. "selectedElementIds": {
  3754. "id2": true,
  3755. },
  3756. },
  3757. "inserted": {
  3758. "selectedElementIds": {
  3759. "id1": true,
  3760. },
  3761. },
  3762. },
  3763. },
  3764. "elementsChange": ElementsChange {
  3765. "added": Map {},
  3766. "removed": Map {
  3767. "id2" => Delta {
  3768. "deleted": {
  3769. "angle": 0,
  3770. "backgroundColor": "transparent",
  3771. "boundElements": null,
  3772. "customData": undefined,
  3773. "fillStyle": "solid",
  3774. "frameId": null,
  3775. "groupIds": [],
  3776. "height": 10,
  3777. "index": "a2",
  3778. "isDeleted": false,
  3779. "link": null,
  3780. "locked": false,
  3781. "opacity": 100,
  3782. "roughness": 1,
  3783. "roundness": {
  3784. "type": 3,
  3785. },
  3786. "strokeColor": "#1e1e1e",
  3787. "strokeStyle": "solid",
  3788. "strokeWidth": 2,
  3789. "type": "rectangle",
  3790. "width": 10,
  3791. "x": 50,
  3792. "y": 10,
  3793. },
  3794. "inserted": {
  3795. "isDeleted": true,
  3796. },
  3797. },
  3798. },
  3799. "updated": Map {},
  3800. },
  3801. },
  3802. HistoryEntry {
  3803. "appStateChange": AppStateChange {
  3804. "delta": Delta {
  3805. "deleted": {
  3806. "selectedElementIds": {
  3807. "id0": true,
  3808. "id1": true,
  3809. },
  3810. },
  3811. "inserted": {
  3812. "selectedElementIds": {
  3813. "id2": true,
  3814. },
  3815. },
  3816. },
  3817. },
  3818. "elementsChange": ElementsChange {
  3819. "added": Map {},
  3820. "removed": Map {},
  3821. "updated": Map {},
  3822. },
  3823. },
  3824. ],
  3825. }
  3826. `;
  3827. exports[`regression tests > click-drag to select a group > [end of test] number of elements 1`] = `0`;
  3828. exports[`regression tests > click-drag to select a group > [end of test] number of renders 1`] = `17`;
  3829. exports[`regression tests > deleting last but one element in editing group should unselect the group > [end of test] appState 1`] = `
  3830. {
  3831. "activeEmbeddable": null,
  3832. "activeTool": {
  3833. "customType": null,
  3834. "lastActiveTool": null,
  3835. "locked": false,
  3836. "type": "selection",
  3837. },
  3838. "collaborators": Map {},
  3839. "contextMenu": null,
  3840. "currentChartType": "bar",
  3841. "currentHoveredFontFamily": null,
  3842. "currentItemBackgroundColor": "transparent",
  3843. "currentItemEndArrowhead": "arrow",
  3844. "currentItemFillStyle": "solid",
  3845. "currentItemFontFamily": 5,
  3846. "currentItemFontSize": 20,
  3847. "currentItemOpacity": 100,
  3848. "currentItemRoughness": 1,
  3849. "currentItemRoundness": "round",
  3850. "currentItemStartArrowhead": null,
  3851. "currentItemStrokeColor": "#1e1e1e",
  3852. "currentItemStrokeStyle": "solid",
  3853. "currentItemStrokeWidth": 2,
  3854. "currentItemTextAlign": "left",
  3855. "cursorButton": "up",
  3856. "defaultSidebarDockedPreference": false,
  3857. "draggingElement": null,
  3858. "editingElement": null,
  3859. "editingFrame": null,
  3860. "editingGroupId": null,
  3861. "editingLinearElement": null,
  3862. "elementsToHighlight": null,
  3863. "errorMessage": null,
  3864. "exportBackground": true,
  3865. "exportEmbedScene": false,
  3866. "exportScale": 1,
  3867. "exportWithDarkMode": false,
  3868. "fileHandle": null,
  3869. "followedBy": Set {},
  3870. "frameRendering": {
  3871. "clip": true,
  3872. "enabled": true,
  3873. "name": true,
  3874. "outline": true,
  3875. },
  3876. "frameToHighlight": null,
  3877. "gridSize": null,
  3878. "height": 768,
  3879. "isBindingEnabled": true,
  3880. "isLoading": false,
  3881. "isResizing": false,
  3882. "isRotating": false,
  3883. "lastPointerDownWith": "mouse",
  3884. "multiElement": null,
  3885. "name": "Untitled-201933152653",
  3886. "objectsSnapModeEnabled": false,
  3887. "offsetLeft": 0,
  3888. "offsetTop": 0,
  3889. "openDialog": null,
  3890. "openMenu": null,
  3891. "openPopup": null,
  3892. "openSidebar": null,
  3893. "originSnapOffset": null,
  3894. "pasteDialog": {
  3895. "data": null,
  3896. "shown": false,
  3897. },
  3898. "penDetected": false,
  3899. "penMode": false,
  3900. "pendingImageElementId": null,
  3901. "previousSelectedElementIds": {},
  3902. "resizingElement": null,
  3903. "scrollX": 0,
  3904. "scrollY": 0,
  3905. "scrolledOutside": false,
  3906. "selectedElementIds": {
  3907. "id1": true,
  3908. },
  3909. "selectedElementsAreBeingDragged": false,
  3910. "selectedGroupIds": {
  3911. "id4": false,
  3912. },
  3913. "selectedLinearElement": null,
  3914. "selectionElement": null,
  3915. "shouldCacheIgnoreZoom": false,
  3916. "showHyperlinkPopup": false,
  3917. "showWelcomeScreen": true,
  3918. "snapLines": [],
  3919. "startBoundElement": null,
  3920. "stats": {
  3921. "open": false,
  3922. "panels": 3,
  3923. },
  3924. "suggestedBindings": [],
  3925. "theme": "light",
  3926. "toast": null,
  3927. "userToFollow": null,
  3928. "viewBackgroundColor": "#ffffff",
  3929. "viewModeEnabled": false,
  3930. "width": 1024,
  3931. "zenModeEnabled": false,
  3932. "zoom": {
  3933. "value": 1,
  3934. },
  3935. }
  3936. `;
  3937. exports[`regression tests > deleting last but one element in editing group should unselect the group > [end of test] history 1`] = `
  3938. History {
  3939. "onHistoryChangedEmitter": Emitter {
  3940. "subscribers": [],
  3941. },
  3942. "redoStack": [],
  3943. "undoStack": [
  3944. HistoryEntry {
  3945. "appStateChange": AppStateChange {
  3946. "delta": Delta {
  3947. "deleted": {
  3948. "selectedElementIds": {
  3949. "id0": true,
  3950. },
  3951. },
  3952. "inserted": {
  3953. "selectedElementIds": {},
  3954. },
  3955. },
  3956. },
  3957. "elementsChange": ElementsChange {
  3958. "added": Map {},
  3959. "removed": Map {
  3960. "id0" => Delta {
  3961. "deleted": {
  3962. "angle": 0,
  3963. "backgroundColor": "transparent",
  3964. "boundElements": null,
  3965. "customData": undefined,
  3966. "fillStyle": "solid",
  3967. "frameId": null,
  3968. "groupIds": [],
  3969. "height": 10,
  3970. "index": "a0",
  3971. "isDeleted": false,
  3972. "link": null,
  3973. "locked": false,
  3974. "opacity": 100,
  3975. "roughness": 1,
  3976. "roundness": {
  3977. "type": 3,
  3978. },
  3979. "strokeColor": "#1e1e1e",
  3980. "strokeStyle": "solid",
  3981. "strokeWidth": 2,
  3982. "type": "rectangle",
  3983. "width": 10,
  3984. "x": 10,
  3985. "y": 0,
  3986. },
  3987. "inserted": {
  3988. "isDeleted": true,
  3989. },
  3990. },
  3991. },
  3992. "updated": Map {},
  3993. },
  3994. },
  3995. HistoryEntry {
  3996. "appStateChange": AppStateChange {
  3997. "delta": Delta {
  3998. "deleted": {
  3999. "selectedElementIds": {
  4000. "id1": true,
  4001. },
  4002. },
  4003. "inserted": {
  4004. "selectedElementIds": {
  4005. "id0": true,
  4006. },
  4007. },
  4008. },
  4009. },
  4010. "elementsChange": ElementsChange {
  4011. "added": Map {},
  4012. "removed": Map {
  4013. "id1" => Delta {
  4014. "deleted": {
  4015. "angle": 0,
  4016. "backgroundColor": "transparent",
  4017. "boundElements": null,
  4018. "customData": undefined,
  4019. "fillStyle": "solid",
  4020. "frameId": null,
  4021. "groupIds": [],
  4022. "height": 10,
  4023. "index": "a1",
  4024. "isDeleted": false,
  4025. "link": null,
  4026. "locked": false,
  4027. "opacity": 100,
  4028. "roughness": 1,
  4029. "roundness": {
  4030. "type": 3,
  4031. },
  4032. "strokeColor": "#1e1e1e",
  4033. "strokeStyle": "solid",
  4034. "strokeWidth": 2,
  4035. "type": "rectangle",
  4036. "width": 10,
  4037. "x": 50,
  4038. "y": 0,
  4039. },
  4040. "inserted": {
  4041. "isDeleted": true,
  4042. },
  4043. },
  4044. },
  4045. "updated": Map {},
  4046. },
  4047. },
  4048. HistoryEntry {
  4049. "appStateChange": AppStateChange {
  4050. "delta": Delta {
  4051. "deleted": {
  4052. "selectedElementIds": {
  4053. "id0": true,
  4054. },
  4055. },
  4056. "inserted": {
  4057. "selectedElementIds": {
  4058. "id1": true,
  4059. },
  4060. },
  4061. },
  4062. },
  4063. "elementsChange": ElementsChange {
  4064. "added": Map {},
  4065. "removed": Map {},
  4066. "updated": Map {},
  4067. },
  4068. },
  4069. HistoryEntry {
  4070. "appStateChange": AppStateChange {
  4071. "delta": Delta {
  4072. "deleted": {
  4073. "selectedElementIds": {
  4074. "id1": true,
  4075. },
  4076. },
  4077. "inserted": {
  4078. "selectedElementIds": {},
  4079. },
  4080. },
  4081. },
  4082. "elementsChange": ElementsChange {
  4083. "added": Map {},
  4084. "removed": Map {},
  4085. "updated": Map {},
  4086. },
  4087. },
  4088. HistoryEntry {
  4089. "appStateChange": AppStateChange {
  4090. "delta": Delta {
  4091. "deleted": {
  4092. "selectedGroupIds": {
  4093. "id4": true,
  4094. },
  4095. },
  4096. "inserted": {
  4097. "selectedGroupIds": {},
  4098. },
  4099. },
  4100. },
  4101. "elementsChange": ElementsChange {
  4102. "added": Map {},
  4103. "removed": Map {},
  4104. "updated": Map {
  4105. "id0" => Delta {
  4106. "deleted": {
  4107. "groupIds": [
  4108. "id4",
  4109. ],
  4110. },
  4111. "inserted": {
  4112. "groupIds": [],
  4113. },
  4114. },
  4115. "id1" => Delta {
  4116. "deleted": {
  4117. "groupIds": [
  4118. "id4",
  4119. ],
  4120. },
  4121. "inserted": {
  4122. "groupIds": [],
  4123. },
  4124. },
  4125. },
  4126. },
  4127. },
  4128. HistoryEntry {
  4129. "appStateChange": AppStateChange {
  4130. "delta": Delta {
  4131. "deleted": {
  4132. "editingGroupId": "id4",
  4133. "selectedElementIds": {},
  4134. "selectedGroupIds": {},
  4135. },
  4136. "inserted": {
  4137. "editingGroupId": null,
  4138. "selectedElementIds": {
  4139. "id1": true,
  4140. },
  4141. "selectedGroupIds": {
  4142. "id4": true,
  4143. },
  4144. },
  4145. },
  4146. },
  4147. "elementsChange": ElementsChange {
  4148. "added": Map {},
  4149. "removed": Map {},
  4150. "updated": Map {},
  4151. },
  4152. },
  4153. HistoryEntry {
  4154. "appStateChange": AppStateChange {
  4155. "delta": Delta {
  4156. "deleted": {
  4157. "selectedElementIds": {
  4158. "id1": true,
  4159. },
  4160. },
  4161. "inserted": {
  4162. "selectedElementIds": {
  4163. "id0": true,
  4164. },
  4165. },
  4166. },
  4167. },
  4168. "elementsChange": ElementsChange {
  4169. "added": Map {
  4170. "id0" => Delta {
  4171. "deleted": {
  4172. "isDeleted": true,
  4173. },
  4174. "inserted": {
  4175. "isDeleted": false,
  4176. },
  4177. },
  4178. },
  4179. "removed": Map {},
  4180. "updated": Map {},
  4181. },
  4182. },
  4183. HistoryEntry {
  4184. "appStateChange": AppStateChange {
  4185. "delta": Delta {
  4186. "deleted": {
  4187. "editingGroupId": null,
  4188. "selectedElementIds": {},
  4189. },
  4190. "inserted": {
  4191. "editingGroupId": "id4",
  4192. "selectedElementIds": {
  4193. "id1": true,
  4194. },
  4195. },
  4196. },
  4197. },
  4198. "elementsChange": ElementsChange {
  4199. "added": Map {},
  4200. "removed": Map {},
  4201. "updated": Map {},
  4202. },
  4203. },
  4204. HistoryEntry {
  4205. "appStateChange": AppStateChange {
  4206. "delta": Delta {
  4207. "deleted": {
  4208. "selectedElementIds": {
  4209. "id1": true,
  4210. },
  4211. "selectedGroupIds": {
  4212. "id4": false,
  4213. },
  4214. },
  4215. "inserted": {
  4216. "selectedElementIds": {},
  4217. "selectedGroupIds": {},
  4218. },
  4219. },
  4220. },
  4221. "elementsChange": ElementsChange {
  4222. "added": Map {},
  4223. "removed": Map {},
  4224. "updated": Map {},
  4225. },
  4226. },
  4227. ],
  4228. }
  4229. `;
  4230. exports[`regression tests > deleting last but one element in editing group should unselect the group > [end of test] number of elements 1`] = `0`;
  4231. exports[`regression tests > deleting last but one element in editing group should unselect the group > [end of test] number of renders 1`] = `19`;
  4232. exports[`regression tests > deselects group of selected elements on pointer down when pointer doesn't hit any element > [end of test] appState 1`] = `
  4233. {
  4234. "activeEmbeddable": null,
  4235. "activeTool": {
  4236. "customType": null,
  4237. "lastActiveTool": null,
  4238. "locked": false,
  4239. "type": "selection",
  4240. },
  4241. "collaborators": Map {},
  4242. "contextMenu": null,
  4243. "currentChartType": "bar",
  4244. "currentHoveredFontFamily": null,
  4245. "currentItemBackgroundColor": "transparent",
  4246. "currentItemEndArrowhead": "arrow",
  4247. "currentItemFillStyle": "solid",
  4248. "currentItemFontFamily": 5,
  4249. "currentItemFontSize": 20,
  4250. "currentItemOpacity": 100,
  4251. "currentItemRoughness": 1,
  4252. "currentItemRoundness": "round",
  4253. "currentItemStartArrowhead": null,
  4254. "currentItemStrokeColor": "#1e1e1e",
  4255. "currentItemStrokeStyle": "solid",
  4256. "currentItemStrokeWidth": 2,
  4257. "currentItemTextAlign": "left",
  4258. "cursorButton": "down",
  4259. "defaultSidebarDockedPreference": false,
  4260. "draggingElement": {
  4261. "angle": 0,
  4262. "backgroundColor": "transparent",
  4263. "boundElements": null,
  4264. "customData": undefined,
  4265. "fillStyle": "solid",
  4266. "frameId": null,
  4267. "groupIds": [],
  4268. "height": 0,
  4269. "id": "id3",
  4270. "index": null,
  4271. "isDeleted": false,
  4272. "link": null,
  4273. "locked": false,
  4274. "opacity": 100,
  4275. "roughness": 1,
  4276. "roundness": {
  4277. "type": 2,
  4278. },
  4279. "seed": 1505387817,
  4280. "strokeColor": "#1e1e1e",
  4281. "strokeStyle": "solid",
  4282. "strokeWidth": 2,
  4283. "type": "selection",
  4284. "updated": 1,
  4285. "version": 1,
  4286. "versionNonce": 0,
  4287. "width": 0,
  4288. "x": 500,
  4289. "y": 500,
  4290. },
  4291. "editingElement": null,
  4292. "editingFrame": null,
  4293. "editingGroupId": null,
  4294. "editingLinearElement": null,
  4295. "elementsToHighlight": null,
  4296. "errorMessage": null,
  4297. "exportBackground": true,
  4298. "exportEmbedScene": false,
  4299. "exportScale": 1,
  4300. "exportWithDarkMode": false,
  4301. "fileHandle": null,
  4302. "followedBy": Set {},
  4303. "frameRendering": {
  4304. "clip": true,
  4305. "enabled": true,
  4306. "name": true,
  4307. "outline": true,
  4308. },
  4309. "frameToHighlight": null,
  4310. "gridSize": null,
  4311. "height": 768,
  4312. "isBindingEnabled": true,
  4313. "isLoading": false,
  4314. "isResizing": false,
  4315. "isRotating": false,
  4316. "lastPointerDownWith": "mouse",
  4317. "multiElement": null,
  4318. "name": "Untitled-201933152653",
  4319. "objectsSnapModeEnabled": false,
  4320. "offsetLeft": 0,
  4321. "offsetTop": 0,
  4322. "openDialog": null,
  4323. "openMenu": null,
  4324. "openPopup": null,
  4325. "openSidebar": null,
  4326. "originSnapOffset": null,
  4327. "pasteDialog": {
  4328. "data": null,
  4329. "shown": false,
  4330. },
  4331. "penDetected": false,
  4332. "penMode": false,
  4333. "pendingImageElementId": null,
  4334. "previousSelectedElementIds": {
  4335. "id0": true,
  4336. "id1": true,
  4337. },
  4338. "resizingElement": null,
  4339. "scrollX": 0,
  4340. "scrollY": 0,
  4341. "scrolledOutside": false,
  4342. "selectedElementIds": {},
  4343. "selectedElementsAreBeingDragged": false,
  4344. "selectedGroupIds": {},
  4345. "selectedLinearElement": null,
  4346. "selectionElement": {
  4347. "angle": 0,
  4348. "backgroundColor": "transparent",
  4349. "boundElements": null,
  4350. "customData": undefined,
  4351. "fillStyle": "solid",
  4352. "frameId": null,
  4353. "groupIds": [],
  4354. "height": 0,
  4355. "id": "id3",
  4356. "index": null,
  4357. "isDeleted": false,
  4358. "link": null,
  4359. "locked": false,
  4360. "opacity": 100,
  4361. "roughness": 1,
  4362. "roundness": {
  4363. "type": 2,
  4364. },
  4365. "seed": 1505387817,
  4366. "strokeColor": "#1e1e1e",
  4367. "strokeStyle": "solid",
  4368. "strokeWidth": 2,
  4369. "type": "selection",
  4370. "updated": 1,
  4371. "version": 1,
  4372. "versionNonce": 0,
  4373. "width": 0,
  4374. "x": 500,
  4375. "y": 500,
  4376. },
  4377. "shouldCacheIgnoreZoom": false,
  4378. "showHyperlinkPopup": false,
  4379. "showWelcomeScreen": true,
  4380. "snapLines": [],
  4381. "startBoundElement": null,
  4382. "stats": {
  4383. "open": false,
  4384. "panels": 3,
  4385. },
  4386. "suggestedBindings": [],
  4387. "theme": "light",
  4388. "toast": null,
  4389. "userToFollow": null,
  4390. "viewBackgroundColor": "#ffffff",
  4391. "viewModeEnabled": false,
  4392. "width": 1024,
  4393. "zenModeEnabled": false,
  4394. "zoom": {
  4395. "value": 1,
  4396. },
  4397. }
  4398. `;
  4399. exports[`regression tests > deselects group of selected elements on pointer down when pointer doesn't hit any element > [end of test] history 1`] = `
  4400. History {
  4401. "onHistoryChangedEmitter": Emitter {
  4402. "subscribers": [],
  4403. },
  4404. "redoStack": [],
  4405. "undoStack": [
  4406. HistoryEntry {
  4407. "appStateChange": AppStateChange {
  4408. "delta": Delta {
  4409. "deleted": {
  4410. "selectedElementIds": {
  4411. "id0": true,
  4412. },
  4413. },
  4414. "inserted": {
  4415. "selectedElementIds": {},
  4416. },
  4417. },
  4418. },
  4419. "elementsChange": ElementsChange {
  4420. "added": Map {},
  4421. "removed": Map {
  4422. "id0" => Delta {
  4423. "deleted": {
  4424. "angle": 0,
  4425. "backgroundColor": "transparent",
  4426. "boundElements": null,
  4427. "customData": undefined,
  4428. "fillStyle": "solid",
  4429. "frameId": null,
  4430. "groupIds": [],
  4431. "height": 10,
  4432. "index": "a0",
  4433. "isDeleted": false,
  4434. "link": null,
  4435. "locked": false,
  4436. "opacity": 100,
  4437. "roughness": 1,
  4438. "roundness": {
  4439. "type": 3,
  4440. },
  4441. "strokeColor": "#1e1e1e",
  4442. "strokeStyle": "solid",
  4443. "strokeWidth": 2,
  4444. "type": "rectangle",
  4445. "width": 10,
  4446. "x": 0,
  4447. "y": 0,
  4448. },
  4449. "inserted": {
  4450. "isDeleted": true,
  4451. },
  4452. },
  4453. },
  4454. "updated": Map {},
  4455. },
  4456. },
  4457. HistoryEntry {
  4458. "appStateChange": AppStateChange {
  4459. "delta": Delta {
  4460. "deleted": {
  4461. "selectedElementIds": {
  4462. "id1": true,
  4463. },
  4464. },
  4465. "inserted": {
  4466. "selectedElementIds": {
  4467. "id0": true,
  4468. },
  4469. },
  4470. },
  4471. },
  4472. "elementsChange": ElementsChange {
  4473. "added": Map {},
  4474. "removed": Map {
  4475. "id1" => Delta {
  4476. "deleted": {
  4477. "angle": 0,
  4478. "backgroundColor": "transparent",
  4479. "boundElements": null,
  4480. "customData": undefined,
  4481. "fillStyle": "solid",
  4482. "frameId": null,
  4483. "groupIds": [],
  4484. "height": 10,
  4485. "index": "a1",
  4486. "isDeleted": false,
  4487. "link": null,
  4488. "locked": false,
  4489. "opacity": 100,
  4490. "roughness": 1,
  4491. "roundness": {
  4492. "type": 2,
  4493. },
  4494. "strokeColor": "#1e1e1e",
  4495. "strokeStyle": "solid",
  4496. "strokeWidth": 2,
  4497. "type": "ellipse",
  4498. "width": 10,
  4499. "x": 110,
  4500. "y": 110,
  4501. },
  4502. "inserted": {
  4503. "isDeleted": true,
  4504. },
  4505. },
  4506. },
  4507. "updated": Map {},
  4508. },
  4509. },
  4510. HistoryEntry {
  4511. "appStateChange": AppStateChange {
  4512. "delta": Delta {
  4513. "deleted": {
  4514. "selectedElementIds": {
  4515. "id0": true,
  4516. },
  4517. },
  4518. "inserted": {
  4519. "selectedElementIds": {},
  4520. },
  4521. },
  4522. },
  4523. "elementsChange": ElementsChange {
  4524. "added": Map {},
  4525. "removed": Map {},
  4526. "updated": Map {},
  4527. },
  4528. },
  4529. ],
  4530. }
  4531. `;
  4532. exports[`regression tests > deselects group of selected elements on pointer down when pointer doesn't hit any element > [end of test] number of elements 1`] = `0`;
  4533. exports[`regression tests > deselects group of selected elements on pointer down when pointer doesn't hit any element > [end of test] number of renders 1`] = `13`;
  4534. exports[`regression tests > deselects group of selected elements on pointer up when pointer hits common bounding box without hitting any element > [end of test] appState 1`] = `
  4535. {
  4536. "activeEmbeddable": null,
  4537. "activeTool": {
  4538. "customType": null,
  4539. "lastActiveTool": null,
  4540. "locked": false,
  4541. "type": "selection",
  4542. },
  4543. "collaborators": Map {},
  4544. "contextMenu": null,
  4545. "currentChartType": "bar",
  4546. "currentHoveredFontFamily": null,
  4547. "currentItemBackgroundColor": "transparent",
  4548. "currentItemEndArrowhead": "arrow",
  4549. "currentItemFillStyle": "solid",
  4550. "currentItemFontFamily": 5,
  4551. "currentItemFontSize": 20,
  4552. "currentItemOpacity": 100,
  4553. "currentItemRoughness": 1,
  4554. "currentItemRoundness": "round",
  4555. "currentItemStartArrowhead": null,
  4556. "currentItemStrokeColor": "#1e1e1e",
  4557. "currentItemStrokeStyle": "solid",
  4558. "currentItemStrokeWidth": 2,
  4559. "currentItemTextAlign": "left",
  4560. "cursorButton": "up",
  4561. "defaultSidebarDockedPreference": false,
  4562. "draggingElement": {
  4563. "angle": 0,
  4564. "backgroundColor": "transparent",
  4565. "boundElements": null,
  4566. "customData": undefined,
  4567. "fillStyle": "solid",
  4568. "frameId": null,
  4569. "groupIds": [],
  4570. "height": 0,
  4571. "id": "id3",
  4572. "index": null,
  4573. "isDeleted": false,
  4574. "link": null,
  4575. "locked": false,
  4576. "opacity": 100,
  4577. "roughness": 1,
  4578. "roundness": {
  4579. "type": 2,
  4580. },
  4581. "seed": 1505387817,
  4582. "strokeColor": "#1e1e1e",
  4583. "strokeStyle": "solid",
  4584. "strokeWidth": 2,
  4585. "type": "selection",
  4586. "updated": 1,
  4587. "version": 1,
  4588. "versionNonce": 0,
  4589. "width": 0,
  4590. "x": 50,
  4591. "y": 50,
  4592. },
  4593. "editingElement": null,
  4594. "editingFrame": null,
  4595. "editingGroupId": null,
  4596. "editingLinearElement": null,
  4597. "elementsToHighlight": null,
  4598. "errorMessage": null,
  4599. "exportBackground": true,
  4600. "exportEmbedScene": false,
  4601. "exportScale": 1,
  4602. "exportWithDarkMode": false,
  4603. "fileHandle": null,
  4604. "followedBy": Set {},
  4605. "frameRendering": {
  4606. "clip": true,
  4607. "enabled": true,
  4608. "name": true,
  4609. "outline": true,
  4610. },
  4611. "frameToHighlight": null,
  4612. "gridSize": null,
  4613. "height": 768,
  4614. "isBindingEnabled": true,
  4615. "isLoading": false,
  4616. "isResizing": false,
  4617. "isRotating": false,
  4618. "lastPointerDownWith": "mouse",
  4619. "multiElement": null,
  4620. "name": "Untitled-201933152653",
  4621. "objectsSnapModeEnabled": false,
  4622. "offsetLeft": 0,
  4623. "offsetTop": 0,
  4624. "openDialog": null,
  4625. "openMenu": null,
  4626. "openPopup": null,
  4627. "openSidebar": null,
  4628. "originSnapOffset": null,
  4629. "pasteDialog": {
  4630. "data": null,
  4631. "shown": false,
  4632. },
  4633. "penDetected": false,
  4634. "penMode": false,
  4635. "pendingImageElementId": null,
  4636. "previousSelectedElementIds": {
  4637. "id0": true,
  4638. "id1": true,
  4639. },
  4640. "resizingElement": null,
  4641. "scrollX": 0,
  4642. "scrollY": 0,
  4643. "scrolledOutside": false,
  4644. "selectedElementIds": {},
  4645. "selectedElementsAreBeingDragged": false,
  4646. "selectedGroupIds": {},
  4647. "selectedLinearElement": null,
  4648. "selectionElement": null,
  4649. "shouldCacheIgnoreZoom": false,
  4650. "showHyperlinkPopup": false,
  4651. "showWelcomeScreen": true,
  4652. "snapLines": [],
  4653. "startBoundElement": null,
  4654. "stats": {
  4655. "open": false,
  4656. "panels": 3,
  4657. },
  4658. "suggestedBindings": [],
  4659. "theme": "light",
  4660. "toast": null,
  4661. "userToFollow": null,
  4662. "viewBackgroundColor": "#ffffff",
  4663. "viewModeEnabled": false,
  4664. "width": 1024,
  4665. "zenModeEnabled": false,
  4666. "zoom": {
  4667. "value": 1,
  4668. },
  4669. }
  4670. `;
  4671. exports[`regression tests > deselects group of selected elements on pointer up when pointer hits common bounding box without hitting any element > [end of test] history 1`] = `
  4672. History {
  4673. "onHistoryChangedEmitter": Emitter {
  4674. "subscribers": [],
  4675. },
  4676. "redoStack": [],
  4677. "undoStack": [
  4678. HistoryEntry {
  4679. "appStateChange": AppStateChange {
  4680. "delta": Delta {
  4681. "deleted": {
  4682. "selectedElementIds": {
  4683. "id0": true,
  4684. },
  4685. },
  4686. "inserted": {
  4687. "selectedElementIds": {},
  4688. },
  4689. },
  4690. },
  4691. "elementsChange": ElementsChange {
  4692. "added": Map {},
  4693. "removed": Map {
  4694. "id0" => Delta {
  4695. "deleted": {
  4696. "angle": 0,
  4697. "backgroundColor": "transparent",
  4698. "boundElements": null,
  4699. "customData": undefined,
  4700. "fillStyle": "solid",
  4701. "frameId": null,
  4702. "groupIds": [],
  4703. "height": 10,
  4704. "index": "a0",
  4705. "isDeleted": false,
  4706. "link": null,
  4707. "locked": false,
  4708. "opacity": 100,
  4709. "roughness": 1,
  4710. "roundness": {
  4711. "type": 3,
  4712. },
  4713. "strokeColor": "#1e1e1e",
  4714. "strokeStyle": "solid",
  4715. "strokeWidth": 2,
  4716. "type": "rectangle",
  4717. "width": 10,
  4718. "x": 0,
  4719. "y": 0,
  4720. },
  4721. "inserted": {
  4722. "isDeleted": true,
  4723. },
  4724. },
  4725. },
  4726. "updated": Map {},
  4727. },
  4728. },
  4729. HistoryEntry {
  4730. "appStateChange": AppStateChange {
  4731. "delta": Delta {
  4732. "deleted": {
  4733. "selectedElementIds": {
  4734. "id1": true,
  4735. },
  4736. },
  4737. "inserted": {
  4738. "selectedElementIds": {
  4739. "id0": true,
  4740. },
  4741. },
  4742. },
  4743. },
  4744. "elementsChange": ElementsChange {
  4745. "added": Map {},
  4746. "removed": Map {
  4747. "id1" => Delta {
  4748. "deleted": {
  4749. "angle": 0,
  4750. "backgroundColor": "transparent",
  4751. "boundElements": null,
  4752. "customData": undefined,
  4753. "fillStyle": "solid",
  4754. "frameId": null,
  4755. "groupIds": [],
  4756. "height": 10,
  4757. "index": "a1",
  4758. "isDeleted": false,
  4759. "link": null,
  4760. "locked": false,
  4761. "opacity": 100,
  4762. "roughness": 1,
  4763. "roundness": {
  4764. "type": 2,
  4765. },
  4766. "strokeColor": "#1e1e1e",
  4767. "strokeStyle": "solid",
  4768. "strokeWidth": 2,
  4769. "type": "ellipse",
  4770. "width": 10,
  4771. "x": 110,
  4772. "y": 110,
  4773. },
  4774. "inserted": {
  4775. "isDeleted": true,
  4776. },
  4777. },
  4778. },
  4779. "updated": Map {},
  4780. },
  4781. },
  4782. HistoryEntry {
  4783. "appStateChange": AppStateChange {
  4784. "delta": Delta {
  4785. "deleted": {
  4786. "selectedElementIds": {
  4787. "id0": true,
  4788. },
  4789. },
  4790. "inserted": {
  4791. "selectedElementIds": {},
  4792. },
  4793. },
  4794. },
  4795. "elementsChange": ElementsChange {
  4796. "added": Map {},
  4797. "removed": Map {},
  4798. "updated": Map {},
  4799. },
  4800. },
  4801. ],
  4802. }
  4803. `;
  4804. exports[`regression tests > deselects group of selected elements on pointer up when pointer hits common bounding box without hitting any element > [end of test] number of elements 1`] = `0`;
  4805. exports[`regression tests > deselects group of selected elements on pointer up when pointer hits common bounding box without hitting any element > [end of test] number of renders 1`] = `13`;
  4806. exports[`regression tests > deselects selected element on pointer down when pointer doesn't hit any element > [end of test] appState 1`] = `
  4807. {
  4808. "activeEmbeddable": null,
  4809. "activeTool": {
  4810. "customType": null,
  4811. "lastActiveTool": null,
  4812. "locked": false,
  4813. "type": "selection",
  4814. },
  4815. "collaborators": Map {},
  4816. "contextMenu": null,
  4817. "currentChartType": "bar",
  4818. "currentHoveredFontFamily": null,
  4819. "currentItemBackgroundColor": "transparent",
  4820. "currentItemEndArrowhead": "arrow",
  4821. "currentItemFillStyle": "solid",
  4822. "currentItemFontFamily": 5,
  4823. "currentItemFontSize": 20,
  4824. "currentItemOpacity": 100,
  4825. "currentItemRoughness": 1,
  4826. "currentItemRoundness": "round",
  4827. "currentItemStartArrowhead": null,
  4828. "currentItemStrokeColor": "#1e1e1e",
  4829. "currentItemStrokeStyle": "solid",
  4830. "currentItemStrokeWidth": 2,
  4831. "currentItemTextAlign": "left",
  4832. "cursorButton": "down",
  4833. "defaultSidebarDockedPreference": false,
  4834. "draggingElement": {
  4835. "angle": 0,
  4836. "backgroundColor": "transparent",
  4837. "boundElements": null,
  4838. "customData": undefined,
  4839. "fillStyle": "solid",
  4840. "frameId": null,
  4841. "groupIds": [],
  4842. "height": 0,
  4843. "id": "id1",
  4844. "index": null,
  4845. "isDeleted": false,
  4846. "link": null,
  4847. "locked": false,
  4848. "opacity": 100,
  4849. "roughness": 1,
  4850. "roundness": {
  4851. "type": 2,
  4852. },
  4853. "seed": 1150084233,
  4854. "strokeColor": "#1e1e1e",
  4855. "strokeStyle": "solid",
  4856. "strokeWidth": 2,
  4857. "type": "selection",
  4858. "updated": 1,
  4859. "version": 1,
  4860. "versionNonce": 0,
  4861. "width": 0,
  4862. "x": 110,
  4863. "y": 110,
  4864. },
  4865. "editingElement": null,
  4866. "editingFrame": null,
  4867. "editingGroupId": null,
  4868. "editingLinearElement": null,
  4869. "elementsToHighlight": null,
  4870. "errorMessage": null,
  4871. "exportBackground": true,
  4872. "exportEmbedScene": false,
  4873. "exportScale": 1,
  4874. "exportWithDarkMode": false,
  4875. "fileHandle": null,
  4876. "followedBy": Set {},
  4877. "frameRendering": {
  4878. "clip": true,
  4879. "enabled": true,
  4880. "name": true,
  4881. "outline": true,
  4882. },
  4883. "frameToHighlight": null,
  4884. "gridSize": null,
  4885. "height": 768,
  4886. "isBindingEnabled": true,
  4887. "isLoading": false,
  4888. "isResizing": false,
  4889. "isRotating": false,
  4890. "lastPointerDownWith": "mouse",
  4891. "multiElement": null,
  4892. "name": "Untitled-201933152653",
  4893. "objectsSnapModeEnabled": false,
  4894. "offsetLeft": 0,
  4895. "offsetTop": 0,
  4896. "openDialog": null,
  4897. "openMenu": null,
  4898. "openPopup": null,
  4899. "openSidebar": null,
  4900. "originSnapOffset": null,
  4901. "pasteDialog": {
  4902. "data": null,
  4903. "shown": false,
  4904. },
  4905. "penDetected": false,
  4906. "penMode": false,
  4907. "pendingImageElementId": null,
  4908. "previousSelectedElementIds": {
  4909. "id0": true,
  4910. },
  4911. "resizingElement": null,
  4912. "scrollX": 0,
  4913. "scrollY": 0,
  4914. "scrolledOutside": false,
  4915. "selectedElementIds": {},
  4916. "selectedElementsAreBeingDragged": false,
  4917. "selectedGroupIds": {},
  4918. "selectedLinearElement": null,
  4919. "selectionElement": {
  4920. "angle": 0,
  4921. "backgroundColor": "transparent",
  4922. "boundElements": null,
  4923. "customData": undefined,
  4924. "fillStyle": "solid",
  4925. "frameId": null,
  4926. "groupIds": [],
  4927. "height": 0,
  4928. "id": "id1",
  4929. "index": null,
  4930. "isDeleted": false,
  4931. "link": null,
  4932. "locked": false,
  4933. "opacity": 100,
  4934. "roughness": 1,
  4935. "roundness": {
  4936. "type": 2,
  4937. },
  4938. "seed": 1150084233,
  4939. "strokeColor": "#1e1e1e",
  4940. "strokeStyle": "solid",
  4941. "strokeWidth": 2,
  4942. "type": "selection",
  4943. "updated": 1,
  4944. "version": 1,
  4945. "versionNonce": 0,
  4946. "width": 0,
  4947. "x": 110,
  4948. "y": 110,
  4949. },
  4950. "shouldCacheIgnoreZoom": false,
  4951. "showHyperlinkPopup": false,
  4952. "showWelcomeScreen": true,
  4953. "snapLines": [],
  4954. "startBoundElement": null,
  4955. "stats": {
  4956. "open": false,
  4957. "panels": 3,
  4958. },
  4959. "suggestedBindings": [],
  4960. "theme": "light",
  4961. "toast": null,
  4962. "userToFollow": null,
  4963. "viewBackgroundColor": "#ffffff",
  4964. "viewModeEnabled": false,
  4965. "width": 1024,
  4966. "zenModeEnabled": false,
  4967. "zoom": {
  4968. "value": 1,
  4969. },
  4970. }
  4971. `;
  4972. exports[`regression tests > deselects selected element on pointer down when pointer doesn't hit any element > [end of test] history 1`] = `
  4973. History {
  4974. "onHistoryChangedEmitter": Emitter {
  4975. "subscribers": [],
  4976. },
  4977. "redoStack": [],
  4978. "undoStack": [
  4979. HistoryEntry {
  4980. "appStateChange": AppStateChange {
  4981. "delta": Delta {
  4982. "deleted": {
  4983. "selectedElementIds": {
  4984. "id0": true,
  4985. },
  4986. },
  4987. "inserted": {
  4988. "selectedElementIds": {},
  4989. },
  4990. },
  4991. },
  4992. "elementsChange": ElementsChange {
  4993. "added": Map {},
  4994. "removed": Map {
  4995. "id0" => Delta {
  4996. "deleted": {
  4997. "angle": 0,
  4998. "backgroundColor": "transparent",
  4999. "boundElements": null,
  5000. "customData": undefined,
  5001. "fillStyle": "solid",
  5002. "frameId": null,
  5003. "groupIds": [],
  5004. "height": 10,
  5005. "index": "a0",
  5006. "isDeleted": false,
  5007. "link": null,
  5008. "locked": false,
  5009. "opacity": 100,
  5010. "roughness": 1,
  5011. "roundness": {
  5012. "type": 3,
  5013. },
  5014. "strokeColor": "#1e1e1e",
  5015. "strokeStyle": "solid",
  5016. "strokeWidth": 2,
  5017. "type": "rectangle",
  5018. "width": 10,
  5019. "x": 0,
  5020. "y": 0,
  5021. },
  5022. "inserted": {
  5023. "isDeleted": true,
  5024. },
  5025. },
  5026. },
  5027. "updated": Map {},
  5028. },
  5029. },
  5030. ],
  5031. }
  5032. `;
  5033. exports[`regression tests > deselects selected element on pointer down when pointer doesn't hit any element > [end of test] number of elements 1`] = `0`;
  5034. exports[`regression tests > deselects selected element on pointer down when pointer doesn't hit any element > [end of test] number of renders 1`] = `8`;
  5035. exports[`regression tests > deselects selected element, on pointer up, when click hits element bounding box but doesn't hit the element > [end of test] appState 1`] = `
  5036. {
  5037. "activeEmbeddable": null,
  5038. "activeTool": {
  5039. "customType": null,
  5040. "lastActiveTool": null,
  5041. "locked": false,
  5042. "type": "selection",
  5043. },
  5044. "collaborators": Map {},
  5045. "contextMenu": null,
  5046. "currentChartType": "bar",
  5047. "currentHoveredFontFamily": null,
  5048. "currentItemBackgroundColor": "transparent",
  5049. "currentItemEndArrowhead": "arrow",
  5050. "currentItemFillStyle": "solid",
  5051. "currentItemFontFamily": 5,
  5052. "currentItemFontSize": 20,
  5053. "currentItemOpacity": 100,
  5054. "currentItemRoughness": 1,
  5055. "currentItemRoundness": "round",
  5056. "currentItemStartArrowhead": null,
  5057. "currentItemStrokeColor": "#1e1e1e",
  5058. "currentItemStrokeStyle": "solid",
  5059. "currentItemStrokeWidth": 2,
  5060. "currentItemTextAlign": "left",
  5061. "cursorButton": "up",
  5062. "defaultSidebarDockedPreference": false,
  5063. "draggingElement": null,
  5064. "editingElement": null,
  5065. "editingFrame": null,
  5066. "editingGroupId": null,
  5067. "editingLinearElement": null,
  5068. "elementsToHighlight": null,
  5069. "errorMessage": null,
  5070. "exportBackground": true,
  5071. "exportEmbedScene": false,
  5072. "exportScale": 1,
  5073. "exportWithDarkMode": false,
  5074. "fileHandle": null,
  5075. "followedBy": Set {},
  5076. "frameRendering": {
  5077. "clip": true,
  5078. "enabled": true,
  5079. "name": true,
  5080. "outline": true,
  5081. },
  5082. "frameToHighlight": null,
  5083. "gridSize": null,
  5084. "height": 768,
  5085. "isBindingEnabled": true,
  5086. "isLoading": false,
  5087. "isResizing": false,
  5088. "isRotating": false,
  5089. "lastPointerDownWith": "mouse",
  5090. "multiElement": null,
  5091. "name": "Untitled-201933152653",
  5092. "objectsSnapModeEnabled": false,
  5093. "offsetLeft": 0,
  5094. "offsetTop": 0,
  5095. "openDialog": null,
  5096. "openMenu": null,
  5097. "openPopup": null,
  5098. "openSidebar": null,
  5099. "originSnapOffset": null,
  5100. "pasteDialog": {
  5101. "data": null,
  5102. "shown": false,
  5103. },
  5104. "penDetected": false,
  5105. "penMode": false,
  5106. "pendingImageElementId": null,
  5107. "previousSelectedElementIds": {
  5108. "id0": true,
  5109. },
  5110. "resizingElement": null,
  5111. "scrollX": 0,
  5112. "scrollY": 0,
  5113. "scrolledOutside": false,
  5114. "selectedElementIds": {},
  5115. "selectedElementsAreBeingDragged": false,
  5116. "selectedGroupIds": {},
  5117. "selectedLinearElement": null,
  5118. "selectionElement": null,
  5119. "shouldCacheIgnoreZoom": false,
  5120. "showHyperlinkPopup": false,
  5121. "showWelcomeScreen": true,
  5122. "snapLines": [],
  5123. "startBoundElement": null,
  5124. "stats": {
  5125. "open": false,
  5126. "panels": 3,
  5127. },
  5128. "suggestedBindings": [],
  5129. "theme": "light",
  5130. "toast": null,
  5131. "userToFollow": null,
  5132. "viewBackgroundColor": "#ffffff",
  5133. "viewModeEnabled": false,
  5134. "width": 1024,
  5135. "zenModeEnabled": false,
  5136. "zoom": {
  5137. "value": 1,
  5138. },
  5139. }
  5140. `;
  5141. exports[`regression tests > deselects selected element, on pointer up, when click hits element bounding box but doesn't hit the element > [end of test] history 1`] = `
  5142. History {
  5143. "onHistoryChangedEmitter": Emitter {
  5144. "subscribers": [],
  5145. },
  5146. "redoStack": [],
  5147. "undoStack": [
  5148. HistoryEntry {
  5149. "appStateChange": AppStateChange {
  5150. "delta": Delta {
  5151. "deleted": {
  5152. "selectedElementIds": {
  5153. "id0": true,
  5154. },
  5155. },
  5156. "inserted": {
  5157. "selectedElementIds": {},
  5158. },
  5159. },
  5160. },
  5161. "elementsChange": ElementsChange {
  5162. "added": Map {},
  5163. "removed": Map {
  5164. "id0" => Delta {
  5165. "deleted": {
  5166. "angle": 0,
  5167. "backgroundColor": "transparent",
  5168. "boundElements": null,
  5169. "customData": undefined,
  5170. "fillStyle": "solid",
  5171. "frameId": null,
  5172. "groupIds": [],
  5173. "height": 100,
  5174. "index": "a0",
  5175. "isDeleted": false,
  5176. "link": null,
  5177. "locked": false,
  5178. "opacity": 100,
  5179. "roughness": 1,
  5180. "roundness": {
  5181. "type": 2,
  5182. },
  5183. "strokeColor": "#1e1e1e",
  5184. "strokeStyle": "solid",
  5185. "strokeWidth": 2,
  5186. "type": "ellipse",
  5187. "width": 100,
  5188. "x": 0,
  5189. "y": 0,
  5190. },
  5191. "inserted": {
  5192. "isDeleted": true,
  5193. },
  5194. },
  5195. },
  5196. "updated": Map {},
  5197. },
  5198. },
  5199. HistoryEntry {
  5200. "appStateChange": AppStateChange {
  5201. "delta": Delta {
  5202. "deleted": {
  5203. "selectedElementIds": {},
  5204. },
  5205. "inserted": {
  5206. "selectedElementIds": {
  5207. "id0": true,
  5208. },
  5209. },
  5210. },
  5211. },
  5212. "elementsChange": ElementsChange {
  5213. "added": Map {},
  5214. "removed": Map {},
  5215. "updated": Map {},
  5216. },
  5217. },
  5218. ],
  5219. }
  5220. `;
  5221. exports[`regression tests > deselects selected element, on pointer up, when click hits element bounding box but doesn't hit the element > [end of test] number of elements 1`] = `0`;
  5222. exports[`regression tests > deselects selected element, on pointer up, when click hits element bounding box but doesn't hit the element > [end of test] number of renders 1`] = `8`;
  5223. exports[`regression tests > double click to edit a group > [end of test] appState 1`] = `
  5224. {
  5225. "activeEmbeddable": null,
  5226. "activeTool": {
  5227. "customType": null,
  5228. "lastActiveTool": null,
  5229. "locked": false,
  5230. "type": "selection",
  5231. },
  5232. "collaborators": Map {},
  5233. "contextMenu": null,
  5234. "currentChartType": "bar",
  5235. "currentHoveredFontFamily": null,
  5236. "currentItemBackgroundColor": "transparent",
  5237. "currentItemEndArrowhead": "arrow",
  5238. "currentItemFillStyle": "solid",
  5239. "currentItemFontFamily": 5,
  5240. "currentItemFontSize": 20,
  5241. "currentItemOpacity": 100,
  5242. "currentItemRoughness": 1,
  5243. "currentItemRoundness": "round",
  5244. "currentItemStartArrowhead": null,
  5245. "currentItemStrokeColor": "#1e1e1e",
  5246. "currentItemStrokeStyle": "solid",
  5247. "currentItemStrokeWidth": 2,
  5248. "currentItemTextAlign": "left",
  5249. "cursorButton": "up",
  5250. "defaultSidebarDockedPreference": false,
  5251. "draggingElement": null,
  5252. "editingElement": null,
  5253. "editingFrame": null,
  5254. "editingGroupId": "id3",
  5255. "editingLinearElement": null,
  5256. "elementsToHighlight": null,
  5257. "errorMessage": null,
  5258. "exportBackground": true,
  5259. "exportEmbedScene": false,
  5260. "exportScale": 1,
  5261. "exportWithDarkMode": false,
  5262. "fileHandle": null,
  5263. "followedBy": Set {},
  5264. "frameRendering": {
  5265. "clip": true,
  5266. "enabled": true,
  5267. "name": true,
  5268. "outline": true,
  5269. },
  5270. "frameToHighlight": null,
  5271. "gridSize": null,
  5272. "height": 768,
  5273. "isBindingEnabled": true,
  5274. "isLoading": false,
  5275. "isResizing": false,
  5276. "isRotating": false,
  5277. "lastPointerDownWith": "mouse",
  5278. "multiElement": null,
  5279. "name": "Untitled-201933152653",
  5280. "objectsSnapModeEnabled": false,
  5281. "offsetLeft": 0,
  5282. "offsetTop": 0,
  5283. "openDialog": null,
  5284. "openMenu": null,
  5285. "openPopup": null,
  5286. "openSidebar": null,
  5287. "originSnapOffset": null,
  5288. "pasteDialog": {
  5289. "data": null,
  5290. "shown": false,
  5291. },
  5292. "penDetected": false,
  5293. "penMode": false,
  5294. "pendingImageElementId": null,
  5295. "previousSelectedElementIds": {},
  5296. "resizingElement": null,
  5297. "scrollX": 0,
  5298. "scrollY": 0,
  5299. "scrolledOutside": false,
  5300. "selectedElementIds": {
  5301. "id2": true,
  5302. },
  5303. "selectedElementsAreBeingDragged": false,
  5304. "selectedGroupIds": {},
  5305. "selectedLinearElement": null,
  5306. "selectionElement": null,
  5307. "shouldCacheIgnoreZoom": false,
  5308. "showHyperlinkPopup": false,
  5309. "showWelcomeScreen": true,
  5310. "snapLines": [],
  5311. "startBoundElement": null,
  5312. "stats": {
  5313. "open": false,
  5314. "panels": 3,
  5315. },
  5316. "suggestedBindings": [],
  5317. "theme": "light",
  5318. "toast": null,
  5319. "userToFollow": null,
  5320. "viewBackgroundColor": "#ffffff",
  5321. "viewModeEnabled": false,
  5322. "width": 1024,
  5323. "zenModeEnabled": false,
  5324. "zoom": {
  5325. "value": 1,
  5326. },
  5327. }
  5328. `;
  5329. exports[`regression tests > double click to edit a group > [end of test] history 1`] = `
  5330. History {
  5331. "onHistoryChangedEmitter": Emitter {
  5332. "subscribers": [],
  5333. },
  5334. "redoStack": [],
  5335. "undoStack": [
  5336. HistoryEntry {
  5337. "appStateChange": AppStateChange {
  5338. "delta": Delta {
  5339. "deleted": {
  5340. "selectedElementIds": {
  5341. "id0": true,
  5342. },
  5343. },
  5344. "inserted": {
  5345. "selectedElementIds": {},
  5346. },
  5347. },
  5348. },
  5349. "elementsChange": ElementsChange {
  5350. "added": Map {},
  5351. "removed": Map {
  5352. "id0" => Delta {
  5353. "deleted": {
  5354. "angle": 0,
  5355. "backgroundColor": "transparent",
  5356. "boundElements": null,
  5357. "customData": undefined,
  5358. "fillStyle": "solid",
  5359. "frameId": null,
  5360. "groupIds": [],
  5361. "height": 10,
  5362. "index": "a0",
  5363. "isDeleted": false,
  5364. "link": null,
  5365. "locked": false,
  5366. "opacity": 100,
  5367. "roughness": 1,
  5368. "roundness": {
  5369. "type": 3,
  5370. },
  5371. "strokeColor": "#1e1e1e",
  5372. "strokeStyle": "solid",
  5373. "strokeWidth": 2,
  5374. "type": "rectangle",
  5375. "width": 10,
  5376. "x": 10,
  5377. "y": 10,
  5378. },
  5379. "inserted": {
  5380. "isDeleted": true,
  5381. },
  5382. },
  5383. },
  5384. "updated": Map {},
  5385. },
  5386. },
  5387. HistoryEntry {
  5388. "appStateChange": AppStateChange {
  5389. "delta": Delta {
  5390. "deleted": {
  5391. "selectedElementIds": {
  5392. "id1": true,
  5393. },
  5394. },
  5395. "inserted": {
  5396. "selectedElementIds": {
  5397. "id0": true,
  5398. },
  5399. },
  5400. },
  5401. },
  5402. "elementsChange": ElementsChange {
  5403. "added": Map {},
  5404. "removed": Map {
  5405. "id1" => Delta {
  5406. "deleted": {
  5407. "angle": 0,
  5408. "backgroundColor": "transparent",
  5409. "boundElements": null,
  5410. "customData": undefined,
  5411. "fillStyle": "solid",
  5412. "frameId": null,
  5413. "groupIds": [],
  5414. "height": 10,
  5415. "index": "a1",
  5416. "isDeleted": false,
  5417. "link": null,
  5418. "locked": false,
  5419. "opacity": 100,
  5420. "roughness": 1,
  5421. "roundness": {
  5422. "type": 3,
  5423. },
  5424. "strokeColor": "#1e1e1e",
  5425. "strokeStyle": "solid",
  5426. "strokeWidth": 2,
  5427. "type": "rectangle",
  5428. "width": 10,
  5429. "x": 30,
  5430. "y": 10,
  5431. },
  5432. "inserted": {
  5433. "isDeleted": true,
  5434. },
  5435. },
  5436. },
  5437. "updated": Map {},
  5438. },
  5439. },
  5440. HistoryEntry {
  5441. "appStateChange": AppStateChange {
  5442. "delta": Delta {
  5443. "deleted": {
  5444. "selectedElementIds": {
  5445. "id2": true,
  5446. },
  5447. },
  5448. "inserted": {
  5449. "selectedElementIds": {
  5450. "id1": true,
  5451. },
  5452. },
  5453. },
  5454. },
  5455. "elementsChange": ElementsChange {
  5456. "added": Map {},
  5457. "removed": Map {
  5458. "id2" => Delta {
  5459. "deleted": {
  5460. "angle": 0,
  5461. "backgroundColor": "transparent",
  5462. "boundElements": null,
  5463. "customData": undefined,
  5464. "fillStyle": "solid",
  5465. "frameId": null,
  5466. "groupIds": [],
  5467. "height": 10,
  5468. "index": "a2",
  5469. "isDeleted": false,
  5470. "link": null,
  5471. "locked": false,
  5472. "opacity": 100,
  5473. "roughness": 1,
  5474. "roundness": {
  5475. "type": 3,
  5476. },
  5477. "strokeColor": "#1e1e1e",
  5478. "strokeStyle": "solid",
  5479. "strokeWidth": 2,
  5480. "type": "rectangle",
  5481. "width": 10,
  5482. "x": 50,
  5483. "y": 10,
  5484. },
  5485. "inserted": {
  5486. "isDeleted": true,
  5487. },
  5488. },
  5489. },
  5490. "updated": Map {},
  5491. },
  5492. },
  5493. HistoryEntry {
  5494. "appStateChange": AppStateChange {
  5495. "delta": Delta {
  5496. "deleted": {
  5497. "selectedElementIds": {
  5498. "id0": true,
  5499. "id1": true,
  5500. },
  5501. },
  5502. "inserted": {
  5503. "selectedElementIds": {},
  5504. },
  5505. },
  5506. },
  5507. "elementsChange": ElementsChange {
  5508. "added": Map {},
  5509. "removed": Map {},
  5510. "updated": Map {},
  5511. },
  5512. },
  5513. HistoryEntry {
  5514. "appStateChange": AppStateChange {
  5515. "delta": Delta {
  5516. "deleted": {
  5517. "selectedGroupIds": {
  5518. "id3": true,
  5519. },
  5520. },
  5521. "inserted": {
  5522. "selectedGroupIds": {},
  5523. },
  5524. },
  5525. },
  5526. "elementsChange": ElementsChange {
  5527. "added": Map {},
  5528. "removed": Map {},
  5529. "updated": Map {
  5530. "id0" => Delta {
  5531. "deleted": {
  5532. "groupIds": [
  5533. "id3",
  5534. ],
  5535. },
  5536. "inserted": {
  5537. "groupIds": [],
  5538. },
  5539. },
  5540. "id1" => Delta {
  5541. "deleted": {
  5542. "groupIds": [
  5543. "id3",
  5544. ],
  5545. },
  5546. "inserted": {
  5547. "groupIds": [],
  5548. },
  5549. },
  5550. "id2" => Delta {
  5551. "deleted": {
  5552. "groupIds": [
  5553. "id3",
  5554. ],
  5555. },
  5556. "inserted": {
  5557. "groupIds": [],
  5558. },
  5559. },
  5560. },
  5561. },
  5562. },
  5563. HistoryEntry {
  5564. "appStateChange": AppStateChange {
  5565. "delta": Delta {
  5566. "deleted": {
  5567. "editingGroupId": "id3",
  5568. "selectedElementIds": {},
  5569. "selectedGroupIds": {},
  5570. },
  5571. "inserted": {
  5572. "editingGroupId": null,
  5573. "selectedElementIds": {
  5574. "id0": true,
  5575. "id1": true,
  5576. },
  5577. "selectedGroupIds": {
  5578. "id3": true,
  5579. },
  5580. },
  5581. },
  5582. },
  5583. "elementsChange": ElementsChange {
  5584. "added": Map {},
  5585. "removed": Map {},
  5586. "updated": Map {},
  5587. },
  5588. },
  5589. ],
  5590. }
  5591. `;
  5592. exports[`regression tests > double click to edit a group > [end of test] number of elements 1`] = `0`;
  5593. exports[`regression tests > double click to edit a group > [end of test] number of renders 1`] = `18`;
  5594. exports[`regression tests > drags selected elements from point inside common bounding box that doesn't hit any element and keeps elements selected after dragging > [end of test] appState 1`] = `
  5595. {
  5596. "activeEmbeddable": null,
  5597. "activeTool": {
  5598. "customType": null,
  5599. "lastActiveTool": null,
  5600. "locked": false,
  5601. "type": "selection",
  5602. },
  5603. "collaborators": Map {},
  5604. "contextMenu": null,
  5605. "currentChartType": "bar",
  5606. "currentHoveredFontFamily": null,
  5607. "currentItemBackgroundColor": "transparent",
  5608. "currentItemEndArrowhead": "arrow",
  5609. "currentItemFillStyle": "solid",
  5610. "currentItemFontFamily": 5,
  5611. "currentItemFontSize": 20,
  5612. "currentItemOpacity": 100,
  5613. "currentItemRoughness": 1,
  5614. "currentItemRoundness": "round",
  5615. "currentItemStartArrowhead": null,
  5616. "currentItemStrokeColor": "#1e1e1e",
  5617. "currentItemStrokeStyle": "solid",
  5618. "currentItemStrokeWidth": 2,
  5619. "currentItemTextAlign": "left",
  5620. "cursorButton": "up",
  5621. "defaultSidebarDockedPreference": false,
  5622. "draggingElement": null,
  5623. "editingElement": null,
  5624. "editingFrame": null,
  5625. "editingGroupId": null,
  5626. "editingLinearElement": null,
  5627. "elementsToHighlight": null,
  5628. "errorMessage": null,
  5629. "exportBackground": true,
  5630. "exportEmbedScene": false,
  5631. "exportScale": 1,
  5632. "exportWithDarkMode": false,
  5633. "fileHandle": null,
  5634. "followedBy": Set {},
  5635. "frameRendering": {
  5636. "clip": true,
  5637. "enabled": true,
  5638. "name": true,
  5639. "outline": true,
  5640. },
  5641. "frameToHighlight": null,
  5642. "gridSize": null,
  5643. "height": 768,
  5644. "isBindingEnabled": true,
  5645. "isLoading": false,
  5646. "isResizing": false,
  5647. "isRotating": false,
  5648. "lastPointerDownWith": "mouse",
  5649. "multiElement": null,
  5650. "name": "Untitled-201933152653",
  5651. "objectsSnapModeEnabled": false,
  5652. "offsetLeft": 0,
  5653. "offsetTop": 0,
  5654. "openDialog": null,
  5655. "openMenu": null,
  5656. "openPopup": null,
  5657. "openSidebar": null,
  5658. "originSnapOffset": null,
  5659. "pasteDialog": {
  5660. "data": null,
  5661. "shown": false,
  5662. },
  5663. "penDetected": false,
  5664. "penMode": false,
  5665. "pendingImageElementId": null,
  5666. "previousSelectedElementIds": {
  5667. "id0": true,
  5668. "id1": true,
  5669. },
  5670. "resizingElement": null,
  5671. "scrollX": 0,
  5672. "scrollY": 0,
  5673. "scrolledOutside": false,
  5674. "selectedElementIds": {
  5675. "id0": true,
  5676. "id1": true,
  5677. },
  5678. "selectedElementsAreBeingDragged": false,
  5679. "selectedGroupIds": {},
  5680. "selectedLinearElement": null,
  5681. "selectionElement": null,
  5682. "shouldCacheIgnoreZoom": false,
  5683. "showHyperlinkPopup": false,
  5684. "showWelcomeScreen": true,
  5685. "snapLines": [],
  5686. "startBoundElement": null,
  5687. "stats": {
  5688. "open": false,
  5689. "panels": 3,
  5690. },
  5691. "suggestedBindings": [],
  5692. "theme": "light",
  5693. "toast": null,
  5694. "userToFollow": null,
  5695. "viewBackgroundColor": "#ffffff",
  5696. "viewModeEnabled": false,
  5697. "width": 1024,
  5698. "zenModeEnabled": false,
  5699. "zoom": {
  5700. "value": 1,
  5701. },
  5702. }
  5703. `;
  5704. exports[`regression tests > drags selected elements from point inside common bounding box that doesn't hit any element and keeps elements selected after dragging > [end of test] history 1`] = `
  5705. History {
  5706. "onHistoryChangedEmitter": Emitter {
  5707. "subscribers": [],
  5708. },
  5709. "redoStack": [],
  5710. "undoStack": [
  5711. HistoryEntry {
  5712. "appStateChange": AppStateChange {
  5713. "delta": Delta {
  5714. "deleted": {
  5715. "selectedElementIds": {
  5716. "id0": true,
  5717. },
  5718. },
  5719. "inserted": {
  5720. "selectedElementIds": {},
  5721. },
  5722. },
  5723. },
  5724. "elementsChange": ElementsChange {
  5725. "added": Map {},
  5726. "removed": Map {
  5727. "id0" => Delta {
  5728. "deleted": {
  5729. "angle": 0,
  5730. "backgroundColor": "transparent",
  5731. "boundElements": null,
  5732. "customData": undefined,
  5733. "fillStyle": "solid",
  5734. "frameId": null,
  5735. "groupIds": [],
  5736. "height": 10,
  5737. "index": "a0",
  5738. "isDeleted": false,
  5739. "link": null,
  5740. "locked": false,
  5741. "opacity": 100,
  5742. "roughness": 1,
  5743. "roundness": {
  5744. "type": 3,
  5745. },
  5746. "strokeColor": "#1e1e1e",
  5747. "strokeStyle": "solid",
  5748. "strokeWidth": 2,
  5749. "type": "rectangle",
  5750. "width": 10,
  5751. "x": 0,
  5752. "y": 0,
  5753. },
  5754. "inserted": {
  5755. "isDeleted": true,
  5756. },
  5757. },
  5758. },
  5759. "updated": Map {},
  5760. },
  5761. },
  5762. HistoryEntry {
  5763. "appStateChange": AppStateChange {
  5764. "delta": Delta {
  5765. "deleted": {
  5766. "selectedElementIds": {
  5767. "id1": true,
  5768. },
  5769. },
  5770. "inserted": {
  5771. "selectedElementIds": {
  5772. "id0": true,
  5773. },
  5774. },
  5775. },
  5776. },
  5777. "elementsChange": ElementsChange {
  5778. "added": Map {},
  5779. "removed": Map {
  5780. "id1" => Delta {
  5781. "deleted": {
  5782. "angle": 0,
  5783. "backgroundColor": "transparent",
  5784. "boundElements": null,
  5785. "customData": undefined,
  5786. "fillStyle": "solid",
  5787. "frameId": null,
  5788. "groupIds": [],
  5789. "height": 10,
  5790. "index": "a1",
  5791. "isDeleted": false,
  5792. "link": null,
  5793. "locked": false,
  5794. "opacity": 100,
  5795. "roughness": 1,
  5796. "roundness": {
  5797. "type": 2,
  5798. },
  5799. "strokeColor": "#1e1e1e",
  5800. "strokeStyle": "solid",
  5801. "strokeWidth": 2,
  5802. "type": "ellipse",
  5803. "width": 10,
  5804. "x": 110,
  5805. "y": 110,
  5806. },
  5807. "inserted": {
  5808. "isDeleted": true,
  5809. },
  5810. },
  5811. },
  5812. "updated": Map {},
  5813. },
  5814. },
  5815. HistoryEntry {
  5816. "appStateChange": AppStateChange {
  5817. "delta": Delta {
  5818. "deleted": {
  5819. "selectedElementIds": {
  5820. "id0": true,
  5821. },
  5822. },
  5823. "inserted": {
  5824. "selectedElementIds": {},
  5825. },
  5826. },
  5827. },
  5828. "elementsChange": ElementsChange {
  5829. "added": Map {},
  5830. "removed": Map {},
  5831. "updated": Map {},
  5832. },
  5833. },
  5834. HistoryEntry {
  5835. "appStateChange": AppStateChange {
  5836. "delta": Delta {
  5837. "deleted": {},
  5838. "inserted": {},
  5839. },
  5840. },
  5841. "elementsChange": ElementsChange {
  5842. "added": Map {},
  5843. "removed": Map {},
  5844. "updated": Map {
  5845. "id0" => Delta {
  5846. "deleted": {
  5847. "x": 25,
  5848. "y": 25,
  5849. },
  5850. "inserted": {
  5851. "x": 0,
  5852. "y": 0,
  5853. },
  5854. },
  5855. "id1" => Delta {
  5856. "deleted": {
  5857. "x": 135,
  5858. "y": 135,
  5859. },
  5860. "inserted": {
  5861. "x": 110,
  5862. "y": 110,
  5863. },
  5864. },
  5865. },
  5866. },
  5867. },
  5868. ],
  5869. }
  5870. `;
  5871. exports[`regression tests > drags selected elements from point inside common bounding box that doesn't hit any element and keeps elements selected after dragging > [end of test] number of elements 1`] = `0`;
  5872. exports[`regression tests > drags selected elements from point inside common bounding box that doesn't hit any element and keeps elements selected after dragging > [end of test] number of renders 1`] = `14`;
  5873. exports[`regression tests > draw every type of shape > [end of test] appState 1`] = `
  5874. {
  5875. "activeEmbeddable": null,
  5876. "activeTool": {
  5877. "customType": null,
  5878. "lastActiveTool": null,
  5879. "locked": false,
  5880. "type": "freedraw",
  5881. },
  5882. "collaborators": Map {},
  5883. "contextMenu": null,
  5884. "currentChartType": "bar",
  5885. "currentHoveredFontFamily": null,
  5886. "currentItemBackgroundColor": "transparent",
  5887. "currentItemEndArrowhead": "arrow",
  5888. "currentItemFillStyle": "solid",
  5889. "currentItemFontFamily": 5,
  5890. "currentItemFontSize": 20,
  5891. "currentItemOpacity": 100,
  5892. "currentItemRoughness": 1,
  5893. "currentItemRoundness": "round",
  5894. "currentItemStartArrowhead": null,
  5895. "currentItemStrokeColor": "#1e1e1e",
  5896. "currentItemStrokeStyle": "solid",
  5897. "currentItemStrokeWidth": 2,
  5898. "currentItemTextAlign": "left",
  5899. "cursorButton": "up",
  5900. "defaultSidebarDockedPreference": false,
  5901. "draggingElement": null,
  5902. "editingElement": null,
  5903. "editingFrame": null,
  5904. "editingGroupId": null,
  5905. "editingLinearElement": null,
  5906. "elementsToHighlight": null,
  5907. "errorMessage": null,
  5908. "exportBackground": true,
  5909. "exportEmbedScene": false,
  5910. "exportScale": 1,
  5911. "exportWithDarkMode": false,
  5912. "fileHandle": null,
  5913. "followedBy": Set {},
  5914. "frameRendering": {
  5915. "clip": true,
  5916. "enabled": true,
  5917. "name": true,
  5918. "outline": true,
  5919. },
  5920. "frameToHighlight": null,
  5921. "gridSize": null,
  5922. "height": 768,
  5923. "isBindingEnabled": true,
  5924. "isLoading": false,
  5925. "isResizing": false,
  5926. "isRotating": false,
  5927. "lastPointerDownWith": "mouse",
  5928. "multiElement": null,
  5929. "name": "Untitled-201933152653",
  5930. "objectsSnapModeEnabled": false,
  5931. "offsetLeft": 0,
  5932. "offsetTop": 0,
  5933. "openDialog": null,
  5934. "openMenu": null,
  5935. "openPopup": null,
  5936. "openSidebar": null,
  5937. "originSnapOffset": null,
  5938. "pasteDialog": {
  5939. "data": null,
  5940. "shown": false,
  5941. },
  5942. "penDetected": false,
  5943. "penMode": false,
  5944. "pendingImageElementId": null,
  5945. "previousSelectedElementIds": {},
  5946. "resizingElement": null,
  5947. "scrollX": 0,
  5948. "scrollY": 0,
  5949. "scrolledOutside": false,
  5950. "selectedElementIds": {},
  5951. "selectedElementsAreBeingDragged": false,
  5952. "selectedGroupIds": {},
  5953. "selectedLinearElement": null,
  5954. "selectionElement": null,
  5955. "shouldCacheIgnoreZoom": false,
  5956. "showHyperlinkPopup": false,
  5957. "showWelcomeScreen": true,
  5958. "snapLines": [],
  5959. "startBoundElement": null,
  5960. "stats": {
  5961. "open": false,
  5962. "panels": 3,
  5963. },
  5964. "suggestedBindings": [],
  5965. "theme": "light",
  5966. "toast": null,
  5967. "userToFollow": null,
  5968. "viewBackgroundColor": "#ffffff",
  5969. "viewModeEnabled": false,
  5970. "width": 1024,
  5971. "zenModeEnabled": false,
  5972. "zoom": {
  5973. "value": 1,
  5974. },
  5975. }
  5976. `;
  5977. exports[`regression tests > draw every type of shape > [end of test] history 1`] = `
  5978. History {
  5979. "onHistoryChangedEmitter": Emitter {
  5980. "subscribers": [],
  5981. },
  5982. "redoStack": [],
  5983. "undoStack": [
  5984. HistoryEntry {
  5985. "appStateChange": AppStateChange {
  5986. "delta": Delta {
  5987. "deleted": {
  5988. "selectedElementIds": {
  5989. "id0": true,
  5990. },
  5991. },
  5992. "inserted": {
  5993. "selectedElementIds": {},
  5994. },
  5995. },
  5996. },
  5997. "elementsChange": ElementsChange {
  5998. "added": Map {},
  5999. "removed": Map {
  6000. "id0" => Delta {
  6001. "deleted": {
  6002. "angle": 0,
  6003. "backgroundColor": "transparent",
  6004. "boundElements": null,
  6005. "customData": undefined,
  6006. "fillStyle": "solid",
  6007. "frameId": null,
  6008. "groupIds": [],
  6009. "height": 10,
  6010. "index": "a0",
  6011. "isDeleted": false,
  6012. "link": null,
  6013. "locked": false,
  6014. "opacity": 100,
  6015. "roughness": 1,
  6016. "roundness": {
  6017. "type": 3,
  6018. },
  6019. "strokeColor": "#1e1e1e",
  6020. "strokeStyle": "solid",
  6021. "strokeWidth": 2,
  6022. "type": "rectangle",
  6023. "width": 20,
  6024. "x": 10,
  6025. "y": -10,
  6026. },
  6027. "inserted": {
  6028. "isDeleted": true,
  6029. },
  6030. },
  6031. },
  6032. "updated": Map {},
  6033. },
  6034. },
  6035. HistoryEntry {
  6036. "appStateChange": AppStateChange {
  6037. "delta": Delta {
  6038. "deleted": {
  6039. "selectedElementIds": {
  6040. "id1": true,
  6041. },
  6042. },
  6043. "inserted": {
  6044. "selectedElementIds": {
  6045. "id0": true,
  6046. },
  6047. },
  6048. },
  6049. },
  6050. "elementsChange": ElementsChange {
  6051. "added": Map {},
  6052. "removed": Map {
  6053. "id1" => Delta {
  6054. "deleted": {
  6055. "angle": 0,
  6056. "backgroundColor": "transparent",
  6057. "boundElements": null,
  6058. "customData": undefined,
  6059. "fillStyle": "solid",
  6060. "frameId": null,
  6061. "groupIds": [],
  6062. "height": 10,
  6063. "index": "a1",
  6064. "isDeleted": false,
  6065. "link": null,
  6066. "locked": false,
  6067. "opacity": 100,
  6068. "roughness": 1,
  6069. "roundness": {
  6070. "type": 2,
  6071. },
  6072. "strokeColor": "#1e1e1e",
  6073. "strokeStyle": "solid",
  6074. "strokeWidth": 2,
  6075. "type": "diamond",
  6076. "width": 20,
  6077. "x": 40,
  6078. "y": -10,
  6079. },
  6080. "inserted": {
  6081. "isDeleted": true,
  6082. },
  6083. },
  6084. },
  6085. "updated": Map {},
  6086. },
  6087. },
  6088. HistoryEntry {
  6089. "appStateChange": AppStateChange {
  6090. "delta": Delta {
  6091. "deleted": {
  6092. "selectedElementIds": {
  6093. "id2": true,
  6094. },
  6095. },
  6096. "inserted": {
  6097. "selectedElementIds": {
  6098. "id1": true,
  6099. },
  6100. },
  6101. },
  6102. },
  6103. "elementsChange": ElementsChange {
  6104. "added": Map {},
  6105. "removed": Map {
  6106. "id2" => Delta {
  6107. "deleted": {
  6108. "angle": 0,
  6109. "backgroundColor": "transparent",
  6110. "boundElements": null,
  6111. "customData": undefined,
  6112. "fillStyle": "solid",
  6113. "frameId": null,
  6114. "groupIds": [],
  6115. "height": 10,
  6116. "index": "a2",
  6117. "isDeleted": false,
  6118. "link": null,
  6119. "locked": false,
  6120. "opacity": 100,
  6121. "roughness": 1,
  6122. "roundness": {
  6123. "type": 2,
  6124. },
  6125. "strokeColor": "#1e1e1e",
  6126. "strokeStyle": "solid",
  6127. "strokeWidth": 2,
  6128. "type": "ellipse",
  6129. "width": 20,
  6130. "x": 70,
  6131. "y": -10,
  6132. },
  6133. "inserted": {
  6134. "isDeleted": true,
  6135. },
  6136. },
  6137. },
  6138. "updated": Map {},
  6139. },
  6140. },
  6141. HistoryEntry {
  6142. "appStateChange": AppStateChange {
  6143. "delta": Delta {
  6144. "deleted": {
  6145. "selectedElementIds": {
  6146. "id3": true,
  6147. },
  6148. "selectedLinearElementId": "id3",
  6149. },
  6150. "inserted": {
  6151. "selectedElementIds": {
  6152. "id2": true,
  6153. },
  6154. "selectedLinearElementId": null,
  6155. },
  6156. },
  6157. },
  6158. "elementsChange": ElementsChange {
  6159. "added": Map {},
  6160. "removed": Map {
  6161. "id3" => Delta {
  6162. "deleted": {
  6163. "angle": 0,
  6164. "backgroundColor": "transparent",
  6165. "boundElements": null,
  6166. "customData": undefined,
  6167. "endArrowhead": "arrow",
  6168. "endBinding": null,
  6169. "fillStyle": "solid",
  6170. "frameId": null,
  6171. "groupIds": [],
  6172. "height": 10,
  6173. "index": "a3",
  6174. "isDeleted": false,
  6175. "lastCommittedPoint": null,
  6176. "link": null,
  6177. "locked": false,
  6178. "opacity": 100,
  6179. "points": [
  6180. [
  6181. 0,
  6182. 0,
  6183. ],
  6184. [
  6185. 50,
  6186. 10,
  6187. ],
  6188. ],
  6189. "roughness": 1,
  6190. "roundness": {
  6191. "type": 2,
  6192. },
  6193. "startArrowhead": null,
  6194. "startBinding": null,
  6195. "strokeColor": "#1e1e1e",
  6196. "strokeStyle": "solid",
  6197. "strokeWidth": 2,
  6198. "type": "arrow",
  6199. "width": 50,
  6200. "x": 130,
  6201. "y": -10,
  6202. },
  6203. "inserted": {
  6204. "isDeleted": true,
  6205. },
  6206. },
  6207. },
  6208. "updated": Map {},
  6209. },
  6210. },
  6211. HistoryEntry {
  6212. "appStateChange": AppStateChange {
  6213. "delta": Delta {
  6214. "deleted": {
  6215. "selectedElementIds": {
  6216. "id4": true,
  6217. },
  6218. "selectedLinearElementId": "id4",
  6219. },
  6220. "inserted": {
  6221. "selectedElementIds": {
  6222. "id3": true,
  6223. },
  6224. "selectedLinearElementId": "id3",
  6225. },
  6226. },
  6227. },
  6228. "elementsChange": ElementsChange {
  6229. "added": Map {},
  6230. "removed": Map {
  6231. "id4" => Delta {
  6232. "deleted": {
  6233. "angle": 0,
  6234. "backgroundColor": "transparent",
  6235. "boundElements": null,
  6236. "customData": undefined,
  6237. "endArrowhead": null,
  6238. "endBinding": null,
  6239. "fillStyle": "solid",
  6240. "frameId": null,
  6241. "groupIds": [],
  6242. "height": 10,
  6243. "index": "a4",
  6244. "isDeleted": false,
  6245. "lastCommittedPoint": null,
  6246. "link": null,
  6247. "locked": false,
  6248. "opacity": 100,
  6249. "points": [
  6250. [
  6251. 0,
  6252. 0,
  6253. ],
  6254. [
  6255. 50,
  6256. 10,
  6257. ],
  6258. ],
  6259. "roughness": 1,
  6260. "roundness": {
  6261. "type": 2,
  6262. },
  6263. "startArrowhead": null,
  6264. "startBinding": null,
  6265. "strokeColor": "#1e1e1e",
  6266. "strokeStyle": "solid",
  6267. "strokeWidth": 2,
  6268. "type": "line",
  6269. "width": 50,
  6270. "x": 220,
  6271. "y": -10,
  6272. },
  6273. "inserted": {
  6274. "isDeleted": true,
  6275. },
  6276. },
  6277. },
  6278. "updated": Map {},
  6279. },
  6280. },
  6281. HistoryEntry {
  6282. "appStateChange": AppStateChange {
  6283. "delta": Delta {
  6284. "deleted": {
  6285. "selectedElementIds": {
  6286. "id5": true,
  6287. },
  6288. "selectedLinearElementId": null,
  6289. },
  6290. "inserted": {
  6291. "selectedElementIds": {
  6292. "id4": true,
  6293. },
  6294. "selectedLinearElementId": "id4",
  6295. },
  6296. },
  6297. },
  6298. "elementsChange": ElementsChange {
  6299. "added": Map {},
  6300. "removed": Map {
  6301. "id5" => Delta {
  6302. "deleted": {
  6303. "angle": 0,
  6304. "backgroundColor": "transparent",
  6305. "boundElements": null,
  6306. "customData": undefined,
  6307. "endArrowhead": "arrow",
  6308. "endBinding": null,
  6309. "fillStyle": "solid",
  6310. "frameId": null,
  6311. "groupIds": [],
  6312. "height": 10,
  6313. "index": "a5",
  6314. "isDeleted": false,
  6315. "lastCommittedPoint": [
  6316. 50,
  6317. 10,
  6318. ],
  6319. "link": null,
  6320. "locked": false,
  6321. "opacity": 100,
  6322. "points": [
  6323. [
  6324. 0,
  6325. 0,
  6326. ],
  6327. [
  6328. 50,
  6329. 10,
  6330. ],
  6331. ],
  6332. "roughness": 1,
  6333. "roundness": {
  6334. "type": 2,
  6335. },
  6336. "startArrowhead": null,
  6337. "startBinding": null,
  6338. "strokeColor": "#1e1e1e",
  6339. "strokeStyle": "solid",
  6340. "strokeWidth": 2,
  6341. "type": "arrow",
  6342. "width": 50,
  6343. "x": 310,
  6344. "y": -10,
  6345. },
  6346. "inserted": {
  6347. "isDeleted": true,
  6348. },
  6349. },
  6350. },
  6351. "updated": Map {},
  6352. },
  6353. },
  6354. HistoryEntry {
  6355. "appStateChange": AppStateChange {
  6356. "delta": Delta {
  6357. "deleted": {},
  6358. "inserted": {},
  6359. },
  6360. },
  6361. "elementsChange": ElementsChange {
  6362. "added": Map {},
  6363. "removed": Map {},
  6364. "updated": Map {
  6365. "id5" => Delta {
  6366. "deleted": {
  6367. "height": 20,
  6368. "lastCommittedPoint": [
  6369. 80,
  6370. 20,
  6371. ],
  6372. "points": [
  6373. [
  6374. 0,
  6375. 0,
  6376. ],
  6377. [
  6378. 50,
  6379. 10,
  6380. ],
  6381. [
  6382. 80,
  6383. 20,
  6384. ],
  6385. ],
  6386. "width": 80,
  6387. },
  6388. "inserted": {
  6389. "height": 10,
  6390. "lastCommittedPoint": [
  6391. 50,
  6392. 10,
  6393. ],
  6394. "points": [
  6395. [
  6396. 0,
  6397. 0,
  6398. ],
  6399. [
  6400. 50,
  6401. 10,
  6402. ],
  6403. ],
  6404. "width": 50,
  6405. },
  6406. },
  6407. },
  6408. },
  6409. },
  6410. HistoryEntry {
  6411. "appStateChange": AppStateChange {
  6412. "delta": Delta {
  6413. "deleted": {
  6414. "selectedLinearElementId": "id5",
  6415. },
  6416. "inserted": {
  6417. "selectedLinearElementId": null,
  6418. },
  6419. },
  6420. },
  6421. "elementsChange": ElementsChange {
  6422. "added": Map {},
  6423. "removed": Map {},
  6424. "updated": Map {},
  6425. },
  6426. },
  6427. HistoryEntry {
  6428. "appStateChange": AppStateChange {
  6429. "delta": Delta {
  6430. "deleted": {
  6431. "selectedElementIds": {
  6432. "id6": true,
  6433. },
  6434. "selectedLinearElementId": null,
  6435. },
  6436. "inserted": {
  6437. "selectedElementIds": {
  6438. "id5": true,
  6439. },
  6440. "selectedLinearElementId": "id5",
  6441. },
  6442. },
  6443. },
  6444. "elementsChange": ElementsChange {
  6445. "added": Map {},
  6446. "removed": Map {
  6447. "id6" => Delta {
  6448. "deleted": {
  6449. "angle": 0,
  6450. "backgroundColor": "transparent",
  6451. "boundElements": null,
  6452. "customData": undefined,
  6453. "endArrowhead": null,
  6454. "endBinding": null,
  6455. "fillStyle": "solid",
  6456. "frameId": null,
  6457. "groupIds": [],
  6458. "height": 10,
  6459. "index": "a6",
  6460. "isDeleted": false,
  6461. "lastCommittedPoint": [
  6462. 50,
  6463. 10,
  6464. ],
  6465. "link": null,
  6466. "locked": false,
  6467. "opacity": 100,
  6468. "points": [
  6469. [
  6470. 0,
  6471. 0,
  6472. ],
  6473. [
  6474. 50,
  6475. 10,
  6476. ],
  6477. ],
  6478. "roughness": 1,
  6479. "roundness": {
  6480. "type": 2,
  6481. },
  6482. "startArrowhead": null,
  6483. "startBinding": null,
  6484. "strokeColor": "#1e1e1e",
  6485. "strokeStyle": "solid",
  6486. "strokeWidth": 2,
  6487. "type": "line",
  6488. "width": 50,
  6489. "x": 430,
  6490. "y": -10,
  6491. },
  6492. "inserted": {
  6493. "isDeleted": true,
  6494. },
  6495. },
  6496. },
  6497. "updated": Map {},
  6498. },
  6499. },
  6500. HistoryEntry {
  6501. "appStateChange": AppStateChange {
  6502. "delta": Delta {
  6503. "deleted": {},
  6504. "inserted": {},
  6505. },
  6506. },
  6507. "elementsChange": ElementsChange {
  6508. "added": Map {},
  6509. "removed": Map {},
  6510. "updated": Map {
  6511. "id6" => Delta {
  6512. "deleted": {
  6513. "height": 20,
  6514. "lastCommittedPoint": [
  6515. 80,
  6516. 20,
  6517. ],
  6518. "points": [
  6519. [
  6520. 0,
  6521. 0,
  6522. ],
  6523. [
  6524. 50,
  6525. 10,
  6526. ],
  6527. [
  6528. 80,
  6529. 20,
  6530. ],
  6531. ],
  6532. "width": 80,
  6533. },
  6534. "inserted": {
  6535. "height": 10,
  6536. "lastCommittedPoint": [
  6537. 50,
  6538. 10,
  6539. ],
  6540. "points": [
  6541. [
  6542. 0,
  6543. 0,
  6544. ],
  6545. [
  6546. 50,
  6547. 10,
  6548. ],
  6549. ],
  6550. "width": 50,
  6551. },
  6552. },
  6553. },
  6554. },
  6555. },
  6556. HistoryEntry {
  6557. "appStateChange": AppStateChange {
  6558. "delta": Delta {
  6559. "deleted": {
  6560. "selectedLinearElementId": "id6",
  6561. },
  6562. "inserted": {
  6563. "selectedLinearElementId": null,
  6564. },
  6565. },
  6566. },
  6567. "elementsChange": ElementsChange {
  6568. "added": Map {},
  6569. "removed": Map {},
  6570. "updated": Map {},
  6571. },
  6572. },
  6573. HistoryEntry {
  6574. "appStateChange": AppStateChange {
  6575. "delta": Delta {
  6576. "deleted": {
  6577. "selectedElementIds": {},
  6578. },
  6579. "inserted": {
  6580. "selectedElementIds": {
  6581. "id6": true,
  6582. },
  6583. },
  6584. },
  6585. },
  6586. "elementsChange": ElementsChange {
  6587. "added": Map {},
  6588. "removed": Map {},
  6589. "updated": Map {},
  6590. },
  6591. },
  6592. HistoryEntry {
  6593. "appStateChange": AppStateChange {
  6594. "delta": Delta {
  6595. "deleted": {
  6596. "selectedLinearElementId": null,
  6597. },
  6598. "inserted": {
  6599. "selectedLinearElementId": "id6",
  6600. },
  6601. },
  6602. },
  6603. "elementsChange": ElementsChange {
  6604. "added": Map {},
  6605. "removed": Map {
  6606. "id7" => Delta {
  6607. "deleted": {
  6608. "angle": 0,
  6609. "backgroundColor": "transparent",
  6610. "boundElements": null,
  6611. "customData": undefined,
  6612. "fillStyle": "solid",
  6613. "frameId": null,
  6614. "groupIds": [],
  6615. "height": 10,
  6616. "index": "a7",
  6617. "isDeleted": false,
  6618. "lastCommittedPoint": [
  6619. 50,
  6620. 10,
  6621. ],
  6622. "link": null,
  6623. "locked": false,
  6624. "opacity": 100,
  6625. "points": [
  6626. [
  6627. 0,
  6628. 0,
  6629. ],
  6630. [
  6631. 50,
  6632. 10,
  6633. ],
  6634. [
  6635. 50,
  6636. 10,
  6637. ],
  6638. ],
  6639. "pressures": [
  6640. 0,
  6641. 0,
  6642. 0,
  6643. ],
  6644. "roughness": 1,
  6645. "roundness": null,
  6646. "simulatePressure": false,
  6647. "strokeColor": "#1e1e1e",
  6648. "strokeStyle": "solid",
  6649. "strokeWidth": 2,
  6650. "type": "freedraw",
  6651. "width": 50,
  6652. "x": 550,
  6653. "y": -10,
  6654. },
  6655. "inserted": {
  6656. "isDeleted": true,
  6657. },
  6658. },
  6659. },
  6660. "updated": Map {},
  6661. },
  6662. },
  6663. ],
  6664. }
  6665. `;
  6666. exports[`regression tests > draw every type of shape > [end of test] number of elements 1`] = `0`;
  6667. exports[`regression tests > draw every type of shape > [end of test] number of renders 1`] = `43`;
  6668. exports[`regression tests > given a group of selected elements with an element that is not selected inside the group common bounding box when element that is not selected is clicked should switch selection to not selected element on pointer up > [end of test] appState 1`] = `
  6669. {
  6670. "activeEmbeddable": null,
  6671. "activeTool": {
  6672. "customType": null,
  6673. "lastActiveTool": null,
  6674. "locked": false,
  6675. "type": "selection",
  6676. },
  6677. "collaborators": Map {},
  6678. "contextMenu": null,
  6679. "currentChartType": "bar",
  6680. "currentHoveredFontFamily": null,
  6681. "currentItemBackgroundColor": "transparent",
  6682. "currentItemEndArrowhead": "arrow",
  6683. "currentItemFillStyle": "solid",
  6684. "currentItemFontFamily": 5,
  6685. "currentItemFontSize": 20,
  6686. "currentItemOpacity": 100,
  6687. "currentItemRoughness": 1,
  6688. "currentItemRoundness": "round",
  6689. "currentItemStartArrowhead": null,
  6690. "currentItemStrokeColor": "#1e1e1e",
  6691. "currentItemStrokeStyle": "solid",
  6692. "currentItemStrokeWidth": 2,
  6693. "currentItemTextAlign": "left",
  6694. "cursorButton": "up",
  6695. "defaultSidebarDockedPreference": false,
  6696. "draggingElement": null,
  6697. "editingElement": null,
  6698. "editingFrame": null,
  6699. "editingGroupId": null,
  6700. "editingLinearElement": null,
  6701. "elementsToHighlight": null,
  6702. "errorMessage": null,
  6703. "exportBackground": true,
  6704. "exportEmbedScene": false,
  6705. "exportScale": 1,
  6706. "exportWithDarkMode": false,
  6707. "fileHandle": null,
  6708. "followedBy": Set {},
  6709. "frameRendering": {
  6710. "clip": true,
  6711. "enabled": true,
  6712. "name": true,
  6713. "outline": true,
  6714. },
  6715. "frameToHighlight": null,
  6716. "gridSize": null,
  6717. "height": 768,
  6718. "isBindingEnabled": true,
  6719. "isLoading": false,
  6720. "isResizing": false,
  6721. "isRotating": false,
  6722. "lastPointerDownWith": "mouse",
  6723. "multiElement": null,
  6724. "name": "Untitled-201933152653",
  6725. "objectsSnapModeEnabled": false,
  6726. "offsetLeft": 0,
  6727. "offsetTop": 0,
  6728. "openDialog": null,
  6729. "openMenu": null,
  6730. "openPopup": null,
  6731. "openSidebar": null,
  6732. "originSnapOffset": null,
  6733. "pasteDialog": {
  6734. "data": null,
  6735. "shown": false,
  6736. },
  6737. "penDetected": false,
  6738. "penMode": false,
  6739. "pendingImageElementId": null,
  6740. "previousSelectedElementIds": {
  6741. "id0": true,
  6742. "id2": true,
  6743. },
  6744. "resizingElement": null,
  6745. "scrollX": 0,
  6746. "scrollY": 0,
  6747. "scrolledOutside": false,
  6748. "selectedElementIds": {
  6749. "id1": true,
  6750. },
  6751. "selectedElementsAreBeingDragged": false,
  6752. "selectedGroupIds": {},
  6753. "selectedLinearElement": null,
  6754. "selectionElement": null,
  6755. "shouldCacheIgnoreZoom": false,
  6756. "showHyperlinkPopup": false,
  6757. "showWelcomeScreen": true,
  6758. "snapLines": [],
  6759. "startBoundElement": null,
  6760. "stats": {
  6761. "open": false,
  6762. "panels": 3,
  6763. },
  6764. "suggestedBindings": [],
  6765. "theme": "light",
  6766. "toast": null,
  6767. "userToFollow": null,
  6768. "viewBackgroundColor": "#ffffff",
  6769. "viewModeEnabled": false,
  6770. "width": 1024,
  6771. "zenModeEnabled": false,
  6772. "zoom": {
  6773. "value": 1,
  6774. },
  6775. }
  6776. `;
  6777. exports[`regression tests > given a group of selected elements with an element that is not selected inside the group common bounding box when element that is not selected is clicked should switch selection to not selected element on pointer up > [end of test] history 1`] = `
  6778. History {
  6779. "onHistoryChangedEmitter": Emitter {
  6780. "subscribers": [],
  6781. },
  6782. "redoStack": [],
  6783. "undoStack": [
  6784. HistoryEntry {
  6785. "appStateChange": AppStateChange {
  6786. "delta": Delta {
  6787. "deleted": {
  6788. "selectedElementIds": {
  6789. "id0": true,
  6790. },
  6791. },
  6792. "inserted": {
  6793. "selectedElementIds": {},
  6794. },
  6795. },
  6796. },
  6797. "elementsChange": ElementsChange {
  6798. "added": Map {},
  6799. "removed": Map {
  6800. "id0" => Delta {
  6801. "deleted": {
  6802. "angle": 0,
  6803. "backgroundColor": "transparent",
  6804. "boundElements": null,
  6805. "customData": undefined,
  6806. "fillStyle": "solid",
  6807. "frameId": null,
  6808. "groupIds": [],
  6809. "height": 10,
  6810. "index": "a0",
  6811. "isDeleted": false,
  6812. "link": null,
  6813. "locked": false,
  6814. "opacity": 100,
  6815. "roughness": 1,
  6816. "roundness": {
  6817. "type": 3,
  6818. },
  6819. "strokeColor": "#1e1e1e",
  6820. "strokeStyle": "solid",
  6821. "strokeWidth": 2,
  6822. "type": "rectangle",
  6823. "width": 10,
  6824. "x": 0,
  6825. "y": 0,
  6826. },
  6827. "inserted": {
  6828. "isDeleted": true,
  6829. },
  6830. },
  6831. },
  6832. "updated": Map {},
  6833. },
  6834. },
  6835. HistoryEntry {
  6836. "appStateChange": AppStateChange {
  6837. "delta": Delta {
  6838. "deleted": {
  6839. "selectedElementIds": {
  6840. "id1": true,
  6841. },
  6842. },
  6843. "inserted": {
  6844. "selectedElementIds": {
  6845. "id0": true,
  6846. },
  6847. },
  6848. },
  6849. },
  6850. "elementsChange": ElementsChange {
  6851. "added": Map {},
  6852. "removed": Map {
  6853. "id1" => Delta {
  6854. "deleted": {
  6855. "angle": 0,
  6856. "backgroundColor": "transparent",
  6857. "boundElements": null,
  6858. "customData": undefined,
  6859. "fillStyle": "solid",
  6860. "frameId": null,
  6861. "groupIds": [],
  6862. "height": 100,
  6863. "index": "a1",
  6864. "isDeleted": false,
  6865. "link": null,
  6866. "locked": false,
  6867. "opacity": 100,
  6868. "roughness": 1,
  6869. "roundness": {
  6870. "type": 2,
  6871. },
  6872. "strokeColor": "#1e1e1e",
  6873. "strokeStyle": "solid",
  6874. "strokeWidth": 2,
  6875. "type": "ellipse",
  6876. "width": 100,
  6877. "x": 110,
  6878. "y": 110,
  6879. },
  6880. "inserted": {
  6881. "isDeleted": true,
  6882. },
  6883. },
  6884. },
  6885. "updated": Map {},
  6886. },
  6887. },
  6888. HistoryEntry {
  6889. "appStateChange": AppStateChange {
  6890. "delta": Delta {
  6891. "deleted": {
  6892. "selectedElementIds": {
  6893. "id2": true,
  6894. },
  6895. },
  6896. "inserted": {
  6897. "selectedElementIds": {
  6898. "id1": true,
  6899. },
  6900. },
  6901. },
  6902. },
  6903. "elementsChange": ElementsChange {
  6904. "added": Map {},
  6905. "removed": Map {
  6906. "id2" => Delta {
  6907. "deleted": {
  6908. "angle": 0,
  6909. "backgroundColor": "transparent",
  6910. "boundElements": null,
  6911. "customData": undefined,
  6912. "fillStyle": "solid",
  6913. "frameId": null,
  6914. "groupIds": [],
  6915. "height": 100,
  6916. "index": "a2",
  6917. "isDeleted": false,
  6918. "link": null,
  6919. "locked": false,
  6920. "opacity": 100,
  6921. "roughness": 1,
  6922. "roundness": {
  6923. "type": 2,
  6924. },
  6925. "strokeColor": "#1e1e1e",
  6926. "strokeStyle": "solid",
  6927. "strokeWidth": 2,
  6928. "type": "diamond",
  6929. "width": 100,
  6930. "x": 310,
  6931. "y": 310,
  6932. },
  6933. "inserted": {
  6934. "isDeleted": true,
  6935. },
  6936. },
  6937. },
  6938. "updated": Map {},
  6939. },
  6940. },
  6941. HistoryEntry {
  6942. "appStateChange": AppStateChange {
  6943. "delta": Delta {
  6944. "deleted": {
  6945. "selectedElementIds": {
  6946. "id0": true,
  6947. },
  6948. },
  6949. "inserted": {
  6950. "selectedElementIds": {},
  6951. },
  6952. },
  6953. },
  6954. "elementsChange": ElementsChange {
  6955. "added": Map {},
  6956. "removed": Map {},
  6957. "updated": Map {},
  6958. },
  6959. },
  6960. HistoryEntry {
  6961. "appStateChange": AppStateChange {
  6962. "delta": Delta {
  6963. "deleted": {
  6964. "selectedElementIds": {
  6965. "id1": true,
  6966. },
  6967. },
  6968. "inserted": {
  6969. "selectedElementIds": {
  6970. "id0": true,
  6971. "id2": true,
  6972. },
  6973. },
  6974. },
  6975. },
  6976. "elementsChange": ElementsChange {
  6977. "added": Map {},
  6978. "removed": Map {},
  6979. "updated": Map {},
  6980. },
  6981. },
  6982. ],
  6983. }
  6984. `;
  6985. exports[`regression tests > given a group of selected elements with an element that is not selected inside the group common bounding box when element that is not selected is clicked should switch selection to not selected element on pointer up > [end of test] number of elements 1`] = `0`;
  6986. exports[`regression tests > given a group of selected elements with an element that is not selected inside the group common bounding box when element that is not selected is clicked should switch selection to not selected element on pointer up > [end of test] number of renders 1`] = `17`;
  6987. exports[`regression tests > given a selected element A and a not selected element B with higher z-index than A and given B partially overlaps A when there's a shift-click on the overlapped section B is added to the selection > [end of test] appState 1`] = `
  6988. {
  6989. "activeEmbeddable": null,
  6990. "activeTool": {
  6991. "customType": null,
  6992. "lastActiveTool": null,
  6993. "locked": false,
  6994. "type": "selection",
  6995. },
  6996. "collaborators": Map {},
  6997. "contextMenu": null,
  6998. "currentChartType": "bar",
  6999. "currentHoveredFontFamily": null,
  7000. "currentItemBackgroundColor": "#ffc9c9",
  7001. "currentItemEndArrowhead": "arrow",
  7002. "currentItemFillStyle": "solid",
  7003. "currentItemFontFamily": 5,
  7004. "currentItemFontSize": 20,
  7005. "currentItemOpacity": 100,
  7006. "currentItemRoughness": 1,
  7007. "currentItemRoundness": "round",
  7008. "currentItemStartArrowhead": null,
  7009. "currentItemStrokeColor": "#1e1e1e",
  7010. "currentItemStrokeStyle": "solid",
  7011. "currentItemStrokeWidth": 2,
  7012. "currentItemTextAlign": "left",
  7013. "cursorButton": "up",
  7014. "defaultSidebarDockedPreference": false,
  7015. "draggingElement": null,
  7016. "editingElement": null,
  7017. "editingFrame": null,
  7018. "editingGroupId": null,
  7019. "editingLinearElement": null,
  7020. "elementsToHighlight": null,
  7021. "errorMessage": null,
  7022. "exportBackground": true,
  7023. "exportEmbedScene": false,
  7024. "exportScale": 1,
  7025. "exportWithDarkMode": false,
  7026. "fileHandle": null,
  7027. "followedBy": Set {},
  7028. "frameRendering": {
  7029. "clip": true,
  7030. "enabled": true,
  7031. "name": true,
  7032. "outline": true,
  7033. },
  7034. "frameToHighlight": null,
  7035. "gridSize": null,
  7036. "height": 768,
  7037. "isBindingEnabled": true,
  7038. "isLoading": false,
  7039. "isResizing": false,
  7040. "isRotating": false,
  7041. "lastPointerDownWith": "mouse",
  7042. "multiElement": null,
  7043. "name": "Untitled-201933152653",
  7044. "objectsSnapModeEnabled": false,
  7045. "offsetLeft": 0,
  7046. "offsetTop": 0,
  7047. "openDialog": null,
  7048. "openMenu": null,
  7049. "openPopup": "elementBackground",
  7050. "openSidebar": null,
  7051. "originSnapOffset": null,
  7052. "pasteDialog": {
  7053. "data": null,
  7054. "shown": false,
  7055. },
  7056. "penDetected": false,
  7057. "penMode": false,
  7058. "pendingImageElementId": null,
  7059. "previousSelectedElementIds": {
  7060. "id0": true,
  7061. },
  7062. "resizingElement": null,
  7063. "scrollX": 0,
  7064. "scrollY": 0,
  7065. "scrolledOutside": false,
  7066. "selectedElementIds": {
  7067. "id0": true,
  7068. "id1": true,
  7069. },
  7070. "selectedElementsAreBeingDragged": false,
  7071. "selectedGroupIds": {},
  7072. "selectedLinearElement": null,
  7073. "selectionElement": null,
  7074. "shouldCacheIgnoreZoom": false,
  7075. "showHyperlinkPopup": false,
  7076. "showWelcomeScreen": true,
  7077. "snapLines": [],
  7078. "startBoundElement": null,
  7079. "stats": {
  7080. "open": false,
  7081. "panels": 3,
  7082. },
  7083. "suggestedBindings": [],
  7084. "theme": "light",
  7085. "toast": null,
  7086. "userToFollow": null,
  7087. "viewBackgroundColor": "#ffffff",
  7088. "viewModeEnabled": false,
  7089. "width": 1024,
  7090. "zenModeEnabled": false,
  7091. "zoom": {
  7092. "value": 1,
  7093. },
  7094. }
  7095. `;
  7096. exports[`regression tests > given a selected element A and a not selected element B with higher z-index than A and given B partially overlaps A when there's a shift-click on the overlapped section B is added to the selection > [end of test] history 1`] = `
  7097. History {
  7098. "onHistoryChangedEmitter": Emitter {
  7099. "subscribers": [],
  7100. },
  7101. "redoStack": [],
  7102. "undoStack": [
  7103. HistoryEntry {
  7104. "appStateChange": AppStateChange {
  7105. "delta": Delta {
  7106. "deleted": {
  7107. "selectedElementIds": {
  7108. "id0": true,
  7109. },
  7110. },
  7111. "inserted": {
  7112. "selectedElementIds": {},
  7113. },
  7114. },
  7115. },
  7116. "elementsChange": ElementsChange {
  7117. "added": Map {},
  7118. "removed": Map {
  7119. "id0" => Delta {
  7120. "deleted": {
  7121. "angle": 0,
  7122. "backgroundColor": "#ffc9c9",
  7123. "boundElements": null,
  7124. "customData": undefined,
  7125. "fillStyle": "solid",
  7126. "frameId": null,
  7127. "groupIds": [],
  7128. "height": 1000,
  7129. "index": "a0",
  7130. "isDeleted": false,
  7131. "link": null,
  7132. "locked": false,
  7133. "opacity": 100,
  7134. "roughness": 1,
  7135. "roundness": {
  7136. "type": 3,
  7137. },
  7138. "strokeColor": "#1e1e1e",
  7139. "strokeStyle": "solid",
  7140. "strokeWidth": 2,
  7141. "type": "rectangle",
  7142. "width": 1000,
  7143. "x": 0,
  7144. "y": 0,
  7145. },
  7146. "inserted": {
  7147. "isDeleted": true,
  7148. },
  7149. },
  7150. },
  7151. "updated": Map {},
  7152. },
  7153. },
  7154. HistoryEntry {
  7155. "appStateChange": AppStateChange {
  7156. "delta": Delta {
  7157. "deleted": {
  7158. "selectedElementIds": {
  7159. "id1": true,
  7160. },
  7161. },
  7162. "inserted": {
  7163. "selectedElementIds": {
  7164. "id0": true,
  7165. },
  7166. },
  7167. },
  7168. },
  7169. "elementsChange": ElementsChange {
  7170. "added": Map {},
  7171. "removed": Map {
  7172. "id1" => Delta {
  7173. "deleted": {
  7174. "angle": 0,
  7175. "backgroundColor": "#ffc9c9",
  7176. "boundElements": null,
  7177. "customData": undefined,
  7178. "fillStyle": "solid",
  7179. "frameId": null,
  7180. "groupIds": [],
  7181. "height": 1000,
  7182. "index": "a1",
  7183. "isDeleted": false,
  7184. "link": null,
  7185. "locked": false,
  7186. "opacity": 100,
  7187. "roughness": 1,
  7188. "roundness": {
  7189. "type": 2,
  7190. },
  7191. "strokeColor": "#1e1e1e",
  7192. "strokeStyle": "solid",
  7193. "strokeWidth": 2,
  7194. "type": "ellipse",
  7195. "width": 1000,
  7196. "x": 500,
  7197. "y": 500,
  7198. },
  7199. "inserted": {
  7200. "isDeleted": true,
  7201. },
  7202. },
  7203. },
  7204. "updated": Map {},
  7205. },
  7206. },
  7207. HistoryEntry {
  7208. "appStateChange": AppStateChange {
  7209. "delta": Delta {
  7210. "deleted": {
  7211. "selectedElementIds": {
  7212. "id0": true,
  7213. },
  7214. },
  7215. "inserted": {
  7216. "selectedElementIds": {
  7217. "id1": true,
  7218. },
  7219. },
  7220. },
  7221. },
  7222. "elementsChange": ElementsChange {
  7223. "added": Map {},
  7224. "removed": Map {},
  7225. "updated": Map {},
  7226. },
  7227. },
  7228. HistoryEntry {
  7229. "appStateChange": AppStateChange {
  7230. "delta": Delta {
  7231. "deleted": {
  7232. "selectedElementIds": {
  7233. "id1": true,
  7234. },
  7235. },
  7236. "inserted": {
  7237. "selectedElementIds": {},
  7238. },
  7239. },
  7240. },
  7241. "elementsChange": ElementsChange {
  7242. "added": Map {},
  7243. "removed": Map {},
  7244. "updated": Map {},
  7245. },
  7246. },
  7247. ],
  7248. }
  7249. `;
  7250. exports[`regression tests > given a selected element A and a not selected element B with higher z-index than A and given B partially overlaps A when there's a shift-click on the overlapped section B is added to the selection > [end of test] number of elements 1`] = `0`;
  7251. exports[`regression tests > given a selected element A and a not selected element B with higher z-index than A and given B partially overlaps A when there's a shift-click on the overlapped section B is added to the selection > [end of test] number of renders 1`] = `14`;
  7252. exports[`regression tests > given selected element A with lower z-index than unselected element B and given B is partially over A when clicking intersection between A and B B should be selected on pointer up > [end of test] appState 1`] = `
  7253. {
  7254. "activeEmbeddable": null,
  7255. "activeTool": {
  7256. "customType": null,
  7257. "lastActiveTool": null,
  7258. "locked": false,
  7259. "type": "selection",
  7260. },
  7261. "collaborators": Map {},
  7262. "contextMenu": null,
  7263. "currentChartType": "bar",
  7264. "currentHoveredFontFamily": null,
  7265. "currentItemBackgroundColor": "transparent",
  7266. "currentItemEndArrowhead": "arrow",
  7267. "currentItemFillStyle": "solid",
  7268. "currentItemFontFamily": 5,
  7269. "currentItemFontSize": 20,
  7270. "currentItemOpacity": 100,
  7271. "currentItemRoughness": 1,
  7272. "currentItemRoundness": "round",
  7273. "currentItemStartArrowhead": null,
  7274. "currentItemStrokeColor": "#1e1e1e",
  7275. "currentItemStrokeStyle": "solid",
  7276. "currentItemStrokeWidth": 2,
  7277. "currentItemTextAlign": "left",
  7278. "cursorButton": "up",
  7279. "defaultSidebarDockedPreference": false,
  7280. "draggingElement": null,
  7281. "editingElement": null,
  7282. "editingFrame": null,
  7283. "editingGroupId": null,
  7284. "editingLinearElement": null,
  7285. "elementsToHighlight": null,
  7286. "errorMessage": null,
  7287. "exportBackground": true,
  7288. "exportEmbedScene": false,
  7289. "exportScale": 1,
  7290. "exportWithDarkMode": false,
  7291. "fileHandle": null,
  7292. "followedBy": Set {},
  7293. "frameRendering": {
  7294. "clip": true,
  7295. "enabled": true,
  7296. "name": true,
  7297. "outline": true,
  7298. },
  7299. "frameToHighlight": null,
  7300. "gridSize": null,
  7301. "height": 768,
  7302. "isBindingEnabled": true,
  7303. "isLoading": false,
  7304. "isResizing": false,
  7305. "isRotating": false,
  7306. "lastPointerDownWith": "mouse",
  7307. "multiElement": null,
  7308. "name": "Untitled-201933152653",
  7309. "objectsSnapModeEnabled": false,
  7310. "offsetLeft": 0,
  7311. "offsetTop": 0,
  7312. "openDialog": null,
  7313. "openMenu": null,
  7314. "openPopup": null,
  7315. "openSidebar": null,
  7316. "originSnapOffset": null,
  7317. "pasteDialog": {
  7318. "data": null,
  7319. "shown": false,
  7320. },
  7321. "penDetected": false,
  7322. "penMode": false,
  7323. "pendingImageElementId": null,
  7324. "previousSelectedElementIds": {
  7325. "id0": true,
  7326. },
  7327. "resizingElement": null,
  7328. "scrollX": 0,
  7329. "scrollY": 0,
  7330. "scrolledOutside": false,
  7331. "selectedElementIds": {
  7332. "id1": true,
  7333. },
  7334. "selectedElementsAreBeingDragged": false,
  7335. "selectedGroupIds": {},
  7336. "selectedLinearElement": null,
  7337. "selectionElement": null,
  7338. "shouldCacheIgnoreZoom": false,
  7339. "showHyperlinkPopup": false,
  7340. "showWelcomeScreen": true,
  7341. "snapLines": [],
  7342. "startBoundElement": null,
  7343. "stats": {
  7344. "open": false,
  7345. "panels": 3,
  7346. },
  7347. "suggestedBindings": [],
  7348. "theme": "light",
  7349. "toast": null,
  7350. "userToFollow": null,
  7351. "viewBackgroundColor": "#ffffff",
  7352. "viewModeEnabled": false,
  7353. "width": 1024,
  7354. "zenModeEnabled": false,
  7355. "zoom": {
  7356. "value": 1,
  7357. },
  7358. }
  7359. `;
  7360. exports[`regression tests > given selected element A with lower z-index than unselected element B and given B is partially over A when clicking intersection between A and B B should be selected on pointer up > [end of test] history 1`] = `
  7361. History {
  7362. "onHistoryChangedEmitter": Emitter {
  7363. "subscribers": [],
  7364. },
  7365. "redoStack": [],
  7366. "undoStack": [
  7367. HistoryEntry {
  7368. "appStateChange": AppStateChange {
  7369. "delta": Delta {
  7370. "deleted": {
  7371. "selectedElementIds": {
  7372. "id0": true,
  7373. },
  7374. },
  7375. "inserted": {
  7376. "selectedElementIds": {},
  7377. },
  7378. },
  7379. },
  7380. "elementsChange": ElementsChange {
  7381. "added": Map {},
  7382. "removed": Map {
  7383. "id0" => Delta {
  7384. "deleted": {
  7385. "angle": 0,
  7386. "backgroundColor": "red",
  7387. "boundElements": null,
  7388. "customData": undefined,
  7389. "fillStyle": "solid",
  7390. "frameId": null,
  7391. "groupIds": [],
  7392. "height": 1000,
  7393. "index": "a0",
  7394. "isDeleted": false,
  7395. "link": null,
  7396. "locked": false,
  7397. "opacity": 100,
  7398. "roughness": 1,
  7399. "roundness": {
  7400. "type": 3,
  7401. },
  7402. "strokeColor": "#1e1e1e",
  7403. "strokeStyle": "solid",
  7404. "strokeWidth": 2,
  7405. "type": "rectangle",
  7406. "width": 1000,
  7407. "x": 0,
  7408. "y": 0,
  7409. },
  7410. "inserted": {
  7411. "isDeleted": true,
  7412. },
  7413. },
  7414. "id1" => Delta {
  7415. "deleted": {
  7416. "angle": 0,
  7417. "backgroundColor": "red",
  7418. "boundElements": null,
  7419. "customData": undefined,
  7420. "fillStyle": "solid",
  7421. "frameId": null,
  7422. "groupIds": [],
  7423. "height": 500,
  7424. "index": "a1",
  7425. "isDeleted": false,
  7426. "link": null,
  7427. "locked": false,
  7428. "opacity": 100,
  7429. "roughness": 1,
  7430. "roundness": {
  7431. "type": 3,
  7432. },
  7433. "strokeColor": "#1e1e1e",
  7434. "strokeStyle": "solid",
  7435. "strokeWidth": 2,
  7436. "type": "rectangle",
  7437. "width": 500,
  7438. "x": 500,
  7439. "y": 500,
  7440. },
  7441. "inserted": {
  7442. "isDeleted": true,
  7443. },
  7444. },
  7445. },
  7446. "updated": Map {},
  7447. },
  7448. },
  7449. HistoryEntry {
  7450. "appStateChange": AppStateChange {
  7451. "delta": Delta {
  7452. "deleted": {
  7453. "selectedElementIds": {
  7454. "id1": true,
  7455. },
  7456. },
  7457. "inserted": {
  7458. "selectedElementIds": {
  7459. "id0": true,
  7460. },
  7461. },
  7462. },
  7463. },
  7464. "elementsChange": ElementsChange {
  7465. "added": Map {},
  7466. "removed": Map {},
  7467. "updated": Map {},
  7468. },
  7469. },
  7470. ],
  7471. }
  7472. `;
  7473. exports[`regression tests > given selected element A with lower z-index than unselected element B and given B is partially over A when clicking intersection between A and B B should be selected on pointer up > [end of test] number of elements 1`] = `0`;
  7474. exports[`regression tests > given selected element A with lower z-index than unselected element B and given B is partially over A when clicking intersection between A and B B should be selected on pointer up > [end of test] number of renders 1`] = `7`;
  7475. exports[`regression tests > given selected element A with lower z-index than unselected element B and given B is partially over A when dragging on intersection between A and B A should be dragged and keep being selected > [end of test] appState 1`] = `
  7476. {
  7477. "activeEmbeddable": null,
  7478. "activeTool": {
  7479. "customType": null,
  7480. "lastActiveTool": null,
  7481. "locked": false,
  7482. "type": "selection",
  7483. },
  7484. "collaborators": Map {},
  7485. "contextMenu": null,
  7486. "currentChartType": "bar",
  7487. "currentHoveredFontFamily": null,
  7488. "currentItemBackgroundColor": "transparent",
  7489. "currentItemEndArrowhead": "arrow",
  7490. "currentItemFillStyle": "solid",
  7491. "currentItemFontFamily": 5,
  7492. "currentItemFontSize": 20,
  7493. "currentItemOpacity": 100,
  7494. "currentItemRoughness": 1,
  7495. "currentItemRoundness": "round",
  7496. "currentItemStartArrowhead": null,
  7497. "currentItemStrokeColor": "#1e1e1e",
  7498. "currentItemStrokeStyle": "solid",
  7499. "currentItemStrokeWidth": 2,
  7500. "currentItemTextAlign": "left",
  7501. "cursorButton": "up",
  7502. "defaultSidebarDockedPreference": false,
  7503. "draggingElement": null,
  7504. "editingElement": null,
  7505. "editingFrame": null,
  7506. "editingGroupId": null,
  7507. "editingLinearElement": null,
  7508. "elementsToHighlight": null,
  7509. "errorMessage": null,
  7510. "exportBackground": true,
  7511. "exportEmbedScene": false,
  7512. "exportScale": 1,
  7513. "exportWithDarkMode": false,
  7514. "fileHandle": null,
  7515. "followedBy": Set {},
  7516. "frameRendering": {
  7517. "clip": true,
  7518. "enabled": true,
  7519. "name": true,
  7520. "outline": true,
  7521. },
  7522. "frameToHighlight": null,
  7523. "gridSize": null,
  7524. "height": 768,
  7525. "isBindingEnabled": true,
  7526. "isLoading": false,
  7527. "isResizing": false,
  7528. "isRotating": false,
  7529. "lastPointerDownWith": "mouse",
  7530. "multiElement": null,
  7531. "name": "Untitled-201933152653",
  7532. "objectsSnapModeEnabled": false,
  7533. "offsetLeft": 0,
  7534. "offsetTop": 0,
  7535. "openDialog": null,
  7536. "openMenu": null,
  7537. "openPopup": null,
  7538. "openSidebar": null,
  7539. "originSnapOffset": null,
  7540. "pasteDialog": {
  7541. "data": null,
  7542. "shown": false,
  7543. },
  7544. "penDetected": false,
  7545. "penMode": false,
  7546. "pendingImageElementId": null,
  7547. "previousSelectedElementIds": {
  7548. "id0": true,
  7549. },
  7550. "resizingElement": null,
  7551. "scrollX": 0,
  7552. "scrollY": 0,
  7553. "scrolledOutside": false,
  7554. "selectedElementIds": {
  7555. "id0": true,
  7556. },
  7557. "selectedElementsAreBeingDragged": false,
  7558. "selectedGroupIds": {},
  7559. "selectedLinearElement": null,
  7560. "selectionElement": null,
  7561. "shouldCacheIgnoreZoom": false,
  7562. "showHyperlinkPopup": false,
  7563. "showWelcomeScreen": true,
  7564. "snapLines": [],
  7565. "startBoundElement": null,
  7566. "stats": {
  7567. "open": false,
  7568. "panels": 3,
  7569. },
  7570. "suggestedBindings": [],
  7571. "theme": "light",
  7572. "toast": null,
  7573. "userToFollow": null,
  7574. "viewBackgroundColor": "#ffffff",
  7575. "viewModeEnabled": false,
  7576. "width": 1024,
  7577. "zenModeEnabled": false,
  7578. "zoom": {
  7579. "value": 1,
  7580. },
  7581. }
  7582. `;
  7583. exports[`regression tests > given selected element A with lower z-index than unselected element B and given B is partially over A when dragging on intersection between A and B A should be dragged and keep being selected > [end of test] history 1`] = `
  7584. History {
  7585. "onHistoryChangedEmitter": Emitter {
  7586. "subscribers": [],
  7587. },
  7588. "redoStack": [],
  7589. "undoStack": [
  7590. HistoryEntry {
  7591. "appStateChange": AppStateChange {
  7592. "delta": Delta {
  7593. "deleted": {
  7594. "selectedElementIds": {
  7595. "id0": true,
  7596. },
  7597. },
  7598. "inserted": {
  7599. "selectedElementIds": {},
  7600. },
  7601. },
  7602. },
  7603. "elementsChange": ElementsChange {
  7604. "added": Map {},
  7605. "removed": Map {
  7606. "id0" => Delta {
  7607. "deleted": {
  7608. "angle": 0,
  7609. "backgroundColor": "red",
  7610. "boundElements": null,
  7611. "customData": undefined,
  7612. "fillStyle": "solid",
  7613. "frameId": null,
  7614. "groupIds": [],
  7615. "height": 1000,
  7616. "index": "a0",
  7617. "isDeleted": false,
  7618. "link": null,
  7619. "locked": false,
  7620. "opacity": 100,
  7621. "roughness": 1,
  7622. "roundness": {
  7623. "type": 3,
  7624. },
  7625. "strokeColor": "#1e1e1e",
  7626. "strokeStyle": "solid",
  7627. "strokeWidth": 2,
  7628. "type": "rectangle",
  7629. "width": 1000,
  7630. "x": 0,
  7631. "y": 0,
  7632. },
  7633. "inserted": {
  7634. "isDeleted": true,
  7635. },
  7636. },
  7637. "id1" => Delta {
  7638. "deleted": {
  7639. "angle": 0,
  7640. "backgroundColor": "red",
  7641. "boundElements": null,
  7642. "customData": undefined,
  7643. "fillStyle": "solid",
  7644. "frameId": null,
  7645. "groupIds": [],
  7646. "height": 500,
  7647. "index": "a1",
  7648. "isDeleted": false,
  7649. "link": null,
  7650. "locked": false,
  7651. "opacity": 100,
  7652. "roughness": 1,
  7653. "roundness": {
  7654. "type": 3,
  7655. },
  7656. "strokeColor": "#1e1e1e",
  7657. "strokeStyle": "solid",
  7658. "strokeWidth": 2,
  7659. "type": "rectangle",
  7660. "width": 500,
  7661. "x": 500,
  7662. "y": 500,
  7663. },
  7664. "inserted": {
  7665. "isDeleted": true,
  7666. },
  7667. },
  7668. },
  7669. "updated": Map {},
  7670. },
  7671. },
  7672. HistoryEntry {
  7673. "appStateChange": AppStateChange {
  7674. "delta": Delta {
  7675. "deleted": {},
  7676. "inserted": {},
  7677. },
  7678. },
  7679. "elementsChange": ElementsChange {
  7680. "added": Map {},
  7681. "removed": Map {},
  7682. "updated": Map {
  7683. "id0" => Delta {
  7684. "deleted": {
  7685. "x": 100,
  7686. "y": 100,
  7687. },
  7688. "inserted": {
  7689. "x": 0,
  7690. "y": 0,
  7691. },
  7692. },
  7693. },
  7694. },
  7695. },
  7696. ],
  7697. }
  7698. `;
  7699. exports[`regression tests > given selected element A with lower z-index than unselected element B and given B is partially over A when dragging on intersection between A and B A should be dragged and keep being selected > [end of test] number of elements 1`] = `0`;
  7700. exports[`regression tests > given selected element A with lower z-index than unselected element B and given B is partially over A when dragging on intersection between A and B A should be dragged and keep being selected > [end of test] number of renders 1`] = `8`;
  7701. exports[`regression tests > key 2 selects rectangle tool > [end of test] appState 1`] = `
  7702. {
  7703. "activeEmbeddable": null,
  7704. "activeTool": {
  7705. "customType": null,
  7706. "lastActiveTool": null,
  7707. "locked": false,
  7708. "type": "selection",
  7709. },
  7710. "collaborators": Map {},
  7711. "contextMenu": null,
  7712. "currentChartType": "bar",
  7713. "currentHoveredFontFamily": null,
  7714. "currentItemBackgroundColor": "transparent",
  7715. "currentItemEndArrowhead": "arrow",
  7716. "currentItemFillStyle": "solid",
  7717. "currentItemFontFamily": 5,
  7718. "currentItemFontSize": 20,
  7719. "currentItemOpacity": 100,
  7720. "currentItemRoughness": 1,
  7721. "currentItemRoundness": "round",
  7722. "currentItemStartArrowhead": null,
  7723. "currentItemStrokeColor": "#1e1e1e",
  7724. "currentItemStrokeStyle": "solid",
  7725. "currentItemStrokeWidth": 2,
  7726. "currentItemTextAlign": "left",
  7727. "cursorButton": "up",
  7728. "defaultSidebarDockedPreference": false,
  7729. "draggingElement": null,
  7730. "editingElement": null,
  7731. "editingFrame": null,
  7732. "editingGroupId": null,
  7733. "editingLinearElement": null,
  7734. "elementsToHighlight": null,
  7735. "errorMessage": null,
  7736. "exportBackground": true,
  7737. "exportEmbedScene": false,
  7738. "exportScale": 1,
  7739. "exportWithDarkMode": false,
  7740. "fileHandle": null,
  7741. "followedBy": Set {},
  7742. "frameRendering": {
  7743. "clip": true,
  7744. "enabled": true,
  7745. "name": true,
  7746. "outline": true,
  7747. },
  7748. "frameToHighlight": null,
  7749. "gridSize": null,
  7750. "height": 768,
  7751. "isBindingEnabled": true,
  7752. "isLoading": false,
  7753. "isResizing": false,
  7754. "isRotating": false,
  7755. "lastPointerDownWith": "mouse",
  7756. "multiElement": null,
  7757. "name": "Untitled-201933152653",
  7758. "objectsSnapModeEnabled": false,
  7759. "offsetLeft": 0,
  7760. "offsetTop": 0,
  7761. "openDialog": null,
  7762. "openMenu": null,
  7763. "openPopup": null,
  7764. "openSidebar": null,
  7765. "originSnapOffset": null,
  7766. "pasteDialog": {
  7767. "data": null,
  7768. "shown": false,
  7769. },
  7770. "penDetected": false,
  7771. "penMode": false,
  7772. "pendingImageElementId": null,
  7773. "previousSelectedElementIds": {},
  7774. "resizingElement": null,
  7775. "scrollX": 0,
  7776. "scrollY": 0,
  7777. "scrolledOutside": false,
  7778. "selectedElementIds": {
  7779. "id0": true,
  7780. },
  7781. "selectedElementsAreBeingDragged": false,
  7782. "selectedGroupIds": {},
  7783. "selectedLinearElement": null,
  7784. "selectionElement": null,
  7785. "shouldCacheIgnoreZoom": false,
  7786. "showHyperlinkPopup": false,
  7787. "showWelcomeScreen": true,
  7788. "snapLines": [],
  7789. "startBoundElement": null,
  7790. "stats": {
  7791. "open": false,
  7792. "panels": 3,
  7793. },
  7794. "suggestedBindings": [],
  7795. "theme": "light",
  7796. "toast": null,
  7797. "userToFollow": null,
  7798. "viewBackgroundColor": "#ffffff",
  7799. "viewModeEnabled": false,
  7800. "width": 1024,
  7801. "zenModeEnabled": false,
  7802. "zoom": {
  7803. "value": 1,
  7804. },
  7805. }
  7806. `;
  7807. exports[`regression tests > key 2 selects rectangle tool > [end of test] history 1`] = `
  7808. History {
  7809. "onHistoryChangedEmitter": Emitter {
  7810. "subscribers": [],
  7811. },
  7812. "redoStack": [],
  7813. "undoStack": [
  7814. HistoryEntry {
  7815. "appStateChange": AppStateChange {
  7816. "delta": Delta {
  7817. "deleted": {
  7818. "selectedElementIds": {
  7819. "id0": true,
  7820. },
  7821. },
  7822. "inserted": {
  7823. "selectedElementIds": {},
  7824. },
  7825. },
  7826. },
  7827. "elementsChange": ElementsChange {
  7828. "added": Map {},
  7829. "removed": Map {
  7830. "id0" => Delta {
  7831. "deleted": {
  7832. "angle": 0,
  7833. "backgroundColor": "transparent",
  7834. "boundElements": null,
  7835. "customData": undefined,
  7836. "fillStyle": "solid",
  7837. "frameId": null,
  7838. "groupIds": [],
  7839. "height": 10,
  7840. "index": "a0",
  7841. "isDeleted": false,
  7842. "link": null,
  7843. "locked": false,
  7844. "opacity": 100,
  7845. "roughness": 1,
  7846. "roundness": {
  7847. "type": 3,
  7848. },
  7849. "strokeColor": "#1e1e1e",
  7850. "strokeStyle": "solid",
  7851. "strokeWidth": 2,
  7852. "type": "rectangle",
  7853. "width": 10,
  7854. "x": 10,
  7855. "y": 10,
  7856. },
  7857. "inserted": {
  7858. "isDeleted": true,
  7859. },
  7860. },
  7861. },
  7862. "updated": Map {},
  7863. },
  7864. },
  7865. ],
  7866. }
  7867. `;
  7868. exports[`regression tests > key 2 selects rectangle tool > [end of test] number of elements 1`] = `0`;
  7869. exports[`regression tests > key 2 selects rectangle tool > [end of test] number of renders 1`] = `7`;
  7870. exports[`regression tests > key 3 selects diamond tool > [end of test] appState 1`] = `
  7871. {
  7872. "activeEmbeddable": null,
  7873. "activeTool": {
  7874. "customType": null,
  7875. "lastActiveTool": null,
  7876. "locked": false,
  7877. "type": "selection",
  7878. },
  7879. "collaborators": Map {},
  7880. "contextMenu": null,
  7881. "currentChartType": "bar",
  7882. "currentHoveredFontFamily": null,
  7883. "currentItemBackgroundColor": "transparent",
  7884. "currentItemEndArrowhead": "arrow",
  7885. "currentItemFillStyle": "solid",
  7886. "currentItemFontFamily": 5,
  7887. "currentItemFontSize": 20,
  7888. "currentItemOpacity": 100,
  7889. "currentItemRoughness": 1,
  7890. "currentItemRoundness": "round",
  7891. "currentItemStartArrowhead": null,
  7892. "currentItemStrokeColor": "#1e1e1e",
  7893. "currentItemStrokeStyle": "solid",
  7894. "currentItemStrokeWidth": 2,
  7895. "currentItemTextAlign": "left",
  7896. "cursorButton": "up",
  7897. "defaultSidebarDockedPreference": false,
  7898. "draggingElement": null,
  7899. "editingElement": null,
  7900. "editingFrame": null,
  7901. "editingGroupId": null,
  7902. "editingLinearElement": null,
  7903. "elementsToHighlight": null,
  7904. "errorMessage": null,
  7905. "exportBackground": true,
  7906. "exportEmbedScene": false,
  7907. "exportScale": 1,
  7908. "exportWithDarkMode": false,
  7909. "fileHandle": null,
  7910. "followedBy": Set {},
  7911. "frameRendering": {
  7912. "clip": true,
  7913. "enabled": true,
  7914. "name": true,
  7915. "outline": true,
  7916. },
  7917. "frameToHighlight": null,
  7918. "gridSize": null,
  7919. "height": 768,
  7920. "isBindingEnabled": true,
  7921. "isLoading": false,
  7922. "isResizing": false,
  7923. "isRotating": false,
  7924. "lastPointerDownWith": "mouse",
  7925. "multiElement": null,
  7926. "name": "Untitled-201933152653",
  7927. "objectsSnapModeEnabled": false,
  7928. "offsetLeft": 0,
  7929. "offsetTop": 0,
  7930. "openDialog": null,
  7931. "openMenu": null,
  7932. "openPopup": null,
  7933. "openSidebar": null,
  7934. "originSnapOffset": null,
  7935. "pasteDialog": {
  7936. "data": null,
  7937. "shown": false,
  7938. },
  7939. "penDetected": false,
  7940. "penMode": false,
  7941. "pendingImageElementId": null,
  7942. "previousSelectedElementIds": {},
  7943. "resizingElement": null,
  7944. "scrollX": 0,
  7945. "scrollY": 0,
  7946. "scrolledOutside": false,
  7947. "selectedElementIds": {
  7948. "id0": true,
  7949. },
  7950. "selectedElementsAreBeingDragged": false,
  7951. "selectedGroupIds": {},
  7952. "selectedLinearElement": null,
  7953. "selectionElement": null,
  7954. "shouldCacheIgnoreZoom": false,
  7955. "showHyperlinkPopup": false,
  7956. "showWelcomeScreen": true,
  7957. "snapLines": [],
  7958. "startBoundElement": null,
  7959. "stats": {
  7960. "open": false,
  7961. "panels": 3,
  7962. },
  7963. "suggestedBindings": [],
  7964. "theme": "light",
  7965. "toast": null,
  7966. "userToFollow": null,
  7967. "viewBackgroundColor": "#ffffff",
  7968. "viewModeEnabled": false,
  7969. "width": 1024,
  7970. "zenModeEnabled": false,
  7971. "zoom": {
  7972. "value": 1,
  7973. },
  7974. }
  7975. `;
  7976. exports[`regression tests > key 3 selects diamond tool > [end of test] history 1`] = `
  7977. History {
  7978. "onHistoryChangedEmitter": Emitter {
  7979. "subscribers": [],
  7980. },
  7981. "redoStack": [],
  7982. "undoStack": [
  7983. HistoryEntry {
  7984. "appStateChange": AppStateChange {
  7985. "delta": Delta {
  7986. "deleted": {
  7987. "selectedElementIds": {
  7988. "id0": true,
  7989. },
  7990. },
  7991. "inserted": {
  7992. "selectedElementIds": {},
  7993. },
  7994. },
  7995. },
  7996. "elementsChange": ElementsChange {
  7997. "added": Map {},
  7998. "removed": Map {
  7999. "id0" => Delta {
  8000. "deleted": {
  8001. "angle": 0,
  8002. "backgroundColor": "transparent",
  8003. "boundElements": null,
  8004. "customData": undefined,
  8005. "fillStyle": "solid",
  8006. "frameId": null,
  8007. "groupIds": [],
  8008. "height": 10,
  8009. "index": "a0",
  8010. "isDeleted": false,
  8011. "link": null,
  8012. "locked": false,
  8013. "opacity": 100,
  8014. "roughness": 1,
  8015. "roundness": {
  8016. "type": 2,
  8017. },
  8018. "strokeColor": "#1e1e1e",
  8019. "strokeStyle": "solid",
  8020. "strokeWidth": 2,
  8021. "type": "diamond",
  8022. "width": 10,
  8023. "x": 10,
  8024. "y": 10,
  8025. },
  8026. "inserted": {
  8027. "isDeleted": true,
  8028. },
  8029. },
  8030. },
  8031. "updated": Map {},
  8032. },
  8033. },
  8034. ],
  8035. }
  8036. `;
  8037. exports[`regression tests > key 3 selects diamond tool > [end of test] number of elements 1`] = `0`;
  8038. exports[`regression tests > key 3 selects diamond tool > [end of test] number of renders 1`] = `7`;
  8039. exports[`regression tests > key 4 selects ellipse tool > [end of test] appState 1`] = `
  8040. {
  8041. "activeEmbeddable": null,
  8042. "activeTool": {
  8043. "customType": null,
  8044. "lastActiveTool": null,
  8045. "locked": false,
  8046. "type": "selection",
  8047. },
  8048. "collaborators": Map {},
  8049. "contextMenu": null,
  8050. "currentChartType": "bar",
  8051. "currentHoveredFontFamily": null,
  8052. "currentItemBackgroundColor": "transparent",
  8053. "currentItemEndArrowhead": "arrow",
  8054. "currentItemFillStyle": "solid",
  8055. "currentItemFontFamily": 5,
  8056. "currentItemFontSize": 20,
  8057. "currentItemOpacity": 100,
  8058. "currentItemRoughness": 1,
  8059. "currentItemRoundness": "round",
  8060. "currentItemStartArrowhead": null,
  8061. "currentItemStrokeColor": "#1e1e1e",
  8062. "currentItemStrokeStyle": "solid",
  8063. "currentItemStrokeWidth": 2,
  8064. "currentItemTextAlign": "left",
  8065. "cursorButton": "up",
  8066. "defaultSidebarDockedPreference": false,
  8067. "draggingElement": null,
  8068. "editingElement": null,
  8069. "editingFrame": null,
  8070. "editingGroupId": null,
  8071. "editingLinearElement": null,
  8072. "elementsToHighlight": null,
  8073. "errorMessage": null,
  8074. "exportBackground": true,
  8075. "exportEmbedScene": false,
  8076. "exportScale": 1,
  8077. "exportWithDarkMode": false,
  8078. "fileHandle": null,
  8079. "followedBy": Set {},
  8080. "frameRendering": {
  8081. "clip": true,
  8082. "enabled": true,
  8083. "name": true,
  8084. "outline": true,
  8085. },
  8086. "frameToHighlight": null,
  8087. "gridSize": null,
  8088. "height": 768,
  8089. "isBindingEnabled": true,
  8090. "isLoading": false,
  8091. "isResizing": false,
  8092. "isRotating": false,
  8093. "lastPointerDownWith": "mouse",
  8094. "multiElement": null,
  8095. "name": "Untitled-201933152653",
  8096. "objectsSnapModeEnabled": false,
  8097. "offsetLeft": 0,
  8098. "offsetTop": 0,
  8099. "openDialog": null,
  8100. "openMenu": null,
  8101. "openPopup": null,
  8102. "openSidebar": null,
  8103. "originSnapOffset": null,
  8104. "pasteDialog": {
  8105. "data": null,
  8106. "shown": false,
  8107. },
  8108. "penDetected": false,
  8109. "penMode": false,
  8110. "pendingImageElementId": null,
  8111. "previousSelectedElementIds": {},
  8112. "resizingElement": null,
  8113. "scrollX": 0,
  8114. "scrollY": 0,
  8115. "scrolledOutside": false,
  8116. "selectedElementIds": {
  8117. "id0": true,
  8118. },
  8119. "selectedElementsAreBeingDragged": false,
  8120. "selectedGroupIds": {},
  8121. "selectedLinearElement": null,
  8122. "selectionElement": null,
  8123. "shouldCacheIgnoreZoom": false,
  8124. "showHyperlinkPopup": false,
  8125. "showWelcomeScreen": true,
  8126. "snapLines": [],
  8127. "startBoundElement": null,
  8128. "stats": {
  8129. "open": false,
  8130. "panels": 3,
  8131. },
  8132. "suggestedBindings": [],
  8133. "theme": "light",
  8134. "toast": null,
  8135. "userToFollow": null,
  8136. "viewBackgroundColor": "#ffffff",
  8137. "viewModeEnabled": false,
  8138. "width": 1024,
  8139. "zenModeEnabled": false,
  8140. "zoom": {
  8141. "value": 1,
  8142. },
  8143. }
  8144. `;
  8145. exports[`regression tests > key 4 selects ellipse tool > [end of test] history 1`] = `
  8146. History {
  8147. "onHistoryChangedEmitter": Emitter {
  8148. "subscribers": [],
  8149. },
  8150. "redoStack": [],
  8151. "undoStack": [
  8152. HistoryEntry {
  8153. "appStateChange": AppStateChange {
  8154. "delta": Delta {
  8155. "deleted": {
  8156. "selectedElementIds": {
  8157. "id0": true,
  8158. },
  8159. },
  8160. "inserted": {
  8161. "selectedElementIds": {},
  8162. },
  8163. },
  8164. },
  8165. "elementsChange": ElementsChange {
  8166. "added": Map {},
  8167. "removed": Map {
  8168. "id0" => Delta {
  8169. "deleted": {
  8170. "angle": 0,
  8171. "backgroundColor": "transparent",
  8172. "boundElements": null,
  8173. "customData": undefined,
  8174. "fillStyle": "solid",
  8175. "frameId": null,
  8176. "groupIds": [],
  8177. "height": 10,
  8178. "index": "a0",
  8179. "isDeleted": false,
  8180. "link": null,
  8181. "locked": false,
  8182. "opacity": 100,
  8183. "roughness": 1,
  8184. "roundness": {
  8185. "type": 2,
  8186. },
  8187. "strokeColor": "#1e1e1e",
  8188. "strokeStyle": "solid",
  8189. "strokeWidth": 2,
  8190. "type": "ellipse",
  8191. "width": 10,
  8192. "x": 10,
  8193. "y": 10,
  8194. },
  8195. "inserted": {
  8196. "isDeleted": true,
  8197. },
  8198. },
  8199. },
  8200. "updated": Map {},
  8201. },
  8202. },
  8203. ],
  8204. }
  8205. `;
  8206. exports[`regression tests > key 4 selects ellipse tool > [end of test] number of elements 1`] = `0`;
  8207. exports[`regression tests > key 4 selects ellipse tool > [end of test] number of renders 1`] = `7`;
  8208. exports[`regression tests > key 5 selects arrow tool > [end of test] appState 1`] = `
  8209. {
  8210. "activeEmbeddable": null,
  8211. "activeTool": {
  8212. "customType": null,
  8213. "lastActiveTool": null,
  8214. "locked": false,
  8215. "type": "selection",
  8216. },
  8217. "collaborators": Map {},
  8218. "contextMenu": null,
  8219. "currentChartType": "bar",
  8220. "currentHoveredFontFamily": null,
  8221. "currentItemBackgroundColor": "transparent",
  8222. "currentItemEndArrowhead": "arrow",
  8223. "currentItemFillStyle": "solid",
  8224. "currentItemFontFamily": 5,
  8225. "currentItemFontSize": 20,
  8226. "currentItemOpacity": 100,
  8227. "currentItemRoughness": 1,
  8228. "currentItemRoundness": "round",
  8229. "currentItemStartArrowhead": null,
  8230. "currentItemStrokeColor": "#1e1e1e",
  8231. "currentItemStrokeStyle": "solid",
  8232. "currentItemStrokeWidth": 2,
  8233. "currentItemTextAlign": "left",
  8234. "cursorButton": "up",
  8235. "defaultSidebarDockedPreference": false,
  8236. "draggingElement": null,
  8237. "editingElement": null,
  8238. "editingFrame": null,
  8239. "editingGroupId": null,
  8240. "editingLinearElement": null,
  8241. "elementsToHighlight": null,
  8242. "errorMessage": null,
  8243. "exportBackground": true,
  8244. "exportEmbedScene": false,
  8245. "exportScale": 1,
  8246. "exportWithDarkMode": false,
  8247. "fileHandle": null,
  8248. "followedBy": Set {},
  8249. "frameRendering": {
  8250. "clip": true,
  8251. "enabled": true,
  8252. "name": true,
  8253. "outline": true,
  8254. },
  8255. "frameToHighlight": null,
  8256. "gridSize": null,
  8257. "height": 768,
  8258. "isBindingEnabled": true,
  8259. "isLoading": false,
  8260. "isResizing": false,
  8261. "isRotating": false,
  8262. "lastPointerDownWith": "mouse",
  8263. "multiElement": null,
  8264. "name": "Untitled-201933152653",
  8265. "objectsSnapModeEnabled": false,
  8266. "offsetLeft": 0,
  8267. "offsetTop": 0,
  8268. "openDialog": null,
  8269. "openMenu": null,
  8270. "openPopup": null,
  8271. "openSidebar": null,
  8272. "originSnapOffset": null,
  8273. "pasteDialog": {
  8274. "data": null,
  8275. "shown": false,
  8276. },
  8277. "penDetected": false,
  8278. "penMode": false,
  8279. "pendingImageElementId": null,
  8280. "previousSelectedElementIds": {},
  8281. "resizingElement": null,
  8282. "scrollX": 0,
  8283. "scrollY": 0,
  8284. "scrolledOutside": false,
  8285. "selectedElementIds": {
  8286. "id0": true,
  8287. },
  8288. "selectedElementsAreBeingDragged": false,
  8289. "selectedGroupIds": {},
  8290. "selectedLinearElement": LinearElementEditor {
  8291. "elementId": "id0",
  8292. "endBindingElement": "keep",
  8293. "hoverPointIndex": -1,
  8294. "isDragging": false,
  8295. "lastUncommittedPoint": null,
  8296. "pointerDownState": {
  8297. "lastClickedPoint": -1,
  8298. "origin": null,
  8299. "prevSelectedPointsIndices": null,
  8300. "segmentMidpoint": {
  8301. "added": false,
  8302. "index": null,
  8303. "value": null,
  8304. },
  8305. },
  8306. "pointerOffset": {
  8307. "x": 0,
  8308. "y": 0,
  8309. },
  8310. "segmentMidPointHoveredCoords": null,
  8311. "selectedPointsIndices": null,
  8312. "startBindingElement": "keep",
  8313. },
  8314. "selectionElement": null,
  8315. "shouldCacheIgnoreZoom": false,
  8316. "showHyperlinkPopup": false,
  8317. "showWelcomeScreen": true,
  8318. "snapLines": [],
  8319. "startBoundElement": null,
  8320. "stats": {
  8321. "open": false,
  8322. "panels": 3,
  8323. },
  8324. "suggestedBindings": [],
  8325. "theme": "light",
  8326. "toast": null,
  8327. "userToFollow": null,
  8328. "viewBackgroundColor": "#ffffff",
  8329. "viewModeEnabled": false,
  8330. "width": 1024,
  8331. "zenModeEnabled": false,
  8332. "zoom": {
  8333. "value": 1,
  8334. },
  8335. }
  8336. `;
  8337. exports[`regression tests > key 5 selects arrow tool > [end of test] history 1`] = `
  8338. History {
  8339. "onHistoryChangedEmitter": Emitter {
  8340. "subscribers": [],
  8341. },
  8342. "redoStack": [],
  8343. "undoStack": [
  8344. HistoryEntry {
  8345. "appStateChange": AppStateChange {
  8346. "delta": Delta {
  8347. "deleted": {
  8348. "selectedElementIds": {
  8349. "id0": true,
  8350. },
  8351. "selectedLinearElementId": "id0",
  8352. },
  8353. "inserted": {
  8354. "selectedElementIds": {},
  8355. "selectedLinearElementId": null,
  8356. },
  8357. },
  8358. },
  8359. "elementsChange": ElementsChange {
  8360. "added": Map {},
  8361. "removed": Map {
  8362. "id0" => Delta {
  8363. "deleted": {
  8364. "angle": 0,
  8365. "backgroundColor": "transparent",
  8366. "boundElements": null,
  8367. "customData": undefined,
  8368. "endArrowhead": "arrow",
  8369. "endBinding": null,
  8370. "fillStyle": "solid",
  8371. "frameId": null,
  8372. "groupIds": [],
  8373. "height": 10,
  8374. "index": "a0",
  8375. "isDeleted": false,
  8376. "lastCommittedPoint": null,
  8377. "link": null,
  8378. "locked": false,
  8379. "opacity": 100,
  8380. "points": [
  8381. [
  8382. 0,
  8383. 0,
  8384. ],
  8385. [
  8386. 10,
  8387. 10,
  8388. ],
  8389. ],
  8390. "roughness": 1,
  8391. "roundness": {
  8392. "type": 2,
  8393. },
  8394. "startArrowhead": null,
  8395. "startBinding": null,
  8396. "strokeColor": "#1e1e1e",
  8397. "strokeStyle": "solid",
  8398. "strokeWidth": 2,
  8399. "type": "arrow",
  8400. "width": 10,
  8401. "x": 10,
  8402. "y": 10,
  8403. },
  8404. "inserted": {
  8405. "isDeleted": true,
  8406. },
  8407. },
  8408. },
  8409. "updated": Map {},
  8410. },
  8411. },
  8412. ],
  8413. }
  8414. `;
  8415. exports[`regression tests > key 5 selects arrow tool > [end of test] number of elements 1`] = `0`;
  8416. exports[`regression tests > key 5 selects arrow tool > [end of test] number of renders 1`] = `7`;
  8417. exports[`regression tests > key 6 selects line tool > [end of test] appState 1`] = `
  8418. {
  8419. "activeEmbeddable": null,
  8420. "activeTool": {
  8421. "customType": null,
  8422. "lastActiveTool": null,
  8423. "locked": false,
  8424. "type": "selection",
  8425. },
  8426. "collaborators": Map {},
  8427. "contextMenu": null,
  8428. "currentChartType": "bar",
  8429. "currentHoveredFontFamily": null,
  8430. "currentItemBackgroundColor": "transparent",
  8431. "currentItemEndArrowhead": "arrow",
  8432. "currentItemFillStyle": "solid",
  8433. "currentItemFontFamily": 5,
  8434. "currentItemFontSize": 20,
  8435. "currentItemOpacity": 100,
  8436. "currentItemRoughness": 1,
  8437. "currentItemRoundness": "round",
  8438. "currentItemStartArrowhead": null,
  8439. "currentItemStrokeColor": "#1e1e1e",
  8440. "currentItemStrokeStyle": "solid",
  8441. "currentItemStrokeWidth": 2,
  8442. "currentItemTextAlign": "left",
  8443. "cursorButton": "up",
  8444. "defaultSidebarDockedPreference": false,
  8445. "draggingElement": null,
  8446. "editingElement": null,
  8447. "editingFrame": null,
  8448. "editingGroupId": null,
  8449. "editingLinearElement": null,
  8450. "elementsToHighlight": null,
  8451. "errorMessage": null,
  8452. "exportBackground": true,
  8453. "exportEmbedScene": false,
  8454. "exportScale": 1,
  8455. "exportWithDarkMode": false,
  8456. "fileHandle": null,
  8457. "followedBy": Set {},
  8458. "frameRendering": {
  8459. "clip": true,
  8460. "enabled": true,
  8461. "name": true,
  8462. "outline": true,
  8463. },
  8464. "frameToHighlight": null,
  8465. "gridSize": null,
  8466. "height": 768,
  8467. "isBindingEnabled": true,
  8468. "isLoading": false,
  8469. "isResizing": false,
  8470. "isRotating": false,
  8471. "lastPointerDownWith": "mouse",
  8472. "multiElement": null,
  8473. "name": "Untitled-201933152653",
  8474. "objectsSnapModeEnabled": false,
  8475. "offsetLeft": 0,
  8476. "offsetTop": 0,
  8477. "openDialog": null,
  8478. "openMenu": null,
  8479. "openPopup": null,
  8480. "openSidebar": null,
  8481. "originSnapOffset": null,
  8482. "pasteDialog": {
  8483. "data": null,
  8484. "shown": false,
  8485. },
  8486. "penDetected": false,
  8487. "penMode": false,
  8488. "pendingImageElementId": null,
  8489. "previousSelectedElementIds": {},
  8490. "resizingElement": null,
  8491. "scrollX": 0,
  8492. "scrollY": 0,
  8493. "scrolledOutside": false,
  8494. "selectedElementIds": {
  8495. "id0": true,
  8496. },
  8497. "selectedElementsAreBeingDragged": false,
  8498. "selectedGroupIds": {},
  8499. "selectedLinearElement": LinearElementEditor {
  8500. "elementId": "id0",
  8501. "endBindingElement": "keep",
  8502. "hoverPointIndex": -1,
  8503. "isDragging": false,
  8504. "lastUncommittedPoint": null,
  8505. "pointerDownState": {
  8506. "lastClickedPoint": -1,
  8507. "origin": null,
  8508. "prevSelectedPointsIndices": null,
  8509. "segmentMidpoint": {
  8510. "added": false,
  8511. "index": null,
  8512. "value": null,
  8513. },
  8514. },
  8515. "pointerOffset": {
  8516. "x": 0,
  8517. "y": 0,
  8518. },
  8519. "segmentMidPointHoveredCoords": null,
  8520. "selectedPointsIndices": null,
  8521. "startBindingElement": "keep",
  8522. },
  8523. "selectionElement": null,
  8524. "shouldCacheIgnoreZoom": false,
  8525. "showHyperlinkPopup": false,
  8526. "showWelcomeScreen": true,
  8527. "snapLines": [],
  8528. "startBoundElement": null,
  8529. "stats": {
  8530. "open": false,
  8531. "panels": 3,
  8532. },
  8533. "suggestedBindings": [],
  8534. "theme": "light",
  8535. "toast": null,
  8536. "userToFollow": null,
  8537. "viewBackgroundColor": "#ffffff",
  8538. "viewModeEnabled": false,
  8539. "width": 1024,
  8540. "zenModeEnabled": false,
  8541. "zoom": {
  8542. "value": 1,
  8543. },
  8544. }
  8545. `;
  8546. exports[`regression tests > key 6 selects line tool > [end of test] history 1`] = `
  8547. History {
  8548. "onHistoryChangedEmitter": Emitter {
  8549. "subscribers": [],
  8550. },
  8551. "redoStack": [],
  8552. "undoStack": [
  8553. HistoryEntry {
  8554. "appStateChange": AppStateChange {
  8555. "delta": Delta {
  8556. "deleted": {
  8557. "selectedElementIds": {
  8558. "id0": true,
  8559. },
  8560. "selectedLinearElementId": "id0",
  8561. },
  8562. "inserted": {
  8563. "selectedElementIds": {},
  8564. "selectedLinearElementId": null,
  8565. },
  8566. },
  8567. },
  8568. "elementsChange": ElementsChange {
  8569. "added": Map {},
  8570. "removed": Map {
  8571. "id0" => Delta {
  8572. "deleted": {
  8573. "angle": 0,
  8574. "backgroundColor": "transparent",
  8575. "boundElements": null,
  8576. "customData": undefined,
  8577. "endArrowhead": null,
  8578. "endBinding": null,
  8579. "fillStyle": "solid",
  8580. "frameId": null,
  8581. "groupIds": [],
  8582. "height": 10,
  8583. "index": "a0",
  8584. "isDeleted": false,
  8585. "lastCommittedPoint": null,
  8586. "link": null,
  8587. "locked": false,
  8588. "opacity": 100,
  8589. "points": [
  8590. [
  8591. 0,
  8592. 0,
  8593. ],
  8594. [
  8595. 10,
  8596. 10,
  8597. ],
  8598. ],
  8599. "roughness": 1,
  8600. "roundness": {
  8601. "type": 2,
  8602. },
  8603. "startArrowhead": null,
  8604. "startBinding": null,
  8605. "strokeColor": "#1e1e1e",
  8606. "strokeStyle": "solid",
  8607. "strokeWidth": 2,
  8608. "type": "line",
  8609. "width": 10,
  8610. "x": 10,
  8611. "y": 10,
  8612. },
  8613. "inserted": {
  8614. "isDeleted": true,
  8615. },
  8616. },
  8617. },
  8618. "updated": Map {},
  8619. },
  8620. },
  8621. ],
  8622. }
  8623. `;
  8624. exports[`regression tests > key 6 selects line tool > [end of test] number of elements 1`] = `0`;
  8625. exports[`regression tests > key 6 selects line tool > [end of test] number of renders 1`] = `7`;
  8626. exports[`regression tests > key 7 selects freedraw tool > [end of test] appState 1`] = `
  8627. {
  8628. "activeEmbeddable": null,
  8629. "activeTool": {
  8630. "customType": null,
  8631. "lastActiveTool": null,
  8632. "locked": false,
  8633. "type": "freedraw",
  8634. },
  8635. "collaborators": Map {},
  8636. "contextMenu": null,
  8637. "currentChartType": "bar",
  8638. "currentHoveredFontFamily": null,
  8639. "currentItemBackgroundColor": "transparent",
  8640. "currentItemEndArrowhead": "arrow",
  8641. "currentItemFillStyle": "solid",
  8642. "currentItemFontFamily": 5,
  8643. "currentItemFontSize": 20,
  8644. "currentItemOpacity": 100,
  8645. "currentItemRoughness": 1,
  8646. "currentItemRoundness": "round",
  8647. "currentItemStartArrowhead": null,
  8648. "currentItemStrokeColor": "#1e1e1e",
  8649. "currentItemStrokeStyle": "solid",
  8650. "currentItemStrokeWidth": 2,
  8651. "currentItemTextAlign": "left",
  8652. "cursorButton": "up",
  8653. "defaultSidebarDockedPreference": false,
  8654. "draggingElement": null,
  8655. "editingElement": null,
  8656. "editingFrame": null,
  8657. "editingGroupId": null,
  8658. "editingLinearElement": null,
  8659. "elementsToHighlight": null,
  8660. "errorMessage": null,
  8661. "exportBackground": true,
  8662. "exportEmbedScene": false,
  8663. "exportScale": 1,
  8664. "exportWithDarkMode": false,
  8665. "fileHandle": null,
  8666. "followedBy": Set {},
  8667. "frameRendering": {
  8668. "clip": true,
  8669. "enabled": true,
  8670. "name": true,
  8671. "outline": true,
  8672. },
  8673. "frameToHighlight": null,
  8674. "gridSize": null,
  8675. "height": 768,
  8676. "isBindingEnabled": true,
  8677. "isLoading": false,
  8678. "isResizing": false,
  8679. "isRotating": false,
  8680. "lastPointerDownWith": "mouse",
  8681. "multiElement": null,
  8682. "name": "Untitled-201933152653",
  8683. "objectsSnapModeEnabled": false,
  8684. "offsetLeft": 0,
  8685. "offsetTop": 0,
  8686. "openDialog": null,
  8687. "openMenu": null,
  8688. "openPopup": null,
  8689. "openSidebar": null,
  8690. "originSnapOffset": null,
  8691. "pasteDialog": {
  8692. "data": null,
  8693. "shown": false,
  8694. },
  8695. "penDetected": false,
  8696. "penMode": false,
  8697. "pendingImageElementId": null,
  8698. "previousSelectedElementIds": {},
  8699. "resizingElement": null,
  8700. "scrollX": 0,
  8701. "scrollY": 0,
  8702. "scrolledOutside": false,
  8703. "selectedElementIds": {},
  8704. "selectedElementsAreBeingDragged": false,
  8705. "selectedGroupIds": {},
  8706. "selectedLinearElement": null,
  8707. "selectionElement": null,
  8708. "shouldCacheIgnoreZoom": false,
  8709. "showHyperlinkPopup": false,
  8710. "showWelcomeScreen": true,
  8711. "snapLines": [],
  8712. "startBoundElement": null,
  8713. "stats": {
  8714. "open": false,
  8715. "panels": 3,
  8716. },
  8717. "suggestedBindings": [],
  8718. "theme": "light",
  8719. "toast": null,
  8720. "userToFollow": null,
  8721. "viewBackgroundColor": "#ffffff",
  8722. "viewModeEnabled": false,
  8723. "width": 1024,
  8724. "zenModeEnabled": false,
  8725. "zoom": {
  8726. "value": 1,
  8727. },
  8728. }
  8729. `;
  8730. exports[`regression tests > key 7 selects freedraw tool > [end of test] history 1`] = `
  8731. History {
  8732. "onHistoryChangedEmitter": Emitter {
  8733. "subscribers": [],
  8734. },
  8735. "redoStack": [],
  8736. "undoStack": [
  8737. HistoryEntry {
  8738. "appStateChange": AppStateChange {
  8739. "delta": Delta {
  8740. "deleted": {},
  8741. "inserted": {},
  8742. },
  8743. },
  8744. "elementsChange": ElementsChange {
  8745. "added": Map {},
  8746. "removed": Map {
  8747. "id0" => Delta {
  8748. "deleted": {
  8749. "angle": 0,
  8750. "backgroundColor": "transparent",
  8751. "boundElements": null,
  8752. "customData": undefined,
  8753. "fillStyle": "solid",
  8754. "frameId": null,
  8755. "groupIds": [],
  8756. "height": 10,
  8757. "index": "a0",
  8758. "isDeleted": false,
  8759. "lastCommittedPoint": [
  8760. 10,
  8761. 10,
  8762. ],
  8763. "link": null,
  8764. "locked": false,
  8765. "opacity": 100,
  8766. "points": [
  8767. [
  8768. 0,
  8769. 0,
  8770. ],
  8771. [
  8772. 10,
  8773. 10,
  8774. ],
  8775. [
  8776. 10,
  8777. 10,
  8778. ],
  8779. ],
  8780. "pressures": [
  8781. 0,
  8782. 0,
  8783. 0,
  8784. ],
  8785. "roughness": 1,
  8786. "roundness": null,
  8787. "simulatePressure": false,
  8788. "strokeColor": "#1e1e1e",
  8789. "strokeStyle": "solid",
  8790. "strokeWidth": 2,
  8791. "type": "freedraw",
  8792. "width": 10,
  8793. "x": 10,
  8794. "y": 10,
  8795. },
  8796. "inserted": {
  8797. "isDeleted": true,
  8798. },
  8799. },
  8800. },
  8801. "updated": Map {},
  8802. },
  8803. },
  8804. ],
  8805. }
  8806. `;
  8807. exports[`regression tests > key 7 selects freedraw tool > [end of test] number of elements 1`] = `0`;
  8808. exports[`regression tests > key 7 selects freedraw tool > [end of test] number of renders 1`] = `7`;
  8809. exports[`regression tests > key a selects arrow tool > [end of test] appState 1`] = `
  8810. {
  8811. "activeEmbeddable": null,
  8812. "activeTool": {
  8813. "customType": null,
  8814. "lastActiveTool": null,
  8815. "locked": false,
  8816. "type": "selection",
  8817. },
  8818. "collaborators": Map {},
  8819. "contextMenu": null,
  8820. "currentChartType": "bar",
  8821. "currentHoveredFontFamily": null,
  8822. "currentItemBackgroundColor": "transparent",
  8823. "currentItemEndArrowhead": "arrow",
  8824. "currentItemFillStyle": "solid",
  8825. "currentItemFontFamily": 5,
  8826. "currentItemFontSize": 20,
  8827. "currentItemOpacity": 100,
  8828. "currentItemRoughness": 1,
  8829. "currentItemRoundness": "round",
  8830. "currentItemStartArrowhead": null,
  8831. "currentItemStrokeColor": "#1e1e1e",
  8832. "currentItemStrokeStyle": "solid",
  8833. "currentItemStrokeWidth": 2,
  8834. "currentItemTextAlign": "left",
  8835. "cursorButton": "up",
  8836. "defaultSidebarDockedPreference": false,
  8837. "draggingElement": null,
  8838. "editingElement": null,
  8839. "editingFrame": null,
  8840. "editingGroupId": null,
  8841. "editingLinearElement": null,
  8842. "elementsToHighlight": null,
  8843. "errorMessage": null,
  8844. "exportBackground": true,
  8845. "exportEmbedScene": false,
  8846. "exportScale": 1,
  8847. "exportWithDarkMode": false,
  8848. "fileHandle": null,
  8849. "followedBy": Set {},
  8850. "frameRendering": {
  8851. "clip": true,
  8852. "enabled": true,
  8853. "name": true,
  8854. "outline": true,
  8855. },
  8856. "frameToHighlight": null,
  8857. "gridSize": null,
  8858. "height": 768,
  8859. "isBindingEnabled": true,
  8860. "isLoading": false,
  8861. "isResizing": false,
  8862. "isRotating": false,
  8863. "lastPointerDownWith": "mouse",
  8864. "multiElement": null,
  8865. "name": "Untitled-201933152653",
  8866. "objectsSnapModeEnabled": false,
  8867. "offsetLeft": 0,
  8868. "offsetTop": 0,
  8869. "openDialog": null,
  8870. "openMenu": null,
  8871. "openPopup": null,
  8872. "openSidebar": null,
  8873. "originSnapOffset": null,
  8874. "pasteDialog": {
  8875. "data": null,
  8876. "shown": false,
  8877. },
  8878. "penDetected": false,
  8879. "penMode": false,
  8880. "pendingImageElementId": null,
  8881. "previousSelectedElementIds": {},
  8882. "resizingElement": null,
  8883. "scrollX": 0,
  8884. "scrollY": 0,
  8885. "scrolledOutside": false,
  8886. "selectedElementIds": {
  8887. "id0": true,
  8888. },
  8889. "selectedElementsAreBeingDragged": false,
  8890. "selectedGroupIds": {},
  8891. "selectedLinearElement": LinearElementEditor {
  8892. "elementId": "id0",
  8893. "endBindingElement": "keep",
  8894. "hoverPointIndex": -1,
  8895. "isDragging": false,
  8896. "lastUncommittedPoint": null,
  8897. "pointerDownState": {
  8898. "lastClickedPoint": -1,
  8899. "origin": null,
  8900. "prevSelectedPointsIndices": null,
  8901. "segmentMidpoint": {
  8902. "added": false,
  8903. "index": null,
  8904. "value": null,
  8905. },
  8906. },
  8907. "pointerOffset": {
  8908. "x": 0,
  8909. "y": 0,
  8910. },
  8911. "segmentMidPointHoveredCoords": null,
  8912. "selectedPointsIndices": null,
  8913. "startBindingElement": "keep",
  8914. },
  8915. "selectionElement": null,
  8916. "shouldCacheIgnoreZoom": false,
  8917. "showHyperlinkPopup": false,
  8918. "showWelcomeScreen": true,
  8919. "snapLines": [],
  8920. "startBoundElement": null,
  8921. "stats": {
  8922. "open": false,
  8923. "panels": 3,
  8924. },
  8925. "suggestedBindings": [],
  8926. "theme": "light",
  8927. "toast": null,
  8928. "userToFollow": null,
  8929. "viewBackgroundColor": "#ffffff",
  8930. "viewModeEnabled": false,
  8931. "width": 1024,
  8932. "zenModeEnabled": false,
  8933. "zoom": {
  8934. "value": 1,
  8935. },
  8936. }
  8937. `;
  8938. exports[`regression tests > key a selects arrow tool > [end of test] history 1`] = `
  8939. History {
  8940. "onHistoryChangedEmitter": Emitter {
  8941. "subscribers": [],
  8942. },
  8943. "redoStack": [],
  8944. "undoStack": [
  8945. HistoryEntry {
  8946. "appStateChange": AppStateChange {
  8947. "delta": Delta {
  8948. "deleted": {
  8949. "selectedElementIds": {
  8950. "id0": true,
  8951. },
  8952. "selectedLinearElementId": "id0",
  8953. },
  8954. "inserted": {
  8955. "selectedElementIds": {},
  8956. "selectedLinearElementId": null,
  8957. },
  8958. },
  8959. },
  8960. "elementsChange": ElementsChange {
  8961. "added": Map {},
  8962. "removed": Map {
  8963. "id0" => Delta {
  8964. "deleted": {
  8965. "angle": 0,
  8966. "backgroundColor": "transparent",
  8967. "boundElements": null,
  8968. "customData": undefined,
  8969. "endArrowhead": "arrow",
  8970. "endBinding": null,
  8971. "fillStyle": "solid",
  8972. "frameId": null,
  8973. "groupIds": [],
  8974. "height": 10,
  8975. "index": "a0",
  8976. "isDeleted": false,
  8977. "lastCommittedPoint": null,
  8978. "link": null,
  8979. "locked": false,
  8980. "opacity": 100,
  8981. "points": [
  8982. [
  8983. 0,
  8984. 0,
  8985. ],
  8986. [
  8987. 10,
  8988. 10,
  8989. ],
  8990. ],
  8991. "roughness": 1,
  8992. "roundness": {
  8993. "type": 2,
  8994. },
  8995. "startArrowhead": null,
  8996. "startBinding": null,
  8997. "strokeColor": "#1e1e1e",
  8998. "strokeStyle": "solid",
  8999. "strokeWidth": 2,
  9000. "type": "arrow",
  9001. "width": 10,
  9002. "x": 10,
  9003. "y": 10,
  9004. },
  9005. "inserted": {
  9006. "isDeleted": true,
  9007. },
  9008. },
  9009. },
  9010. "updated": Map {},
  9011. },
  9012. },
  9013. ],
  9014. }
  9015. `;
  9016. exports[`regression tests > key a selects arrow tool > [end of test] number of elements 1`] = `0`;
  9017. exports[`regression tests > key a selects arrow tool > [end of test] number of renders 1`] = `7`;
  9018. exports[`regression tests > key d selects diamond tool > [end of test] appState 1`] = `
  9019. {
  9020. "activeEmbeddable": null,
  9021. "activeTool": {
  9022. "customType": null,
  9023. "lastActiveTool": null,
  9024. "locked": false,
  9025. "type": "selection",
  9026. },
  9027. "collaborators": Map {},
  9028. "contextMenu": null,
  9029. "currentChartType": "bar",
  9030. "currentHoveredFontFamily": null,
  9031. "currentItemBackgroundColor": "transparent",
  9032. "currentItemEndArrowhead": "arrow",
  9033. "currentItemFillStyle": "solid",
  9034. "currentItemFontFamily": 5,
  9035. "currentItemFontSize": 20,
  9036. "currentItemOpacity": 100,
  9037. "currentItemRoughness": 1,
  9038. "currentItemRoundness": "round",
  9039. "currentItemStartArrowhead": null,
  9040. "currentItemStrokeColor": "#1e1e1e",
  9041. "currentItemStrokeStyle": "solid",
  9042. "currentItemStrokeWidth": 2,
  9043. "currentItemTextAlign": "left",
  9044. "cursorButton": "up",
  9045. "defaultSidebarDockedPreference": false,
  9046. "draggingElement": null,
  9047. "editingElement": null,
  9048. "editingFrame": null,
  9049. "editingGroupId": null,
  9050. "editingLinearElement": null,
  9051. "elementsToHighlight": null,
  9052. "errorMessage": null,
  9053. "exportBackground": true,
  9054. "exportEmbedScene": false,
  9055. "exportScale": 1,
  9056. "exportWithDarkMode": false,
  9057. "fileHandle": null,
  9058. "followedBy": Set {},
  9059. "frameRendering": {
  9060. "clip": true,
  9061. "enabled": true,
  9062. "name": true,
  9063. "outline": true,
  9064. },
  9065. "frameToHighlight": null,
  9066. "gridSize": null,
  9067. "height": 768,
  9068. "isBindingEnabled": true,
  9069. "isLoading": false,
  9070. "isResizing": false,
  9071. "isRotating": false,
  9072. "lastPointerDownWith": "mouse",
  9073. "multiElement": null,
  9074. "name": "Untitled-201933152653",
  9075. "objectsSnapModeEnabled": false,
  9076. "offsetLeft": 0,
  9077. "offsetTop": 0,
  9078. "openDialog": null,
  9079. "openMenu": null,
  9080. "openPopup": null,
  9081. "openSidebar": null,
  9082. "originSnapOffset": null,
  9083. "pasteDialog": {
  9084. "data": null,
  9085. "shown": false,
  9086. },
  9087. "penDetected": false,
  9088. "penMode": false,
  9089. "pendingImageElementId": null,
  9090. "previousSelectedElementIds": {},
  9091. "resizingElement": null,
  9092. "scrollX": 0,
  9093. "scrollY": 0,
  9094. "scrolledOutside": false,
  9095. "selectedElementIds": {
  9096. "id0": true,
  9097. },
  9098. "selectedElementsAreBeingDragged": false,
  9099. "selectedGroupIds": {},
  9100. "selectedLinearElement": null,
  9101. "selectionElement": null,
  9102. "shouldCacheIgnoreZoom": false,
  9103. "showHyperlinkPopup": false,
  9104. "showWelcomeScreen": true,
  9105. "snapLines": [],
  9106. "startBoundElement": null,
  9107. "stats": {
  9108. "open": false,
  9109. "panels": 3,
  9110. },
  9111. "suggestedBindings": [],
  9112. "theme": "light",
  9113. "toast": null,
  9114. "userToFollow": null,
  9115. "viewBackgroundColor": "#ffffff",
  9116. "viewModeEnabled": false,
  9117. "width": 1024,
  9118. "zenModeEnabled": false,
  9119. "zoom": {
  9120. "value": 1,
  9121. },
  9122. }
  9123. `;
  9124. exports[`regression tests > key d selects diamond tool > [end of test] history 1`] = `
  9125. History {
  9126. "onHistoryChangedEmitter": Emitter {
  9127. "subscribers": [],
  9128. },
  9129. "redoStack": [],
  9130. "undoStack": [
  9131. HistoryEntry {
  9132. "appStateChange": AppStateChange {
  9133. "delta": Delta {
  9134. "deleted": {
  9135. "selectedElementIds": {
  9136. "id0": true,
  9137. },
  9138. },
  9139. "inserted": {
  9140. "selectedElementIds": {},
  9141. },
  9142. },
  9143. },
  9144. "elementsChange": ElementsChange {
  9145. "added": Map {},
  9146. "removed": Map {
  9147. "id0" => Delta {
  9148. "deleted": {
  9149. "angle": 0,
  9150. "backgroundColor": "transparent",
  9151. "boundElements": null,
  9152. "customData": undefined,
  9153. "fillStyle": "solid",
  9154. "frameId": null,
  9155. "groupIds": [],
  9156. "height": 10,
  9157. "index": "a0",
  9158. "isDeleted": false,
  9159. "link": null,
  9160. "locked": false,
  9161. "opacity": 100,
  9162. "roughness": 1,
  9163. "roundness": {
  9164. "type": 2,
  9165. },
  9166. "strokeColor": "#1e1e1e",
  9167. "strokeStyle": "solid",
  9168. "strokeWidth": 2,
  9169. "type": "diamond",
  9170. "width": 10,
  9171. "x": 10,
  9172. "y": 10,
  9173. },
  9174. "inserted": {
  9175. "isDeleted": true,
  9176. },
  9177. },
  9178. },
  9179. "updated": Map {},
  9180. },
  9181. },
  9182. ],
  9183. }
  9184. `;
  9185. exports[`regression tests > key d selects diamond tool > [end of test] number of elements 1`] = `0`;
  9186. exports[`regression tests > key d selects diamond tool > [end of test] number of renders 1`] = `7`;
  9187. exports[`regression tests > key l selects line tool > [end of test] appState 1`] = `
  9188. {
  9189. "activeEmbeddable": null,
  9190. "activeTool": {
  9191. "customType": null,
  9192. "lastActiveTool": null,
  9193. "locked": false,
  9194. "type": "selection",
  9195. },
  9196. "collaborators": Map {},
  9197. "contextMenu": null,
  9198. "currentChartType": "bar",
  9199. "currentHoveredFontFamily": null,
  9200. "currentItemBackgroundColor": "transparent",
  9201. "currentItemEndArrowhead": "arrow",
  9202. "currentItemFillStyle": "solid",
  9203. "currentItemFontFamily": 5,
  9204. "currentItemFontSize": 20,
  9205. "currentItemOpacity": 100,
  9206. "currentItemRoughness": 1,
  9207. "currentItemRoundness": "round",
  9208. "currentItemStartArrowhead": null,
  9209. "currentItemStrokeColor": "#1e1e1e",
  9210. "currentItemStrokeStyle": "solid",
  9211. "currentItemStrokeWidth": 2,
  9212. "currentItemTextAlign": "left",
  9213. "cursorButton": "up",
  9214. "defaultSidebarDockedPreference": false,
  9215. "draggingElement": null,
  9216. "editingElement": null,
  9217. "editingFrame": null,
  9218. "editingGroupId": null,
  9219. "editingLinearElement": null,
  9220. "elementsToHighlight": null,
  9221. "errorMessage": null,
  9222. "exportBackground": true,
  9223. "exportEmbedScene": false,
  9224. "exportScale": 1,
  9225. "exportWithDarkMode": false,
  9226. "fileHandle": null,
  9227. "followedBy": Set {},
  9228. "frameRendering": {
  9229. "clip": true,
  9230. "enabled": true,
  9231. "name": true,
  9232. "outline": true,
  9233. },
  9234. "frameToHighlight": null,
  9235. "gridSize": null,
  9236. "height": 768,
  9237. "isBindingEnabled": true,
  9238. "isLoading": false,
  9239. "isResizing": false,
  9240. "isRotating": false,
  9241. "lastPointerDownWith": "mouse",
  9242. "multiElement": null,
  9243. "name": "Untitled-201933152653",
  9244. "objectsSnapModeEnabled": false,
  9245. "offsetLeft": 0,
  9246. "offsetTop": 0,
  9247. "openDialog": null,
  9248. "openMenu": null,
  9249. "openPopup": null,
  9250. "openSidebar": null,
  9251. "originSnapOffset": null,
  9252. "pasteDialog": {
  9253. "data": null,
  9254. "shown": false,
  9255. },
  9256. "penDetected": false,
  9257. "penMode": false,
  9258. "pendingImageElementId": null,
  9259. "previousSelectedElementIds": {},
  9260. "resizingElement": null,
  9261. "scrollX": 0,
  9262. "scrollY": 0,
  9263. "scrolledOutside": false,
  9264. "selectedElementIds": {
  9265. "id0": true,
  9266. },
  9267. "selectedElementsAreBeingDragged": false,
  9268. "selectedGroupIds": {},
  9269. "selectedLinearElement": LinearElementEditor {
  9270. "elementId": "id0",
  9271. "endBindingElement": "keep",
  9272. "hoverPointIndex": -1,
  9273. "isDragging": false,
  9274. "lastUncommittedPoint": null,
  9275. "pointerDownState": {
  9276. "lastClickedPoint": -1,
  9277. "origin": null,
  9278. "prevSelectedPointsIndices": null,
  9279. "segmentMidpoint": {
  9280. "added": false,
  9281. "index": null,
  9282. "value": null,
  9283. },
  9284. },
  9285. "pointerOffset": {
  9286. "x": 0,
  9287. "y": 0,
  9288. },
  9289. "segmentMidPointHoveredCoords": null,
  9290. "selectedPointsIndices": null,
  9291. "startBindingElement": "keep",
  9292. },
  9293. "selectionElement": null,
  9294. "shouldCacheIgnoreZoom": false,
  9295. "showHyperlinkPopup": false,
  9296. "showWelcomeScreen": true,
  9297. "snapLines": [],
  9298. "startBoundElement": null,
  9299. "stats": {
  9300. "open": false,
  9301. "panels": 3,
  9302. },
  9303. "suggestedBindings": [],
  9304. "theme": "light",
  9305. "toast": null,
  9306. "userToFollow": null,
  9307. "viewBackgroundColor": "#ffffff",
  9308. "viewModeEnabled": false,
  9309. "width": 1024,
  9310. "zenModeEnabled": false,
  9311. "zoom": {
  9312. "value": 1,
  9313. },
  9314. }
  9315. `;
  9316. exports[`regression tests > key l selects line tool > [end of test] history 1`] = `
  9317. History {
  9318. "onHistoryChangedEmitter": Emitter {
  9319. "subscribers": [],
  9320. },
  9321. "redoStack": [],
  9322. "undoStack": [
  9323. HistoryEntry {
  9324. "appStateChange": AppStateChange {
  9325. "delta": Delta {
  9326. "deleted": {
  9327. "selectedElementIds": {
  9328. "id0": true,
  9329. },
  9330. "selectedLinearElementId": "id0",
  9331. },
  9332. "inserted": {
  9333. "selectedElementIds": {},
  9334. "selectedLinearElementId": null,
  9335. },
  9336. },
  9337. },
  9338. "elementsChange": ElementsChange {
  9339. "added": Map {},
  9340. "removed": Map {
  9341. "id0" => Delta {
  9342. "deleted": {
  9343. "angle": 0,
  9344. "backgroundColor": "transparent",
  9345. "boundElements": null,
  9346. "customData": undefined,
  9347. "endArrowhead": null,
  9348. "endBinding": null,
  9349. "fillStyle": "solid",
  9350. "frameId": null,
  9351. "groupIds": [],
  9352. "height": 10,
  9353. "index": "a0",
  9354. "isDeleted": false,
  9355. "lastCommittedPoint": null,
  9356. "link": null,
  9357. "locked": false,
  9358. "opacity": 100,
  9359. "points": [
  9360. [
  9361. 0,
  9362. 0,
  9363. ],
  9364. [
  9365. 10,
  9366. 10,
  9367. ],
  9368. ],
  9369. "roughness": 1,
  9370. "roundness": {
  9371. "type": 2,
  9372. },
  9373. "startArrowhead": null,
  9374. "startBinding": null,
  9375. "strokeColor": "#1e1e1e",
  9376. "strokeStyle": "solid",
  9377. "strokeWidth": 2,
  9378. "type": "line",
  9379. "width": 10,
  9380. "x": 10,
  9381. "y": 10,
  9382. },
  9383. "inserted": {
  9384. "isDeleted": true,
  9385. },
  9386. },
  9387. },
  9388. "updated": Map {},
  9389. },
  9390. },
  9391. ],
  9392. }
  9393. `;
  9394. exports[`regression tests > key l selects line tool > [end of test] number of elements 1`] = `0`;
  9395. exports[`regression tests > key l selects line tool > [end of test] number of renders 1`] = `7`;
  9396. exports[`regression tests > key o selects ellipse tool > [end of test] appState 1`] = `
  9397. {
  9398. "activeEmbeddable": null,
  9399. "activeTool": {
  9400. "customType": null,
  9401. "lastActiveTool": null,
  9402. "locked": false,
  9403. "type": "selection",
  9404. },
  9405. "collaborators": Map {},
  9406. "contextMenu": null,
  9407. "currentChartType": "bar",
  9408. "currentHoveredFontFamily": null,
  9409. "currentItemBackgroundColor": "transparent",
  9410. "currentItemEndArrowhead": "arrow",
  9411. "currentItemFillStyle": "solid",
  9412. "currentItemFontFamily": 5,
  9413. "currentItemFontSize": 20,
  9414. "currentItemOpacity": 100,
  9415. "currentItemRoughness": 1,
  9416. "currentItemRoundness": "round",
  9417. "currentItemStartArrowhead": null,
  9418. "currentItemStrokeColor": "#1e1e1e",
  9419. "currentItemStrokeStyle": "solid",
  9420. "currentItemStrokeWidth": 2,
  9421. "currentItemTextAlign": "left",
  9422. "cursorButton": "up",
  9423. "defaultSidebarDockedPreference": false,
  9424. "draggingElement": null,
  9425. "editingElement": null,
  9426. "editingFrame": null,
  9427. "editingGroupId": null,
  9428. "editingLinearElement": null,
  9429. "elementsToHighlight": null,
  9430. "errorMessage": null,
  9431. "exportBackground": true,
  9432. "exportEmbedScene": false,
  9433. "exportScale": 1,
  9434. "exportWithDarkMode": false,
  9435. "fileHandle": null,
  9436. "followedBy": Set {},
  9437. "frameRendering": {
  9438. "clip": true,
  9439. "enabled": true,
  9440. "name": true,
  9441. "outline": true,
  9442. },
  9443. "frameToHighlight": null,
  9444. "gridSize": null,
  9445. "height": 768,
  9446. "isBindingEnabled": true,
  9447. "isLoading": false,
  9448. "isResizing": false,
  9449. "isRotating": false,
  9450. "lastPointerDownWith": "mouse",
  9451. "multiElement": null,
  9452. "name": "Untitled-201933152653",
  9453. "objectsSnapModeEnabled": false,
  9454. "offsetLeft": 0,
  9455. "offsetTop": 0,
  9456. "openDialog": null,
  9457. "openMenu": null,
  9458. "openPopup": null,
  9459. "openSidebar": null,
  9460. "originSnapOffset": null,
  9461. "pasteDialog": {
  9462. "data": null,
  9463. "shown": false,
  9464. },
  9465. "penDetected": false,
  9466. "penMode": false,
  9467. "pendingImageElementId": null,
  9468. "previousSelectedElementIds": {},
  9469. "resizingElement": null,
  9470. "scrollX": 0,
  9471. "scrollY": 0,
  9472. "scrolledOutside": false,
  9473. "selectedElementIds": {
  9474. "id0": true,
  9475. },
  9476. "selectedElementsAreBeingDragged": false,
  9477. "selectedGroupIds": {},
  9478. "selectedLinearElement": null,
  9479. "selectionElement": null,
  9480. "shouldCacheIgnoreZoom": false,
  9481. "showHyperlinkPopup": false,
  9482. "showWelcomeScreen": true,
  9483. "snapLines": [],
  9484. "startBoundElement": null,
  9485. "stats": {
  9486. "open": false,
  9487. "panels": 3,
  9488. },
  9489. "suggestedBindings": [],
  9490. "theme": "light",
  9491. "toast": null,
  9492. "userToFollow": null,
  9493. "viewBackgroundColor": "#ffffff",
  9494. "viewModeEnabled": false,
  9495. "width": 1024,
  9496. "zenModeEnabled": false,
  9497. "zoom": {
  9498. "value": 1,
  9499. },
  9500. }
  9501. `;
  9502. exports[`regression tests > key o selects ellipse tool > [end of test] history 1`] = `
  9503. History {
  9504. "onHistoryChangedEmitter": Emitter {
  9505. "subscribers": [],
  9506. },
  9507. "redoStack": [],
  9508. "undoStack": [
  9509. HistoryEntry {
  9510. "appStateChange": AppStateChange {
  9511. "delta": Delta {
  9512. "deleted": {
  9513. "selectedElementIds": {
  9514. "id0": true,
  9515. },
  9516. },
  9517. "inserted": {
  9518. "selectedElementIds": {},
  9519. },
  9520. },
  9521. },
  9522. "elementsChange": ElementsChange {
  9523. "added": Map {},
  9524. "removed": Map {
  9525. "id0" => Delta {
  9526. "deleted": {
  9527. "angle": 0,
  9528. "backgroundColor": "transparent",
  9529. "boundElements": null,
  9530. "customData": undefined,
  9531. "fillStyle": "solid",
  9532. "frameId": null,
  9533. "groupIds": [],
  9534. "height": 10,
  9535. "index": "a0",
  9536. "isDeleted": false,
  9537. "link": null,
  9538. "locked": false,
  9539. "opacity": 100,
  9540. "roughness": 1,
  9541. "roundness": {
  9542. "type": 2,
  9543. },
  9544. "strokeColor": "#1e1e1e",
  9545. "strokeStyle": "solid",
  9546. "strokeWidth": 2,
  9547. "type": "ellipse",
  9548. "width": 10,
  9549. "x": 10,
  9550. "y": 10,
  9551. },
  9552. "inserted": {
  9553. "isDeleted": true,
  9554. },
  9555. },
  9556. },
  9557. "updated": Map {},
  9558. },
  9559. },
  9560. ],
  9561. }
  9562. `;
  9563. exports[`regression tests > key o selects ellipse tool > [end of test] number of elements 1`] = `0`;
  9564. exports[`regression tests > key o selects ellipse tool > [end of test] number of renders 1`] = `7`;
  9565. exports[`regression tests > key p selects freedraw tool > [end of test] appState 1`] = `
  9566. {
  9567. "activeEmbeddable": null,
  9568. "activeTool": {
  9569. "customType": null,
  9570. "lastActiveTool": null,
  9571. "locked": false,
  9572. "type": "freedraw",
  9573. },
  9574. "collaborators": Map {},
  9575. "contextMenu": null,
  9576. "currentChartType": "bar",
  9577. "currentHoveredFontFamily": null,
  9578. "currentItemBackgroundColor": "transparent",
  9579. "currentItemEndArrowhead": "arrow",
  9580. "currentItemFillStyle": "solid",
  9581. "currentItemFontFamily": 5,
  9582. "currentItemFontSize": 20,
  9583. "currentItemOpacity": 100,
  9584. "currentItemRoughness": 1,
  9585. "currentItemRoundness": "round",
  9586. "currentItemStartArrowhead": null,
  9587. "currentItemStrokeColor": "#1e1e1e",
  9588. "currentItemStrokeStyle": "solid",
  9589. "currentItemStrokeWidth": 2,
  9590. "currentItemTextAlign": "left",
  9591. "cursorButton": "up",
  9592. "defaultSidebarDockedPreference": false,
  9593. "draggingElement": null,
  9594. "editingElement": null,
  9595. "editingFrame": null,
  9596. "editingGroupId": null,
  9597. "editingLinearElement": null,
  9598. "elementsToHighlight": null,
  9599. "errorMessage": null,
  9600. "exportBackground": true,
  9601. "exportEmbedScene": false,
  9602. "exportScale": 1,
  9603. "exportWithDarkMode": false,
  9604. "fileHandle": null,
  9605. "followedBy": Set {},
  9606. "frameRendering": {
  9607. "clip": true,
  9608. "enabled": true,
  9609. "name": true,
  9610. "outline": true,
  9611. },
  9612. "frameToHighlight": null,
  9613. "gridSize": null,
  9614. "height": 768,
  9615. "isBindingEnabled": true,
  9616. "isLoading": false,
  9617. "isResizing": false,
  9618. "isRotating": false,
  9619. "lastPointerDownWith": "mouse",
  9620. "multiElement": null,
  9621. "name": "Untitled-201933152653",
  9622. "objectsSnapModeEnabled": false,
  9623. "offsetLeft": 0,
  9624. "offsetTop": 0,
  9625. "openDialog": null,
  9626. "openMenu": null,
  9627. "openPopup": null,
  9628. "openSidebar": null,
  9629. "originSnapOffset": null,
  9630. "pasteDialog": {
  9631. "data": null,
  9632. "shown": false,
  9633. },
  9634. "penDetected": false,
  9635. "penMode": false,
  9636. "pendingImageElementId": null,
  9637. "previousSelectedElementIds": {},
  9638. "resizingElement": null,
  9639. "scrollX": 0,
  9640. "scrollY": 0,
  9641. "scrolledOutside": false,
  9642. "selectedElementIds": {},
  9643. "selectedElementsAreBeingDragged": false,
  9644. "selectedGroupIds": {},
  9645. "selectedLinearElement": null,
  9646. "selectionElement": null,
  9647. "shouldCacheIgnoreZoom": false,
  9648. "showHyperlinkPopup": false,
  9649. "showWelcomeScreen": true,
  9650. "snapLines": [],
  9651. "startBoundElement": null,
  9652. "stats": {
  9653. "open": false,
  9654. "panels": 3,
  9655. },
  9656. "suggestedBindings": [],
  9657. "theme": "light",
  9658. "toast": null,
  9659. "userToFollow": null,
  9660. "viewBackgroundColor": "#ffffff",
  9661. "viewModeEnabled": false,
  9662. "width": 1024,
  9663. "zenModeEnabled": false,
  9664. "zoom": {
  9665. "value": 1,
  9666. },
  9667. }
  9668. `;
  9669. exports[`regression tests > key p selects freedraw tool > [end of test] history 1`] = `
  9670. History {
  9671. "onHistoryChangedEmitter": Emitter {
  9672. "subscribers": [],
  9673. },
  9674. "redoStack": [],
  9675. "undoStack": [
  9676. HistoryEntry {
  9677. "appStateChange": AppStateChange {
  9678. "delta": Delta {
  9679. "deleted": {},
  9680. "inserted": {},
  9681. },
  9682. },
  9683. "elementsChange": ElementsChange {
  9684. "added": Map {},
  9685. "removed": Map {
  9686. "id0" => Delta {
  9687. "deleted": {
  9688. "angle": 0,
  9689. "backgroundColor": "transparent",
  9690. "boundElements": null,
  9691. "customData": undefined,
  9692. "fillStyle": "solid",
  9693. "frameId": null,
  9694. "groupIds": [],
  9695. "height": 10,
  9696. "index": "a0",
  9697. "isDeleted": false,
  9698. "lastCommittedPoint": [
  9699. 10,
  9700. 10,
  9701. ],
  9702. "link": null,
  9703. "locked": false,
  9704. "opacity": 100,
  9705. "points": [
  9706. [
  9707. 0,
  9708. 0,
  9709. ],
  9710. [
  9711. 10,
  9712. 10,
  9713. ],
  9714. [
  9715. 10,
  9716. 10,
  9717. ],
  9718. ],
  9719. "pressures": [
  9720. 0,
  9721. 0,
  9722. 0,
  9723. ],
  9724. "roughness": 1,
  9725. "roundness": null,
  9726. "simulatePressure": false,
  9727. "strokeColor": "#1e1e1e",
  9728. "strokeStyle": "solid",
  9729. "strokeWidth": 2,
  9730. "type": "freedraw",
  9731. "width": 10,
  9732. "x": 10,
  9733. "y": 10,
  9734. },
  9735. "inserted": {
  9736. "isDeleted": true,
  9737. },
  9738. },
  9739. },
  9740. "updated": Map {},
  9741. },
  9742. },
  9743. ],
  9744. }
  9745. `;
  9746. exports[`regression tests > key p selects freedraw tool > [end of test] number of elements 1`] = `0`;
  9747. exports[`regression tests > key p selects freedraw tool > [end of test] number of renders 1`] = `7`;
  9748. exports[`regression tests > key r selects rectangle tool > [end of test] appState 1`] = `
  9749. {
  9750. "activeEmbeddable": null,
  9751. "activeTool": {
  9752. "customType": null,
  9753. "lastActiveTool": null,
  9754. "locked": false,
  9755. "type": "selection",
  9756. },
  9757. "collaborators": Map {},
  9758. "contextMenu": null,
  9759. "currentChartType": "bar",
  9760. "currentHoveredFontFamily": null,
  9761. "currentItemBackgroundColor": "transparent",
  9762. "currentItemEndArrowhead": "arrow",
  9763. "currentItemFillStyle": "solid",
  9764. "currentItemFontFamily": 5,
  9765. "currentItemFontSize": 20,
  9766. "currentItemOpacity": 100,
  9767. "currentItemRoughness": 1,
  9768. "currentItemRoundness": "round",
  9769. "currentItemStartArrowhead": null,
  9770. "currentItemStrokeColor": "#1e1e1e",
  9771. "currentItemStrokeStyle": "solid",
  9772. "currentItemStrokeWidth": 2,
  9773. "currentItemTextAlign": "left",
  9774. "cursorButton": "up",
  9775. "defaultSidebarDockedPreference": false,
  9776. "draggingElement": null,
  9777. "editingElement": null,
  9778. "editingFrame": null,
  9779. "editingGroupId": null,
  9780. "editingLinearElement": null,
  9781. "elementsToHighlight": null,
  9782. "errorMessage": null,
  9783. "exportBackground": true,
  9784. "exportEmbedScene": false,
  9785. "exportScale": 1,
  9786. "exportWithDarkMode": false,
  9787. "fileHandle": null,
  9788. "followedBy": Set {},
  9789. "frameRendering": {
  9790. "clip": true,
  9791. "enabled": true,
  9792. "name": true,
  9793. "outline": true,
  9794. },
  9795. "frameToHighlight": null,
  9796. "gridSize": null,
  9797. "height": 768,
  9798. "isBindingEnabled": true,
  9799. "isLoading": false,
  9800. "isResizing": false,
  9801. "isRotating": false,
  9802. "lastPointerDownWith": "mouse",
  9803. "multiElement": null,
  9804. "name": "Untitled-201933152653",
  9805. "objectsSnapModeEnabled": false,
  9806. "offsetLeft": 0,
  9807. "offsetTop": 0,
  9808. "openDialog": null,
  9809. "openMenu": null,
  9810. "openPopup": null,
  9811. "openSidebar": null,
  9812. "originSnapOffset": null,
  9813. "pasteDialog": {
  9814. "data": null,
  9815. "shown": false,
  9816. },
  9817. "penDetected": false,
  9818. "penMode": false,
  9819. "pendingImageElementId": null,
  9820. "previousSelectedElementIds": {},
  9821. "resizingElement": null,
  9822. "scrollX": 0,
  9823. "scrollY": 0,
  9824. "scrolledOutside": false,
  9825. "selectedElementIds": {
  9826. "id0": true,
  9827. },
  9828. "selectedElementsAreBeingDragged": false,
  9829. "selectedGroupIds": {},
  9830. "selectedLinearElement": null,
  9831. "selectionElement": null,
  9832. "shouldCacheIgnoreZoom": false,
  9833. "showHyperlinkPopup": false,
  9834. "showWelcomeScreen": true,
  9835. "snapLines": [],
  9836. "startBoundElement": null,
  9837. "stats": {
  9838. "open": false,
  9839. "panels": 3,
  9840. },
  9841. "suggestedBindings": [],
  9842. "theme": "light",
  9843. "toast": null,
  9844. "userToFollow": null,
  9845. "viewBackgroundColor": "#ffffff",
  9846. "viewModeEnabled": false,
  9847. "width": 1024,
  9848. "zenModeEnabled": false,
  9849. "zoom": {
  9850. "value": 1,
  9851. },
  9852. }
  9853. `;
  9854. exports[`regression tests > key r selects rectangle tool > [end of test] history 1`] = `
  9855. History {
  9856. "onHistoryChangedEmitter": Emitter {
  9857. "subscribers": [],
  9858. },
  9859. "redoStack": [],
  9860. "undoStack": [
  9861. HistoryEntry {
  9862. "appStateChange": AppStateChange {
  9863. "delta": Delta {
  9864. "deleted": {
  9865. "selectedElementIds": {
  9866. "id0": true,
  9867. },
  9868. },
  9869. "inserted": {
  9870. "selectedElementIds": {},
  9871. },
  9872. },
  9873. },
  9874. "elementsChange": ElementsChange {
  9875. "added": Map {},
  9876. "removed": Map {
  9877. "id0" => Delta {
  9878. "deleted": {
  9879. "angle": 0,
  9880. "backgroundColor": "transparent",
  9881. "boundElements": null,
  9882. "customData": undefined,
  9883. "fillStyle": "solid",
  9884. "frameId": null,
  9885. "groupIds": [],
  9886. "height": 10,
  9887. "index": "a0",
  9888. "isDeleted": false,
  9889. "link": null,
  9890. "locked": false,
  9891. "opacity": 100,
  9892. "roughness": 1,
  9893. "roundness": {
  9894. "type": 3,
  9895. },
  9896. "strokeColor": "#1e1e1e",
  9897. "strokeStyle": "solid",
  9898. "strokeWidth": 2,
  9899. "type": "rectangle",
  9900. "width": 10,
  9901. "x": 10,
  9902. "y": 10,
  9903. },
  9904. "inserted": {
  9905. "isDeleted": true,
  9906. },
  9907. },
  9908. },
  9909. "updated": Map {},
  9910. },
  9911. },
  9912. ],
  9913. }
  9914. `;
  9915. exports[`regression tests > key r selects rectangle tool > [end of test] number of elements 1`] = `0`;
  9916. exports[`regression tests > key r selects rectangle tool > [end of test] number of renders 1`] = `7`;
  9917. exports[`regression tests > make a group and duplicate it > [end of test] appState 1`] = `
  9918. {
  9919. "activeEmbeddable": null,
  9920. "activeTool": {
  9921. "customType": null,
  9922. "lastActiveTool": null,
  9923. "locked": false,
  9924. "type": "selection",
  9925. },
  9926. "collaborators": Map {},
  9927. "contextMenu": null,
  9928. "currentChartType": "bar",
  9929. "currentHoveredFontFamily": null,
  9930. "currentItemBackgroundColor": "transparent",
  9931. "currentItemEndArrowhead": "arrow",
  9932. "currentItemFillStyle": "solid",
  9933. "currentItemFontFamily": 5,
  9934. "currentItemFontSize": 20,
  9935. "currentItemOpacity": 100,
  9936. "currentItemRoughness": 1,
  9937. "currentItemRoundness": "round",
  9938. "currentItemStartArrowhead": null,
  9939. "currentItemStrokeColor": "#1e1e1e",
  9940. "currentItemStrokeStyle": "solid",
  9941. "currentItemStrokeWidth": 2,
  9942. "currentItemTextAlign": "left",
  9943. "cursorButton": "up",
  9944. "defaultSidebarDockedPreference": false,
  9945. "draggingElement": null,
  9946. "editingElement": null,
  9947. "editingFrame": null,
  9948. "editingGroupId": null,
  9949. "editingLinearElement": null,
  9950. "elementsToHighlight": null,
  9951. "errorMessage": null,
  9952. "exportBackground": true,
  9953. "exportEmbedScene": false,
  9954. "exportScale": 1,
  9955. "exportWithDarkMode": false,
  9956. "fileHandle": null,
  9957. "followedBy": Set {},
  9958. "frameRendering": {
  9959. "clip": true,
  9960. "enabled": true,
  9961. "name": true,
  9962. "outline": true,
  9963. },
  9964. "frameToHighlight": null,
  9965. "gridSize": null,
  9966. "height": 768,
  9967. "isBindingEnabled": true,
  9968. "isLoading": false,
  9969. "isResizing": false,
  9970. "isRotating": false,
  9971. "lastPointerDownWith": "mouse",
  9972. "multiElement": null,
  9973. "name": "Untitled-201933152653",
  9974. "objectsSnapModeEnabled": false,
  9975. "offsetLeft": 0,
  9976. "offsetTop": 0,
  9977. "openDialog": null,
  9978. "openMenu": null,
  9979. "openPopup": null,
  9980. "openSidebar": null,
  9981. "originSnapOffset": null,
  9982. "pasteDialog": {
  9983. "data": null,
  9984. "shown": false,
  9985. },
  9986. "penDetected": false,
  9987. "penMode": false,
  9988. "pendingImageElementId": null,
  9989. "previousSelectedElementIds": {
  9990. "id0": true,
  9991. "id1": true,
  9992. "id2": true,
  9993. },
  9994. "resizingElement": null,
  9995. "scrollX": 0,
  9996. "scrollY": 0,
  9997. "scrolledOutside": false,
  9998. "selectedElementIds": {
  9999. "id0": true,
  10000. "id1": true,
  10001. "id2": true,
  10002. },
  10003. "selectedElementsAreBeingDragged": false,
  10004. "selectedGroupIds": {
  10005. "id4": true,
  10006. },
  10007. "selectedLinearElement": null,
  10008. "selectionElement": null,
  10009. "shouldCacheIgnoreZoom": false,
  10010. "showHyperlinkPopup": false,
  10011. "showWelcomeScreen": true,
  10012. "snapLines": [],
  10013. "startBoundElement": null,
  10014. "stats": {
  10015. "open": false,
  10016. "panels": 3,
  10017. },
  10018. "suggestedBindings": [],
  10019. "theme": "light",
  10020. "toast": null,
  10021. "userToFollow": null,
  10022. "viewBackgroundColor": "#ffffff",
  10023. "viewModeEnabled": false,
  10024. "width": 1024,
  10025. "zenModeEnabled": false,
  10026. "zoom": {
  10027. "value": 1,
  10028. },
  10029. }
  10030. `;
  10031. exports[`regression tests > make a group and duplicate it > [end of test] history 1`] = `
  10032. History {
  10033. "onHistoryChangedEmitter": Emitter {
  10034. "subscribers": [],
  10035. },
  10036. "redoStack": [],
  10037. "undoStack": [
  10038. HistoryEntry {
  10039. "appStateChange": AppStateChange {
  10040. "delta": Delta {
  10041. "deleted": {
  10042. "selectedElementIds": {
  10043. "id0": true,
  10044. },
  10045. },
  10046. "inserted": {
  10047. "selectedElementIds": {},
  10048. },
  10049. },
  10050. },
  10051. "elementsChange": ElementsChange {
  10052. "added": Map {},
  10053. "removed": Map {
  10054. "id0" => Delta {
  10055. "deleted": {
  10056. "angle": 0,
  10057. "backgroundColor": "transparent",
  10058. "boundElements": null,
  10059. "customData": undefined,
  10060. "fillStyle": "solid",
  10061. "frameId": null,
  10062. "groupIds": [],
  10063. "height": 10,
  10064. "index": "a0",
  10065. "isDeleted": false,
  10066. "link": null,
  10067. "locked": false,
  10068. "opacity": 100,
  10069. "roughness": 1,
  10070. "roundness": {
  10071. "type": 3,
  10072. },
  10073. "strokeColor": "#1e1e1e",
  10074. "strokeStyle": "solid",
  10075. "strokeWidth": 2,
  10076. "type": "rectangle",
  10077. "width": 10,
  10078. "x": 10,
  10079. "y": 10,
  10080. },
  10081. "inserted": {
  10082. "isDeleted": true,
  10083. },
  10084. },
  10085. },
  10086. "updated": Map {},
  10087. },
  10088. },
  10089. HistoryEntry {
  10090. "appStateChange": AppStateChange {
  10091. "delta": Delta {
  10092. "deleted": {
  10093. "selectedElementIds": {
  10094. "id1": true,
  10095. },
  10096. },
  10097. "inserted": {
  10098. "selectedElementIds": {
  10099. "id0": true,
  10100. },
  10101. },
  10102. },
  10103. },
  10104. "elementsChange": ElementsChange {
  10105. "added": Map {},
  10106. "removed": Map {
  10107. "id1" => Delta {
  10108. "deleted": {
  10109. "angle": 0,
  10110. "backgroundColor": "transparent",
  10111. "boundElements": null,
  10112. "customData": undefined,
  10113. "fillStyle": "solid",
  10114. "frameId": null,
  10115. "groupIds": [],
  10116. "height": 10,
  10117. "index": "a1",
  10118. "isDeleted": false,
  10119. "link": null,
  10120. "locked": false,
  10121. "opacity": 100,
  10122. "roughness": 1,
  10123. "roundness": {
  10124. "type": 3,
  10125. },
  10126. "strokeColor": "#1e1e1e",
  10127. "strokeStyle": "solid",
  10128. "strokeWidth": 2,
  10129. "type": "rectangle",
  10130. "width": 10,
  10131. "x": 30,
  10132. "y": 10,
  10133. },
  10134. "inserted": {
  10135. "isDeleted": true,
  10136. },
  10137. },
  10138. },
  10139. "updated": Map {},
  10140. },
  10141. },
  10142. HistoryEntry {
  10143. "appStateChange": AppStateChange {
  10144. "delta": Delta {
  10145. "deleted": {
  10146. "selectedElementIds": {
  10147. "id2": true,
  10148. },
  10149. },
  10150. "inserted": {
  10151. "selectedElementIds": {
  10152. "id1": true,
  10153. },
  10154. },
  10155. },
  10156. },
  10157. "elementsChange": ElementsChange {
  10158. "added": Map {},
  10159. "removed": Map {
  10160. "id2" => Delta {
  10161. "deleted": {
  10162. "angle": 0,
  10163. "backgroundColor": "transparent",
  10164. "boundElements": null,
  10165. "customData": undefined,
  10166. "fillStyle": "solid",
  10167. "frameId": null,
  10168. "groupIds": [],
  10169. "height": 10,
  10170. "index": "a2",
  10171. "isDeleted": false,
  10172. "link": null,
  10173. "locked": false,
  10174. "opacity": 100,
  10175. "roughness": 1,
  10176. "roundness": {
  10177. "type": 3,
  10178. },
  10179. "strokeColor": "#1e1e1e",
  10180. "strokeStyle": "solid",
  10181. "strokeWidth": 2,
  10182. "type": "rectangle",
  10183. "width": 10,
  10184. "x": 50,
  10185. "y": 10,
  10186. },
  10187. "inserted": {
  10188. "isDeleted": true,
  10189. },
  10190. },
  10191. },
  10192. "updated": Map {},
  10193. },
  10194. },
  10195. HistoryEntry {
  10196. "appStateChange": AppStateChange {
  10197. "delta": Delta {
  10198. "deleted": {
  10199. "selectedElementIds": {
  10200. "id0": true,
  10201. "id1": true,
  10202. },
  10203. },
  10204. "inserted": {
  10205. "selectedElementIds": {},
  10206. },
  10207. },
  10208. },
  10209. "elementsChange": ElementsChange {
  10210. "added": Map {},
  10211. "removed": Map {},
  10212. "updated": Map {},
  10213. },
  10214. },
  10215. HistoryEntry {
  10216. "appStateChange": AppStateChange {
  10217. "delta": Delta {
  10218. "deleted": {
  10219. "selectedGroupIds": {
  10220. "id4": true,
  10221. },
  10222. },
  10223. "inserted": {
  10224. "selectedGroupIds": {},
  10225. },
  10226. },
  10227. },
  10228. "elementsChange": ElementsChange {
  10229. "added": Map {},
  10230. "removed": Map {},
  10231. "updated": Map {
  10232. "id0" => Delta {
  10233. "deleted": {
  10234. "groupIds": [
  10235. "id4",
  10236. ],
  10237. },
  10238. "inserted": {
  10239. "groupIds": [],
  10240. },
  10241. },
  10242. "id1" => Delta {
  10243. "deleted": {
  10244. "groupIds": [
  10245. "id4",
  10246. ],
  10247. },
  10248. "inserted": {
  10249. "groupIds": [],
  10250. },
  10251. },
  10252. "id2" => Delta {
  10253. "deleted": {
  10254. "groupIds": [
  10255. "id4",
  10256. ],
  10257. },
  10258. "inserted": {
  10259. "groupIds": [],
  10260. },
  10261. },
  10262. },
  10263. },
  10264. },
  10265. HistoryEntry {
  10266. "appStateChange": AppStateChange {
  10267. "delta": Delta {
  10268. "deleted": {},
  10269. "inserted": {},
  10270. },
  10271. },
  10272. "elementsChange": ElementsChange {
  10273. "added": Map {},
  10274. "removed": Map {
  10275. "id0_copy" => Delta {
  10276. "deleted": {
  10277. "angle": 0,
  10278. "backgroundColor": "transparent",
  10279. "boundElements": null,
  10280. "customData": undefined,
  10281. "fillStyle": "solid",
  10282. "frameId": null,
  10283. "groupIds": [
  10284. "id4_copy",
  10285. ],
  10286. "height": 10,
  10287. "index": "a0",
  10288. "isDeleted": false,
  10289. "link": null,
  10290. "locked": false,
  10291. "opacity": 100,
  10292. "roughness": 1,
  10293. "roundness": {
  10294. "type": 3,
  10295. },
  10296. "strokeColor": "#1e1e1e",
  10297. "strokeStyle": "solid",
  10298. "strokeWidth": 2,
  10299. "type": "rectangle",
  10300. "width": 10,
  10301. "x": 10,
  10302. "y": 10,
  10303. },
  10304. "inserted": {
  10305. "isDeleted": true,
  10306. },
  10307. },
  10308. "id1_copy" => Delta {
  10309. "deleted": {
  10310. "angle": 0,
  10311. "backgroundColor": "transparent",
  10312. "boundElements": null,
  10313. "customData": undefined,
  10314. "fillStyle": "solid",
  10315. "frameId": null,
  10316. "groupIds": [
  10317. "id4_copy",
  10318. ],
  10319. "height": 10,
  10320. "index": "a1",
  10321. "isDeleted": false,
  10322. "link": null,
  10323. "locked": false,
  10324. "opacity": 100,
  10325. "roughness": 1,
  10326. "roundness": {
  10327. "type": 3,
  10328. },
  10329. "strokeColor": "#1e1e1e",
  10330. "strokeStyle": "solid",
  10331. "strokeWidth": 2,
  10332. "type": "rectangle",
  10333. "width": 10,
  10334. "x": 30,
  10335. "y": 10,
  10336. },
  10337. "inserted": {
  10338. "isDeleted": true,
  10339. },
  10340. },
  10341. "id2_copy" => Delta {
  10342. "deleted": {
  10343. "angle": 0,
  10344. "backgroundColor": "transparent",
  10345. "boundElements": null,
  10346. "customData": undefined,
  10347. "fillStyle": "solid",
  10348. "frameId": null,
  10349. "groupIds": [
  10350. "id4_copy",
  10351. ],
  10352. "height": 10,
  10353. "index": "a2",
  10354. "isDeleted": false,
  10355. "link": null,
  10356. "locked": false,
  10357. "opacity": 100,
  10358. "roughness": 1,
  10359. "roundness": {
  10360. "type": 3,
  10361. },
  10362. "strokeColor": "#1e1e1e",
  10363. "strokeStyle": "solid",
  10364. "strokeWidth": 2,
  10365. "type": "rectangle",
  10366. "width": 10,
  10367. "x": 50,
  10368. "y": 10,
  10369. },
  10370. "inserted": {
  10371. "isDeleted": true,
  10372. },
  10373. },
  10374. },
  10375. "updated": Map {
  10376. "id0" => Delta {
  10377. "deleted": {
  10378. "index": "a3",
  10379. "x": 20,
  10380. "y": 20,
  10381. },
  10382. "inserted": {
  10383. "index": "a0",
  10384. "x": 10,
  10385. "y": 10,
  10386. },
  10387. },
  10388. "id1" => Delta {
  10389. "deleted": {
  10390. "index": "a4",
  10391. "x": 40,
  10392. "y": 20,
  10393. },
  10394. "inserted": {
  10395. "index": "a1",
  10396. "x": 30,
  10397. "y": 10,
  10398. },
  10399. },
  10400. "id2" => Delta {
  10401. "deleted": {
  10402. "index": "a5",
  10403. "x": 60,
  10404. "y": 20,
  10405. },
  10406. "inserted": {
  10407. "index": "a2",
  10408. "x": 50,
  10409. "y": 10,
  10410. },
  10411. },
  10412. },
  10413. },
  10414. },
  10415. ],
  10416. }
  10417. `;
  10418. exports[`regression tests > make a group and duplicate it > [end of test] number of elements 1`] = `0`;
  10419. exports[`regression tests > make a group and duplicate it > [end of test] number of renders 1`] = `20`;
  10420. exports[`regression tests > noop interaction after undo shouldn't create history entry > [end of test] appState 1`] = `
  10421. {
  10422. "activeEmbeddable": null,
  10423. "activeTool": {
  10424. "customType": null,
  10425. "lastActiveTool": null,
  10426. "locked": false,
  10427. "type": "selection",
  10428. },
  10429. "collaborators": Map {},
  10430. "contextMenu": null,
  10431. "currentChartType": "bar",
  10432. "currentHoveredFontFamily": null,
  10433. "currentItemBackgroundColor": "transparent",
  10434. "currentItemEndArrowhead": "arrow",
  10435. "currentItemFillStyle": "solid",
  10436. "currentItemFontFamily": 5,
  10437. "currentItemFontSize": 20,
  10438. "currentItemOpacity": 100,
  10439. "currentItemRoughness": 1,
  10440. "currentItemRoundness": "round",
  10441. "currentItemStartArrowhead": null,
  10442. "currentItemStrokeColor": "#1e1e1e",
  10443. "currentItemStrokeStyle": "solid",
  10444. "currentItemStrokeWidth": 2,
  10445. "currentItemTextAlign": "left",
  10446. "cursorButton": "up",
  10447. "defaultSidebarDockedPreference": false,
  10448. "draggingElement": null,
  10449. "editingElement": null,
  10450. "editingFrame": null,
  10451. "editingGroupId": null,
  10452. "editingLinearElement": null,
  10453. "elementsToHighlight": null,
  10454. "errorMessage": null,
  10455. "exportBackground": true,
  10456. "exportEmbedScene": false,
  10457. "exportScale": 1,
  10458. "exportWithDarkMode": false,
  10459. "fileHandle": null,
  10460. "followedBy": Set {},
  10461. "frameRendering": {
  10462. "clip": true,
  10463. "enabled": true,
  10464. "name": true,
  10465. "outline": true,
  10466. },
  10467. "frameToHighlight": null,
  10468. "gridSize": null,
  10469. "height": 768,
  10470. "isBindingEnabled": true,
  10471. "isLoading": false,
  10472. "isResizing": false,
  10473. "isRotating": false,
  10474. "lastPointerDownWith": "mouse",
  10475. "multiElement": null,
  10476. "name": "Untitled-201933152653",
  10477. "objectsSnapModeEnabled": false,
  10478. "offsetLeft": 0,
  10479. "offsetTop": 0,
  10480. "openDialog": null,
  10481. "openMenu": null,
  10482. "openPopup": null,
  10483. "openSidebar": null,
  10484. "originSnapOffset": null,
  10485. "pasteDialog": {
  10486. "data": null,
  10487. "shown": false,
  10488. },
  10489. "penDetected": false,
  10490. "penMode": false,
  10491. "pendingImageElementId": null,
  10492. "previousSelectedElementIds": {
  10493. "id0": true,
  10494. },
  10495. "resizingElement": null,
  10496. "scrollX": 0,
  10497. "scrollY": 0,
  10498. "scrolledOutside": false,
  10499. "selectedElementIds": {
  10500. "id1": true,
  10501. },
  10502. "selectedElementsAreBeingDragged": false,
  10503. "selectedGroupIds": {},
  10504. "selectedLinearElement": null,
  10505. "selectionElement": null,
  10506. "shouldCacheIgnoreZoom": false,
  10507. "showHyperlinkPopup": false,
  10508. "showWelcomeScreen": true,
  10509. "snapLines": [],
  10510. "startBoundElement": null,
  10511. "stats": {
  10512. "open": false,
  10513. "panels": 3,
  10514. },
  10515. "suggestedBindings": [],
  10516. "theme": "light",
  10517. "toast": null,
  10518. "userToFollow": null,
  10519. "viewBackgroundColor": "#ffffff",
  10520. "viewModeEnabled": false,
  10521. "width": 1024,
  10522. "zenModeEnabled": false,
  10523. "zoom": {
  10524. "value": 1,
  10525. },
  10526. }
  10527. `;
  10528. exports[`regression tests > noop interaction after undo shouldn't create history entry > [end of test] history 1`] = `
  10529. History {
  10530. "onHistoryChangedEmitter": Emitter {
  10531. "subscribers": [],
  10532. },
  10533. "redoStack": [],
  10534. "undoStack": [
  10535. HistoryEntry {
  10536. "appStateChange": AppStateChange {
  10537. "delta": Delta {
  10538. "deleted": {
  10539. "selectedElementIds": {
  10540. "id0": true,
  10541. },
  10542. },
  10543. "inserted": {
  10544. "selectedElementIds": {},
  10545. },
  10546. },
  10547. },
  10548. "elementsChange": ElementsChange {
  10549. "added": Map {},
  10550. "removed": Map {
  10551. "id0" => Delta {
  10552. "deleted": {
  10553. "angle": 0,
  10554. "backgroundColor": "transparent",
  10555. "boundElements": null,
  10556. "customData": undefined,
  10557. "fillStyle": "solid",
  10558. "frameId": null,
  10559. "groupIds": [],
  10560. "height": 10,
  10561. "index": "a0",
  10562. "isDeleted": false,
  10563. "link": null,
  10564. "locked": false,
  10565. "opacity": 100,
  10566. "roughness": 1,
  10567. "roundness": {
  10568. "type": 3,
  10569. },
  10570. "strokeColor": "#1e1e1e",
  10571. "strokeStyle": "solid",
  10572. "strokeWidth": 2,
  10573. "type": "rectangle",
  10574. "width": 10,
  10575. "x": 10,
  10576. "y": 10,
  10577. },
  10578. "inserted": {
  10579. "isDeleted": true,
  10580. },
  10581. },
  10582. },
  10583. "updated": Map {},
  10584. },
  10585. },
  10586. HistoryEntry {
  10587. "appStateChange": AppStateChange {
  10588. "delta": Delta {
  10589. "deleted": {
  10590. "selectedElementIds": {
  10591. "id1": true,
  10592. },
  10593. },
  10594. "inserted": {
  10595. "selectedElementIds": {
  10596. "id0": true,
  10597. },
  10598. },
  10599. },
  10600. },
  10601. "elementsChange": ElementsChange {
  10602. "added": Map {},
  10603. "removed": Map {
  10604. "id1" => Delta {
  10605. "deleted": {
  10606. "angle": 0,
  10607. "backgroundColor": "transparent",
  10608. "boundElements": null,
  10609. "customData": undefined,
  10610. "fillStyle": "solid",
  10611. "frameId": null,
  10612. "groupIds": [],
  10613. "height": 10,
  10614. "index": "a1",
  10615. "isDeleted": false,
  10616. "link": null,
  10617. "locked": false,
  10618. "opacity": 100,
  10619. "roughness": 1,
  10620. "roundness": {
  10621. "type": 3,
  10622. },
  10623. "strokeColor": "#1e1e1e",
  10624. "strokeStyle": "solid",
  10625. "strokeWidth": 2,
  10626. "type": "rectangle",
  10627. "width": 10,
  10628. "x": 30,
  10629. "y": 10,
  10630. },
  10631. "inserted": {
  10632. "isDeleted": true,
  10633. },
  10634. },
  10635. },
  10636. "updated": Map {},
  10637. },
  10638. },
  10639. HistoryEntry {
  10640. "appStateChange": AppStateChange {
  10641. "delta": Delta {
  10642. "deleted": {
  10643. "selectedElementIds": {
  10644. "id0": true,
  10645. },
  10646. },
  10647. "inserted": {
  10648. "selectedElementIds": {
  10649. "id1": true,
  10650. },
  10651. },
  10652. },
  10653. },
  10654. "elementsChange": ElementsChange {
  10655. "added": Map {},
  10656. "removed": Map {},
  10657. "updated": Map {},
  10658. },
  10659. },
  10660. HistoryEntry {
  10661. "appStateChange": AppStateChange {
  10662. "delta": Delta {
  10663. "deleted": {
  10664. "selectedElementIds": {
  10665. "id1": true,
  10666. },
  10667. },
  10668. "inserted": {
  10669. "selectedElementIds": {
  10670. "id0": true,
  10671. },
  10672. },
  10673. },
  10674. },
  10675. "elementsChange": ElementsChange {
  10676. "added": Map {},
  10677. "removed": Map {},
  10678. "updated": Map {},
  10679. },
  10680. },
  10681. ],
  10682. }
  10683. `;
  10684. exports[`regression tests > noop interaction after undo shouldn't create history entry > [end of test] number of elements 1`] = `0`;
  10685. exports[`regression tests > noop interaction after undo shouldn't create history entry > [end of test] number of renders 1`] = `16`;
  10686. exports[`regression tests > pinch-to-zoom works > [end of test] appState 1`] = `
  10687. {
  10688. "activeEmbeddable": null,
  10689. "activeTool": {
  10690. "customType": null,
  10691. "lastActiveTool": null,
  10692. "locked": false,
  10693. "type": "selection",
  10694. },
  10695. "collaborators": Map {},
  10696. "contextMenu": null,
  10697. "currentChartType": "bar",
  10698. "currentHoveredFontFamily": null,
  10699. "currentItemBackgroundColor": "transparent",
  10700. "currentItemEndArrowhead": "arrow",
  10701. "currentItemFillStyle": "solid",
  10702. "currentItemFontFamily": 5,
  10703. "currentItemFontSize": 20,
  10704. "currentItemOpacity": 100,
  10705. "currentItemRoughness": 1,
  10706. "currentItemRoundness": "round",
  10707. "currentItemStartArrowhead": null,
  10708. "currentItemStrokeColor": "#1e1e1e",
  10709. "currentItemStrokeStyle": "solid",
  10710. "currentItemStrokeWidth": 2,
  10711. "currentItemTextAlign": "left",
  10712. "cursorButton": "down",
  10713. "defaultSidebarDockedPreference": false,
  10714. "draggingElement": null,
  10715. "editingElement": null,
  10716. "editingFrame": null,
  10717. "editingGroupId": null,
  10718. "editingLinearElement": null,
  10719. "elementsToHighlight": null,
  10720. "errorMessage": null,
  10721. "exportBackground": true,
  10722. "exportEmbedScene": false,
  10723. "exportScale": 1,
  10724. "exportWithDarkMode": false,
  10725. "fileHandle": null,
  10726. "followedBy": Set {},
  10727. "frameRendering": {
  10728. "clip": true,
  10729. "enabled": true,
  10730. "name": true,
  10731. "outline": true,
  10732. },
  10733. "frameToHighlight": null,
  10734. "gridSize": null,
  10735. "height": 768,
  10736. "isBindingEnabled": true,
  10737. "isLoading": false,
  10738. "isResizing": false,
  10739. "isRotating": false,
  10740. "lastPointerDownWith": "touch",
  10741. "multiElement": null,
  10742. "name": "Untitled-201933152653",
  10743. "objectsSnapModeEnabled": false,
  10744. "offsetLeft": 0,
  10745. "offsetTop": 0,
  10746. "openDialog": null,
  10747. "openMenu": null,
  10748. "openPopup": null,
  10749. "openSidebar": null,
  10750. "originSnapOffset": null,
  10751. "pasteDialog": {
  10752. "data": null,
  10753. "shown": false,
  10754. },
  10755. "penDetected": false,
  10756. "penMode": false,
  10757. "pendingImageElementId": null,
  10758. "previousSelectedElementIds": {},
  10759. "resizingElement": null,
  10760. "scrollX": "-6.25000",
  10761. "scrollY": 0,
  10762. "scrolledOutside": false,
  10763. "selectedElementIds": {},
  10764. "selectedElementsAreBeingDragged": false,
  10765. "selectedGroupIds": {},
  10766. "selectedLinearElement": null,
  10767. "selectionElement": null,
  10768. "shouldCacheIgnoreZoom": true,
  10769. "showHyperlinkPopup": false,
  10770. "showWelcomeScreen": true,
  10771. "snapLines": [],
  10772. "startBoundElement": null,
  10773. "stats": {
  10774. "open": false,
  10775. "panels": 3,
  10776. },
  10777. "suggestedBindings": [],
  10778. "theme": "light",
  10779. "toast": null,
  10780. "userToFollow": null,
  10781. "viewBackgroundColor": "#ffffff",
  10782. "viewModeEnabled": false,
  10783. "width": 1024,
  10784. "zenModeEnabled": false,
  10785. "zoom": {
  10786. "value": 1,
  10787. },
  10788. }
  10789. `;
  10790. exports[`regression tests > pinch-to-zoom works > [end of test] history 1`] = `
  10791. History {
  10792. "onHistoryChangedEmitter": Emitter {
  10793. "subscribers": [],
  10794. },
  10795. "redoStack": [],
  10796. "undoStack": [],
  10797. }
  10798. `;
  10799. exports[`regression tests > pinch-to-zoom works > [end of test] number of elements 1`] = `0`;
  10800. exports[`regression tests > pinch-to-zoom works > [end of test] number of renders 1`] = `7`;
  10801. exports[`regression tests > shift click on selected element should deselect it on pointer up > [end of test] appState 1`] = `
  10802. {
  10803. "activeEmbeddable": null,
  10804. "activeTool": {
  10805. "customType": null,
  10806. "lastActiveTool": null,
  10807. "locked": false,
  10808. "type": "selection",
  10809. },
  10810. "collaborators": Map {},
  10811. "contextMenu": null,
  10812. "currentChartType": "bar",
  10813. "currentHoveredFontFamily": null,
  10814. "currentItemBackgroundColor": "transparent",
  10815. "currentItemEndArrowhead": "arrow",
  10816. "currentItemFillStyle": "solid",
  10817. "currentItemFontFamily": 5,
  10818. "currentItemFontSize": 20,
  10819. "currentItemOpacity": 100,
  10820. "currentItemRoughness": 1,
  10821. "currentItemRoundness": "round",
  10822. "currentItemStartArrowhead": null,
  10823. "currentItemStrokeColor": "#1e1e1e",
  10824. "currentItemStrokeStyle": "solid",
  10825. "currentItemStrokeWidth": 2,
  10826. "currentItemTextAlign": "left",
  10827. "cursorButton": "up",
  10828. "defaultSidebarDockedPreference": false,
  10829. "draggingElement": null,
  10830. "editingElement": null,
  10831. "editingFrame": null,
  10832. "editingGroupId": null,
  10833. "editingLinearElement": null,
  10834. "elementsToHighlight": null,
  10835. "errorMessage": null,
  10836. "exportBackground": true,
  10837. "exportEmbedScene": false,
  10838. "exportScale": 1,
  10839. "exportWithDarkMode": false,
  10840. "fileHandle": null,
  10841. "followedBy": Set {},
  10842. "frameRendering": {
  10843. "clip": true,
  10844. "enabled": true,
  10845. "name": true,
  10846. "outline": true,
  10847. },
  10848. "frameToHighlight": null,
  10849. "gridSize": null,
  10850. "height": 768,
  10851. "isBindingEnabled": true,
  10852. "isLoading": false,
  10853. "isResizing": false,
  10854. "isRotating": false,
  10855. "lastPointerDownWith": "mouse",
  10856. "multiElement": null,
  10857. "name": "Untitled-201933152653",
  10858. "objectsSnapModeEnabled": false,
  10859. "offsetLeft": 0,
  10860. "offsetTop": 0,
  10861. "openDialog": null,
  10862. "openMenu": null,
  10863. "openPopup": null,
  10864. "openSidebar": null,
  10865. "originSnapOffset": null,
  10866. "pasteDialog": {
  10867. "data": null,
  10868. "shown": false,
  10869. },
  10870. "penDetected": false,
  10871. "penMode": false,
  10872. "pendingImageElementId": null,
  10873. "previousSelectedElementIds": {
  10874. "id0": true,
  10875. },
  10876. "resizingElement": null,
  10877. "scrollX": 0,
  10878. "scrollY": 0,
  10879. "scrolledOutside": false,
  10880. "selectedElementIds": {},
  10881. "selectedElementsAreBeingDragged": false,
  10882. "selectedGroupIds": {},
  10883. "selectedLinearElement": null,
  10884. "selectionElement": null,
  10885. "shouldCacheIgnoreZoom": false,
  10886. "showHyperlinkPopup": false,
  10887. "showWelcomeScreen": true,
  10888. "snapLines": [],
  10889. "startBoundElement": null,
  10890. "stats": {
  10891. "open": false,
  10892. "panels": 3,
  10893. },
  10894. "suggestedBindings": [],
  10895. "theme": "light",
  10896. "toast": null,
  10897. "userToFollow": null,
  10898. "viewBackgroundColor": "#ffffff",
  10899. "viewModeEnabled": false,
  10900. "width": 1024,
  10901. "zenModeEnabled": false,
  10902. "zoom": {
  10903. "value": 1,
  10904. },
  10905. }
  10906. `;
  10907. exports[`regression tests > shift click on selected element should deselect it on pointer up > [end of test] history 1`] = `
  10908. History {
  10909. "onHistoryChangedEmitter": Emitter {
  10910. "subscribers": [],
  10911. },
  10912. "redoStack": [],
  10913. "undoStack": [
  10914. HistoryEntry {
  10915. "appStateChange": AppStateChange {
  10916. "delta": Delta {
  10917. "deleted": {
  10918. "selectedElementIds": {
  10919. "id0": true,
  10920. },
  10921. },
  10922. "inserted": {
  10923. "selectedElementIds": {},
  10924. },
  10925. },
  10926. },
  10927. "elementsChange": ElementsChange {
  10928. "added": Map {},
  10929. "removed": Map {
  10930. "id0" => Delta {
  10931. "deleted": {
  10932. "angle": 0,
  10933. "backgroundColor": "transparent",
  10934. "boundElements": null,
  10935. "customData": undefined,
  10936. "fillStyle": "solid",
  10937. "frameId": null,
  10938. "groupIds": [],
  10939. "height": 10,
  10940. "index": "a0",
  10941. "isDeleted": false,
  10942. "link": null,
  10943. "locked": false,
  10944. "opacity": 100,
  10945. "roughness": 1,
  10946. "roundness": {
  10947. "type": 3,
  10948. },
  10949. "strokeColor": "#1e1e1e",
  10950. "strokeStyle": "solid",
  10951. "strokeWidth": 2,
  10952. "type": "rectangle",
  10953. "width": 10,
  10954. "x": 0,
  10955. "y": 0,
  10956. },
  10957. "inserted": {
  10958. "isDeleted": true,
  10959. },
  10960. },
  10961. },
  10962. "updated": Map {},
  10963. },
  10964. },
  10965. HistoryEntry {
  10966. "appStateChange": AppStateChange {
  10967. "delta": Delta {
  10968. "deleted": {
  10969. "selectedElementIds": {},
  10970. },
  10971. "inserted": {
  10972. "selectedElementIds": {
  10973. "id0": true,
  10974. },
  10975. },
  10976. },
  10977. },
  10978. "elementsChange": ElementsChange {
  10979. "added": Map {},
  10980. "removed": Map {},
  10981. "updated": Map {},
  10982. },
  10983. },
  10984. ],
  10985. }
  10986. `;
  10987. exports[`regression tests > shift click on selected element should deselect it on pointer up > [end of test] number of elements 1`] = `0`;
  10988. exports[`regression tests > shift click on selected element should deselect it on pointer up > [end of test] number of renders 1`] = `8`;
  10989. exports[`regression tests > shift-click to multiselect, then drag > [end of test] appState 1`] = `
  10990. {
  10991. "activeEmbeddable": null,
  10992. "activeTool": {
  10993. "customType": null,
  10994. "lastActiveTool": null,
  10995. "locked": false,
  10996. "type": "selection",
  10997. },
  10998. "collaborators": Map {},
  10999. "contextMenu": null,
  11000. "currentChartType": "bar",
  11001. "currentHoveredFontFamily": null,
  11002. "currentItemBackgroundColor": "transparent",
  11003. "currentItemEndArrowhead": "arrow",
  11004. "currentItemFillStyle": "solid",
  11005. "currentItemFontFamily": 5,
  11006. "currentItemFontSize": 20,
  11007. "currentItemOpacity": 100,
  11008. "currentItemRoughness": 1,
  11009. "currentItemRoundness": "round",
  11010. "currentItemStartArrowhead": null,
  11011. "currentItemStrokeColor": "#1e1e1e",
  11012. "currentItemStrokeStyle": "solid",
  11013. "currentItemStrokeWidth": 2,
  11014. "currentItemTextAlign": "left",
  11015. "cursorButton": "up",
  11016. "defaultSidebarDockedPreference": false,
  11017. "draggingElement": null,
  11018. "editingElement": null,
  11019. "editingFrame": null,
  11020. "editingGroupId": null,
  11021. "editingLinearElement": null,
  11022. "elementsToHighlight": null,
  11023. "errorMessage": null,
  11024. "exportBackground": true,
  11025. "exportEmbedScene": false,
  11026. "exportScale": 1,
  11027. "exportWithDarkMode": false,
  11028. "fileHandle": null,
  11029. "followedBy": Set {},
  11030. "frameRendering": {
  11031. "clip": true,
  11032. "enabled": true,
  11033. "name": true,
  11034. "outline": true,
  11035. },
  11036. "frameToHighlight": null,
  11037. "gridSize": null,
  11038. "height": 768,
  11039. "isBindingEnabled": true,
  11040. "isLoading": false,
  11041. "isResizing": false,
  11042. "isRotating": false,
  11043. "lastPointerDownWith": "mouse",
  11044. "multiElement": null,
  11045. "name": "Untitled-201933152653",
  11046. "objectsSnapModeEnabled": false,
  11047. "offsetLeft": 0,
  11048. "offsetTop": 0,
  11049. "openDialog": null,
  11050. "openMenu": null,
  11051. "openPopup": null,
  11052. "openSidebar": null,
  11053. "originSnapOffset": null,
  11054. "pasteDialog": {
  11055. "data": null,
  11056. "shown": false,
  11057. },
  11058. "penDetected": false,
  11059. "penMode": false,
  11060. "pendingImageElementId": null,
  11061. "previousSelectedElementIds": {
  11062. "id0": true,
  11063. "id1": true,
  11064. },
  11065. "resizingElement": null,
  11066. "scrollX": 0,
  11067. "scrollY": 0,
  11068. "scrolledOutside": false,
  11069. "selectedElementIds": {
  11070. "id0": true,
  11071. "id1": true,
  11072. },
  11073. "selectedElementsAreBeingDragged": false,
  11074. "selectedGroupIds": {},
  11075. "selectedLinearElement": null,
  11076. "selectionElement": null,
  11077. "shouldCacheIgnoreZoom": false,
  11078. "showHyperlinkPopup": false,
  11079. "showWelcomeScreen": true,
  11080. "snapLines": [],
  11081. "startBoundElement": null,
  11082. "stats": {
  11083. "open": false,
  11084. "panels": 3,
  11085. },
  11086. "suggestedBindings": [],
  11087. "theme": "light",
  11088. "toast": null,
  11089. "userToFollow": null,
  11090. "viewBackgroundColor": "#ffffff",
  11091. "viewModeEnabled": false,
  11092. "width": 1024,
  11093. "zenModeEnabled": false,
  11094. "zoom": {
  11095. "value": 1,
  11096. },
  11097. }
  11098. `;
  11099. exports[`regression tests > shift-click to multiselect, then drag > [end of test] history 1`] = `
  11100. History {
  11101. "onHistoryChangedEmitter": Emitter {
  11102. "subscribers": [],
  11103. },
  11104. "redoStack": [],
  11105. "undoStack": [
  11106. HistoryEntry {
  11107. "appStateChange": AppStateChange {
  11108. "delta": Delta {
  11109. "deleted": {
  11110. "selectedElementIds": {
  11111. "id0": true,
  11112. },
  11113. },
  11114. "inserted": {
  11115. "selectedElementIds": {},
  11116. },
  11117. },
  11118. },
  11119. "elementsChange": ElementsChange {
  11120. "added": Map {},
  11121. "removed": Map {
  11122. "id0" => Delta {
  11123. "deleted": {
  11124. "angle": 0,
  11125. "backgroundColor": "transparent",
  11126. "boundElements": null,
  11127. "customData": undefined,
  11128. "fillStyle": "solid",
  11129. "frameId": null,
  11130. "groupIds": [],
  11131. "height": 10,
  11132. "index": "a0",
  11133. "isDeleted": false,
  11134. "link": null,
  11135. "locked": false,
  11136. "opacity": 100,
  11137. "roughness": 1,
  11138. "roundness": {
  11139. "type": 3,
  11140. },
  11141. "strokeColor": "#1e1e1e",
  11142. "strokeStyle": "solid",
  11143. "strokeWidth": 2,
  11144. "type": "rectangle",
  11145. "width": 10,
  11146. "x": 10,
  11147. "y": 10,
  11148. },
  11149. "inserted": {
  11150. "isDeleted": true,
  11151. },
  11152. },
  11153. },
  11154. "updated": Map {},
  11155. },
  11156. },
  11157. HistoryEntry {
  11158. "appStateChange": AppStateChange {
  11159. "delta": Delta {
  11160. "deleted": {
  11161. "selectedElementIds": {
  11162. "id1": true,
  11163. },
  11164. },
  11165. "inserted": {
  11166. "selectedElementIds": {
  11167. "id0": true,
  11168. },
  11169. },
  11170. },
  11171. },
  11172. "elementsChange": ElementsChange {
  11173. "added": Map {},
  11174. "removed": Map {
  11175. "id1" => Delta {
  11176. "deleted": {
  11177. "angle": 0,
  11178. "backgroundColor": "transparent",
  11179. "boundElements": null,
  11180. "customData": undefined,
  11181. "fillStyle": "solid",
  11182. "frameId": null,
  11183. "groupIds": [],
  11184. "height": 10,
  11185. "index": "a1",
  11186. "isDeleted": false,
  11187. "link": null,
  11188. "locked": false,
  11189. "opacity": 100,
  11190. "roughness": 1,
  11191. "roundness": {
  11192. "type": 3,
  11193. },
  11194. "strokeColor": "#1e1e1e",
  11195. "strokeStyle": "solid",
  11196. "strokeWidth": 2,
  11197. "type": "rectangle",
  11198. "width": 10,
  11199. "x": 30,
  11200. "y": 10,
  11201. },
  11202. "inserted": {
  11203. "isDeleted": true,
  11204. },
  11205. },
  11206. },
  11207. "updated": Map {},
  11208. },
  11209. },
  11210. HistoryEntry {
  11211. "appStateChange": AppStateChange {
  11212. "delta": Delta {
  11213. "deleted": {
  11214. "selectedElementIds": {
  11215. "id0": true,
  11216. },
  11217. },
  11218. "inserted": {
  11219. "selectedElementIds": {
  11220. "id1": true,
  11221. },
  11222. },
  11223. },
  11224. },
  11225. "elementsChange": ElementsChange {
  11226. "added": Map {},
  11227. "removed": Map {},
  11228. "updated": Map {},
  11229. },
  11230. },
  11231. HistoryEntry {
  11232. "appStateChange": AppStateChange {
  11233. "delta": Delta {
  11234. "deleted": {
  11235. "selectedElementIds": {
  11236. "id1": true,
  11237. },
  11238. },
  11239. "inserted": {
  11240. "selectedElementIds": {},
  11241. },
  11242. },
  11243. },
  11244. "elementsChange": ElementsChange {
  11245. "added": Map {},
  11246. "removed": Map {},
  11247. "updated": Map {},
  11248. },
  11249. },
  11250. HistoryEntry {
  11251. "appStateChange": AppStateChange {
  11252. "delta": Delta {
  11253. "deleted": {},
  11254. "inserted": {},
  11255. },
  11256. },
  11257. "elementsChange": ElementsChange {
  11258. "added": Map {},
  11259. "removed": Map {},
  11260. "updated": Map {
  11261. "id0" => Delta {
  11262. "deleted": {
  11263. "x": 20,
  11264. "y": 20,
  11265. },
  11266. "inserted": {
  11267. "x": 10,
  11268. "y": 10,
  11269. },
  11270. },
  11271. "id1" => Delta {
  11272. "deleted": {
  11273. "x": 40,
  11274. "y": 20,
  11275. },
  11276. "inserted": {
  11277. "x": 30,
  11278. "y": 10,
  11279. },
  11280. },
  11281. },
  11282. },
  11283. },
  11284. ],
  11285. }
  11286. `;
  11287. exports[`regression tests > shift-click to multiselect, then drag > [end of test] number of elements 1`] = `0`;
  11288. exports[`regression tests > shift-click to multiselect, then drag > [end of test] number of renders 1`] = `15`;
  11289. exports[`regression tests > should group elements and ungroup them > [end of test] appState 1`] = `
  11290. {
  11291. "activeEmbeddable": null,
  11292. "activeTool": {
  11293. "customType": null,
  11294. "lastActiveTool": null,
  11295. "locked": false,
  11296. "type": "selection",
  11297. },
  11298. "collaborators": Map {},
  11299. "contextMenu": null,
  11300. "currentChartType": "bar",
  11301. "currentHoveredFontFamily": null,
  11302. "currentItemBackgroundColor": "transparent",
  11303. "currentItemEndArrowhead": "arrow",
  11304. "currentItemFillStyle": "solid",
  11305. "currentItemFontFamily": 5,
  11306. "currentItemFontSize": 20,
  11307. "currentItemOpacity": 100,
  11308. "currentItemRoughness": 1,
  11309. "currentItemRoundness": "round",
  11310. "currentItemStartArrowhead": null,
  11311. "currentItemStrokeColor": "#1e1e1e",
  11312. "currentItemStrokeStyle": "solid",
  11313. "currentItemStrokeWidth": 2,
  11314. "currentItemTextAlign": "left",
  11315. "cursorButton": "up",
  11316. "defaultSidebarDockedPreference": false,
  11317. "draggingElement": null,
  11318. "editingElement": null,
  11319. "editingFrame": null,
  11320. "editingGroupId": null,
  11321. "editingLinearElement": null,
  11322. "elementsToHighlight": null,
  11323. "errorMessage": null,
  11324. "exportBackground": true,
  11325. "exportEmbedScene": false,
  11326. "exportScale": 1,
  11327. "exportWithDarkMode": false,
  11328. "fileHandle": null,
  11329. "followedBy": Set {},
  11330. "frameRendering": {
  11331. "clip": true,
  11332. "enabled": true,
  11333. "name": true,
  11334. "outline": true,
  11335. },
  11336. "frameToHighlight": null,
  11337. "gridSize": null,
  11338. "height": 768,
  11339. "isBindingEnabled": true,
  11340. "isLoading": false,
  11341. "isResizing": false,
  11342. "isRotating": false,
  11343. "lastPointerDownWith": "mouse",
  11344. "multiElement": null,
  11345. "name": "Untitled-201933152653",
  11346. "objectsSnapModeEnabled": false,
  11347. "offsetLeft": 0,
  11348. "offsetTop": 0,
  11349. "openDialog": null,
  11350. "openMenu": null,
  11351. "openPopup": null,
  11352. "openSidebar": null,
  11353. "originSnapOffset": null,
  11354. "pasteDialog": {
  11355. "data": null,
  11356. "shown": false,
  11357. },
  11358. "penDetected": false,
  11359. "penMode": false,
  11360. "pendingImageElementId": null,
  11361. "previousSelectedElementIds": {
  11362. "id0": true,
  11363. "id1": true,
  11364. "id2": true,
  11365. },
  11366. "resizingElement": null,
  11367. "scrollX": 0,
  11368. "scrollY": 0,
  11369. "scrolledOutside": false,
  11370. "selectedElementIds": {
  11371. "id0": true,
  11372. "id1": true,
  11373. "id2": true,
  11374. },
  11375. "selectedElementsAreBeingDragged": false,
  11376. "selectedGroupIds": {},
  11377. "selectedLinearElement": null,
  11378. "selectionElement": null,
  11379. "shouldCacheIgnoreZoom": false,
  11380. "showHyperlinkPopup": false,
  11381. "showWelcomeScreen": true,
  11382. "snapLines": [],
  11383. "startBoundElement": null,
  11384. "stats": {
  11385. "open": false,
  11386. "panels": 3,
  11387. },
  11388. "suggestedBindings": [],
  11389. "theme": "light",
  11390. "toast": null,
  11391. "userToFollow": null,
  11392. "viewBackgroundColor": "#ffffff",
  11393. "viewModeEnabled": false,
  11394. "width": 1024,
  11395. "zenModeEnabled": false,
  11396. "zoom": {
  11397. "value": 1,
  11398. },
  11399. }
  11400. `;
  11401. exports[`regression tests > should group elements and ungroup them > [end of test] history 1`] = `
  11402. History {
  11403. "onHistoryChangedEmitter": Emitter {
  11404. "subscribers": [],
  11405. },
  11406. "redoStack": [],
  11407. "undoStack": [
  11408. HistoryEntry {
  11409. "appStateChange": AppStateChange {
  11410. "delta": Delta {
  11411. "deleted": {
  11412. "selectedElementIds": {
  11413. "id0": true,
  11414. },
  11415. },
  11416. "inserted": {
  11417. "selectedElementIds": {},
  11418. },
  11419. },
  11420. },
  11421. "elementsChange": ElementsChange {
  11422. "added": Map {},
  11423. "removed": Map {
  11424. "id0" => Delta {
  11425. "deleted": {
  11426. "angle": 0,
  11427. "backgroundColor": "transparent",
  11428. "boundElements": null,
  11429. "customData": undefined,
  11430. "fillStyle": "solid",
  11431. "frameId": null,
  11432. "groupIds": [],
  11433. "height": 10,
  11434. "index": "a0",
  11435. "isDeleted": false,
  11436. "link": null,
  11437. "locked": false,
  11438. "opacity": 100,
  11439. "roughness": 1,
  11440. "roundness": {
  11441. "type": 3,
  11442. },
  11443. "strokeColor": "#1e1e1e",
  11444. "strokeStyle": "solid",
  11445. "strokeWidth": 2,
  11446. "type": "rectangle",
  11447. "width": 10,
  11448. "x": 10,
  11449. "y": 10,
  11450. },
  11451. "inserted": {
  11452. "isDeleted": true,
  11453. },
  11454. },
  11455. },
  11456. "updated": Map {},
  11457. },
  11458. },
  11459. HistoryEntry {
  11460. "appStateChange": AppStateChange {
  11461. "delta": Delta {
  11462. "deleted": {
  11463. "selectedElementIds": {
  11464. "id1": true,
  11465. },
  11466. },
  11467. "inserted": {
  11468. "selectedElementIds": {
  11469. "id0": true,
  11470. },
  11471. },
  11472. },
  11473. },
  11474. "elementsChange": ElementsChange {
  11475. "added": Map {},
  11476. "removed": Map {
  11477. "id1" => Delta {
  11478. "deleted": {
  11479. "angle": 0,
  11480. "backgroundColor": "transparent",
  11481. "boundElements": null,
  11482. "customData": undefined,
  11483. "fillStyle": "solid",
  11484. "frameId": null,
  11485. "groupIds": [],
  11486. "height": 10,
  11487. "index": "a1",
  11488. "isDeleted": false,
  11489. "link": null,
  11490. "locked": false,
  11491. "opacity": 100,
  11492. "roughness": 1,
  11493. "roundness": {
  11494. "type": 3,
  11495. },
  11496. "strokeColor": "#1e1e1e",
  11497. "strokeStyle": "solid",
  11498. "strokeWidth": 2,
  11499. "type": "rectangle",
  11500. "width": 10,
  11501. "x": 30,
  11502. "y": 10,
  11503. },
  11504. "inserted": {
  11505. "isDeleted": true,
  11506. },
  11507. },
  11508. },
  11509. "updated": Map {},
  11510. },
  11511. },
  11512. HistoryEntry {
  11513. "appStateChange": AppStateChange {
  11514. "delta": Delta {
  11515. "deleted": {
  11516. "selectedElementIds": {
  11517. "id2": true,
  11518. },
  11519. },
  11520. "inserted": {
  11521. "selectedElementIds": {
  11522. "id1": true,
  11523. },
  11524. },
  11525. },
  11526. },
  11527. "elementsChange": ElementsChange {
  11528. "added": Map {},
  11529. "removed": Map {
  11530. "id2" => Delta {
  11531. "deleted": {
  11532. "angle": 0,
  11533. "backgroundColor": "transparent",
  11534. "boundElements": null,
  11535. "customData": undefined,
  11536. "fillStyle": "solid",
  11537. "frameId": null,
  11538. "groupIds": [],
  11539. "height": 10,
  11540. "index": "a2",
  11541. "isDeleted": false,
  11542. "link": null,
  11543. "locked": false,
  11544. "opacity": 100,
  11545. "roughness": 1,
  11546. "roundness": {
  11547. "type": 3,
  11548. },
  11549. "strokeColor": "#1e1e1e",
  11550. "strokeStyle": "solid",
  11551. "strokeWidth": 2,
  11552. "type": "rectangle",
  11553. "width": 10,
  11554. "x": 50,
  11555. "y": 10,
  11556. },
  11557. "inserted": {
  11558. "isDeleted": true,
  11559. },
  11560. },
  11561. },
  11562. "updated": Map {},
  11563. },
  11564. },
  11565. HistoryEntry {
  11566. "appStateChange": AppStateChange {
  11567. "delta": Delta {
  11568. "deleted": {
  11569. "selectedElementIds": {
  11570. "id0": true,
  11571. "id1": true,
  11572. },
  11573. },
  11574. "inserted": {
  11575. "selectedElementIds": {},
  11576. },
  11577. },
  11578. },
  11579. "elementsChange": ElementsChange {
  11580. "added": Map {},
  11581. "removed": Map {},
  11582. "updated": Map {},
  11583. },
  11584. },
  11585. HistoryEntry {
  11586. "appStateChange": AppStateChange {
  11587. "delta": Delta {
  11588. "deleted": {
  11589. "selectedGroupIds": {
  11590. "id4": true,
  11591. },
  11592. },
  11593. "inserted": {
  11594. "selectedGroupIds": {},
  11595. },
  11596. },
  11597. },
  11598. "elementsChange": ElementsChange {
  11599. "added": Map {},
  11600. "removed": Map {},
  11601. "updated": Map {
  11602. "id0" => Delta {
  11603. "deleted": {
  11604. "groupIds": [
  11605. "id4",
  11606. ],
  11607. },
  11608. "inserted": {
  11609. "groupIds": [],
  11610. },
  11611. },
  11612. "id1" => Delta {
  11613. "deleted": {
  11614. "groupIds": [
  11615. "id4",
  11616. ],
  11617. },
  11618. "inserted": {
  11619. "groupIds": [],
  11620. },
  11621. },
  11622. "id2" => Delta {
  11623. "deleted": {
  11624. "groupIds": [
  11625. "id4",
  11626. ],
  11627. },
  11628. "inserted": {
  11629. "groupIds": [],
  11630. },
  11631. },
  11632. },
  11633. },
  11634. },
  11635. HistoryEntry {
  11636. "appStateChange": AppStateChange {
  11637. "delta": Delta {
  11638. "deleted": {
  11639. "selectedGroupIds": {},
  11640. },
  11641. "inserted": {
  11642. "selectedGroupIds": {
  11643. "id4": true,
  11644. },
  11645. },
  11646. },
  11647. },
  11648. "elementsChange": ElementsChange {
  11649. "added": Map {},
  11650. "removed": Map {},
  11651. "updated": Map {
  11652. "id0" => Delta {
  11653. "deleted": {
  11654. "groupIds": [],
  11655. },
  11656. "inserted": {
  11657. "groupIds": [
  11658. "id4",
  11659. ],
  11660. },
  11661. },
  11662. "id1" => Delta {
  11663. "deleted": {
  11664. "groupIds": [],
  11665. },
  11666. "inserted": {
  11667. "groupIds": [
  11668. "id4",
  11669. ],
  11670. },
  11671. },
  11672. "id2" => Delta {
  11673. "deleted": {
  11674. "groupIds": [],
  11675. },
  11676. "inserted": {
  11677. "groupIds": [
  11678. "id4",
  11679. ],
  11680. },
  11681. },
  11682. },
  11683. },
  11684. },
  11685. ],
  11686. }
  11687. `;
  11688. exports[`regression tests > should group elements and ungroup them > [end of test] number of elements 1`] = `0`;
  11689. exports[`regression tests > should group elements and ungroup them > [end of test] number of renders 1`] = `21`;
  11690. exports[`regression tests > single-clicking on a subgroup of a selected group should not alter selection > [end of test] appState 1`] = `
  11691. {
  11692. "activeEmbeddable": null,
  11693. "activeTool": {
  11694. "customType": null,
  11695. "lastActiveTool": null,
  11696. "locked": false,
  11697. "type": "selection",
  11698. },
  11699. "collaborators": Map {},
  11700. "contextMenu": null,
  11701. "currentChartType": "bar",
  11702. "currentHoveredFontFamily": null,
  11703. "currentItemBackgroundColor": "transparent",
  11704. "currentItemEndArrowhead": "arrow",
  11705. "currentItemFillStyle": "solid",
  11706. "currentItemFontFamily": 5,
  11707. "currentItemFontSize": 20,
  11708. "currentItemOpacity": 100,
  11709. "currentItemRoughness": 1,
  11710. "currentItemRoundness": "round",
  11711. "currentItemStartArrowhead": null,
  11712. "currentItemStrokeColor": "#1e1e1e",
  11713. "currentItemStrokeStyle": "solid",
  11714. "currentItemStrokeWidth": 2,
  11715. "currentItemTextAlign": "left",
  11716. "cursorButton": "up",
  11717. "defaultSidebarDockedPreference": false,
  11718. "draggingElement": null,
  11719. "editingElement": null,
  11720. "editingFrame": null,
  11721. "editingGroupId": null,
  11722. "editingLinearElement": null,
  11723. "elementsToHighlight": null,
  11724. "errorMessage": null,
  11725. "exportBackground": true,
  11726. "exportEmbedScene": false,
  11727. "exportScale": 1,
  11728. "exportWithDarkMode": false,
  11729. "fileHandle": null,
  11730. "followedBy": Set {},
  11731. "frameRendering": {
  11732. "clip": true,
  11733. "enabled": true,
  11734. "name": true,
  11735. "outline": true,
  11736. },
  11737. "frameToHighlight": null,
  11738. "gridSize": null,
  11739. "height": 768,
  11740. "isBindingEnabled": true,
  11741. "isLoading": false,
  11742. "isResizing": false,
  11743. "isRotating": false,
  11744. "lastPointerDownWith": "mouse",
  11745. "multiElement": null,
  11746. "name": "Untitled-201933152653",
  11747. "objectsSnapModeEnabled": false,
  11748. "offsetLeft": 0,
  11749. "offsetTop": 0,
  11750. "openDialog": null,
  11751. "openMenu": null,
  11752. "openPopup": null,
  11753. "openSidebar": null,
  11754. "originSnapOffset": null,
  11755. "pasteDialog": {
  11756. "data": null,
  11757. "shown": false,
  11758. },
  11759. "penDetected": false,
  11760. "penMode": false,
  11761. "pendingImageElementId": null,
  11762. "previousSelectedElementIds": {
  11763. "id0": true,
  11764. "id1": true,
  11765. "id5": true,
  11766. "id6": true,
  11767. },
  11768. "resizingElement": null,
  11769. "scrollX": 0,
  11770. "scrollY": 0,
  11771. "scrolledOutside": false,
  11772. "selectedElementIds": {
  11773. "id0": true,
  11774. "id1": true,
  11775. "id5": true,
  11776. "id6": true,
  11777. },
  11778. "selectedElementsAreBeingDragged": false,
  11779. "selectedGroupIds": {
  11780. "id10": true,
  11781. },
  11782. "selectedLinearElement": null,
  11783. "selectionElement": null,
  11784. "shouldCacheIgnoreZoom": false,
  11785. "showHyperlinkPopup": false,
  11786. "showWelcomeScreen": true,
  11787. "snapLines": [],
  11788. "startBoundElement": null,
  11789. "stats": {
  11790. "open": false,
  11791. "panels": 3,
  11792. },
  11793. "suggestedBindings": [],
  11794. "theme": "light",
  11795. "toast": null,
  11796. "userToFollow": null,
  11797. "viewBackgroundColor": "#ffffff",
  11798. "viewModeEnabled": false,
  11799. "width": 1024,
  11800. "zenModeEnabled": false,
  11801. "zoom": {
  11802. "value": 1,
  11803. },
  11804. }
  11805. `;
  11806. exports[`regression tests > single-clicking on a subgroup of a selected group should not alter selection > [end of test] history 1`] = `
  11807. History {
  11808. "onHistoryChangedEmitter": Emitter {
  11809. "subscribers": [],
  11810. },
  11811. "redoStack": [],
  11812. "undoStack": [
  11813. HistoryEntry {
  11814. "appStateChange": AppStateChange {
  11815. "delta": Delta {
  11816. "deleted": {
  11817. "selectedElementIds": {
  11818. "id0": true,
  11819. },
  11820. },
  11821. "inserted": {
  11822. "selectedElementIds": {},
  11823. },
  11824. },
  11825. },
  11826. "elementsChange": ElementsChange {
  11827. "added": Map {},
  11828. "removed": Map {
  11829. "id0" => Delta {
  11830. "deleted": {
  11831. "angle": 0,
  11832. "backgroundColor": "transparent",
  11833. "boundElements": null,
  11834. "customData": undefined,
  11835. "fillStyle": "solid",
  11836. "frameId": null,
  11837. "groupIds": [],
  11838. "height": 10,
  11839. "index": "a0",
  11840. "isDeleted": false,
  11841. "link": null,
  11842. "locked": false,
  11843. "opacity": 100,
  11844. "roughness": 1,
  11845. "roundness": {
  11846. "type": 3,
  11847. },
  11848. "strokeColor": "#1e1e1e",
  11849. "strokeStyle": "solid",
  11850. "strokeWidth": 2,
  11851. "type": "rectangle",
  11852. "width": 10,
  11853. "x": 10,
  11854. "y": 0,
  11855. },
  11856. "inserted": {
  11857. "isDeleted": true,
  11858. },
  11859. },
  11860. },
  11861. "updated": Map {},
  11862. },
  11863. },
  11864. HistoryEntry {
  11865. "appStateChange": AppStateChange {
  11866. "delta": Delta {
  11867. "deleted": {
  11868. "selectedElementIds": {
  11869. "id1": true,
  11870. },
  11871. },
  11872. "inserted": {
  11873. "selectedElementIds": {
  11874. "id0": true,
  11875. },
  11876. },
  11877. },
  11878. },
  11879. "elementsChange": ElementsChange {
  11880. "added": Map {},
  11881. "removed": Map {
  11882. "id1" => Delta {
  11883. "deleted": {
  11884. "angle": 0,
  11885. "backgroundColor": "transparent",
  11886. "boundElements": null,
  11887. "customData": undefined,
  11888. "fillStyle": "solid",
  11889. "frameId": null,
  11890. "groupIds": [],
  11891. "height": 10,
  11892. "index": "a1",
  11893. "isDeleted": false,
  11894. "link": null,
  11895. "locked": false,
  11896. "opacity": 100,
  11897. "roughness": 1,
  11898. "roundness": {
  11899. "type": 3,
  11900. },
  11901. "strokeColor": "#1e1e1e",
  11902. "strokeStyle": "solid",
  11903. "strokeWidth": 2,
  11904. "type": "rectangle",
  11905. "width": 10,
  11906. "x": 50,
  11907. "y": 0,
  11908. },
  11909. "inserted": {
  11910. "isDeleted": true,
  11911. },
  11912. },
  11913. },
  11914. "updated": Map {},
  11915. },
  11916. },
  11917. HistoryEntry {
  11918. "appStateChange": AppStateChange {
  11919. "delta": Delta {
  11920. "deleted": {
  11921. "selectedElementIds": {
  11922. "id0": true,
  11923. },
  11924. },
  11925. "inserted": {
  11926. "selectedElementIds": {
  11927. "id1": true,
  11928. },
  11929. },
  11930. },
  11931. },
  11932. "elementsChange": ElementsChange {
  11933. "added": Map {},
  11934. "removed": Map {},
  11935. "updated": Map {},
  11936. },
  11937. },
  11938. HistoryEntry {
  11939. "appStateChange": AppStateChange {
  11940. "delta": Delta {
  11941. "deleted": {
  11942. "selectedElementIds": {
  11943. "id1": true,
  11944. },
  11945. },
  11946. "inserted": {
  11947. "selectedElementIds": {},
  11948. },
  11949. },
  11950. },
  11951. "elementsChange": ElementsChange {
  11952. "added": Map {},
  11953. "removed": Map {},
  11954. "updated": Map {},
  11955. },
  11956. },
  11957. HistoryEntry {
  11958. "appStateChange": AppStateChange {
  11959. "delta": Delta {
  11960. "deleted": {
  11961. "selectedGroupIds": {
  11962. "id4": true,
  11963. },
  11964. },
  11965. "inserted": {
  11966. "selectedGroupIds": {},
  11967. },
  11968. },
  11969. },
  11970. "elementsChange": ElementsChange {
  11971. "added": Map {},
  11972. "removed": Map {},
  11973. "updated": Map {
  11974. "id0" => Delta {
  11975. "deleted": {
  11976. "groupIds": [
  11977. "id4",
  11978. ],
  11979. },
  11980. "inserted": {
  11981. "groupIds": [],
  11982. },
  11983. },
  11984. "id1" => Delta {
  11985. "deleted": {
  11986. "groupIds": [
  11987. "id4",
  11988. ],
  11989. },
  11990. "inserted": {
  11991. "groupIds": [],
  11992. },
  11993. },
  11994. },
  11995. },
  11996. },
  11997. HistoryEntry {
  11998. "appStateChange": AppStateChange {
  11999. "delta": Delta {
  12000. "deleted": {
  12001. "selectedElementIds": {
  12002. "id5": true,
  12003. },
  12004. "selectedGroupIds": {},
  12005. },
  12006. "inserted": {
  12007. "selectedElementIds": {
  12008. "id0": true,
  12009. "id1": true,
  12010. },
  12011. "selectedGroupIds": {
  12012. "id4": true,
  12013. },
  12014. },
  12015. },
  12016. },
  12017. "elementsChange": ElementsChange {
  12018. "added": Map {},
  12019. "removed": Map {
  12020. "id5" => Delta {
  12021. "deleted": {
  12022. "angle": 0,
  12023. "backgroundColor": "transparent",
  12024. "boundElements": null,
  12025. "customData": undefined,
  12026. "fillStyle": "solid",
  12027. "frameId": null,
  12028. "groupIds": [],
  12029. "height": 10,
  12030. "index": "a2",
  12031. "isDeleted": false,
  12032. "link": null,
  12033. "locked": false,
  12034. "opacity": 100,
  12035. "roughness": 1,
  12036. "roundness": {
  12037. "type": 3,
  12038. },
  12039. "strokeColor": "#1e1e1e",
  12040. "strokeStyle": "solid",
  12041. "strokeWidth": 2,
  12042. "type": "rectangle",
  12043. "width": 10,
  12044. "x": 10,
  12045. "y": 50,
  12046. },
  12047. "inserted": {
  12048. "isDeleted": true,
  12049. },
  12050. },
  12051. },
  12052. "updated": Map {},
  12053. },
  12054. },
  12055. HistoryEntry {
  12056. "appStateChange": AppStateChange {
  12057. "delta": Delta {
  12058. "deleted": {
  12059. "selectedElementIds": {
  12060. "id6": true,
  12061. },
  12062. },
  12063. "inserted": {
  12064. "selectedElementIds": {
  12065. "id5": true,
  12066. },
  12067. },
  12068. },
  12069. },
  12070. "elementsChange": ElementsChange {
  12071. "added": Map {},
  12072. "removed": Map {
  12073. "id6" => Delta {
  12074. "deleted": {
  12075. "angle": 0,
  12076. "backgroundColor": "transparent",
  12077. "boundElements": null,
  12078. "customData": undefined,
  12079. "fillStyle": "solid",
  12080. "frameId": null,
  12081. "groupIds": [],
  12082. "height": 10,
  12083. "index": "a3",
  12084. "isDeleted": false,
  12085. "link": null,
  12086. "locked": false,
  12087. "opacity": 100,
  12088. "roughness": 1,
  12089. "roundness": {
  12090. "type": 3,
  12091. },
  12092. "strokeColor": "#1e1e1e",
  12093. "strokeStyle": "solid",
  12094. "strokeWidth": 2,
  12095. "type": "rectangle",
  12096. "width": 10,
  12097. "x": 50,
  12098. "y": 50,
  12099. },
  12100. "inserted": {
  12101. "isDeleted": true,
  12102. },
  12103. },
  12104. },
  12105. "updated": Map {},
  12106. },
  12107. },
  12108. HistoryEntry {
  12109. "appStateChange": AppStateChange {
  12110. "delta": Delta {
  12111. "deleted": {
  12112. "selectedElementIds": {
  12113. "id5": true,
  12114. },
  12115. },
  12116. "inserted": {
  12117. "selectedElementIds": {
  12118. "id6": true,
  12119. },
  12120. },
  12121. },
  12122. },
  12123. "elementsChange": ElementsChange {
  12124. "added": Map {},
  12125. "removed": Map {},
  12126. "updated": Map {},
  12127. },
  12128. },
  12129. HistoryEntry {
  12130. "appStateChange": AppStateChange {
  12131. "delta": Delta {
  12132. "deleted": {
  12133. "selectedElementIds": {
  12134. "id6": true,
  12135. },
  12136. },
  12137. "inserted": {
  12138. "selectedElementIds": {},
  12139. },
  12140. },
  12141. },
  12142. "elementsChange": ElementsChange {
  12143. "added": Map {},
  12144. "removed": Map {},
  12145. "updated": Map {},
  12146. },
  12147. },
  12148. HistoryEntry {
  12149. "appStateChange": AppStateChange {
  12150. "delta": Delta {
  12151. "deleted": {
  12152. "selectedGroupIds": {
  12153. "id9": true,
  12154. },
  12155. },
  12156. "inserted": {
  12157. "selectedGroupIds": {},
  12158. },
  12159. },
  12160. },
  12161. "elementsChange": ElementsChange {
  12162. "added": Map {},
  12163. "removed": Map {},
  12164. "updated": Map {
  12165. "id5" => Delta {
  12166. "deleted": {
  12167. "groupIds": [
  12168. "id9",
  12169. ],
  12170. },
  12171. "inserted": {
  12172. "groupIds": [],
  12173. },
  12174. },
  12175. "id6" => Delta {
  12176. "deleted": {
  12177. "groupIds": [
  12178. "id9",
  12179. ],
  12180. },
  12181. "inserted": {
  12182. "groupIds": [],
  12183. },
  12184. },
  12185. },
  12186. },
  12187. },
  12188. HistoryEntry {
  12189. "appStateChange": AppStateChange {
  12190. "delta": Delta {
  12191. "deleted": {
  12192. "selectedElementIds": {
  12193. "id0": true,
  12194. "id1": true,
  12195. },
  12196. "selectedGroupIds": {
  12197. "id4": true,
  12198. },
  12199. },
  12200. "inserted": {
  12201. "selectedElementIds": {},
  12202. "selectedGroupIds": {},
  12203. },
  12204. },
  12205. },
  12206. "elementsChange": ElementsChange {
  12207. "added": Map {},
  12208. "removed": Map {},
  12209. "updated": Map {},
  12210. },
  12211. },
  12212. HistoryEntry {
  12213. "appStateChange": AppStateChange {
  12214. "delta": Delta {
  12215. "deleted": {
  12216. "selectedGroupIds": {
  12217. "id10": true,
  12218. },
  12219. },
  12220. "inserted": {
  12221. "selectedGroupIds": {
  12222. "id4": true,
  12223. "id9": true,
  12224. },
  12225. },
  12226. },
  12227. },
  12228. "elementsChange": ElementsChange {
  12229. "added": Map {},
  12230. "removed": Map {},
  12231. "updated": Map {
  12232. "id0" => Delta {
  12233. "deleted": {
  12234. "groupIds": [
  12235. "id4",
  12236. "id10",
  12237. ],
  12238. },
  12239. "inserted": {
  12240. "groupIds": [
  12241. "id4",
  12242. ],
  12243. },
  12244. },
  12245. "id1" => Delta {
  12246. "deleted": {
  12247. "groupIds": [
  12248. "id4",
  12249. "id10",
  12250. ],
  12251. },
  12252. "inserted": {
  12253. "groupIds": [
  12254. "id4",
  12255. ],
  12256. },
  12257. },
  12258. "id5" => Delta {
  12259. "deleted": {
  12260. "groupIds": [
  12261. "id9",
  12262. "id10",
  12263. ],
  12264. },
  12265. "inserted": {
  12266. "groupIds": [
  12267. "id9",
  12268. ],
  12269. },
  12270. },
  12271. "id6" => Delta {
  12272. "deleted": {
  12273. "groupIds": [
  12274. "id9",
  12275. "id10",
  12276. ],
  12277. },
  12278. "inserted": {
  12279. "groupIds": [
  12280. "id9",
  12281. ],
  12282. },
  12283. },
  12284. },
  12285. },
  12286. },
  12287. ],
  12288. }
  12289. `;
  12290. exports[`regression tests > single-clicking on a subgroup of a selected group should not alter selection > [end of test] number of elements 1`] = `0`;
  12291. exports[`regression tests > single-clicking on a subgroup of a selected group should not alter selection > [end of test] number of renders 1`] = `29`;
  12292. exports[`regression tests > spacebar + drag scrolls the canvas > [end of test] appState 1`] = `
  12293. {
  12294. "activeEmbeddable": null,
  12295. "activeTool": {
  12296. "customType": null,
  12297. "lastActiveTool": null,
  12298. "locked": false,
  12299. "type": "selection",
  12300. },
  12301. "collaborators": Map {},
  12302. "contextMenu": null,
  12303. "currentChartType": "bar",
  12304. "currentHoveredFontFamily": null,
  12305. "currentItemBackgroundColor": "transparent",
  12306. "currentItemEndArrowhead": "arrow",
  12307. "currentItemFillStyle": "solid",
  12308. "currentItemFontFamily": 5,
  12309. "currentItemFontSize": 20,
  12310. "currentItemOpacity": 100,
  12311. "currentItemRoughness": 1,
  12312. "currentItemRoundness": "round",
  12313. "currentItemStartArrowhead": null,
  12314. "currentItemStrokeColor": "#1e1e1e",
  12315. "currentItemStrokeStyle": "solid",
  12316. "currentItemStrokeWidth": 2,
  12317. "currentItemTextAlign": "left",
  12318. "cursorButton": "up",
  12319. "defaultSidebarDockedPreference": false,
  12320. "draggingElement": null,
  12321. "editingElement": null,
  12322. "editingFrame": null,
  12323. "editingGroupId": null,
  12324. "editingLinearElement": null,
  12325. "elementsToHighlight": null,
  12326. "errorMessage": null,
  12327. "exportBackground": true,
  12328. "exportEmbedScene": false,
  12329. "exportScale": 1,
  12330. "exportWithDarkMode": false,
  12331. "fileHandle": null,
  12332. "followedBy": Set {},
  12333. "frameRendering": {
  12334. "clip": true,
  12335. "enabled": true,
  12336. "name": true,
  12337. "outline": true,
  12338. },
  12339. "frameToHighlight": null,
  12340. "gridSize": null,
  12341. "height": 768,
  12342. "isBindingEnabled": true,
  12343. "isLoading": false,
  12344. "isResizing": false,
  12345. "isRotating": false,
  12346. "lastPointerDownWith": "mouse",
  12347. "multiElement": null,
  12348. "name": "Untitled-201933152653",
  12349. "objectsSnapModeEnabled": false,
  12350. "offsetLeft": 0,
  12351. "offsetTop": 0,
  12352. "openDialog": null,
  12353. "openMenu": null,
  12354. "openPopup": null,
  12355. "openSidebar": null,
  12356. "originSnapOffset": {
  12357. "x": 0,
  12358. "y": 0,
  12359. },
  12360. "pasteDialog": {
  12361. "data": null,
  12362. "shown": false,
  12363. },
  12364. "penDetected": false,
  12365. "penMode": false,
  12366. "pendingImageElementId": null,
  12367. "previousSelectedElementIds": {},
  12368. "resizingElement": null,
  12369. "scrollX": 60,
  12370. "scrollY": 60,
  12371. "scrolledOutside": false,
  12372. "selectedElementIds": {},
  12373. "selectedElementsAreBeingDragged": false,
  12374. "selectedGroupIds": {},
  12375. "selectedLinearElement": null,
  12376. "selectionElement": null,
  12377. "shouldCacheIgnoreZoom": false,
  12378. "showHyperlinkPopup": false,
  12379. "showWelcomeScreen": true,
  12380. "snapLines": [],
  12381. "startBoundElement": null,
  12382. "stats": {
  12383. "open": false,
  12384. "panels": 3,
  12385. },
  12386. "suggestedBindings": [],
  12387. "theme": "light",
  12388. "toast": null,
  12389. "userToFollow": null,
  12390. "viewBackgroundColor": "#ffffff",
  12391. "viewModeEnabled": false,
  12392. "width": 1024,
  12393. "zenModeEnabled": false,
  12394. "zoom": {
  12395. "value": 1,
  12396. },
  12397. }
  12398. `;
  12399. exports[`regression tests > spacebar + drag scrolls the canvas > [end of test] history 1`] = `
  12400. History {
  12401. "onHistoryChangedEmitter": Emitter {
  12402. "subscribers": [],
  12403. },
  12404. "redoStack": [],
  12405. "undoStack": [],
  12406. }
  12407. `;
  12408. exports[`regression tests > spacebar + drag scrolls the canvas > [end of test] number of elements 1`] = `0`;
  12409. exports[`regression tests > spacebar + drag scrolls the canvas > [end of test] number of renders 1`] = `5`;
  12410. exports[`regression tests > supports nested groups > [end of test] appState 1`] = `
  12411. {
  12412. "activeEmbeddable": null,
  12413. "activeTool": {
  12414. "customType": null,
  12415. "lastActiveTool": null,
  12416. "locked": false,
  12417. "type": "selection",
  12418. },
  12419. "collaborators": Map {},
  12420. "contextMenu": null,
  12421. "currentChartType": "bar",
  12422. "currentHoveredFontFamily": null,
  12423. "currentItemBackgroundColor": "transparent",
  12424. "currentItemEndArrowhead": "arrow",
  12425. "currentItemFillStyle": "solid",
  12426. "currentItemFontFamily": 5,
  12427. "currentItemFontSize": 20,
  12428. "currentItemOpacity": 100,
  12429. "currentItemRoughness": 1,
  12430. "currentItemRoundness": "round",
  12431. "currentItemStartArrowhead": null,
  12432. "currentItemStrokeColor": "#1e1e1e",
  12433. "currentItemStrokeStyle": "solid",
  12434. "currentItemStrokeWidth": 2,
  12435. "currentItemTextAlign": "left",
  12436. "cursorButton": "up",
  12437. "defaultSidebarDockedPreference": false,
  12438. "draggingElement": null,
  12439. "editingElement": null,
  12440. "editingFrame": null,
  12441. "editingGroupId": "id3",
  12442. "editingLinearElement": null,
  12443. "elementsToHighlight": null,
  12444. "errorMessage": null,
  12445. "exportBackground": true,
  12446. "exportEmbedScene": false,
  12447. "exportScale": 1,
  12448. "exportWithDarkMode": false,
  12449. "fileHandle": null,
  12450. "followedBy": Set {},
  12451. "frameRendering": {
  12452. "clip": true,
  12453. "enabled": true,
  12454. "name": true,
  12455. "outline": true,
  12456. },
  12457. "frameToHighlight": null,
  12458. "gridSize": null,
  12459. "height": 768,
  12460. "isBindingEnabled": true,
  12461. "isLoading": false,
  12462. "isResizing": false,
  12463. "isRotating": false,
  12464. "lastPointerDownWith": "mouse",
  12465. "multiElement": null,
  12466. "name": "Untitled-201933152653",
  12467. "objectsSnapModeEnabled": false,
  12468. "offsetLeft": 0,
  12469. "offsetTop": 0,
  12470. "openDialog": null,
  12471. "openMenu": null,
  12472. "openPopup": null,
  12473. "openSidebar": null,
  12474. "originSnapOffset": null,
  12475. "pasteDialog": {
  12476. "data": null,
  12477. "shown": false,
  12478. },
  12479. "penDetected": false,
  12480. "penMode": false,
  12481. "pendingImageElementId": null,
  12482. "previousSelectedElementIds": {
  12483. "id0": true,
  12484. },
  12485. "resizingElement": null,
  12486. "scrollX": 0,
  12487. "scrollY": 0,
  12488. "scrolledOutside": false,
  12489. "selectedElementIds": {
  12490. "id1": true,
  12491. },
  12492. "selectedElementsAreBeingDragged": false,
  12493. "selectedGroupIds": {},
  12494. "selectedLinearElement": null,
  12495. "selectionElement": null,
  12496. "shouldCacheIgnoreZoom": false,
  12497. "showHyperlinkPopup": false,
  12498. "showWelcomeScreen": true,
  12499. "snapLines": [],
  12500. "startBoundElement": null,
  12501. "stats": {
  12502. "open": false,
  12503. "panels": 3,
  12504. },
  12505. "suggestedBindings": [],
  12506. "theme": "light",
  12507. "toast": null,
  12508. "userToFollow": null,
  12509. "viewBackgroundColor": "#ffffff",
  12510. "viewModeEnabled": false,
  12511. "width": 1024,
  12512. "zenModeEnabled": false,
  12513. "zoom": {
  12514. "value": 1,
  12515. },
  12516. }
  12517. `;
  12518. exports[`regression tests > supports nested groups > [end of test] history 1`] = `
  12519. History {
  12520. "onHistoryChangedEmitter": Emitter {
  12521. "subscribers": [],
  12522. },
  12523. "redoStack": [],
  12524. "undoStack": [
  12525. HistoryEntry {
  12526. "appStateChange": AppStateChange {
  12527. "delta": Delta {
  12528. "deleted": {
  12529. "selectedElementIds": {
  12530. "id0": true,
  12531. },
  12532. },
  12533. "inserted": {
  12534. "selectedElementIds": {},
  12535. },
  12536. },
  12537. },
  12538. "elementsChange": ElementsChange {
  12539. "added": Map {},
  12540. "removed": Map {
  12541. "id0" => Delta {
  12542. "deleted": {
  12543. "angle": 0,
  12544. "backgroundColor": "transparent",
  12545. "boundElements": null,
  12546. "customData": undefined,
  12547. "fillStyle": "solid",
  12548. "frameId": null,
  12549. "groupIds": [],
  12550. "height": 50,
  12551. "index": "a0",
  12552. "isDeleted": false,
  12553. "link": null,
  12554. "locked": false,
  12555. "opacity": 100,
  12556. "roughness": 1,
  12557. "roundness": {
  12558. "type": 3,
  12559. },
  12560. "strokeColor": "#1e1e1e",
  12561. "strokeStyle": "solid",
  12562. "strokeWidth": 2,
  12563. "type": "rectangle",
  12564. "width": 50,
  12565. "x": 0,
  12566. "y": 0,
  12567. },
  12568. "inserted": {
  12569. "isDeleted": true,
  12570. },
  12571. },
  12572. },
  12573. "updated": Map {},
  12574. },
  12575. },
  12576. HistoryEntry {
  12577. "appStateChange": AppStateChange {
  12578. "delta": Delta {
  12579. "deleted": {
  12580. "selectedElementIds": {
  12581. "id1": true,
  12582. },
  12583. },
  12584. "inserted": {
  12585. "selectedElementIds": {
  12586. "id0": true,
  12587. },
  12588. },
  12589. },
  12590. },
  12591. "elementsChange": ElementsChange {
  12592. "added": Map {},
  12593. "removed": Map {
  12594. "id1" => Delta {
  12595. "deleted": {
  12596. "angle": 0,
  12597. "backgroundColor": "transparent",
  12598. "boundElements": null,
  12599. "customData": undefined,
  12600. "fillStyle": "solid",
  12601. "frameId": null,
  12602. "groupIds": [],
  12603. "height": 50,
  12604. "index": "a1",
  12605. "isDeleted": false,
  12606. "link": null,
  12607. "locked": false,
  12608. "opacity": 100,
  12609. "roughness": 1,
  12610. "roundness": {
  12611. "type": 3,
  12612. },
  12613. "strokeColor": "#1e1e1e",
  12614. "strokeStyle": "solid",
  12615. "strokeWidth": 2,
  12616. "type": "rectangle",
  12617. "width": 50,
  12618. "x": 100,
  12619. "y": 100,
  12620. },
  12621. "inserted": {
  12622. "isDeleted": true,
  12623. },
  12624. },
  12625. },
  12626. "updated": Map {},
  12627. },
  12628. },
  12629. HistoryEntry {
  12630. "appStateChange": AppStateChange {
  12631. "delta": Delta {
  12632. "deleted": {
  12633. "selectedElementIds": {
  12634. "id2": true,
  12635. },
  12636. },
  12637. "inserted": {
  12638. "selectedElementIds": {
  12639. "id1": true,
  12640. },
  12641. },
  12642. },
  12643. },
  12644. "elementsChange": ElementsChange {
  12645. "added": Map {},
  12646. "removed": Map {
  12647. "id2" => Delta {
  12648. "deleted": {
  12649. "angle": 0,
  12650. "backgroundColor": "transparent",
  12651. "boundElements": null,
  12652. "customData": undefined,
  12653. "fillStyle": "solid",
  12654. "frameId": null,
  12655. "groupIds": [],
  12656. "height": 50,
  12657. "index": "a2",
  12658. "isDeleted": false,
  12659. "link": null,
  12660. "locked": false,
  12661. "opacity": 100,
  12662. "roughness": 1,
  12663. "roundness": {
  12664. "type": 3,
  12665. },
  12666. "strokeColor": "#1e1e1e",
  12667. "strokeStyle": "solid",
  12668. "strokeWidth": 2,
  12669. "type": "rectangle",
  12670. "width": 50,
  12671. "x": 200,
  12672. "y": 200,
  12673. },
  12674. "inserted": {
  12675. "isDeleted": true,
  12676. },
  12677. },
  12678. },
  12679. "updated": Map {},
  12680. },
  12681. },
  12682. HistoryEntry {
  12683. "appStateChange": AppStateChange {
  12684. "delta": Delta {
  12685. "deleted": {
  12686. "selectedElementIds": {
  12687. "id0": true,
  12688. "id1": true,
  12689. },
  12690. },
  12691. "inserted": {
  12692. "selectedElementIds": {},
  12693. },
  12694. },
  12695. },
  12696. "elementsChange": ElementsChange {
  12697. "added": Map {},
  12698. "removed": Map {},
  12699. "updated": Map {},
  12700. },
  12701. },
  12702. HistoryEntry {
  12703. "appStateChange": AppStateChange {
  12704. "delta": Delta {
  12705. "deleted": {
  12706. "selectedGroupIds": {
  12707. "id3": true,
  12708. },
  12709. },
  12710. "inserted": {
  12711. "selectedGroupIds": {},
  12712. },
  12713. },
  12714. },
  12715. "elementsChange": ElementsChange {
  12716. "added": Map {},
  12717. "removed": Map {},
  12718. "updated": Map {
  12719. "id0" => Delta {
  12720. "deleted": {
  12721. "groupIds": [
  12722. "id3",
  12723. ],
  12724. },
  12725. "inserted": {
  12726. "groupIds": [],
  12727. },
  12728. },
  12729. "id1" => Delta {
  12730. "deleted": {
  12731. "groupIds": [
  12732. "id3",
  12733. ],
  12734. },
  12735. "inserted": {
  12736. "groupIds": [],
  12737. },
  12738. },
  12739. "id2" => Delta {
  12740. "deleted": {
  12741. "groupIds": [
  12742. "id3",
  12743. ],
  12744. },
  12745. "inserted": {
  12746. "groupIds": [],
  12747. },
  12748. },
  12749. },
  12750. },
  12751. },
  12752. HistoryEntry {
  12753. "appStateChange": AppStateChange {
  12754. "delta": Delta {
  12755. "deleted": {
  12756. "editingGroupId": "id3",
  12757. "selectedElementIds": {},
  12758. "selectedGroupIds": {},
  12759. },
  12760. "inserted": {
  12761. "editingGroupId": null,
  12762. "selectedElementIds": {
  12763. "id0": true,
  12764. "id1": true,
  12765. },
  12766. "selectedGroupIds": {
  12767. "id3": true,
  12768. },
  12769. },
  12770. },
  12771. },
  12772. "elementsChange": ElementsChange {
  12773. "added": Map {},
  12774. "removed": Map {},
  12775. "updated": Map {},
  12776. },
  12777. },
  12778. HistoryEntry {
  12779. "appStateChange": AppStateChange {
  12780. "delta": Delta {
  12781. "deleted": {
  12782. "selectedElementIds": {
  12783. "id0": true,
  12784. },
  12785. },
  12786. "inserted": {
  12787. "selectedElementIds": {},
  12788. },
  12789. },
  12790. },
  12791. "elementsChange": ElementsChange {
  12792. "added": Map {},
  12793. "removed": Map {},
  12794. "updated": Map {},
  12795. },
  12796. },
  12797. HistoryEntry {
  12798. "appStateChange": AppStateChange {
  12799. "delta": Delta {
  12800. "deleted": {
  12801. "selectedGroupIds": {
  12802. "id5": true,
  12803. },
  12804. },
  12805. "inserted": {
  12806. "selectedGroupIds": {},
  12807. },
  12808. },
  12809. },
  12810. "elementsChange": ElementsChange {
  12811. "added": Map {},
  12812. "removed": Map {},
  12813. "updated": Map {
  12814. "id0" => Delta {
  12815. "deleted": {
  12816. "groupIds": [
  12817. "id5",
  12818. "id3",
  12819. ],
  12820. "index": "a2",
  12821. },
  12822. "inserted": {
  12823. "groupIds": [
  12824. "id3",
  12825. ],
  12826. "index": "a0",
  12827. },
  12828. },
  12829. "id2" => Delta {
  12830. "deleted": {
  12831. "groupIds": [
  12832. "id5",
  12833. "id3",
  12834. ],
  12835. "index": "a3",
  12836. },
  12837. "inserted": {
  12838. "groupIds": [
  12839. "id3",
  12840. ],
  12841. "index": "a2",
  12842. },
  12843. },
  12844. },
  12845. },
  12846. },
  12847. HistoryEntry {
  12848. "appStateChange": AppStateChange {
  12849. "delta": Delta {
  12850. "deleted": {
  12851. "editingGroupId": null,
  12852. "selectedElementIds": {
  12853. "id1": true,
  12854. },
  12855. "selectedGroupIds": {
  12856. "id3": true,
  12857. },
  12858. },
  12859. "inserted": {
  12860. "editingGroupId": "id3",
  12861. "selectedElementIds": {},
  12862. "selectedGroupIds": {
  12863. "id5": true,
  12864. },
  12865. },
  12866. },
  12867. },
  12868. "elementsChange": ElementsChange {
  12869. "added": Map {},
  12870. "removed": Map {},
  12871. "updated": Map {},
  12872. },
  12873. },
  12874. HistoryEntry {
  12875. "appStateChange": AppStateChange {
  12876. "delta": Delta {
  12877. "deleted": {
  12878. "editingGroupId": "id3",
  12879. "selectedElementIds": {},
  12880. "selectedGroupIds": {
  12881. "id5": true,
  12882. },
  12883. },
  12884. "inserted": {
  12885. "editingGroupId": null,
  12886. "selectedElementIds": {
  12887. "id1": true,
  12888. },
  12889. "selectedGroupIds": {
  12890. "id3": true,
  12891. },
  12892. },
  12893. },
  12894. },
  12895. "elementsChange": ElementsChange {
  12896. "added": Map {},
  12897. "removed": Map {},
  12898. "updated": Map {},
  12899. },
  12900. },
  12901. HistoryEntry {
  12902. "appStateChange": AppStateChange {
  12903. "delta": Delta {
  12904. "deleted": {
  12905. "editingGroupId": "id5",
  12906. "selectedElementIds": {},
  12907. "selectedGroupIds": {},
  12908. },
  12909. "inserted": {
  12910. "editingGroupId": "id3",
  12911. "selectedElementIds": {
  12912. "id2": true,
  12913. },
  12914. "selectedGroupIds": {
  12915. "id5": true,
  12916. },
  12917. },
  12918. },
  12919. },
  12920. "elementsChange": ElementsChange {
  12921. "added": Map {},
  12922. "removed": Map {},
  12923. "updated": Map {},
  12924. },
  12925. },
  12926. HistoryEntry {
  12927. "appStateChange": AppStateChange {
  12928. "delta": Delta {
  12929. "deleted": {
  12930. "editingGroupId": null,
  12931. "selectedElementIds": {
  12932. "id1": true,
  12933. "id2": true,
  12934. },
  12935. "selectedGroupIds": {
  12936. "id3": true,
  12937. },
  12938. },
  12939. "inserted": {
  12940. "editingGroupId": "id5",
  12941. "selectedElementIds": {},
  12942. "selectedGroupIds": {},
  12943. },
  12944. },
  12945. },
  12946. "elementsChange": ElementsChange {
  12947. "added": Map {},
  12948. "removed": Map {},
  12949. "updated": Map {},
  12950. },
  12951. },
  12952. HistoryEntry {
  12953. "appStateChange": AppStateChange {
  12954. "delta": Delta {
  12955. "deleted": {
  12956. "editingGroupId": "id3",
  12957. "selectedElementIds": {},
  12958. "selectedGroupIds": {},
  12959. },
  12960. "inserted": {
  12961. "editingGroupId": null,
  12962. "selectedElementIds": {
  12963. "id0": true,
  12964. "id2": true,
  12965. },
  12966. "selectedGroupIds": {
  12967. "id3": true,
  12968. },
  12969. },
  12970. },
  12971. },
  12972. "elementsChange": ElementsChange {
  12973. "added": Map {},
  12974. "removed": Map {},
  12975. "updated": Map {},
  12976. },
  12977. },
  12978. ],
  12979. }
  12980. `;
  12981. exports[`regression tests > supports nested groups > [end of test] number of elements 1`] = `0`;
  12982. exports[`regression tests > supports nested groups > [end of test] number of renders 1`] = `26`;
  12983. exports[`regression tests > switches from group of selected elements to another element on pointer down > [end of test] appState 1`] = `
  12984. {
  12985. "activeEmbeddable": null,
  12986. "activeTool": {
  12987. "customType": null,
  12988. "lastActiveTool": null,
  12989. "locked": false,
  12990. "type": "selection",
  12991. },
  12992. "collaborators": Map {},
  12993. "contextMenu": null,
  12994. "currentChartType": "bar",
  12995. "currentHoveredFontFamily": null,
  12996. "currentItemBackgroundColor": "transparent",
  12997. "currentItemEndArrowhead": "arrow",
  12998. "currentItemFillStyle": "solid",
  12999. "currentItemFontFamily": 5,
  13000. "currentItemFontSize": 20,
  13001. "currentItemOpacity": 100,
  13002. "currentItemRoughness": 1,
  13003. "currentItemRoundness": "round",
  13004. "currentItemStartArrowhead": null,
  13005. "currentItemStrokeColor": "#1e1e1e",
  13006. "currentItemStrokeStyle": "solid",
  13007. "currentItemStrokeWidth": 2,
  13008. "currentItemTextAlign": "left",
  13009. "cursorButton": "down",
  13010. "defaultSidebarDockedPreference": false,
  13011. "draggingElement": {
  13012. "angle": 0,
  13013. "backgroundColor": "transparent",
  13014. "boundElements": null,
  13015. "customData": undefined,
  13016. "fillStyle": "solid",
  13017. "frameId": null,
  13018. "groupIds": [],
  13019. "height": 0,
  13020. "id": "id4",
  13021. "index": null,
  13022. "isDeleted": false,
  13023. "link": null,
  13024. "locked": false,
  13025. "opacity": 100,
  13026. "roughness": 1,
  13027. "roundness": {
  13028. "type": 2,
  13029. },
  13030. "seed": 1723083209,
  13031. "strokeColor": "#1e1e1e",
  13032. "strokeStyle": "solid",
  13033. "strokeWidth": 2,
  13034. "type": "selection",
  13035. "updated": 1,
  13036. "version": 1,
  13037. "versionNonce": 0,
  13038. "width": 0,
  13039. "x": 0,
  13040. "y": 0,
  13041. },
  13042. "editingElement": null,
  13043. "editingFrame": null,
  13044. "editingGroupId": null,
  13045. "editingLinearElement": null,
  13046. "elementsToHighlight": null,
  13047. "errorMessage": null,
  13048. "exportBackground": true,
  13049. "exportEmbedScene": false,
  13050. "exportScale": 1,
  13051. "exportWithDarkMode": false,
  13052. "fileHandle": null,
  13053. "followedBy": Set {},
  13054. "frameRendering": {
  13055. "clip": true,
  13056. "enabled": true,
  13057. "name": true,
  13058. "outline": true,
  13059. },
  13060. "frameToHighlight": null,
  13061. "gridSize": null,
  13062. "height": 768,
  13063. "isBindingEnabled": true,
  13064. "isLoading": false,
  13065. "isResizing": false,
  13066. "isRotating": false,
  13067. "lastPointerDownWith": "mouse",
  13068. "multiElement": null,
  13069. "name": "Untitled-201933152653",
  13070. "objectsSnapModeEnabled": false,
  13071. "offsetLeft": 0,
  13072. "offsetTop": 0,
  13073. "openDialog": null,
  13074. "openMenu": null,
  13075. "openPopup": null,
  13076. "openSidebar": null,
  13077. "originSnapOffset": null,
  13078. "pasteDialog": {
  13079. "data": null,
  13080. "shown": false,
  13081. },
  13082. "penDetected": false,
  13083. "penMode": false,
  13084. "pendingImageElementId": null,
  13085. "previousSelectedElementIds": {
  13086. "id1": true,
  13087. "id2": true,
  13088. },
  13089. "resizingElement": null,
  13090. "scrollX": 0,
  13091. "scrollY": 0,
  13092. "scrolledOutside": false,
  13093. "selectedElementIds": {
  13094. "id0": true,
  13095. },
  13096. "selectedElementsAreBeingDragged": false,
  13097. "selectedGroupIds": {},
  13098. "selectedLinearElement": null,
  13099. "selectionElement": {
  13100. "angle": 0,
  13101. "backgroundColor": "transparent",
  13102. "boundElements": null,
  13103. "customData": undefined,
  13104. "fillStyle": "solid",
  13105. "frameId": null,
  13106. "groupIds": [],
  13107. "height": 0,
  13108. "id": "id4",
  13109. "index": null,
  13110. "isDeleted": false,
  13111. "link": null,
  13112. "locked": false,
  13113. "opacity": 100,
  13114. "roughness": 1,
  13115. "roundness": {
  13116. "type": 2,
  13117. },
  13118. "seed": 1723083209,
  13119. "strokeColor": "#1e1e1e",
  13120. "strokeStyle": "solid",
  13121. "strokeWidth": 2,
  13122. "type": "selection",
  13123. "updated": 1,
  13124. "version": 1,
  13125. "versionNonce": 0,
  13126. "width": 0,
  13127. "x": 0,
  13128. "y": 0,
  13129. },
  13130. "shouldCacheIgnoreZoom": false,
  13131. "showHyperlinkPopup": false,
  13132. "showWelcomeScreen": true,
  13133. "snapLines": [],
  13134. "startBoundElement": null,
  13135. "stats": {
  13136. "open": false,
  13137. "panels": 3,
  13138. },
  13139. "suggestedBindings": [],
  13140. "theme": "light",
  13141. "toast": null,
  13142. "userToFollow": null,
  13143. "viewBackgroundColor": "#ffffff",
  13144. "viewModeEnabled": false,
  13145. "width": 1024,
  13146. "zenModeEnabled": false,
  13147. "zoom": {
  13148. "value": 1,
  13149. },
  13150. }
  13151. `;
  13152. exports[`regression tests > switches from group of selected elements to another element on pointer down > [end of test] history 1`] = `
  13153. History {
  13154. "onHistoryChangedEmitter": Emitter {
  13155. "subscribers": [],
  13156. },
  13157. "redoStack": [],
  13158. "undoStack": [
  13159. HistoryEntry {
  13160. "appStateChange": AppStateChange {
  13161. "delta": Delta {
  13162. "deleted": {
  13163. "selectedElementIds": {
  13164. "id0": true,
  13165. },
  13166. },
  13167. "inserted": {
  13168. "selectedElementIds": {},
  13169. },
  13170. },
  13171. },
  13172. "elementsChange": ElementsChange {
  13173. "added": Map {},
  13174. "removed": Map {
  13175. "id0" => Delta {
  13176. "deleted": {
  13177. "angle": 0,
  13178. "backgroundColor": "transparent",
  13179. "boundElements": null,
  13180. "customData": undefined,
  13181. "fillStyle": "solid",
  13182. "frameId": null,
  13183. "groupIds": [],
  13184. "height": 10,
  13185. "index": "a0",
  13186. "isDeleted": false,
  13187. "link": null,
  13188. "locked": false,
  13189. "opacity": 100,
  13190. "roughness": 1,
  13191. "roundness": {
  13192. "type": 3,
  13193. },
  13194. "strokeColor": "#1e1e1e",
  13195. "strokeStyle": "solid",
  13196. "strokeWidth": 2,
  13197. "type": "rectangle",
  13198. "width": 10,
  13199. "x": 0,
  13200. "y": 0,
  13201. },
  13202. "inserted": {
  13203. "isDeleted": true,
  13204. },
  13205. },
  13206. },
  13207. "updated": Map {},
  13208. },
  13209. },
  13210. HistoryEntry {
  13211. "appStateChange": AppStateChange {
  13212. "delta": Delta {
  13213. "deleted": {
  13214. "selectedElementIds": {
  13215. "id1": true,
  13216. },
  13217. },
  13218. "inserted": {
  13219. "selectedElementIds": {
  13220. "id0": true,
  13221. },
  13222. },
  13223. },
  13224. },
  13225. "elementsChange": ElementsChange {
  13226. "added": Map {},
  13227. "removed": Map {
  13228. "id1" => Delta {
  13229. "deleted": {
  13230. "angle": 0,
  13231. "backgroundColor": "transparent",
  13232. "boundElements": null,
  13233. "customData": undefined,
  13234. "fillStyle": "solid",
  13235. "frameId": null,
  13236. "groupIds": [],
  13237. "height": 100,
  13238. "index": "a1",
  13239. "isDeleted": false,
  13240. "link": null,
  13241. "locked": false,
  13242. "opacity": 100,
  13243. "roughness": 1,
  13244. "roundness": {
  13245. "type": 2,
  13246. },
  13247. "strokeColor": "#1e1e1e",
  13248. "strokeStyle": "solid",
  13249. "strokeWidth": 2,
  13250. "type": "ellipse",
  13251. "width": 100,
  13252. "x": 110,
  13253. "y": 110,
  13254. },
  13255. "inserted": {
  13256. "isDeleted": true,
  13257. },
  13258. },
  13259. },
  13260. "updated": Map {},
  13261. },
  13262. },
  13263. HistoryEntry {
  13264. "appStateChange": AppStateChange {
  13265. "delta": Delta {
  13266. "deleted": {
  13267. "selectedElementIds": {
  13268. "id2": true,
  13269. },
  13270. },
  13271. "inserted": {
  13272. "selectedElementIds": {
  13273. "id1": true,
  13274. },
  13275. },
  13276. },
  13277. },
  13278. "elementsChange": ElementsChange {
  13279. "added": Map {},
  13280. "removed": Map {
  13281. "id2" => Delta {
  13282. "deleted": {
  13283. "angle": 0,
  13284. "backgroundColor": "transparent",
  13285. "boundElements": null,
  13286. "customData": undefined,
  13287. "fillStyle": "solid",
  13288. "frameId": null,
  13289. "groupIds": [],
  13290. "height": 100,
  13291. "index": "a2",
  13292. "isDeleted": false,
  13293. "link": null,
  13294. "locked": false,
  13295. "opacity": 100,
  13296. "roughness": 1,
  13297. "roundness": {
  13298. "type": 2,
  13299. },
  13300. "strokeColor": "#1e1e1e",
  13301. "strokeStyle": "solid",
  13302. "strokeWidth": 2,
  13303. "type": "diamond",
  13304. "width": 100,
  13305. "x": 310,
  13306. "y": 310,
  13307. },
  13308. "inserted": {
  13309. "isDeleted": true,
  13310. },
  13311. },
  13312. },
  13313. "updated": Map {},
  13314. },
  13315. },
  13316. HistoryEntry {
  13317. "appStateChange": AppStateChange {
  13318. "delta": Delta {
  13319. "deleted": {
  13320. "selectedElementIds": {
  13321. "id1": true,
  13322. },
  13323. },
  13324. "inserted": {
  13325. "selectedElementIds": {},
  13326. },
  13327. },
  13328. },
  13329. "elementsChange": ElementsChange {
  13330. "added": Map {},
  13331. "removed": Map {},
  13332. "updated": Map {},
  13333. },
  13334. },
  13335. ],
  13336. }
  13337. `;
  13338. exports[`regression tests > switches from group of selected elements to another element on pointer down > [end of test] number of elements 1`] = `0`;
  13339. exports[`regression tests > switches from group of selected elements to another element on pointer down > [end of test] number of renders 1`] = `17`;
  13340. exports[`regression tests > switches selected element on pointer down > [end of test] appState 1`] = `
  13341. {
  13342. "activeEmbeddable": null,
  13343. "activeTool": {
  13344. "customType": null,
  13345. "lastActiveTool": null,
  13346. "locked": false,
  13347. "type": "selection",
  13348. },
  13349. "collaborators": Map {},
  13350. "contextMenu": null,
  13351. "currentChartType": "bar",
  13352. "currentHoveredFontFamily": null,
  13353. "currentItemBackgroundColor": "transparent",
  13354. "currentItemEndArrowhead": "arrow",
  13355. "currentItemFillStyle": "solid",
  13356. "currentItemFontFamily": 5,
  13357. "currentItemFontSize": 20,
  13358. "currentItemOpacity": 100,
  13359. "currentItemRoughness": 1,
  13360. "currentItemRoundness": "round",
  13361. "currentItemStartArrowhead": null,
  13362. "currentItemStrokeColor": "#1e1e1e",
  13363. "currentItemStrokeStyle": "solid",
  13364. "currentItemStrokeWidth": 2,
  13365. "currentItemTextAlign": "left",
  13366. "cursorButton": "down",
  13367. "defaultSidebarDockedPreference": false,
  13368. "draggingElement": {
  13369. "angle": 0,
  13370. "backgroundColor": "transparent",
  13371. "boundElements": null,
  13372. "customData": undefined,
  13373. "fillStyle": "solid",
  13374. "frameId": null,
  13375. "groupIds": [],
  13376. "height": 0,
  13377. "id": "id2",
  13378. "index": null,
  13379. "isDeleted": false,
  13380. "link": null,
  13381. "locked": false,
  13382. "opacity": 100,
  13383. "roughness": 1,
  13384. "roundness": {
  13385. "type": 2,
  13386. },
  13387. "seed": 1604849351,
  13388. "strokeColor": "#1e1e1e",
  13389. "strokeStyle": "solid",
  13390. "strokeWidth": 2,
  13391. "type": "selection",
  13392. "updated": 1,
  13393. "version": 1,
  13394. "versionNonce": 0,
  13395. "width": 0,
  13396. "x": 0,
  13397. "y": 0,
  13398. },
  13399. "editingElement": null,
  13400. "editingFrame": null,
  13401. "editingGroupId": null,
  13402. "editingLinearElement": null,
  13403. "elementsToHighlight": null,
  13404. "errorMessage": null,
  13405. "exportBackground": true,
  13406. "exportEmbedScene": false,
  13407. "exportScale": 1,
  13408. "exportWithDarkMode": false,
  13409. "fileHandle": null,
  13410. "followedBy": Set {},
  13411. "frameRendering": {
  13412. "clip": true,
  13413. "enabled": true,
  13414. "name": true,
  13415. "outline": true,
  13416. },
  13417. "frameToHighlight": null,
  13418. "gridSize": null,
  13419. "height": 768,
  13420. "isBindingEnabled": true,
  13421. "isLoading": false,
  13422. "isResizing": false,
  13423. "isRotating": false,
  13424. "lastPointerDownWith": "mouse",
  13425. "multiElement": null,
  13426. "name": "Untitled-201933152653",
  13427. "objectsSnapModeEnabled": false,
  13428. "offsetLeft": 0,
  13429. "offsetTop": 0,
  13430. "openDialog": null,
  13431. "openMenu": null,
  13432. "openPopup": null,
  13433. "openSidebar": null,
  13434. "originSnapOffset": null,
  13435. "pasteDialog": {
  13436. "data": null,
  13437. "shown": false,
  13438. },
  13439. "penDetected": false,
  13440. "penMode": false,
  13441. "pendingImageElementId": null,
  13442. "previousSelectedElementIds": {
  13443. "id1": true,
  13444. },
  13445. "resizingElement": null,
  13446. "scrollX": 0,
  13447. "scrollY": 0,
  13448. "scrolledOutside": false,
  13449. "selectedElementIds": {
  13450. "id0": true,
  13451. },
  13452. "selectedElementsAreBeingDragged": false,
  13453. "selectedGroupIds": {},
  13454. "selectedLinearElement": null,
  13455. "selectionElement": {
  13456. "angle": 0,
  13457. "backgroundColor": "transparent",
  13458. "boundElements": null,
  13459. "customData": undefined,
  13460. "fillStyle": "solid",
  13461. "frameId": null,
  13462. "groupIds": [],
  13463. "height": 0,
  13464. "id": "id2",
  13465. "index": null,
  13466. "isDeleted": false,
  13467. "link": null,
  13468. "locked": false,
  13469. "opacity": 100,
  13470. "roughness": 1,
  13471. "roundness": {
  13472. "type": 2,
  13473. },
  13474. "seed": 1604849351,
  13475. "strokeColor": "#1e1e1e",
  13476. "strokeStyle": "solid",
  13477. "strokeWidth": 2,
  13478. "type": "selection",
  13479. "updated": 1,
  13480. "version": 1,
  13481. "versionNonce": 0,
  13482. "width": 0,
  13483. "x": 0,
  13484. "y": 0,
  13485. },
  13486. "shouldCacheIgnoreZoom": false,
  13487. "showHyperlinkPopup": false,
  13488. "showWelcomeScreen": true,
  13489. "snapLines": [],
  13490. "startBoundElement": null,
  13491. "stats": {
  13492. "open": false,
  13493. "panels": 3,
  13494. },
  13495. "suggestedBindings": [],
  13496. "theme": "light",
  13497. "toast": null,
  13498. "userToFollow": null,
  13499. "viewBackgroundColor": "#ffffff",
  13500. "viewModeEnabled": false,
  13501. "width": 1024,
  13502. "zenModeEnabled": false,
  13503. "zoom": {
  13504. "value": 1,
  13505. },
  13506. }
  13507. `;
  13508. exports[`regression tests > switches selected element on pointer down > [end of test] history 1`] = `
  13509. History {
  13510. "onHistoryChangedEmitter": Emitter {
  13511. "subscribers": [],
  13512. },
  13513. "redoStack": [],
  13514. "undoStack": [
  13515. HistoryEntry {
  13516. "appStateChange": AppStateChange {
  13517. "delta": Delta {
  13518. "deleted": {
  13519. "selectedElementIds": {
  13520. "id0": true,
  13521. },
  13522. },
  13523. "inserted": {
  13524. "selectedElementIds": {},
  13525. },
  13526. },
  13527. },
  13528. "elementsChange": ElementsChange {
  13529. "added": Map {},
  13530. "removed": Map {
  13531. "id0" => Delta {
  13532. "deleted": {
  13533. "angle": 0,
  13534. "backgroundColor": "transparent",
  13535. "boundElements": null,
  13536. "customData": undefined,
  13537. "fillStyle": "solid",
  13538. "frameId": null,
  13539. "groupIds": [],
  13540. "height": 10,
  13541. "index": "a0",
  13542. "isDeleted": false,
  13543. "link": null,
  13544. "locked": false,
  13545. "opacity": 100,
  13546. "roughness": 1,
  13547. "roundness": {
  13548. "type": 3,
  13549. },
  13550. "strokeColor": "#1e1e1e",
  13551. "strokeStyle": "solid",
  13552. "strokeWidth": 2,
  13553. "type": "rectangle",
  13554. "width": 10,
  13555. "x": 0,
  13556. "y": 0,
  13557. },
  13558. "inserted": {
  13559. "isDeleted": true,
  13560. },
  13561. },
  13562. },
  13563. "updated": Map {},
  13564. },
  13565. },
  13566. HistoryEntry {
  13567. "appStateChange": AppStateChange {
  13568. "delta": Delta {
  13569. "deleted": {
  13570. "selectedElementIds": {
  13571. "id1": true,
  13572. },
  13573. },
  13574. "inserted": {
  13575. "selectedElementIds": {
  13576. "id0": true,
  13577. },
  13578. },
  13579. },
  13580. },
  13581. "elementsChange": ElementsChange {
  13582. "added": Map {},
  13583. "removed": Map {
  13584. "id1" => Delta {
  13585. "deleted": {
  13586. "angle": 0,
  13587. "backgroundColor": "transparent",
  13588. "boundElements": null,
  13589. "customData": undefined,
  13590. "fillStyle": "solid",
  13591. "frameId": null,
  13592. "groupIds": [],
  13593. "height": 10,
  13594. "index": "a1",
  13595. "isDeleted": false,
  13596. "link": null,
  13597. "locked": false,
  13598. "opacity": 100,
  13599. "roughness": 1,
  13600. "roundness": {
  13601. "type": 2,
  13602. },
  13603. "strokeColor": "#1e1e1e",
  13604. "strokeStyle": "solid",
  13605. "strokeWidth": 2,
  13606. "type": "ellipse",
  13607. "width": 10,
  13608. "x": 20,
  13609. "y": 20,
  13610. },
  13611. "inserted": {
  13612. "isDeleted": true,
  13613. },
  13614. },
  13615. },
  13616. "updated": Map {},
  13617. },
  13618. },
  13619. ],
  13620. }
  13621. `;
  13622. exports[`regression tests > switches selected element on pointer down > [end of test] number of elements 1`] = `0`;
  13623. exports[`regression tests > switches selected element on pointer down > [end of test] number of renders 1`] = `12`;
  13624. exports[`regression tests > two-finger scroll works > [end of test] appState 1`] = `
  13625. {
  13626. "activeEmbeddable": null,
  13627. "activeTool": {
  13628. "customType": null,
  13629. "lastActiveTool": null,
  13630. "locked": false,
  13631. "type": "selection",
  13632. },
  13633. "collaborators": Map {},
  13634. "contextMenu": null,
  13635. "currentChartType": "bar",
  13636. "currentHoveredFontFamily": null,
  13637. "currentItemBackgroundColor": "transparent",
  13638. "currentItemEndArrowhead": "arrow",
  13639. "currentItemFillStyle": "solid",
  13640. "currentItemFontFamily": 5,
  13641. "currentItemFontSize": 20,
  13642. "currentItemOpacity": 100,
  13643. "currentItemRoughness": 1,
  13644. "currentItemRoundness": "round",
  13645. "currentItemStartArrowhead": null,
  13646. "currentItemStrokeColor": "#1e1e1e",
  13647. "currentItemStrokeStyle": "solid",
  13648. "currentItemStrokeWidth": 2,
  13649. "currentItemTextAlign": "left",
  13650. "cursorButton": "down",
  13651. "defaultSidebarDockedPreference": false,
  13652. "draggingElement": null,
  13653. "editingElement": null,
  13654. "editingFrame": null,
  13655. "editingGroupId": null,
  13656. "editingLinearElement": null,
  13657. "elementsToHighlight": null,
  13658. "errorMessage": null,
  13659. "exportBackground": true,
  13660. "exportEmbedScene": false,
  13661. "exportScale": 1,
  13662. "exportWithDarkMode": false,
  13663. "fileHandle": null,
  13664. "followedBy": Set {},
  13665. "frameRendering": {
  13666. "clip": true,
  13667. "enabled": true,
  13668. "name": true,
  13669. "outline": true,
  13670. },
  13671. "frameToHighlight": null,
  13672. "gridSize": null,
  13673. "height": 768,
  13674. "isBindingEnabled": true,
  13675. "isLoading": false,
  13676. "isResizing": false,
  13677. "isRotating": false,
  13678. "lastPointerDownWith": "touch",
  13679. "multiElement": null,
  13680. "name": "Untitled-201933152653",
  13681. "objectsSnapModeEnabled": false,
  13682. "offsetLeft": 0,
  13683. "offsetTop": 0,
  13684. "openDialog": null,
  13685. "openMenu": null,
  13686. "openPopup": null,
  13687. "openSidebar": null,
  13688. "originSnapOffset": null,
  13689. "pasteDialog": {
  13690. "data": null,
  13691. "shown": false,
  13692. },
  13693. "penDetected": false,
  13694. "penMode": false,
  13695. "pendingImageElementId": null,
  13696. "previousSelectedElementIds": {},
  13697. "resizingElement": null,
  13698. "scrollX": 20,
  13699. "scrollY": "-18.53553",
  13700. "scrolledOutside": false,
  13701. "selectedElementIds": {},
  13702. "selectedElementsAreBeingDragged": false,
  13703. "selectedGroupIds": {},
  13704. "selectedLinearElement": null,
  13705. "selectionElement": null,
  13706. "shouldCacheIgnoreZoom": true,
  13707. "showHyperlinkPopup": false,
  13708. "showWelcomeScreen": true,
  13709. "snapLines": [],
  13710. "startBoundElement": null,
  13711. "stats": {
  13712. "open": false,
  13713. "panels": 3,
  13714. },
  13715. "suggestedBindings": [],
  13716. "theme": "light",
  13717. "toast": null,
  13718. "userToFollow": null,
  13719. "viewBackgroundColor": "#ffffff",
  13720. "viewModeEnabled": false,
  13721. "width": 1024,
  13722. "zenModeEnabled": false,
  13723. "zoom": {
  13724. "value": 1,
  13725. },
  13726. }
  13727. `;
  13728. exports[`regression tests > two-finger scroll works > [end of test] history 1`] = `
  13729. History {
  13730. "onHistoryChangedEmitter": Emitter {
  13731. "subscribers": [],
  13732. },
  13733. "redoStack": [],
  13734. "undoStack": [],
  13735. }
  13736. `;
  13737. exports[`regression tests > two-finger scroll works > [end of test] number of elements 1`] = `0`;
  13738. exports[`regression tests > two-finger scroll works > [end of test] number of renders 1`] = `8`;
  13739. exports[`regression tests > undo/redo drawing an element > [end of test] appState 1`] = `
  13740. {
  13741. "activeEmbeddable": null,
  13742. "activeTool": {
  13743. "customType": null,
  13744. "lastActiveTool": null,
  13745. "locked": false,
  13746. "type": "selection",
  13747. },
  13748. "collaborators": Map {},
  13749. "contextMenu": null,
  13750. "currentChartType": "bar",
  13751. "currentHoveredFontFamily": null,
  13752. "currentItemBackgroundColor": "transparent",
  13753. "currentItemEndArrowhead": "arrow",
  13754. "currentItemFillStyle": "solid",
  13755. "currentItemFontFamily": 5,
  13756. "currentItemFontSize": 20,
  13757. "currentItemOpacity": 100,
  13758. "currentItemRoughness": 1,
  13759. "currentItemRoundness": "round",
  13760. "currentItemStartArrowhead": null,
  13761. "currentItemStrokeColor": "#1e1e1e",
  13762. "currentItemStrokeStyle": "solid",
  13763. "currentItemStrokeWidth": 2,
  13764. "currentItemTextAlign": "left",
  13765. "cursorButton": "up",
  13766. "defaultSidebarDockedPreference": false,
  13767. "draggingElement": null,
  13768. "editingElement": null,
  13769. "editingFrame": null,
  13770. "editingGroupId": null,
  13771. "editingLinearElement": null,
  13772. "elementsToHighlight": null,
  13773. "errorMessage": null,
  13774. "exportBackground": true,
  13775. "exportEmbedScene": false,
  13776. "exportScale": 1,
  13777. "exportWithDarkMode": false,
  13778. "fileHandle": null,
  13779. "followedBy": Set {},
  13780. "frameRendering": {
  13781. "clip": true,
  13782. "enabled": true,
  13783. "name": true,
  13784. "outline": true,
  13785. },
  13786. "frameToHighlight": null,
  13787. "gridSize": null,
  13788. "height": 768,
  13789. "isBindingEnabled": true,
  13790. "isLoading": false,
  13791. "isResizing": false,
  13792. "isRotating": false,
  13793. "lastPointerDownWith": "mouse",
  13794. "multiElement": null,
  13795. "name": "Untitled-201933152653",
  13796. "objectsSnapModeEnabled": false,
  13797. "offsetLeft": 0,
  13798. "offsetTop": 0,
  13799. "openDialog": null,
  13800. "openMenu": null,
  13801. "openPopup": null,
  13802. "openSidebar": null,
  13803. "originSnapOffset": null,
  13804. "pasteDialog": {
  13805. "data": null,
  13806. "shown": false,
  13807. },
  13808. "penDetected": false,
  13809. "penMode": false,
  13810. "pendingImageElementId": null,
  13811. "previousSelectedElementIds": {},
  13812. "resizingElement": null,
  13813. "scrollX": 0,
  13814. "scrollY": 0,
  13815. "scrolledOutside": false,
  13816. "selectedElementIds": {
  13817. "id1": true,
  13818. },
  13819. "selectedElementsAreBeingDragged": false,
  13820. "selectedGroupIds": {},
  13821. "selectedLinearElement": null,
  13822. "selectionElement": null,
  13823. "shouldCacheIgnoreZoom": false,
  13824. "showHyperlinkPopup": false,
  13825. "showWelcomeScreen": true,
  13826. "snapLines": [],
  13827. "startBoundElement": null,
  13828. "stats": {
  13829. "open": false,
  13830. "panels": 3,
  13831. },
  13832. "suggestedBindings": [],
  13833. "theme": "light",
  13834. "toast": null,
  13835. "userToFollow": null,
  13836. "viewBackgroundColor": "#ffffff",
  13837. "viewModeEnabled": false,
  13838. "width": 1024,
  13839. "zenModeEnabled": false,
  13840. "zoom": {
  13841. "value": 1,
  13842. },
  13843. }
  13844. `;
  13845. exports[`regression tests > undo/redo drawing an element > [end of test] history 1`] = `
  13846. History {
  13847. "onHistoryChangedEmitter": Emitter {
  13848. "subscribers": [],
  13849. },
  13850. "redoStack": [
  13851. HistoryEntry {
  13852. "appStateChange": AppStateChange {
  13853. "delta": Delta {
  13854. "deleted": {
  13855. "selectedLinearElementId": null,
  13856. },
  13857. "inserted": {
  13858. "selectedLinearElementId": "id2",
  13859. },
  13860. },
  13861. },
  13862. "elementsChange": ElementsChange {
  13863. "added": Map {},
  13864. "removed": Map {},
  13865. "updated": Map {},
  13866. },
  13867. },
  13868. HistoryEntry {
  13869. "appStateChange": AppStateChange {
  13870. "delta": Delta {
  13871. "deleted": {},
  13872. "inserted": {},
  13873. },
  13874. },
  13875. "elementsChange": ElementsChange {
  13876. "added": Map {},
  13877. "removed": Map {},
  13878. "updated": Map {
  13879. "id2" => Delta {
  13880. "deleted": {
  13881. "height": 10,
  13882. "lastCommittedPoint": [
  13883. 60,
  13884. 10,
  13885. ],
  13886. "points": [
  13887. [
  13888. 0,
  13889. 0,
  13890. ],
  13891. [
  13892. 60,
  13893. 10,
  13894. ],
  13895. ],
  13896. "width": 60,
  13897. },
  13898. "inserted": {
  13899. "height": 20,
  13900. "lastCommittedPoint": [
  13901. 100,
  13902. 20,
  13903. ],
  13904. "points": [
  13905. [
  13906. 0,
  13907. 0,
  13908. ],
  13909. [
  13910. 60,
  13911. 10,
  13912. ],
  13913. [
  13914. 100,
  13915. 20,
  13916. ],
  13917. ],
  13918. "width": 100,
  13919. },
  13920. },
  13921. },
  13922. },
  13923. },
  13924. HistoryEntry {
  13925. "appStateChange": AppStateChange {
  13926. "delta": Delta {
  13927. "deleted": {
  13928. "selectedElementIds": {
  13929. "id1": true,
  13930. },
  13931. },
  13932. "inserted": {
  13933. "selectedElementIds": {
  13934. "id2": true,
  13935. },
  13936. },
  13937. },
  13938. },
  13939. "elementsChange": ElementsChange {
  13940. "added": Map {
  13941. "id2" => Delta {
  13942. "deleted": {
  13943. "isDeleted": true,
  13944. },
  13945. "inserted": {
  13946. "angle": 0,
  13947. "backgroundColor": "transparent",
  13948. "boundElements": null,
  13949. "customData": undefined,
  13950. "endArrowhead": "arrow",
  13951. "endBinding": null,
  13952. "fillStyle": "solid",
  13953. "frameId": null,
  13954. "groupIds": [],
  13955. "height": 10,
  13956. "index": "a2",
  13957. "isDeleted": false,
  13958. "lastCommittedPoint": [
  13959. 60,
  13960. 10,
  13961. ],
  13962. "link": null,
  13963. "locked": false,
  13964. "opacity": 100,
  13965. "points": [
  13966. [
  13967. 0,
  13968. 0,
  13969. ],
  13970. [
  13971. 60,
  13972. 10,
  13973. ],
  13974. ],
  13975. "roughness": 1,
  13976. "roundness": {
  13977. "type": 2,
  13978. },
  13979. "startArrowhead": null,
  13980. "startBinding": null,
  13981. "strokeColor": "#1e1e1e",
  13982. "strokeStyle": "solid",
  13983. "strokeWidth": 2,
  13984. "type": "arrow",
  13985. "width": 60,
  13986. "x": 130,
  13987. "y": 10,
  13988. },
  13989. },
  13990. },
  13991. "removed": Map {},
  13992. "updated": Map {},
  13993. },
  13994. },
  13995. ],
  13996. "undoStack": [
  13997. HistoryEntry {
  13998. "appStateChange": AppStateChange {
  13999. "delta": Delta {
  14000. "deleted": {
  14001. "selectedElementIds": {
  14002. "id0": true,
  14003. },
  14004. },
  14005. "inserted": {
  14006. "selectedElementIds": {},
  14007. },
  14008. },
  14009. },
  14010. "elementsChange": ElementsChange {
  14011. "added": Map {},
  14012. "removed": Map {
  14013. "id0" => Delta {
  14014. "deleted": {
  14015. "angle": 0,
  14016. "backgroundColor": "transparent",
  14017. "boundElements": null,
  14018. "customData": undefined,
  14019. "fillStyle": "solid",
  14020. "frameId": null,
  14021. "groupIds": [],
  14022. "height": 10,
  14023. "index": "a0",
  14024. "isDeleted": false,
  14025. "link": null,
  14026. "locked": false,
  14027. "opacity": 100,
  14028. "roughness": 1,
  14029. "roundness": {
  14030. "type": 3,
  14031. },
  14032. "strokeColor": "#1e1e1e",
  14033. "strokeStyle": "solid",
  14034. "strokeWidth": 2,
  14035. "type": "rectangle",
  14036. "width": 20,
  14037. "x": 10,
  14038. "y": -10,
  14039. },
  14040. "inserted": {
  14041. "isDeleted": true,
  14042. },
  14043. },
  14044. },
  14045. "updated": Map {},
  14046. },
  14047. },
  14048. HistoryEntry {
  14049. "appStateChange": AppStateChange {
  14050. "delta": Delta {
  14051. "deleted": {
  14052. "selectedElementIds": {
  14053. "id1": true,
  14054. },
  14055. },
  14056. "inserted": {
  14057. "selectedElementIds": {
  14058. "id0": true,
  14059. },
  14060. },
  14061. },
  14062. },
  14063. "elementsChange": ElementsChange {
  14064. "added": Map {},
  14065. "removed": Map {
  14066. "id1" => Delta {
  14067. "deleted": {
  14068. "angle": 0,
  14069. "backgroundColor": "transparent",
  14070. "boundElements": null,
  14071. "customData": undefined,
  14072. "fillStyle": "solid",
  14073. "frameId": null,
  14074. "groupIds": [],
  14075. "height": 20,
  14076. "index": "a1",
  14077. "isDeleted": false,
  14078. "link": null,
  14079. "locked": false,
  14080. "opacity": 100,
  14081. "roughness": 1,
  14082. "roundness": {
  14083. "type": 3,
  14084. },
  14085. "strokeColor": "#1e1e1e",
  14086. "strokeStyle": "solid",
  14087. "strokeWidth": 2,
  14088. "type": "rectangle",
  14089. "width": 30,
  14090. "x": 40,
  14091. "y": 0,
  14092. },
  14093. "inserted": {
  14094. "isDeleted": true,
  14095. },
  14096. },
  14097. },
  14098. "updated": Map {},
  14099. },
  14100. },
  14101. ],
  14102. }
  14103. `;
  14104. exports[`regression tests > undo/redo drawing an element > [end of test] number of elements 1`] = `0`;
  14105. exports[`regression tests > undo/redo drawing an element > [end of test] number of renders 1`] = `24`;
  14106. exports[`regression tests > updates fontSize & fontFamily appState > [end of test] appState 1`] = `
  14107. {
  14108. "activeEmbeddable": null,
  14109. "activeTool": {
  14110. "customType": null,
  14111. "lastActiveTool": null,
  14112. "locked": false,
  14113. "type": "text",
  14114. },
  14115. "collaborators": Map {},
  14116. "contextMenu": null,
  14117. "currentChartType": "bar",
  14118. "currentHoveredFontFamily": null,
  14119. "currentItemBackgroundColor": "transparent",
  14120. "currentItemEndArrowhead": "arrow",
  14121. "currentItemFillStyle": "solid",
  14122. "currentItemFontFamily": 8,
  14123. "currentItemFontSize": 20,
  14124. "currentItemOpacity": 100,
  14125. "currentItemRoughness": 1,
  14126. "currentItemRoundness": "round",
  14127. "currentItemStartArrowhead": null,
  14128. "currentItemStrokeColor": "#1e1e1e",
  14129. "currentItemStrokeStyle": "solid",
  14130. "currentItemStrokeWidth": 2,
  14131. "currentItemTextAlign": "left",
  14132. "cursorButton": "up",
  14133. "defaultSidebarDockedPreference": false,
  14134. "draggingElement": null,
  14135. "editingElement": null,
  14136. "editingFrame": null,
  14137. "editingGroupId": null,
  14138. "editingLinearElement": null,
  14139. "elementsToHighlight": null,
  14140. "errorMessage": null,
  14141. "exportBackground": true,
  14142. "exportEmbedScene": false,
  14143. "exportScale": 1,
  14144. "exportWithDarkMode": false,
  14145. "fileHandle": null,
  14146. "followedBy": Set {},
  14147. "frameRendering": {
  14148. "clip": true,
  14149. "enabled": true,
  14150. "name": true,
  14151. "outline": true,
  14152. },
  14153. "frameToHighlight": null,
  14154. "gridSize": null,
  14155. "height": 768,
  14156. "isBindingEnabled": true,
  14157. "isLoading": false,
  14158. "isResizing": false,
  14159. "isRotating": false,
  14160. "lastPointerDownWith": "mouse",
  14161. "multiElement": null,
  14162. "name": "Untitled-201933152653",
  14163. "objectsSnapModeEnabled": false,
  14164. "offsetLeft": 0,
  14165. "offsetTop": 0,
  14166. "openDialog": null,
  14167. "openMenu": null,
  14168. "openPopup": null,
  14169. "openSidebar": null,
  14170. "originSnapOffset": null,
  14171. "pasteDialog": {
  14172. "data": null,
  14173. "shown": false,
  14174. },
  14175. "penDetected": false,
  14176. "penMode": false,
  14177. "pendingImageElementId": null,
  14178. "previousSelectedElementIds": {},
  14179. "resizingElement": null,
  14180. "scrollX": 0,
  14181. "scrollY": 0,
  14182. "scrolledOutside": false,
  14183. "selectedElementIds": {},
  14184. "selectedElementsAreBeingDragged": false,
  14185. "selectedGroupIds": {},
  14186. "selectedLinearElement": null,
  14187. "selectionElement": null,
  14188. "shouldCacheIgnoreZoom": false,
  14189. "showHyperlinkPopup": false,
  14190. "showWelcomeScreen": true,
  14191. "snapLines": [],
  14192. "startBoundElement": null,
  14193. "stats": {
  14194. "open": false,
  14195. "panels": 3,
  14196. },
  14197. "suggestedBindings": [],
  14198. "theme": "light",
  14199. "toast": null,
  14200. "userToFollow": null,
  14201. "viewBackgroundColor": "#ffffff",
  14202. "viewModeEnabled": false,
  14203. "width": 1024,
  14204. "zenModeEnabled": false,
  14205. "zoom": {
  14206. "value": 1,
  14207. },
  14208. }
  14209. `;
  14210. exports[`regression tests > updates fontSize & fontFamily appState > [end of test] history 1`] = `
  14211. History {
  14212. "onHistoryChangedEmitter": Emitter {
  14213. "subscribers": [],
  14214. },
  14215. "redoStack": [],
  14216. "undoStack": [],
  14217. }
  14218. `;
  14219. exports[`regression tests > updates fontSize & fontFamily appState > [end of test] number of elements 1`] = `0`;
  14220. exports[`regression tests > updates fontSize & fontFamily appState > [end of test] number of renders 1`] = `5`;
  14221. exports[`regression tests > zoom hotkeys > [end of test] appState 1`] = `
  14222. {
  14223. "activeEmbeddable": null,
  14224. "activeTool": {
  14225. "customType": null,
  14226. "lastActiveTool": null,
  14227. "locked": false,
  14228. "type": "selection",
  14229. },
  14230. "collaborators": Map {},
  14231. "contextMenu": null,
  14232. "currentChartType": "bar",
  14233. "currentHoveredFontFamily": null,
  14234. "currentItemBackgroundColor": "transparent",
  14235. "currentItemEndArrowhead": "arrow",
  14236. "currentItemFillStyle": "solid",
  14237. "currentItemFontFamily": 5,
  14238. "currentItemFontSize": 20,
  14239. "currentItemOpacity": 100,
  14240. "currentItemRoughness": 1,
  14241. "currentItemRoundness": "round",
  14242. "currentItemStartArrowhead": null,
  14243. "currentItemStrokeColor": "#1e1e1e",
  14244. "currentItemStrokeStyle": "solid",
  14245. "currentItemStrokeWidth": 2,
  14246. "currentItemTextAlign": "left",
  14247. "cursorButton": "up",
  14248. "defaultSidebarDockedPreference": false,
  14249. "draggingElement": null,
  14250. "editingElement": null,
  14251. "editingFrame": null,
  14252. "editingGroupId": null,
  14253. "editingLinearElement": null,
  14254. "elementsToHighlight": null,
  14255. "errorMessage": null,
  14256. "exportBackground": true,
  14257. "exportEmbedScene": false,
  14258. "exportScale": 1,
  14259. "exportWithDarkMode": false,
  14260. "fileHandle": null,
  14261. "followedBy": Set {},
  14262. "frameRendering": {
  14263. "clip": true,
  14264. "enabled": true,
  14265. "name": true,
  14266. "outline": true,
  14267. },
  14268. "frameToHighlight": null,
  14269. "gridSize": null,
  14270. "height": 768,
  14271. "isBindingEnabled": true,
  14272. "isLoading": false,
  14273. "isResizing": false,
  14274. "isRotating": false,
  14275. "lastPointerDownWith": "mouse",
  14276. "multiElement": null,
  14277. "name": "Untitled-201933152653",
  14278. "objectsSnapModeEnabled": false,
  14279. "offsetLeft": 0,
  14280. "offsetTop": 0,
  14281. "openDialog": null,
  14282. "openMenu": null,
  14283. "openPopup": null,
  14284. "openSidebar": null,
  14285. "originSnapOffset": {
  14286. "x": 0,
  14287. "y": 0,
  14288. },
  14289. "pasteDialog": {
  14290. "data": null,
  14291. "shown": false,
  14292. },
  14293. "penDetected": false,
  14294. "penMode": false,
  14295. "pendingImageElementId": null,
  14296. "previousSelectedElementIds": {},
  14297. "resizingElement": null,
  14298. "scrollX": 0,
  14299. "scrollY": 0,
  14300. "scrolledOutside": false,
  14301. "selectedElementIds": {},
  14302. "selectedElementsAreBeingDragged": false,
  14303. "selectedGroupIds": {},
  14304. "selectedLinearElement": null,
  14305. "selectionElement": null,
  14306. "shouldCacheIgnoreZoom": false,
  14307. "showHyperlinkPopup": false,
  14308. "showWelcomeScreen": true,
  14309. "snapLines": [],
  14310. "startBoundElement": null,
  14311. "stats": {
  14312. "open": false,
  14313. "panels": 3,
  14314. },
  14315. "suggestedBindings": [],
  14316. "theme": "light",
  14317. "toast": null,
  14318. "userToFollow": null,
  14319. "viewBackgroundColor": "#ffffff",
  14320. "viewModeEnabled": false,
  14321. "width": 1024,
  14322. "zenModeEnabled": false,
  14323. "zoom": {
  14324. "value": 1,
  14325. },
  14326. }
  14327. `;
  14328. exports[`regression tests > zoom hotkeys > [end of test] history 1`] = `
  14329. History {
  14330. "onHistoryChangedEmitter": Emitter {
  14331. "subscribers": [],
  14332. },
  14333. "redoStack": [],
  14334. "undoStack": [],
  14335. }
  14336. `;
  14337. exports[`regression tests > zoom hotkeys > [end of test] number of elements 1`] = `0`;
  14338. exports[`regression tests > zoom hotkeys > [end of test] number of renders 1`] = `6`;