regressionTests.test.tsx.snap 298 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`regression tests alt-drag duplicates an element: [end of test] appState 1`] = `
  3. Object {
  4. "collaborators": Map {},
  5. "currentItemBackgroundColor": "transparent",
  6. "currentItemFillStyle": "hachure",
  7. "currentItemFont": "20px Virgil",
  8. "currentItemOpacity": 100,
  9. "currentItemRoughness": 1,
  10. "currentItemStrokeColor": "#000000",
  11. "currentItemStrokeWidth": 1,
  12. "cursorX": 0,
  13. "cursorY": 0,
  14. "draggingElement": null,
  15. "editingElement": null,
  16. "elementLocked": false,
  17. "elementType": "selection",
  18. "errorMessage": null,
  19. "exportBackground": true,
  20. "isCollaborating": false,
  21. "isLoading": false,
  22. "isResizing": false,
  23. "isRotating": false,
  24. "lastPointerDownWith": "mouse",
  25. "multiElement": null,
  26. "name": "excalidraw-201933152653",
  27. "openMenu": null,
  28. "resizingElement": null,
  29. "scrollX": 0,
  30. "scrollY": 0,
  31. "scrolledOutside": false,
  32. "selectedElementIds": Object {
  33. "id0": true,
  34. "id2": true,
  35. },
  36. "selectionElement": null,
  37. "shouldCacheIgnoreZoom": false,
  38. "viewBackgroundColor": "#ffffff",
  39. "zoom": 1,
  40. }
  41. `;
  42. exports[`regression tests alt-drag duplicates an element: [end of test] element 0 1`] = `
  43. Object {
  44. "angle": 0,
  45. "backgroundColor": "transparent",
  46. "fillStyle": "hachure",
  47. "height": 10,
  48. "id": "id1",
  49. "isDeleted": false,
  50. "opacity": 100,
  51. "roughness": 1,
  52. "seed": 453191,
  53. "strokeColor": "#000000",
  54. "strokeWidth": 1,
  55. "type": "rectangle",
  56. "version": 2,
  57. "versionNonce": 1278240551,
  58. "width": 10,
  59. "x": 10,
  60. "y": 10,
  61. }
  62. `;
  63. exports[`regression tests alt-drag duplicates an element: [end of test] element 1 1`] = `
  64. Object {
  65. "angle": 0,
  66. "backgroundColor": "transparent",
  67. "fillStyle": "hachure",
  68. "height": 10,
  69. "id": "id0",
  70. "isDeleted": false,
  71. "opacity": 100,
  72. "roughness": 1,
  73. "seed": 337897,
  74. "strokeColor": "#000000",
  75. "strokeWidth": 1,
  76. "type": "rectangle",
  77. "version": 3,
  78. "versionNonce": 2019559783,
  79. "width": 10,
  80. "x": 20,
  81. "y": 20,
  82. }
  83. `;
  84. exports[`regression tests alt-drag duplicates an element: [end of test] history 1`] = `
  85. Object {
  86. "recording": false,
  87. "redoStack": Array [],
  88. "stateHistory": Array [
  89. Object {
  90. "appState": Object {
  91. "currentItemBackgroundColor": "transparent",
  92. "currentItemFillStyle": "hachure",
  93. "currentItemFont": "20px Virgil",
  94. "currentItemOpacity": 100,
  95. "currentItemRoughness": 1,
  96. "currentItemStrokeColor": "#000000",
  97. "currentItemStrokeWidth": 1,
  98. "exportBackground": true,
  99. "name": "excalidraw-201933152653",
  100. "viewBackgroundColor": "#ffffff",
  101. },
  102. "elements": Array [
  103. Object {
  104. "angle": 0,
  105. "backgroundColor": "transparent",
  106. "fillStyle": "hachure",
  107. "height": 10,
  108. "id": "id0",
  109. "isDeleted": false,
  110. "opacity": 100,
  111. "roughness": 1,
  112. "seed": 337897,
  113. "strokeColor": "#000000",
  114. "strokeWidth": 1,
  115. "type": "rectangle",
  116. "version": 3,
  117. "versionNonce": 1278240551,
  118. "width": 10,
  119. "x": 10,
  120. "y": 10,
  121. },
  122. ],
  123. },
  124. Object {
  125. "appState": Object {
  126. "currentItemBackgroundColor": "transparent",
  127. "currentItemFillStyle": "hachure",
  128. "currentItemFont": "20px Virgil",
  129. "currentItemOpacity": 100,
  130. "currentItemRoughness": 1,
  131. "currentItemStrokeColor": "#000000",
  132. "currentItemStrokeWidth": 1,
  133. "exportBackground": true,
  134. "name": "excalidraw-201933152653",
  135. "viewBackgroundColor": "#ffffff",
  136. },
  137. "elements": Array [
  138. Object {
  139. "angle": 0,
  140. "backgroundColor": "transparent",
  141. "fillStyle": "hachure",
  142. "height": 10,
  143. "id": "id1",
  144. "isDeleted": false,
  145. "opacity": 100,
  146. "roughness": 1,
  147. "seed": 453191,
  148. "strokeColor": "#000000",
  149. "strokeWidth": 1,
  150. "type": "rectangle",
  151. "version": 3,
  152. "versionNonce": 1278240551,
  153. "width": 10,
  154. "x": 10,
  155. "y": 10,
  156. },
  157. Object {
  158. "angle": 0,
  159. "backgroundColor": "transparent",
  160. "fillStyle": "hachure",
  161. "height": 10,
  162. "id": "id0",
  163. "isDeleted": false,
  164. "opacity": 100,
  165. "roughness": 1,
  166. "seed": 337897,
  167. "strokeColor": "#000000",
  168. "strokeWidth": 1,
  169. "type": "rectangle",
  170. "version": 4,
  171. "versionNonce": 2019559783,
  172. "width": 10,
  173. "x": 20,
  174. "y": 20,
  175. },
  176. ],
  177. },
  178. ],
  179. }
  180. `;
  181. exports[`regression tests alt-drag duplicates an element: [end of test] number of elements 1`] = `2`;
  182. exports[`regression tests alt-drag duplicates an element: [end of test] number of renders 1`] = `9`;
  183. exports[`regression tests arrow keys: [end of test] appState 1`] = `
  184. Object {
  185. "collaborators": Map {},
  186. "currentItemBackgroundColor": "transparent",
  187. "currentItemFillStyle": "hachure",
  188. "currentItemFont": "20px Virgil",
  189. "currentItemOpacity": 100,
  190. "currentItemRoughness": 1,
  191. "currentItemStrokeColor": "#000000",
  192. "currentItemStrokeWidth": 1,
  193. "cursorX": 0,
  194. "cursorY": 0,
  195. "draggingElement": null,
  196. "editingElement": null,
  197. "elementLocked": false,
  198. "elementType": "selection",
  199. "errorMessage": null,
  200. "exportBackground": true,
  201. "isCollaborating": false,
  202. "isLoading": false,
  203. "isResizing": false,
  204. "isRotating": false,
  205. "lastPointerDownWith": "mouse",
  206. "multiElement": null,
  207. "name": "excalidraw-201933152653",
  208. "openMenu": null,
  209. "resizingElement": null,
  210. "scrollX": 0,
  211. "scrollY": 0,
  212. "scrolledOutside": false,
  213. "selectedElementIds": Object {
  214. "id0": true,
  215. },
  216. "selectionElement": null,
  217. "shouldCacheIgnoreZoom": false,
  218. "viewBackgroundColor": "#ffffff",
  219. "zoom": 1,
  220. }
  221. `;
  222. exports[`regression tests arrow keys: [end of test] element 0 1`] = `
  223. Object {
  224. "angle": 0,
  225. "backgroundColor": "transparent",
  226. "fillStyle": "hachure",
  227. "height": 10,
  228. "id": "id0",
  229. "isDeleted": false,
  230. "opacity": 100,
  231. "roughness": 1,
  232. "seed": 337897,
  233. "strokeColor": "#000000",
  234. "strokeWidth": 1,
  235. "type": "rectangle",
  236. "version": 8,
  237. "versionNonce": 1014066025,
  238. "width": 10,
  239. "x": 9,
  240. "y": 9,
  241. }
  242. `;
  243. exports[`regression tests arrow keys: [end of test] history 1`] = `
  244. Object {
  245. "recording": false,
  246. "redoStack": Array [],
  247. "stateHistory": Array [
  248. Object {
  249. "appState": Object {
  250. "currentItemBackgroundColor": "transparent",
  251. "currentItemFillStyle": "hachure",
  252. "currentItemFont": "20px Virgil",
  253. "currentItemOpacity": 100,
  254. "currentItemRoughness": 1,
  255. "currentItemStrokeColor": "#000000",
  256. "currentItemStrokeWidth": 1,
  257. "exportBackground": true,
  258. "name": "excalidraw-201933152653",
  259. "viewBackgroundColor": "#ffffff",
  260. },
  261. "elements": Array [
  262. Object {
  263. "angle": 0,
  264. "backgroundColor": "transparent",
  265. "fillStyle": "hachure",
  266. "height": 10,
  267. "id": "id0",
  268. "isDeleted": false,
  269. "opacity": 100,
  270. "roughness": 1,
  271. "seed": 337897,
  272. "strokeColor": "#000000",
  273. "strokeWidth": 1,
  274. "type": "rectangle",
  275. "version": 3,
  276. "versionNonce": 1278240551,
  277. "width": 10,
  278. "x": 10,
  279. "y": 10,
  280. },
  281. ],
  282. },
  283. ],
  284. }
  285. `;
  286. exports[`regression tests arrow keys: [end of test] number of elements 1`] = `1`;
  287. exports[`regression tests arrow keys: [end of test] number of renders 1`] = `12`;
  288. exports[`regression tests change the properties of a shape: [end of test] appState 1`] = `
  289. Object {
  290. "collaborators": Map {},
  291. "currentItemBackgroundColor": "#fa5252",
  292. "currentItemFillStyle": "hachure",
  293. "currentItemFont": "20px Virgil",
  294. "currentItemOpacity": 100,
  295. "currentItemRoughness": 1,
  296. "currentItemStrokeColor": "#5f3dc4",
  297. "currentItemStrokeWidth": 1,
  298. "cursorX": 0,
  299. "cursorY": 0,
  300. "draggingElement": null,
  301. "editingElement": null,
  302. "elementLocked": false,
  303. "elementType": "selection",
  304. "errorMessage": null,
  305. "exportBackground": true,
  306. "isCollaborating": false,
  307. "isLoading": false,
  308. "isResizing": false,
  309. "isRotating": false,
  310. "lastPointerDownWith": "mouse",
  311. "multiElement": null,
  312. "name": "excalidraw-201933152653",
  313. "openMenu": null,
  314. "resizingElement": null,
  315. "scrollX": 0,
  316. "scrollY": 0,
  317. "scrolledOutside": false,
  318. "selectedElementIds": Object {
  319. "id0": true,
  320. },
  321. "selectionElement": null,
  322. "shouldCacheIgnoreZoom": false,
  323. "viewBackgroundColor": "#ffffff",
  324. "zoom": 1,
  325. }
  326. `;
  327. exports[`regression tests change the properties of a shape: [end of test] element 0 1`] = `
  328. Object {
  329. "angle": 0,
  330. "backgroundColor": "#fa5252",
  331. "fillStyle": "hachure",
  332. "height": 10,
  333. "id": "id0",
  334. "isDeleted": false,
  335. "opacity": 100,
  336. "roughness": 1,
  337. "seed": 337897,
  338. "strokeColor": "#5f3dc4",
  339. "strokeWidth": 1,
  340. "type": "rectangle",
  341. "version": 6,
  342. "versionNonce": 238820263,
  343. "width": 10,
  344. "x": 10,
  345. "y": 10,
  346. }
  347. `;
  348. exports[`regression tests change the properties of a shape: [end of test] history 1`] = `
  349. Object {
  350. "recording": false,
  351. "redoStack": Array [],
  352. "stateHistory": Array [
  353. Object {
  354. "appState": Object {
  355. "currentItemBackgroundColor": "transparent",
  356. "currentItemFillStyle": "hachure",
  357. "currentItemFont": "20px Virgil",
  358. "currentItemOpacity": 100,
  359. "currentItemRoughness": 1,
  360. "currentItemStrokeColor": "#000000",
  361. "currentItemStrokeWidth": 1,
  362. "exportBackground": true,
  363. "name": "excalidraw-201933152653",
  364. "viewBackgroundColor": "#ffffff",
  365. },
  366. "elements": Array [
  367. Object {
  368. "angle": 0,
  369. "backgroundColor": "transparent",
  370. "fillStyle": "hachure",
  371. "height": 10,
  372. "id": "id0",
  373. "isDeleted": false,
  374. "opacity": 100,
  375. "roughness": 1,
  376. "seed": 337897,
  377. "strokeColor": "#000000",
  378. "strokeWidth": 1,
  379. "type": "rectangle",
  380. "version": 3,
  381. "versionNonce": 1278240551,
  382. "width": 10,
  383. "x": 10,
  384. "y": 10,
  385. },
  386. ],
  387. },
  388. Object {
  389. "appState": Object {
  390. "currentItemBackgroundColor": "transparent",
  391. "currentItemFillStyle": "hachure",
  392. "currentItemFont": "20px Virgil",
  393. "currentItemOpacity": 100,
  394. "currentItemRoughness": 1,
  395. "currentItemStrokeColor": "#000000",
  396. "currentItemStrokeWidth": 1,
  397. "exportBackground": true,
  398. "name": "excalidraw-201933152653",
  399. "viewBackgroundColor": "#ffffff",
  400. },
  401. "elements": Array [
  402. Object {
  403. "angle": 0,
  404. "backgroundColor": "transparent",
  405. "fillStyle": "hachure",
  406. "height": 10,
  407. "id": "id0",
  408. "isDeleted": false,
  409. "opacity": 100,
  410. "roughness": 1,
  411. "seed": 337897,
  412. "strokeColor": "#000000",
  413. "strokeWidth": 1,
  414. "type": "rectangle",
  415. "version": 4,
  416. "versionNonce": 453191,
  417. "width": 10,
  418. "x": 10,
  419. "y": 10,
  420. },
  421. ],
  422. },
  423. Object {
  424. "appState": Object {
  425. "currentItemBackgroundColor": "#fa5252",
  426. "currentItemFillStyle": "hachure",
  427. "currentItemFont": "20px Virgil",
  428. "currentItemOpacity": 100,
  429. "currentItemRoughness": 1,
  430. "currentItemStrokeColor": "#000000",
  431. "currentItemStrokeWidth": 1,
  432. "exportBackground": true,
  433. "name": "excalidraw-201933152653",
  434. "viewBackgroundColor": "#ffffff",
  435. },
  436. "elements": Array [
  437. Object {
  438. "angle": 0,
  439. "backgroundColor": "#fa5252",
  440. "fillStyle": "hachure",
  441. "height": 10,
  442. "id": "id0",
  443. "isDeleted": false,
  444. "opacity": 100,
  445. "roughness": 1,
  446. "seed": 337897,
  447. "strokeColor": "#000000",
  448. "strokeWidth": 1,
  449. "type": "rectangle",
  450. "version": 5,
  451. "versionNonce": 2019559783,
  452. "width": 10,
  453. "x": 10,
  454. "y": 10,
  455. },
  456. ],
  457. },
  458. Object {
  459. "appState": Object {
  460. "currentItemBackgroundColor": "#fa5252",
  461. "currentItemFillStyle": "hachure",
  462. "currentItemFont": "20px Virgil",
  463. "currentItemOpacity": 100,
  464. "currentItemRoughness": 1,
  465. "currentItemStrokeColor": "#000000",
  466. "currentItemStrokeWidth": 1,
  467. "exportBackground": true,
  468. "name": "excalidraw-201933152653",
  469. "viewBackgroundColor": "#ffffff",
  470. },
  471. "elements": Array [
  472. Object {
  473. "angle": 0,
  474. "backgroundColor": "#fa5252",
  475. "fillStyle": "hachure",
  476. "height": 10,
  477. "id": "id0",
  478. "isDeleted": false,
  479. "opacity": 100,
  480. "roughness": 1,
  481. "seed": 337897,
  482. "strokeColor": "#000000",
  483. "strokeWidth": 1,
  484. "type": "rectangle",
  485. "version": 6,
  486. "versionNonce": 1116226695,
  487. "width": 10,
  488. "x": 10,
  489. "y": 10,
  490. },
  491. ],
  492. },
  493. Object {
  494. "appState": Object {
  495. "currentItemBackgroundColor": "#fa5252",
  496. "currentItemFillStyle": "hachure",
  497. "currentItemFont": "20px Virgil",
  498. "currentItemOpacity": 100,
  499. "currentItemRoughness": 1,
  500. "currentItemStrokeColor": "#5f3dc4",
  501. "currentItemStrokeWidth": 1,
  502. "exportBackground": true,
  503. "name": "excalidraw-201933152653",
  504. "viewBackgroundColor": "#ffffff",
  505. },
  506. "elements": Array [
  507. Object {
  508. "angle": 0,
  509. "backgroundColor": "#fa5252",
  510. "fillStyle": "hachure",
  511. "height": 10,
  512. "id": "id0",
  513. "isDeleted": false,
  514. "opacity": 100,
  515. "roughness": 1,
  516. "seed": 337897,
  517. "strokeColor": "#5f3dc4",
  518. "strokeWidth": 1,
  519. "type": "rectangle",
  520. "version": 7,
  521. "versionNonce": 238820263,
  522. "width": 10,
  523. "x": 10,
  524. "y": 10,
  525. },
  526. ],
  527. },
  528. ],
  529. }
  530. `;
  531. exports[`regression tests change the properties of a shape: [end of test] number of elements 1`] = `1`;
  532. exports[`regression tests change the properties of a shape: [end of test] number of renders 1`] = `10`;
  533. exports[`regression tests click on an element and drag it: [dragged] appState 1`] = `
  534. Object {
  535. "collaborators": Map {},
  536. "currentItemBackgroundColor": "transparent",
  537. "currentItemFillStyle": "hachure",
  538. "currentItemFont": "20px Virgil",
  539. "currentItemOpacity": 100,
  540. "currentItemRoughness": 1,
  541. "currentItemStrokeColor": "#000000",
  542. "currentItemStrokeWidth": 1,
  543. "cursorX": 0,
  544. "cursorY": 0,
  545. "draggingElement": null,
  546. "editingElement": null,
  547. "elementLocked": false,
  548. "elementType": "selection",
  549. "errorMessage": null,
  550. "exportBackground": true,
  551. "isCollaborating": false,
  552. "isLoading": false,
  553. "isResizing": false,
  554. "isRotating": false,
  555. "lastPointerDownWith": "mouse",
  556. "multiElement": null,
  557. "name": "excalidraw-201933152653",
  558. "openMenu": null,
  559. "resizingElement": null,
  560. "scrollX": 0,
  561. "scrollY": 0,
  562. "scrolledOutside": false,
  563. "selectedElementIds": Object {
  564. "id0": true,
  565. "id1": true,
  566. },
  567. "selectionElement": null,
  568. "shouldCacheIgnoreZoom": false,
  569. "viewBackgroundColor": "#ffffff",
  570. "zoom": 1,
  571. }
  572. `;
  573. exports[`regression tests click on an element and drag it: [dragged] element 0 1`] = `
  574. Object {
  575. "angle": 0,
  576. "backgroundColor": "transparent",
  577. "fillStyle": "hachure",
  578. "height": 10,
  579. "id": "id0",
  580. "isDeleted": false,
  581. "opacity": 100,
  582. "roughness": 1,
  583. "seed": 337897,
  584. "strokeColor": "#000000",
  585. "strokeWidth": 1,
  586. "type": "rectangle",
  587. "version": 3,
  588. "versionNonce": 401146281,
  589. "width": 10,
  590. "x": 20,
  591. "y": 20,
  592. }
  593. `;
  594. exports[`regression tests click on an element and drag it: [dragged] history 1`] = `
  595. Object {
  596. "recording": false,
  597. "redoStack": Array [],
  598. "stateHistory": Array [
  599. Object {
  600. "appState": Object {
  601. "currentItemBackgroundColor": "transparent",
  602. "currentItemFillStyle": "hachure",
  603. "currentItemFont": "20px Virgil",
  604. "currentItemOpacity": 100,
  605. "currentItemRoughness": 1,
  606. "currentItemStrokeColor": "#000000",
  607. "currentItemStrokeWidth": 1,
  608. "exportBackground": true,
  609. "name": "excalidraw-201933152653",
  610. "viewBackgroundColor": "#ffffff",
  611. },
  612. "elements": Array [
  613. Object {
  614. "angle": 0,
  615. "backgroundColor": "transparent",
  616. "fillStyle": "hachure",
  617. "height": 10,
  618. "id": "id0",
  619. "isDeleted": false,
  620. "opacity": 100,
  621. "roughness": 1,
  622. "seed": 337897,
  623. "strokeColor": "#000000",
  624. "strokeWidth": 1,
  625. "type": "rectangle",
  626. "version": 3,
  627. "versionNonce": 1278240551,
  628. "width": 10,
  629. "x": 10,
  630. "y": 10,
  631. },
  632. ],
  633. },
  634. Object {
  635. "appState": Object {
  636. "currentItemBackgroundColor": "transparent",
  637. "currentItemFillStyle": "hachure",
  638. "currentItemFont": "20px Virgil",
  639. "currentItemOpacity": 100,
  640. "currentItemRoughness": 1,
  641. "currentItemStrokeColor": "#000000",
  642. "currentItemStrokeWidth": 1,
  643. "exportBackground": true,
  644. "name": "excalidraw-201933152653",
  645. "viewBackgroundColor": "#ffffff",
  646. },
  647. "elements": Array [
  648. Object {
  649. "angle": 0,
  650. "backgroundColor": "transparent",
  651. "fillStyle": "hachure",
  652. "height": 10,
  653. "id": "id0",
  654. "isDeleted": false,
  655. "opacity": 100,
  656. "roughness": 1,
  657. "seed": 337897,
  658. "strokeColor": "#000000",
  659. "strokeWidth": 1,
  660. "type": "rectangle",
  661. "version": 4,
  662. "versionNonce": 401146281,
  663. "width": 10,
  664. "x": 20,
  665. "y": 20,
  666. },
  667. ],
  668. },
  669. ],
  670. }
  671. `;
  672. exports[`regression tests click on an element and drag it: [dragged] number of elements 1`] = `1`;
  673. exports[`regression tests click on an element and drag it: [dragged] number of renders 1`] = `9`;
  674. exports[`regression tests click on an element and drag it: [end of test] appState 1`] = `
  675. Object {
  676. "collaborators": Map {},
  677. "currentItemBackgroundColor": "transparent",
  678. "currentItemFillStyle": "hachure",
  679. "currentItemFont": "20px Virgil",
  680. "currentItemOpacity": 100,
  681. "currentItemRoughness": 1,
  682. "currentItemStrokeColor": "#000000",
  683. "currentItemStrokeWidth": 1,
  684. "cursorX": 0,
  685. "cursorY": 0,
  686. "draggingElement": null,
  687. "editingElement": null,
  688. "elementLocked": false,
  689. "elementType": "selection",
  690. "errorMessage": null,
  691. "exportBackground": true,
  692. "isCollaborating": false,
  693. "isLoading": false,
  694. "isResizing": false,
  695. "isRotating": false,
  696. "lastPointerDownWith": "mouse",
  697. "multiElement": null,
  698. "name": "excalidraw-201933152653",
  699. "openMenu": null,
  700. "resizingElement": null,
  701. "scrollX": 0,
  702. "scrollY": 0,
  703. "scrolledOutside": false,
  704. "selectedElementIds": Object {
  705. "id0": true,
  706. "id1": true,
  707. "id2": true,
  708. },
  709. "selectionElement": null,
  710. "shouldCacheIgnoreZoom": false,
  711. "viewBackgroundColor": "#ffffff",
  712. "zoom": 1,
  713. }
  714. `;
  715. exports[`regression tests click on an element and drag it: [end of test] element 0 1`] = `
  716. Object {
  717. "angle": 0,
  718. "backgroundColor": "transparent",
  719. "fillStyle": "hachure",
  720. "height": 10,
  721. "id": "id0",
  722. "isDeleted": false,
  723. "opacity": 100,
  724. "roughness": 1,
  725. "seed": 337897,
  726. "strokeColor": "#000000",
  727. "strokeWidth": 1,
  728. "type": "rectangle",
  729. "version": 4,
  730. "versionNonce": 1116226695,
  731. "width": 10,
  732. "x": 10,
  733. "y": 10,
  734. }
  735. `;
  736. exports[`regression tests click on an element and drag it: [end of test] history 1`] = `
  737. Object {
  738. "recording": false,
  739. "redoStack": Array [],
  740. "stateHistory": Array [
  741. Object {
  742. "appState": Object {
  743. "currentItemBackgroundColor": "transparent",
  744. "currentItemFillStyle": "hachure",
  745. "currentItemFont": "20px Virgil",
  746. "currentItemOpacity": 100,
  747. "currentItemRoughness": 1,
  748. "currentItemStrokeColor": "#000000",
  749. "currentItemStrokeWidth": 1,
  750. "exportBackground": true,
  751. "name": "excalidraw-201933152653",
  752. "viewBackgroundColor": "#ffffff",
  753. },
  754. "elements": Array [
  755. Object {
  756. "angle": 0,
  757. "backgroundColor": "transparent",
  758. "fillStyle": "hachure",
  759. "height": 10,
  760. "id": "id0",
  761. "isDeleted": false,
  762. "opacity": 100,
  763. "roughness": 1,
  764. "seed": 337897,
  765. "strokeColor": "#000000",
  766. "strokeWidth": 1,
  767. "type": "rectangle",
  768. "version": 3,
  769. "versionNonce": 1278240551,
  770. "width": 10,
  771. "x": 10,
  772. "y": 10,
  773. },
  774. ],
  775. },
  776. Object {
  777. "appState": Object {
  778. "currentItemBackgroundColor": "transparent",
  779. "currentItemFillStyle": "hachure",
  780. "currentItemFont": "20px Virgil",
  781. "currentItemOpacity": 100,
  782. "currentItemRoughness": 1,
  783. "currentItemStrokeColor": "#000000",
  784. "currentItemStrokeWidth": 1,
  785. "exportBackground": true,
  786. "name": "excalidraw-201933152653",
  787. "viewBackgroundColor": "#ffffff",
  788. },
  789. "elements": Array [
  790. Object {
  791. "angle": 0,
  792. "backgroundColor": "transparent",
  793. "fillStyle": "hachure",
  794. "height": 10,
  795. "id": "id0",
  796. "isDeleted": false,
  797. "opacity": 100,
  798. "roughness": 1,
  799. "seed": 337897,
  800. "strokeColor": "#000000",
  801. "strokeWidth": 1,
  802. "type": "rectangle",
  803. "version": 4,
  804. "versionNonce": 401146281,
  805. "width": 10,
  806. "x": 20,
  807. "y": 20,
  808. },
  809. ],
  810. },
  811. Object {
  812. "appState": Object {
  813. "currentItemBackgroundColor": "transparent",
  814. "currentItemFillStyle": "hachure",
  815. "currentItemFont": "20px Virgil",
  816. "currentItemOpacity": 100,
  817. "currentItemRoughness": 1,
  818. "currentItemStrokeColor": "#000000",
  819. "currentItemStrokeWidth": 1,
  820. "exportBackground": true,
  821. "name": "excalidraw-201933152653",
  822. "viewBackgroundColor": "#ffffff",
  823. },
  824. "elements": Array [
  825. Object {
  826. "angle": 0,
  827. "backgroundColor": "transparent",
  828. "fillStyle": "hachure",
  829. "height": 10,
  830. "id": "id0",
  831. "isDeleted": false,
  832. "opacity": 100,
  833. "roughness": 1,
  834. "seed": 337897,
  835. "strokeColor": "#000000",
  836. "strokeWidth": 1,
  837. "type": "rectangle",
  838. "version": 5,
  839. "versionNonce": 1116226695,
  840. "width": 10,
  841. "x": 10,
  842. "y": 10,
  843. },
  844. ],
  845. },
  846. ],
  847. }
  848. `;
  849. exports[`regression tests click on an element and drag it: [end of test] number of elements 1`] = `1`;
  850. exports[`regression tests click on an element and drag it: [end of test] number of renders 1`] = `12`;
  851. exports[`regression tests click to select a shape: [end of test] appState 1`] = `
  852. Object {
  853. "collaborators": Map {},
  854. "currentItemBackgroundColor": "transparent",
  855. "currentItemFillStyle": "hachure",
  856. "currentItemFont": "20px Virgil",
  857. "currentItemOpacity": 100,
  858. "currentItemRoughness": 1,
  859. "currentItemStrokeColor": "#000000",
  860. "currentItemStrokeWidth": 1,
  861. "cursorX": 0,
  862. "cursorY": 0,
  863. "draggingElement": null,
  864. "editingElement": null,
  865. "elementLocked": false,
  866. "elementType": "selection",
  867. "errorMessage": null,
  868. "exportBackground": true,
  869. "isCollaborating": false,
  870. "isLoading": false,
  871. "isResizing": false,
  872. "isRotating": false,
  873. "lastPointerDownWith": "mouse",
  874. "multiElement": null,
  875. "name": "excalidraw-201933152653",
  876. "openMenu": null,
  877. "resizingElement": null,
  878. "scrollX": 0,
  879. "scrollY": 0,
  880. "scrolledOutside": false,
  881. "selectedElementIds": Object {
  882. "id0": true,
  883. "id2": true,
  884. },
  885. "selectionElement": null,
  886. "shouldCacheIgnoreZoom": false,
  887. "viewBackgroundColor": "#ffffff",
  888. "zoom": 1,
  889. }
  890. `;
  891. exports[`regression tests click to select a shape: [end of test] element 0 1`] = `
  892. Object {
  893. "angle": 0,
  894. "backgroundColor": "transparent",
  895. "fillStyle": "hachure",
  896. "height": 10,
  897. "id": "id0",
  898. "isDeleted": false,
  899. "opacity": 100,
  900. "roughness": 1,
  901. "seed": 337897,
  902. "strokeColor": "#000000",
  903. "strokeWidth": 1,
  904. "type": "rectangle",
  905. "version": 2,
  906. "versionNonce": 1278240551,
  907. "width": 10,
  908. "x": 10,
  909. "y": 10,
  910. }
  911. `;
  912. exports[`regression tests click to select a shape: [end of test] element 1 1`] = `
  913. Object {
  914. "angle": 0,
  915. "backgroundColor": "transparent",
  916. "fillStyle": "hachure",
  917. "height": 10,
  918. "id": "id1",
  919. "isDeleted": false,
  920. "opacity": 100,
  921. "roughness": 1,
  922. "seed": 453191,
  923. "strokeColor": "#000000",
  924. "strokeWidth": 1,
  925. "type": "rectangle",
  926. "version": 2,
  927. "versionNonce": 401146281,
  928. "width": 10,
  929. "x": 30,
  930. "y": 10,
  931. }
  932. `;
  933. exports[`regression tests click to select a shape: [end of test] history 1`] = `
  934. Object {
  935. "recording": false,
  936. "redoStack": Array [],
  937. "stateHistory": Array [
  938. Object {
  939. "appState": Object {
  940. "currentItemBackgroundColor": "transparent",
  941. "currentItemFillStyle": "hachure",
  942. "currentItemFont": "20px Virgil",
  943. "currentItemOpacity": 100,
  944. "currentItemRoughness": 1,
  945. "currentItemStrokeColor": "#000000",
  946. "currentItemStrokeWidth": 1,
  947. "exportBackground": true,
  948. "name": "excalidraw-201933152653",
  949. "viewBackgroundColor": "#ffffff",
  950. },
  951. "elements": Array [
  952. Object {
  953. "angle": 0,
  954. "backgroundColor": "transparent",
  955. "fillStyle": "hachure",
  956. "height": 10,
  957. "id": "id0",
  958. "isDeleted": false,
  959. "opacity": 100,
  960. "roughness": 1,
  961. "seed": 337897,
  962. "strokeColor": "#000000",
  963. "strokeWidth": 1,
  964. "type": "rectangle",
  965. "version": 3,
  966. "versionNonce": 1278240551,
  967. "width": 10,
  968. "x": 10,
  969. "y": 10,
  970. },
  971. ],
  972. },
  973. Object {
  974. "appState": Object {
  975. "currentItemBackgroundColor": "transparent",
  976. "currentItemFillStyle": "hachure",
  977. "currentItemFont": "20px Virgil",
  978. "currentItemOpacity": 100,
  979. "currentItemRoughness": 1,
  980. "currentItemStrokeColor": "#000000",
  981. "currentItemStrokeWidth": 1,
  982. "exportBackground": true,
  983. "name": "excalidraw-201933152653",
  984. "viewBackgroundColor": "#ffffff",
  985. },
  986. "elements": Array [
  987. Object {
  988. "angle": 0,
  989. "backgroundColor": "transparent",
  990. "fillStyle": "hachure",
  991. "height": 10,
  992. "id": "id0",
  993. "isDeleted": false,
  994. "opacity": 100,
  995. "roughness": 1,
  996. "seed": 337897,
  997. "strokeColor": "#000000",
  998. "strokeWidth": 1,
  999. "type": "rectangle",
  1000. "version": 3,
  1001. "versionNonce": 1278240551,
  1002. "width": 10,
  1003. "x": 10,
  1004. "y": 10,
  1005. },
  1006. Object {
  1007. "angle": 0,
  1008. "backgroundColor": "transparent",
  1009. "fillStyle": "hachure",
  1010. "height": 10,
  1011. "id": "id1",
  1012. "isDeleted": false,
  1013. "opacity": 100,
  1014. "roughness": 1,
  1015. "seed": 453191,
  1016. "strokeColor": "#000000",
  1017. "strokeWidth": 1,
  1018. "type": "rectangle",
  1019. "version": 3,
  1020. "versionNonce": 401146281,
  1021. "width": 10,
  1022. "x": 30,
  1023. "y": 10,
  1024. },
  1025. ],
  1026. },
  1027. ],
  1028. }
  1029. `;
  1030. exports[`regression tests click to select a shape: [end of test] number of elements 1`] = `2`;
  1031. exports[`regression tests click to select a shape: [end of test] number of renders 1`] = `12`;
  1032. exports[`regression tests click-drag to select a group: [end of test] appState 1`] = `
  1033. Object {
  1034. "collaborators": Map {},
  1035. "currentItemBackgroundColor": "transparent",
  1036. "currentItemFillStyle": "hachure",
  1037. "currentItemFont": "20px Virgil",
  1038. "currentItemOpacity": 100,
  1039. "currentItemRoughness": 1,
  1040. "currentItemStrokeColor": "#000000",
  1041. "currentItemStrokeWidth": 1,
  1042. "cursorX": 0,
  1043. "cursorY": 0,
  1044. "draggingElement": null,
  1045. "editingElement": null,
  1046. "elementLocked": false,
  1047. "elementType": "selection",
  1048. "errorMessage": null,
  1049. "exportBackground": true,
  1050. "isCollaborating": false,
  1051. "isLoading": false,
  1052. "isResizing": false,
  1053. "isRotating": false,
  1054. "lastPointerDownWith": "mouse",
  1055. "multiElement": null,
  1056. "name": "excalidraw-201933152653",
  1057. "openMenu": null,
  1058. "resizingElement": null,
  1059. "scrollX": 0,
  1060. "scrollY": 0,
  1061. "scrolledOutside": false,
  1062. "selectedElementIds": Object {
  1063. "id0": true,
  1064. "id1": true,
  1065. "id3": true,
  1066. },
  1067. "selectionElement": null,
  1068. "shouldCacheIgnoreZoom": false,
  1069. "viewBackgroundColor": "#ffffff",
  1070. "zoom": 1,
  1071. }
  1072. `;
  1073. exports[`regression tests click-drag to select a group: [end of test] element 0 1`] = `
  1074. Object {
  1075. "angle": 0,
  1076. "backgroundColor": "transparent",
  1077. "fillStyle": "hachure",
  1078. "height": 10,
  1079. "id": "id0",
  1080. "isDeleted": false,
  1081. "opacity": 100,
  1082. "roughness": 1,
  1083. "seed": 337897,
  1084. "strokeColor": "#000000",
  1085. "strokeWidth": 1,
  1086. "type": "rectangle",
  1087. "version": 2,
  1088. "versionNonce": 1278240551,
  1089. "width": 10,
  1090. "x": 10,
  1091. "y": 10,
  1092. }
  1093. `;
  1094. exports[`regression tests click-drag to select a group: [end of test] element 1 1`] = `
  1095. Object {
  1096. "angle": 0,
  1097. "backgroundColor": "transparent",
  1098. "fillStyle": "hachure",
  1099. "height": 10,
  1100. "id": "id1",
  1101. "isDeleted": false,
  1102. "opacity": 100,
  1103. "roughness": 1,
  1104. "seed": 453191,
  1105. "strokeColor": "#000000",
  1106. "strokeWidth": 1,
  1107. "type": "rectangle",
  1108. "version": 2,
  1109. "versionNonce": 401146281,
  1110. "width": 10,
  1111. "x": 30,
  1112. "y": 10,
  1113. }
  1114. `;
  1115. exports[`regression tests click-drag to select a group: [end of test] element 2 1`] = `
  1116. Object {
  1117. "angle": 0,
  1118. "backgroundColor": "transparent",
  1119. "fillStyle": "hachure",
  1120. "height": 10,
  1121. "id": "id2",
  1122. "isDeleted": false,
  1123. "opacity": 100,
  1124. "roughness": 1,
  1125. "seed": 1116226695,
  1126. "strokeColor": "#000000",
  1127. "strokeWidth": 1,
  1128. "type": "rectangle",
  1129. "version": 2,
  1130. "versionNonce": 1014066025,
  1131. "width": 10,
  1132. "x": 50,
  1133. "y": 10,
  1134. }
  1135. `;
  1136. exports[`regression tests click-drag to select a group: [end of test] history 1`] = `
  1137. Object {
  1138. "recording": false,
  1139. "redoStack": Array [],
  1140. "stateHistory": Array [
  1141. Object {
  1142. "appState": Object {
  1143. "currentItemBackgroundColor": "transparent",
  1144. "currentItemFillStyle": "hachure",
  1145. "currentItemFont": "20px Virgil",
  1146. "currentItemOpacity": 100,
  1147. "currentItemRoughness": 1,
  1148. "currentItemStrokeColor": "#000000",
  1149. "currentItemStrokeWidth": 1,
  1150. "exportBackground": true,
  1151. "name": "excalidraw-201933152653",
  1152. "viewBackgroundColor": "#ffffff",
  1153. },
  1154. "elements": Array [
  1155. Object {
  1156. "angle": 0,
  1157. "backgroundColor": "transparent",
  1158. "fillStyle": "hachure",
  1159. "height": 10,
  1160. "id": "id0",
  1161. "isDeleted": false,
  1162. "opacity": 100,
  1163. "roughness": 1,
  1164. "seed": 337897,
  1165. "strokeColor": "#000000",
  1166. "strokeWidth": 1,
  1167. "type": "rectangle",
  1168. "version": 3,
  1169. "versionNonce": 1278240551,
  1170. "width": 10,
  1171. "x": 10,
  1172. "y": 10,
  1173. },
  1174. ],
  1175. },
  1176. Object {
  1177. "appState": Object {
  1178. "currentItemBackgroundColor": "transparent",
  1179. "currentItemFillStyle": "hachure",
  1180. "currentItemFont": "20px Virgil",
  1181. "currentItemOpacity": 100,
  1182. "currentItemRoughness": 1,
  1183. "currentItemStrokeColor": "#000000",
  1184. "currentItemStrokeWidth": 1,
  1185. "exportBackground": true,
  1186. "name": "excalidraw-201933152653",
  1187. "viewBackgroundColor": "#ffffff",
  1188. },
  1189. "elements": Array [
  1190. Object {
  1191. "angle": 0,
  1192. "backgroundColor": "transparent",
  1193. "fillStyle": "hachure",
  1194. "height": 10,
  1195. "id": "id0",
  1196. "isDeleted": false,
  1197. "opacity": 100,
  1198. "roughness": 1,
  1199. "seed": 337897,
  1200. "strokeColor": "#000000",
  1201. "strokeWidth": 1,
  1202. "type": "rectangle",
  1203. "version": 3,
  1204. "versionNonce": 1278240551,
  1205. "width": 10,
  1206. "x": 10,
  1207. "y": 10,
  1208. },
  1209. Object {
  1210. "angle": 0,
  1211. "backgroundColor": "transparent",
  1212. "fillStyle": "hachure",
  1213. "height": 10,
  1214. "id": "id1",
  1215. "isDeleted": false,
  1216. "opacity": 100,
  1217. "roughness": 1,
  1218. "seed": 453191,
  1219. "strokeColor": "#000000",
  1220. "strokeWidth": 1,
  1221. "type": "rectangle",
  1222. "version": 3,
  1223. "versionNonce": 401146281,
  1224. "width": 10,
  1225. "x": 30,
  1226. "y": 10,
  1227. },
  1228. ],
  1229. },
  1230. Object {
  1231. "appState": Object {
  1232. "currentItemBackgroundColor": "transparent",
  1233. "currentItemFillStyle": "hachure",
  1234. "currentItemFont": "20px Virgil",
  1235. "currentItemOpacity": 100,
  1236. "currentItemRoughness": 1,
  1237. "currentItemStrokeColor": "#000000",
  1238. "currentItemStrokeWidth": 1,
  1239. "exportBackground": true,
  1240. "name": "excalidraw-201933152653",
  1241. "viewBackgroundColor": "#ffffff",
  1242. },
  1243. "elements": Array [
  1244. Object {
  1245. "angle": 0,
  1246. "backgroundColor": "transparent",
  1247. "fillStyle": "hachure",
  1248. "height": 10,
  1249. "id": "id0",
  1250. "isDeleted": false,
  1251. "opacity": 100,
  1252. "roughness": 1,
  1253. "seed": 337897,
  1254. "strokeColor": "#000000",
  1255. "strokeWidth": 1,
  1256. "type": "rectangle",
  1257. "version": 3,
  1258. "versionNonce": 1278240551,
  1259. "width": 10,
  1260. "x": 10,
  1261. "y": 10,
  1262. },
  1263. Object {
  1264. "angle": 0,
  1265. "backgroundColor": "transparent",
  1266. "fillStyle": "hachure",
  1267. "height": 10,
  1268. "id": "id1",
  1269. "isDeleted": false,
  1270. "opacity": 100,
  1271. "roughness": 1,
  1272. "seed": 453191,
  1273. "strokeColor": "#000000",
  1274. "strokeWidth": 1,
  1275. "type": "rectangle",
  1276. "version": 3,
  1277. "versionNonce": 401146281,
  1278. "width": 10,
  1279. "x": 30,
  1280. "y": 10,
  1281. },
  1282. Object {
  1283. "angle": 0,
  1284. "backgroundColor": "transparent",
  1285. "fillStyle": "hachure",
  1286. "height": 10,
  1287. "id": "id2",
  1288. "isDeleted": false,
  1289. "opacity": 100,
  1290. "roughness": 1,
  1291. "seed": 1116226695,
  1292. "strokeColor": "#000000",
  1293. "strokeWidth": 1,
  1294. "type": "rectangle",
  1295. "version": 3,
  1296. "versionNonce": 1014066025,
  1297. "width": 10,
  1298. "x": 50,
  1299. "y": 10,
  1300. },
  1301. ],
  1302. },
  1303. ],
  1304. }
  1305. `;
  1306. exports[`regression tests click-drag to select a group: [end of test] number of elements 1`] = `3`;
  1307. exports[`regression tests click-drag to select a group: [end of test] number of renders 1`] = `17`;
  1308. exports[`regression tests draw every type of shape: [end of test] appState 1`] = `
  1309. Object {
  1310. "collaborators": Map {},
  1311. "currentItemBackgroundColor": "transparent",
  1312. "currentItemFillStyle": "hachure",
  1313. "currentItemFont": "20px Virgil",
  1314. "currentItemOpacity": 100,
  1315. "currentItemRoughness": 1,
  1316. "currentItemStrokeColor": "#000000",
  1317. "currentItemStrokeWidth": 1,
  1318. "cursorX": 0,
  1319. "cursorY": 0,
  1320. "draggingElement": null,
  1321. "editingElement": null,
  1322. "elementLocked": false,
  1323. "elementType": "selection",
  1324. "errorMessage": null,
  1325. "exportBackground": true,
  1326. "isCollaborating": false,
  1327. "isLoading": false,
  1328. "isResizing": false,
  1329. "isRotating": false,
  1330. "lastPointerDownWith": "mouse",
  1331. "multiElement": null,
  1332. "name": "excalidraw-201933152653",
  1333. "openMenu": null,
  1334. "resizingElement": null,
  1335. "scrollX": 0,
  1336. "scrollY": 0,
  1337. "scrolledOutside": false,
  1338. "selectedElementIds": Object {},
  1339. "selectionElement": null,
  1340. "shouldCacheIgnoreZoom": false,
  1341. "viewBackgroundColor": "#ffffff",
  1342. "zoom": 1,
  1343. }
  1344. `;
  1345. exports[`regression tests draw every type of shape: [end of test] element 0 1`] = `
  1346. Object {
  1347. "angle": 0,
  1348. "backgroundColor": "transparent",
  1349. "fillStyle": "hachure",
  1350. "height": 10,
  1351. "id": "id0",
  1352. "isDeleted": false,
  1353. "opacity": 100,
  1354. "roughness": 1,
  1355. "seed": 337897,
  1356. "strokeColor": "#000000",
  1357. "strokeWidth": 1,
  1358. "type": "rectangle",
  1359. "version": 2,
  1360. "versionNonce": 1278240551,
  1361. "width": 10,
  1362. "x": 10,
  1363. "y": 10,
  1364. }
  1365. `;
  1366. exports[`regression tests draw every type of shape: [end of test] element 1 1`] = `
  1367. Object {
  1368. "angle": 0,
  1369. "backgroundColor": "transparent",
  1370. "fillStyle": "hachure",
  1371. "height": 10,
  1372. "id": "id1",
  1373. "isDeleted": false,
  1374. "opacity": 100,
  1375. "roughness": 1,
  1376. "seed": 453191,
  1377. "strokeColor": "#000000",
  1378. "strokeWidth": 1,
  1379. "type": "diamond",
  1380. "version": 2,
  1381. "versionNonce": 401146281,
  1382. "width": 10,
  1383. "x": 30,
  1384. "y": 10,
  1385. }
  1386. `;
  1387. exports[`regression tests draw every type of shape: [end of test] element 2 1`] = `
  1388. Object {
  1389. "angle": 0,
  1390. "backgroundColor": "transparent",
  1391. "fillStyle": "hachure",
  1392. "height": 10,
  1393. "id": "id2",
  1394. "isDeleted": false,
  1395. "opacity": 100,
  1396. "roughness": 1,
  1397. "seed": 1116226695,
  1398. "strokeColor": "#000000",
  1399. "strokeWidth": 1,
  1400. "type": "ellipse",
  1401. "version": 2,
  1402. "versionNonce": 1014066025,
  1403. "width": 10,
  1404. "x": 50,
  1405. "y": 10,
  1406. }
  1407. `;
  1408. exports[`regression tests draw every type of shape: [end of test] element 3 1`] = `
  1409. Object {
  1410. "angle": 0,
  1411. "backgroundColor": "transparent",
  1412. "fillStyle": "hachure",
  1413. "height": 10,
  1414. "id": "id3",
  1415. "isDeleted": false,
  1416. "lastCommittedPoint": null,
  1417. "opacity": 100,
  1418. "points": Array [
  1419. Array [
  1420. 0,
  1421. 0,
  1422. ],
  1423. Array [
  1424. 10,
  1425. 10,
  1426. ],
  1427. ],
  1428. "roughness": 1,
  1429. "seed": 1505387817,
  1430. "strokeColor": "#000000",
  1431. "strokeWidth": 1,
  1432. "type": "arrow",
  1433. "version": 3,
  1434. "versionNonce": 493213705,
  1435. "width": 10,
  1436. "x": 70,
  1437. "y": 10,
  1438. }
  1439. `;
  1440. exports[`regression tests draw every type of shape: [end of test] element 4 1`] = `
  1441. Object {
  1442. "angle": 0,
  1443. "backgroundColor": "transparent",
  1444. "fillStyle": "hachure",
  1445. "height": 10,
  1446. "id": "id4",
  1447. "isDeleted": false,
  1448. "lastCommittedPoint": null,
  1449. "opacity": 100,
  1450. "points": Array [
  1451. Array [
  1452. 0,
  1453. 0,
  1454. ],
  1455. Array [
  1456. 10,
  1457. 10,
  1458. ],
  1459. ],
  1460. "roughness": 1,
  1461. "seed": 760410951,
  1462. "strokeColor": "#000000",
  1463. "strokeWidth": 1,
  1464. "type": "line",
  1465. "version": 3,
  1466. "versionNonce": 289600103,
  1467. "width": 10,
  1468. "x": 90,
  1469. "y": 10,
  1470. }
  1471. `;
  1472. exports[`regression tests draw every type of shape: [end of test] history 1`] = `
  1473. Object {
  1474. "recording": false,
  1475. "redoStack": Array [],
  1476. "stateHistory": Array [
  1477. Object {
  1478. "appState": Object {
  1479. "currentItemBackgroundColor": "transparent",
  1480. "currentItemFillStyle": "hachure",
  1481. "currentItemFont": "20px Virgil",
  1482. "currentItemOpacity": 100,
  1483. "currentItemRoughness": 1,
  1484. "currentItemStrokeColor": "#000000",
  1485. "currentItemStrokeWidth": 1,
  1486. "exportBackground": true,
  1487. "name": "excalidraw-201933152653",
  1488. "viewBackgroundColor": "#ffffff",
  1489. },
  1490. "elements": Array [],
  1491. },
  1492. Object {
  1493. "appState": Object {
  1494. "currentItemBackgroundColor": "transparent",
  1495. "currentItemFillStyle": "hachure",
  1496. "currentItemFont": "20px Virgil",
  1497. "currentItemOpacity": 100,
  1498. "currentItemRoughness": 1,
  1499. "currentItemStrokeColor": "#000000",
  1500. "currentItemStrokeWidth": 1,
  1501. "exportBackground": true,
  1502. "name": "excalidraw-201933152653",
  1503. "viewBackgroundColor": "#ffffff",
  1504. },
  1505. "elements": Array [
  1506. Object {
  1507. "angle": 0,
  1508. "backgroundColor": "transparent",
  1509. "fillStyle": "hachure",
  1510. "height": 10,
  1511. "id": "id0",
  1512. "isDeleted": false,
  1513. "opacity": 100,
  1514. "roughness": 1,
  1515. "seed": 337897,
  1516. "strokeColor": "#000000",
  1517. "strokeWidth": 1,
  1518. "type": "rectangle",
  1519. "version": 3,
  1520. "versionNonce": 1278240551,
  1521. "width": 10,
  1522. "x": 10,
  1523. "y": 10,
  1524. },
  1525. ],
  1526. },
  1527. Object {
  1528. "appState": Object {
  1529. "currentItemBackgroundColor": "transparent",
  1530. "currentItemFillStyle": "hachure",
  1531. "currentItemFont": "20px Virgil",
  1532. "currentItemOpacity": 100,
  1533. "currentItemRoughness": 1,
  1534. "currentItemStrokeColor": "#000000",
  1535. "currentItemStrokeWidth": 1,
  1536. "exportBackground": true,
  1537. "name": "excalidraw-201933152653",
  1538. "viewBackgroundColor": "#ffffff",
  1539. },
  1540. "elements": Array [
  1541. Object {
  1542. "angle": 0,
  1543. "backgroundColor": "transparent",
  1544. "fillStyle": "hachure",
  1545. "height": 10,
  1546. "id": "id0",
  1547. "isDeleted": false,
  1548. "opacity": 100,
  1549. "roughness": 1,
  1550. "seed": 337897,
  1551. "strokeColor": "#000000",
  1552. "strokeWidth": 1,
  1553. "type": "rectangle",
  1554. "version": 3,
  1555. "versionNonce": 1278240551,
  1556. "width": 10,
  1557. "x": 10,
  1558. "y": 10,
  1559. },
  1560. Object {
  1561. "angle": 0,
  1562. "backgroundColor": "transparent",
  1563. "fillStyle": "hachure",
  1564. "height": 10,
  1565. "id": "id1",
  1566. "isDeleted": false,
  1567. "opacity": 100,
  1568. "roughness": 1,
  1569. "seed": 453191,
  1570. "strokeColor": "#000000",
  1571. "strokeWidth": 1,
  1572. "type": "diamond",
  1573. "version": 3,
  1574. "versionNonce": 401146281,
  1575. "width": 10,
  1576. "x": 30,
  1577. "y": 10,
  1578. },
  1579. ],
  1580. },
  1581. Object {
  1582. "appState": Object {
  1583. "currentItemBackgroundColor": "transparent",
  1584. "currentItemFillStyle": "hachure",
  1585. "currentItemFont": "20px Virgil",
  1586. "currentItemOpacity": 100,
  1587. "currentItemRoughness": 1,
  1588. "currentItemStrokeColor": "#000000",
  1589. "currentItemStrokeWidth": 1,
  1590. "exportBackground": true,
  1591. "name": "excalidraw-201933152653",
  1592. "viewBackgroundColor": "#ffffff",
  1593. },
  1594. "elements": Array [
  1595. Object {
  1596. "angle": 0,
  1597. "backgroundColor": "transparent",
  1598. "fillStyle": "hachure",
  1599. "height": 10,
  1600. "id": "id0",
  1601. "isDeleted": false,
  1602. "opacity": 100,
  1603. "roughness": 1,
  1604. "seed": 337897,
  1605. "strokeColor": "#000000",
  1606. "strokeWidth": 1,
  1607. "type": "rectangle",
  1608. "version": 3,
  1609. "versionNonce": 1278240551,
  1610. "width": 10,
  1611. "x": 10,
  1612. "y": 10,
  1613. },
  1614. Object {
  1615. "angle": 0,
  1616. "backgroundColor": "transparent",
  1617. "fillStyle": "hachure",
  1618. "height": 10,
  1619. "id": "id1",
  1620. "isDeleted": false,
  1621. "opacity": 100,
  1622. "roughness": 1,
  1623. "seed": 453191,
  1624. "strokeColor": "#000000",
  1625. "strokeWidth": 1,
  1626. "type": "diamond",
  1627. "version": 3,
  1628. "versionNonce": 401146281,
  1629. "width": 10,
  1630. "x": 30,
  1631. "y": 10,
  1632. },
  1633. Object {
  1634. "angle": 0,
  1635. "backgroundColor": "transparent",
  1636. "fillStyle": "hachure",
  1637. "height": 10,
  1638. "id": "id2",
  1639. "isDeleted": false,
  1640. "opacity": 100,
  1641. "roughness": 1,
  1642. "seed": 1116226695,
  1643. "strokeColor": "#000000",
  1644. "strokeWidth": 1,
  1645. "type": "ellipse",
  1646. "version": 3,
  1647. "versionNonce": 1014066025,
  1648. "width": 10,
  1649. "x": 50,
  1650. "y": 10,
  1651. },
  1652. ],
  1653. },
  1654. Object {
  1655. "appState": Object {
  1656. "currentItemBackgroundColor": "transparent",
  1657. "currentItemFillStyle": "hachure",
  1658. "currentItemFont": "20px Virgil",
  1659. "currentItemOpacity": 100,
  1660. "currentItemRoughness": 1,
  1661. "currentItemStrokeColor": "#000000",
  1662. "currentItemStrokeWidth": 1,
  1663. "exportBackground": true,
  1664. "name": "excalidraw-201933152653",
  1665. "viewBackgroundColor": "#ffffff",
  1666. },
  1667. "elements": Array [
  1668. Object {
  1669. "angle": 0,
  1670. "backgroundColor": "transparent",
  1671. "fillStyle": "hachure",
  1672. "height": 10,
  1673. "id": "id0",
  1674. "isDeleted": false,
  1675. "opacity": 100,
  1676. "roughness": 1,
  1677. "seed": 337897,
  1678. "strokeColor": "#000000",
  1679. "strokeWidth": 1,
  1680. "type": "rectangle",
  1681. "version": 3,
  1682. "versionNonce": 1278240551,
  1683. "width": 10,
  1684. "x": 10,
  1685. "y": 10,
  1686. },
  1687. Object {
  1688. "angle": 0,
  1689. "backgroundColor": "transparent",
  1690. "fillStyle": "hachure",
  1691. "height": 10,
  1692. "id": "id1",
  1693. "isDeleted": false,
  1694. "opacity": 100,
  1695. "roughness": 1,
  1696. "seed": 453191,
  1697. "strokeColor": "#000000",
  1698. "strokeWidth": 1,
  1699. "type": "diamond",
  1700. "version": 3,
  1701. "versionNonce": 401146281,
  1702. "width": 10,
  1703. "x": 30,
  1704. "y": 10,
  1705. },
  1706. Object {
  1707. "angle": 0,
  1708. "backgroundColor": "transparent",
  1709. "fillStyle": "hachure",
  1710. "height": 10,
  1711. "id": "id2",
  1712. "isDeleted": false,
  1713. "opacity": 100,
  1714. "roughness": 1,
  1715. "seed": 1116226695,
  1716. "strokeColor": "#000000",
  1717. "strokeWidth": 1,
  1718. "type": "ellipse",
  1719. "version": 3,
  1720. "versionNonce": 1014066025,
  1721. "width": 10,
  1722. "x": 50,
  1723. "y": 10,
  1724. },
  1725. Object {
  1726. "angle": 0,
  1727. "backgroundColor": "transparent",
  1728. "fillStyle": "hachure",
  1729. "height": 10,
  1730. "id": "id3",
  1731. "isDeleted": false,
  1732. "lastCommittedPoint": null,
  1733. "opacity": 100,
  1734. "points": Array [
  1735. Array [
  1736. 0,
  1737. 0,
  1738. ],
  1739. Array [
  1740. 10,
  1741. 10,
  1742. ],
  1743. ],
  1744. "roughness": 1,
  1745. "seed": 1505387817,
  1746. "strokeColor": "#000000",
  1747. "strokeWidth": 1,
  1748. "type": "arrow",
  1749. "version": 4,
  1750. "versionNonce": 493213705,
  1751. "width": 10,
  1752. "x": 70,
  1753. "y": 10,
  1754. },
  1755. ],
  1756. },
  1757. Object {
  1758. "appState": Object {
  1759. "currentItemBackgroundColor": "transparent",
  1760. "currentItemFillStyle": "hachure",
  1761. "currentItemFont": "20px Virgil",
  1762. "currentItemOpacity": 100,
  1763. "currentItemRoughness": 1,
  1764. "currentItemStrokeColor": "#000000",
  1765. "currentItemStrokeWidth": 1,
  1766. "exportBackground": true,
  1767. "name": "excalidraw-201933152653",
  1768. "viewBackgroundColor": "#ffffff",
  1769. },
  1770. "elements": Array [
  1771. Object {
  1772. "angle": 0,
  1773. "backgroundColor": "transparent",
  1774. "fillStyle": "hachure",
  1775. "height": 10,
  1776. "id": "id0",
  1777. "isDeleted": false,
  1778. "opacity": 100,
  1779. "roughness": 1,
  1780. "seed": 337897,
  1781. "strokeColor": "#000000",
  1782. "strokeWidth": 1,
  1783. "type": "rectangle",
  1784. "version": 3,
  1785. "versionNonce": 1278240551,
  1786. "width": 10,
  1787. "x": 10,
  1788. "y": 10,
  1789. },
  1790. Object {
  1791. "angle": 0,
  1792. "backgroundColor": "transparent",
  1793. "fillStyle": "hachure",
  1794. "height": 10,
  1795. "id": "id1",
  1796. "isDeleted": false,
  1797. "opacity": 100,
  1798. "roughness": 1,
  1799. "seed": 453191,
  1800. "strokeColor": "#000000",
  1801. "strokeWidth": 1,
  1802. "type": "diamond",
  1803. "version": 3,
  1804. "versionNonce": 401146281,
  1805. "width": 10,
  1806. "x": 30,
  1807. "y": 10,
  1808. },
  1809. Object {
  1810. "angle": 0,
  1811. "backgroundColor": "transparent",
  1812. "fillStyle": "hachure",
  1813. "height": 10,
  1814. "id": "id2",
  1815. "isDeleted": false,
  1816. "opacity": 100,
  1817. "roughness": 1,
  1818. "seed": 1116226695,
  1819. "strokeColor": "#000000",
  1820. "strokeWidth": 1,
  1821. "type": "ellipse",
  1822. "version": 3,
  1823. "versionNonce": 1014066025,
  1824. "width": 10,
  1825. "x": 50,
  1826. "y": 10,
  1827. },
  1828. Object {
  1829. "angle": 0,
  1830. "backgroundColor": "transparent",
  1831. "fillStyle": "hachure",
  1832. "height": 10,
  1833. "id": "id3",
  1834. "isDeleted": false,
  1835. "lastCommittedPoint": null,
  1836. "opacity": 100,
  1837. "points": Array [
  1838. Array [
  1839. 0,
  1840. 0,
  1841. ],
  1842. Array [
  1843. 10,
  1844. 10,
  1845. ],
  1846. ],
  1847. "roughness": 1,
  1848. "seed": 1505387817,
  1849. "strokeColor": "#000000",
  1850. "strokeWidth": 1,
  1851. "type": "arrow",
  1852. "version": 4,
  1853. "versionNonce": 493213705,
  1854. "width": 10,
  1855. "x": 70,
  1856. "y": 10,
  1857. },
  1858. Object {
  1859. "angle": 0,
  1860. "backgroundColor": "transparent",
  1861. "fillStyle": "hachure",
  1862. "height": 10,
  1863. "id": "id4",
  1864. "isDeleted": false,
  1865. "lastCommittedPoint": null,
  1866. "opacity": 100,
  1867. "points": Array [
  1868. Array [
  1869. 0,
  1870. 0,
  1871. ],
  1872. Array [
  1873. 10,
  1874. 10,
  1875. ],
  1876. ],
  1877. "roughness": 1,
  1878. "seed": 760410951,
  1879. "strokeColor": "#000000",
  1880. "strokeWidth": 1,
  1881. "type": "line",
  1882. "version": 4,
  1883. "versionNonce": 289600103,
  1884. "width": 10,
  1885. "x": 90,
  1886. "y": 10,
  1887. },
  1888. ],
  1889. },
  1890. ],
  1891. }
  1892. `;
  1893. exports[`regression tests draw every type of shape: [end of test] number of elements 1`] = `5`;
  1894. exports[`regression tests draw every type of shape: [end of test] number of renders 1`] = `34`;
  1895. exports[`regression tests hotkey 2 selects rectangle tool: [end of test] appState 1`] = `
  1896. Object {
  1897. "collaborators": Map {},
  1898. "currentItemBackgroundColor": "transparent",
  1899. "currentItemFillStyle": "hachure",
  1900. "currentItemFont": "20px Virgil",
  1901. "currentItemOpacity": 100,
  1902. "currentItemRoughness": 1,
  1903. "currentItemStrokeColor": "#000000",
  1904. "currentItemStrokeWidth": 1,
  1905. "cursorX": 0,
  1906. "cursorY": 0,
  1907. "draggingElement": null,
  1908. "editingElement": null,
  1909. "elementLocked": false,
  1910. "elementType": "selection",
  1911. "errorMessage": null,
  1912. "exportBackground": true,
  1913. "isCollaborating": false,
  1914. "isLoading": false,
  1915. "isResizing": false,
  1916. "isRotating": false,
  1917. "lastPointerDownWith": "mouse",
  1918. "multiElement": null,
  1919. "name": "excalidraw-201933152653",
  1920. "openMenu": null,
  1921. "resizingElement": null,
  1922. "scrollX": 0,
  1923. "scrollY": 0,
  1924. "scrolledOutside": false,
  1925. "selectedElementIds": Object {
  1926. "id0": true,
  1927. },
  1928. "selectionElement": null,
  1929. "shouldCacheIgnoreZoom": false,
  1930. "viewBackgroundColor": "#ffffff",
  1931. "zoom": 1,
  1932. }
  1933. `;
  1934. exports[`regression tests hotkey 2 selects rectangle tool: [end of test] element 0 1`] = `
  1935. Object {
  1936. "angle": 0,
  1937. "backgroundColor": "transparent",
  1938. "fillStyle": "hachure",
  1939. "height": 10,
  1940. "id": "id0",
  1941. "isDeleted": false,
  1942. "opacity": 100,
  1943. "roughness": 1,
  1944. "seed": 337897,
  1945. "strokeColor": "#000000",
  1946. "strokeWidth": 1,
  1947. "type": "rectangle",
  1948. "version": 2,
  1949. "versionNonce": 1278240551,
  1950. "width": 10,
  1951. "x": 10,
  1952. "y": 10,
  1953. }
  1954. `;
  1955. exports[`regression tests hotkey 2 selects rectangle tool: [end of test] history 1`] = `
  1956. Object {
  1957. "recording": false,
  1958. "redoStack": Array [],
  1959. "stateHistory": Array [
  1960. Object {
  1961. "appState": Object {
  1962. "currentItemBackgroundColor": "transparent",
  1963. "currentItemFillStyle": "hachure",
  1964. "currentItemFont": "20px Virgil",
  1965. "currentItemOpacity": 100,
  1966. "currentItemRoughness": 1,
  1967. "currentItemStrokeColor": "#000000",
  1968. "currentItemStrokeWidth": 1,
  1969. "exportBackground": true,
  1970. "name": "excalidraw-201933152653",
  1971. "viewBackgroundColor": "#ffffff",
  1972. },
  1973. "elements": Array [
  1974. Object {
  1975. "angle": 0,
  1976. "backgroundColor": "transparent",
  1977. "fillStyle": "hachure",
  1978. "height": 10,
  1979. "id": "id0",
  1980. "isDeleted": false,
  1981. "opacity": 100,
  1982. "roughness": 1,
  1983. "seed": 337897,
  1984. "strokeColor": "#000000",
  1985. "strokeWidth": 1,
  1986. "type": "rectangle",
  1987. "version": 3,
  1988. "versionNonce": 1278240551,
  1989. "width": 10,
  1990. "x": 10,
  1991. "y": 10,
  1992. },
  1993. ],
  1994. },
  1995. ],
  1996. }
  1997. `;
  1998. exports[`regression tests hotkey 2 selects rectangle tool: [end of test] number of elements 1`] = `1`;
  1999. exports[`regression tests hotkey 2 selects rectangle tool: [end of test] number of renders 1`] = `6`;
  2000. exports[`regression tests hotkey 3 selects diamond tool: [end of test] appState 1`] = `
  2001. Object {
  2002. "collaborators": Map {},
  2003. "currentItemBackgroundColor": "transparent",
  2004. "currentItemFillStyle": "hachure",
  2005. "currentItemFont": "20px Virgil",
  2006. "currentItemOpacity": 100,
  2007. "currentItemRoughness": 1,
  2008. "currentItemStrokeColor": "#000000",
  2009. "currentItemStrokeWidth": 1,
  2010. "cursorX": 0,
  2011. "cursorY": 0,
  2012. "draggingElement": null,
  2013. "editingElement": null,
  2014. "elementLocked": false,
  2015. "elementType": "selection",
  2016. "errorMessage": null,
  2017. "exportBackground": true,
  2018. "isCollaborating": false,
  2019. "isLoading": false,
  2020. "isResizing": false,
  2021. "isRotating": false,
  2022. "lastPointerDownWith": "mouse",
  2023. "multiElement": null,
  2024. "name": "excalidraw-201933152653",
  2025. "openMenu": null,
  2026. "resizingElement": null,
  2027. "scrollX": 0,
  2028. "scrollY": 0,
  2029. "scrolledOutside": false,
  2030. "selectedElementIds": Object {
  2031. "id0": true,
  2032. },
  2033. "selectionElement": null,
  2034. "shouldCacheIgnoreZoom": false,
  2035. "viewBackgroundColor": "#ffffff",
  2036. "zoom": 1,
  2037. }
  2038. `;
  2039. exports[`regression tests hotkey 3 selects diamond tool: [end of test] element 0 1`] = `
  2040. Object {
  2041. "angle": 0,
  2042. "backgroundColor": "transparent",
  2043. "fillStyle": "hachure",
  2044. "height": 10,
  2045. "id": "id0",
  2046. "isDeleted": false,
  2047. "opacity": 100,
  2048. "roughness": 1,
  2049. "seed": 337897,
  2050. "strokeColor": "#000000",
  2051. "strokeWidth": 1,
  2052. "type": "diamond",
  2053. "version": 2,
  2054. "versionNonce": 1278240551,
  2055. "width": 10,
  2056. "x": 10,
  2057. "y": 10,
  2058. }
  2059. `;
  2060. exports[`regression tests hotkey 3 selects diamond tool: [end of test] history 1`] = `
  2061. Object {
  2062. "recording": false,
  2063. "redoStack": Array [],
  2064. "stateHistory": Array [
  2065. Object {
  2066. "appState": Object {
  2067. "currentItemBackgroundColor": "transparent",
  2068. "currentItemFillStyle": "hachure",
  2069. "currentItemFont": "20px Virgil",
  2070. "currentItemOpacity": 100,
  2071. "currentItemRoughness": 1,
  2072. "currentItemStrokeColor": "#000000",
  2073. "currentItemStrokeWidth": 1,
  2074. "exportBackground": true,
  2075. "name": "excalidraw-201933152653",
  2076. "viewBackgroundColor": "#ffffff",
  2077. },
  2078. "elements": Array [
  2079. Object {
  2080. "angle": 0,
  2081. "backgroundColor": "transparent",
  2082. "fillStyle": "hachure",
  2083. "height": 10,
  2084. "id": "id0",
  2085. "isDeleted": false,
  2086. "opacity": 100,
  2087. "roughness": 1,
  2088. "seed": 337897,
  2089. "strokeColor": "#000000",
  2090. "strokeWidth": 1,
  2091. "type": "diamond",
  2092. "version": 3,
  2093. "versionNonce": 1278240551,
  2094. "width": 10,
  2095. "x": 10,
  2096. "y": 10,
  2097. },
  2098. ],
  2099. },
  2100. ],
  2101. }
  2102. `;
  2103. exports[`regression tests hotkey 3 selects diamond tool: [end of test] number of elements 1`] = `1`;
  2104. exports[`regression tests hotkey 3 selects diamond tool: [end of test] number of renders 1`] = `6`;
  2105. exports[`regression tests hotkey 4 selects ellipse tool: [end of test] appState 1`] = `
  2106. Object {
  2107. "collaborators": Map {},
  2108. "currentItemBackgroundColor": "transparent",
  2109. "currentItemFillStyle": "hachure",
  2110. "currentItemFont": "20px Virgil",
  2111. "currentItemOpacity": 100,
  2112. "currentItemRoughness": 1,
  2113. "currentItemStrokeColor": "#000000",
  2114. "currentItemStrokeWidth": 1,
  2115. "cursorX": 0,
  2116. "cursorY": 0,
  2117. "draggingElement": null,
  2118. "editingElement": null,
  2119. "elementLocked": false,
  2120. "elementType": "selection",
  2121. "errorMessage": null,
  2122. "exportBackground": true,
  2123. "isCollaborating": false,
  2124. "isLoading": false,
  2125. "isResizing": false,
  2126. "isRotating": false,
  2127. "lastPointerDownWith": "mouse",
  2128. "multiElement": null,
  2129. "name": "excalidraw-201933152653",
  2130. "openMenu": null,
  2131. "resizingElement": null,
  2132. "scrollX": 0,
  2133. "scrollY": 0,
  2134. "scrolledOutside": false,
  2135. "selectedElementIds": Object {
  2136. "id0": true,
  2137. },
  2138. "selectionElement": null,
  2139. "shouldCacheIgnoreZoom": false,
  2140. "viewBackgroundColor": "#ffffff",
  2141. "zoom": 1,
  2142. }
  2143. `;
  2144. exports[`regression tests hotkey 4 selects ellipse tool: [end of test] element 0 1`] = `
  2145. Object {
  2146. "angle": 0,
  2147. "backgroundColor": "transparent",
  2148. "fillStyle": "hachure",
  2149. "height": 10,
  2150. "id": "id0",
  2151. "isDeleted": false,
  2152. "opacity": 100,
  2153. "roughness": 1,
  2154. "seed": 337897,
  2155. "strokeColor": "#000000",
  2156. "strokeWidth": 1,
  2157. "type": "ellipse",
  2158. "version": 2,
  2159. "versionNonce": 1278240551,
  2160. "width": 10,
  2161. "x": 10,
  2162. "y": 10,
  2163. }
  2164. `;
  2165. exports[`regression tests hotkey 4 selects ellipse tool: [end of test] history 1`] = `
  2166. Object {
  2167. "recording": false,
  2168. "redoStack": Array [],
  2169. "stateHistory": Array [
  2170. Object {
  2171. "appState": Object {
  2172. "currentItemBackgroundColor": "transparent",
  2173. "currentItemFillStyle": "hachure",
  2174. "currentItemFont": "20px Virgil",
  2175. "currentItemOpacity": 100,
  2176. "currentItemRoughness": 1,
  2177. "currentItemStrokeColor": "#000000",
  2178. "currentItemStrokeWidth": 1,
  2179. "exportBackground": true,
  2180. "name": "excalidraw-201933152653",
  2181. "viewBackgroundColor": "#ffffff",
  2182. },
  2183. "elements": Array [
  2184. Object {
  2185. "angle": 0,
  2186. "backgroundColor": "transparent",
  2187. "fillStyle": "hachure",
  2188. "height": 10,
  2189. "id": "id0",
  2190. "isDeleted": false,
  2191. "opacity": 100,
  2192. "roughness": 1,
  2193. "seed": 337897,
  2194. "strokeColor": "#000000",
  2195. "strokeWidth": 1,
  2196. "type": "ellipse",
  2197. "version": 3,
  2198. "versionNonce": 1278240551,
  2199. "width": 10,
  2200. "x": 10,
  2201. "y": 10,
  2202. },
  2203. ],
  2204. },
  2205. ],
  2206. }
  2207. `;
  2208. exports[`regression tests hotkey 4 selects ellipse tool: [end of test] number of elements 1`] = `1`;
  2209. exports[`regression tests hotkey 4 selects ellipse tool: [end of test] number of renders 1`] = `6`;
  2210. exports[`regression tests hotkey 5 selects arrow tool: [end of test] appState 1`] = `
  2211. Object {
  2212. "collaborators": Map {},
  2213. "currentItemBackgroundColor": "transparent",
  2214. "currentItemFillStyle": "hachure",
  2215. "currentItemFont": "20px Virgil",
  2216. "currentItemOpacity": 100,
  2217. "currentItemRoughness": 1,
  2218. "currentItemStrokeColor": "#000000",
  2219. "currentItemStrokeWidth": 1,
  2220. "cursorX": 0,
  2221. "cursorY": 0,
  2222. "draggingElement": null,
  2223. "editingElement": null,
  2224. "elementLocked": false,
  2225. "elementType": "selection",
  2226. "errorMessage": null,
  2227. "exportBackground": true,
  2228. "isCollaborating": false,
  2229. "isLoading": false,
  2230. "isResizing": false,
  2231. "isRotating": false,
  2232. "lastPointerDownWith": "mouse",
  2233. "multiElement": null,
  2234. "name": "excalidraw-201933152653",
  2235. "openMenu": null,
  2236. "resizingElement": null,
  2237. "scrollX": 0,
  2238. "scrollY": 0,
  2239. "scrolledOutside": false,
  2240. "selectedElementIds": Object {
  2241. "id0": true,
  2242. },
  2243. "selectionElement": null,
  2244. "shouldCacheIgnoreZoom": false,
  2245. "viewBackgroundColor": "#ffffff",
  2246. "zoom": 1,
  2247. }
  2248. `;
  2249. exports[`regression tests hotkey 5 selects arrow tool: [end of test] element 0 1`] = `
  2250. Object {
  2251. "angle": 0,
  2252. "backgroundColor": "transparent",
  2253. "fillStyle": "hachure",
  2254. "height": 10,
  2255. "id": "id0",
  2256. "isDeleted": false,
  2257. "lastCommittedPoint": null,
  2258. "opacity": 100,
  2259. "points": Array [
  2260. Array [
  2261. 0,
  2262. 0,
  2263. ],
  2264. Array [
  2265. 10,
  2266. 10,
  2267. ],
  2268. ],
  2269. "roughness": 1,
  2270. "seed": 337897,
  2271. "strokeColor": "#000000",
  2272. "strokeWidth": 1,
  2273. "type": "arrow",
  2274. "version": 3,
  2275. "versionNonce": 449462985,
  2276. "width": 10,
  2277. "x": 10,
  2278. "y": 10,
  2279. }
  2280. `;
  2281. exports[`regression tests hotkey 5 selects arrow tool: [end of test] history 1`] = `
  2282. Object {
  2283. "recording": false,
  2284. "redoStack": Array [],
  2285. "stateHistory": Array [
  2286. Object {
  2287. "appState": Object {
  2288. "currentItemBackgroundColor": "transparent",
  2289. "currentItemFillStyle": "hachure",
  2290. "currentItemFont": "20px Virgil",
  2291. "currentItemOpacity": 100,
  2292. "currentItemRoughness": 1,
  2293. "currentItemStrokeColor": "#000000",
  2294. "currentItemStrokeWidth": 1,
  2295. "exportBackground": true,
  2296. "name": "excalidraw-201933152653",
  2297. "viewBackgroundColor": "#ffffff",
  2298. },
  2299. "elements": Array [
  2300. Object {
  2301. "angle": 0,
  2302. "backgroundColor": "transparent",
  2303. "fillStyle": "hachure",
  2304. "height": 10,
  2305. "id": "id0",
  2306. "isDeleted": false,
  2307. "lastCommittedPoint": null,
  2308. "opacity": 100,
  2309. "points": Array [
  2310. Array [
  2311. 0,
  2312. 0,
  2313. ],
  2314. Array [
  2315. 10,
  2316. 10,
  2317. ],
  2318. ],
  2319. "roughness": 1,
  2320. "seed": 337897,
  2321. "strokeColor": "#000000",
  2322. "strokeWidth": 1,
  2323. "type": "arrow",
  2324. "version": 4,
  2325. "versionNonce": 449462985,
  2326. "width": 10,
  2327. "x": 10,
  2328. "y": 10,
  2329. },
  2330. ],
  2331. },
  2332. ],
  2333. }
  2334. `;
  2335. exports[`regression tests hotkey 5 selects arrow tool: [end of test] number of elements 1`] = `1`;
  2336. exports[`regression tests hotkey 5 selects arrow tool: [end of test] number of renders 1`] = `6`;
  2337. exports[`regression tests hotkey 6 selects line tool: [end of test] appState 1`] = `
  2338. Object {
  2339. "collaborators": Map {},
  2340. "currentItemBackgroundColor": "transparent",
  2341. "currentItemFillStyle": "hachure",
  2342. "currentItemFont": "20px Virgil",
  2343. "currentItemOpacity": 100,
  2344. "currentItemRoughness": 1,
  2345. "currentItemStrokeColor": "#000000",
  2346. "currentItemStrokeWidth": 1,
  2347. "cursorX": 0,
  2348. "cursorY": 0,
  2349. "draggingElement": null,
  2350. "editingElement": null,
  2351. "elementLocked": false,
  2352. "elementType": "selection",
  2353. "errorMessage": null,
  2354. "exportBackground": true,
  2355. "isCollaborating": false,
  2356. "isLoading": false,
  2357. "isResizing": false,
  2358. "isRotating": false,
  2359. "lastPointerDownWith": "mouse",
  2360. "multiElement": null,
  2361. "name": "excalidraw-201933152653",
  2362. "openMenu": null,
  2363. "resizingElement": null,
  2364. "scrollX": 0,
  2365. "scrollY": 0,
  2366. "scrolledOutside": false,
  2367. "selectedElementIds": Object {
  2368. "id0": true,
  2369. },
  2370. "selectionElement": null,
  2371. "shouldCacheIgnoreZoom": false,
  2372. "viewBackgroundColor": "#ffffff",
  2373. "zoom": 1,
  2374. }
  2375. `;
  2376. exports[`regression tests hotkey 6 selects line tool: [end of test] element 0 1`] = `
  2377. Object {
  2378. "angle": 0,
  2379. "backgroundColor": "transparent",
  2380. "fillStyle": "hachure",
  2381. "height": 10,
  2382. "id": "id0",
  2383. "isDeleted": false,
  2384. "lastCommittedPoint": null,
  2385. "opacity": 100,
  2386. "points": Array [
  2387. Array [
  2388. 0,
  2389. 0,
  2390. ],
  2391. Array [
  2392. 10,
  2393. 10,
  2394. ],
  2395. ],
  2396. "roughness": 1,
  2397. "seed": 337897,
  2398. "strokeColor": "#000000",
  2399. "strokeWidth": 1,
  2400. "type": "line",
  2401. "version": 3,
  2402. "versionNonce": 449462985,
  2403. "width": 10,
  2404. "x": 10,
  2405. "y": 10,
  2406. }
  2407. `;
  2408. exports[`regression tests hotkey 6 selects line tool: [end of test] history 1`] = `
  2409. Object {
  2410. "recording": false,
  2411. "redoStack": Array [],
  2412. "stateHistory": Array [
  2413. Object {
  2414. "appState": Object {
  2415. "currentItemBackgroundColor": "transparent",
  2416. "currentItemFillStyle": "hachure",
  2417. "currentItemFont": "20px Virgil",
  2418. "currentItemOpacity": 100,
  2419. "currentItemRoughness": 1,
  2420. "currentItemStrokeColor": "#000000",
  2421. "currentItemStrokeWidth": 1,
  2422. "exportBackground": true,
  2423. "name": "excalidraw-201933152653",
  2424. "viewBackgroundColor": "#ffffff",
  2425. },
  2426. "elements": Array [
  2427. Object {
  2428. "angle": 0,
  2429. "backgroundColor": "transparent",
  2430. "fillStyle": "hachure",
  2431. "height": 10,
  2432. "id": "id0",
  2433. "isDeleted": false,
  2434. "lastCommittedPoint": null,
  2435. "opacity": 100,
  2436. "points": Array [
  2437. Array [
  2438. 0,
  2439. 0,
  2440. ],
  2441. Array [
  2442. 10,
  2443. 10,
  2444. ],
  2445. ],
  2446. "roughness": 1,
  2447. "seed": 337897,
  2448. "strokeColor": "#000000",
  2449. "strokeWidth": 1,
  2450. "type": "line",
  2451. "version": 4,
  2452. "versionNonce": 449462985,
  2453. "width": 10,
  2454. "x": 10,
  2455. "y": 10,
  2456. },
  2457. ],
  2458. },
  2459. ],
  2460. }
  2461. `;
  2462. exports[`regression tests hotkey 6 selects line tool: [end of test] number of elements 1`] = `1`;
  2463. exports[`regression tests hotkey 6 selects line tool: [end of test] number of renders 1`] = `6`;
  2464. exports[`regression tests hotkey a selects arrow tool: [end of test] appState 1`] = `
  2465. Object {
  2466. "collaborators": Map {},
  2467. "currentItemBackgroundColor": "transparent",
  2468. "currentItemFillStyle": "hachure",
  2469. "currentItemFont": "20px Virgil",
  2470. "currentItemOpacity": 100,
  2471. "currentItemRoughness": 1,
  2472. "currentItemStrokeColor": "#000000",
  2473. "currentItemStrokeWidth": 1,
  2474. "cursorX": 0,
  2475. "cursorY": 0,
  2476. "draggingElement": null,
  2477. "editingElement": null,
  2478. "elementLocked": false,
  2479. "elementType": "selection",
  2480. "errorMessage": null,
  2481. "exportBackground": true,
  2482. "isCollaborating": false,
  2483. "isLoading": false,
  2484. "isResizing": false,
  2485. "isRotating": false,
  2486. "lastPointerDownWith": "mouse",
  2487. "multiElement": null,
  2488. "name": "excalidraw-201933152653",
  2489. "openMenu": null,
  2490. "resizingElement": null,
  2491. "scrollX": 0,
  2492. "scrollY": 0,
  2493. "scrolledOutside": false,
  2494. "selectedElementIds": Object {
  2495. "id0": true,
  2496. },
  2497. "selectionElement": null,
  2498. "shouldCacheIgnoreZoom": false,
  2499. "viewBackgroundColor": "#ffffff",
  2500. "zoom": 1,
  2501. }
  2502. `;
  2503. exports[`regression tests hotkey a selects arrow tool: [end of test] element 0 1`] = `
  2504. Object {
  2505. "angle": 0,
  2506. "backgroundColor": "transparent",
  2507. "fillStyle": "hachure",
  2508. "height": 10,
  2509. "id": "id0",
  2510. "isDeleted": false,
  2511. "lastCommittedPoint": null,
  2512. "opacity": 100,
  2513. "points": Array [
  2514. Array [
  2515. 0,
  2516. 0,
  2517. ],
  2518. Array [
  2519. 10,
  2520. 10,
  2521. ],
  2522. ],
  2523. "roughness": 1,
  2524. "seed": 337897,
  2525. "strokeColor": "#000000",
  2526. "strokeWidth": 1,
  2527. "type": "arrow",
  2528. "version": 3,
  2529. "versionNonce": 449462985,
  2530. "width": 10,
  2531. "x": 10,
  2532. "y": 10,
  2533. }
  2534. `;
  2535. exports[`regression tests hotkey a selects arrow tool: [end of test] history 1`] = `
  2536. Object {
  2537. "recording": false,
  2538. "redoStack": Array [],
  2539. "stateHistory": Array [
  2540. Object {
  2541. "appState": Object {
  2542. "currentItemBackgroundColor": "transparent",
  2543. "currentItemFillStyle": "hachure",
  2544. "currentItemFont": "20px Virgil",
  2545. "currentItemOpacity": 100,
  2546. "currentItemRoughness": 1,
  2547. "currentItemStrokeColor": "#000000",
  2548. "currentItemStrokeWidth": 1,
  2549. "exportBackground": true,
  2550. "name": "excalidraw-201933152653",
  2551. "viewBackgroundColor": "#ffffff",
  2552. },
  2553. "elements": Array [
  2554. Object {
  2555. "angle": 0,
  2556. "backgroundColor": "transparent",
  2557. "fillStyle": "hachure",
  2558. "height": 10,
  2559. "id": "id0",
  2560. "isDeleted": false,
  2561. "lastCommittedPoint": null,
  2562. "opacity": 100,
  2563. "points": Array [
  2564. Array [
  2565. 0,
  2566. 0,
  2567. ],
  2568. Array [
  2569. 10,
  2570. 10,
  2571. ],
  2572. ],
  2573. "roughness": 1,
  2574. "seed": 337897,
  2575. "strokeColor": "#000000",
  2576. "strokeWidth": 1,
  2577. "type": "arrow",
  2578. "version": 4,
  2579. "versionNonce": 449462985,
  2580. "width": 10,
  2581. "x": 10,
  2582. "y": 10,
  2583. },
  2584. ],
  2585. },
  2586. ],
  2587. }
  2588. `;
  2589. exports[`regression tests hotkey a selects arrow tool: [end of test] number of elements 1`] = `1`;
  2590. exports[`regression tests hotkey a selects arrow tool: [end of test] number of renders 1`] = `6`;
  2591. exports[`regression tests hotkey d selects diamond tool: [end of test] appState 1`] = `
  2592. Object {
  2593. "collaborators": Map {},
  2594. "currentItemBackgroundColor": "transparent",
  2595. "currentItemFillStyle": "hachure",
  2596. "currentItemFont": "20px Virgil",
  2597. "currentItemOpacity": 100,
  2598. "currentItemRoughness": 1,
  2599. "currentItemStrokeColor": "#000000",
  2600. "currentItemStrokeWidth": 1,
  2601. "cursorX": 0,
  2602. "cursorY": 0,
  2603. "draggingElement": null,
  2604. "editingElement": null,
  2605. "elementLocked": false,
  2606. "elementType": "selection",
  2607. "errorMessage": null,
  2608. "exportBackground": true,
  2609. "isCollaborating": false,
  2610. "isLoading": false,
  2611. "isResizing": false,
  2612. "isRotating": false,
  2613. "lastPointerDownWith": "mouse",
  2614. "multiElement": null,
  2615. "name": "excalidraw-201933152653",
  2616. "openMenu": null,
  2617. "resizingElement": null,
  2618. "scrollX": 0,
  2619. "scrollY": 0,
  2620. "scrolledOutside": false,
  2621. "selectedElementIds": Object {
  2622. "id0": true,
  2623. },
  2624. "selectionElement": null,
  2625. "shouldCacheIgnoreZoom": false,
  2626. "viewBackgroundColor": "#ffffff",
  2627. "zoom": 1,
  2628. }
  2629. `;
  2630. exports[`regression tests hotkey d selects diamond tool: [end of test] element 0 1`] = `
  2631. Object {
  2632. "angle": 0,
  2633. "backgroundColor": "transparent",
  2634. "fillStyle": "hachure",
  2635. "height": 10,
  2636. "id": "id0",
  2637. "isDeleted": false,
  2638. "opacity": 100,
  2639. "roughness": 1,
  2640. "seed": 337897,
  2641. "strokeColor": "#000000",
  2642. "strokeWidth": 1,
  2643. "type": "diamond",
  2644. "version": 2,
  2645. "versionNonce": 1278240551,
  2646. "width": 10,
  2647. "x": 10,
  2648. "y": 10,
  2649. }
  2650. `;
  2651. exports[`regression tests hotkey d selects diamond tool: [end of test] history 1`] = `
  2652. Object {
  2653. "recording": false,
  2654. "redoStack": Array [],
  2655. "stateHistory": Array [
  2656. Object {
  2657. "appState": Object {
  2658. "currentItemBackgroundColor": "transparent",
  2659. "currentItemFillStyle": "hachure",
  2660. "currentItemFont": "20px Virgil",
  2661. "currentItemOpacity": 100,
  2662. "currentItemRoughness": 1,
  2663. "currentItemStrokeColor": "#000000",
  2664. "currentItemStrokeWidth": 1,
  2665. "exportBackground": true,
  2666. "name": "excalidraw-201933152653",
  2667. "viewBackgroundColor": "#ffffff",
  2668. },
  2669. "elements": Array [
  2670. Object {
  2671. "angle": 0,
  2672. "backgroundColor": "transparent",
  2673. "fillStyle": "hachure",
  2674. "height": 10,
  2675. "id": "id0",
  2676. "isDeleted": false,
  2677. "opacity": 100,
  2678. "roughness": 1,
  2679. "seed": 337897,
  2680. "strokeColor": "#000000",
  2681. "strokeWidth": 1,
  2682. "type": "diamond",
  2683. "version": 3,
  2684. "versionNonce": 1278240551,
  2685. "width": 10,
  2686. "x": 10,
  2687. "y": 10,
  2688. },
  2689. ],
  2690. },
  2691. ],
  2692. }
  2693. `;
  2694. exports[`regression tests hotkey d selects diamond tool: [end of test] number of elements 1`] = `1`;
  2695. exports[`regression tests hotkey d selects diamond tool: [end of test] number of renders 1`] = `6`;
  2696. exports[`regression tests hotkey e selects ellipse tool: [end of test] appState 1`] = `
  2697. Object {
  2698. "collaborators": Map {},
  2699. "currentItemBackgroundColor": "transparent",
  2700. "currentItemFillStyle": "hachure",
  2701. "currentItemFont": "20px Virgil",
  2702. "currentItemOpacity": 100,
  2703. "currentItemRoughness": 1,
  2704. "currentItemStrokeColor": "#000000",
  2705. "currentItemStrokeWidth": 1,
  2706. "cursorX": 0,
  2707. "cursorY": 0,
  2708. "draggingElement": null,
  2709. "editingElement": null,
  2710. "elementLocked": false,
  2711. "elementType": "selection",
  2712. "errorMessage": null,
  2713. "exportBackground": true,
  2714. "isCollaborating": false,
  2715. "isLoading": false,
  2716. "isResizing": false,
  2717. "isRotating": false,
  2718. "lastPointerDownWith": "mouse",
  2719. "multiElement": null,
  2720. "name": "excalidraw-201933152653",
  2721. "openMenu": null,
  2722. "resizingElement": null,
  2723. "scrollX": 0,
  2724. "scrollY": 0,
  2725. "scrolledOutside": false,
  2726. "selectedElementIds": Object {
  2727. "id0": true,
  2728. },
  2729. "selectionElement": null,
  2730. "shouldCacheIgnoreZoom": false,
  2731. "viewBackgroundColor": "#ffffff",
  2732. "zoom": 1,
  2733. }
  2734. `;
  2735. exports[`regression tests hotkey e selects ellipse tool: [end of test] element 0 1`] = `
  2736. Object {
  2737. "angle": 0,
  2738. "backgroundColor": "transparent",
  2739. "fillStyle": "hachure",
  2740. "height": 10,
  2741. "id": "id0",
  2742. "isDeleted": false,
  2743. "opacity": 100,
  2744. "roughness": 1,
  2745. "seed": 337897,
  2746. "strokeColor": "#000000",
  2747. "strokeWidth": 1,
  2748. "type": "ellipse",
  2749. "version": 2,
  2750. "versionNonce": 1278240551,
  2751. "width": 10,
  2752. "x": 10,
  2753. "y": 10,
  2754. }
  2755. `;
  2756. exports[`regression tests hotkey e selects ellipse tool: [end of test] history 1`] = `
  2757. Object {
  2758. "recording": false,
  2759. "redoStack": Array [],
  2760. "stateHistory": Array [
  2761. Object {
  2762. "appState": Object {
  2763. "currentItemBackgroundColor": "transparent",
  2764. "currentItemFillStyle": "hachure",
  2765. "currentItemFont": "20px Virgil",
  2766. "currentItemOpacity": 100,
  2767. "currentItemRoughness": 1,
  2768. "currentItemStrokeColor": "#000000",
  2769. "currentItemStrokeWidth": 1,
  2770. "exportBackground": true,
  2771. "name": "excalidraw-201933152653",
  2772. "viewBackgroundColor": "#ffffff",
  2773. },
  2774. "elements": Array [
  2775. Object {
  2776. "angle": 0,
  2777. "backgroundColor": "transparent",
  2778. "fillStyle": "hachure",
  2779. "height": 10,
  2780. "id": "id0",
  2781. "isDeleted": false,
  2782. "opacity": 100,
  2783. "roughness": 1,
  2784. "seed": 337897,
  2785. "strokeColor": "#000000",
  2786. "strokeWidth": 1,
  2787. "type": "ellipse",
  2788. "version": 3,
  2789. "versionNonce": 1278240551,
  2790. "width": 10,
  2791. "x": 10,
  2792. "y": 10,
  2793. },
  2794. ],
  2795. },
  2796. ],
  2797. }
  2798. `;
  2799. exports[`regression tests hotkey e selects ellipse tool: [end of test] number of elements 1`] = `1`;
  2800. exports[`regression tests hotkey e selects ellipse tool: [end of test] number of renders 1`] = `6`;
  2801. exports[`regression tests hotkey l selects line tool: [end of test] appState 1`] = `
  2802. Object {
  2803. "collaborators": Map {},
  2804. "currentItemBackgroundColor": "transparent",
  2805. "currentItemFillStyle": "hachure",
  2806. "currentItemFont": "20px Virgil",
  2807. "currentItemOpacity": 100,
  2808. "currentItemRoughness": 1,
  2809. "currentItemStrokeColor": "#000000",
  2810. "currentItemStrokeWidth": 1,
  2811. "cursorX": 0,
  2812. "cursorY": 0,
  2813. "draggingElement": null,
  2814. "editingElement": null,
  2815. "elementLocked": false,
  2816. "elementType": "selection",
  2817. "errorMessage": null,
  2818. "exportBackground": true,
  2819. "isCollaborating": false,
  2820. "isLoading": false,
  2821. "isResizing": false,
  2822. "isRotating": false,
  2823. "lastPointerDownWith": "mouse",
  2824. "multiElement": null,
  2825. "name": "excalidraw-201933152653",
  2826. "openMenu": null,
  2827. "resizingElement": null,
  2828. "scrollX": 0,
  2829. "scrollY": 0,
  2830. "scrolledOutside": false,
  2831. "selectedElementIds": Object {
  2832. "id0": true,
  2833. },
  2834. "selectionElement": null,
  2835. "shouldCacheIgnoreZoom": false,
  2836. "viewBackgroundColor": "#ffffff",
  2837. "zoom": 1,
  2838. }
  2839. `;
  2840. exports[`regression tests hotkey l selects line tool: [end of test] element 0 1`] = `
  2841. Object {
  2842. "angle": 0,
  2843. "backgroundColor": "transparent",
  2844. "fillStyle": "hachure",
  2845. "height": 10,
  2846. "id": "id0",
  2847. "isDeleted": false,
  2848. "lastCommittedPoint": null,
  2849. "opacity": 100,
  2850. "points": Array [
  2851. Array [
  2852. 0,
  2853. 0,
  2854. ],
  2855. Array [
  2856. 10,
  2857. 10,
  2858. ],
  2859. ],
  2860. "roughness": 1,
  2861. "seed": 337897,
  2862. "strokeColor": "#000000",
  2863. "strokeWidth": 1,
  2864. "type": "line",
  2865. "version": 3,
  2866. "versionNonce": 449462985,
  2867. "width": 10,
  2868. "x": 10,
  2869. "y": 10,
  2870. }
  2871. `;
  2872. exports[`regression tests hotkey l selects line tool: [end of test] history 1`] = `
  2873. Object {
  2874. "recording": false,
  2875. "redoStack": Array [],
  2876. "stateHistory": Array [
  2877. Object {
  2878. "appState": Object {
  2879. "currentItemBackgroundColor": "transparent",
  2880. "currentItemFillStyle": "hachure",
  2881. "currentItemFont": "20px Virgil",
  2882. "currentItemOpacity": 100,
  2883. "currentItemRoughness": 1,
  2884. "currentItemStrokeColor": "#000000",
  2885. "currentItemStrokeWidth": 1,
  2886. "exportBackground": true,
  2887. "name": "excalidraw-201933152653",
  2888. "viewBackgroundColor": "#ffffff",
  2889. },
  2890. "elements": Array [
  2891. Object {
  2892. "angle": 0,
  2893. "backgroundColor": "transparent",
  2894. "fillStyle": "hachure",
  2895. "height": 10,
  2896. "id": "id0",
  2897. "isDeleted": false,
  2898. "lastCommittedPoint": null,
  2899. "opacity": 100,
  2900. "points": Array [
  2901. Array [
  2902. 0,
  2903. 0,
  2904. ],
  2905. Array [
  2906. 10,
  2907. 10,
  2908. ],
  2909. ],
  2910. "roughness": 1,
  2911. "seed": 337897,
  2912. "strokeColor": "#000000",
  2913. "strokeWidth": 1,
  2914. "type": "line",
  2915. "version": 4,
  2916. "versionNonce": 449462985,
  2917. "width": 10,
  2918. "x": 10,
  2919. "y": 10,
  2920. },
  2921. ],
  2922. },
  2923. ],
  2924. }
  2925. `;
  2926. exports[`regression tests hotkey l selects line tool: [end of test] number of elements 1`] = `1`;
  2927. exports[`regression tests hotkey l selects line tool: [end of test] number of renders 1`] = `6`;
  2928. exports[`regression tests hotkey r selects rectangle tool: [end of test] appState 1`] = `
  2929. Object {
  2930. "collaborators": Map {},
  2931. "currentItemBackgroundColor": "transparent",
  2932. "currentItemFillStyle": "hachure",
  2933. "currentItemFont": "20px Virgil",
  2934. "currentItemOpacity": 100,
  2935. "currentItemRoughness": 1,
  2936. "currentItemStrokeColor": "#000000",
  2937. "currentItemStrokeWidth": 1,
  2938. "cursorX": 0,
  2939. "cursorY": 0,
  2940. "draggingElement": null,
  2941. "editingElement": null,
  2942. "elementLocked": false,
  2943. "elementType": "selection",
  2944. "errorMessage": null,
  2945. "exportBackground": true,
  2946. "isCollaborating": false,
  2947. "isLoading": false,
  2948. "isResizing": false,
  2949. "isRotating": false,
  2950. "lastPointerDownWith": "mouse",
  2951. "multiElement": null,
  2952. "name": "excalidraw-201933152653",
  2953. "openMenu": null,
  2954. "resizingElement": null,
  2955. "scrollX": 0,
  2956. "scrollY": 0,
  2957. "scrolledOutside": false,
  2958. "selectedElementIds": Object {
  2959. "id0": true,
  2960. },
  2961. "selectionElement": null,
  2962. "shouldCacheIgnoreZoom": false,
  2963. "viewBackgroundColor": "#ffffff",
  2964. "zoom": 1,
  2965. }
  2966. `;
  2967. exports[`regression tests hotkey r selects rectangle tool: [end of test] element 0 1`] = `
  2968. Object {
  2969. "angle": 0,
  2970. "backgroundColor": "transparent",
  2971. "fillStyle": "hachure",
  2972. "height": 10,
  2973. "id": "id0",
  2974. "isDeleted": false,
  2975. "opacity": 100,
  2976. "roughness": 1,
  2977. "seed": 337897,
  2978. "strokeColor": "#000000",
  2979. "strokeWidth": 1,
  2980. "type": "rectangle",
  2981. "version": 2,
  2982. "versionNonce": 1278240551,
  2983. "width": 10,
  2984. "x": 10,
  2985. "y": 10,
  2986. }
  2987. `;
  2988. exports[`regression tests hotkey r selects rectangle tool: [end of test] history 1`] = `
  2989. Object {
  2990. "recording": false,
  2991. "redoStack": Array [],
  2992. "stateHistory": Array [
  2993. Object {
  2994. "appState": Object {
  2995. "currentItemBackgroundColor": "transparent",
  2996. "currentItemFillStyle": "hachure",
  2997. "currentItemFont": "20px Virgil",
  2998. "currentItemOpacity": 100,
  2999. "currentItemRoughness": 1,
  3000. "currentItemStrokeColor": "#000000",
  3001. "currentItemStrokeWidth": 1,
  3002. "exportBackground": true,
  3003. "name": "excalidraw-201933152653",
  3004. "viewBackgroundColor": "#ffffff",
  3005. },
  3006. "elements": Array [
  3007. Object {
  3008. "angle": 0,
  3009. "backgroundColor": "transparent",
  3010. "fillStyle": "hachure",
  3011. "height": 10,
  3012. "id": "id0",
  3013. "isDeleted": false,
  3014. "opacity": 100,
  3015. "roughness": 1,
  3016. "seed": 337897,
  3017. "strokeColor": "#000000",
  3018. "strokeWidth": 1,
  3019. "type": "rectangle",
  3020. "version": 3,
  3021. "versionNonce": 1278240551,
  3022. "width": 10,
  3023. "x": 10,
  3024. "y": 10,
  3025. },
  3026. ],
  3027. },
  3028. ],
  3029. }
  3030. `;
  3031. exports[`regression tests hotkey r selects rectangle tool: [end of test] number of elements 1`] = `1`;
  3032. exports[`regression tests hotkey r selects rectangle tool: [end of test] number of renders 1`] = `6`;
  3033. exports[`regression tests pinch-to-zoom works: [end of test] appState 1`] = `
  3034. Object {
  3035. "collaborators": Map {},
  3036. "currentItemBackgroundColor": "transparent",
  3037. "currentItemFillStyle": "hachure",
  3038. "currentItemFont": "20px Virgil",
  3039. "currentItemOpacity": 100,
  3040. "currentItemRoughness": 1,
  3041. "currentItemStrokeColor": "#000000",
  3042. "currentItemStrokeWidth": 1,
  3043. "cursorX": 0,
  3044. "cursorY": 0,
  3045. "draggingElement": null,
  3046. "editingElement": null,
  3047. "elementLocked": false,
  3048. "elementType": "selection",
  3049. "errorMessage": null,
  3050. "exportBackground": true,
  3051. "isCollaborating": false,
  3052. "isLoading": false,
  3053. "isResizing": false,
  3054. "isRotating": false,
  3055. "lastPointerDownWith": "touch",
  3056. "multiElement": null,
  3057. "name": "excalidraw-201933152653",
  3058. "openMenu": null,
  3059. "resizingElement": null,
  3060. "scrollX": -6,
  3061. "scrollY": 0,
  3062. "scrolledOutside": false,
  3063. "selectedElementIds": Object {
  3064. "id0": true,
  3065. },
  3066. "selectionElement": null,
  3067. "shouldCacheIgnoreZoom": true,
  3068. "viewBackgroundColor": "#ffffff",
  3069. "zoom": 1,
  3070. }
  3071. `;
  3072. exports[`regression tests pinch-to-zoom works: [end of test] history 1`] = `
  3073. Object {
  3074. "recording": false,
  3075. "redoStack": Array [],
  3076. "stateHistory": Array [],
  3077. }
  3078. `;
  3079. exports[`regression tests pinch-to-zoom works: [end of test] number of elements 1`] = `0`;
  3080. exports[`regression tests pinch-to-zoom works: [end of test] number of renders 1`] = `8`;
  3081. exports[`regression tests resize an element, trying every resize handle: [end of test] appState 1`] = `
  3082. Object {
  3083. "collaborators": Map {},
  3084. "currentItemBackgroundColor": "transparent",
  3085. "currentItemFillStyle": "hachure",
  3086. "currentItemFont": "20px Virgil",
  3087. "currentItemOpacity": 100,
  3088. "currentItemRoughness": 1,
  3089. "currentItemStrokeColor": "#000000",
  3090. "currentItemStrokeWidth": 1,
  3091. "cursorX": 0,
  3092. "cursorY": 0,
  3093. "draggingElement": null,
  3094. "editingElement": null,
  3095. "elementLocked": false,
  3096. "elementType": "selection",
  3097. "errorMessage": null,
  3098. "exportBackground": true,
  3099. "isCollaborating": false,
  3100. "isLoading": false,
  3101. "isResizing": false,
  3102. "isRotating": false,
  3103. "lastPointerDownWith": "mouse",
  3104. "multiElement": null,
  3105. "name": "excalidraw-201933152653",
  3106. "openMenu": null,
  3107. "resizingElement": null,
  3108. "scrollX": 0,
  3109. "scrollY": 0,
  3110. "scrolledOutside": false,
  3111. "selectedElementIds": Object {
  3112. "id0": true,
  3113. "id1": true,
  3114. "id10": true,
  3115. "id11": true,
  3116. "id12": true,
  3117. "id13": true,
  3118. "id14": true,
  3119. "id15": true,
  3120. "id16": true,
  3121. "id2": true,
  3122. "id3": true,
  3123. "id4": true,
  3124. "id5": true,
  3125. "id6": true,
  3126. "id7": true,
  3127. "id8": true,
  3128. "id9": true,
  3129. },
  3130. "selectionElement": null,
  3131. "shouldCacheIgnoreZoom": false,
  3132. "viewBackgroundColor": "#ffffff",
  3133. "zoom": 1,
  3134. }
  3135. `;
  3136. exports[`regression tests resize an element, trying every resize handle: [end of test] element 0 1`] = `
  3137. Object {
  3138. "angle": 0,
  3139. "backgroundColor": "transparent",
  3140. "fillStyle": "hachure",
  3141. "height": 10,
  3142. "id": "id0",
  3143. "isDeleted": false,
  3144. "opacity": 100,
  3145. "roughness": 1,
  3146. "seed": 337897,
  3147. "strokeColor": "#000000",
  3148. "strokeWidth": 1,
  3149. "type": "rectangle",
  3150. "version": 34,
  3151. "versionNonce": 1388251943,
  3152. "width": 10,
  3153. "x": 10,
  3154. "y": 10,
  3155. }
  3156. `;
  3157. exports[`regression tests resize an element, trying every resize handle: [end of test] history 1`] = `
  3158. Object {
  3159. "recording": false,
  3160. "redoStack": Array [],
  3161. "stateHistory": Array [
  3162. Object {
  3163. "appState": Object {
  3164. "currentItemBackgroundColor": "transparent",
  3165. "currentItemFillStyle": "hachure",
  3166. "currentItemFont": "20px Virgil",
  3167. "currentItemOpacity": 100,
  3168. "currentItemRoughness": 1,
  3169. "currentItemStrokeColor": "#000000",
  3170. "currentItemStrokeWidth": 1,
  3171. "exportBackground": true,
  3172. "name": "excalidraw-201933152653",
  3173. "viewBackgroundColor": "#ffffff",
  3174. },
  3175. "elements": Array [
  3176. Object {
  3177. "angle": 0,
  3178. "backgroundColor": "transparent",
  3179. "fillStyle": "hachure",
  3180. "height": 10,
  3181. "id": "id0",
  3182. "isDeleted": false,
  3183. "opacity": 100,
  3184. "roughness": 1,
  3185. "seed": 337897,
  3186. "strokeColor": "#000000",
  3187. "strokeWidth": 1,
  3188. "type": "rectangle",
  3189. "version": 3,
  3190. "versionNonce": 1278240551,
  3191. "width": 10,
  3192. "x": 10,
  3193. "y": 10,
  3194. },
  3195. ],
  3196. },
  3197. Object {
  3198. "appState": Object {
  3199. "currentItemBackgroundColor": "transparent",
  3200. "currentItemFillStyle": "hachure",
  3201. "currentItemFont": "20px Virgil",
  3202. "currentItemOpacity": 100,
  3203. "currentItemRoughness": 1,
  3204. "currentItemStrokeColor": "#000000",
  3205. "currentItemStrokeWidth": 1,
  3206. "exportBackground": true,
  3207. "name": "excalidraw-201933152653",
  3208. "viewBackgroundColor": "#ffffff",
  3209. },
  3210. "elements": Array [
  3211. Object {
  3212. "angle": 0,
  3213. "backgroundColor": "transparent",
  3214. "fillStyle": "hachure",
  3215. "height": 15,
  3216. "id": "id0",
  3217. "isDeleted": false,
  3218. "opacity": 100,
  3219. "roughness": 1,
  3220. "seed": 337897,
  3221. "strokeColor": "#000000",
  3222. "strokeWidth": 1,
  3223. "type": "rectangle",
  3224. "version": 5,
  3225. "versionNonce": 2019559783,
  3226. "width": 15,
  3227. "x": 5,
  3228. "y": 5,
  3229. },
  3230. ],
  3231. },
  3232. Object {
  3233. "appState": Object {
  3234. "currentItemBackgroundColor": "transparent",
  3235. "currentItemFillStyle": "hachure",
  3236. "currentItemFont": "20px Virgil",
  3237. "currentItemOpacity": 100,
  3238. "currentItemRoughness": 1,
  3239. "currentItemStrokeColor": "#000000",
  3240. "currentItemStrokeWidth": 1,
  3241. "exportBackground": true,
  3242. "name": "excalidraw-201933152653",
  3243. "viewBackgroundColor": "#ffffff",
  3244. },
  3245. "elements": Array [
  3246. Object {
  3247. "angle": 0,
  3248. "backgroundColor": "transparent",
  3249. "fillStyle": "hachure",
  3250. "height": 10,
  3251. "id": "id0",
  3252. "isDeleted": false,
  3253. "opacity": 100,
  3254. "roughness": 1,
  3255. "seed": 337897,
  3256. "strokeColor": "#000000",
  3257. "strokeWidth": 1,
  3258. "type": "rectangle",
  3259. "version": 7,
  3260. "versionNonce": 238820263,
  3261. "width": 10,
  3262. "x": 10,
  3263. "y": 10,
  3264. },
  3265. ],
  3266. },
  3267. Object {
  3268. "appState": Object {
  3269. "currentItemBackgroundColor": "transparent",
  3270. "currentItemFillStyle": "hachure",
  3271. "currentItemFont": "20px Virgil",
  3272. "currentItemOpacity": 100,
  3273. "currentItemRoughness": 1,
  3274. "currentItemStrokeColor": "#000000",
  3275. "currentItemStrokeWidth": 1,
  3276. "exportBackground": true,
  3277. "name": "excalidraw-201933152653",
  3278. "viewBackgroundColor": "#ffffff",
  3279. },
  3280. "elements": Array [
  3281. Object {
  3282. "angle": 0,
  3283. "backgroundColor": "transparent",
  3284. "fillStyle": "hachure",
  3285. "height": 5,
  3286. "id": "id0",
  3287. "isDeleted": false,
  3288. "opacity": 100,
  3289. "roughness": 1,
  3290. "seed": 337897,
  3291. "strokeColor": "#000000",
  3292. "strokeWidth": 1,
  3293. "type": "rectangle",
  3294. "version": 9,
  3295. "versionNonce": 23633383,
  3296. "width": 5,
  3297. "x": 15,
  3298. "y": 15,
  3299. },
  3300. ],
  3301. },
  3302. Object {
  3303. "appState": Object {
  3304. "currentItemBackgroundColor": "transparent",
  3305. "currentItemFillStyle": "hachure",
  3306. "currentItemFont": "20px Virgil",
  3307. "currentItemOpacity": 100,
  3308. "currentItemRoughness": 1,
  3309. "currentItemStrokeColor": "#000000",
  3310. "currentItemStrokeWidth": 1,
  3311. "exportBackground": true,
  3312. "name": "excalidraw-201933152653",
  3313. "viewBackgroundColor": "#ffffff",
  3314. },
  3315. "elements": Array [
  3316. Object {
  3317. "angle": 0,
  3318. "backgroundColor": "transparent",
  3319. "fillStyle": "hachure",
  3320. "height": 10,
  3321. "id": "id0",
  3322. "isDeleted": false,
  3323. "opacity": 100,
  3324. "roughness": 1,
  3325. "seed": 337897,
  3326. "strokeColor": "#000000",
  3327. "strokeWidth": 1,
  3328. "type": "rectangle",
  3329. "version": 11,
  3330. "versionNonce": 747212839,
  3331. "width": 10,
  3332. "x": 10,
  3333. "y": 10,
  3334. },
  3335. ],
  3336. },
  3337. Object {
  3338. "appState": Object {
  3339. "currentItemBackgroundColor": "transparent",
  3340. "currentItemFillStyle": "hachure",
  3341. "currentItemFont": "20px Virgil",
  3342. "currentItemOpacity": 100,
  3343. "currentItemRoughness": 1,
  3344. "currentItemStrokeColor": "#000000",
  3345. "currentItemStrokeWidth": 1,
  3346. "exportBackground": true,
  3347. "name": "excalidraw-201933152653",
  3348. "viewBackgroundColor": "#ffffff",
  3349. },
  3350. "elements": Array [
  3351. Object {
  3352. "angle": 0,
  3353. "backgroundColor": "transparent",
  3354. "fillStyle": "hachure",
  3355. "height": 15,
  3356. "id": "id0",
  3357. "isDeleted": false,
  3358. "opacity": 100,
  3359. "roughness": 1,
  3360. "seed": 337897,
  3361. "strokeColor": "#000000",
  3362. "strokeWidth": 1,
  3363. "type": "rectangle",
  3364. "version": 13,
  3365. "versionNonce": 289600103,
  3366. "width": 5,
  3367. "x": 10,
  3368. "y": 5,
  3369. },
  3370. ],
  3371. },
  3372. Object {
  3373. "appState": Object {
  3374. "currentItemBackgroundColor": "transparent",
  3375. "currentItemFillStyle": "hachure",
  3376. "currentItemFont": "20px Virgil",
  3377. "currentItemOpacity": 100,
  3378. "currentItemRoughness": 1,
  3379. "currentItemStrokeColor": "#000000",
  3380. "currentItemStrokeWidth": 1,
  3381. "exportBackground": true,
  3382. "name": "excalidraw-201933152653",
  3383. "viewBackgroundColor": "#ffffff",
  3384. },
  3385. "elements": Array [
  3386. Object {
  3387. "angle": 0,
  3388. "backgroundColor": "transparent",
  3389. "fillStyle": "hachure",
  3390. "height": 10,
  3391. "id": "id0",
  3392. "isDeleted": false,
  3393. "opacity": 100,
  3394. "roughness": 1,
  3395. "seed": 337897,
  3396. "strokeColor": "#000000",
  3397. "strokeWidth": 1,
  3398. "type": "rectangle",
  3399. "version": 15,
  3400. "versionNonce": 406373543,
  3401. "width": 10,
  3402. "x": 10,
  3403. "y": 10,
  3404. },
  3405. ],
  3406. },
  3407. Object {
  3408. "appState": Object {
  3409. "currentItemBackgroundColor": "transparent",
  3410. "currentItemFillStyle": "hachure",
  3411. "currentItemFont": "20px Virgil",
  3412. "currentItemOpacity": 100,
  3413. "currentItemRoughness": 1,
  3414. "currentItemStrokeColor": "#000000",
  3415. "currentItemStrokeWidth": 1,
  3416. "exportBackground": true,
  3417. "name": "excalidraw-201933152653",
  3418. "viewBackgroundColor": "#ffffff",
  3419. },
  3420. "elements": Array [
  3421. Object {
  3422. "angle": 0,
  3423. "backgroundColor": "transparent",
  3424. "fillStyle": "hachure",
  3425. "height": 5,
  3426. "id": "id0",
  3427. "isDeleted": false,
  3428. "opacity": 100,
  3429. "roughness": 1,
  3430. "seed": 337897,
  3431. "strokeColor": "#000000",
  3432. "strokeWidth": 1,
  3433. "type": "rectangle",
  3434. "version": 17,
  3435. "versionNonce": 1359939303,
  3436. "width": 15,
  3437. "x": 10,
  3438. "y": 15,
  3439. },
  3440. ],
  3441. },
  3442. Object {
  3443. "appState": Object {
  3444. "currentItemBackgroundColor": "transparent",
  3445. "currentItemFillStyle": "hachure",
  3446. "currentItemFont": "20px Virgil",
  3447. "currentItemOpacity": 100,
  3448. "currentItemRoughness": 1,
  3449. "currentItemStrokeColor": "#000000",
  3450. "currentItemStrokeWidth": 1,
  3451. "exportBackground": true,
  3452. "name": "excalidraw-201933152653",
  3453. "viewBackgroundColor": "#ffffff",
  3454. },
  3455. "elements": Array [
  3456. Object {
  3457. "angle": 0,
  3458. "backgroundColor": "transparent",
  3459. "fillStyle": "hachure",
  3460. "height": 10,
  3461. "id": "id0",
  3462. "isDeleted": false,
  3463. "opacity": 100,
  3464. "roughness": 1,
  3465. "seed": 337897,
  3466. "strokeColor": "#000000",
  3467. "strokeWidth": 1,
  3468. "type": "rectangle",
  3469. "version": 19,
  3470. "versionNonce": 845789479,
  3471. "width": 10,
  3472. "x": 10,
  3473. "y": 10,
  3474. },
  3475. ],
  3476. },
  3477. Object {
  3478. "appState": Object {
  3479. "currentItemBackgroundColor": "transparent",
  3480. "currentItemFillStyle": "hachure",
  3481. "currentItemFont": "20px Virgil",
  3482. "currentItemOpacity": 100,
  3483. "currentItemRoughness": 1,
  3484. "currentItemStrokeColor": "#000000",
  3485. "currentItemStrokeWidth": 1,
  3486. "exportBackground": true,
  3487. "name": "excalidraw-201933152653",
  3488. "viewBackgroundColor": "#ffffff",
  3489. },
  3490. "elements": Array [
  3491. Object {
  3492. "angle": 0,
  3493. "backgroundColor": "transparent",
  3494. "fillStyle": "hachure",
  3495. "height": 5,
  3496. "id": "id0",
  3497. "isDeleted": false,
  3498. "opacity": 100,
  3499. "roughness": 1,
  3500. "seed": 337897,
  3501. "strokeColor": "#000000",
  3502. "strokeWidth": 1,
  3503. "type": "rectangle",
  3504. "version": 21,
  3505. "versionNonce": 1508694887,
  3506. "width": 15,
  3507. "x": 5,
  3508. "y": 10,
  3509. },
  3510. ],
  3511. },
  3512. Object {
  3513. "appState": Object {
  3514. "currentItemBackgroundColor": "transparent",
  3515. "currentItemFillStyle": "hachure",
  3516. "currentItemFont": "20px Virgil",
  3517. "currentItemOpacity": 100,
  3518. "currentItemRoughness": 1,
  3519. "currentItemStrokeColor": "#000000",
  3520. "currentItemStrokeWidth": 1,
  3521. "exportBackground": true,
  3522. "name": "excalidraw-201933152653",
  3523. "viewBackgroundColor": "#ffffff",
  3524. },
  3525. "elements": Array [
  3526. Object {
  3527. "angle": 0,
  3528. "backgroundColor": "transparent",
  3529. "fillStyle": "hachure",
  3530. "height": 10,
  3531. "id": "id0",
  3532. "isDeleted": false,
  3533. "opacity": 100,
  3534. "roughness": 1,
  3535. "seed": 337897,
  3536. "strokeColor": "#000000",
  3537. "strokeWidth": 1,
  3538. "type": "rectangle",
  3539. "version": 23,
  3540. "versionNonce": 1279028647,
  3541. "width": 10,
  3542. "x": 10,
  3543. "y": 10,
  3544. },
  3545. ],
  3546. },
  3547. Object {
  3548. "appState": Object {
  3549. "currentItemBackgroundColor": "transparent",
  3550. "currentItemFillStyle": "hachure",
  3551. "currentItemFont": "20px Virgil",
  3552. "currentItemOpacity": 100,
  3553. "currentItemRoughness": 1,
  3554. "currentItemStrokeColor": "#000000",
  3555. "currentItemStrokeWidth": 1,
  3556. "exportBackground": true,
  3557. "name": "excalidraw-201933152653",
  3558. "viewBackgroundColor": "#ffffff",
  3559. },
  3560. "elements": Array [
  3561. Object {
  3562. "angle": 0,
  3563. "backgroundColor": "transparent",
  3564. "fillStyle": "hachure",
  3565. "height": 15,
  3566. "id": "id0",
  3567. "isDeleted": false,
  3568. "opacity": 100,
  3569. "roughness": 1,
  3570. "seed": 337897,
  3571. "strokeColor": "#000000",
  3572. "strokeWidth": 1,
  3573. "type": "rectangle",
  3574. "version": 25,
  3575. "versionNonce": 888958951,
  3576. "width": 5,
  3577. "x": 15,
  3578. "y": 10,
  3579. },
  3580. ],
  3581. },
  3582. Object {
  3583. "appState": Object {
  3584. "currentItemBackgroundColor": "transparent",
  3585. "currentItemFillStyle": "hachure",
  3586. "currentItemFont": "20px Virgil",
  3587. "currentItemOpacity": 100,
  3588. "currentItemRoughness": 1,
  3589. "currentItemStrokeColor": "#000000",
  3590. "currentItemStrokeWidth": 1,
  3591. "exportBackground": true,
  3592. "name": "excalidraw-201933152653",
  3593. "viewBackgroundColor": "#ffffff",
  3594. },
  3595. "elements": Array [
  3596. Object {
  3597. "angle": 0,
  3598. "backgroundColor": "transparent",
  3599. "fillStyle": "hachure",
  3600. "height": 10,
  3601. "id": "id0",
  3602. "isDeleted": false,
  3603. "opacity": 100,
  3604. "roughness": 1,
  3605. "seed": 337897,
  3606. "strokeColor": "#000000",
  3607. "strokeWidth": 1,
  3608. "type": "rectangle",
  3609. "version": 27,
  3610. "versionNonce": 651223591,
  3611. "width": 10,
  3612. "x": 10,
  3613. "y": 10,
  3614. },
  3615. ],
  3616. },
  3617. Object {
  3618. "appState": Object {
  3619. "currentItemBackgroundColor": "transparent",
  3620. "currentItemFillStyle": "hachure",
  3621. "currentItemFont": "20px Virgil",
  3622. "currentItemOpacity": 100,
  3623. "currentItemRoughness": 1,
  3624. "currentItemStrokeColor": "#000000",
  3625. "currentItemStrokeWidth": 1,
  3626. "exportBackground": true,
  3627. "name": "excalidraw-201933152653",
  3628. "viewBackgroundColor": "#ffffff",
  3629. },
  3630. "elements": Array [
  3631. Object {
  3632. "angle": 0,
  3633. "backgroundColor": "transparent",
  3634. "fillStyle": "hachure",
  3635. "height": 5,
  3636. "id": "id0",
  3637. "isDeleted": false,
  3638. "opacity": 100,
  3639. "roughness": 1,
  3640. "seed": 337897,
  3641. "strokeColor": "#000000",
  3642. "strokeWidth": 1,
  3643. "type": "rectangle",
  3644. "version": 29,
  3645. "versionNonce": 1532871783,
  3646. "width": 5,
  3647. "x": 10,
  3648. "y": 10,
  3649. },
  3650. ],
  3651. },
  3652. Object {
  3653. "appState": Object {
  3654. "currentItemBackgroundColor": "transparent",
  3655. "currentItemFillStyle": "hachure",
  3656. "currentItemFont": "20px Virgil",
  3657. "currentItemOpacity": 100,
  3658. "currentItemRoughness": 1,
  3659. "currentItemStrokeColor": "#000000",
  3660. "currentItemStrokeWidth": 1,
  3661. "exportBackground": true,
  3662. "name": "excalidraw-201933152653",
  3663. "viewBackgroundColor": "#ffffff",
  3664. },
  3665. "elements": Array [
  3666. Object {
  3667. "angle": 0,
  3668. "backgroundColor": "transparent",
  3669. "fillStyle": "hachure",
  3670. "height": 10,
  3671. "id": "id0",
  3672. "isDeleted": false,
  3673. "opacity": 100,
  3674. "roughness": 1,
  3675. "seed": 337897,
  3676. "strokeColor": "#000000",
  3677. "strokeWidth": 1,
  3678. "type": "rectangle",
  3679. "version": 31,
  3680. "versionNonce": 1934038695,
  3681. "width": 10,
  3682. "x": 10,
  3683. "y": 10,
  3684. },
  3685. ],
  3686. },
  3687. Object {
  3688. "appState": Object {
  3689. "currentItemBackgroundColor": "transparent",
  3690. "currentItemFillStyle": "hachure",
  3691. "currentItemFont": "20px Virgil",
  3692. "currentItemOpacity": 100,
  3693. "currentItemRoughness": 1,
  3694. "currentItemStrokeColor": "#000000",
  3695. "currentItemStrokeWidth": 1,
  3696. "exportBackground": true,
  3697. "name": "excalidraw-201933152653",
  3698. "viewBackgroundColor": "#ffffff",
  3699. },
  3700. "elements": Array [
  3701. Object {
  3702. "angle": 0,
  3703. "backgroundColor": "transparent",
  3704. "fillStyle": "hachure",
  3705. "height": 15,
  3706. "id": "id0",
  3707. "isDeleted": false,
  3708. "opacity": 100,
  3709. "roughness": 1,
  3710. "seed": 337897,
  3711. "strokeColor": "#000000",
  3712. "strokeWidth": 1,
  3713. "type": "rectangle",
  3714. "version": 33,
  3715. "versionNonce": 909170919,
  3716. "width": 15,
  3717. "x": 10,
  3718. "y": 10,
  3719. },
  3720. ],
  3721. },
  3722. Object {
  3723. "appState": Object {
  3724. "currentItemBackgroundColor": "transparent",
  3725. "currentItemFillStyle": "hachure",
  3726. "currentItemFont": "20px Virgil",
  3727. "currentItemOpacity": 100,
  3728. "currentItemRoughness": 1,
  3729. "currentItemStrokeColor": "#000000",
  3730. "currentItemStrokeWidth": 1,
  3731. "exportBackground": true,
  3732. "name": "excalidraw-201933152653",
  3733. "viewBackgroundColor": "#ffffff",
  3734. },
  3735. "elements": Array [
  3736. Object {
  3737. "angle": 0,
  3738. "backgroundColor": "transparent",
  3739. "fillStyle": "hachure",
  3740. "height": 10,
  3741. "id": "id0",
  3742. "isDeleted": false,
  3743. "opacity": 100,
  3744. "roughness": 1,
  3745. "seed": 337897,
  3746. "strokeColor": "#000000",
  3747. "strokeWidth": 1,
  3748. "type": "rectangle",
  3749. "version": 35,
  3750. "versionNonce": 1388251943,
  3751. "width": 10,
  3752. "x": 10,
  3753. "y": 10,
  3754. },
  3755. ],
  3756. },
  3757. ],
  3758. }
  3759. `;
  3760. exports[`regression tests resize an element, trying every resize handle: [end of test] number of elements 1`] = `1`;
  3761. exports[`regression tests resize an element, trying every resize handle: [end of test] number of renders 1`] = `54`;
  3762. exports[`regression tests resize an element, trying every resize handle: [resize handle ne (+5, +5)] appState 1`] = `
  3763. Object {
  3764. "collaborators": Map {},
  3765. "currentItemBackgroundColor": "transparent",
  3766. "currentItemFillStyle": "hachure",
  3767. "currentItemFont": "20px Virgil",
  3768. "currentItemOpacity": 100,
  3769. "currentItemRoughness": 1,
  3770. "currentItemStrokeColor": "#000000",
  3771. "currentItemStrokeWidth": 1,
  3772. "cursorX": 0,
  3773. "cursorY": 0,
  3774. "draggingElement": null,
  3775. "editingElement": null,
  3776. "elementLocked": false,
  3777. "elementType": "selection",
  3778. "errorMessage": null,
  3779. "exportBackground": true,
  3780. "isCollaborating": false,
  3781. "isLoading": false,
  3782. "isResizing": false,
  3783. "isRotating": false,
  3784. "lastPointerDownWith": "mouse",
  3785. "multiElement": null,
  3786. "name": "excalidraw-201933152653",
  3787. "openMenu": null,
  3788. "resizingElement": null,
  3789. "scrollX": 0,
  3790. "scrollY": 0,
  3791. "scrolledOutside": false,
  3792. "selectedElementIds": Object {
  3793. "id0": true,
  3794. "id1": true,
  3795. "id2": true,
  3796. "id3": true,
  3797. "id4": true,
  3798. "id5": true,
  3799. "id6": true,
  3800. "id7": true,
  3801. },
  3802. "selectionElement": null,
  3803. "shouldCacheIgnoreZoom": false,
  3804. "viewBackgroundColor": "#ffffff",
  3805. "zoom": 1,
  3806. }
  3807. `;
  3808. exports[`regression tests resize an element, trying every resize handle: [resize handle ne (+5, +5)] element 0 1`] = `
  3809. Object {
  3810. "angle": 0,
  3811. "backgroundColor": "transparent",
  3812. "fillStyle": "hachure",
  3813. "height": 5,
  3814. "id": "id0",
  3815. "isDeleted": false,
  3816. "opacity": 100,
  3817. "roughness": 1,
  3818. "seed": 337897,
  3819. "strokeColor": "#000000",
  3820. "strokeWidth": 1,
  3821. "type": "rectangle",
  3822. "version": 16,
  3823. "versionNonce": 1359939303,
  3824. "width": 15,
  3825. "x": 10,
  3826. "y": 15,
  3827. }
  3828. `;
  3829. exports[`regression tests resize an element, trying every resize handle: [resize handle ne (+5, +5)] history 1`] = `
  3830. Object {
  3831. "recording": false,
  3832. "redoStack": Array [],
  3833. "stateHistory": Array [
  3834. Object {
  3835. "appState": Object {
  3836. "currentItemBackgroundColor": "transparent",
  3837. "currentItemFillStyle": "hachure",
  3838. "currentItemFont": "20px Virgil",
  3839. "currentItemOpacity": 100,
  3840. "currentItemRoughness": 1,
  3841. "currentItemStrokeColor": "#000000",
  3842. "currentItemStrokeWidth": 1,
  3843. "exportBackground": true,
  3844. "name": "excalidraw-201933152653",
  3845. "viewBackgroundColor": "#ffffff",
  3846. },
  3847. "elements": Array [
  3848. Object {
  3849. "angle": 0,
  3850. "backgroundColor": "transparent",
  3851. "fillStyle": "hachure",
  3852. "height": 10,
  3853. "id": "id0",
  3854. "isDeleted": false,
  3855. "opacity": 100,
  3856. "roughness": 1,
  3857. "seed": 337897,
  3858. "strokeColor": "#000000",
  3859. "strokeWidth": 1,
  3860. "type": "rectangle",
  3861. "version": 3,
  3862. "versionNonce": 1278240551,
  3863. "width": 10,
  3864. "x": 10,
  3865. "y": 10,
  3866. },
  3867. ],
  3868. },
  3869. Object {
  3870. "appState": Object {
  3871. "currentItemBackgroundColor": "transparent",
  3872. "currentItemFillStyle": "hachure",
  3873. "currentItemFont": "20px Virgil",
  3874. "currentItemOpacity": 100,
  3875. "currentItemRoughness": 1,
  3876. "currentItemStrokeColor": "#000000",
  3877. "currentItemStrokeWidth": 1,
  3878. "exportBackground": true,
  3879. "name": "excalidraw-201933152653",
  3880. "viewBackgroundColor": "#ffffff",
  3881. },
  3882. "elements": Array [
  3883. Object {
  3884. "angle": 0,
  3885. "backgroundColor": "transparent",
  3886. "fillStyle": "hachure",
  3887. "height": 15,
  3888. "id": "id0",
  3889. "isDeleted": false,
  3890. "opacity": 100,
  3891. "roughness": 1,
  3892. "seed": 337897,
  3893. "strokeColor": "#000000",
  3894. "strokeWidth": 1,
  3895. "type": "rectangle",
  3896. "version": 5,
  3897. "versionNonce": 2019559783,
  3898. "width": 15,
  3899. "x": 5,
  3900. "y": 5,
  3901. },
  3902. ],
  3903. },
  3904. Object {
  3905. "appState": Object {
  3906. "currentItemBackgroundColor": "transparent",
  3907. "currentItemFillStyle": "hachure",
  3908. "currentItemFont": "20px Virgil",
  3909. "currentItemOpacity": 100,
  3910. "currentItemRoughness": 1,
  3911. "currentItemStrokeColor": "#000000",
  3912. "currentItemStrokeWidth": 1,
  3913. "exportBackground": true,
  3914. "name": "excalidraw-201933152653",
  3915. "viewBackgroundColor": "#ffffff",
  3916. },
  3917. "elements": Array [
  3918. Object {
  3919. "angle": 0,
  3920. "backgroundColor": "transparent",
  3921. "fillStyle": "hachure",
  3922. "height": 10,
  3923. "id": "id0",
  3924. "isDeleted": false,
  3925. "opacity": 100,
  3926. "roughness": 1,
  3927. "seed": 337897,
  3928. "strokeColor": "#000000",
  3929. "strokeWidth": 1,
  3930. "type": "rectangle",
  3931. "version": 7,
  3932. "versionNonce": 238820263,
  3933. "width": 10,
  3934. "x": 10,
  3935. "y": 10,
  3936. },
  3937. ],
  3938. },
  3939. Object {
  3940. "appState": Object {
  3941. "currentItemBackgroundColor": "transparent",
  3942. "currentItemFillStyle": "hachure",
  3943. "currentItemFont": "20px Virgil",
  3944. "currentItemOpacity": 100,
  3945. "currentItemRoughness": 1,
  3946. "currentItemStrokeColor": "#000000",
  3947. "currentItemStrokeWidth": 1,
  3948. "exportBackground": true,
  3949. "name": "excalidraw-201933152653",
  3950. "viewBackgroundColor": "#ffffff",
  3951. },
  3952. "elements": Array [
  3953. Object {
  3954. "angle": 0,
  3955. "backgroundColor": "transparent",
  3956. "fillStyle": "hachure",
  3957. "height": 5,
  3958. "id": "id0",
  3959. "isDeleted": false,
  3960. "opacity": 100,
  3961. "roughness": 1,
  3962. "seed": 337897,
  3963. "strokeColor": "#000000",
  3964. "strokeWidth": 1,
  3965. "type": "rectangle",
  3966. "version": 9,
  3967. "versionNonce": 23633383,
  3968. "width": 5,
  3969. "x": 15,
  3970. "y": 15,
  3971. },
  3972. ],
  3973. },
  3974. Object {
  3975. "appState": Object {
  3976. "currentItemBackgroundColor": "transparent",
  3977. "currentItemFillStyle": "hachure",
  3978. "currentItemFont": "20px Virgil",
  3979. "currentItemOpacity": 100,
  3980. "currentItemRoughness": 1,
  3981. "currentItemStrokeColor": "#000000",
  3982. "currentItemStrokeWidth": 1,
  3983. "exportBackground": true,
  3984. "name": "excalidraw-201933152653",
  3985. "viewBackgroundColor": "#ffffff",
  3986. },
  3987. "elements": Array [
  3988. Object {
  3989. "angle": 0,
  3990. "backgroundColor": "transparent",
  3991. "fillStyle": "hachure",
  3992. "height": 10,
  3993. "id": "id0",
  3994. "isDeleted": false,
  3995. "opacity": 100,
  3996. "roughness": 1,
  3997. "seed": 337897,
  3998. "strokeColor": "#000000",
  3999. "strokeWidth": 1,
  4000. "type": "rectangle",
  4001. "version": 11,
  4002. "versionNonce": 747212839,
  4003. "width": 10,
  4004. "x": 10,
  4005. "y": 10,
  4006. },
  4007. ],
  4008. },
  4009. Object {
  4010. "appState": Object {
  4011. "currentItemBackgroundColor": "transparent",
  4012. "currentItemFillStyle": "hachure",
  4013. "currentItemFont": "20px Virgil",
  4014. "currentItemOpacity": 100,
  4015. "currentItemRoughness": 1,
  4016. "currentItemStrokeColor": "#000000",
  4017. "currentItemStrokeWidth": 1,
  4018. "exportBackground": true,
  4019. "name": "excalidraw-201933152653",
  4020. "viewBackgroundColor": "#ffffff",
  4021. },
  4022. "elements": Array [
  4023. Object {
  4024. "angle": 0,
  4025. "backgroundColor": "transparent",
  4026. "fillStyle": "hachure",
  4027. "height": 15,
  4028. "id": "id0",
  4029. "isDeleted": false,
  4030. "opacity": 100,
  4031. "roughness": 1,
  4032. "seed": 337897,
  4033. "strokeColor": "#000000",
  4034. "strokeWidth": 1,
  4035. "type": "rectangle",
  4036. "version": 13,
  4037. "versionNonce": 289600103,
  4038. "width": 5,
  4039. "x": 10,
  4040. "y": 5,
  4041. },
  4042. ],
  4043. },
  4044. Object {
  4045. "appState": Object {
  4046. "currentItemBackgroundColor": "transparent",
  4047. "currentItemFillStyle": "hachure",
  4048. "currentItemFont": "20px Virgil",
  4049. "currentItemOpacity": 100,
  4050. "currentItemRoughness": 1,
  4051. "currentItemStrokeColor": "#000000",
  4052. "currentItemStrokeWidth": 1,
  4053. "exportBackground": true,
  4054. "name": "excalidraw-201933152653",
  4055. "viewBackgroundColor": "#ffffff",
  4056. },
  4057. "elements": Array [
  4058. Object {
  4059. "angle": 0,
  4060. "backgroundColor": "transparent",
  4061. "fillStyle": "hachure",
  4062. "height": 10,
  4063. "id": "id0",
  4064. "isDeleted": false,
  4065. "opacity": 100,
  4066. "roughness": 1,
  4067. "seed": 337897,
  4068. "strokeColor": "#000000",
  4069. "strokeWidth": 1,
  4070. "type": "rectangle",
  4071. "version": 15,
  4072. "versionNonce": 406373543,
  4073. "width": 10,
  4074. "x": 10,
  4075. "y": 10,
  4076. },
  4077. ],
  4078. },
  4079. Object {
  4080. "appState": Object {
  4081. "currentItemBackgroundColor": "transparent",
  4082. "currentItemFillStyle": "hachure",
  4083. "currentItemFont": "20px Virgil",
  4084. "currentItemOpacity": 100,
  4085. "currentItemRoughness": 1,
  4086. "currentItemStrokeColor": "#000000",
  4087. "currentItemStrokeWidth": 1,
  4088. "exportBackground": true,
  4089. "name": "excalidraw-201933152653",
  4090. "viewBackgroundColor": "#ffffff",
  4091. },
  4092. "elements": Array [
  4093. Object {
  4094. "angle": 0,
  4095. "backgroundColor": "transparent",
  4096. "fillStyle": "hachure",
  4097. "height": 5,
  4098. "id": "id0",
  4099. "isDeleted": false,
  4100. "opacity": 100,
  4101. "roughness": 1,
  4102. "seed": 337897,
  4103. "strokeColor": "#000000",
  4104. "strokeWidth": 1,
  4105. "type": "rectangle",
  4106. "version": 17,
  4107. "versionNonce": 1359939303,
  4108. "width": 15,
  4109. "x": 10,
  4110. "y": 15,
  4111. },
  4112. ],
  4113. },
  4114. ],
  4115. }
  4116. `;
  4117. exports[`regression tests resize an element, trying every resize handle: [resize handle ne (+5, +5)] number of elements 1`] = `1`;
  4118. exports[`regression tests resize an element, trying every resize handle: [resize handle ne (+5, +5)] number of renders 1`] = `27`;
  4119. exports[`regression tests resize an element, trying every resize handle: [resize handle ne (-5, -5)] appState 1`] = `
  4120. Object {
  4121. "collaborators": Map {},
  4122. "currentItemBackgroundColor": "transparent",
  4123. "currentItemFillStyle": "hachure",
  4124. "currentItemFont": "20px Virgil",
  4125. "currentItemOpacity": 100,
  4126. "currentItemRoughness": 1,
  4127. "currentItemStrokeColor": "#000000",
  4128. "currentItemStrokeWidth": 1,
  4129. "cursorX": 0,
  4130. "cursorY": 0,
  4131. "draggingElement": null,
  4132. "editingElement": null,
  4133. "elementLocked": false,
  4134. "elementType": "selection",
  4135. "errorMessage": null,
  4136. "exportBackground": true,
  4137. "isCollaborating": false,
  4138. "isLoading": false,
  4139. "isResizing": false,
  4140. "isRotating": false,
  4141. "lastPointerDownWith": "mouse",
  4142. "multiElement": null,
  4143. "name": "excalidraw-201933152653",
  4144. "openMenu": null,
  4145. "resizingElement": null,
  4146. "scrollX": 0,
  4147. "scrollY": 0,
  4148. "scrolledOutside": false,
  4149. "selectedElementIds": Object {
  4150. "id0": true,
  4151. "id1": true,
  4152. "id2": true,
  4153. "id3": true,
  4154. "id4": true,
  4155. "id5": true,
  4156. },
  4157. "selectionElement": null,
  4158. "shouldCacheIgnoreZoom": false,
  4159. "viewBackgroundColor": "#ffffff",
  4160. "zoom": 1,
  4161. }
  4162. `;
  4163. exports[`regression tests resize an element, trying every resize handle: [resize handle ne (-5, -5)] element 0 1`] = `
  4164. Object {
  4165. "angle": 0,
  4166. "backgroundColor": "transparent",
  4167. "fillStyle": "hachure",
  4168. "height": 15,
  4169. "id": "id0",
  4170. "isDeleted": false,
  4171. "opacity": 100,
  4172. "roughness": 1,
  4173. "seed": 337897,
  4174. "strokeColor": "#000000",
  4175. "strokeWidth": 1,
  4176. "type": "rectangle",
  4177. "version": 12,
  4178. "versionNonce": 289600103,
  4179. "width": 5,
  4180. "x": 10,
  4181. "y": 5,
  4182. }
  4183. `;
  4184. exports[`regression tests resize an element, trying every resize handle: [resize handle ne (-5, -5)] history 1`] = `
  4185. Object {
  4186. "recording": false,
  4187. "redoStack": Array [],
  4188. "stateHistory": Array [
  4189. Object {
  4190. "appState": Object {
  4191. "currentItemBackgroundColor": "transparent",
  4192. "currentItemFillStyle": "hachure",
  4193. "currentItemFont": "20px Virgil",
  4194. "currentItemOpacity": 100,
  4195. "currentItemRoughness": 1,
  4196. "currentItemStrokeColor": "#000000",
  4197. "currentItemStrokeWidth": 1,
  4198. "exportBackground": true,
  4199. "name": "excalidraw-201933152653",
  4200. "viewBackgroundColor": "#ffffff",
  4201. },
  4202. "elements": Array [
  4203. Object {
  4204. "angle": 0,
  4205. "backgroundColor": "transparent",
  4206. "fillStyle": "hachure",
  4207. "height": 10,
  4208. "id": "id0",
  4209. "isDeleted": false,
  4210. "opacity": 100,
  4211. "roughness": 1,
  4212. "seed": 337897,
  4213. "strokeColor": "#000000",
  4214. "strokeWidth": 1,
  4215. "type": "rectangle",
  4216. "version": 3,
  4217. "versionNonce": 1278240551,
  4218. "width": 10,
  4219. "x": 10,
  4220. "y": 10,
  4221. },
  4222. ],
  4223. },
  4224. Object {
  4225. "appState": Object {
  4226. "currentItemBackgroundColor": "transparent",
  4227. "currentItemFillStyle": "hachure",
  4228. "currentItemFont": "20px Virgil",
  4229. "currentItemOpacity": 100,
  4230. "currentItemRoughness": 1,
  4231. "currentItemStrokeColor": "#000000",
  4232. "currentItemStrokeWidth": 1,
  4233. "exportBackground": true,
  4234. "name": "excalidraw-201933152653",
  4235. "viewBackgroundColor": "#ffffff",
  4236. },
  4237. "elements": Array [
  4238. Object {
  4239. "angle": 0,
  4240. "backgroundColor": "transparent",
  4241. "fillStyle": "hachure",
  4242. "height": 15,
  4243. "id": "id0",
  4244. "isDeleted": false,
  4245. "opacity": 100,
  4246. "roughness": 1,
  4247. "seed": 337897,
  4248. "strokeColor": "#000000",
  4249. "strokeWidth": 1,
  4250. "type": "rectangle",
  4251. "version": 5,
  4252. "versionNonce": 2019559783,
  4253. "width": 15,
  4254. "x": 5,
  4255. "y": 5,
  4256. },
  4257. ],
  4258. },
  4259. Object {
  4260. "appState": Object {
  4261. "currentItemBackgroundColor": "transparent",
  4262. "currentItemFillStyle": "hachure",
  4263. "currentItemFont": "20px Virgil",
  4264. "currentItemOpacity": 100,
  4265. "currentItemRoughness": 1,
  4266. "currentItemStrokeColor": "#000000",
  4267. "currentItemStrokeWidth": 1,
  4268. "exportBackground": true,
  4269. "name": "excalidraw-201933152653",
  4270. "viewBackgroundColor": "#ffffff",
  4271. },
  4272. "elements": Array [
  4273. Object {
  4274. "angle": 0,
  4275. "backgroundColor": "transparent",
  4276. "fillStyle": "hachure",
  4277. "height": 10,
  4278. "id": "id0",
  4279. "isDeleted": false,
  4280. "opacity": 100,
  4281. "roughness": 1,
  4282. "seed": 337897,
  4283. "strokeColor": "#000000",
  4284. "strokeWidth": 1,
  4285. "type": "rectangle",
  4286. "version": 7,
  4287. "versionNonce": 238820263,
  4288. "width": 10,
  4289. "x": 10,
  4290. "y": 10,
  4291. },
  4292. ],
  4293. },
  4294. Object {
  4295. "appState": Object {
  4296. "currentItemBackgroundColor": "transparent",
  4297. "currentItemFillStyle": "hachure",
  4298. "currentItemFont": "20px Virgil",
  4299. "currentItemOpacity": 100,
  4300. "currentItemRoughness": 1,
  4301. "currentItemStrokeColor": "#000000",
  4302. "currentItemStrokeWidth": 1,
  4303. "exportBackground": true,
  4304. "name": "excalidraw-201933152653",
  4305. "viewBackgroundColor": "#ffffff",
  4306. },
  4307. "elements": Array [
  4308. Object {
  4309. "angle": 0,
  4310. "backgroundColor": "transparent",
  4311. "fillStyle": "hachure",
  4312. "height": 5,
  4313. "id": "id0",
  4314. "isDeleted": false,
  4315. "opacity": 100,
  4316. "roughness": 1,
  4317. "seed": 337897,
  4318. "strokeColor": "#000000",
  4319. "strokeWidth": 1,
  4320. "type": "rectangle",
  4321. "version": 9,
  4322. "versionNonce": 23633383,
  4323. "width": 5,
  4324. "x": 15,
  4325. "y": 15,
  4326. },
  4327. ],
  4328. },
  4329. Object {
  4330. "appState": Object {
  4331. "currentItemBackgroundColor": "transparent",
  4332. "currentItemFillStyle": "hachure",
  4333. "currentItemFont": "20px Virgil",
  4334. "currentItemOpacity": 100,
  4335. "currentItemRoughness": 1,
  4336. "currentItemStrokeColor": "#000000",
  4337. "currentItemStrokeWidth": 1,
  4338. "exportBackground": true,
  4339. "name": "excalidraw-201933152653",
  4340. "viewBackgroundColor": "#ffffff",
  4341. },
  4342. "elements": Array [
  4343. Object {
  4344. "angle": 0,
  4345. "backgroundColor": "transparent",
  4346. "fillStyle": "hachure",
  4347. "height": 10,
  4348. "id": "id0",
  4349. "isDeleted": false,
  4350. "opacity": 100,
  4351. "roughness": 1,
  4352. "seed": 337897,
  4353. "strokeColor": "#000000",
  4354. "strokeWidth": 1,
  4355. "type": "rectangle",
  4356. "version": 11,
  4357. "versionNonce": 747212839,
  4358. "width": 10,
  4359. "x": 10,
  4360. "y": 10,
  4361. },
  4362. ],
  4363. },
  4364. Object {
  4365. "appState": Object {
  4366. "currentItemBackgroundColor": "transparent",
  4367. "currentItemFillStyle": "hachure",
  4368. "currentItemFont": "20px Virgil",
  4369. "currentItemOpacity": 100,
  4370. "currentItemRoughness": 1,
  4371. "currentItemStrokeColor": "#000000",
  4372. "currentItemStrokeWidth": 1,
  4373. "exportBackground": true,
  4374. "name": "excalidraw-201933152653",
  4375. "viewBackgroundColor": "#ffffff",
  4376. },
  4377. "elements": Array [
  4378. Object {
  4379. "angle": 0,
  4380. "backgroundColor": "transparent",
  4381. "fillStyle": "hachure",
  4382. "height": 15,
  4383. "id": "id0",
  4384. "isDeleted": false,
  4385. "opacity": 100,
  4386. "roughness": 1,
  4387. "seed": 337897,
  4388. "strokeColor": "#000000",
  4389. "strokeWidth": 1,
  4390. "type": "rectangle",
  4391. "version": 13,
  4392. "versionNonce": 289600103,
  4393. "width": 5,
  4394. "x": 10,
  4395. "y": 5,
  4396. },
  4397. ],
  4398. },
  4399. ],
  4400. }
  4401. `;
  4402. exports[`regression tests resize an element, trying every resize handle: [resize handle ne (-5, -5)] number of elements 1`] = `1`;
  4403. exports[`regression tests resize an element, trying every resize handle: [resize handle ne (-5, -5)] number of renders 1`] = `21`;
  4404. exports[`regression tests resize an element, trying every resize handle: [resize handle nw (+5, +5)] appState 1`] = `
  4405. Object {
  4406. "collaborators": Map {},
  4407. "currentItemBackgroundColor": "transparent",
  4408. "currentItemFillStyle": "hachure",
  4409. "currentItemFont": "20px Virgil",
  4410. "currentItemOpacity": 100,
  4411. "currentItemRoughness": 1,
  4412. "currentItemStrokeColor": "#000000",
  4413. "currentItemStrokeWidth": 1,
  4414. "cursorX": 0,
  4415. "cursorY": 0,
  4416. "draggingElement": null,
  4417. "editingElement": null,
  4418. "elementLocked": false,
  4419. "elementType": "selection",
  4420. "errorMessage": null,
  4421. "exportBackground": true,
  4422. "isCollaborating": false,
  4423. "isLoading": false,
  4424. "isResizing": false,
  4425. "isRotating": false,
  4426. "lastPointerDownWith": "mouse",
  4427. "multiElement": null,
  4428. "name": "excalidraw-201933152653",
  4429. "openMenu": null,
  4430. "resizingElement": null,
  4431. "scrollX": 0,
  4432. "scrollY": 0,
  4433. "scrolledOutside": false,
  4434. "selectedElementIds": Object {
  4435. "id0": true,
  4436. "id1": true,
  4437. "id2": true,
  4438. "id3": true,
  4439. },
  4440. "selectionElement": null,
  4441. "shouldCacheIgnoreZoom": false,
  4442. "viewBackgroundColor": "#ffffff",
  4443. "zoom": 1,
  4444. }
  4445. `;
  4446. exports[`regression tests resize an element, trying every resize handle: [resize handle nw (+5, +5)] element 0 1`] = `
  4447. Object {
  4448. "angle": 0,
  4449. "backgroundColor": "transparent",
  4450. "fillStyle": "hachure",
  4451. "height": 5,
  4452. "id": "id0",
  4453. "isDeleted": false,
  4454. "opacity": 100,
  4455. "roughness": 1,
  4456. "seed": 337897,
  4457. "strokeColor": "#000000",
  4458. "strokeWidth": 1,
  4459. "type": "rectangle",
  4460. "version": 8,
  4461. "versionNonce": 23633383,
  4462. "width": 5,
  4463. "x": 15,
  4464. "y": 15,
  4465. }
  4466. `;
  4467. exports[`regression tests resize an element, trying every resize handle: [resize handle nw (+5, +5)] history 1`] = `
  4468. Object {
  4469. "recording": false,
  4470. "redoStack": Array [],
  4471. "stateHistory": Array [
  4472. Object {
  4473. "appState": Object {
  4474. "currentItemBackgroundColor": "transparent",
  4475. "currentItemFillStyle": "hachure",
  4476. "currentItemFont": "20px Virgil",
  4477. "currentItemOpacity": 100,
  4478. "currentItemRoughness": 1,
  4479. "currentItemStrokeColor": "#000000",
  4480. "currentItemStrokeWidth": 1,
  4481. "exportBackground": true,
  4482. "name": "excalidraw-201933152653",
  4483. "viewBackgroundColor": "#ffffff",
  4484. },
  4485. "elements": Array [
  4486. Object {
  4487. "angle": 0,
  4488. "backgroundColor": "transparent",
  4489. "fillStyle": "hachure",
  4490. "height": 10,
  4491. "id": "id0",
  4492. "isDeleted": false,
  4493. "opacity": 100,
  4494. "roughness": 1,
  4495. "seed": 337897,
  4496. "strokeColor": "#000000",
  4497. "strokeWidth": 1,
  4498. "type": "rectangle",
  4499. "version": 3,
  4500. "versionNonce": 1278240551,
  4501. "width": 10,
  4502. "x": 10,
  4503. "y": 10,
  4504. },
  4505. ],
  4506. },
  4507. Object {
  4508. "appState": Object {
  4509. "currentItemBackgroundColor": "transparent",
  4510. "currentItemFillStyle": "hachure",
  4511. "currentItemFont": "20px Virgil",
  4512. "currentItemOpacity": 100,
  4513. "currentItemRoughness": 1,
  4514. "currentItemStrokeColor": "#000000",
  4515. "currentItemStrokeWidth": 1,
  4516. "exportBackground": true,
  4517. "name": "excalidraw-201933152653",
  4518. "viewBackgroundColor": "#ffffff",
  4519. },
  4520. "elements": Array [
  4521. Object {
  4522. "angle": 0,
  4523. "backgroundColor": "transparent",
  4524. "fillStyle": "hachure",
  4525. "height": 15,
  4526. "id": "id0",
  4527. "isDeleted": false,
  4528. "opacity": 100,
  4529. "roughness": 1,
  4530. "seed": 337897,
  4531. "strokeColor": "#000000",
  4532. "strokeWidth": 1,
  4533. "type": "rectangle",
  4534. "version": 5,
  4535. "versionNonce": 2019559783,
  4536. "width": 15,
  4537. "x": 5,
  4538. "y": 5,
  4539. },
  4540. ],
  4541. },
  4542. Object {
  4543. "appState": Object {
  4544. "currentItemBackgroundColor": "transparent",
  4545. "currentItemFillStyle": "hachure",
  4546. "currentItemFont": "20px Virgil",
  4547. "currentItemOpacity": 100,
  4548. "currentItemRoughness": 1,
  4549. "currentItemStrokeColor": "#000000",
  4550. "currentItemStrokeWidth": 1,
  4551. "exportBackground": true,
  4552. "name": "excalidraw-201933152653",
  4553. "viewBackgroundColor": "#ffffff",
  4554. },
  4555. "elements": Array [
  4556. Object {
  4557. "angle": 0,
  4558. "backgroundColor": "transparent",
  4559. "fillStyle": "hachure",
  4560. "height": 10,
  4561. "id": "id0",
  4562. "isDeleted": false,
  4563. "opacity": 100,
  4564. "roughness": 1,
  4565. "seed": 337897,
  4566. "strokeColor": "#000000",
  4567. "strokeWidth": 1,
  4568. "type": "rectangle",
  4569. "version": 7,
  4570. "versionNonce": 238820263,
  4571. "width": 10,
  4572. "x": 10,
  4573. "y": 10,
  4574. },
  4575. ],
  4576. },
  4577. Object {
  4578. "appState": Object {
  4579. "currentItemBackgroundColor": "transparent",
  4580. "currentItemFillStyle": "hachure",
  4581. "currentItemFont": "20px Virgil",
  4582. "currentItemOpacity": 100,
  4583. "currentItemRoughness": 1,
  4584. "currentItemStrokeColor": "#000000",
  4585. "currentItemStrokeWidth": 1,
  4586. "exportBackground": true,
  4587. "name": "excalidraw-201933152653",
  4588. "viewBackgroundColor": "#ffffff",
  4589. },
  4590. "elements": Array [
  4591. Object {
  4592. "angle": 0,
  4593. "backgroundColor": "transparent",
  4594. "fillStyle": "hachure",
  4595. "height": 5,
  4596. "id": "id0",
  4597. "isDeleted": false,
  4598. "opacity": 100,
  4599. "roughness": 1,
  4600. "seed": 337897,
  4601. "strokeColor": "#000000",
  4602. "strokeWidth": 1,
  4603. "type": "rectangle",
  4604. "version": 9,
  4605. "versionNonce": 23633383,
  4606. "width": 5,
  4607. "x": 15,
  4608. "y": 15,
  4609. },
  4610. ],
  4611. },
  4612. ],
  4613. }
  4614. `;
  4615. exports[`regression tests resize an element, trying every resize handle: [resize handle nw (+5, +5)] number of elements 1`] = `1`;
  4616. exports[`regression tests resize an element, trying every resize handle: [resize handle nw (+5, +5)] number of renders 1`] = `15`;
  4617. exports[`regression tests resize an element, trying every resize handle: [resize handle nw (-5, -5)] appState 1`] = `
  4618. Object {
  4619. "collaborators": Map {},
  4620. "currentItemBackgroundColor": "transparent",
  4621. "currentItemFillStyle": "hachure",
  4622. "currentItemFont": "20px Virgil",
  4623. "currentItemOpacity": 100,
  4624. "currentItemRoughness": 1,
  4625. "currentItemStrokeColor": "#000000",
  4626. "currentItemStrokeWidth": 1,
  4627. "cursorX": 0,
  4628. "cursorY": 0,
  4629. "draggingElement": null,
  4630. "editingElement": null,
  4631. "elementLocked": false,
  4632. "elementType": "selection",
  4633. "errorMessage": null,
  4634. "exportBackground": true,
  4635. "isCollaborating": false,
  4636. "isLoading": false,
  4637. "isResizing": false,
  4638. "isRotating": false,
  4639. "lastPointerDownWith": "mouse",
  4640. "multiElement": null,
  4641. "name": "excalidraw-201933152653",
  4642. "openMenu": null,
  4643. "resizingElement": null,
  4644. "scrollX": 0,
  4645. "scrollY": 0,
  4646. "scrolledOutside": false,
  4647. "selectedElementIds": Object {
  4648. "id0": true,
  4649. "id1": true,
  4650. },
  4651. "selectionElement": null,
  4652. "shouldCacheIgnoreZoom": false,
  4653. "viewBackgroundColor": "#ffffff",
  4654. "zoom": 1,
  4655. }
  4656. `;
  4657. exports[`regression tests resize an element, trying every resize handle: [resize handle nw (-5, -5)] element 0 1`] = `
  4658. Object {
  4659. "angle": 0,
  4660. "backgroundColor": "transparent",
  4661. "fillStyle": "hachure",
  4662. "height": 15,
  4663. "id": "id0",
  4664. "isDeleted": false,
  4665. "opacity": 100,
  4666. "roughness": 1,
  4667. "seed": 337897,
  4668. "strokeColor": "#000000",
  4669. "strokeWidth": 1,
  4670. "type": "rectangle",
  4671. "version": 4,
  4672. "versionNonce": 2019559783,
  4673. "width": 15,
  4674. "x": 5,
  4675. "y": 5,
  4676. }
  4677. `;
  4678. exports[`regression tests resize an element, trying every resize handle: [resize handle nw (-5, -5)] history 1`] = `
  4679. Object {
  4680. "recording": false,
  4681. "redoStack": Array [],
  4682. "stateHistory": Array [
  4683. Object {
  4684. "appState": Object {
  4685. "currentItemBackgroundColor": "transparent",
  4686. "currentItemFillStyle": "hachure",
  4687. "currentItemFont": "20px Virgil",
  4688. "currentItemOpacity": 100,
  4689. "currentItemRoughness": 1,
  4690. "currentItemStrokeColor": "#000000",
  4691. "currentItemStrokeWidth": 1,
  4692. "exportBackground": true,
  4693. "name": "excalidraw-201933152653",
  4694. "viewBackgroundColor": "#ffffff",
  4695. },
  4696. "elements": Array [
  4697. Object {
  4698. "angle": 0,
  4699. "backgroundColor": "transparent",
  4700. "fillStyle": "hachure",
  4701. "height": 10,
  4702. "id": "id0",
  4703. "isDeleted": false,
  4704. "opacity": 100,
  4705. "roughness": 1,
  4706. "seed": 337897,
  4707. "strokeColor": "#000000",
  4708. "strokeWidth": 1,
  4709. "type": "rectangle",
  4710. "version": 3,
  4711. "versionNonce": 1278240551,
  4712. "width": 10,
  4713. "x": 10,
  4714. "y": 10,
  4715. },
  4716. ],
  4717. },
  4718. Object {
  4719. "appState": Object {
  4720. "currentItemBackgroundColor": "transparent",
  4721. "currentItemFillStyle": "hachure",
  4722. "currentItemFont": "20px Virgil",
  4723. "currentItemOpacity": 100,
  4724. "currentItemRoughness": 1,
  4725. "currentItemStrokeColor": "#000000",
  4726. "currentItemStrokeWidth": 1,
  4727. "exportBackground": true,
  4728. "name": "excalidraw-201933152653",
  4729. "viewBackgroundColor": "#ffffff",
  4730. },
  4731. "elements": Array [
  4732. Object {
  4733. "angle": 0,
  4734. "backgroundColor": "transparent",
  4735. "fillStyle": "hachure",
  4736. "height": 15,
  4737. "id": "id0",
  4738. "isDeleted": false,
  4739. "opacity": 100,
  4740. "roughness": 1,
  4741. "seed": 337897,
  4742. "strokeColor": "#000000",
  4743. "strokeWidth": 1,
  4744. "type": "rectangle",
  4745. "version": 5,
  4746. "versionNonce": 2019559783,
  4747. "width": 15,
  4748. "x": 5,
  4749. "y": 5,
  4750. },
  4751. ],
  4752. },
  4753. ],
  4754. }
  4755. `;
  4756. exports[`regression tests resize an element, trying every resize handle: [resize handle nw (-5, -5)] number of elements 1`] = `1`;
  4757. exports[`regression tests resize an element, trying every resize handle: [resize handle nw (-5, -5)] number of renders 1`] = `9`;
  4758. exports[`regression tests resize an element, trying every resize handle: [resize handle se (+5, +5)] appState 1`] = `
  4759. Object {
  4760. "collaborators": Map {},
  4761. "currentItemBackgroundColor": "transparent",
  4762. "currentItemFillStyle": "hachure",
  4763. "currentItemFont": "20px Virgil",
  4764. "currentItemOpacity": 100,
  4765. "currentItemRoughness": 1,
  4766. "currentItemStrokeColor": "#000000",
  4767. "currentItemStrokeWidth": 1,
  4768. "cursorX": 0,
  4769. "cursorY": 0,
  4770. "draggingElement": null,
  4771. "editingElement": null,
  4772. "elementLocked": false,
  4773. "elementType": "selection",
  4774. "errorMessage": null,
  4775. "exportBackground": true,
  4776. "isCollaborating": false,
  4777. "isLoading": false,
  4778. "isResizing": false,
  4779. "isRotating": false,
  4780. "lastPointerDownWith": "mouse",
  4781. "multiElement": null,
  4782. "name": "excalidraw-201933152653",
  4783. "openMenu": null,
  4784. "resizingElement": null,
  4785. "scrollX": 0,
  4786. "scrollY": 0,
  4787. "scrolledOutside": false,
  4788. "selectedElementIds": Object {
  4789. "id0": true,
  4790. "id1": true,
  4791. "id10": true,
  4792. "id11": true,
  4793. "id12": true,
  4794. "id13": true,
  4795. "id14": true,
  4796. "id15": true,
  4797. "id2": true,
  4798. "id3": true,
  4799. "id4": true,
  4800. "id5": true,
  4801. "id6": true,
  4802. "id7": true,
  4803. "id8": true,
  4804. "id9": true,
  4805. },
  4806. "selectionElement": null,
  4807. "shouldCacheIgnoreZoom": false,
  4808. "viewBackgroundColor": "#ffffff",
  4809. "zoom": 1,
  4810. }
  4811. `;
  4812. exports[`regression tests resize an element, trying every resize handle: [resize handle se (+5, +5)] element 0 1`] = `
  4813. Object {
  4814. "angle": 0,
  4815. "backgroundColor": "transparent",
  4816. "fillStyle": "hachure",
  4817. "height": 15,
  4818. "id": "id0",
  4819. "isDeleted": false,
  4820. "opacity": 100,
  4821. "roughness": 1,
  4822. "seed": 337897,
  4823. "strokeColor": "#000000",
  4824. "strokeWidth": 1,
  4825. "type": "rectangle",
  4826. "version": 32,
  4827. "versionNonce": 909170919,
  4828. "width": 15,
  4829. "x": 10,
  4830. "y": 10,
  4831. }
  4832. `;
  4833. exports[`regression tests resize an element, trying every resize handle: [resize handle se (+5, +5)] history 1`] = `
  4834. Object {
  4835. "recording": false,
  4836. "redoStack": Array [],
  4837. "stateHistory": Array [
  4838. Object {
  4839. "appState": Object {
  4840. "currentItemBackgroundColor": "transparent",
  4841. "currentItemFillStyle": "hachure",
  4842. "currentItemFont": "20px Virgil",
  4843. "currentItemOpacity": 100,
  4844. "currentItemRoughness": 1,
  4845. "currentItemStrokeColor": "#000000",
  4846. "currentItemStrokeWidth": 1,
  4847. "exportBackground": true,
  4848. "name": "excalidraw-201933152653",
  4849. "viewBackgroundColor": "#ffffff",
  4850. },
  4851. "elements": Array [
  4852. Object {
  4853. "angle": 0,
  4854. "backgroundColor": "transparent",
  4855. "fillStyle": "hachure",
  4856. "height": 10,
  4857. "id": "id0",
  4858. "isDeleted": false,
  4859. "opacity": 100,
  4860. "roughness": 1,
  4861. "seed": 337897,
  4862. "strokeColor": "#000000",
  4863. "strokeWidth": 1,
  4864. "type": "rectangle",
  4865. "version": 3,
  4866. "versionNonce": 1278240551,
  4867. "width": 10,
  4868. "x": 10,
  4869. "y": 10,
  4870. },
  4871. ],
  4872. },
  4873. Object {
  4874. "appState": Object {
  4875. "currentItemBackgroundColor": "transparent",
  4876. "currentItemFillStyle": "hachure",
  4877. "currentItemFont": "20px Virgil",
  4878. "currentItemOpacity": 100,
  4879. "currentItemRoughness": 1,
  4880. "currentItemStrokeColor": "#000000",
  4881. "currentItemStrokeWidth": 1,
  4882. "exportBackground": true,
  4883. "name": "excalidraw-201933152653",
  4884. "viewBackgroundColor": "#ffffff",
  4885. },
  4886. "elements": Array [
  4887. Object {
  4888. "angle": 0,
  4889. "backgroundColor": "transparent",
  4890. "fillStyle": "hachure",
  4891. "height": 15,
  4892. "id": "id0",
  4893. "isDeleted": false,
  4894. "opacity": 100,
  4895. "roughness": 1,
  4896. "seed": 337897,
  4897. "strokeColor": "#000000",
  4898. "strokeWidth": 1,
  4899. "type": "rectangle",
  4900. "version": 5,
  4901. "versionNonce": 2019559783,
  4902. "width": 15,
  4903. "x": 5,
  4904. "y": 5,
  4905. },
  4906. ],
  4907. },
  4908. Object {
  4909. "appState": Object {
  4910. "currentItemBackgroundColor": "transparent",
  4911. "currentItemFillStyle": "hachure",
  4912. "currentItemFont": "20px Virgil",
  4913. "currentItemOpacity": 100,
  4914. "currentItemRoughness": 1,
  4915. "currentItemStrokeColor": "#000000",
  4916. "currentItemStrokeWidth": 1,
  4917. "exportBackground": true,
  4918. "name": "excalidraw-201933152653",
  4919. "viewBackgroundColor": "#ffffff",
  4920. },
  4921. "elements": Array [
  4922. Object {
  4923. "angle": 0,
  4924. "backgroundColor": "transparent",
  4925. "fillStyle": "hachure",
  4926. "height": 10,
  4927. "id": "id0",
  4928. "isDeleted": false,
  4929. "opacity": 100,
  4930. "roughness": 1,
  4931. "seed": 337897,
  4932. "strokeColor": "#000000",
  4933. "strokeWidth": 1,
  4934. "type": "rectangle",
  4935. "version": 7,
  4936. "versionNonce": 238820263,
  4937. "width": 10,
  4938. "x": 10,
  4939. "y": 10,
  4940. },
  4941. ],
  4942. },
  4943. Object {
  4944. "appState": Object {
  4945. "currentItemBackgroundColor": "transparent",
  4946. "currentItemFillStyle": "hachure",
  4947. "currentItemFont": "20px Virgil",
  4948. "currentItemOpacity": 100,
  4949. "currentItemRoughness": 1,
  4950. "currentItemStrokeColor": "#000000",
  4951. "currentItemStrokeWidth": 1,
  4952. "exportBackground": true,
  4953. "name": "excalidraw-201933152653",
  4954. "viewBackgroundColor": "#ffffff",
  4955. },
  4956. "elements": Array [
  4957. Object {
  4958. "angle": 0,
  4959. "backgroundColor": "transparent",
  4960. "fillStyle": "hachure",
  4961. "height": 5,
  4962. "id": "id0",
  4963. "isDeleted": false,
  4964. "opacity": 100,
  4965. "roughness": 1,
  4966. "seed": 337897,
  4967. "strokeColor": "#000000",
  4968. "strokeWidth": 1,
  4969. "type": "rectangle",
  4970. "version": 9,
  4971. "versionNonce": 23633383,
  4972. "width": 5,
  4973. "x": 15,
  4974. "y": 15,
  4975. },
  4976. ],
  4977. },
  4978. Object {
  4979. "appState": Object {
  4980. "currentItemBackgroundColor": "transparent",
  4981. "currentItemFillStyle": "hachure",
  4982. "currentItemFont": "20px Virgil",
  4983. "currentItemOpacity": 100,
  4984. "currentItemRoughness": 1,
  4985. "currentItemStrokeColor": "#000000",
  4986. "currentItemStrokeWidth": 1,
  4987. "exportBackground": true,
  4988. "name": "excalidraw-201933152653",
  4989. "viewBackgroundColor": "#ffffff",
  4990. },
  4991. "elements": Array [
  4992. Object {
  4993. "angle": 0,
  4994. "backgroundColor": "transparent",
  4995. "fillStyle": "hachure",
  4996. "height": 10,
  4997. "id": "id0",
  4998. "isDeleted": false,
  4999. "opacity": 100,
  5000. "roughness": 1,
  5001. "seed": 337897,
  5002. "strokeColor": "#000000",
  5003. "strokeWidth": 1,
  5004. "type": "rectangle",
  5005. "version": 11,
  5006. "versionNonce": 747212839,
  5007. "width": 10,
  5008. "x": 10,
  5009. "y": 10,
  5010. },
  5011. ],
  5012. },
  5013. Object {
  5014. "appState": Object {
  5015. "currentItemBackgroundColor": "transparent",
  5016. "currentItemFillStyle": "hachure",
  5017. "currentItemFont": "20px Virgil",
  5018. "currentItemOpacity": 100,
  5019. "currentItemRoughness": 1,
  5020. "currentItemStrokeColor": "#000000",
  5021. "currentItemStrokeWidth": 1,
  5022. "exportBackground": true,
  5023. "name": "excalidraw-201933152653",
  5024. "viewBackgroundColor": "#ffffff",
  5025. },
  5026. "elements": Array [
  5027. Object {
  5028. "angle": 0,
  5029. "backgroundColor": "transparent",
  5030. "fillStyle": "hachure",
  5031. "height": 15,
  5032. "id": "id0",
  5033. "isDeleted": false,
  5034. "opacity": 100,
  5035. "roughness": 1,
  5036. "seed": 337897,
  5037. "strokeColor": "#000000",
  5038. "strokeWidth": 1,
  5039. "type": "rectangle",
  5040. "version": 13,
  5041. "versionNonce": 289600103,
  5042. "width": 5,
  5043. "x": 10,
  5044. "y": 5,
  5045. },
  5046. ],
  5047. },
  5048. Object {
  5049. "appState": Object {
  5050. "currentItemBackgroundColor": "transparent",
  5051. "currentItemFillStyle": "hachure",
  5052. "currentItemFont": "20px Virgil",
  5053. "currentItemOpacity": 100,
  5054. "currentItemRoughness": 1,
  5055. "currentItemStrokeColor": "#000000",
  5056. "currentItemStrokeWidth": 1,
  5057. "exportBackground": true,
  5058. "name": "excalidraw-201933152653",
  5059. "viewBackgroundColor": "#ffffff",
  5060. },
  5061. "elements": Array [
  5062. Object {
  5063. "angle": 0,
  5064. "backgroundColor": "transparent",
  5065. "fillStyle": "hachure",
  5066. "height": 10,
  5067. "id": "id0",
  5068. "isDeleted": false,
  5069. "opacity": 100,
  5070. "roughness": 1,
  5071. "seed": 337897,
  5072. "strokeColor": "#000000",
  5073. "strokeWidth": 1,
  5074. "type": "rectangle",
  5075. "version": 15,
  5076. "versionNonce": 406373543,
  5077. "width": 10,
  5078. "x": 10,
  5079. "y": 10,
  5080. },
  5081. ],
  5082. },
  5083. Object {
  5084. "appState": Object {
  5085. "currentItemBackgroundColor": "transparent",
  5086. "currentItemFillStyle": "hachure",
  5087. "currentItemFont": "20px Virgil",
  5088. "currentItemOpacity": 100,
  5089. "currentItemRoughness": 1,
  5090. "currentItemStrokeColor": "#000000",
  5091. "currentItemStrokeWidth": 1,
  5092. "exportBackground": true,
  5093. "name": "excalidraw-201933152653",
  5094. "viewBackgroundColor": "#ffffff",
  5095. },
  5096. "elements": Array [
  5097. Object {
  5098. "angle": 0,
  5099. "backgroundColor": "transparent",
  5100. "fillStyle": "hachure",
  5101. "height": 5,
  5102. "id": "id0",
  5103. "isDeleted": false,
  5104. "opacity": 100,
  5105. "roughness": 1,
  5106. "seed": 337897,
  5107. "strokeColor": "#000000",
  5108. "strokeWidth": 1,
  5109. "type": "rectangle",
  5110. "version": 17,
  5111. "versionNonce": 1359939303,
  5112. "width": 15,
  5113. "x": 10,
  5114. "y": 15,
  5115. },
  5116. ],
  5117. },
  5118. Object {
  5119. "appState": Object {
  5120. "currentItemBackgroundColor": "transparent",
  5121. "currentItemFillStyle": "hachure",
  5122. "currentItemFont": "20px Virgil",
  5123. "currentItemOpacity": 100,
  5124. "currentItemRoughness": 1,
  5125. "currentItemStrokeColor": "#000000",
  5126. "currentItemStrokeWidth": 1,
  5127. "exportBackground": true,
  5128. "name": "excalidraw-201933152653",
  5129. "viewBackgroundColor": "#ffffff",
  5130. },
  5131. "elements": Array [
  5132. Object {
  5133. "angle": 0,
  5134. "backgroundColor": "transparent",
  5135. "fillStyle": "hachure",
  5136. "height": 10,
  5137. "id": "id0",
  5138. "isDeleted": false,
  5139. "opacity": 100,
  5140. "roughness": 1,
  5141. "seed": 337897,
  5142. "strokeColor": "#000000",
  5143. "strokeWidth": 1,
  5144. "type": "rectangle",
  5145. "version": 19,
  5146. "versionNonce": 845789479,
  5147. "width": 10,
  5148. "x": 10,
  5149. "y": 10,
  5150. },
  5151. ],
  5152. },
  5153. Object {
  5154. "appState": Object {
  5155. "currentItemBackgroundColor": "transparent",
  5156. "currentItemFillStyle": "hachure",
  5157. "currentItemFont": "20px Virgil",
  5158. "currentItemOpacity": 100,
  5159. "currentItemRoughness": 1,
  5160. "currentItemStrokeColor": "#000000",
  5161. "currentItemStrokeWidth": 1,
  5162. "exportBackground": true,
  5163. "name": "excalidraw-201933152653",
  5164. "viewBackgroundColor": "#ffffff",
  5165. },
  5166. "elements": Array [
  5167. Object {
  5168. "angle": 0,
  5169. "backgroundColor": "transparent",
  5170. "fillStyle": "hachure",
  5171. "height": 5,
  5172. "id": "id0",
  5173. "isDeleted": false,
  5174. "opacity": 100,
  5175. "roughness": 1,
  5176. "seed": 337897,
  5177. "strokeColor": "#000000",
  5178. "strokeWidth": 1,
  5179. "type": "rectangle",
  5180. "version": 21,
  5181. "versionNonce": 1508694887,
  5182. "width": 15,
  5183. "x": 5,
  5184. "y": 10,
  5185. },
  5186. ],
  5187. },
  5188. Object {
  5189. "appState": Object {
  5190. "currentItemBackgroundColor": "transparent",
  5191. "currentItemFillStyle": "hachure",
  5192. "currentItemFont": "20px Virgil",
  5193. "currentItemOpacity": 100,
  5194. "currentItemRoughness": 1,
  5195. "currentItemStrokeColor": "#000000",
  5196. "currentItemStrokeWidth": 1,
  5197. "exportBackground": true,
  5198. "name": "excalidraw-201933152653",
  5199. "viewBackgroundColor": "#ffffff",
  5200. },
  5201. "elements": Array [
  5202. Object {
  5203. "angle": 0,
  5204. "backgroundColor": "transparent",
  5205. "fillStyle": "hachure",
  5206. "height": 10,
  5207. "id": "id0",
  5208. "isDeleted": false,
  5209. "opacity": 100,
  5210. "roughness": 1,
  5211. "seed": 337897,
  5212. "strokeColor": "#000000",
  5213. "strokeWidth": 1,
  5214. "type": "rectangle",
  5215. "version": 23,
  5216. "versionNonce": 1279028647,
  5217. "width": 10,
  5218. "x": 10,
  5219. "y": 10,
  5220. },
  5221. ],
  5222. },
  5223. Object {
  5224. "appState": Object {
  5225. "currentItemBackgroundColor": "transparent",
  5226. "currentItemFillStyle": "hachure",
  5227. "currentItemFont": "20px Virgil",
  5228. "currentItemOpacity": 100,
  5229. "currentItemRoughness": 1,
  5230. "currentItemStrokeColor": "#000000",
  5231. "currentItemStrokeWidth": 1,
  5232. "exportBackground": true,
  5233. "name": "excalidraw-201933152653",
  5234. "viewBackgroundColor": "#ffffff",
  5235. },
  5236. "elements": Array [
  5237. Object {
  5238. "angle": 0,
  5239. "backgroundColor": "transparent",
  5240. "fillStyle": "hachure",
  5241. "height": 15,
  5242. "id": "id0",
  5243. "isDeleted": false,
  5244. "opacity": 100,
  5245. "roughness": 1,
  5246. "seed": 337897,
  5247. "strokeColor": "#000000",
  5248. "strokeWidth": 1,
  5249. "type": "rectangle",
  5250. "version": 25,
  5251. "versionNonce": 888958951,
  5252. "width": 5,
  5253. "x": 15,
  5254. "y": 10,
  5255. },
  5256. ],
  5257. },
  5258. Object {
  5259. "appState": Object {
  5260. "currentItemBackgroundColor": "transparent",
  5261. "currentItemFillStyle": "hachure",
  5262. "currentItemFont": "20px Virgil",
  5263. "currentItemOpacity": 100,
  5264. "currentItemRoughness": 1,
  5265. "currentItemStrokeColor": "#000000",
  5266. "currentItemStrokeWidth": 1,
  5267. "exportBackground": true,
  5268. "name": "excalidraw-201933152653",
  5269. "viewBackgroundColor": "#ffffff",
  5270. },
  5271. "elements": Array [
  5272. Object {
  5273. "angle": 0,
  5274. "backgroundColor": "transparent",
  5275. "fillStyle": "hachure",
  5276. "height": 10,
  5277. "id": "id0",
  5278. "isDeleted": false,
  5279. "opacity": 100,
  5280. "roughness": 1,
  5281. "seed": 337897,
  5282. "strokeColor": "#000000",
  5283. "strokeWidth": 1,
  5284. "type": "rectangle",
  5285. "version": 27,
  5286. "versionNonce": 651223591,
  5287. "width": 10,
  5288. "x": 10,
  5289. "y": 10,
  5290. },
  5291. ],
  5292. },
  5293. Object {
  5294. "appState": Object {
  5295. "currentItemBackgroundColor": "transparent",
  5296. "currentItemFillStyle": "hachure",
  5297. "currentItemFont": "20px Virgil",
  5298. "currentItemOpacity": 100,
  5299. "currentItemRoughness": 1,
  5300. "currentItemStrokeColor": "#000000",
  5301. "currentItemStrokeWidth": 1,
  5302. "exportBackground": true,
  5303. "name": "excalidraw-201933152653",
  5304. "viewBackgroundColor": "#ffffff",
  5305. },
  5306. "elements": Array [
  5307. Object {
  5308. "angle": 0,
  5309. "backgroundColor": "transparent",
  5310. "fillStyle": "hachure",
  5311. "height": 5,
  5312. "id": "id0",
  5313. "isDeleted": false,
  5314. "opacity": 100,
  5315. "roughness": 1,
  5316. "seed": 337897,
  5317. "strokeColor": "#000000",
  5318. "strokeWidth": 1,
  5319. "type": "rectangle",
  5320. "version": 29,
  5321. "versionNonce": 1532871783,
  5322. "width": 5,
  5323. "x": 10,
  5324. "y": 10,
  5325. },
  5326. ],
  5327. },
  5328. Object {
  5329. "appState": Object {
  5330. "currentItemBackgroundColor": "transparent",
  5331. "currentItemFillStyle": "hachure",
  5332. "currentItemFont": "20px Virgil",
  5333. "currentItemOpacity": 100,
  5334. "currentItemRoughness": 1,
  5335. "currentItemStrokeColor": "#000000",
  5336. "currentItemStrokeWidth": 1,
  5337. "exportBackground": true,
  5338. "name": "excalidraw-201933152653",
  5339. "viewBackgroundColor": "#ffffff",
  5340. },
  5341. "elements": Array [
  5342. Object {
  5343. "angle": 0,
  5344. "backgroundColor": "transparent",
  5345. "fillStyle": "hachure",
  5346. "height": 10,
  5347. "id": "id0",
  5348. "isDeleted": false,
  5349. "opacity": 100,
  5350. "roughness": 1,
  5351. "seed": 337897,
  5352. "strokeColor": "#000000",
  5353. "strokeWidth": 1,
  5354. "type": "rectangle",
  5355. "version": 31,
  5356. "versionNonce": 1934038695,
  5357. "width": 10,
  5358. "x": 10,
  5359. "y": 10,
  5360. },
  5361. ],
  5362. },
  5363. Object {
  5364. "appState": Object {
  5365. "currentItemBackgroundColor": "transparent",
  5366. "currentItemFillStyle": "hachure",
  5367. "currentItemFont": "20px Virgil",
  5368. "currentItemOpacity": 100,
  5369. "currentItemRoughness": 1,
  5370. "currentItemStrokeColor": "#000000",
  5371. "currentItemStrokeWidth": 1,
  5372. "exportBackground": true,
  5373. "name": "excalidraw-201933152653",
  5374. "viewBackgroundColor": "#ffffff",
  5375. },
  5376. "elements": Array [
  5377. Object {
  5378. "angle": 0,
  5379. "backgroundColor": "transparent",
  5380. "fillStyle": "hachure",
  5381. "height": 15,
  5382. "id": "id0",
  5383. "isDeleted": false,
  5384. "opacity": 100,
  5385. "roughness": 1,
  5386. "seed": 337897,
  5387. "strokeColor": "#000000",
  5388. "strokeWidth": 1,
  5389. "type": "rectangle",
  5390. "version": 33,
  5391. "versionNonce": 909170919,
  5392. "width": 15,
  5393. "x": 10,
  5394. "y": 10,
  5395. },
  5396. ],
  5397. },
  5398. ],
  5399. }
  5400. `;
  5401. exports[`regression tests resize an element, trying every resize handle: [resize handle se (+5, +5)] number of elements 1`] = `1`;
  5402. exports[`regression tests resize an element, trying every resize handle: [resize handle se (+5, +5)] number of renders 1`] = `51`;
  5403. exports[`regression tests resize an element, trying every resize handle: [resize handle se (-5, -5)] appState 1`] = `
  5404. Object {
  5405. "collaborators": Map {},
  5406. "currentItemBackgroundColor": "transparent",
  5407. "currentItemFillStyle": "hachure",
  5408. "currentItemFont": "20px Virgil",
  5409. "currentItemOpacity": 100,
  5410. "currentItemRoughness": 1,
  5411. "currentItemStrokeColor": "#000000",
  5412. "currentItemStrokeWidth": 1,
  5413. "cursorX": 0,
  5414. "cursorY": 0,
  5415. "draggingElement": null,
  5416. "editingElement": null,
  5417. "elementLocked": false,
  5418. "elementType": "selection",
  5419. "errorMessage": null,
  5420. "exportBackground": true,
  5421. "isCollaborating": false,
  5422. "isLoading": false,
  5423. "isResizing": false,
  5424. "isRotating": false,
  5425. "lastPointerDownWith": "mouse",
  5426. "multiElement": null,
  5427. "name": "excalidraw-201933152653",
  5428. "openMenu": null,
  5429. "resizingElement": null,
  5430. "scrollX": 0,
  5431. "scrollY": 0,
  5432. "scrolledOutside": false,
  5433. "selectedElementIds": Object {
  5434. "id0": true,
  5435. "id1": true,
  5436. "id10": true,
  5437. "id11": true,
  5438. "id12": true,
  5439. "id13": true,
  5440. "id2": true,
  5441. "id3": true,
  5442. "id4": true,
  5443. "id5": true,
  5444. "id6": true,
  5445. "id7": true,
  5446. "id8": true,
  5447. "id9": true,
  5448. },
  5449. "selectionElement": null,
  5450. "shouldCacheIgnoreZoom": false,
  5451. "viewBackgroundColor": "#ffffff",
  5452. "zoom": 1,
  5453. }
  5454. `;
  5455. exports[`regression tests resize an element, trying every resize handle: [resize handle se (-5, -5)] element 0 1`] = `
  5456. Object {
  5457. "angle": 0,
  5458. "backgroundColor": "transparent",
  5459. "fillStyle": "hachure",
  5460. "height": 5,
  5461. "id": "id0",
  5462. "isDeleted": false,
  5463. "opacity": 100,
  5464. "roughness": 1,
  5465. "seed": 337897,
  5466. "strokeColor": "#000000",
  5467. "strokeWidth": 1,
  5468. "type": "rectangle",
  5469. "version": 28,
  5470. "versionNonce": 1532871783,
  5471. "width": 5,
  5472. "x": 10,
  5473. "y": 10,
  5474. }
  5475. `;
  5476. exports[`regression tests resize an element, trying every resize handle: [resize handle se (-5, -5)] history 1`] = `
  5477. Object {
  5478. "recording": false,
  5479. "redoStack": Array [],
  5480. "stateHistory": Array [
  5481. Object {
  5482. "appState": Object {
  5483. "currentItemBackgroundColor": "transparent",
  5484. "currentItemFillStyle": "hachure",
  5485. "currentItemFont": "20px Virgil",
  5486. "currentItemOpacity": 100,
  5487. "currentItemRoughness": 1,
  5488. "currentItemStrokeColor": "#000000",
  5489. "currentItemStrokeWidth": 1,
  5490. "exportBackground": true,
  5491. "name": "excalidraw-201933152653",
  5492. "viewBackgroundColor": "#ffffff",
  5493. },
  5494. "elements": Array [
  5495. Object {
  5496. "angle": 0,
  5497. "backgroundColor": "transparent",
  5498. "fillStyle": "hachure",
  5499. "height": 10,
  5500. "id": "id0",
  5501. "isDeleted": false,
  5502. "opacity": 100,
  5503. "roughness": 1,
  5504. "seed": 337897,
  5505. "strokeColor": "#000000",
  5506. "strokeWidth": 1,
  5507. "type": "rectangle",
  5508. "version": 3,
  5509. "versionNonce": 1278240551,
  5510. "width": 10,
  5511. "x": 10,
  5512. "y": 10,
  5513. },
  5514. ],
  5515. },
  5516. Object {
  5517. "appState": Object {
  5518. "currentItemBackgroundColor": "transparent",
  5519. "currentItemFillStyle": "hachure",
  5520. "currentItemFont": "20px Virgil",
  5521. "currentItemOpacity": 100,
  5522. "currentItemRoughness": 1,
  5523. "currentItemStrokeColor": "#000000",
  5524. "currentItemStrokeWidth": 1,
  5525. "exportBackground": true,
  5526. "name": "excalidraw-201933152653",
  5527. "viewBackgroundColor": "#ffffff",
  5528. },
  5529. "elements": Array [
  5530. Object {
  5531. "angle": 0,
  5532. "backgroundColor": "transparent",
  5533. "fillStyle": "hachure",
  5534. "height": 15,
  5535. "id": "id0",
  5536. "isDeleted": false,
  5537. "opacity": 100,
  5538. "roughness": 1,
  5539. "seed": 337897,
  5540. "strokeColor": "#000000",
  5541. "strokeWidth": 1,
  5542. "type": "rectangle",
  5543. "version": 5,
  5544. "versionNonce": 2019559783,
  5545. "width": 15,
  5546. "x": 5,
  5547. "y": 5,
  5548. },
  5549. ],
  5550. },
  5551. Object {
  5552. "appState": Object {
  5553. "currentItemBackgroundColor": "transparent",
  5554. "currentItemFillStyle": "hachure",
  5555. "currentItemFont": "20px Virgil",
  5556. "currentItemOpacity": 100,
  5557. "currentItemRoughness": 1,
  5558. "currentItemStrokeColor": "#000000",
  5559. "currentItemStrokeWidth": 1,
  5560. "exportBackground": true,
  5561. "name": "excalidraw-201933152653",
  5562. "viewBackgroundColor": "#ffffff",
  5563. },
  5564. "elements": Array [
  5565. Object {
  5566. "angle": 0,
  5567. "backgroundColor": "transparent",
  5568. "fillStyle": "hachure",
  5569. "height": 10,
  5570. "id": "id0",
  5571. "isDeleted": false,
  5572. "opacity": 100,
  5573. "roughness": 1,
  5574. "seed": 337897,
  5575. "strokeColor": "#000000",
  5576. "strokeWidth": 1,
  5577. "type": "rectangle",
  5578. "version": 7,
  5579. "versionNonce": 238820263,
  5580. "width": 10,
  5581. "x": 10,
  5582. "y": 10,
  5583. },
  5584. ],
  5585. },
  5586. Object {
  5587. "appState": Object {
  5588. "currentItemBackgroundColor": "transparent",
  5589. "currentItemFillStyle": "hachure",
  5590. "currentItemFont": "20px Virgil",
  5591. "currentItemOpacity": 100,
  5592. "currentItemRoughness": 1,
  5593. "currentItemStrokeColor": "#000000",
  5594. "currentItemStrokeWidth": 1,
  5595. "exportBackground": true,
  5596. "name": "excalidraw-201933152653",
  5597. "viewBackgroundColor": "#ffffff",
  5598. },
  5599. "elements": Array [
  5600. Object {
  5601. "angle": 0,
  5602. "backgroundColor": "transparent",
  5603. "fillStyle": "hachure",
  5604. "height": 5,
  5605. "id": "id0",
  5606. "isDeleted": false,
  5607. "opacity": 100,
  5608. "roughness": 1,
  5609. "seed": 337897,
  5610. "strokeColor": "#000000",
  5611. "strokeWidth": 1,
  5612. "type": "rectangle",
  5613. "version": 9,
  5614. "versionNonce": 23633383,
  5615. "width": 5,
  5616. "x": 15,
  5617. "y": 15,
  5618. },
  5619. ],
  5620. },
  5621. Object {
  5622. "appState": Object {
  5623. "currentItemBackgroundColor": "transparent",
  5624. "currentItemFillStyle": "hachure",
  5625. "currentItemFont": "20px Virgil",
  5626. "currentItemOpacity": 100,
  5627. "currentItemRoughness": 1,
  5628. "currentItemStrokeColor": "#000000",
  5629. "currentItemStrokeWidth": 1,
  5630. "exportBackground": true,
  5631. "name": "excalidraw-201933152653",
  5632. "viewBackgroundColor": "#ffffff",
  5633. },
  5634. "elements": Array [
  5635. Object {
  5636. "angle": 0,
  5637. "backgroundColor": "transparent",
  5638. "fillStyle": "hachure",
  5639. "height": 10,
  5640. "id": "id0",
  5641. "isDeleted": false,
  5642. "opacity": 100,
  5643. "roughness": 1,
  5644. "seed": 337897,
  5645. "strokeColor": "#000000",
  5646. "strokeWidth": 1,
  5647. "type": "rectangle",
  5648. "version": 11,
  5649. "versionNonce": 747212839,
  5650. "width": 10,
  5651. "x": 10,
  5652. "y": 10,
  5653. },
  5654. ],
  5655. },
  5656. Object {
  5657. "appState": Object {
  5658. "currentItemBackgroundColor": "transparent",
  5659. "currentItemFillStyle": "hachure",
  5660. "currentItemFont": "20px Virgil",
  5661. "currentItemOpacity": 100,
  5662. "currentItemRoughness": 1,
  5663. "currentItemStrokeColor": "#000000",
  5664. "currentItemStrokeWidth": 1,
  5665. "exportBackground": true,
  5666. "name": "excalidraw-201933152653",
  5667. "viewBackgroundColor": "#ffffff",
  5668. },
  5669. "elements": Array [
  5670. Object {
  5671. "angle": 0,
  5672. "backgroundColor": "transparent",
  5673. "fillStyle": "hachure",
  5674. "height": 15,
  5675. "id": "id0",
  5676. "isDeleted": false,
  5677. "opacity": 100,
  5678. "roughness": 1,
  5679. "seed": 337897,
  5680. "strokeColor": "#000000",
  5681. "strokeWidth": 1,
  5682. "type": "rectangle",
  5683. "version": 13,
  5684. "versionNonce": 289600103,
  5685. "width": 5,
  5686. "x": 10,
  5687. "y": 5,
  5688. },
  5689. ],
  5690. },
  5691. Object {
  5692. "appState": Object {
  5693. "currentItemBackgroundColor": "transparent",
  5694. "currentItemFillStyle": "hachure",
  5695. "currentItemFont": "20px Virgil",
  5696. "currentItemOpacity": 100,
  5697. "currentItemRoughness": 1,
  5698. "currentItemStrokeColor": "#000000",
  5699. "currentItemStrokeWidth": 1,
  5700. "exportBackground": true,
  5701. "name": "excalidraw-201933152653",
  5702. "viewBackgroundColor": "#ffffff",
  5703. },
  5704. "elements": Array [
  5705. Object {
  5706. "angle": 0,
  5707. "backgroundColor": "transparent",
  5708. "fillStyle": "hachure",
  5709. "height": 10,
  5710. "id": "id0",
  5711. "isDeleted": false,
  5712. "opacity": 100,
  5713. "roughness": 1,
  5714. "seed": 337897,
  5715. "strokeColor": "#000000",
  5716. "strokeWidth": 1,
  5717. "type": "rectangle",
  5718. "version": 15,
  5719. "versionNonce": 406373543,
  5720. "width": 10,
  5721. "x": 10,
  5722. "y": 10,
  5723. },
  5724. ],
  5725. },
  5726. Object {
  5727. "appState": Object {
  5728. "currentItemBackgroundColor": "transparent",
  5729. "currentItemFillStyle": "hachure",
  5730. "currentItemFont": "20px Virgil",
  5731. "currentItemOpacity": 100,
  5732. "currentItemRoughness": 1,
  5733. "currentItemStrokeColor": "#000000",
  5734. "currentItemStrokeWidth": 1,
  5735. "exportBackground": true,
  5736. "name": "excalidraw-201933152653",
  5737. "viewBackgroundColor": "#ffffff",
  5738. },
  5739. "elements": Array [
  5740. Object {
  5741. "angle": 0,
  5742. "backgroundColor": "transparent",
  5743. "fillStyle": "hachure",
  5744. "height": 5,
  5745. "id": "id0",
  5746. "isDeleted": false,
  5747. "opacity": 100,
  5748. "roughness": 1,
  5749. "seed": 337897,
  5750. "strokeColor": "#000000",
  5751. "strokeWidth": 1,
  5752. "type": "rectangle",
  5753. "version": 17,
  5754. "versionNonce": 1359939303,
  5755. "width": 15,
  5756. "x": 10,
  5757. "y": 15,
  5758. },
  5759. ],
  5760. },
  5761. Object {
  5762. "appState": Object {
  5763. "currentItemBackgroundColor": "transparent",
  5764. "currentItemFillStyle": "hachure",
  5765. "currentItemFont": "20px Virgil",
  5766. "currentItemOpacity": 100,
  5767. "currentItemRoughness": 1,
  5768. "currentItemStrokeColor": "#000000",
  5769. "currentItemStrokeWidth": 1,
  5770. "exportBackground": true,
  5771. "name": "excalidraw-201933152653",
  5772. "viewBackgroundColor": "#ffffff",
  5773. },
  5774. "elements": Array [
  5775. Object {
  5776. "angle": 0,
  5777. "backgroundColor": "transparent",
  5778. "fillStyle": "hachure",
  5779. "height": 10,
  5780. "id": "id0",
  5781. "isDeleted": false,
  5782. "opacity": 100,
  5783. "roughness": 1,
  5784. "seed": 337897,
  5785. "strokeColor": "#000000",
  5786. "strokeWidth": 1,
  5787. "type": "rectangle",
  5788. "version": 19,
  5789. "versionNonce": 845789479,
  5790. "width": 10,
  5791. "x": 10,
  5792. "y": 10,
  5793. },
  5794. ],
  5795. },
  5796. Object {
  5797. "appState": Object {
  5798. "currentItemBackgroundColor": "transparent",
  5799. "currentItemFillStyle": "hachure",
  5800. "currentItemFont": "20px Virgil",
  5801. "currentItemOpacity": 100,
  5802. "currentItemRoughness": 1,
  5803. "currentItemStrokeColor": "#000000",
  5804. "currentItemStrokeWidth": 1,
  5805. "exportBackground": true,
  5806. "name": "excalidraw-201933152653",
  5807. "viewBackgroundColor": "#ffffff",
  5808. },
  5809. "elements": Array [
  5810. Object {
  5811. "angle": 0,
  5812. "backgroundColor": "transparent",
  5813. "fillStyle": "hachure",
  5814. "height": 5,
  5815. "id": "id0",
  5816. "isDeleted": false,
  5817. "opacity": 100,
  5818. "roughness": 1,
  5819. "seed": 337897,
  5820. "strokeColor": "#000000",
  5821. "strokeWidth": 1,
  5822. "type": "rectangle",
  5823. "version": 21,
  5824. "versionNonce": 1508694887,
  5825. "width": 15,
  5826. "x": 5,
  5827. "y": 10,
  5828. },
  5829. ],
  5830. },
  5831. Object {
  5832. "appState": Object {
  5833. "currentItemBackgroundColor": "transparent",
  5834. "currentItemFillStyle": "hachure",
  5835. "currentItemFont": "20px Virgil",
  5836. "currentItemOpacity": 100,
  5837. "currentItemRoughness": 1,
  5838. "currentItemStrokeColor": "#000000",
  5839. "currentItemStrokeWidth": 1,
  5840. "exportBackground": true,
  5841. "name": "excalidraw-201933152653",
  5842. "viewBackgroundColor": "#ffffff",
  5843. },
  5844. "elements": Array [
  5845. Object {
  5846. "angle": 0,
  5847. "backgroundColor": "transparent",
  5848. "fillStyle": "hachure",
  5849. "height": 10,
  5850. "id": "id0",
  5851. "isDeleted": false,
  5852. "opacity": 100,
  5853. "roughness": 1,
  5854. "seed": 337897,
  5855. "strokeColor": "#000000",
  5856. "strokeWidth": 1,
  5857. "type": "rectangle",
  5858. "version": 23,
  5859. "versionNonce": 1279028647,
  5860. "width": 10,
  5861. "x": 10,
  5862. "y": 10,
  5863. },
  5864. ],
  5865. },
  5866. Object {
  5867. "appState": Object {
  5868. "currentItemBackgroundColor": "transparent",
  5869. "currentItemFillStyle": "hachure",
  5870. "currentItemFont": "20px Virgil",
  5871. "currentItemOpacity": 100,
  5872. "currentItemRoughness": 1,
  5873. "currentItemStrokeColor": "#000000",
  5874. "currentItemStrokeWidth": 1,
  5875. "exportBackground": true,
  5876. "name": "excalidraw-201933152653",
  5877. "viewBackgroundColor": "#ffffff",
  5878. },
  5879. "elements": Array [
  5880. Object {
  5881. "angle": 0,
  5882. "backgroundColor": "transparent",
  5883. "fillStyle": "hachure",
  5884. "height": 15,
  5885. "id": "id0",
  5886. "isDeleted": false,
  5887. "opacity": 100,
  5888. "roughness": 1,
  5889. "seed": 337897,
  5890. "strokeColor": "#000000",
  5891. "strokeWidth": 1,
  5892. "type": "rectangle",
  5893. "version": 25,
  5894. "versionNonce": 888958951,
  5895. "width": 5,
  5896. "x": 15,
  5897. "y": 10,
  5898. },
  5899. ],
  5900. },
  5901. Object {
  5902. "appState": Object {
  5903. "currentItemBackgroundColor": "transparent",
  5904. "currentItemFillStyle": "hachure",
  5905. "currentItemFont": "20px Virgil",
  5906. "currentItemOpacity": 100,
  5907. "currentItemRoughness": 1,
  5908. "currentItemStrokeColor": "#000000",
  5909. "currentItemStrokeWidth": 1,
  5910. "exportBackground": true,
  5911. "name": "excalidraw-201933152653",
  5912. "viewBackgroundColor": "#ffffff",
  5913. },
  5914. "elements": Array [
  5915. Object {
  5916. "angle": 0,
  5917. "backgroundColor": "transparent",
  5918. "fillStyle": "hachure",
  5919. "height": 10,
  5920. "id": "id0",
  5921. "isDeleted": false,
  5922. "opacity": 100,
  5923. "roughness": 1,
  5924. "seed": 337897,
  5925. "strokeColor": "#000000",
  5926. "strokeWidth": 1,
  5927. "type": "rectangle",
  5928. "version": 27,
  5929. "versionNonce": 651223591,
  5930. "width": 10,
  5931. "x": 10,
  5932. "y": 10,
  5933. },
  5934. ],
  5935. },
  5936. Object {
  5937. "appState": Object {
  5938. "currentItemBackgroundColor": "transparent",
  5939. "currentItemFillStyle": "hachure",
  5940. "currentItemFont": "20px Virgil",
  5941. "currentItemOpacity": 100,
  5942. "currentItemRoughness": 1,
  5943. "currentItemStrokeColor": "#000000",
  5944. "currentItemStrokeWidth": 1,
  5945. "exportBackground": true,
  5946. "name": "excalidraw-201933152653",
  5947. "viewBackgroundColor": "#ffffff",
  5948. },
  5949. "elements": Array [
  5950. Object {
  5951. "angle": 0,
  5952. "backgroundColor": "transparent",
  5953. "fillStyle": "hachure",
  5954. "height": 5,
  5955. "id": "id0",
  5956. "isDeleted": false,
  5957. "opacity": 100,
  5958. "roughness": 1,
  5959. "seed": 337897,
  5960. "strokeColor": "#000000",
  5961. "strokeWidth": 1,
  5962. "type": "rectangle",
  5963. "version": 29,
  5964. "versionNonce": 1532871783,
  5965. "width": 5,
  5966. "x": 10,
  5967. "y": 10,
  5968. },
  5969. ],
  5970. },
  5971. ],
  5972. }
  5973. `;
  5974. exports[`regression tests resize an element, trying every resize handle: [resize handle se (-5, -5)] number of elements 1`] = `1`;
  5975. exports[`regression tests resize an element, trying every resize handle: [resize handle se (-5, -5)] number of renders 1`] = `45`;
  5976. exports[`regression tests resize an element, trying every resize handle: [resize handle sw (+5, +5)] appState 1`] = `
  5977. Object {
  5978. "collaborators": Map {},
  5979. "currentItemBackgroundColor": "transparent",
  5980. "currentItemFillStyle": "hachure",
  5981. "currentItemFont": "20px Virgil",
  5982. "currentItemOpacity": 100,
  5983. "currentItemRoughness": 1,
  5984. "currentItemStrokeColor": "#000000",
  5985. "currentItemStrokeWidth": 1,
  5986. "cursorX": 0,
  5987. "cursorY": 0,
  5988. "draggingElement": null,
  5989. "editingElement": null,
  5990. "elementLocked": false,
  5991. "elementType": "selection",
  5992. "errorMessage": null,
  5993. "exportBackground": true,
  5994. "isCollaborating": false,
  5995. "isLoading": false,
  5996. "isResizing": false,
  5997. "isRotating": false,
  5998. "lastPointerDownWith": "mouse",
  5999. "multiElement": null,
  6000. "name": "excalidraw-201933152653",
  6001. "openMenu": null,
  6002. "resizingElement": null,
  6003. "scrollX": 0,
  6004. "scrollY": 0,
  6005. "scrolledOutside": false,
  6006. "selectedElementIds": Object {
  6007. "id0": true,
  6008. "id1": true,
  6009. "id10": true,
  6010. "id11": true,
  6011. "id2": true,
  6012. "id3": true,
  6013. "id4": true,
  6014. "id5": true,
  6015. "id6": true,
  6016. "id7": true,
  6017. "id8": true,
  6018. "id9": true,
  6019. },
  6020. "selectionElement": null,
  6021. "shouldCacheIgnoreZoom": false,
  6022. "viewBackgroundColor": "#ffffff",
  6023. "zoom": 1,
  6024. }
  6025. `;
  6026. exports[`regression tests resize an element, trying every resize handle: [resize handle sw (+5, +5)] element 0 1`] = `
  6027. Object {
  6028. "angle": 0,
  6029. "backgroundColor": "transparent",
  6030. "fillStyle": "hachure",
  6031. "height": 15,
  6032. "id": "id0",
  6033. "isDeleted": false,
  6034. "opacity": 100,
  6035. "roughness": 1,
  6036. "seed": 337897,
  6037. "strokeColor": "#000000",
  6038. "strokeWidth": 1,
  6039. "type": "rectangle",
  6040. "version": 24,
  6041. "versionNonce": 888958951,
  6042. "width": 5,
  6043. "x": 15,
  6044. "y": 10,
  6045. }
  6046. `;
  6047. exports[`regression tests resize an element, trying every resize handle: [resize handle sw (+5, +5)] history 1`] = `
  6048. Object {
  6049. "recording": false,
  6050. "redoStack": Array [],
  6051. "stateHistory": Array [
  6052. Object {
  6053. "appState": Object {
  6054. "currentItemBackgroundColor": "transparent",
  6055. "currentItemFillStyle": "hachure",
  6056. "currentItemFont": "20px Virgil",
  6057. "currentItemOpacity": 100,
  6058. "currentItemRoughness": 1,
  6059. "currentItemStrokeColor": "#000000",
  6060. "currentItemStrokeWidth": 1,
  6061. "exportBackground": true,
  6062. "name": "excalidraw-201933152653",
  6063. "viewBackgroundColor": "#ffffff",
  6064. },
  6065. "elements": Array [
  6066. Object {
  6067. "angle": 0,
  6068. "backgroundColor": "transparent",
  6069. "fillStyle": "hachure",
  6070. "height": 10,
  6071. "id": "id0",
  6072. "isDeleted": false,
  6073. "opacity": 100,
  6074. "roughness": 1,
  6075. "seed": 337897,
  6076. "strokeColor": "#000000",
  6077. "strokeWidth": 1,
  6078. "type": "rectangle",
  6079. "version": 3,
  6080. "versionNonce": 1278240551,
  6081. "width": 10,
  6082. "x": 10,
  6083. "y": 10,
  6084. },
  6085. ],
  6086. },
  6087. Object {
  6088. "appState": Object {
  6089. "currentItemBackgroundColor": "transparent",
  6090. "currentItemFillStyle": "hachure",
  6091. "currentItemFont": "20px Virgil",
  6092. "currentItemOpacity": 100,
  6093. "currentItemRoughness": 1,
  6094. "currentItemStrokeColor": "#000000",
  6095. "currentItemStrokeWidth": 1,
  6096. "exportBackground": true,
  6097. "name": "excalidraw-201933152653",
  6098. "viewBackgroundColor": "#ffffff",
  6099. },
  6100. "elements": Array [
  6101. Object {
  6102. "angle": 0,
  6103. "backgroundColor": "transparent",
  6104. "fillStyle": "hachure",
  6105. "height": 15,
  6106. "id": "id0",
  6107. "isDeleted": false,
  6108. "opacity": 100,
  6109. "roughness": 1,
  6110. "seed": 337897,
  6111. "strokeColor": "#000000",
  6112. "strokeWidth": 1,
  6113. "type": "rectangle",
  6114. "version": 5,
  6115. "versionNonce": 2019559783,
  6116. "width": 15,
  6117. "x": 5,
  6118. "y": 5,
  6119. },
  6120. ],
  6121. },
  6122. Object {
  6123. "appState": Object {
  6124. "currentItemBackgroundColor": "transparent",
  6125. "currentItemFillStyle": "hachure",
  6126. "currentItemFont": "20px Virgil",
  6127. "currentItemOpacity": 100,
  6128. "currentItemRoughness": 1,
  6129. "currentItemStrokeColor": "#000000",
  6130. "currentItemStrokeWidth": 1,
  6131. "exportBackground": true,
  6132. "name": "excalidraw-201933152653",
  6133. "viewBackgroundColor": "#ffffff",
  6134. },
  6135. "elements": Array [
  6136. Object {
  6137. "angle": 0,
  6138. "backgroundColor": "transparent",
  6139. "fillStyle": "hachure",
  6140. "height": 10,
  6141. "id": "id0",
  6142. "isDeleted": false,
  6143. "opacity": 100,
  6144. "roughness": 1,
  6145. "seed": 337897,
  6146. "strokeColor": "#000000",
  6147. "strokeWidth": 1,
  6148. "type": "rectangle",
  6149. "version": 7,
  6150. "versionNonce": 238820263,
  6151. "width": 10,
  6152. "x": 10,
  6153. "y": 10,
  6154. },
  6155. ],
  6156. },
  6157. Object {
  6158. "appState": Object {
  6159. "currentItemBackgroundColor": "transparent",
  6160. "currentItemFillStyle": "hachure",
  6161. "currentItemFont": "20px Virgil",
  6162. "currentItemOpacity": 100,
  6163. "currentItemRoughness": 1,
  6164. "currentItemStrokeColor": "#000000",
  6165. "currentItemStrokeWidth": 1,
  6166. "exportBackground": true,
  6167. "name": "excalidraw-201933152653",
  6168. "viewBackgroundColor": "#ffffff",
  6169. },
  6170. "elements": Array [
  6171. Object {
  6172. "angle": 0,
  6173. "backgroundColor": "transparent",
  6174. "fillStyle": "hachure",
  6175. "height": 5,
  6176. "id": "id0",
  6177. "isDeleted": false,
  6178. "opacity": 100,
  6179. "roughness": 1,
  6180. "seed": 337897,
  6181. "strokeColor": "#000000",
  6182. "strokeWidth": 1,
  6183. "type": "rectangle",
  6184. "version": 9,
  6185. "versionNonce": 23633383,
  6186. "width": 5,
  6187. "x": 15,
  6188. "y": 15,
  6189. },
  6190. ],
  6191. },
  6192. Object {
  6193. "appState": Object {
  6194. "currentItemBackgroundColor": "transparent",
  6195. "currentItemFillStyle": "hachure",
  6196. "currentItemFont": "20px Virgil",
  6197. "currentItemOpacity": 100,
  6198. "currentItemRoughness": 1,
  6199. "currentItemStrokeColor": "#000000",
  6200. "currentItemStrokeWidth": 1,
  6201. "exportBackground": true,
  6202. "name": "excalidraw-201933152653",
  6203. "viewBackgroundColor": "#ffffff",
  6204. },
  6205. "elements": Array [
  6206. Object {
  6207. "angle": 0,
  6208. "backgroundColor": "transparent",
  6209. "fillStyle": "hachure",
  6210. "height": 10,
  6211. "id": "id0",
  6212. "isDeleted": false,
  6213. "opacity": 100,
  6214. "roughness": 1,
  6215. "seed": 337897,
  6216. "strokeColor": "#000000",
  6217. "strokeWidth": 1,
  6218. "type": "rectangle",
  6219. "version": 11,
  6220. "versionNonce": 747212839,
  6221. "width": 10,
  6222. "x": 10,
  6223. "y": 10,
  6224. },
  6225. ],
  6226. },
  6227. Object {
  6228. "appState": Object {
  6229. "currentItemBackgroundColor": "transparent",
  6230. "currentItemFillStyle": "hachure",
  6231. "currentItemFont": "20px Virgil",
  6232. "currentItemOpacity": 100,
  6233. "currentItemRoughness": 1,
  6234. "currentItemStrokeColor": "#000000",
  6235. "currentItemStrokeWidth": 1,
  6236. "exportBackground": true,
  6237. "name": "excalidraw-201933152653",
  6238. "viewBackgroundColor": "#ffffff",
  6239. },
  6240. "elements": Array [
  6241. Object {
  6242. "angle": 0,
  6243. "backgroundColor": "transparent",
  6244. "fillStyle": "hachure",
  6245. "height": 15,
  6246. "id": "id0",
  6247. "isDeleted": false,
  6248. "opacity": 100,
  6249. "roughness": 1,
  6250. "seed": 337897,
  6251. "strokeColor": "#000000",
  6252. "strokeWidth": 1,
  6253. "type": "rectangle",
  6254. "version": 13,
  6255. "versionNonce": 289600103,
  6256. "width": 5,
  6257. "x": 10,
  6258. "y": 5,
  6259. },
  6260. ],
  6261. },
  6262. Object {
  6263. "appState": Object {
  6264. "currentItemBackgroundColor": "transparent",
  6265. "currentItemFillStyle": "hachure",
  6266. "currentItemFont": "20px Virgil",
  6267. "currentItemOpacity": 100,
  6268. "currentItemRoughness": 1,
  6269. "currentItemStrokeColor": "#000000",
  6270. "currentItemStrokeWidth": 1,
  6271. "exportBackground": true,
  6272. "name": "excalidraw-201933152653",
  6273. "viewBackgroundColor": "#ffffff",
  6274. },
  6275. "elements": Array [
  6276. Object {
  6277. "angle": 0,
  6278. "backgroundColor": "transparent",
  6279. "fillStyle": "hachure",
  6280. "height": 10,
  6281. "id": "id0",
  6282. "isDeleted": false,
  6283. "opacity": 100,
  6284. "roughness": 1,
  6285. "seed": 337897,
  6286. "strokeColor": "#000000",
  6287. "strokeWidth": 1,
  6288. "type": "rectangle",
  6289. "version": 15,
  6290. "versionNonce": 406373543,
  6291. "width": 10,
  6292. "x": 10,
  6293. "y": 10,
  6294. },
  6295. ],
  6296. },
  6297. Object {
  6298. "appState": Object {
  6299. "currentItemBackgroundColor": "transparent",
  6300. "currentItemFillStyle": "hachure",
  6301. "currentItemFont": "20px Virgil",
  6302. "currentItemOpacity": 100,
  6303. "currentItemRoughness": 1,
  6304. "currentItemStrokeColor": "#000000",
  6305. "currentItemStrokeWidth": 1,
  6306. "exportBackground": true,
  6307. "name": "excalidraw-201933152653",
  6308. "viewBackgroundColor": "#ffffff",
  6309. },
  6310. "elements": Array [
  6311. Object {
  6312. "angle": 0,
  6313. "backgroundColor": "transparent",
  6314. "fillStyle": "hachure",
  6315. "height": 5,
  6316. "id": "id0",
  6317. "isDeleted": false,
  6318. "opacity": 100,
  6319. "roughness": 1,
  6320. "seed": 337897,
  6321. "strokeColor": "#000000",
  6322. "strokeWidth": 1,
  6323. "type": "rectangle",
  6324. "version": 17,
  6325. "versionNonce": 1359939303,
  6326. "width": 15,
  6327. "x": 10,
  6328. "y": 15,
  6329. },
  6330. ],
  6331. },
  6332. Object {
  6333. "appState": Object {
  6334. "currentItemBackgroundColor": "transparent",
  6335. "currentItemFillStyle": "hachure",
  6336. "currentItemFont": "20px Virgil",
  6337. "currentItemOpacity": 100,
  6338. "currentItemRoughness": 1,
  6339. "currentItemStrokeColor": "#000000",
  6340. "currentItemStrokeWidth": 1,
  6341. "exportBackground": true,
  6342. "name": "excalidraw-201933152653",
  6343. "viewBackgroundColor": "#ffffff",
  6344. },
  6345. "elements": Array [
  6346. Object {
  6347. "angle": 0,
  6348. "backgroundColor": "transparent",
  6349. "fillStyle": "hachure",
  6350. "height": 10,
  6351. "id": "id0",
  6352. "isDeleted": false,
  6353. "opacity": 100,
  6354. "roughness": 1,
  6355. "seed": 337897,
  6356. "strokeColor": "#000000",
  6357. "strokeWidth": 1,
  6358. "type": "rectangle",
  6359. "version": 19,
  6360. "versionNonce": 845789479,
  6361. "width": 10,
  6362. "x": 10,
  6363. "y": 10,
  6364. },
  6365. ],
  6366. },
  6367. Object {
  6368. "appState": Object {
  6369. "currentItemBackgroundColor": "transparent",
  6370. "currentItemFillStyle": "hachure",
  6371. "currentItemFont": "20px Virgil",
  6372. "currentItemOpacity": 100,
  6373. "currentItemRoughness": 1,
  6374. "currentItemStrokeColor": "#000000",
  6375. "currentItemStrokeWidth": 1,
  6376. "exportBackground": true,
  6377. "name": "excalidraw-201933152653",
  6378. "viewBackgroundColor": "#ffffff",
  6379. },
  6380. "elements": Array [
  6381. Object {
  6382. "angle": 0,
  6383. "backgroundColor": "transparent",
  6384. "fillStyle": "hachure",
  6385. "height": 5,
  6386. "id": "id0",
  6387. "isDeleted": false,
  6388. "opacity": 100,
  6389. "roughness": 1,
  6390. "seed": 337897,
  6391. "strokeColor": "#000000",
  6392. "strokeWidth": 1,
  6393. "type": "rectangle",
  6394. "version": 21,
  6395. "versionNonce": 1508694887,
  6396. "width": 15,
  6397. "x": 5,
  6398. "y": 10,
  6399. },
  6400. ],
  6401. },
  6402. Object {
  6403. "appState": Object {
  6404. "currentItemBackgroundColor": "transparent",
  6405. "currentItemFillStyle": "hachure",
  6406. "currentItemFont": "20px Virgil",
  6407. "currentItemOpacity": 100,
  6408. "currentItemRoughness": 1,
  6409. "currentItemStrokeColor": "#000000",
  6410. "currentItemStrokeWidth": 1,
  6411. "exportBackground": true,
  6412. "name": "excalidraw-201933152653",
  6413. "viewBackgroundColor": "#ffffff",
  6414. },
  6415. "elements": Array [
  6416. Object {
  6417. "angle": 0,
  6418. "backgroundColor": "transparent",
  6419. "fillStyle": "hachure",
  6420. "height": 10,
  6421. "id": "id0",
  6422. "isDeleted": false,
  6423. "opacity": 100,
  6424. "roughness": 1,
  6425. "seed": 337897,
  6426. "strokeColor": "#000000",
  6427. "strokeWidth": 1,
  6428. "type": "rectangle",
  6429. "version": 23,
  6430. "versionNonce": 1279028647,
  6431. "width": 10,
  6432. "x": 10,
  6433. "y": 10,
  6434. },
  6435. ],
  6436. },
  6437. Object {
  6438. "appState": Object {
  6439. "currentItemBackgroundColor": "transparent",
  6440. "currentItemFillStyle": "hachure",
  6441. "currentItemFont": "20px Virgil",
  6442. "currentItemOpacity": 100,
  6443. "currentItemRoughness": 1,
  6444. "currentItemStrokeColor": "#000000",
  6445. "currentItemStrokeWidth": 1,
  6446. "exportBackground": true,
  6447. "name": "excalidraw-201933152653",
  6448. "viewBackgroundColor": "#ffffff",
  6449. },
  6450. "elements": Array [
  6451. Object {
  6452. "angle": 0,
  6453. "backgroundColor": "transparent",
  6454. "fillStyle": "hachure",
  6455. "height": 15,
  6456. "id": "id0",
  6457. "isDeleted": false,
  6458. "opacity": 100,
  6459. "roughness": 1,
  6460. "seed": 337897,
  6461. "strokeColor": "#000000",
  6462. "strokeWidth": 1,
  6463. "type": "rectangle",
  6464. "version": 25,
  6465. "versionNonce": 888958951,
  6466. "width": 5,
  6467. "x": 15,
  6468. "y": 10,
  6469. },
  6470. ],
  6471. },
  6472. ],
  6473. }
  6474. `;
  6475. exports[`regression tests resize an element, trying every resize handle: [resize handle sw (+5, +5)] number of elements 1`] = `1`;
  6476. exports[`regression tests resize an element, trying every resize handle: [resize handle sw (+5, +5)] number of renders 1`] = `39`;
  6477. exports[`regression tests resize an element, trying every resize handle: [resize handle sw (-5, -5)] appState 1`] = `
  6478. Object {
  6479. "collaborators": Map {},
  6480. "currentItemBackgroundColor": "transparent",
  6481. "currentItemFillStyle": "hachure",
  6482. "currentItemFont": "20px Virgil",
  6483. "currentItemOpacity": 100,
  6484. "currentItemRoughness": 1,
  6485. "currentItemStrokeColor": "#000000",
  6486. "currentItemStrokeWidth": 1,
  6487. "cursorX": 0,
  6488. "cursorY": 0,
  6489. "draggingElement": null,
  6490. "editingElement": null,
  6491. "elementLocked": false,
  6492. "elementType": "selection",
  6493. "errorMessage": null,
  6494. "exportBackground": true,
  6495. "isCollaborating": false,
  6496. "isLoading": false,
  6497. "isResizing": false,
  6498. "isRotating": false,
  6499. "lastPointerDownWith": "mouse",
  6500. "multiElement": null,
  6501. "name": "excalidraw-201933152653",
  6502. "openMenu": null,
  6503. "resizingElement": null,
  6504. "scrollX": 0,
  6505. "scrollY": 0,
  6506. "scrolledOutside": false,
  6507. "selectedElementIds": Object {
  6508. "id0": true,
  6509. "id1": true,
  6510. "id2": true,
  6511. "id3": true,
  6512. "id4": true,
  6513. "id5": true,
  6514. "id6": true,
  6515. "id7": true,
  6516. "id8": true,
  6517. "id9": true,
  6518. },
  6519. "selectionElement": null,
  6520. "shouldCacheIgnoreZoom": false,
  6521. "viewBackgroundColor": "#ffffff",
  6522. "zoom": 1,
  6523. }
  6524. `;
  6525. exports[`regression tests resize an element, trying every resize handle: [resize handle sw (-5, -5)] element 0 1`] = `
  6526. Object {
  6527. "angle": 0,
  6528. "backgroundColor": "transparent",
  6529. "fillStyle": "hachure",
  6530. "height": 5,
  6531. "id": "id0",
  6532. "isDeleted": false,
  6533. "opacity": 100,
  6534. "roughness": 1,
  6535. "seed": 337897,
  6536. "strokeColor": "#000000",
  6537. "strokeWidth": 1,
  6538. "type": "rectangle",
  6539. "version": 20,
  6540. "versionNonce": 1508694887,
  6541. "width": 15,
  6542. "x": 5,
  6543. "y": 10,
  6544. }
  6545. `;
  6546. exports[`regression tests resize an element, trying every resize handle: [resize handle sw (-5, -5)] history 1`] = `
  6547. Object {
  6548. "recording": false,
  6549. "redoStack": Array [],
  6550. "stateHistory": Array [
  6551. Object {
  6552. "appState": Object {
  6553. "currentItemBackgroundColor": "transparent",
  6554. "currentItemFillStyle": "hachure",
  6555. "currentItemFont": "20px Virgil",
  6556. "currentItemOpacity": 100,
  6557. "currentItemRoughness": 1,
  6558. "currentItemStrokeColor": "#000000",
  6559. "currentItemStrokeWidth": 1,
  6560. "exportBackground": true,
  6561. "name": "excalidraw-201933152653",
  6562. "viewBackgroundColor": "#ffffff",
  6563. },
  6564. "elements": Array [
  6565. Object {
  6566. "angle": 0,
  6567. "backgroundColor": "transparent",
  6568. "fillStyle": "hachure",
  6569. "height": 10,
  6570. "id": "id0",
  6571. "isDeleted": false,
  6572. "opacity": 100,
  6573. "roughness": 1,
  6574. "seed": 337897,
  6575. "strokeColor": "#000000",
  6576. "strokeWidth": 1,
  6577. "type": "rectangle",
  6578. "version": 3,
  6579. "versionNonce": 1278240551,
  6580. "width": 10,
  6581. "x": 10,
  6582. "y": 10,
  6583. },
  6584. ],
  6585. },
  6586. Object {
  6587. "appState": Object {
  6588. "currentItemBackgroundColor": "transparent",
  6589. "currentItemFillStyle": "hachure",
  6590. "currentItemFont": "20px Virgil",
  6591. "currentItemOpacity": 100,
  6592. "currentItemRoughness": 1,
  6593. "currentItemStrokeColor": "#000000",
  6594. "currentItemStrokeWidth": 1,
  6595. "exportBackground": true,
  6596. "name": "excalidraw-201933152653",
  6597. "viewBackgroundColor": "#ffffff",
  6598. },
  6599. "elements": Array [
  6600. Object {
  6601. "angle": 0,
  6602. "backgroundColor": "transparent",
  6603. "fillStyle": "hachure",
  6604. "height": 15,
  6605. "id": "id0",
  6606. "isDeleted": false,
  6607. "opacity": 100,
  6608. "roughness": 1,
  6609. "seed": 337897,
  6610. "strokeColor": "#000000",
  6611. "strokeWidth": 1,
  6612. "type": "rectangle",
  6613. "version": 5,
  6614. "versionNonce": 2019559783,
  6615. "width": 15,
  6616. "x": 5,
  6617. "y": 5,
  6618. },
  6619. ],
  6620. },
  6621. Object {
  6622. "appState": Object {
  6623. "currentItemBackgroundColor": "transparent",
  6624. "currentItemFillStyle": "hachure",
  6625. "currentItemFont": "20px Virgil",
  6626. "currentItemOpacity": 100,
  6627. "currentItemRoughness": 1,
  6628. "currentItemStrokeColor": "#000000",
  6629. "currentItemStrokeWidth": 1,
  6630. "exportBackground": true,
  6631. "name": "excalidraw-201933152653",
  6632. "viewBackgroundColor": "#ffffff",
  6633. },
  6634. "elements": Array [
  6635. Object {
  6636. "angle": 0,
  6637. "backgroundColor": "transparent",
  6638. "fillStyle": "hachure",
  6639. "height": 10,
  6640. "id": "id0",
  6641. "isDeleted": false,
  6642. "opacity": 100,
  6643. "roughness": 1,
  6644. "seed": 337897,
  6645. "strokeColor": "#000000",
  6646. "strokeWidth": 1,
  6647. "type": "rectangle",
  6648. "version": 7,
  6649. "versionNonce": 238820263,
  6650. "width": 10,
  6651. "x": 10,
  6652. "y": 10,
  6653. },
  6654. ],
  6655. },
  6656. Object {
  6657. "appState": Object {
  6658. "currentItemBackgroundColor": "transparent",
  6659. "currentItemFillStyle": "hachure",
  6660. "currentItemFont": "20px Virgil",
  6661. "currentItemOpacity": 100,
  6662. "currentItemRoughness": 1,
  6663. "currentItemStrokeColor": "#000000",
  6664. "currentItemStrokeWidth": 1,
  6665. "exportBackground": true,
  6666. "name": "excalidraw-201933152653",
  6667. "viewBackgroundColor": "#ffffff",
  6668. },
  6669. "elements": Array [
  6670. Object {
  6671. "angle": 0,
  6672. "backgroundColor": "transparent",
  6673. "fillStyle": "hachure",
  6674. "height": 5,
  6675. "id": "id0",
  6676. "isDeleted": false,
  6677. "opacity": 100,
  6678. "roughness": 1,
  6679. "seed": 337897,
  6680. "strokeColor": "#000000",
  6681. "strokeWidth": 1,
  6682. "type": "rectangle",
  6683. "version": 9,
  6684. "versionNonce": 23633383,
  6685. "width": 5,
  6686. "x": 15,
  6687. "y": 15,
  6688. },
  6689. ],
  6690. },
  6691. Object {
  6692. "appState": Object {
  6693. "currentItemBackgroundColor": "transparent",
  6694. "currentItemFillStyle": "hachure",
  6695. "currentItemFont": "20px Virgil",
  6696. "currentItemOpacity": 100,
  6697. "currentItemRoughness": 1,
  6698. "currentItemStrokeColor": "#000000",
  6699. "currentItemStrokeWidth": 1,
  6700. "exportBackground": true,
  6701. "name": "excalidraw-201933152653",
  6702. "viewBackgroundColor": "#ffffff",
  6703. },
  6704. "elements": Array [
  6705. Object {
  6706. "angle": 0,
  6707. "backgroundColor": "transparent",
  6708. "fillStyle": "hachure",
  6709. "height": 10,
  6710. "id": "id0",
  6711. "isDeleted": false,
  6712. "opacity": 100,
  6713. "roughness": 1,
  6714. "seed": 337897,
  6715. "strokeColor": "#000000",
  6716. "strokeWidth": 1,
  6717. "type": "rectangle",
  6718. "version": 11,
  6719. "versionNonce": 747212839,
  6720. "width": 10,
  6721. "x": 10,
  6722. "y": 10,
  6723. },
  6724. ],
  6725. },
  6726. Object {
  6727. "appState": Object {
  6728. "currentItemBackgroundColor": "transparent",
  6729. "currentItemFillStyle": "hachure",
  6730. "currentItemFont": "20px Virgil",
  6731. "currentItemOpacity": 100,
  6732. "currentItemRoughness": 1,
  6733. "currentItemStrokeColor": "#000000",
  6734. "currentItemStrokeWidth": 1,
  6735. "exportBackground": true,
  6736. "name": "excalidraw-201933152653",
  6737. "viewBackgroundColor": "#ffffff",
  6738. },
  6739. "elements": Array [
  6740. Object {
  6741. "angle": 0,
  6742. "backgroundColor": "transparent",
  6743. "fillStyle": "hachure",
  6744. "height": 15,
  6745. "id": "id0",
  6746. "isDeleted": false,
  6747. "opacity": 100,
  6748. "roughness": 1,
  6749. "seed": 337897,
  6750. "strokeColor": "#000000",
  6751. "strokeWidth": 1,
  6752. "type": "rectangle",
  6753. "version": 13,
  6754. "versionNonce": 289600103,
  6755. "width": 5,
  6756. "x": 10,
  6757. "y": 5,
  6758. },
  6759. ],
  6760. },
  6761. Object {
  6762. "appState": Object {
  6763. "currentItemBackgroundColor": "transparent",
  6764. "currentItemFillStyle": "hachure",
  6765. "currentItemFont": "20px Virgil",
  6766. "currentItemOpacity": 100,
  6767. "currentItemRoughness": 1,
  6768. "currentItemStrokeColor": "#000000",
  6769. "currentItemStrokeWidth": 1,
  6770. "exportBackground": true,
  6771. "name": "excalidraw-201933152653",
  6772. "viewBackgroundColor": "#ffffff",
  6773. },
  6774. "elements": Array [
  6775. Object {
  6776. "angle": 0,
  6777. "backgroundColor": "transparent",
  6778. "fillStyle": "hachure",
  6779. "height": 10,
  6780. "id": "id0",
  6781. "isDeleted": false,
  6782. "opacity": 100,
  6783. "roughness": 1,
  6784. "seed": 337897,
  6785. "strokeColor": "#000000",
  6786. "strokeWidth": 1,
  6787. "type": "rectangle",
  6788. "version": 15,
  6789. "versionNonce": 406373543,
  6790. "width": 10,
  6791. "x": 10,
  6792. "y": 10,
  6793. },
  6794. ],
  6795. },
  6796. Object {
  6797. "appState": Object {
  6798. "currentItemBackgroundColor": "transparent",
  6799. "currentItemFillStyle": "hachure",
  6800. "currentItemFont": "20px Virgil",
  6801. "currentItemOpacity": 100,
  6802. "currentItemRoughness": 1,
  6803. "currentItemStrokeColor": "#000000",
  6804. "currentItemStrokeWidth": 1,
  6805. "exportBackground": true,
  6806. "name": "excalidraw-201933152653",
  6807. "viewBackgroundColor": "#ffffff",
  6808. },
  6809. "elements": Array [
  6810. Object {
  6811. "angle": 0,
  6812. "backgroundColor": "transparent",
  6813. "fillStyle": "hachure",
  6814. "height": 5,
  6815. "id": "id0",
  6816. "isDeleted": false,
  6817. "opacity": 100,
  6818. "roughness": 1,
  6819. "seed": 337897,
  6820. "strokeColor": "#000000",
  6821. "strokeWidth": 1,
  6822. "type": "rectangle",
  6823. "version": 17,
  6824. "versionNonce": 1359939303,
  6825. "width": 15,
  6826. "x": 10,
  6827. "y": 15,
  6828. },
  6829. ],
  6830. },
  6831. Object {
  6832. "appState": Object {
  6833. "currentItemBackgroundColor": "transparent",
  6834. "currentItemFillStyle": "hachure",
  6835. "currentItemFont": "20px Virgil",
  6836. "currentItemOpacity": 100,
  6837. "currentItemRoughness": 1,
  6838. "currentItemStrokeColor": "#000000",
  6839. "currentItemStrokeWidth": 1,
  6840. "exportBackground": true,
  6841. "name": "excalidraw-201933152653",
  6842. "viewBackgroundColor": "#ffffff",
  6843. },
  6844. "elements": Array [
  6845. Object {
  6846. "angle": 0,
  6847. "backgroundColor": "transparent",
  6848. "fillStyle": "hachure",
  6849. "height": 10,
  6850. "id": "id0",
  6851. "isDeleted": false,
  6852. "opacity": 100,
  6853. "roughness": 1,
  6854. "seed": 337897,
  6855. "strokeColor": "#000000",
  6856. "strokeWidth": 1,
  6857. "type": "rectangle",
  6858. "version": 19,
  6859. "versionNonce": 845789479,
  6860. "width": 10,
  6861. "x": 10,
  6862. "y": 10,
  6863. },
  6864. ],
  6865. },
  6866. Object {
  6867. "appState": Object {
  6868. "currentItemBackgroundColor": "transparent",
  6869. "currentItemFillStyle": "hachure",
  6870. "currentItemFont": "20px Virgil",
  6871. "currentItemOpacity": 100,
  6872. "currentItemRoughness": 1,
  6873. "currentItemStrokeColor": "#000000",
  6874. "currentItemStrokeWidth": 1,
  6875. "exportBackground": true,
  6876. "name": "excalidraw-201933152653",
  6877. "viewBackgroundColor": "#ffffff",
  6878. },
  6879. "elements": Array [
  6880. Object {
  6881. "angle": 0,
  6882. "backgroundColor": "transparent",
  6883. "fillStyle": "hachure",
  6884. "height": 5,
  6885. "id": "id0",
  6886. "isDeleted": false,
  6887. "opacity": 100,
  6888. "roughness": 1,
  6889. "seed": 337897,
  6890. "strokeColor": "#000000",
  6891. "strokeWidth": 1,
  6892. "type": "rectangle",
  6893. "version": 21,
  6894. "versionNonce": 1508694887,
  6895. "width": 15,
  6896. "x": 5,
  6897. "y": 10,
  6898. },
  6899. ],
  6900. },
  6901. ],
  6902. }
  6903. `;
  6904. exports[`regression tests resize an element, trying every resize handle: [resize handle sw (-5, -5)] number of elements 1`] = `1`;
  6905. exports[`regression tests resize an element, trying every resize handle: [resize handle sw (-5, -5)] number of renders 1`] = `33`;
  6906. exports[`regression tests resize an element, trying every resize handle: [unresize handle ne (+5, +5)] appState 1`] = `
  6907. Object {
  6908. "collaborators": Map {},
  6909. "currentItemBackgroundColor": "transparent",
  6910. "currentItemFillStyle": "hachure",
  6911. "currentItemFont": "20px Virgil",
  6912. "currentItemOpacity": 100,
  6913. "currentItemRoughness": 1,
  6914. "currentItemStrokeColor": "#000000",
  6915. "currentItemStrokeWidth": 1,
  6916. "cursorX": 0,
  6917. "cursorY": 0,
  6918. "draggingElement": null,
  6919. "editingElement": null,
  6920. "elementLocked": false,
  6921. "elementType": "selection",
  6922. "errorMessage": null,
  6923. "exportBackground": true,
  6924. "isCollaborating": false,
  6925. "isLoading": false,
  6926. "isResizing": false,
  6927. "isRotating": false,
  6928. "lastPointerDownWith": "mouse",
  6929. "multiElement": null,
  6930. "name": "excalidraw-201933152653",
  6931. "openMenu": null,
  6932. "resizingElement": null,
  6933. "scrollX": 0,
  6934. "scrollY": 0,
  6935. "scrolledOutside": false,
  6936. "selectedElementIds": Object {
  6937. "id0": true,
  6938. "id1": true,
  6939. "id2": true,
  6940. "id3": true,
  6941. "id4": true,
  6942. "id5": true,
  6943. "id6": true,
  6944. "id7": true,
  6945. "id8": true,
  6946. },
  6947. "selectionElement": null,
  6948. "shouldCacheIgnoreZoom": false,
  6949. "viewBackgroundColor": "#ffffff",
  6950. "zoom": 1,
  6951. }
  6952. `;
  6953. exports[`regression tests resize an element, trying every resize handle: [unresize handle ne (+5, +5)] element 0 1`] = `
  6954. Object {
  6955. "angle": 0,
  6956. "backgroundColor": "transparent",
  6957. "fillStyle": "hachure",
  6958. "height": 10,
  6959. "id": "id0",
  6960. "isDeleted": false,
  6961. "opacity": 100,
  6962. "roughness": 1,
  6963. "seed": 337897,
  6964. "strokeColor": "#000000",
  6965. "strokeWidth": 1,
  6966. "type": "rectangle",
  6967. "version": 18,
  6968. "versionNonce": 845789479,
  6969. "width": 10,
  6970. "x": 10,
  6971. "y": 10,
  6972. }
  6973. `;
  6974. exports[`regression tests resize an element, trying every resize handle: [unresize handle ne (+5, +5)] history 1`] = `
  6975. Object {
  6976. "recording": false,
  6977. "redoStack": Array [],
  6978. "stateHistory": Array [
  6979. Object {
  6980. "appState": Object {
  6981. "currentItemBackgroundColor": "transparent",
  6982. "currentItemFillStyle": "hachure",
  6983. "currentItemFont": "20px Virgil",
  6984. "currentItemOpacity": 100,
  6985. "currentItemRoughness": 1,
  6986. "currentItemStrokeColor": "#000000",
  6987. "currentItemStrokeWidth": 1,
  6988. "exportBackground": true,
  6989. "name": "excalidraw-201933152653",
  6990. "viewBackgroundColor": "#ffffff",
  6991. },
  6992. "elements": Array [
  6993. Object {
  6994. "angle": 0,
  6995. "backgroundColor": "transparent",
  6996. "fillStyle": "hachure",
  6997. "height": 10,
  6998. "id": "id0",
  6999. "isDeleted": false,
  7000. "opacity": 100,
  7001. "roughness": 1,
  7002. "seed": 337897,
  7003. "strokeColor": "#000000",
  7004. "strokeWidth": 1,
  7005. "type": "rectangle",
  7006. "version": 3,
  7007. "versionNonce": 1278240551,
  7008. "width": 10,
  7009. "x": 10,
  7010. "y": 10,
  7011. },
  7012. ],
  7013. },
  7014. Object {
  7015. "appState": Object {
  7016. "currentItemBackgroundColor": "transparent",
  7017. "currentItemFillStyle": "hachure",
  7018. "currentItemFont": "20px Virgil",
  7019. "currentItemOpacity": 100,
  7020. "currentItemRoughness": 1,
  7021. "currentItemStrokeColor": "#000000",
  7022. "currentItemStrokeWidth": 1,
  7023. "exportBackground": true,
  7024. "name": "excalidraw-201933152653",
  7025. "viewBackgroundColor": "#ffffff",
  7026. },
  7027. "elements": Array [
  7028. Object {
  7029. "angle": 0,
  7030. "backgroundColor": "transparent",
  7031. "fillStyle": "hachure",
  7032. "height": 15,
  7033. "id": "id0",
  7034. "isDeleted": false,
  7035. "opacity": 100,
  7036. "roughness": 1,
  7037. "seed": 337897,
  7038. "strokeColor": "#000000",
  7039. "strokeWidth": 1,
  7040. "type": "rectangle",
  7041. "version": 5,
  7042. "versionNonce": 2019559783,
  7043. "width": 15,
  7044. "x": 5,
  7045. "y": 5,
  7046. },
  7047. ],
  7048. },
  7049. Object {
  7050. "appState": Object {
  7051. "currentItemBackgroundColor": "transparent",
  7052. "currentItemFillStyle": "hachure",
  7053. "currentItemFont": "20px Virgil",
  7054. "currentItemOpacity": 100,
  7055. "currentItemRoughness": 1,
  7056. "currentItemStrokeColor": "#000000",
  7057. "currentItemStrokeWidth": 1,
  7058. "exportBackground": true,
  7059. "name": "excalidraw-201933152653",
  7060. "viewBackgroundColor": "#ffffff",
  7061. },
  7062. "elements": Array [
  7063. Object {
  7064. "angle": 0,
  7065. "backgroundColor": "transparent",
  7066. "fillStyle": "hachure",
  7067. "height": 10,
  7068. "id": "id0",
  7069. "isDeleted": false,
  7070. "opacity": 100,
  7071. "roughness": 1,
  7072. "seed": 337897,
  7073. "strokeColor": "#000000",
  7074. "strokeWidth": 1,
  7075. "type": "rectangle",
  7076. "version": 7,
  7077. "versionNonce": 238820263,
  7078. "width": 10,
  7079. "x": 10,
  7080. "y": 10,
  7081. },
  7082. ],
  7083. },
  7084. Object {
  7085. "appState": Object {
  7086. "currentItemBackgroundColor": "transparent",
  7087. "currentItemFillStyle": "hachure",
  7088. "currentItemFont": "20px Virgil",
  7089. "currentItemOpacity": 100,
  7090. "currentItemRoughness": 1,
  7091. "currentItemStrokeColor": "#000000",
  7092. "currentItemStrokeWidth": 1,
  7093. "exportBackground": true,
  7094. "name": "excalidraw-201933152653",
  7095. "viewBackgroundColor": "#ffffff",
  7096. },
  7097. "elements": Array [
  7098. Object {
  7099. "angle": 0,
  7100. "backgroundColor": "transparent",
  7101. "fillStyle": "hachure",
  7102. "height": 5,
  7103. "id": "id0",
  7104. "isDeleted": false,
  7105. "opacity": 100,
  7106. "roughness": 1,
  7107. "seed": 337897,
  7108. "strokeColor": "#000000",
  7109. "strokeWidth": 1,
  7110. "type": "rectangle",
  7111. "version": 9,
  7112. "versionNonce": 23633383,
  7113. "width": 5,
  7114. "x": 15,
  7115. "y": 15,
  7116. },
  7117. ],
  7118. },
  7119. Object {
  7120. "appState": Object {
  7121. "currentItemBackgroundColor": "transparent",
  7122. "currentItemFillStyle": "hachure",
  7123. "currentItemFont": "20px Virgil",
  7124. "currentItemOpacity": 100,
  7125. "currentItemRoughness": 1,
  7126. "currentItemStrokeColor": "#000000",
  7127. "currentItemStrokeWidth": 1,
  7128. "exportBackground": true,
  7129. "name": "excalidraw-201933152653",
  7130. "viewBackgroundColor": "#ffffff",
  7131. },
  7132. "elements": Array [
  7133. Object {
  7134. "angle": 0,
  7135. "backgroundColor": "transparent",
  7136. "fillStyle": "hachure",
  7137. "height": 10,
  7138. "id": "id0",
  7139. "isDeleted": false,
  7140. "opacity": 100,
  7141. "roughness": 1,
  7142. "seed": 337897,
  7143. "strokeColor": "#000000",
  7144. "strokeWidth": 1,
  7145. "type": "rectangle",
  7146. "version": 11,
  7147. "versionNonce": 747212839,
  7148. "width": 10,
  7149. "x": 10,
  7150. "y": 10,
  7151. },
  7152. ],
  7153. },
  7154. Object {
  7155. "appState": Object {
  7156. "currentItemBackgroundColor": "transparent",
  7157. "currentItemFillStyle": "hachure",
  7158. "currentItemFont": "20px Virgil",
  7159. "currentItemOpacity": 100,
  7160. "currentItemRoughness": 1,
  7161. "currentItemStrokeColor": "#000000",
  7162. "currentItemStrokeWidth": 1,
  7163. "exportBackground": true,
  7164. "name": "excalidraw-201933152653",
  7165. "viewBackgroundColor": "#ffffff",
  7166. },
  7167. "elements": Array [
  7168. Object {
  7169. "angle": 0,
  7170. "backgroundColor": "transparent",
  7171. "fillStyle": "hachure",
  7172. "height": 15,
  7173. "id": "id0",
  7174. "isDeleted": false,
  7175. "opacity": 100,
  7176. "roughness": 1,
  7177. "seed": 337897,
  7178. "strokeColor": "#000000",
  7179. "strokeWidth": 1,
  7180. "type": "rectangle",
  7181. "version": 13,
  7182. "versionNonce": 289600103,
  7183. "width": 5,
  7184. "x": 10,
  7185. "y": 5,
  7186. },
  7187. ],
  7188. },
  7189. Object {
  7190. "appState": Object {
  7191. "currentItemBackgroundColor": "transparent",
  7192. "currentItemFillStyle": "hachure",
  7193. "currentItemFont": "20px Virgil",
  7194. "currentItemOpacity": 100,
  7195. "currentItemRoughness": 1,
  7196. "currentItemStrokeColor": "#000000",
  7197. "currentItemStrokeWidth": 1,
  7198. "exportBackground": true,
  7199. "name": "excalidraw-201933152653",
  7200. "viewBackgroundColor": "#ffffff",
  7201. },
  7202. "elements": Array [
  7203. Object {
  7204. "angle": 0,
  7205. "backgroundColor": "transparent",
  7206. "fillStyle": "hachure",
  7207. "height": 10,
  7208. "id": "id0",
  7209. "isDeleted": false,
  7210. "opacity": 100,
  7211. "roughness": 1,
  7212. "seed": 337897,
  7213. "strokeColor": "#000000",
  7214. "strokeWidth": 1,
  7215. "type": "rectangle",
  7216. "version": 15,
  7217. "versionNonce": 406373543,
  7218. "width": 10,
  7219. "x": 10,
  7220. "y": 10,
  7221. },
  7222. ],
  7223. },
  7224. Object {
  7225. "appState": Object {
  7226. "currentItemBackgroundColor": "transparent",
  7227. "currentItemFillStyle": "hachure",
  7228. "currentItemFont": "20px Virgil",
  7229. "currentItemOpacity": 100,
  7230. "currentItemRoughness": 1,
  7231. "currentItemStrokeColor": "#000000",
  7232. "currentItemStrokeWidth": 1,
  7233. "exportBackground": true,
  7234. "name": "excalidraw-201933152653",
  7235. "viewBackgroundColor": "#ffffff",
  7236. },
  7237. "elements": Array [
  7238. Object {
  7239. "angle": 0,
  7240. "backgroundColor": "transparent",
  7241. "fillStyle": "hachure",
  7242. "height": 5,
  7243. "id": "id0",
  7244. "isDeleted": false,
  7245. "opacity": 100,
  7246. "roughness": 1,
  7247. "seed": 337897,
  7248. "strokeColor": "#000000",
  7249. "strokeWidth": 1,
  7250. "type": "rectangle",
  7251. "version": 17,
  7252. "versionNonce": 1359939303,
  7253. "width": 15,
  7254. "x": 10,
  7255. "y": 15,
  7256. },
  7257. ],
  7258. },
  7259. Object {
  7260. "appState": Object {
  7261. "currentItemBackgroundColor": "transparent",
  7262. "currentItemFillStyle": "hachure",
  7263. "currentItemFont": "20px Virgil",
  7264. "currentItemOpacity": 100,
  7265. "currentItemRoughness": 1,
  7266. "currentItemStrokeColor": "#000000",
  7267. "currentItemStrokeWidth": 1,
  7268. "exportBackground": true,
  7269. "name": "excalidraw-201933152653",
  7270. "viewBackgroundColor": "#ffffff",
  7271. },
  7272. "elements": Array [
  7273. Object {
  7274. "angle": 0,
  7275. "backgroundColor": "transparent",
  7276. "fillStyle": "hachure",
  7277. "height": 10,
  7278. "id": "id0",
  7279. "isDeleted": false,
  7280. "opacity": 100,
  7281. "roughness": 1,
  7282. "seed": 337897,
  7283. "strokeColor": "#000000",
  7284. "strokeWidth": 1,
  7285. "type": "rectangle",
  7286. "version": 19,
  7287. "versionNonce": 845789479,
  7288. "width": 10,
  7289. "x": 10,
  7290. "y": 10,
  7291. },
  7292. ],
  7293. },
  7294. ],
  7295. }
  7296. `;
  7297. exports[`regression tests resize an element, trying every resize handle: [unresize handle ne (+5, +5)] number of elements 1`] = `1`;
  7298. exports[`regression tests resize an element, trying every resize handle: [unresize handle ne (+5, +5)] number of renders 1`] = `30`;
  7299. exports[`regression tests resize an element, trying every resize handle: [unresize handle ne (-5, -5)] appState 1`] = `
  7300. Object {
  7301. "collaborators": Map {},
  7302. "currentItemBackgroundColor": "transparent",
  7303. "currentItemFillStyle": "hachure",
  7304. "currentItemFont": "20px Virgil",
  7305. "currentItemOpacity": 100,
  7306. "currentItemRoughness": 1,
  7307. "currentItemStrokeColor": "#000000",
  7308. "currentItemStrokeWidth": 1,
  7309. "cursorX": 0,
  7310. "cursorY": 0,
  7311. "draggingElement": null,
  7312. "editingElement": null,
  7313. "elementLocked": false,
  7314. "elementType": "selection",
  7315. "errorMessage": null,
  7316. "exportBackground": true,
  7317. "isCollaborating": false,
  7318. "isLoading": false,
  7319. "isResizing": false,
  7320. "isRotating": false,
  7321. "lastPointerDownWith": "mouse",
  7322. "multiElement": null,
  7323. "name": "excalidraw-201933152653",
  7324. "openMenu": null,
  7325. "resizingElement": null,
  7326. "scrollX": 0,
  7327. "scrollY": 0,
  7328. "scrolledOutside": false,
  7329. "selectedElementIds": Object {
  7330. "id0": true,
  7331. "id1": true,
  7332. "id2": true,
  7333. "id3": true,
  7334. "id4": true,
  7335. "id5": true,
  7336. "id6": true,
  7337. },
  7338. "selectionElement": null,
  7339. "shouldCacheIgnoreZoom": false,
  7340. "viewBackgroundColor": "#ffffff",
  7341. "zoom": 1,
  7342. }
  7343. `;
  7344. exports[`regression tests resize an element, trying every resize handle: [unresize handle ne (-5, -5)] element 0 1`] = `
  7345. Object {
  7346. "angle": 0,
  7347. "backgroundColor": "transparent",
  7348. "fillStyle": "hachure",
  7349. "height": 10,
  7350. "id": "id0",
  7351. "isDeleted": false,
  7352. "opacity": 100,
  7353. "roughness": 1,
  7354. "seed": 337897,
  7355. "strokeColor": "#000000",
  7356. "strokeWidth": 1,
  7357. "type": "rectangle",
  7358. "version": 14,
  7359. "versionNonce": 406373543,
  7360. "width": 10,
  7361. "x": 10,
  7362. "y": 10,
  7363. }
  7364. `;
  7365. exports[`regression tests resize an element, trying every resize handle: [unresize handle ne (-5, -5)] history 1`] = `
  7366. Object {
  7367. "recording": false,
  7368. "redoStack": Array [],
  7369. "stateHistory": Array [
  7370. Object {
  7371. "appState": Object {
  7372. "currentItemBackgroundColor": "transparent",
  7373. "currentItemFillStyle": "hachure",
  7374. "currentItemFont": "20px Virgil",
  7375. "currentItemOpacity": 100,
  7376. "currentItemRoughness": 1,
  7377. "currentItemStrokeColor": "#000000",
  7378. "currentItemStrokeWidth": 1,
  7379. "exportBackground": true,
  7380. "name": "excalidraw-201933152653",
  7381. "viewBackgroundColor": "#ffffff",
  7382. },
  7383. "elements": Array [
  7384. Object {
  7385. "angle": 0,
  7386. "backgroundColor": "transparent",
  7387. "fillStyle": "hachure",
  7388. "height": 10,
  7389. "id": "id0",
  7390. "isDeleted": false,
  7391. "opacity": 100,
  7392. "roughness": 1,
  7393. "seed": 337897,
  7394. "strokeColor": "#000000",
  7395. "strokeWidth": 1,
  7396. "type": "rectangle",
  7397. "version": 3,
  7398. "versionNonce": 1278240551,
  7399. "width": 10,
  7400. "x": 10,
  7401. "y": 10,
  7402. },
  7403. ],
  7404. },
  7405. Object {
  7406. "appState": Object {
  7407. "currentItemBackgroundColor": "transparent",
  7408. "currentItemFillStyle": "hachure",
  7409. "currentItemFont": "20px Virgil",
  7410. "currentItemOpacity": 100,
  7411. "currentItemRoughness": 1,
  7412. "currentItemStrokeColor": "#000000",
  7413. "currentItemStrokeWidth": 1,
  7414. "exportBackground": true,
  7415. "name": "excalidraw-201933152653",
  7416. "viewBackgroundColor": "#ffffff",
  7417. },
  7418. "elements": Array [
  7419. Object {
  7420. "angle": 0,
  7421. "backgroundColor": "transparent",
  7422. "fillStyle": "hachure",
  7423. "height": 15,
  7424. "id": "id0",
  7425. "isDeleted": false,
  7426. "opacity": 100,
  7427. "roughness": 1,
  7428. "seed": 337897,
  7429. "strokeColor": "#000000",
  7430. "strokeWidth": 1,
  7431. "type": "rectangle",
  7432. "version": 5,
  7433. "versionNonce": 2019559783,
  7434. "width": 15,
  7435. "x": 5,
  7436. "y": 5,
  7437. },
  7438. ],
  7439. },
  7440. Object {
  7441. "appState": Object {
  7442. "currentItemBackgroundColor": "transparent",
  7443. "currentItemFillStyle": "hachure",
  7444. "currentItemFont": "20px Virgil",
  7445. "currentItemOpacity": 100,
  7446. "currentItemRoughness": 1,
  7447. "currentItemStrokeColor": "#000000",
  7448. "currentItemStrokeWidth": 1,
  7449. "exportBackground": true,
  7450. "name": "excalidraw-201933152653",
  7451. "viewBackgroundColor": "#ffffff",
  7452. },
  7453. "elements": Array [
  7454. Object {
  7455. "angle": 0,
  7456. "backgroundColor": "transparent",
  7457. "fillStyle": "hachure",
  7458. "height": 10,
  7459. "id": "id0",
  7460. "isDeleted": false,
  7461. "opacity": 100,
  7462. "roughness": 1,
  7463. "seed": 337897,
  7464. "strokeColor": "#000000",
  7465. "strokeWidth": 1,
  7466. "type": "rectangle",
  7467. "version": 7,
  7468. "versionNonce": 238820263,
  7469. "width": 10,
  7470. "x": 10,
  7471. "y": 10,
  7472. },
  7473. ],
  7474. },
  7475. Object {
  7476. "appState": Object {
  7477. "currentItemBackgroundColor": "transparent",
  7478. "currentItemFillStyle": "hachure",
  7479. "currentItemFont": "20px Virgil",
  7480. "currentItemOpacity": 100,
  7481. "currentItemRoughness": 1,
  7482. "currentItemStrokeColor": "#000000",
  7483. "currentItemStrokeWidth": 1,
  7484. "exportBackground": true,
  7485. "name": "excalidraw-201933152653",
  7486. "viewBackgroundColor": "#ffffff",
  7487. },
  7488. "elements": Array [
  7489. Object {
  7490. "angle": 0,
  7491. "backgroundColor": "transparent",
  7492. "fillStyle": "hachure",
  7493. "height": 5,
  7494. "id": "id0",
  7495. "isDeleted": false,
  7496. "opacity": 100,
  7497. "roughness": 1,
  7498. "seed": 337897,
  7499. "strokeColor": "#000000",
  7500. "strokeWidth": 1,
  7501. "type": "rectangle",
  7502. "version": 9,
  7503. "versionNonce": 23633383,
  7504. "width": 5,
  7505. "x": 15,
  7506. "y": 15,
  7507. },
  7508. ],
  7509. },
  7510. Object {
  7511. "appState": Object {
  7512. "currentItemBackgroundColor": "transparent",
  7513. "currentItemFillStyle": "hachure",
  7514. "currentItemFont": "20px Virgil",
  7515. "currentItemOpacity": 100,
  7516. "currentItemRoughness": 1,
  7517. "currentItemStrokeColor": "#000000",
  7518. "currentItemStrokeWidth": 1,
  7519. "exportBackground": true,
  7520. "name": "excalidraw-201933152653",
  7521. "viewBackgroundColor": "#ffffff",
  7522. },
  7523. "elements": Array [
  7524. Object {
  7525. "angle": 0,
  7526. "backgroundColor": "transparent",
  7527. "fillStyle": "hachure",
  7528. "height": 10,
  7529. "id": "id0",
  7530. "isDeleted": false,
  7531. "opacity": 100,
  7532. "roughness": 1,
  7533. "seed": 337897,
  7534. "strokeColor": "#000000",
  7535. "strokeWidth": 1,
  7536. "type": "rectangle",
  7537. "version": 11,
  7538. "versionNonce": 747212839,
  7539. "width": 10,
  7540. "x": 10,
  7541. "y": 10,
  7542. },
  7543. ],
  7544. },
  7545. Object {
  7546. "appState": Object {
  7547. "currentItemBackgroundColor": "transparent",
  7548. "currentItemFillStyle": "hachure",
  7549. "currentItemFont": "20px Virgil",
  7550. "currentItemOpacity": 100,
  7551. "currentItemRoughness": 1,
  7552. "currentItemStrokeColor": "#000000",
  7553. "currentItemStrokeWidth": 1,
  7554. "exportBackground": true,
  7555. "name": "excalidraw-201933152653",
  7556. "viewBackgroundColor": "#ffffff",
  7557. },
  7558. "elements": Array [
  7559. Object {
  7560. "angle": 0,
  7561. "backgroundColor": "transparent",
  7562. "fillStyle": "hachure",
  7563. "height": 15,
  7564. "id": "id0",
  7565. "isDeleted": false,
  7566. "opacity": 100,
  7567. "roughness": 1,
  7568. "seed": 337897,
  7569. "strokeColor": "#000000",
  7570. "strokeWidth": 1,
  7571. "type": "rectangle",
  7572. "version": 13,
  7573. "versionNonce": 289600103,
  7574. "width": 5,
  7575. "x": 10,
  7576. "y": 5,
  7577. },
  7578. ],
  7579. },
  7580. Object {
  7581. "appState": Object {
  7582. "currentItemBackgroundColor": "transparent",
  7583. "currentItemFillStyle": "hachure",
  7584. "currentItemFont": "20px Virgil",
  7585. "currentItemOpacity": 100,
  7586. "currentItemRoughness": 1,
  7587. "currentItemStrokeColor": "#000000",
  7588. "currentItemStrokeWidth": 1,
  7589. "exportBackground": true,
  7590. "name": "excalidraw-201933152653",
  7591. "viewBackgroundColor": "#ffffff",
  7592. },
  7593. "elements": Array [
  7594. Object {
  7595. "angle": 0,
  7596. "backgroundColor": "transparent",
  7597. "fillStyle": "hachure",
  7598. "height": 10,
  7599. "id": "id0",
  7600. "isDeleted": false,
  7601. "opacity": 100,
  7602. "roughness": 1,
  7603. "seed": 337897,
  7604. "strokeColor": "#000000",
  7605. "strokeWidth": 1,
  7606. "type": "rectangle",
  7607. "version": 15,
  7608. "versionNonce": 406373543,
  7609. "width": 10,
  7610. "x": 10,
  7611. "y": 10,
  7612. },
  7613. ],
  7614. },
  7615. ],
  7616. }
  7617. `;
  7618. exports[`regression tests resize an element, trying every resize handle: [unresize handle ne (-5, -5)] number of elements 1`] = `1`;
  7619. exports[`regression tests resize an element, trying every resize handle: [unresize handle ne (-5, -5)] number of renders 1`] = `24`;
  7620. exports[`regression tests resize an element, trying every resize handle: [unresize handle nw (+5, +5)] appState 1`] = `
  7621. Object {
  7622. "collaborators": Map {},
  7623. "currentItemBackgroundColor": "transparent",
  7624. "currentItemFillStyle": "hachure",
  7625. "currentItemFont": "20px Virgil",
  7626. "currentItemOpacity": 100,
  7627. "currentItemRoughness": 1,
  7628. "currentItemStrokeColor": "#000000",
  7629. "currentItemStrokeWidth": 1,
  7630. "cursorX": 0,
  7631. "cursorY": 0,
  7632. "draggingElement": null,
  7633. "editingElement": null,
  7634. "elementLocked": false,
  7635. "elementType": "selection",
  7636. "errorMessage": null,
  7637. "exportBackground": true,
  7638. "isCollaborating": false,
  7639. "isLoading": false,
  7640. "isResizing": false,
  7641. "isRotating": false,
  7642. "lastPointerDownWith": "mouse",
  7643. "multiElement": null,
  7644. "name": "excalidraw-201933152653",
  7645. "openMenu": null,
  7646. "resizingElement": null,
  7647. "scrollX": 0,
  7648. "scrollY": 0,
  7649. "scrolledOutside": false,
  7650. "selectedElementIds": Object {
  7651. "id0": true,
  7652. "id1": true,
  7653. "id2": true,
  7654. "id3": true,
  7655. "id4": true,
  7656. },
  7657. "selectionElement": null,
  7658. "shouldCacheIgnoreZoom": false,
  7659. "viewBackgroundColor": "#ffffff",
  7660. "zoom": 1,
  7661. }
  7662. `;
  7663. exports[`regression tests resize an element, trying every resize handle: [unresize handle nw (+5, +5)] element 0 1`] = `
  7664. Object {
  7665. "angle": 0,
  7666. "backgroundColor": "transparent",
  7667. "fillStyle": "hachure",
  7668. "height": 10,
  7669. "id": "id0",
  7670. "isDeleted": false,
  7671. "opacity": 100,
  7672. "roughness": 1,
  7673. "seed": 337897,
  7674. "strokeColor": "#000000",
  7675. "strokeWidth": 1,
  7676. "type": "rectangle",
  7677. "version": 10,
  7678. "versionNonce": 747212839,
  7679. "width": 10,
  7680. "x": 10,
  7681. "y": 10,
  7682. }
  7683. `;
  7684. exports[`regression tests resize an element, trying every resize handle: [unresize handle nw (+5, +5)] history 1`] = `
  7685. Object {
  7686. "recording": false,
  7687. "redoStack": Array [],
  7688. "stateHistory": Array [
  7689. Object {
  7690. "appState": Object {
  7691. "currentItemBackgroundColor": "transparent",
  7692. "currentItemFillStyle": "hachure",
  7693. "currentItemFont": "20px Virgil",
  7694. "currentItemOpacity": 100,
  7695. "currentItemRoughness": 1,
  7696. "currentItemStrokeColor": "#000000",
  7697. "currentItemStrokeWidth": 1,
  7698. "exportBackground": true,
  7699. "name": "excalidraw-201933152653",
  7700. "viewBackgroundColor": "#ffffff",
  7701. },
  7702. "elements": Array [
  7703. Object {
  7704. "angle": 0,
  7705. "backgroundColor": "transparent",
  7706. "fillStyle": "hachure",
  7707. "height": 10,
  7708. "id": "id0",
  7709. "isDeleted": false,
  7710. "opacity": 100,
  7711. "roughness": 1,
  7712. "seed": 337897,
  7713. "strokeColor": "#000000",
  7714. "strokeWidth": 1,
  7715. "type": "rectangle",
  7716. "version": 3,
  7717. "versionNonce": 1278240551,
  7718. "width": 10,
  7719. "x": 10,
  7720. "y": 10,
  7721. },
  7722. ],
  7723. },
  7724. Object {
  7725. "appState": Object {
  7726. "currentItemBackgroundColor": "transparent",
  7727. "currentItemFillStyle": "hachure",
  7728. "currentItemFont": "20px Virgil",
  7729. "currentItemOpacity": 100,
  7730. "currentItemRoughness": 1,
  7731. "currentItemStrokeColor": "#000000",
  7732. "currentItemStrokeWidth": 1,
  7733. "exportBackground": true,
  7734. "name": "excalidraw-201933152653",
  7735. "viewBackgroundColor": "#ffffff",
  7736. },
  7737. "elements": Array [
  7738. Object {
  7739. "angle": 0,
  7740. "backgroundColor": "transparent",
  7741. "fillStyle": "hachure",
  7742. "height": 15,
  7743. "id": "id0",
  7744. "isDeleted": false,
  7745. "opacity": 100,
  7746. "roughness": 1,
  7747. "seed": 337897,
  7748. "strokeColor": "#000000",
  7749. "strokeWidth": 1,
  7750. "type": "rectangle",
  7751. "version": 5,
  7752. "versionNonce": 2019559783,
  7753. "width": 15,
  7754. "x": 5,
  7755. "y": 5,
  7756. },
  7757. ],
  7758. },
  7759. Object {
  7760. "appState": Object {
  7761. "currentItemBackgroundColor": "transparent",
  7762. "currentItemFillStyle": "hachure",
  7763. "currentItemFont": "20px Virgil",
  7764. "currentItemOpacity": 100,
  7765. "currentItemRoughness": 1,
  7766. "currentItemStrokeColor": "#000000",
  7767. "currentItemStrokeWidth": 1,
  7768. "exportBackground": true,
  7769. "name": "excalidraw-201933152653",
  7770. "viewBackgroundColor": "#ffffff",
  7771. },
  7772. "elements": Array [
  7773. Object {
  7774. "angle": 0,
  7775. "backgroundColor": "transparent",
  7776. "fillStyle": "hachure",
  7777. "height": 10,
  7778. "id": "id0",
  7779. "isDeleted": false,
  7780. "opacity": 100,
  7781. "roughness": 1,
  7782. "seed": 337897,
  7783. "strokeColor": "#000000",
  7784. "strokeWidth": 1,
  7785. "type": "rectangle",
  7786. "version": 7,
  7787. "versionNonce": 238820263,
  7788. "width": 10,
  7789. "x": 10,
  7790. "y": 10,
  7791. },
  7792. ],
  7793. },
  7794. Object {
  7795. "appState": Object {
  7796. "currentItemBackgroundColor": "transparent",
  7797. "currentItemFillStyle": "hachure",
  7798. "currentItemFont": "20px Virgil",
  7799. "currentItemOpacity": 100,
  7800. "currentItemRoughness": 1,
  7801. "currentItemStrokeColor": "#000000",
  7802. "currentItemStrokeWidth": 1,
  7803. "exportBackground": true,
  7804. "name": "excalidraw-201933152653",
  7805. "viewBackgroundColor": "#ffffff",
  7806. },
  7807. "elements": Array [
  7808. Object {
  7809. "angle": 0,
  7810. "backgroundColor": "transparent",
  7811. "fillStyle": "hachure",
  7812. "height": 5,
  7813. "id": "id0",
  7814. "isDeleted": false,
  7815. "opacity": 100,
  7816. "roughness": 1,
  7817. "seed": 337897,
  7818. "strokeColor": "#000000",
  7819. "strokeWidth": 1,
  7820. "type": "rectangle",
  7821. "version": 9,
  7822. "versionNonce": 23633383,
  7823. "width": 5,
  7824. "x": 15,
  7825. "y": 15,
  7826. },
  7827. ],
  7828. },
  7829. Object {
  7830. "appState": Object {
  7831. "currentItemBackgroundColor": "transparent",
  7832. "currentItemFillStyle": "hachure",
  7833. "currentItemFont": "20px Virgil",
  7834. "currentItemOpacity": 100,
  7835. "currentItemRoughness": 1,
  7836. "currentItemStrokeColor": "#000000",
  7837. "currentItemStrokeWidth": 1,
  7838. "exportBackground": true,
  7839. "name": "excalidraw-201933152653",
  7840. "viewBackgroundColor": "#ffffff",
  7841. },
  7842. "elements": Array [
  7843. Object {
  7844. "angle": 0,
  7845. "backgroundColor": "transparent",
  7846. "fillStyle": "hachure",
  7847. "height": 10,
  7848. "id": "id0",
  7849. "isDeleted": false,
  7850. "opacity": 100,
  7851. "roughness": 1,
  7852. "seed": 337897,
  7853. "strokeColor": "#000000",
  7854. "strokeWidth": 1,
  7855. "type": "rectangle",
  7856. "version": 11,
  7857. "versionNonce": 747212839,
  7858. "width": 10,
  7859. "x": 10,
  7860. "y": 10,
  7861. },
  7862. ],
  7863. },
  7864. ],
  7865. }
  7866. `;
  7867. exports[`regression tests resize an element, trying every resize handle: [unresize handle nw (+5, +5)] number of elements 1`] = `1`;
  7868. exports[`regression tests resize an element, trying every resize handle: [unresize handle nw (+5, +5)] number of renders 1`] = `18`;
  7869. exports[`regression tests resize an element, trying every resize handle: [unresize handle nw (-5, -5)] appState 1`] = `
  7870. Object {
  7871. "collaborators": Map {},
  7872. "currentItemBackgroundColor": "transparent",
  7873. "currentItemFillStyle": "hachure",
  7874. "currentItemFont": "20px Virgil",
  7875. "currentItemOpacity": 100,
  7876. "currentItemRoughness": 1,
  7877. "currentItemStrokeColor": "#000000",
  7878. "currentItemStrokeWidth": 1,
  7879. "cursorX": 0,
  7880. "cursorY": 0,
  7881. "draggingElement": null,
  7882. "editingElement": null,
  7883. "elementLocked": false,
  7884. "elementType": "selection",
  7885. "errorMessage": null,
  7886. "exportBackground": true,
  7887. "isCollaborating": false,
  7888. "isLoading": false,
  7889. "isResizing": false,
  7890. "isRotating": false,
  7891. "lastPointerDownWith": "mouse",
  7892. "multiElement": null,
  7893. "name": "excalidraw-201933152653",
  7894. "openMenu": null,
  7895. "resizingElement": null,
  7896. "scrollX": 0,
  7897. "scrollY": 0,
  7898. "scrolledOutside": false,
  7899. "selectedElementIds": Object {
  7900. "id0": true,
  7901. "id1": true,
  7902. "id2": true,
  7903. },
  7904. "selectionElement": null,
  7905. "shouldCacheIgnoreZoom": false,
  7906. "viewBackgroundColor": "#ffffff",
  7907. "zoom": 1,
  7908. }
  7909. `;
  7910. exports[`regression tests resize an element, trying every resize handle: [unresize handle nw (-5, -5)] element 0 1`] = `
  7911. Object {
  7912. "angle": 0,
  7913. "backgroundColor": "transparent",
  7914. "fillStyle": "hachure",
  7915. "height": 10,
  7916. "id": "id0",
  7917. "isDeleted": false,
  7918. "opacity": 100,
  7919. "roughness": 1,
  7920. "seed": 337897,
  7921. "strokeColor": "#000000",
  7922. "strokeWidth": 1,
  7923. "type": "rectangle",
  7924. "version": 6,
  7925. "versionNonce": 238820263,
  7926. "width": 10,
  7927. "x": 10,
  7928. "y": 10,
  7929. }
  7930. `;
  7931. exports[`regression tests resize an element, trying every resize handle: [unresize handle nw (-5, -5)] history 1`] = `
  7932. Object {
  7933. "recording": false,
  7934. "redoStack": Array [],
  7935. "stateHistory": Array [
  7936. Object {
  7937. "appState": Object {
  7938. "currentItemBackgroundColor": "transparent",
  7939. "currentItemFillStyle": "hachure",
  7940. "currentItemFont": "20px Virgil",
  7941. "currentItemOpacity": 100,
  7942. "currentItemRoughness": 1,
  7943. "currentItemStrokeColor": "#000000",
  7944. "currentItemStrokeWidth": 1,
  7945. "exportBackground": true,
  7946. "name": "excalidraw-201933152653",
  7947. "viewBackgroundColor": "#ffffff",
  7948. },
  7949. "elements": Array [
  7950. Object {
  7951. "angle": 0,
  7952. "backgroundColor": "transparent",
  7953. "fillStyle": "hachure",
  7954. "height": 10,
  7955. "id": "id0",
  7956. "isDeleted": false,
  7957. "opacity": 100,
  7958. "roughness": 1,
  7959. "seed": 337897,
  7960. "strokeColor": "#000000",
  7961. "strokeWidth": 1,
  7962. "type": "rectangle",
  7963. "version": 3,
  7964. "versionNonce": 1278240551,
  7965. "width": 10,
  7966. "x": 10,
  7967. "y": 10,
  7968. },
  7969. ],
  7970. },
  7971. Object {
  7972. "appState": Object {
  7973. "currentItemBackgroundColor": "transparent",
  7974. "currentItemFillStyle": "hachure",
  7975. "currentItemFont": "20px Virgil",
  7976. "currentItemOpacity": 100,
  7977. "currentItemRoughness": 1,
  7978. "currentItemStrokeColor": "#000000",
  7979. "currentItemStrokeWidth": 1,
  7980. "exportBackground": true,
  7981. "name": "excalidraw-201933152653",
  7982. "viewBackgroundColor": "#ffffff",
  7983. },
  7984. "elements": Array [
  7985. Object {
  7986. "angle": 0,
  7987. "backgroundColor": "transparent",
  7988. "fillStyle": "hachure",
  7989. "height": 15,
  7990. "id": "id0",
  7991. "isDeleted": false,
  7992. "opacity": 100,
  7993. "roughness": 1,
  7994. "seed": 337897,
  7995. "strokeColor": "#000000",
  7996. "strokeWidth": 1,
  7997. "type": "rectangle",
  7998. "version": 5,
  7999. "versionNonce": 2019559783,
  8000. "width": 15,
  8001. "x": 5,
  8002. "y": 5,
  8003. },
  8004. ],
  8005. },
  8006. Object {
  8007. "appState": Object {
  8008. "currentItemBackgroundColor": "transparent",
  8009. "currentItemFillStyle": "hachure",
  8010. "currentItemFont": "20px Virgil",
  8011. "currentItemOpacity": 100,
  8012. "currentItemRoughness": 1,
  8013. "currentItemStrokeColor": "#000000",
  8014. "currentItemStrokeWidth": 1,
  8015. "exportBackground": true,
  8016. "name": "excalidraw-201933152653",
  8017. "viewBackgroundColor": "#ffffff",
  8018. },
  8019. "elements": Array [
  8020. Object {
  8021. "angle": 0,
  8022. "backgroundColor": "transparent",
  8023. "fillStyle": "hachure",
  8024. "height": 10,
  8025. "id": "id0",
  8026. "isDeleted": false,
  8027. "opacity": 100,
  8028. "roughness": 1,
  8029. "seed": 337897,
  8030. "strokeColor": "#000000",
  8031. "strokeWidth": 1,
  8032. "type": "rectangle",
  8033. "version": 7,
  8034. "versionNonce": 238820263,
  8035. "width": 10,
  8036. "x": 10,
  8037. "y": 10,
  8038. },
  8039. ],
  8040. },
  8041. ],
  8042. }
  8043. `;
  8044. exports[`regression tests resize an element, trying every resize handle: [unresize handle nw (-5, -5)] number of elements 1`] = `1`;
  8045. exports[`regression tests resize an element, trying every resize handle: [unresize handle nw (-5, -5)] number of renders 1`] = `12`;
  8046. exports[`regression tests resize an element, trying every resize handle: [unresize handle se (+5, +5)] appState 1`] = `
  8047. Object {
  8048. "collaborators": Map {},
  8049. "currentItemBackgroundColor": "transparent",
  8050. "currentItemFillStyle": "hachure",
  8051. "currentItemFont": "20px Virgil",
  8052. "currentItemOpacity": 100,
  8053. "currentItemRoughness": 1,
  8054. "currentItemStrokeColor": "#000000",
  8055. "currentItemStrokeWidth": 1,
  8056. "cursorX": 0,
  8057. "cursorY": 0,
  8058. "draggingElement": null,
  8059. "editingElement": null,
  8060. "elementLocked": false,
  8061. "elementType": "selection",
  8062. "errorMessage": null,
  8063. "exportBackground": true,
  8064. "isCollaborating": false,
  8065. "isLoading": false,
  8066. "isResizing": false,
  8067. "isRotating": false,
  8068. "lastPointerDownWith": "mouse",
  8069. "multiElement": null,
  8070. "name": "excalidraw-201933152653",
  8071. "openMenu": null,
  8072. "resizingElement": null,
  8073. "scrollX": 0,
  8074. "scrollY": 0,
  8075. "scrolledOutside": false,
  8076. "selectedElementIds": Object {
  8077. "id0": true,
  8078. "id1": true,
  8079. "id10": true,
  8080. "id11": true,
  8081. "id12": true,
  8082. "id13": true,
  8083. "id14": true,
  8084. "id15": true,
  8085. "id16": true,
  8086. "id2": true,
  8087. "id3": true,
  8088. "id4": true,
  8089. "id5": true,
  8090. "id6": true,
  8091. "id7": true,
  8092. "id8": true,
  8093. "id9": true,
  8094. },
  8095. "selectionElement": null,
  8096. "shouldCacheIgnoreZoom": false,
  8097. "viewBackgroundColor": "#ffffff",
  8098. "zoom": 1,
  8099. }
  8100. `;
  8101. exports[`regression tests resize an element, trying every resize handle: [unresize handle se (+5, +5)] element 0 1`] = `
  8102. Object {
  8103. "angle": 0,
  8104. "backgroundColor": "transparent",
  8105. "fillStyle": "hachure",
  8106. "height": 10,
  8107. "id": "id0",
  8108. "isDeleted": false,
  8109. "opacity": 100,
  8110. "roughness": 1,
  8111. "seed": 337897,
  8112. "strokeColor": "#000000",
  8113. "strokeWidth": 1,
  8114. "type": "rectangle",
  8115. "version": 34,
  8116. "versionNonce": 1388251943,
  8117. "width": 10,
  8118. "x": 10,
  8119. "y": 10,
  8120. }
  8121. `;
  8122. exports[`regression tests resize an element, trying every resize handle: [unresize handle se (+5, +5)] history 1`] = `
  8123. Object {
  8124. "recording": false,
  8125. "redoStack": Array [],
  8126. "stateHistory": Array [
  8127. Object {
  8128. "appState": Object {
  8129. "currentItemBackgroundColor": "transparent",
  8130. "currentItemFillStyle": "hachure",
  8131. "currentItemFont": "20px Virgil",
  8132. "currentItemOpacity": 100,
  8133. "currentItemRoughness": 1,
  8134. "currentItemStrokeColor": "#000000",
  8135. "currentItemStrokeWidth": 1,
  8136. "exportBackground": true,
  8137. "name": "excalidraw-201933152653",
  8138. "viewBackgroundColor": "#ffffff",
  8139. },
  8140. "elements": Array [
  8141. Object {
  8142. "angle": 0,
  8143. "backgroundColor": "transparent",
  8144. "fillStyle": "hachure",
  8145. "height": 10,
  8146. "id": "id0",
  8147. "isDeleted": false,
  8148. "opacity": 100,
  8149. "roughness": 1,
  8150. "seed": 337897,
  8151. "strokeColor": "#000000",
  8152. "strokeWidth": 1,
  8153. "type": "rectangle",
  8154. "version": 3,
  8155. "versionNonce": 1278240551,
  8156. "width": 10,
  8157. "x": 10,
  8158. "y": 10,
  8159. },
  8160. ],
  8161. },
  8162. Object {
  8163. "appState": Object {
  8164. "currentItemBackgroundColor": "transparent",
  8165. "currentItemFillStyle": "hachure",
  8166. "currentItemFont": "20px Virgil",
  8167. "currentItemOpacity": 100,
  8168. "currentItemRoughness": 1,
  8169. "currentItemStrokeColor": "#000000",
  8170. "currentItemStrokeWidth": 1,
  8171. "exportBackground": true,
  8172. "name": "excalidraw-201933152653",
  8173. "viewBackgroundColor": "#ffffff",
  8174. },
  8175. "elements": Array [
  8176. Object {
  8177. "angle": 0,
  8178. "backgroundColor": "transparent",
  8179. "fillStyle": "hachure",
  8180. "height": 15,
  8181. "id": "id0",
  8182. "isDeleted": false,
  8183. "opacity": 100,
  8184. "roughness": 1,
  8185. "seed": 337897,
  8186. "strokeColor": "#000000",
  8187. "strokeWidth": 1,
  8188. "type": "rectangle",
  8189. "version": 5,
  8190. "versionNonce": 2019559783,
  8191. "width": 15,
  8192. "x": 5,
  8193. "y": 5,
  8194. },
  8195. ],
  8196. },
  8197. Object {
  8198. "appState": Object {
  8199. "currentItemBackgroundColor": "transparent",
  8200. "currentItemFillStyle": "hachure",
  8201. "currentItemFont": "20px Virgil",
  8202. "currentItemOpacity": 100,
  8203. "currentItemRoughness": 1,
  8204. "currentItemStrokeColor": "#000000",
  8205. "currentItemStrokeWidth": 1,
  8206. "exportBackground": true,
  8207. "name": "excalidraw-201933152653",
  8208. "viewBackgroundColor": "#ffffff",
  8209. },
  8210. "elements": Array [
  8211. Object {
  8212. "angle": 0,
  8213. "backgroundColor": "transparent",
  8214. "fillStyle": "hachure",
  8215. "height": 10,
  8216. "id": "id0",
  8217. "isDeleted": false,
  8218. "opacity": 100,
  8219. "roughness": 1,
  8220. "seed": 337897,
  8221. "strokeColor": "#000000",
  8222. "strokeWidth": 1,
  8223. "type": "rectangle",
  8224. "version": 7,
  8225. "versionNonce": 238820263,
  8226. "width": 10,
  8227. "x": 10,
  8228. "y": 10,
  8229. },
  8230. ],
  8231. },
  8232. Object {
  8233. "appState": Object {
  8234. "currentItemBackgroundColor": "transparent",
  8235. "currentItemFillStyle": "hachure",
  8236. "currentItemFont": "20px Virgil",
  8237. "currentItemOpacity": 100,
  8238. "currentItemRoughness": 1,
  8239. "currentItemStrokeColor": "#000000",
  8240. "currentItemStrokeWidth": 1,
  8241. "exportBackground": true,
  8242. "name": "excalidraw-201933152653",
  8243. "viewBackgroundColor": "#ffffff",
  8244. },
  8245. "elements": Array [
  8246. Object {
  8247. "angle": 0,
  8248. "backgroundColor": "transparent",
  8249. "fillStyle": "hachure",
  8250. "height": 5,
  8251. "id": "id0",
  8252. "isDeleted": false,
  8253. "opacity": 100,
  8254. "roughness": 1,
  8255. "seed": 337897,
  8256. "strokeColor": "#000000",
  8257. "strokeWidth": 1,
  8258. "type": "rectangle",
  8259. "version": 9,
  8260. "versionNonce": 23633383,
  8261. "width": 5,
  8262. "x": 15,
  8263. "y": 15,
  8264. },
  8265. ],
  8266. },
  8267. Object {
  8268. "appState": Object {
  8269. "currentItemBackgroundColor": "transparent",
  8270. "currentItemFillStyle": "hachure",
  8271. "currentItemFont": "20px Virgil",
  8272. "currentItemOpacity": 100,
  8273. "currentItemRoughness": 1,
  8274. "currentItemStrokeColor": "#000000",
  8275. "currentItemStrokeWidth": 1,
  8276. "exportBackground": true,
  8277. "name": "excalidraw-201933152653",
  8278. "viewBackgroundColor": "#ffffff",
  8279. },
  8280. "elements": Array [
  8281. Object {
  8282. "angle": 0,
  8283. "backgroundColor": "transparent",
  8284. "fillStyle": "hachure",
  8285. "height": 10,
  8286. "id": "id0",
  8287. "isDeleted": false,
  8288. "opacity": 100,
  8289. "roughness": 1,
  8290. "seed": 337897,
  8291. "strokeColor": "#000000",
  8292. "strokeWidth": 1,
  8293. "type": "rectangle",
  8294. "version": 11,
  8295. "versionNonce": 747212839,
  8296. "width": 10,
  8297. "x": 10,
  8298. "y": 10,
  8299. },
  8300. ],
  8301. },
  8302. Object {
  8303. "appState": Object {
  8304. "currentItemBackgroundColor": "transparent",
  8305. "currentItemFillStyle": "hachure",
  8306. "currentItemFont": "20px Virgil",
  8307. "currentItemOpacity": 100,
  8308. "currentItemRoughness": 1,
  8309. "currentItemStrokeColor": "#000000",
  8310. "currentItemStrokeWidth": 1,
  8311. "exportBackground": true,
  8312. "name": "excalidraw-201933152653",
  8313. "viewBackgroundColor": "#ffffff",
  8314. },
  8315. "elements": Array [
  8316. Object {
  8317. "angle": 0,
  8318. "backgroundColor": "transparent",
  8319. "fillStyle": "hachure",
  8320. "height": 15,
  8321. "id": "id0",
  8322. "isDeleted": false,
  8323. "opacity": 100,
  8324. "roughness": 1,
  8325. "seed": 337897,
  8326. "strokeColor": "#000000",
  8327. "strokeWidth": 1,
  8328. "type": "rectangle",
  8329. "version": 13,
  8330. "versionNonce": 289600103,
  8331. "width": 5,
  8332. "x": 10,
  8333. "y": 5,
  8334. },
  8335. ],
  8336. },
  8337. Object {
  8338. "appState": Object {
  8339. "currentItemBackgroundColor": "transparent",
  8340. "currentItemFillStyle": "hachure",
  8341. "currentItemFont": "20px Virgil",
  8342. "currentItemOpacity": 100,
  8343. "currentItemRoughness": 1,
  8344. "currentItemStrokeColor": "#000000",
  8345. "currentItemStrokeWidth": 1,
  8346. "exportBackground": true,
  8347. "name": "excalidraw-201933152653",
  8348. "viewBackgroundColor": "#ffffff",
  8349. },
  8350. "elements": Array [
  8351. Object {
  8352. "angle": 0,
  8353. "backgroundColor": "transparent",
  8354. "fillStyle": "hachure",
  8355. "height": 10,
  8356. "id": "id0",
  8357. "isDeleted": false,
  8358. "opacity": 100,
  8359. "roughness": 1,
  8360. "seed": 337897,
  8361. "strokeColor": "#000000",
  8362. "strokeWidth": 1,
  8363. "type": "rectangle",
  8364. "version": 15,
  8365. "versionNonce": 406373543,
  8366. "width": 10,
  8367. "x": 10,
  8368. "y": 10,
  8369. },
  8370. ],
  8371. },
  8372. Object {
  8373. "appState": Object {
  8374. "currentItemBackgroundColor": "transparent",
  8375. "currentItemFillStyle": "hachure",
  8376. "currentItemFont": "20px Virgil",
  8377. "currentItemOpacity": 100,
  8378. "currentItemRoughness": 1,
  8379. "currentItemStrokeColor": "#000000",
  8380. "currentItemStrokeWidth": 1,
  8381. "exportBackground": true,
  8382. "name": "excalidraw-201933152653",
  8383. "viewBackgroundColor": "#ffffff",
  8384. },
  8385. "elements": Array [
  8386. Object {
  8387. "angle": 0,
  8388. "backgroundColor": "transparent",
  8389. "fillStyle": "hachure",
  8390. "height": 5,
  8391. "id": "id0",
  8392. "isDeleted": false,
  8393. "opacity": 100,
  8394. "roughness": 1,
  8395. "seed": 337897,
  8396. "strokeColor": "#000000",
  8397. "strokeWidth": 1,
  8398. "type": "rectangle",
  8399. "version": 17,
  8400. "versionNonce": 1359939303,
  8401. "width": 15,
  8402. "x": 10,
  8403. "y": 15,
  8404. },
  8405. ],
  8406. },
  8407. Object {
  8408. "appState": Object {
  8409. "currentItemBackgroundColor": "transparent",
  8410. "currentItemFillStyle": "hachure",
  8411. "currentItemFont": "20px Virgil",
  8412. "currentItemOpacity": 100,
  8413. "currentItemRoughness": 1,
  8414. "currentItemStrokeColor": "#000000",
  8415. "currentItemStrokeWidth": 1,
  8416. "exportBackground": true,
  8417. "name": "excalidraw-201933152653",
  8418. "viewBackgroundColor": "#ffffff",
  8419. },
  8420. "elements": Array [
  8421. Object {
  8422. "angle": 0,
  8423. "backgroundColor": "transparent",
  8424. "fillStyle": "hachure",
  8425. "height": 10,
  8426. "id": "id0",
  8427. "isDeleted": false,
  8428. "opacity": 100,
  8429. "roughness": 1,
  8430. "seed": 337897,
  8431. "strokeColor": "#000000",
  8432. "strokeWidth": 1,
  8433. "type": "rectangle",
  8434. "version": 19,
  8435. "versionNonce": 845789479,
  8436. "width": 10,
  8437. "x": 10,
  8438. "y": 10,
  8439. },
  8440. ],
  8441. },
  8442. Object {
  8443. "appState": Object {
  8444. "currentItemBackgroundColor": "transparent",
  8445. "currentItemFillStyle": "hachure",
  8446. "currentItemFont": "20px Virgil",
  8447. "currentItemOpacity": 100,
  8448. "currentItemRoughness": 1,
  8449. "currentItemStrokeColor": "#000000",
  8450. "currentItemStrokeWidth": 1,
  8451. "exportBackground": true,
  8452. "name": "excalidraw-201933152653",
  8453. "viewBackgroundColor": "#ffffff",
  8454. },
  8455. "elements": Array [
  8456. Object {
  8457. "angle": 0,
  8458. "backgroundColor": "transparent",
  8459. "fillStyle": "hachure",
  8460. "height": 5,
  8461. "id": "id0",
  8462. "isDeleted": false,
  8463. "opacity": 100,
  8464. "roughness": 1,
  8465. "seed": 337897,
  8466. "strokeColor": "#000000",
  8467. "strokeWidth": 1,
  8468. "type": "rectangle",
  8469. "version": 21,
  8470. "versionNonce": 1508694887,
  8471. "width": 15,
  8472. "x": 5,
  8473. "y": 10,
  8474. },
  8475. ],
  8476. },
  8477. Object {
  8478. "appState": Object {
  8479. "currentItemBackgroundColor": "transparent",
  8480. "currentItemFillStyle": "hachure",
  8481. "currentItemFont": "20px Virgil",
  8482. "currentItemOpacity": 100,
  8483. "currentItemRoughness": 1,
  8484. "currentItemStrokeColor": "#000000",
  8485. "currentItemStrokeWidth": 1,
  8486. "exportBackground": true,
  8487. "name": "excalidraw-201933152653",
  8488. "viewBackgroundColor": "#ffffff",
  8489. },
  8490. "elements": Array [
  8491. Object {
  8492. "angle": 0,
  8493. "backgroundColor": "transparent",
  8494. "fillStyle": "hachure",
  8495. "height": 10,
  8496. "id": "id0",
  8497. "isDeleted": false,
  8498. "opacity": 100,
  8499. "roughness": 1,
  8500. "seed": 337897,
  8501. "strokeColor": "#000000",
  8502. "strokeWidth": 1,
  8503. "type": "rectangle",
  8504. "version": 23,
  8505. "versionNonce": 1279028647,
  8506. "width": 10,
  8507. "x": 10,
  8508. "y": 10,
  8509. },
  8510. ],
  8511. },
  8512. Object {
  8513. "appState": Object {
  8514. "currentItemBackgroundColor": "transparent",
  8515. "currentItemFillStyle": "hachure",
  8516. "currentItemFont": "20px Virgil",
  8517. "currentItemOpacity": 100,
  8518. "currentItemRoughness": 1,
  8519. "currentItemStrokeColor": "#000000",
  8520. "currentItemStrokeWidth": 1,
  8521. "exportBackground": true,
  8522. "name": "excalidraw-201933152653",
  8523. "viewBackgroundColor": "#ffffff",
  8524. },
  8525. "elements": Array [
  8526. Object {
  8527. "angle": 0,
  8528. "backgroundColor": "transparent",
  8529. "fillStyle": "hachure",
  8530. "height": 15,
  8531. "id": "id0",
  8532. "isDeleted": false,
  8533. "opacity": 100,
  8534. "roughness": 1,
  8535. "seed": 337897,
  8536. "strokeColor": "#000000",
  8537. "strokeWidth": 1,
  8538. "type": "rectangle",
  8539. "version": 25,
  8540. "versionNonce": 888958951,
  8541. "width": 5,
  8542. "x": 15,
  8543. "y": 10,
  8544. },
  8545. ],
  8546. },
  8547. Object {
  8548. "appState": Object {
  8549. "currentItemBackgroundColor": "transparent",
  8550. "currentItemFillStyle": "hachure",
  8551. "currentItemFont": "20px Virgil",
  8552. "currentItemOpacity": 100,
  8553. "currentItemRoughness": 1,
  8554. "currentItemStrokeColor": "#000000",
  8555. "currentItemStrokeWidth": 1,
  8556. "exportBackground": true,
  8557. "name": "excalidraw-201933152653",
  8558. "viewBackgroundColor": "#ffffff",
  8559. },
  8560. "elements": Array [
  8561. Object {
  8562. "angle": 0,
  8563. "backgroundColor": "transparent",
  8564. "fillStyle": "hachure",
  8565. "height": 10,
  8566. "id": "id0",
  8567. "isDeleted": false,
  8568. "opacity": 100,
  8569. "roughness": 1,
  8570. "seed": 337897,
  8571. "strokeColor": "#000000",
  8572. "strokeWidth": 1,
  8573. "type": "rectangle",
  8574. "version": 27,
  8575. "versionNonce": 651223591,
  8576. "width": 10,
  8577. "x": 10,
  8578. "y": 10,
  8579. },
  8580. ],
  8581. },
  8582. Object {
  8583. "appState": Object {
  8584. "currentItemBackgroundColor": "transparent",
  8585. "currentItemFillStyle": "hachure",
  8586. "currentItemFont": "20px Virgil",
  8587. "currentItemOpacity": 100,
  8588. "currentItemRoughness": 1,
  8589. "currentItemStrokeColor": "#000000",
  8590. "currentItemStrokeWidth": 1,
  8591. "exportBackground": true,
  8592. "name": "excalidraw-201933152653",
  8593. "viewBackgroundColor": "#ffffff",
  8594. },
  8595. "elements": Array [
  8596. Object {
  8597. "angle": 0,
  8598. "backgroundColor": "transparent",
  8599. "fillStyle": "hachure",
  8600. "height": 5,
  8601. "id": "id0",
  8602. "isDeleted": false,
  8603. "opacity": 100,
  8604. "roughness": 1,
  8605. "seed": 337897,
  8606. "strokeColor": "#000000",
  8607. "strokeWidth": 1,
  8608. "type": "rectangle",
  8609. "version": 29,
  8610. "versionNonce": 1532871783,
  8611. "width": 5,
  8612. "x": 10,
  8613. "y": 10,
  8614. },
  8615. ],
  8616. },
  8617. Object {
  8618. "appState": Object {
  8619. "currentItemBackgroundColor": "transparent",
  8620. "currentItemFillStyle": "hachure",
  8621. "currentItemFont": "20px Virgil",
  8622. "currentItemOpacity": 100,
  8623. "currentItemRoughness": 1,
  8624. "currentItemStrokeColor": "#000000",
  8625. "currentItemStrokeWidth": 1,
  8626. "exportBackground": true,
  8627. "name": "excalidraw-201933152653",
  8628. "viewBackgroundColor": "#ffffff",
  8629. },
  8630. "elements": Array [
  8631. Object {
  8632. "angle": 0,
  8633. "backgroundColor": "transparent",
  8634. "fillStyle": "hachure",
  8635. "height": 10,
  8636. "id": "id0",
  8637. "isDeleted": false,
  8638. "opacity": 100,
  8639. "roughness": 1,
  8640. "seed": 337897,
  8641. "strokeColor": "#000000",
  8642. "strokeWidth": 1,
  8643. "type": "rectangle",
  8644. "version": 31,
  8645. "versionNonce": 1934038695,
  8646. "width": 10,
  8647. "x": 10,
  8648. "y": 10,
  8649. },
  8650. ],
  8651. },
  8652. Object {
  8653. "appState": Object {
  8654. "currentItemBackgroundColor": "transparent",
  8655. "currentItemFillStyle": "hachure",
  8656. "currentItemFont": "20px Virgil",
  8657. "currentItemOpacity": 100,
  8658. "currentItemRoughness": 1,
  8659. "currentItemStrokeColor": "#000000",
  8660. "currentItemStrokeWidth": 1,
  8661. "exportBackground": true,
  8662. "name": "excalidraw-201933152653",
  8663. "viewBackgroundColor": "#ffffff",
  8664. },
  8665. "elements": Array [
  8666. Object {
  8667. "angle": 0,
  8668. "backgroundColor": "transparent",
  8669. "fillStyle": "hachure",
  8670. "height": 15,
  8671. "id": "id0",
  8672. "isDeleted": false,
  8673. "opacity": 100,
  8674. "roughness": 1,
  8675. "seed": 337897,
  8676. "strokeColor": "#000000",
  8677. "strokeWidth": 1,
  8678. "type": "rectangle",
  8679. "version": 33,
  8680. "versionNonce": 909170919,
  8681. "width": 15,
  8682. "x": 10,
  8683. "y": 10,
  8684. },
  8685. ],
  8686. },
  8687. Object {
  8688. "appState": Object {
  8689. "currentItemBackgroundColor": "transparent",
  8690. "currentItemFillStyle": "hachure",
  8691. "currentItemFont": "20px Virgil",
  8692. "currentItemOpacity": 100,
  8693. "currentItemRoughness": 1,
  8694. "currentItemStrokeColor": "#000000",
  8695. "currentItemStrokeWidth": 1,
  8696. "exportBackground": true,
  8697. "name": "excalidraw-201933152653",
  8698. "viewBackgroundColor": "#ffffff",
  8699. },
  8700. "elements": Array [
  8701. Object {
  8702. "angle": 0,
  8703. "backgroundColor": "transparent",
  8704. "fillStyle": "hachure",
  8705. "height": 10,
  8706. "id": "id0",
  8707. "isDeleted": false,
  8708. "opacity": 100,
  8709. "roughness": 1,
  8710. "seed": 337897,
  8711. "strokeColor": "#000000",
  8712. "strokeWidth": 1,
  8713. "type": "rectangle",
  8714. "version": 35,
  8715. "versionNonce": 1388251943,
  8716. "width": 10,
  8717. "x": 10,
  8718. "y": 10,
  8719. },
  8720. ],
  8721. },
  8722. ],
  8723. }
  8724. `;
  8725. exports[`regression tests resize an element, trying every resize handle: [unresize handle se (+5, +5)] number of elements 1`] = `1`;
  8726. exports[`regression tests resize an element, trying every resize handle: [unresize handle se (+5, +5)] number of renders 1`] = `54`;
  8727. exports[`regression tests resize an element, trying every resize handle: [unresize handle se (-5, -5)] appState 1`] = `
  8728. Object {
  8729. "collaborators": Map {},
  8730. "currentItemBackgroundColor": "transparent",
  8731. "currentItemFillStyle": "hachure",
  8732. "currentItemFont": "20px Virgil",
  8733. "currentItemOpacity": 100,
  8734. "currentItemRoughness": 1,
  8735. "currentItemStrokeColor": "#000000",
  8736. "currentItemStrokeWidth": 1,
  8737. "cursorX": 0,
  8738. "cursorY": 0,
  8739. "draggingElement": null,
  8740. "editingElement": null,
  8741. "elementLocked": false,
  8742. "elementType": "selection",
  8743. "errorMessage": null,
  8744. "exportBackground": true,
  8745. "isCollaborating": false,
  8746. "isLoading": false,
  8747. "isResizing": false,
  8748. "isRotating": false,
  8749. "lastPointerDownWith": "mouse",
  8750. "multiElement": null,
  8751. "name": "excalidraw-201933152653",
  8752. "openMenu": null,
  8753. "resizingElement": null,
  8754. "scrollX": 0,
  8755. "scrollY": 0,
  8756. "scrolledOutside": false,
  8757. "selectedElementIds": Object {
  8758. "id0": true,
  8759. "id1": true,
  8760. "id10": true,
  8761. "id11": true,
  8762. "id12": true,
  8763. "id13": true,
  8764. "id14": true,
  8765. "id2": true,
  8766. "id3": true,
  8767. "id4": true,
  8768. "id5": true,
  8769. "id6": true,
  8770. "id7": true,
  8771. "id8": true,
  8772. "id9": true,
  8773. },
  8774. "selectionElement": null,
  8775. "shouldCacheIgnoreZoom": false,
  8776. "viewBackgroundColor": "#ffffff",
  8777. "zoom": 1,
  8778. }
  8779. `;
  8780. exports[`regression tests resize an element, trying every resize handle: [unresize handle se (-5, -5)] element 0 1`] = `
  8781. Object {
  8782. "angle": 0,
  8783. "backgroundColor": "transparent",
  8784. "fillStyle": "hachure",
  8785. "height": 10,
  8786. "id": "id0",
  8787. "isDeleted": false,
  8788. "opacity": 100,
  8789. "roughness": 1,
  8790. "seed": 337897,
  8791. "strokeColor": "#000000",
  8792. "strokeWidth": 1,
  8793. "type": "rectangle",
  8794. "version": 30,
  8795. "versionNonce": 1934038695,
  8796. "width": 10,
  8797. "x": 10,
  8798. "y": 10,
  8799. }
  8800. `;
  8801. exports[`regression tests resize an element, trying every resize handle: [unresize handle se (-5, -5)] history 1`] = `
  8802. Object {
  8803. "recording": false,
  8804. "redoStack": Array [],
  8805. "stateHistory": Array [
  8806. Object {
  8807. "appState": Object {
  8808. "currentItemBackgroundColor": "transparent",
  8809. "currentItemFillStyle": "hachure",
  8810. "currentItemFont": "20px Virgil",
  8811. "currentItemOpacity": 100,
  8812. "currentItemRoughness": 1,
  8813. "currentItemStrokeColor": "#000000",
  8814. "currentItemStrokeWidth": 1,
  8815. "exportBackground": true,
  8816. "name": "excalidraw-201933152653",
  8817. "viewBackgroundColor": "#ffffff",
  8818. },
  8819. "elements": Array [
  8820. Object {
  8821. "angle": 0,
  8822. "backgroundColor": "transparent",
  8823. "fillStyle": "hachure",
  8824. "height": 10,
  8825. "id": "id0",
  8826. "isDeleted": false,
  8827. "opacity": 100,
  8828. "roughness": 1,
  8829. "seed": 337897,
  8830. "strokeColor": "#000000",
  8831. "strokeWidth": 1,
  8832. "type": "rectangle",
  8833. "version": 3,
  8834. "versionNonce": 1278240551,
  8835. "width": 10,
  8836. "x": 10,
  8837. "y": 10,
  8838. },
  8839. ],
  8840. },
  8841. Object {
  8842. "appState": Object {
  8843. "currentItemBackgroundColor": "transparent",
  8844. "currentItemFillStyle": "hachure",
  8845. "currentItemFont": "20px Virgil",
  8846. "currentItemOpacity": 100,
  8847. "currentItemRoughness": 1,
  8848. "currentItemStrokeColor": "#000000",
  8849. "currentItemStrokeWidth": 1,
  8850. "exportBackground": true,
  8851. "name": "excalidraw-201933152653",
  8852. "viewBackgroundColor": "#ffffff",
  8853. },
  8854. "elements": Array [
  8855. Object {
  8856. "angle": 0,
  8857. "backgroundColor": "transparent",
  8858. "fillStyle": "hachure",
  8859. "height": 15,
  8860. "id": "id0",
  8861. "isDeleted": false,
  8862. "opacity": 100,
  8863. "roughness": 1,
  8864. "seed": 337897,
  8865. "strokeColor": "#000000",
  8866. "strokeWidth": 1,
  8867. "type": "rectangle",
  8868. "version": 5,
  8869. "versionNonce": 2019559783,
  8870. "width": 15,
  8871. "x": 5,
  8872. "y": 5,
  8873. },
  8874. ],
  8875. },
  8876. Object {
  8877. "appState": Object {
  8878. "currentItemBackgroundColor": "transparent",
  8879. "currentItemFillStyle": "hachure",
  8880. "currentItemFont": "20px Virgil",
  8881. "currentItemOpacity": 100,
  8882. "currentItemRoughness": 1,
  8883. "currentItemStrokeColor": "#000000",
  8884. "currentItemStrokeWidth": 1,
  8885. "exportBackground": true,
  8886. "name": "excalidraw-201933152653",
  8887. "viewBackgroundColor": "#ffffff",
  8888. },
  8889. "elements": Array [
  8890. Object {
  8891. "angle": 0,
  8892. "backgroundColor": "transparent",
  8893. "fillStyle": "hachure",
  8894. "height": 10,
  8895. "id": "id0",
  8896. "isDeleted": false,
  8897. "opacity": 100,
  8898. "roughness": 1,
  8899. "seed": 337897,
  8900. "strokeColor": "#000000",
  8901. "strokeWidth": 1,
  8902. "type": "rectangle",
  8903. "version": 7,
  8904. "versionNonce": 238820263,
  8905. "width": 10,
  8906. "x": 10,
  8907. "y": 10,
  8908. },
  8909. ],
  8910. },
  8911. Object {
  8912. "appState": Object {
  8913. "currentItemBackgroundColor": "transparent",
  8914. "currentItemFillStyle": "hachure",
  8915. "currentItemFont": "20px Virgil",
  8916. "currentItemOpacity": 100,
  8917. "currentItemRoughness": 1,
  8918. "currentItemStrokeColor": "#000000",
  8919. "currentItemStrokeWidth": 1,
  8920. "exportBackground": true,
  8921. "name": "excalidraw-201933152653",
  8922. "viewBackgroundColor": "#ffffff",
  8923. },
  8924. "elements": Array [
  8925. Object {
  8926. "angle": 0,
  8927. "backgroundColor": "transparent",
  8928. "fillStyle": "hachure",
  8929. "height": 5,
  8930. "id": "id0",
  8931. "isDeleted": false,
  8932. "opacity": 100,
  8933. "roughness": 1,
  8934. "seed": 337897,
  8935. "strokeColor": "#000000",
  8936. "strokeWidth": 1,
  8937. "type": "rectangle",
  8938. "version": 9,
  8939. "versionNonce": 23633383,
  8940. "width": 5,
  8941. "x": 15,
  8942. "y": 15,
  8943. },
  8944. ],
  8945. },
  8946. Object {
  8947. "appState": Object {
  8948. "currentItemBackgroundColor": "transparent",
  8949. "currentItemFillStyle": "hachure",
  8950. "currentItemFont": "20px Virgil",
  8951. "currentItemOpacity": 100,
  8952. "currentItemRoughness": 1,
  8953. "currentItemStrokeColor": "#000000",
  8954. "currentItemStrokeWidth": 1,
  8955. "exportBackground": true,
  8956. "name": "excalidraw-201933152653",
  8957. "viewBackgroundColor": "#ffffff",
  8958. },
  8959. "elements": Array [
  8960. Object {
  8961. "angle": 0,
  8962. "backgroundColor": "transparent",
  8963. "fillStyle": "hachure",
  8964. "height": 10,
  8965. "id": "id0",
  8966. "isDeleted": false,
  8967. "opacity": 100,
  8968. "roughness": 1,
  8969. "seed": 337897,
  8970. "strokeColor": "#000000",
  8971. "strokeWidth": 1,
  8972. "type": "rectangle",
  8973. "version": 11,
  8974. "versionNonce": 747212839,
  8975. "width": 10,
  8976. "x": 10,
  8977. "y": 10,
  8978. },
  8979. ],
  8980. },
  8981. Object {
  8982. "appState": Object {
  8983. "currentItemBackgroundColor": "transparent",
  8984. "currentItemFillStyle": "hachure",
  8985. "currentItemFont": "20px Virgil",
  8986. "currentItemOpacity": 100,
  8987. "currentItemRoughness": 1,
  8988. "currentItemStrokeColor": "#000000",
  8989. "currentItemStrokeWidth": 1,
  8990. "exportBackground": true,
  8991. "name": "excalidraw-201933152653",
  8992. "viewBackgroundColor": "#ffffff",
  8993. },
  8994. "elements": Array [
  8995. Object {
  8996. "angle": 0,
  8997. "backgroundColor": "transparent",
  8998. "fillStyle": "hachure",
  8999. "height": 15,
  9000. "id": "id0",
  9001. "isDeleted": false,
  9002. "opacity": 100,
  9003. "roughness": 1,
  9004. "seed": 337897,
  9005. "strokeColor": "#000000",
  9006. "strokeWidth": 1,
  9007. "type": "rectangle",
  9008. "version": 13,
  9009. "versionNonce": 289600103,
  9010. "width": 5,
  9011. "x": 10,
  9012. "y": 5,
  9013. },
  9014. ],
  9015. },
  9016. Object {
  9017. "appState": Object {
  9018. "currentItemBackgroundColor": "transparent",
  9019. "currentItemFillStyle": "hachure",
  9020. "currentItemFont": "20px Virgil",
  9021. "currentItemOpacity": 100,
  9022. "currentItemRoughness": 1,
  9023. "currentItemStrokeColor": "#000000",
  9024. "currentItemStrokeWidth": 1,
  9025. "exportBackground": true,
  9026. "name": "excalidraw-201933152653",
  9027. "viewBackgroundColor": "#ffffff",
  9028. },
  9029. "elements": Array [
  9030. Object {
  9031. "angle": 0,
  9032. "backgroundColor": "transparent",
  9033. "fillStyle": "hachure",
  9034. "height": 10,
  9035. "id": "id0",
  9036. "isDeleted": false,
  9037. "opacity": 100,
  9038. "roughness": 1,
  9039. "seed": 337897,
  9040. "strokeColor": "#000000",
  9041. "strokeWidth": 1,
  9042. "type": "rectangle",
  9043. "version": 15,
  9044. "versionNonce": 406373543,
  9045. "width": 10,
  9046. "x": 10,
  9047. "y": 10,
  9048. },
  9049. ],
  9050. },
  9051. Object {
  9052. "appState": Object {
  9053. "currentItemBackgroundColor": "transparent",
  9054. "currentItemFillStyle": "hachure",
  9055. "currentItemFont": "20px Virgil",
  9056. "currentItemOpacity": 100,
  9057. "currentItemRoughness": 1,
  9058. "currentItemStrokeColor": "#000000",
  9059. "currentItemStrokeWidth": 1,
  9060. "exportBackground": true,
  9061. "name": "excalidraw-201933152653",
  9062. "viewBackgroundColor": "#ffffff",
  9063. },
  9064. "elements": Array [
  9065. Object {
  9066. "angle": 0,
  9067. "backgroundColor": "transparent",
  9068. "fillStyle": "hachure",
  9069. "height": 5,
  9070. "id": "id0",
  9071. "isDeleted": false,
  9072. "opacity": 100,
  9073. "roughness": 1,
  9074. "seed": 337897,
  9075. "strokeColor": "#000000",
  9076. "strokeWidth": 1,
  9077. "type": "rectangle",
  9078. "version": 17,
  9079. "versionNonce": 1359939303,
  9080. "width": 15,
  9081. "x": 10,
  9082. "y": 15,
  9083. },
  9084. ],
  9085. },
  9086. Object {
  9087. "appState": Object {
  9088. "currentItemBackgroundColor": "transparent",
  9089. "currentItemFillStyle": "hachure",
  9090. "currentItemFont": "20px Virgil",
  9091. "currentItemOpacity": 100,
  9092. "currentItemRoughness": 1,
  9093. "currentItemStrokeColor": "#000000",
  9094. "currentItemStrokeWidth": 1,
  9095. "exportBackground": true,
  9096. "name": "excalidraw-201933152653",
  9097. "viewBackgroundColor": "#ffffff",
  9098. },
  9099. "elements": Array [
  9100. Object {
  9101. "angle": 0,
  9102. "backgroundColor": "transparent",
  9103. "fillStyle": "hachure",
  9104. "height": 10,
  9105. "id": "id0",
  9106. "isDeleted": false,
  9107. "opacity": 100,
  9108. "roughness": 1,
  9109. "seed": 337897,
  9110. "strokeColor": "#000000",
  9111. "strokeWidth": 1,
  9112. "type": "rectangle",
  9113. "version": 19,
  9114. "versionNonce": 845789479,
  9115. "width": 10,
  9116. "x": 10,
  9117. "y": 10,
  9118. },
  9119. ],
  9120. },
  9121. Object {
  9122. "appState": Object {
  9123. "currentItemBackgroundColor": "transparent",
  9124. "currentItemFillStyle": "hachure",
  9125. "currentItemFont": "20px Virgil",
  9126. "currentItemOpacity": 100,
  9127. "currentItemRoughness": 1,
  9128. "currentItemStrokeColor": "#000000",
  9129. "currentItemStrokeWidth": 1,
  9130. "exportBackground": true,
  9131. "name": "excalidraw-201933152653",
  9132. "viewBackgroundColor": "#ffffff",
  9133. },
  9134. "elements": Array [
  9135. Object {
  9136. "angle": 0,
  9137. "backgroundColor": "transparent",
  9138. "fillStyle": "hachure",
  9139. "height": 5,
  9140. "id": "id0",
  9141. "isDeleted": false,
  9142. "opacity": 100,
  9143. "roughness": 1,
  9144. "seed": 337897,
  9145. "strokeColor": "#000000",
  9146. "strokeWidth": 1,
  9147. "type": "rectangle",
  9148. "version": 21,
  9149. "versionNonce": 1508694887,
  9150. "width": 15,
  9151. "x": 5,
  9152. "y": 10,
  9153. },
  9154. ],
  9155. },
  9156. Object {
  9157. "appState": Object {
  9158. "currentItemBackgroundColor": "transparent",
  9159. "currentItemFillStyle": "hachure",
  9160. "currentItemFont": "20px Virgil",
  9161. "currentItemOpacity": 100,
  9162. "currentItemRoughness": 1,
  9163. "currentItemStrokeColor": "#000000",
  9164. "currentItemStrokeWidth": 1,
  9165. "exportBackground": true,
  9166. "name": "excalidraw-201933152653",
  9167. "viewBackgroundColor": "#ffffff",
  9168. },
  9169. "elements": Array [
  9170. Object {
  9171. "angle": 0,
  9172. "backgroundColor": "transparent",
  9173. "fillStyle": "hachure",
  9174. "height": 10,
  9175. "id": "id0",
  9176. "isDeleted": false,
  9177. "opacity": 100,
  9178. "roughness": 1,
  9179. "seed": 337897,
  9180. "strokeColor": "#000000",
  9181. "strokeWidth": 1,
  9182. "type": "rectangle",
  9183. "version": 23,
  9184. "versionNonce": 1279028647,
  9185. "width": 10,
  9186. "x": 10,
  9187. "y": 10,
  9188. },
  9189. ],
  9190. },
  9191. Object {
  9192. "appState": Object {
  9193. "currentItemBackgroundColor": "transparent",
  9194. "currentItemFillStyle": "hachure",
  9195. "currentItemFont": "20px Virgil",
  9196. "currentItemOpacity": 100,
  9197. "currentItemRoughness": 1,
  9198. "currentItemStrokeColor": "#000000",
  9199. "currentItemStrokeWidth": 1,
  9200. "exportBackground": true,
  9201. "name": "excalidraw-201933152653",
  9202. "viewBackgroundColor": "#ffffff",
  9203. },
  9204. "elements": Array [
  9205. Object {
  9206. "angle": 0,
  9207. "backgroundColor": "transparent",
  9208. "fillStyle": "hachure",
  9209. "height": 15,
  9210. "id": "id0",
  9211. "isDeleted": false,
  9212. "opacity": 100,
  9213. "roughness": 1,
  9214. "seed": 337897,
  9215. "strokeColor": "#000000",
  9216. "strokeWidth": 1,
  9217. "type": "rectangle",
  9218. "version": 25,
  9219. "versionNonce": 888958951,
  9220. "width": 5,
  9221. "x": 15,
  9222. "y": 10,
  9223. },
  9224. ],
  9225. },
  9226. Object {
  9227. "appState": Object {
  9228. "currentItemBackgroundColor": "transparent",
  9229. "currentItemFillStyle": "hachure",
  9230. "currentItemFont": "20px Virgil",
  9231. "currentItemOpacity": 100,
  9232. "currentItemRoughness": 1,
  9233. "currentItemStrokeColor": "#000000",
  9234. "currentItemStrokeWidth": 1,
  9235. "exportBackground": true,
  9236. "name": "excalidraw-201933152653",
  9237. "viewBackgroundColor": "#ffffff",
  9238. },
  9239. "elements": Array [
  9240. Object {
  9241. "angle": 0,
  9242. "backgroundColor": "transparent",
  9243. "fillStyle": "hachure",
  9244. "height": 10,
  9245. "id": "id0",
  9246. "isDeleted": false,
  9247. "opacity": 100,
  9248. "roughness": 1,
  9249. "seed": 337897,
  9250. "strokeColor": "#000000",
  9251. "strokeWidth": 1,
  9252. "type": "rectangle",
  9253. "version": 27,
  9254. "versionNonce": 651223591,
  9255. "width": 10,
  9256. "x": 10,
  9257. "y": 10,
  9258. },
  9259. ],
  9260. },
  9261. Object {
  9262. "appState": Object {
  9263. "currentItemBackgroundColor": "transparent",
  9264. "currentItemFillStyle": "hachure",
  9265. "currentItemFont": "20px Virgil",
  9266. "currentItemOpacity": 100,
  9267. "currentItemRoughness": 1,
  9268. "currentItemStrokeColor": "#000000",
  9269. "currentItemStrokeWidth": 1,
  9270. "exportBackground": true,
  9271. "name": "excalidraw-201933152653",
  9272. "viewBackgroundColor": "#ffffff",
  9273. },
  9274. "elements": Array [
  9275. Object {
  9276. "angle": 0,
  9277. "backgroundColor": "transparent",
  9278. "fillStyle": "hachure",
  9279. "height": 5,
  9280. "id": "id0",
  9281. "isDeleted": false,
  9282. "opacity": 100,
  9283. "roughness": 1,
  9284. "seed": 337897,
  9285. "strokeColor": "#000000",
  9286. "strokeWidth": 1,
  9287. "type": "rectangle",
  9288. "version": 29,
  9289. "versionNonce": 1532871783,
  9290. "width": 5,
  9291. "x": 10,
  9292. "y": 10,
  9293. },
  9294. ],
  9295. },
  9296. Object {
  9297. "appState": Object {
  9298. "currentItemBackgroundColor": "transparent",
  9299. "currentItemFillStyle": "hachure",
  9300. "currentItemFont": "20px Virgil",
  9301. "currentItemOpacity": 100,
  9302. "currentItemRoughness": 1,
  9303. "currentItemStrokeColor": "#000000",
  9304. "currentItemStrokeWidth": 1,
  9305. "exportBackground": true,
  9306. "name": "excalidraw-201933152653",
  9307. "viewBackgroundColor": "#ffffff",
  9308. },
  9309. "elements": Array [
  9310. Object {
  9311. "angle": 0,
  9312. "backgroundColor": "transparent",
  9313. "fillStyle": "hachure",
  9314. "height": 10,
  9315. "id": "id0",
  9316. "isDeleted": false,
  9317. "opacity": 100,
  9318. "roughness": 1,
  9319. "seed": 337897,
  9320. "strokeColor": "#000000",
  9321. "strokeWidth": 1,
  9322. "type": "rectangle",
  9323. "version": 31,
  9324. "versionNonce": 1934038695,
  9325. "width": 10,
  9326. "x": 10,
  9327. "y": 10,
  9328. },
  9329. ],
  9330. },
  9331. ],
  9332. }
  9333. `;
  9334. exports[`regression tests resize an element, trying every resize handle: [unresize handle se (-5, -5)] number of elements 1`] = `1`;
  9335. exports[`regression tests resize an element, trying every resize handle: [unresize handle se (-5, -5)] number of renders 1`] = `48`;
  9336. exports[`regression tests resize an element, trying every resize handle: [unresize handle sw (+5, +5)] appState 1`] = `
  9337. Object {
  9338. "collaborators": Map {},
  9339. "currentItemBackgroundColor": "transparent",
  9340. "currentItemFillStyle": "hachure",
  9341. "currentItemFont": "20px Virgil",
  9342. "currentItemOpacity": 100,
  9343. "currentItemRoughness": 1,
  9344. "currentItemStrokeColor": "#000000",
  9345. "currentItemStrokeWidth": 1,
  9346. "cursorX": 0,
  9347. "cursorY": 0,
  9348. "draggingElement": null,
  9349. "editingElement": null,
  9350. "elementLocked": false,
  9351. "elementType": "selection",
  9352. "errorMessage": null,
  9353. "exportBackground": true,
  9354. "isCollaborating": false,
  9355. "isLoading": false,
  9356. "isResizing": false,
  9357. "isRotating": false,
  9358. "lastPointerDownWith": "mouse",
  9359. "multiElement": null,
  9360. "name": "excalidraw-201933152653",
  9361. "openMenu": null,
  9362. "resizingElement": null,
  9363. "scrollX": 0,
  9364. "scrollY": 0,
  9365. "scrolledOutside": false,
  9366. "selectedElementIds": Object {
  9367. "id0": true,
  9368. "id1": true,
  9369. "id10": true,
  9370. "id11": true,
  9371. "id12": true,
  9372. "id2": true,
  9373. "id3": true,
  9374. "id4": true,
  9375. "id5": true,
  9376. "id6": true,
  9377. "id7": true,
  9378. "id8": true,
  9379. "id9": true,
  9380. },
  9381. "selectionElement": null,
  9382. "shouldCacheIgnoreZoom": false,
  9383. "viewBackgroundColor": "#ffffff",
  9384. "zoom": 1,
  9385. }
  9386. `;
  9387. exports[`regression tests resize an element, trying every resize handle: [unresize handle sw (+5, +5)] element 0 1`] = `
  9388. Object {
  9389. "angle": 0,
  9390. "backgroundColor": "transparent",
  9391. "fillStyle": "hachure",
  9392. "height": 10,
  9393. "id": "id0",
  9394. "isDeleted": false,
  9395. "opacity": 100,
  9396. "roughness": 1,
  9397. "seed": 337897,
  9398. "strokeColor": "#000000",
  9399. "strokeWidth": 1,
  9400. "type": "rectangle",
  9401. "version": 26,
  9402. "versionNonce": 651223591,
  9403. "width": 10,
  9404. "x": 10,
  9405. "y": 10,
  9406. }
  9407. `;
  9408. exports[`regression tests resize an element, trying every resize handle: [unresize handle sw (+5, +5)] history 1`] = `
  9409. Object {
  9410. "recording": false,
  9411. "redoStack": Array [],
  9412. "stateHistory": Array [
  9413. Object {
  9414. "appState": Object {
  9415. "currentItemBackgroundColor": "transparent",
  9416. "currentItemFillStyle": "hachure",
  9417. "currentItemFont": "20px Virgil",
  9418. "currentItemOpacity": 100,
  9419. "currentItemRoughness": 1,
  9420. "currentItemStrokeColor": "#000000",
  9421. "currentItemStrokeWidth": 1,
  9422. "exportBackground": true,
  9423. "name": "excalidraw-201933152653",
  9424. "viewBackgroundColor": "#ffffff",
  9425. },
  9426. "elements": Array [
  9427. Object {
  9428. "angle": 0,
  9429. "backgroundColor": "transparent",
  9430. "fillStyle": "hachure",
  9431. "height": 10,
  9432. "id": "id0",
  9433. "isDeleted": false,
  9434. "opacity": 100,
  9435. "roughness": 1,
  9436. "seed": 337897,
  9437. "strokeColor": "#000000",
  9438. "strokeWidth": 1,
  9439. "type": "rectangle",
  9440. "version": 3,
  9441. "versionNonce": 1278240551,
  9442. "width": 10,
  9443. "x": 10,
  9444. "y": 10,
  9445. },
  9446. ],
  9447. },
  9448. Object {
  9449. "appState": Object {
  9450. "currentItemBackgroundColor": "transparent",
  9451. "currentItemFillStyle": "hachure",
  9452. "currentItemFont": "20px Virgil",
  9453. "currentItemOpacity": 100,
  9454. "currentItemRoughness": 1,
  9455. "currentItemStrokeColor": "#000000",
  9456. "currentItemStrokeWidth": 1,
  9457. "exportBackground": true,
  9458. "name": "excalidraw-201933152653",
  9459. "viewBackgroundColor": "#ffffff",
  9460. },
  9461. "elements": Array [
  9462. Object {
  9463. "angle": 0,
  9464. "backgroundColor": "transparent",
  9465. "fillStyle": "hachure",
  9466. "height": 15,
  9467. "id": "id0",
  9468. "isDeleted": false,
  9469. "opacity": 100,
  9470. "roughness": 1,
  9471. "seed": 337897,
  9472. "strokeColor": "#000000",
  9473. "strokeWidth": 1,
  9474. "type": "rectangle",
  9475. "version": 5,
  9476. "versionNonce": 2019559783,
  9477. "width": 15,
  9478. "x": 5,
  9479. "y": 5,
  9480. },
  9481. ],
  9482. },
  9483. Object {
  9484. "appState": Object {
  9485. "currentItemBackgroundColor": "transparent",
  9486. "currentItemFillStyle": "hachure",
  9487. "currentItemFont": "20px Virgil",
  9488. "currentItemOpacity": 100,
  9489. "currentItemRoughness": 1,
  9490. "currentItemStrokeColor": "#000000",
  9491. "currentItemStrokeWidth": 1,
  9492. "exportBackground": true,
  9493. "name": "excalidraw-201933152653",
  9494. "viewBackgroundColor": "#ffffff",
  9495. },
  9496. "elements": Array [
  9497. Object {
  9498. "angle": 0,
  9499. "backgroundColor": "transparent",
  9500. "fillStyle": "hachure",
  9501. "height": 10,
  9502. "id": "id0",
  9503. "isDeleted": false,
  9504. "opacity": 100,
  9505. "roughness": 1,
  9506. "seed": 337897,
  9507. "strokeColor": "#000000",
  9508. "strokeWidth": 1,
  9509. "type": "rectangle",
  9510. "version": 7,
  9511. "versionNonce": 238820263,
  9512. "width": 10,
  9513. "x": 10,
  9514. "y": 10,
  9515. },
  9516. ],
  9517. },
  9518. Object {
  9519. "appState": Object {
  9520. "currentItemBackgroundColor": "transparent",
  9521. "currentItemFillStyle": "hachure",
  9522. "currentItemFont": "20px Virgil",
  9523. "currentItemOpacity": 100,
  9524. "currentItemRoughness": 1,
  9525. "currentItemStrokeColor": "#000000",
  9526. "currentItemStrokeWidth": 1,
  9527. "exportBackground": true,
  9528. "name": "excalidraw-201933152653",
  9529. "viewBackgroundColor": "#ffffff",
  9530. },
  9531. "elements": Array [
  9532. Object {
  9533. "angle": 0,
  9534. "backgroundColor": "transparent",
  9535. "fillStyle": "hachure",
  9536. "height": 5,
  9537. "id": "id0",
  9538. "isDeleted": false,
  9539. "opacity": 100,
  9540. "roughness": 1,
  9541. "seed": 337897,
  9542. "strokeColor": "#000000",
  9543. "strokeWidth": 1,
  9544. "type": "rectangle",
  9545. "version": 9,
  9546. "versionNonce": 23633383,
  9547. "width": 5,
  9548. "x": 15,
  9549. "y": 15,
  9550. },
  9551. ],
  9552. },
  9553. Object {
  9554. "appState": Object {
  9555. "currentItemBackgroundColor": "transparent",
  9556. "currentItemFillStyle": "hachure",
  9557. "currentItemFont": "20px Virgil",
  9558. "currentItemOpacity": 100,
  9559. "currentItemRoughness": 1,
  9560. "currentItemStrokeColor": "#000000",
  9561. "currentItemStrokeWidth": 1,
  9562. "exportBackground": true,
  9563. "name": "excalidraw-201933152653",
  9564. "viewBackgroundColor": "#ffffff",
  9565. },
  9566. "elements": Array [
  9567. Object {
  9568. "angle": 0,
  9569. "backgroundColor": "transparent",
  9570. "fillStyle": "hachure",
  9571. "height": 10,
  9572. "id": "id0",
  9573. "isDeleted": false,
  9574. "opacity": 100,
  9575. "roughness": 1,
  9576. "seed": 337897,
  9577. "strokeColor": "#000000",
  9578. "strokeWidth": 1,
  9579. "type": "rectangle",
  9580. "version": 11,
  9581. "versionNonce": 747212839,
  9582. "width": 10,
  9583. "x": 10,
  9584. "y": 10,
  9585. },
  9586. ],
  9587. },
  9588. Object {
  9589. "appState": Object {
  9590. "currentItemBackgroundColor": "transparent",
  9591. "currentItemFillStyle": "hachure",
  9592. "currentItemFont": "20px Virgil",
  9593. "currentItemOpacity": 100,
  9594. "currentItemRoughness": 1,
  9595. "currentItemStrokeColor": "#000000",
  9596. "currentItemStrokeWidth": 1,
  9597. "exportBackground": true,
  9598. "name": "excalidraw-201933152653",
  9599. "viewBackgroundColor": "#ffffff",
  9600. },
  9601. "elements": Array [
  9602. Object {
  9603. "angle": 0,
  9604. "backgroundColor": "transparent",
  9605. "fillStyle": "hachure",
  9606. "height": 15,
  9607. "id": "id0",
  9608. "isDeleted": false,
  9609. "opacity": 100,
  9610. "roughness": 1,
  9611. "seed": 337897,
  9612. "strokeColor": "#000000",
  9613. "strokeWidth": 1,
  9614. "type": "rectangle",
  9615. "version": 13,
  9616. "versionNonce": 289600103,
  9617. "width": 5,
  9618. "x": 10,
  9619. "y": 5,
  9620. },
  9621. ],
  9622. },
  9623. Object {
  9624. "appState": Object {
  9625. "currentItemBackgroundColor": "transparent",
  9626. "currentItemFillStyle": "hachure",
  9627. "currentItemFont": "20px Virgil",
  9628. "currentItemOpacity": 100,
  9629. "currentItemRoughness": 1,
  9630. "currentItemStrokeColor": "#000000",
  9631. "currentItemStrokeWidth": 1,
  9632. "exportBackground": true,
  9633. "name": "excalidraw-201933152653",
  9634. "viewBackgroundColor": "#ffffff",
  9635. },
  9636. "elements": Array [
  9637. Object {
  9638. "angle": 0,
  9639. "backgroundColor": "transparent",
  9640. "fillStyle": "hachure",
  9641. "height": 10,
  9642. "id": "id0",
  9643. "isDeleted": false,
  9644. "opacity": 100,
  9645. "roughness": 1,
  9646. "seed": 337897,
  9647. "strokeColor": "#000000",
  9648. "strokeWidth": 1,
  9649. "type": "rectangle",
  9650. "version": 15,
  9651. "versionNonce": 406373543,
  9652. "width": 10,
  9653. "x": 10,
  9654. "y": 10,
  9655. },
  9656. ],
  9657. },
  9658. Object {
  9659. "appState": Object {
  9660. "currentItemBackgroundColor": "transparent",
  9661. "currentItemFillStyle": "hachure",
  9662. "currentItemFont": "20px Virgil",
  9663. "currentItemOpacity": 100,
  9664. "currentItemRoughness": 1,
  9665. "currentItemStrokeColor": "#000000",
  9666. "currentItemStrokeWidth": 1,
  9667. "exportBackground": true,
  9668. "name": "excalidraw-201933152653",
  9669. "viewBackgroundColor": "#ffffff",
  9670. },
  9671. "elements": Array [
  9672. Object {
  9673. "angle": 0,
  9674. "backgroundColor": "transparent",
  9675. "fillStyle": "hachure",
  9676. "height": 5,
  9677. "id": "id0",
  9678. "isDeleted": false,
  9679. "opacity": 100,
  9680. "roughness": 1,
  9681. "seed": 337897,
  9682. "strokeColor": "#000000",
  9683. "strokeWidth": 1,
  9684. "type": "rectangle",
  9685. "version": 17,
  9686. "versionNonce": 1359939303,
  9687. "width": 15,
  9688. "x": 10,
  9689. "y": 15,
  9690. },
  9691. ],
  9692. },
  9693. Object {
  9694. "appState": Object {
  9695. "currentItemBackgroundColor": "transparent",
  9696. "currentItemFillStyle": "hachure",
  9697. "currentItemFont": "20px Virgil",
  9698. "currentItemOpacity": 100,
  9699. "currentItemRoughness": 1,
  9700. "currentItemStrokeColor": "#000000",
  9701. "currentItemStrokeWidth": 1,
  9702. "exportBackground": true,
  9703. "name": "excalidraw-201933152653",
  9704. "viewBackgroundColor": "#ffffff",
  9705. },
  9706. "elements": Array [
  9707. Object {
  9708. "angle": 0,
  9709. "backgroundColor": "transparent",
  9710. "fillStyle": "hachure",
  9711. "height": 10,
  9712. "id": "id0",
  9713. "isDeleted": false,
  9714. "opacity": 100,
  9715. "roughness": 1,
  9716. "seed": 337897,
  9717. "strokeColor": "#000000",
  9718. "strokeWidth": 1,
  9719. "type": "rectangle",
  9720. "version": 19,
  9721. "versionNonce": 845789479,
  9722. "width": 10,
  9723. "x": 10,
  9724. "y": 10,
  9725. },
  9726. ],
  9727. },
  9728. Object {
  9729. "appState": Object {
  9730. "currentItemBackgroundColor": "transparent",
  9731. "currentItemFillStyle": "hachure",
  9732. "currentItemFont": "20px Virgil",
  9733. "currentItemOpacity": 100,
  9734. "currentItemRoughness": 1,
  9735. "currentItemStrokeColor": "#000000",
  9736. "currentItemStrokeWidth": 1,
  9737. "exportBackground": true,
  9738. "name": "excalidraw-201933152653",
  9739. "viewBackgroundColor": "#ffffff",
  9740. },
  9741. "elements": Array [
  9742. Object {
  9743. "angle": 0,
  9744. "backgroundColor": "transparent",
  9745. "fillStyle": "hachure",
  9746. "height": 5,
  9747. "id": "id0",
  9748. "isDeleted": false,
  9749. "opacity": 100,
  9750. "roughness": 1,
  9751. "seed": 337897,
  9752. "strokeColor": "#000000",
  9753. "strokeWidth": 1,
  9754. "type": "rectangle",
  9755. "version": 21,
  9756. "versionNonce": 1508694887,
  9757. "width": 15,
  9758. "x": 5,
  9759. "y": 10,
  9760. },
  9761. ],
  9762. },
  9763. Object {
  9764. "appState": Object {
  9765. "currentItemBackgroundColor": "transparent",
  9766. "currentItemFillStyle": "hachure",
  9767. "currentItemFont": "20px Virgil",
  9768. "currentItemOpacity": 100,
  9769. "currentItemRoughness": 1,
  9770. "currentItemStrokeColor": "#000000",
  9771. "currentItemStrokeWidth": 1,
  9772. "exportBackground": true,
  9773. "name": "excalidraw-201933152653",
  9774. "viewBackgroundColor": "#ffffff",
  9775. },
  9776. "elements": Array [
  9777. Object {
  9778. "angle": 0,
  9779. "backgroundColor": "transparent",
  9780. "fillStyle": "hachure",
  9781. "height": 10,
  9782. "id": "id0",
  9783. "isDeleted": false,
  9784. "opacity": 100,
  9785. "roughness": 1,
  9786. "seed": 337897,
  9787. "strokeColor": "#000000",
  9788. "strokeWidth": 1,
  9789. "type": "rectangle",
  9790. "version": 23,
  9791. "versionNonce": 1279028647,
  9792. "width": 10,
  9793. "x": 10,
  9794. "y": 10,
  9795. },
  9796. ],
  9797. },
  9798. Object {
  9799. "appState": Object {
  9800. "currentItemBackgroundColor": "transparent",
  9801. "currentItemFillStyle": "hachure",
  9802. "currentItemFont": "20px Virgil",
  9803. "currentItemOpacity": 100,
  9804. "currentItemRoughness": 1,
  9805. "currentItemStrokeColor": "#000000",
  9806. "currentItemStrokeWidth": 1,
  9807. "exportBackground": true,
  9808. "name": "excalidraw-201933152653",
  9809. "viewBackgroundColor": "#ffffff",
  9810. },
  9811. "elements": Array [
  9812. Object {
  9813. "angle": 0,
  9814. "backgroundColor": "transparent",
  9815. "fillStyle": "hachure",
  9816. "height": 15,
  9817. "id": "id0",
  9818. "isDeleted": false,
  9819. "opacity": 100,
  9820. "roughness": 1,
  9821. "seed": 337897,
  9822. "strokeColor": "#000000",
  9823. "strokeWidth": 1,
  9824. "type": "rectangle",
  9825. "version": 25,
  9826. "versionNonce": 888958951,
  9827. "width": 5,
  9828. "x": 15,
  9829. "y": 10,
  9830. },
  9831. ],
  9832. },
  9833. Object {
  9834. "appState": Object {
  9835. "currentItemBackgroundColor": "transparent",
  9836. "currentItemFillStyle": "hachure",
  9837. "currentItemFont": "20px Virgil",
  9838. "currentItemOpacity": 100,
  9839. "currentItemRoughness": 1,
  9840. "currentItemStrokeColor": "#000000",
  9841. "currentItemStrokeWidth": 1,
  9842. "exportBackground": true,
  9843. "name": "excalidraw-201933152653",
  9844. "viewBackgroundColor": "#ffffff",
  9845. },
  9846. "elements": Array [
  9847. Object {
  9848. "angle": 0,
  9849. "backgroundColor": "transparent",
  9850. "fillStyle": "hachure",
  9851. "height": 10,
  9852. "id": "id0",
  9853. "isDeleted": false,
  9854. "opacity": 100,
  9855. "roughness": 1,
  9856. "seed": 337897,
  9857. "strokeColor": "#000000",
  9858. "strokeWidth": 1,
  9859. "type": "rectangle",
  9860. "version": 27,
  9861. "versionNonce": 651223591,
  9862. "width": 10,
  9863. "x": 10,
  9864. "y": 10,
  9865. },
  9866. ],
  9867. },
  9868. ],
  9869. }
  9870. `;
  9871. exports[`regression tests resize an element, trying every resize handle: [unresize handle sw (+5, +5)] number of elements 1`] = `1`;
  9872. exports[`regression tests resize an element, trying every resize handle: [unresize handle sw (+5, +5)] number of renders 1`] = `42`;
  9873. exports[`regression tests resize an element, trying every resize handle: [unresize handle sw (-5, -5)] appState 1`] = `
  9874. Object {
  9875. "collaborators": Map {},
  9876. "currentItemBackgroundColor": "transparent",
  9877. "currentItemFillStyle": "hachure",
  9878. "currentItemFont": "20px Virgil",
  9879. "currentItemOpacity": 100,
  9880. "currentItemRoughness": 1,
  9881. "currentItemStrokeColor": "#000000",
  9882. "currentItemStrokeWidth": 1,
  9883. "cursorX": 0,
  9884. "cursorY": 0,
  9885. "draggingElement": null,
  9886. "editingElement": null,
  9887. "elementLocked": false,
  9888. "elementType": "selection",
  9889. "errorMessage": null,
  9890. "exportBackground": true,
  9891. "isCollaborating": false,
  9892. "isLoading": false,
  9893. "isResizing": false,
  9894. "isRotating": false,
  9895. "lastPointerDownWith": "mouse",
  9896. "multiElement": null,
  9897. "name": "excalidraw-201933152653",
  9898. "openMenu": null,
  9899. "resizingElement": null,
  9900. "scrollX": 0,
  9901. "scrollY": 0,
  9902. "scrolledOutside": false,
  9903. "selectedElementIds": Object {
  9904. "id0": true,
  9905. "id1": true,
  9906. "id10": true,
  9907. "id2": true,
  9908. "id3": true,
  9909. "id4": true,
  9910. "id5": true,
  9911. "id6": true,
  9912. "id7": true,
  9913. "id8": true,
  9914. "id9": true,
  9915. },
  9916. "selectionElement": null,
  9917. "shouldCacheIgnoreZoom": false,
  9918. "viewBackgroundColor": "#ffffff",
  9919. "zoom": 1,
  9920. }
  9921. `;
  9922. exports[`regression tests resize an element, trying every resize handle: [unresize handle sw (-5, -5)] element 0 1`] = `
  9923. Object {
  9924. "angle": 0,
  9925. "backgroundColor": "transparent",
  9926. "fillStyle": "hachure",
  9927. "height": 10,
  9928. "id": "id0",
  9929. "isDeleted": false,
  9930. "opacity": 100,
  9931. "roughness": 1,
  9932. "seed": 337897,
  9933. "strokeColor": "#000000",
  9934. "strokeWidth": 1,
  9935. "type": "rectangle",
  9936. "version": 22,
  9937. "versionNonce": 1279028647,
  9938. "width": 10,
  9939. "x": 10,
  9940. "y": 10,
  9941. }
  9942. `;
  9943. exports[`regression tests resize an element, trying every resize handle: [unresize handle sw (-5, -5)] history 1`] = `
  9944. Object {
  9945. "recording": false,
  9946. "redoStack": Array [],
  9947. "stateHistory": Array [
  9948. Object {
  9949. "appState": Object {
  9950. "currentItemBackgroundColor": "transparent",
  9951. "currentItemFillStyle": "hachure",
  9952. "currentItemFont": "20px Virgil",
  9953. "currentItemOpacity": 100,
  9954. "currentItemRoughness": 1,
  9955. "currentItemStrokeColor": "#000000",
  9956. "currentItemStrokeWidth": 1,
  9957. "exportBackground": true,
  9958. "name": "excalidraw-201933152653",
  9959. "viewBackgroundColor": "#ffffff",
  9960. },
  9961. "elements": Array [
  9962. Object {
  9963. "angle": 0,
  9964. "backgroundColor": "transparent",
  9965. "fillStyle": "hachure",
  9966. "height": 10,
  9967. "id": "id0",
  9968. "isDeleted": false,
  9969. "opacity": 100,
  9970. "roughness": 1,
  9971. "seed": 337897,
  9972. "strokeColor": "#000000",
  9973. "strokeWidth": 1,
  9974. "type": "rectangle",
  9975. "version": 3,
  9976. "versionNonce": 1278240551,
  9977. "width": 10,
  9978. "x": 10,
  9979. "y": 10,
  9980. },
  9981. ],
  9982. },
  9983. Object {
  9984. "appState": Object {
  9985. "currentItemBackgroundColor": "transparent",
  9986. "currentItemFillStyle": "hachure",
  9987. "currentItemFont": "20px Virgil",
  9988. "currentItemOpacity": 100,
  9989. "currentItemRoughness": 1,
  9990. "currentItemStrokeColor": "#000000",
  9991. "currentItemStrokeWidth": 1,
  9992. "exportBackground": true,
  9993. "name": "excalidraw-201933152653",
  9994. "viewBackgroundColor": "#ffffff",
  9995. },
  9996. "elements": Array [
  9997. Object {
  9998. "angle": 0,
  9999. "backgroundColor": "transparent",
  10000. "fillStyle": "hachure",
  10001. "height": 15,
  10002. "id": "id0",
  10003. "isDeleted": false,
  10004. "opacity": 100,
  10005. "roughness": 1,
  10006. "seed": 337897,
  10007. "strokeColor": "#000000",
  10008. "strokeWidth": 1,
  10009. "type": "rectangle",
  10010. "version": 5,
  10011. "versionNonce": 2019559783,
  10012. "width": 15,
  10013. "x": 5,
  10014. "y": 5,
  10015. },
  10016. ],
  10017. },
  10018. Object {
  10019. "appState": Object {
  10020. "currentItemBackgroundColor": "transparent",
  10021. "currentItemFillStyle": "hachure",
  10022. "currentItemFont": "20px Virgil",
  10023. "currentItemOpacity": 100,
  10024. "currentItemRoughness": 1,
  10025. "currentItemStrokeColor": "#000000",
  10026. "currentItemStrokeWidth": 1,
  10027. "exportBackground": true,
  10028. "name": "excalidraw-201933152653",
  10029. "viewBackgroundColor": "#ffffff",
  10030. },
  10031. "elements": Array [
  10032. Object {
  10033. "angle": 0,
  10034. "backgroundColor": "transparent",
  10035. "fillStyle": "hachure",
  10036. "height": 10,
  10037. "id": "id0",
  10038. "isDeleted": false,
  10039. "opacity": 100,
  10040. "roughness": 1,
  10041. "seed": 337897,
  10042. "strokeColor": "#000000",
  10043. "strokeWidth": 1,
  10044. "type": "rectangle",
  10045. "version": 7,
  10046. "versionNonce": 238820263,
  10047. "width": 10,
  10048. "x": 10,
  10049. "y": 10,
  10050. },
  10051. ],
  10052. },
  10053. Object {
  10054. "appState": Object {
  10055. "currentItemBackgroundColor": "transparent",
  10056. "currentItemFillStyle": "hachure",
  10057. "currentItemFont": "20px Virgil",
  10058. "currentItemOpacity": 100,
  10059. "currentItemRoughness": 1,
  10060. "currentItemStrokeColor": "#000000",
  10061. "currentItemStrokeWidth": 1,
  10062. "exportBackground": true,
  10063. "name": "excalidraw-201933152653",
  10064. "viewBackgroundColor": "#ffffff",
  10065. },
  10066. "elements": Array [
  10067. Object {
  10068. "angle": 0,
  10069. "backgroundColor": "transparent",
  10070. "fillStyle": "hachure",
  10071. "height": 5,
  10072. "id": "id0",
  10073. "isDeleted": false,
  10074. "opacity": 100,
  10075. "roughness": 1,
  10076. "seed": 337897,
  10077. "strokeColor": "#000000",
  10078. "strokeWidth": 1,
  10079. "type": "rectangle",
  10080. "version": 9,
  10081. "versionNonce": 23633383,
  10082. "width": 5,
  10083. "x": 15,
  10084. "y": 15,
  10085. },
  10086. ],
  10087. },
  10088. Object {
  10089. "appState": Object {
  10090. "currentItemBackgroundColor": "transparent",
  10091. "currentItemFillStyle": "hachure",
  10092. "currentItemFont": "20px Virgil",
  10093. "currentItemOpacity": 100,
  10094. "currentItemRoughness": 1,
  10095. "currentItemStrokeColor": "#000000",
  10096. "currentItemStrokeWidth": 1,
  10097. "exportBackground": true,
  10098. "name": "excalidraw-201933152653",
  10099. "viewBackgroundColor": "#ffffff",
  10100. },
  10101. "elements": Array [
  10102. Object {
  10103. "angle": 0,
  10104. "backgroundColor": "transparent",
  10105. "fillStyle": "hachure",
  10106. "height": 10,
  10107. "id": "id0",
  10108. "isDeleted": false,
  10109. "opacity": 100,
  10110. "roughness": 1,
  10111. "seed": 337897,
  10112. "strokeColor": "#000000",
  10113. "strokeWidth": 1,
  10114. "type": "rectangle",
  10115. "version": 11,
  10116. "versionNonce": 747212839,
  10117. "width": 10,
  10118. "x": 10,
  10119. "y": 10,
  10120. },
  10121. ],
  10122. },
  10123. Object {
  10124. "appState": Object {
  10125. "currentItemBackgroundColor": "transparent",
  10126. "currentItemFillStyle": "hachure",
  10127. "currentItemFont": "20px Virgil",
  10128. "currentItemOpacity": 100,
  10129. "currentItemRoughness": 1,
  10130. "currentItemStrokeColor": "#000000",
  10131. "currentItemStrokeWidth": 1,
  10132. "exportBackground": true,
  10133. "name": "excalidraw-201933152653",
  10134. "viewBackgroundColor": "#ffffff",
  10135. },
  10136. "elements": Array [
  10137. Object {
  10138. "angle": 0,
  10139. "backgroundColor": "transparent",
  10140. "fillStyle": "hachure",
  10141. "height": 15,
  10142. "id": "id0",
  10143. "isDeleted": false,
  10144. "opacity": 100,
  10145. "roughness": 1,
  10146. "seed": 337897,
  10147. "strokeColor": "#000000",
  10148. "strokeWidth": 1,
  10149. "type": "rectangle",
  10150. "version": 13,
  10151. "versionNonce": 289600103,
  10152. "width": 5,
  10153. "x": 10,
  10154. "y": 5,
  10155. },
  10156. ],
  10157. },
  10158. Object {
  10159. "appState": Object {
  10160. "currentItemBackgroundColor": "transparent",
  10161. "currentItemFillStyle": "hachure",
  10162. "currentItemFont": "20px Virgil",
  10163. "currentItemOpacity": 100,
  10164. "currentItemRoughness": 1,
  10165. "currentItemStrokeColor": "#000000",
  10166. "currentItemStrokeWidth": 1,
  10167. "exportBackground": true,
  10168. "name": "excalidraw-201933152653",
  10169. "viewBackgroundColor": "#ffffff",
  10170. },
  10171. "elements": Array [
  10172. Object {
  10173. "angle": 0,
  10174. "backgroundColor": "transparent",
  10175. "fillStyle": "hachure",
  10176. "height": 10,
  10177. "id": "id0",
  10178. "isDeleted": false,
  10179. "opacity": 100,
  10180. "roughness": 1,
  10181. "seed": 337897,
  10182. "strokeColor": "#000000",
  10183. "strokeWidth": 1,
  10184. "type": "rectangle",
  10185. "version": 15,
  10186. "versionNonce": 406373543,
  10187. "width": 10,
  10188. "x": 10,
  10189. "y": 10,
  10190. },
  10191. ],
  10192. },
  10193. Object {
  10194. "appState": Object {
  10195. "currentItemBackgroundColor": "transparent",
  10196. "currentItemFillStyle": "hachure",
  10197. "currentItemFont": "20px Virgil",
  10198. "currentItemOpacity": 100,
  10199. "currentItemRoughness": 1,
  10200. "currentItemStrokeColor": "#000000",
  10201. "currentItemStrokeWidth": 1,
  10202. "exportBackground": true,
  10203. "name": "excalidraw-201933152653",
  10204. "viewBackgroundColor": "#ffffff",
  10205. },
  10206. "elements": Array [
  10207. Object {
  10208. "angle": 0,
  10209. "backgroundColor": "transparent",
  10210. "fillStyle": "hachure",
  10211. "height": 5,
  10212. "id": "id0",
  10213. "isDeleted": false,
  10214. "opacity": 100,
  10215. "roughness": 1,
  10216. "seed": 337897,
  10217. "strokeColor": "#000000",
  10218. "strokeWidth": 1,
  10219. "type": "rectangle",
  10220. "version": 17,
  10221. "versionNonce": 1359939303,
  10222. "width": 15,
  10223. "x": 10,
  10224. "y": 15,
  10225. },
  10226. ],
  10227. },
  10228. Object {
  10229. "appState": Object {
  10230. "currentItemBackgroundColor": "transparent",
  10231. "currentItemFillStyle": "hachure",
  10232. "currentItemFont": "20px Virgil",
  10233. "currentItemOpacity": 100,
  10234. "currentItemRoughness": 1,
  10235. "currentItemStrokeColor": "#000000",
  10236. "currentItemStrokeWidth": 1,
  10237. "exportBackground": true,
  10238. "name": "excalidraw-201933152653",
  10239. "viewBackgroundColor": "#ffffff",
  10240. },
  10241. "elements": Array [
  10242. Object {
  10243. "angle": 0,
  10244. "backgroundColor": "transparent",
  10245. "fillStyle": "hachure",
  10246. "height": 10,
  10247. "id": "id0",
  10248. "isDeleted": false,
  10249. "opacity": 100,
  10250. "roughness": 1,
  10251. "seed": 337897,
  10252. "strokeColor": "#000000",
  10253. "strokeWidth": 1,
  10254. "type": "rectangle",
  10255. "version": 19,
  10256. "versionNonce": 845789479,
  10257. "width": 10,
  10258. "x": 10,
  10259. "y": 10,
  10260. },
  10261. ],
  10262. },
  10263. Object {
  10264. "appState": Object {
  10265. "currentItemBackgroundColor": "transparent",
  10266. "currentItemFillStyle": "hachure",
  10267. "currentItemFont": "20px Virgil",
  10268. "currentItemOpacity": 100,
  10269. "currentItemRoughness": 1,
  10270. "currentItemStrokeColor": "#000000",
  10271. "currentItemStrokeWidth": 1,
  10272. "exportBackground": true,
  10273. "name": "excalidraw-201933152653",
  10274. "viewBackgroundColor": "#ffffff",
  10275. },
  10276. "elements": Array [
  10277. Object {
  10278. "angle": 0,
  10279. "backgroundColor": "transparent",
  10280. "fillStyle": "hachure",
  10281. "height": 5,
  10282. "id": "id0",
  10283. "isDeleted": false,
  10284. "opacity": 100,
  10285. "roughness": 1,
  10286. "seed": 337897,
  10287. "strokeColor": "#000000",
  10288. "strokeWidth": 1,
  10289. "type": "rectangle",
  10290. "version": 21,
  10291. "versionNonce": 1508694887,
  10292. "width": 15,
  10293. "x": 5,
  10294. "y": 10,
  10295. },
  10296. ],
  10297. },
  10298. Object {
  10299. "appState": Object {
  10300. "currentItemBackgroundColor": "transparent",
  10301. "currentItemFillStyle": "hachure",
  10302. "currentItemFont": "20px Virgil",
  10303. "currentItemOpacity": 100,
  10304. "currentItemRoughness": 1,
  10305. "currentItemStrokeColor": "#000000",
  10306. "currentItemStrokeWidth": 1,
  10307. "exportBackground": true,
  10308. "name": "excalidraw-201933152653",
  10309. "viewBackgroundColor": "#ffffff",
  10310. },
  10311. "elements": Array [
  10312. Object {
  10313. "angle": 0,
  10314. "backgroundColor": "transparent",
  10315. "fillStyle": "hachure",
  10316. "height": 10,
  10317. "id": "id0",
  10318. "isDeleted": false,
  10319. "opacity": 100,
  10320. "roughness": 1,
  10321. "seed": 337897,
  10322. "strokeColor": "#000000",
  10323. "strokeWidth": 1,
  10324. "type": "rectangle",
  10325. "version": 23,
  10326. "versionNonce": 1279028647,
  10327. "width": 10,
  10328. "x": 10,
  10329. "y": 10,
  10330. },
  10331. ],
  10332. },
  10333. ],
  10334. }
  10335. `;
  10336. exports[`regression tests resize an element, trying every resize handle: [unresize handle sw (-5, -5)] number of elements 1`] = `1`;
  10337. exports[`regression tests resize an element, trying every resize handle: [unresize handle sw (-5, -5)] number of renders 1`] = `36`;
  10338. exports[`regression tests shift-click to select a group, then drag: [end of test] appState 1`] = `
  10339. Object {
  10340. "collaborators": Map {},
  10341. "currentItemBackgroundColor": "transparent",
  10342. "currentItemFillStyle": "hachure",
  10343. "currentItemFont": "20px Virgil",
  10344. "currentItemOpacity": 100,
  10345. "currentItemRoughness": 1,
  10346. "currentItemStrokeColor": "#000000",
  10347. "currentItemStrokeWidth": 1,
  10348. "cursorX": 0,
  10349. "cursorY": 0,
  10350. "draggingElement": null,
  10351. "editingElement": null,
  10352. "elementLocked": false,
  10353. "elementType": "selection",
  10354. "errorMessage": null,
  10355. "exportBackground": true,
  10356. "isCollaborating": false,
  10357. "isLoading": false,
  10358. "isResizing": false,
  10359. "isRotating": false,
  10360. "lastPointerDownWith": "mouse",
  10361. "multiElement": null,
  10362. "name": "excalidraw-201933152653",
  10363. "openMenu": null,
  10364. "resizingElement": null,
  10365. "scrollX": 0,
  10366. "scrollY": 0,
  10367. "scrolledOutside": false,
  10368. "selectedElementIds": Object {
  10369. "id0": true,
  10370. "id1": true,
  10371. "id2": true,
  10372. "id3": true,
  10373. "id4": true,
  10374. },
  10375. "selectionElement": null,
  10376. "shouldCacheIgnoreZoom": false,
  10377. "viewBackgroundColor": "#ffffff",
  10378. "zoom": 1,
  10379. }
  10380. `;
  10381. exports[`regression tests shift-click to select a group, then drag: [end of test] element 0 1`] = `
  10382. Object {
  10383. "angle": 0,
  10384. "backgroundColor": "transparent",
  10385. "fillStyle": "hachure",
  10386. "height": 10,
  10387. "id": "id0",
  10388. "isDeleted": false,
  10389. "opacity": 100,
  10390. "roughness": 1,
  10391. "seed": 337897,
  10392. "strokeColor": "#000000",
  10393. "strokeWidth": 1,
  10394. "type": "rectangle",
  10395. "version": 3,
  10396. "versionNonce": 493213705,
  10397. "width": 10,
  10398. "x": 20,
  10399. "y": 20,
  10400. }
  10401. `;
  10402. exports[`regression tests shift-click to select a group, then drag: [end of test] element 1 1`] = `
  10403. Object {
  10404. "angle": 0,
  10405. "backgroundColor": "transparent",
  10406. "fillStyle": "hachure",
  10407. "height": 10,
  10408. "id": "id1",
  10409. "isDeleted": false,
  10410. "opacity": 100,
  10411. "roughness": 1,
  10412. "seed": 453191,
  10413. "strokeColor": "#000000",
  10414. "strokeWidth": 1,
  10415. "type": "rectangle",
  10416. "version": 3,
  10417. "versionNonce": 915032327,
  10418. "width": 10,
  10419. "x": 40,
  10420. "y": 20,
  10421. }
  10422. `;
  10423. exports[`regression tests shift-click to select a group, then drag: [end of test] history 1`] = `
  10424. Object {
  10425. "recording": false,
  10426. "redoStack": Array [],
  10427. "stateHistory": Array [
  10428. Object {
  10429. "appState": Object {
  10430. "currentItemBackgroundColor": "transparent",
  10431. "currentItemFillStyle": "hachure",
  10432. "currentItemFont": "20px Virgil",
  10433. "currentItemOpacity": 100,
  10434. "currentItemRoughness": 1,
  10435. "currentItemStrokeColor": "#000000",
  10436. "currentItemStrokeWidth": 1,
  10437. "exportBackground": true,
  10438. "name": "excalidraw-201933152653",
  10439. "viewBackgroundColor": "#ffffff",
  10440. },
  10441. "elements": Array [
  10442. Object {
  10443. "angle": 0,
  10444. "backgroundColor": "transparent",
  10445. "fillStyle": "hachure",
  10446. "height": 10,
  10447. "id": "id0",
  10448. "isDeleted": false,
  10449. "opacity": 100,
  10450. "roughness": 1,
  10451. "seed": 337897,
  10452. "strokeColor": "#000000",
  10453. "strokeWidth": 1,
  10454. "type": "rectangle",
  10455. "version": 3,
  10456. "versionNonce": 1278240551,
  10457. "width": 10,
  10458. "x": 10,
  10459. "y": 10,
  10460. },
  10461. ],
  10462. },
  10463. Object {
  10464. "appState": Object {
  10465. "currentItemBackgroundColor": "transparent",
  10466. "currentItemFillStyle": "hachure",
  10467. "currentItemFont": "20px Virgil",
  10468. "currentItemOpacity": 100,
  10469. "currentItemRoughness": 1,
  10470. "currentItemStrokeColor": "#000000",
  10471. "currentItemStrokeWidth": 1,
  10472. "exportBackground": true,
  10473. "name": "excalidraw-201933152653",
  10474. "viewBackgroundColor": "#ffffff",
  10475. },
  10476. "elements": Array [
  10477. Object {
  10478. "angle": 0,
  10479. "backgroundColor": "transparent",
  10480. "fillStyle": "hachure",
  10481. "height": 10,
  10482. "id": "id0",
  10483. "isDeleted": false,
  10484. "opacity": 100,
  10485. "roughness": 1,
  10486. "seed": 337897,
  10487. "strokeColor": "#000000",
  10488. "strokeWidth": 1,
  10489. "type": "rectangle",
  10490. "version": 3,
  10491. "versionNonce": 1278240551,
  10492. "width": 10,
  10493. "x": 10,
  10494. "y": 10,
  10495. },
  10496. Object {
  10497. "angle": 0,
  10498. "backgroundColor": "transparent",
  10499. "fillStyle": "hachure",
  10500. "height": 10,
  10501. "id": "id1",
  10502. "isDeleted": false,
  10503. "opacity": 100,
  10504. "roughness": 1,
  10505. "seed": 453191,
  10506. "strokeColor": "#000000",
  10507. "strokeWidth": 1,
  10508. "type": "rectangle",
  10509. "version": 3,
  10510. "versionNonce": 401146281,
  10511. "width": 10,
  10512. "x": 30,
  10513. "y": 10,
  10514. },
  10515. ],
  10516. },
  10517. Object {
  10518. "appState": Object {
  10519. "currentItemBackgroundColor": "transparent",
  10520. "currentItemFillStyle": "hachure",
  10521. "currentItemFont": "20px Virgil",
  10522. "currentItemOpacity": 100,
  10523. "currentItemRoughness": 1,
  10524. "currentItemStrokeColor": "#000000",
  10525. "currentItemStrokeWidth": 1,
  10526. "exportBackground": true,
  10527. "name": "excalidraw-201933152653",
  10528. "viewBackgroundColor": "#ffffff",
  10529. },
  10530. "elements": Array [
  10531. Object {
  10532. "angle": 0,
  10533. "backgroundColor": "transparent",
  10534. "fillStyle": "hachure",
  10535. "height": 10,
  10536. "id": "id0",
  10537. "isDeleted": false,
  10538. "opacity": 100,
  10539. "roughness": 1,
  10540. "seed": 337897,
  10541. "strokeColor": "#000000",
  10542. "strokeWidth": 1,
  10543. "type": "rectangle",
  10544. "version": 4,
  10545. "versionNonce": 493213705,
  10546. "width": 10,
  10547. "x": 20,
  10548. "y": 20,
  10549. },
  10550. Object {
  10551. "angle": 0,
  10552. "backgroundColor": "transparent",
  10553. "fillStyle": "hachure",
  10554. "height": 10,
  10555. "id": "id1",
  10556. "isDeleted": false,
  10557. "opacity": 100,
  10558. "roughness": 1,
  10559. "seed": 453191,
  10560. "strokeColor": "#000000",
  10561. "strokeWidth": 1,
  10562. "type": "rectangle",
  10563. "version": 4,
  10564. "versionNonce": 915032327,
  10565. "width": 10,
  10566. "x": 40,
  10567. "y": 20,
  10568. },
  10569. ],
  10570. },
  10571. ],
  10572. }
  10573. `;
  10574. exports[`regression tests shift-click to select a group, then drag: [end of test] number of elements 1`] = `2`;
  10575. exports[`regression tests shift-click to select a group, then drag: [end of test] number of renders 1`] = `17`;
  10576. exports[`regression tests spacebar + drag scrolls the canvas: [end of test] appState 1`] = `
  10577. Object {
  10578. "collaborators": Map {},
  10579. "currentItemBackgroundColor": "transparent",
  10580. "currentItemFillStyle": "hachure",
  10581. "currentItemFont": "20px Virgil",
  10582. "currentItemOpacity": 100,
  10583. "currentItemRoughness": 1,
  10584. "currentItemStrokeColor": "#000000",
  10585. "currentItemStrokeWidth": 1,
  10586. "cursorX": 0,
  10587. "cursorY": 0,
  10588. "draggingElement": null,
  10589. "editingElement": null,
  10590. "elementLocked": false,
  10591. "elementType": "selection",
  10592. "errorMessage": null,
  10593. "exportBackground": true,
  10594. "isCollaborating": false,
  10595. "isLoading": false,
  10596. "isResizing": false,
  10597. "isRotating": false,
  10598. "lastPointerDownWith": "mouse",
  10599. "multiElement": null,
  10600. "name": "excalidraw-201933152653",
  10601. "openMenu": null,
  10602. "resizingElement": null,
  10603. "scrollX": 10,
  10604. "scrollY": 10,
  10605. "scrolledOutside": false,
  10606. "selectedElementIds": Object {},
  10607. "selectionElement": null,
  10608. "shouldCacheIgnoreZoom": false,
  10609. "viewBackgroundColor": "#ffffff",
  10610. "zoom": 1,
  10611. }
  10612. `;
  10613. exports[`regression tests spacebar + drag scrolls the canvas: [end of test] history 1`] = `
  10614. Object {
  10615. "recording": false,
  10616. "redoStack": Array [],
  10617. "stateHistory": Array [],
  10618. }
  10619. `;
  10620. exports[`regression tests spacebar + drag scrolls the canvas: [end of test] number of elements 1`] = `0`;
  10621. exports[`regression tests spacebar + drag scrolls the canvas: [end of test] number of renders 1`] = `4`;
  10622. exports[`regression tests two-finger scroll works: [end of test] appState 1`] = `
  10623. Object {
  10624. "collaborators": Map {},
  10625. "currentItemBackgroundColor": "transparent",
  10626. "currentItemFillStyle": "hachure",
  10627. "currentItemFont": "20px Virgil",
  10628. "currentItemOpacity": 100,
  10629. "currentItemRoughness": 1,
  10630. "currentItemStrokeColor": "#000000",
  10631. "currentItemStrokeWidth": 1,
  10632. "cursorX": 0,
  10633. "cursorY": 0,
  10634. "draggingElement": null,
  10635. "editingElement": null,
  10636. "elementLocked": false,
  10637. "elementType": "selection",
  10638. "errorMessage": null,
  10639. "exportBackground": true,
  10640. "isCollaborating": false,
  10641. "isLoading": false,
  10642. "isResizing": false,
  10643. "isRotating": false,
  10644. "lastPointerDownWith": "mouse",
  10645. "multiElement": null,
  10646. "name": "excalidraw-201933152653",
  10647. "openMenu": null,
  10648. "resizingElement": null,
  10649. "scrollX": 8,
  10650. "scrollY": -9,
  10651. "scrolledOutside": false,
  10652. "selectedElementIds": Object {
  10653. "id1": true,
  10654. },
  10655. "selectionElement": null,
  10656. "shouldCacheIgnoreZoom": true,
  10657. "viewBackgroundColor": "#ffffff",
  10658. "zoom": 1,
  10659. }
  10660. `;
  10661. exports[`regression tests two-finger scroll works: [end of test] history 1`] = `
  10662. Object {
  10663. "recording": false,
  10664. "redoStack": Array [],
  10665. "stateHistory": Array [],
  10666. }
  10667. `;
  10668. exports[`regression tests two-finger scroll works: [end of test] number of elements 1`] = `0`;
  10669. exports[`regression tests two-finger scroll works: [end of test] number of renders 1`] = `10`;
  10670. exports[`regression tests undo/redo drawing an element: [end of test] appState 1`] = `
  10671. Object {
  10672. "collaborators": Map {},
  10673. "currentItemBackgroundColor": "transparent",
  10674. "currentItemFillStyle": "hachure",
  10675. "currentItemFont": "20px Virgil",
  10676. "currentItemOpacity": 100,
  10677. "currentItemRoughness": 1,
  10678. "currentItemStrokeColor": "#000000",
  10679. "currentItemStrokeWidth": 1,
  10680. "cursorX": 0,
  10681. "cursorY": 0,
  10682. "draggingElement": null,
  10683. "editingElement": null,
  10684. "elementLocked": false,
  10685. "elementType": "selection",
  10686. "errorMessage": null,
  10687. "exportBackground": true,
  10688. "isCollaborating": false,
  10689. "isLoading": false,
  10690. "isResizing": false,
  10691. "isRotating": false,
  10692. "lastPointerDownWith": "mouse",
  10693. "multiElement": null,
  10694. "name": "excalidraw-201933152653",
  10695. "openMenu": null,
  10696. "resizingElement": null,
  10697. "scrollX": 0,
  10698. "scrollY": 0,
  10699. "scrolledOutside": false,
  10700. "selectedElementIds": Object {
  10701. "id2": true,
  10702. },
  10703. "selectionElement": null,
  10704. "shouldCacheIgnoreZoom": false,
  10705. "viewBackgroundColor": "#ffffff",
  10706. "zoom": 1,
  10707. }
  10708. `;
  10709. exports[`regression tests undo/redo drawing an element: [end of test] element 0 1`] = `
  10710. Object {
  10711. "angle": 0,
  10712. "backgroundColor": "transparent",
  10713. "fillStyle": "hachure",
  10714. "height": 10,
  10715. "id": "id0",
  10716. "isDeleted": false,
  10717. "opacity": 100,
  10718. "roughness": 1,
  10719. "seed": 337897,
  10720. "strokeColor": "#000000",
  10721. "strokeWidth": 1,
  10722. "type": "rectangle",
  10723. "version": 3,
  10724. "versionNonce": 1278240551,
  10725. "width": 10,
  10726. "x": 10,
  10727. "y": 10,
  10728. }
  10729. `;
  10730. exports[`regression tests undo/redo drawing an element: [end of test] element 1 1`] = `
  10731. Object {
  10732. "angle": 0,
  10733. "backgroundColor": "transparent",
  10734. "fillStyle": "hachure",
  10735. "height": 10,
  10736. "id": "id1",
  10737. "isDeleted": false,
  10738. "opacity": 100,
  10739. "roughness": 1,
  10740. "seed": 453191,
  10741. "strokeColor": "#000000",
  10742. "strokeWidth": 1,
  10743. "type": "rectangle",
  10744. "version": 3,
  10745. "versionNonce": 401146281,
  10746. "width": 10,
  10747. "x": 30,
  10748. "y": 10,
  10749. }
  10750. `;
  10751. exports[`regression tests undo/redo drawing an element: [end of test] element 2 1`] = `
  10752. Object {
  10753. "angle": 0,
  10754. "backgroundColor": "transparent",
  10755. "fillStyle": "hachure",
  10756. "height": 10,
  10757. "id": "id2",
  10758. "isDeleted": true,
  10759. "opacity": 100,
  10760. "roughness": 1,
  10761. "seed": 1116226695,
  10762. "strokeColor": "#000000",
  10763. "strokeWidth": 1,
  10764. "type": "rectangle",
  10765. "version": 5,
  10766. "versionNonce": 1006504105,
  10767. "width": 10,
  10768. "x": 50,
  10769. "y": 10,
  10770. }
  10771. `;
  10772. exports[`regression tests undo/redo drawing an element: [end of test] history 1`] = `
  10773. Object {
  10774. "recording": false,
  10775. "redoStack": Array [
  10776. Object {
  10777. "appState": Object {
  10778. "currentItemBackgroundColor": "transparent",
  10779. "currentItemFillStyle": "hachure",
  10780. "currentItemFont": "20px Virgil",
  10781. "currentItemOpacity": 100,
  10782. "currentItemRoughness": 1,
  10783. "currentItemStrokeColor": "#000000",
  10784. "currentItemStrokeWidth": 1,
  10785. "exportBackground": true,
  10786. "name": "excalidraw-201933152653",
  10787. "viewBackgroundColor": "#ffffff",
  10788. },
  10789. "elements": Array [
  10790. Object {
  10791. "angle": 0,
  10792. "backgroundColor": "transparent",
  10793. "fillStyle": "hachure",
  10794. "height": 10,
  10795. "id": "id0",
  10796. "isDeleted": false,
  10797. "opacity": 100,
  10798. "roughness": 1,
  10799. "seed": 337897,
  10800. "strokeColor": "#000000",
  10801. "strokeWidth": 1,
  10802. "type": "rectangle",
  10803. "version": 3,
  10804. "versionNonce": 1278240551,
  10805. "width": 10,
  10806. "x": 10,
  10807. "y": 10,
  10808. },
  10809. Object {
  10810. "angle": 0,
  10811. "backgroundColor": "transparent",
  10812. "fillStyle": "hachure",
  10813. "height": 10,
  10814. "id": "id1",
  10815. "isDeleted": false,
  10816. "opacity": 100,
  10817. "roughness": 1,
  10818. "seed": 453191,
  10819. "strokeColor": "#000000",
  10820. "strokeWidth": 1,
  10821. "type": "rectangle",
  10822. "version": 3,
  10823. "versionNonce": 401146281,
  10824. "width": 10,
  10825. "x": 30,
  10826. "y": 10,
  10827. },
  10828. Object {
  10829. "angle": 0,
  10830. "backgroundColor": "transparent",
  10831. "fillStyle": "hachure",
  10832. "height": 10,
  10833. "id": "id2",
  10834. "isDeleted": false,
  10835. "opacity": 100,
  10836. "roughness": 1,
  10837. "seed": 1116226695,
  10838. "strokeColor": "#000000",
  10839. "strokeWidth": 1,
  10840. "type": "rectangle",
  10841. "version": 3,
  10842. "versionNonce": 1014066025,
  10843. "width": 10,
  10844. "x": 50,
  10845. "y": 10,
  10846. },
  10847. ],
  10848. },
  10849. ],
  10850. "stateHistory": Array [
  10851. Object {
  10852. "appState": Object {
  10853. "currentItemBackgroundColor": "transparent",
  10854. "currentItemFillStyle": "hachure",
  10855. "currentItemFont": "20px Virgil",
  10856. "currentItemOpacity": 100,
  10857. "currentItemRoughness": 1,
  10858. "currentItemStrokeColor": "#000000",
  10859. "currentItemStrokeWidth": 1,
  10860. "exportBackground": true,
  10861. "name": "excalidraw-201933152653",
  10862. "viewBackgroundColor": "#ffffff",
  10863. },
  10864. "elements": Array [
  10865. Object {
  10866. "angle": 0,
  10867. "backgroundColor": "transparent",
  10868. "fillStyle": "hachure",
  10869. "height": 10,
  10870. "id": "id0",
  10871. "isDeleted": false,
  10872. "opacity": 100,
  10873. "roughness": 1,
  10874. "seed": 337897,
  10875. "strokeColor": "#000000",
  10876. "strokeWidth": 1,
  10877. "type": "rectangle",
  10878. "version": 3,
  10879. "versionNonce": 1278240551,
  10880. "width": 10,
  10881. "x": 10,
  10882. "y": 10,
  10883. },
  10884. ],
  10885. },
  10886. Object {
  10887. "appState": Object {
  10888. "currentItemBackgroundColor": "transparent",
  10889. "currentItemFillStyle": "hachure",
  10890. "currentItemFont": "20px Virgil",
  10891. "currentItemOpacity": 100,
  10892. "currentItemRoughness": 1,
  10893. "currentItemStrokeColor": "#000000",
  10894. "currentItemStrokeWidth": 1,
  10895. "exportBackground": true,
  10896. "name": "excalidraw-201933152653",
  10897. "viewBackgroundColor": "#ffffff",
  10898. },
  10899. "elements": Array [
  10900. Object {
  10901. "angle": 0,
  10902. "backgroundColor": "transparent",
  10903. "fillStyle": "hachure",
  10904. "height": 10,
  10905. "id": "id0",
  10906. "isDeleted": false,
  10907. "opacity": 100,
  10908. "roughness": 1,
  10909. "seed": 337897,
  10910. "strokeColor": "#000000",
  10911. "strokeWidth": 1,
  10912. "type": "rectangle",
  10913. "version": 3,
  10914. "versionNonce": 1278240551,
  10915. "width": 10,
  10916. "x": 10,
  10917. "y": 10,
  10918. },
  10919. Object {
  10920. "angle": 0,
  10921. "backgroundColor": "transparent",
  10922. "fillStyle": "hachure",
  10923. "height": 10,
  10924. "id": "id1",
  10925. "isDeleted": false,
  10926. "opacity": 100,
  10927. "roughness": 1,
  10928. "seed": 453191,
  10929. "strokeColor": "#000000",
  10930. "strokeWidth": 1,
  10931. "type": "rectangle",
  10932. "version": 3,
  10933. "versionNonce": 401146281,
  10934. "width": 10,
  10935. "x": 30,
  10936. "y": 10,
  10937. },
  10938. ],
  10939. },
  10940. ],
  10941. }
  10942. `;
  10943. exports[`regression tests undo/redo drawing an element: [end of test] number of elements 1`] = `3`;
  10944. exports[`regression tests undo/redo drawing an element: [end of test] number of renders 1`] = `17`;
  10945. exports[`regression tests zoom hotkeys: [end of test] appState 1`] = `
  10946. Object {
  10947. "collaborators": Map {},
  10948. "currentItemBackgroundColor": "transparent",
  10949. "currentItemFillStyle": "hachure",
  10950. "currentItemFont": "20px Virgil",
  10951. "currentItemOpacity": 100,
  10952. "currentItemRoughness": 1,
  10953. "currentItemStrokeColor": "#000000",
  10954. "currentItemStrokeWidth": 1,
  10955. "cursorX": 0,
  10956. "cursorY": 0,
  10957. "draggingElement": null,
  10958. "editingElement": null,
  10959. "elementLocked": false,
  10960. "elementType": "selection",
  10961. "errorMessage": null,
  10962. "exportBackground": true,
  10963. "isCollaborating": false,
  10964. "isLoading": false,
  10965. "isResizing": false,
  10966. "isRotating": false,
  10967. "lastPointerDownWith": "mouse",
  10968. "multiElement": null,
  10969. "name": "excalidraw-201933152653",
  10970. "openMenu": null,
  10971. "resizingElement": null,
  10972. "scrollX": 0,
  10973. "scrollY": 0,
  10974. "scrolledOutside": false,
  10975. "selectedElementIds": Object {},
  10976. "selectionElement": null,
  10977. "shouldCacheIgnoreZoom": false,
  10978. "viewBackgroundColor": "#ffffff",
  10979. "zoom": 1,
  10980. }
  10981. `;
  10982. exports[`regression tests zoom hotkeys: [end of test] history 1`] = `
  10983. Object {
  10984. "recording": false,
  10985. "redoStack": Array [],
  10986. "stateHistory": Array [],
  10987. }
  10988. `;
  10989. exports[`regression tests zoom hotkeys: [end of test] number of elements 1`] = `0`;
  10990. exports[`regression tests zoom hotkeys: [end of test] number of renders 1`] = `4`;