history.test.tsx.snap 494 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191
  1. // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
  2. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind bindings when both are updated through the history and the arrow got bound to a different element in the meantime > [end of test] appState 1`] = `
  3. {
  4. "activeEmbeddable": null,
  5. "activeTool": {
  6. "customType": null,
  7. "fromSelection": false,
  8. "lastActiveTool": null,
  9. "locked": false,
  10. "type": "selection",
  11. },
  12. "collaborators": Map {},
  13. "contextMenu": null,
  14. "croppingElementId": null,
  15. "currentChartType": "bar",
  16. "currentHoveredFontFamily": null,
  17. "currentItemArrowType": "round",
  18. "currentItemBackgroundColor": "transparent",
  19. "currentItemEndArrowhead": "arrow",
  20. "currentItemFillStyle": "solid",
  21. "currentItemFontFamily": 5,
  22. "currentItemFontSize": 20,
  23. "currentItemOpacity": 100,
  24. "currentItemRoughness": 1,
  25. "currentItemRoundness": "round",
  26. "currentItemStartArrowhead": null,
  27. "currentItemStrokeColor": "#1e1e1e",
  28. "currentItemStrokeStyle": "solid",
  29. "currentItemStrokeWidth": 2,
  30. "currentItemTextAlign": "left",
  31. "cursorButton": "up",
  32. "defaultSidebarDockedPreference": false,
  33. "editingFrame": null,
  34. "editingGroupId": null,
  35. "editingLinearElement": null,
  36. "editingTextElement": null,
  37. "elementsToHighlight": null,
  38. "errorMessage": null,
  39. "exportBackground": true,
  40. "exportEmbedScene": false,
  41. "exportScale": 1,
  42. "exportWithDarkMode": false,
  43. "fileHandle": null,
  44. "followedBy": Set {},
  45. "frameRendering": {
  46. "clip": true,
  47. "enabled": true,
  48. "name": true,
  49. "outline": true,
  50. },
  51. "frameToHighlight": null,
  52. "gridModeEnabled": false,
  53. "gridSize": 20,
  54. "gridStep": 5,
  55. "height": 0,
  56. "hoveredElementIds": {},
  57. "isBindingEnabled": true,
  58. "isCropping": false,
  59. "isLoading": false,
  60. "isResizing": false,
  61. "isRotating": false,
  62. "lastPointerDownWith": "mouse",
  63. "multiElement": null,
  64. "newElement": null,
  65. "objectsSnapModeEnabled": false,
  66. "offsetLeft": 0,
  67. "offsetTop": 0,
  68. "openDialog": null,
  69. "openMenu": null,
  70. "openPopup": null,
  71. "openSidebar": null,
  72. "originSnapOffset": null,
  73. "pasteDialog": {
  74. "data": null,
  75. "shown": false,
  76. },
  77. "penDetected": false,
  78. "penMode": false,
  79. "pendingImageElementId": null,
  80. "previousSelectedElementIds": {
  81. "id172": true,
  82. },
  83. "resizingElement": null,
  84. "scrollX": 0,
  85. "scrollY": 0,
  86. "searchMatches": [],
  87. "selectedElementIds": {
  88. "id172": true,
  89. },
  90. "selectedElementsAreBeingDragged": false,
  91. "selectedGroupIds": {},
  92. "selectionElement": null,
  93. "shouldCacheIgnoreZoom": false,
  94. "showHyperlinkPopup": false,
  95. "showWelcomeScreen": true,
  96. "snapLines": [],
  97. "startBoundElement": null,
  98. "stats": {
  99. "open": false,
  100. "panels": 3,
  101. },
  102. "suggestedBindings": [],
  103. "theme": "light",
  104. "toast": null,
  105. "userToFollow": null,
  106. "viewBackgroundColor": "#ffffff",
  107. "viewModeEnabled": false,
  108. "width": 0,
  109. "zenModeEnabled": false,
  110. "zoom": {
  111. "value": 1,
  112. },
  113. }
  114. `;
  115. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind bindings when both are updated through the history and the arrow got bound to a different element in the meantime > [end of test] element 0 1`] = `
  116. {
  117. "angle": 0,
  118. "backgroundColor": "transparent",
  119. "boundElements": [],
  120. "customData": undefined,
  121. "fillStyle": "solid",
  122. "frameId": null,
  123. "groupIds": [],
  124. "height": 100,
  125. "id": "id170",
  126. "index": "a0",
  127. "isDeleted": false,
  128. "link": null,
  129. "locked": false,
  130. "opacity": 100,
  131. "roughness": 1,
  132. "roundness": {
  133. "type": 3,
  134. },
  135. "strokeColor": "#1e1e1e",
  136. "strokeStyle": "solid",
  137. "strokeWidth": 2,
  138. "type": "rectangle",
  139. "updated": 1,
  140. "version": 18,
  141. "width": 100,
  142. "x": -100,
  143. "y": -50,
  144. }
  145. `;
  146. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind bindings when both are updated through the history and the arrow got bound to a different element in the meantime > [end of test] element 1 1`] = `
  147. {
  148. "angle": 0,
  149. "backgroundColor": "transparent",
  150. "boundElements": [],
  151. "customData": undefined,
  152. "fillStyle": "solid",
  153. "frameId": null,
  154. "groupIds": [],
  155. "height": 100,
  156. "id": "id171",
  157. "index": "a1",
  158. "isDeleted": false,
  159. "link": null,
  160. "locked": false,
  161. "opacity": 100,
  162. "roughness": 1,
  163. "roundness": {
  164. "type": 3,
  165. },
  166. "strokeColor": "#1e1e1e",
  167. "strokeStyle": "solid",
  168. "strokeWidth": 2,
  169. "type": "rectangle",
  170. "updated": 1,
  171. "version": 19,
  172. "width": 100,
  173. "x": 100,
  174. "y": -50,
  175. }
  176. `;
  177. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind bindings when both are updated through the history and the arrow got bound to a different element in the meantime > [end of test] element 2 1`] = `
  178. {
  179. "angle": 0,
  180. "backgroundColor": "transparent",
  181. "boundElements": null,
  182. "customData": undefined,
  183. "elbowed": false,
  184. "endArrowhead": "arrow",
  185. "endBinding": {
  186. "elementId": "id175",
  187. "fixedPoint": [
  188. "0.50000",
  189. 1,
  190. ],
  191. "focus": 0,
  192. "gap": 1,
  193. },
  194. "fillStyle": "solid",
  195. "frameId": null,
  196. "groupIds": [],
  197. "height": "102.35417",
  198. "id": "id172",
  199. "index": "a2",
  200. "isDeleted": false,
  201. "lastCommittedPoint": null,
  202. "link": null,
  203. "locked": false,
  204. "opacity": 100,
  205. "points": [
  206. [
  207. 0,
  208. 0,
  209. ],
  210. [
  211. "101.77517",
  212. "102.35417",
  213. ],
  214. ],
  215. "roughness": 1,
  216. "roundness": {
  217. "type": 2,
  218. },
  219. "startArrowhead": null,
  220. "startBinding": null,
  221. "strokeColor": "#1e1e1e",
  222. "strokeStyle": "solid",
  223. "strokeWidth": 2,
  224. "type": "arrow",
  225. "updated": 1,
  226. "version": 40,
  227. "width": "101.77517",
  228. "x": "0.70711",
  229. "y": 0,
  230. }
  231. `;
  232. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind bindings when both are updated through the history and the arrow got bound to a different element in the meantime > [end of test] element 3 1`] = `
  233. {
  234. "angle": 0,
  235. "backgroundColor": "transparent",
  236. "boundElements": [
  237. {
  238. "id": "id172",
  239. "type": "arrow",
  240. },
  241. ],
  242. "customData": undefined,
  243. "fillStyle": "solid",
  244. "frameId": null,
  245. "groupIds": [],
  246. "height": 50,
  247. "id": "id175",
  248. "index": "a3",
  249. "isDeleted": false,
  250. "link": null,
  251. "locked": false,
  252. "opacity": 100,
  253. "roughness": 1,
  254. "roundness": {
  255. "type": 3,
  256. },
  257. "strokeColor": "#1e1e1e",
  258. "strokeStyle": "solid",
  259. "strokeWidth": 2,
  260. "type": "rectangle",
  261. "updated": 1,
  262. "version": 6,
  263. "width": 50,
  264. "x": 100,
  265. "y": 100,
  266. }
  267. `;
  268. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind bindings when both are updated through the history and the arrow got bound to a different element in the meantime > [end of test] history 1`] = `
  269. History {
  270. "onHistoryChangedEmitter": Emitter {
  271. "subscribers": [
  272. [Function],
  273. [Function],
  274. ],
  275. },
  276. "redoStack": [
  277. HistoryEntry {
  278. "appStateChange": AppStateChange {
  279. "delta": Delta {
  280. "deleted": {},
  281. "inserted": {},
  282. },
  283. },
  284. "elementsChange": ElementsChange {
  285. "added": Map {},
  286. "removed": Map {},
  287. "updated": Map {
  288. "id172" => Delta {
  289. "deleted": {
  290. "endBinding": {
  291. "elementId": "id171",
  292. "focus": "0.00990",
  293. "gap": 1,
  294. },
  295. "height": "0.98586",
  296. "points": [
  297. [
  298. 0,
  299. 0,
  300. ],
  301. [
  302. "98.58579",
  303. "-0.98586",
  304. ],
  305. ],
  306. "startBinding": {
  307. "elementId": "id170",
  308. "focus": "0.02970",
  309. "gap": 1,
  310. },
  311. },
  312. "inserted": {
  313. "endBinding": {
  314. "elementId": "id171",
  315. "focus": "-0.02000",
  316. "gap": 1,
  317. },
  318. "height": "0.00000",
  319. "points": [
  320. [
  321. 0,
  322. 0,
  323. ],
  324. [
  325. "98.58579",
  326. "0.00000",
  327. ],
  328. ],
  329. "startBinding": {
  330. "elementId": "id170",
  331. "focus": "0.02000",
  332. "gap": 1,
  333. },
  334. },
  335. },
  336. },
  337. },
  338. },
  339. HistoryEntry {
  340. "appStateChange": AppStateChange {
  341. "delta": Delta {
  342. "deleted": {},
  343. "inserted": {},
  344. },
  345. },
  346. "elementsChange": ElementsChange {
  347. "added": Map {},
  348. "removed": Map {},
  349. "updated": Map {
  350. "id170" => Delta {
  351. "deleted": {
  352. "boundElements": [],
  353. },
  354. "inserted": {
  355. "boundElements": [
  356. {
  357. "id": "id172",
  358. "type": "arrow",
  359. },
  360. ],
  361. },
  362. },
  363. "id171" => Delta {
  364. "deleted": {
  365. "boundElements": [],
  366. },
  367. "inserted": {
  368. "boundElements": [
  369. {
  370. "id": "id172",
  371. "type": "arrow",
  372. },
  373. ],
  374. },
  375. },
  376. "id172" => Delta {
  377. "deleted": {
  378. "endBinding": {
  379. "elementId": "id175",
  380. "fixedPoint": [
  381. "0.50000",
  382. 1,
  383. ],
  384. "focus": 0,
  385. "gap": 1,
  386. },
  387. "height": "102.35417",
  388. "points": [
  389. [
  390. 0,
  391. 0,
  392. ],
  393. [
  394. "101.77517",
  395. "102.35417",
  396. ],
  397. ],
  398. "startBinding": null,
  399. "y": 0,
  400. },
  401. "inserted": {
  402. "endBinding": {
  403. "elementId": "id171",
  404. "focus": "0.00990",
  405. "gap": 1,
  406. },
  407. "height": "0.98586",
  408. "points": [
  409. [
  410. 0,
  411. 0,
  412. ],
  413. [
  414. "98.58579",
  415. "-0.98586",
  416. ],
  417. ],
  418. "startBinding": {
  419. "elementId": "id170",
  420. "focus": "0.02970",
  421. "gap": 1,
  422. },
  423. "y": "0.99364",
  424. },
  425. },
  426. "id175" => Delta {
  427. "deleted": {
  428. "boundElements": [
  429. {
  430. "id": "id172",
  431. "type": "arrow",
  432. },
  433. ],
  434. },
  435. "inserted": {
  436. "boundElements": [],
  437. },
  438. },
  439. },
  440. },
  441. },
  442. ],
  443. "undoStack": [
  444. HistoryEntry {
  445. "appStateChange": AppStateChange {
  446. "delta": Delta {
  447. "deleted": {},
  448. "inserted": {},
  449. },
  450. },
  451. "elementsChange": ElementsChange {
  452. "added": Map {},
  453. "removed": Map {
  454. "id170" => Delta {
  455. "deleted": {
  456. "angle": 0,
  457. "backgroundColor": "transparent",
  458. "boundElements": null,
  459. "customData": undefined,
  460. "fillStyle": "solid",
  461. "frameId": null,
  462. "groupIds": [],
  463. "height": 100,
  464. "index": "a0",
  465. "isDeleted": false,
  466. "link": null,
  467. "locked": false,
  468. "opacity": 100,
  469. "roughness": 1,
  470. "roundness": {
  471. "type": 3,
  472. },
  473. "strokeColor": "#1e1e1e",
  474. "strokeStyle": "solid",
  475. "strokeWidth": 2,
  476. "type": "rectangle",
  477. "width": 100,
  478. "x": -100,
  479. "y": -50,
  480. },
  481. "inserted": {
  482. "isDeleted": true,
  483. },
  484. },
  485. "id171" => Delta {
  486. "deleted": {
  487. "angle": 0,
  488. "backgroundColor": "transparent",
  489. "boundElements": null,
  490. "customData": undefined,
  491. "fillStyle": "solid",
  492. "frameId": null,
  493. "groupIds": [],
  494. "height": 100,
  495. "index": "a1",
  496. "isDeleted": false,
  497. "link": null,
  498. "locked": false,
  499. "opacity": 100,
  500. "roughness": 1,
  501. "roundness": {
  502. "type": 3,
  503. },
  504. "strokeColor": "#1e1e1e",
  505. "strokeStyle": "solid",
  506. "strokeWidth": 2,
  507. "type": "rectangle",
  508. "width": 100,
  509. "x": 100,
  510. "y": -50,
  511. },
  512. "inserted": {
  513. "isDeleted": true,
  514. },
  515. },
  516. },
  517. "updated": Map {},
  518. },
  519. },
  520. HistoryEntry {
  521. "appStateChange": AppStateChange {
  522. "delta": Delta {
  523. "deleted": {
  524. "selectedElementIds": {
  525. "id172": true,
  526. },
  527. "selectedLinearElementId": "id172",
  528. },
  529. "inserted": {
  530. "selectedElementIds": {},
  531. "selectedLinearElementId": null,
  532. },
  533. },
  534. },
  535. "elementsChange": ElementsChange {
  536. "added": Map {},
  537. "removed": Map {
  538. "id172" => Delta {
  539. "deleted": {
  540. "angle": 0,
  541. "backgroundColor": "transparent",
  542. "boundElements": null,
  543. "customData": undefined,
  544. "elbowed": false,
  545. "endArrowhead": "arrow",
  546. "endBinding": null,
  547. "fillStyle": "solid",
  548. "frameId": null,
  549. "groupIds": [],
  550. "height": 0,
  551. "index": "a2",
  552. "isDeleted": false,
  553. "lastCommittedPoint": null,
  554. "link": null,
  555. "locked": false,
  556. "opacity": 100,
  557. "points": [
  558. [
  559. 0,
  560. 0,
  561. ],
  562. [
  563. 100,
  564. 0,
  565. ],
  566. ],
  567. "roughness": 1,
  568. "roundness": {
  569. "type": 2,
  570. },
  571. "startArrowhead": null,
  572. "startBinding": null,
  573. "strokeColor": "#1e1e1e",
  574. "strokeStyle": "solid",
  575. "strokeWidth": 2,
  576. "type": "arrow",
  577. "width": 100,
  578. "x": 0,
  579. "y": 0,
  580. },
  581. "inserted": {
  582. "isDeleted": true,
  583. },
  584. },
  585. },
  586. "updated": Map {},
  587. },
  588. },
  589. ],
  590. }
  591. `;
  592. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind bindings when both are updated through the history and the arrow got bound to a different element in the meantime > [end of test] number of elements 1`] = `4`;
  593. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind bindings when both are updated through the history and the arrow got bound to a different element in the meantime > [end of test] number of renders 1`] = `21`;
  594. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind bindings when both are updated through the history and there are no conflicting updates in the meantime > [end of test] appState 1`] = `
  595. {
  596. "activeEmbeddable": null,
  597. "activeTool": {
  598. "customType": null,
  599. "fromSelection": false,
  600. "lastActiveTool": null,
  601. "locked": false,
  602. "type": "selection",
  603. },
  604. "collaborators": Map {},
  605. "contextMenu": null,
  606. "croppingElementId": null,
  607. "currentChartType": "bar",
  608. "currentHoveredFontFamily": null,
  609. "currentItemArrowType": "round",
  610. "currentItemBackgroundColor": "transparent",
  611. "currentItemEndArrowhead": "arrow",
  612. "currentItemFillStyle": "solid",
  613. "currentItemFontFamily": 5,
  614. "currentItemFontSize": 20,
  615. "currentItemOpacity": 100,
  616. "currentItemRoughness": 1,
  617. "currentItemRoundness": "round",
  618. "currentItemStartArrowhead": null,
  619. "currentItemStrokeColor": "#1e1e1e",
  620. "currentItemStrokeStyle": "solid",
  621. "currentItemStrokeWidth": 2,
  622. "currentItemTextAlign": "left",
  623. "cursorButton": "up",
  624. "defaultSidebarDockedPreference": false,
  625. "editingFrame": null,
  626. "editingGroupId": null,
  627. "editingLinearElement": null,
  628. "editingTextElement": null,
  629. "elementsToHighlight": null,
  630. "errorMessage": null,
  631. "exportBackground": true,
  632. "exportEmbedScene": false,
  633. "exportScale": 1,
  634. "exportWithDarkMode": false,
  635. "fileHandle": null,
  636. "followedBy": Set {},
  637. "frameRendering": {
  638. "clip": true,
  639. "enabled": true,
  640. "name": true,
  641. "outline": true,
  642. },
  643. "frameToHighlight": null,
  644. "gridModeEnabled": false,
  645. "gridSize": 20,
  646. "gridStep": 5,
  647. "height": 0,
  648. "hoveredElementIds": {},
  649. "isBindingEnabled": true,
  650. "isCropping": false,
  651. "isLoading": false,
  652. "isResizing": false,
  653. "isRotating": false,
  654. "lastPointerDownWith": "mouse",
  655. "multiElement": null,
  656. "newElement": null,
  657. "objectsSnapModeEnabled": false,
  658. "offsetLeft": 0,
  659. "offsetTop": 0,
  660. "openDialog": null,
  661. "openMenu": null,
  662. "openPopup": null,
  663. "openSidebar": null,
  664. "originSnapOffset": null,
  665. "pasteDialog": {
  666. "data": null,
  667. "shown": false,
  668. },
  669. "penDetected": false,
  670. "penMode": false,
  671. "pendingImageElementId": null,
  672. "previousSelectedElementIds": {
  673. "id167": true,
  674. },
  675. "resizingElement": null,
  676. "scrollX": 0,
  677. "scrollY": 0,
  678. "searchMatches": [],
  679. "selectedElementIds": {
  680. "id167": true,
  681. },
  682. "selectedElementsAreBeingDragged": false,
  683. "selectedGroupIds": {},
  684. "selectionElement": null,
  685. "shouldCacheIgnoreZoom": false,
  686. "showHyperlinkPopup": false,
  687. "showWelcomeScreen": true,
  688. "snapLines": [],
  689. "startBoundElement": null,
  690. "stats": {
  691. "open": false,
  692. "panels": 3,
  693. },
  694. "suggestedBindings": [],
  695. "theme": "light",
  696. "toast": null,
  697. "userToFollow": null,
  698. "viewBackgroundColor": "#ffffff",
  699. "viewModeEnabled": false,
  700. "width": 0,
  701. "zenModeEnabled": false,
  702. "zoom": {
  703. "value": 1,
  704. },
  705. }
  706. `;
  707. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind bindings when both are updated through the history and there are no conflicting updates in the meantime > [end of test] element 0 1`] = `
  708. {
  709. "angle": 0,
  710. "backgroundColor": "transparent",
  711. "boundElements": [],
  712. "customData": undefined,
  713. "fillStyle": "solid",
  714. "frameId": null,
  715. "groupIds": [],
  716. "height": 100,
  717. "id": "id165",
  718. "index": "a0",
  719. "isDeleted": false,
  720. "link": null,
  721. "locked": false,
  722. "opacity": 100,
  723. "roughness": 1,
  724. "roundness": {
  725. "type": 3,
  726. },
  727. "strokeColor": "#1e1e1e",
  728. "strokeStyle": "solid",
  729. "strokeWidth": 2,
  730. "type": "rectangle",
  731. "updated": 1,
  732. "version": 9,
  733. "width": 100,
  734. "x": 150,
  735. "y": -50,
  736. }
  737. `;
  738. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind bindings when both are updated through the history and there are no conflicting updates in the meantime > [end of test] element 1 1`] = `
  739. {
  740. "angle": 0,
  741. "backgroundColor": "transparent",
  742. "boundElements": [],
  743. "customData": undefined,
  744. "fillStyle": "solid",
  745. "frameId": null,
  746. "groupIds": [],
  747. "height": 100,
  748. "id": "id166",
  749. "index": "a1",
  750. "isDeleted": false,
  751. "link": null,
  752. "locked": false,
  753. "opacity": 100,
  754. "roughness": 1,
  755. "roundness": {
  756. "type": 3,
  757. },
  758. "strokeColor": "#1e1e1e",
  759. "strokeStyle": "solid",
  760. "strokeWidth": 2,
  761. "type": "rectangle",
  762. "updated": 1,
  763. "version": 9,
  764. "width": 100,
  765. "x": 150,
  766. "y": -50,
  767. }
  768. `;
  769. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind bindings when both are updated through the history and there are no conflicting updates in the meantime > [end of test] element 2 1`] = `
  770. {
  771. "angle": 0,
  772. "backgroundColor": "transparent",
  773. "boundElements": null,
  774. "customData": undefined,
  775. "elbowed": false,
  776. "endArrowhead": "arrow",
  777. "endBinding": null,
  778. "fillStyle": "solid",
  779. "frameId": null,
  780. "groupIds": [],
  781. "height": 0,
  782. "id": "id167",
  783. "index": "a2",
  784. "isDeleted": false,
  785. "lastCommittedPoint": null,
  786. "link": null,
  787. "locked": false,
  788. "opacity": 100,
  789. "points": [
  790. [
  791. 0,
  792. 0,
  793. ],
  794. [
  795. 100,
  796. 0,
  797. ],
  798. ],
  799. "roughness": 1,
  800. "roundness": {
  801. "type": 2,
  802. },
  803. "startArrowhead": null,
  804. "startBinding": null,
  805. "strokeColor": "#1e1e1e",
  806. "strokeStyle": "solid",
  807. "strokeWidth": 2,
  808. "type": "arrow",
  809. "updated": 1,
  810. "version": 30,
  811. "width": 0,
  812. "x": "149.29289",
  813. "y": 0,
  814. }
  815. `;
  816. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind bindings when both are updated through the history and there are no conflicting updates in the meantime > [end of test] history 1`] = `
  817. History {
  818. "onHistoryChangedEmitter": Emitter {
  819. "subscribers": [
  820. [Function],
  821. [Function],
  822. ],
  823. },
  824. "redoStack": [
  825. HistoryEntry {
  826. "appStateChange": AppStateChange {
  827. "delta": Delta {
  828. "deleted": {},
  829. "inserted": {},
  830. },
  831. },
  832. "elementsChange": ElementsChange {
  833. "added": Map {},
  834. "removed": Map {},
  835. "updated": Map {
  836. "id167" => Delta {
  837. "deleted": {
  838. "points": [
  839. [
  840. 0,
  841. 0,
  842. ],
  843. [
  844. 0,
  845. 0,
  846. ],
  847. ],
  848. },
  849. "inserted": {
  850. "points": [
  851. [
  852. 0,
  853. 0,
  854. ],
  855. [
  856. 100,
  857. 0,
  858. ],
  859. ],
  860. },
  861. },
  862. },
  863. },
  864. },
  865. HistoryEntry {
  866. "appStateChange": AppStateChange {
  867. "delta": Delta {
  868. "deleted": {},
  869. "inserted": {},
  870. },
  871. },
  872. "elementsChange": ElementsChange {
  873. "added": Map {},
  874. "removed": Map {},
  875. "updated": Map {
  876. "id165" => Delta {
  877. "deleted": {
  878. "boundElements": [],
  879. },
  880. "inserted": {
  881. "boundElements": [
  882. {
  883. "id": "id167",
  884. "type": "arrow",
  885. },
  886. ],
  887. },
  888. },
  889. "id166" => Delta {
  890. "deleted": {
  891. "boundElements": [],
  892. },
  893. "inserted": {
  894. "boundElements": [
  895. {
  896. "id": "id167",
  897. "type": "arrow",
  898. },
  899. ],
  900. },
  901. },
  902. "id167" => Delta {
  903. "deleted": {
  904. "endBinding": null,
  905. "points": [
  906. [
  907. 0,
  908. 0,
  909. ],
  910. [
  911. 100,
  912. 0,
  913. ],
  914. ],
  915. "startBinding": null,
  916. },
  917. "inserted": {
  918. "endBinding": {
  919. "elementId": "id166",
  920. "focus": -0,
  921. "gap": 1,
  922. },
  923. "points": [
  924. [
  925. 0,
  926. 0,
  927. ],
  928. [
  929. 0,
  930. 0,
  931. ],
  932. ],
  933. "startBinding": {
  934. "elementId": "id165",
  935. "focus": 0,
  936. "gap": 1,
  937. },
  938. },
  939. },
  940. },
  941. },
  942. },
  943. ],
  944. "undoStack": [
  945. HistoryEntry {
  946. "appStateChange": AppStateChange {
  947. "delta": Delta {
  948. "deleted": {},
  949. "inserted": {},
  950. },
  951. },
  952. "elementsChange": ElementsChange {
  953. "added": Map {},
  954. "removed": Map {
  955. "id165" => Delta {
  956. "deleted": {
  957. "angle": 0,
  958. "backgroundColor": "transparent",
  959. "boundElements": null,
  960. "customData": undefined,
  961. "fillStyle": "solid",
  962. "frameId": null,
  963. "groupIds": [],
  964. "height": 100,
  965. "index": "a0",
  966. "isDeleted": false,
  967. "link": null,
  968. "locked": false,
  969. "opacity": 100,
  970. "roughness": 1,
  971. "roundness": {
  972. "type": 3,
  973. },
  974. "strokeColor": "#1e1e1e",
  975. "strokeStyle": "solid",
  976. "strokeWidth": 2,
  977. "type": "rectangle",
  978. "width": 100,
  979. "x": -100,
  980. "y": -50,
  981. },
  982. "inserted": {
  983. "isDeleted": true,
  984. },
  985. },
  986. "id166" => Delta {
  987. "deleted": {
  988. "angle": 0,
  989. "backgroundColor": "transparent",
  990. "boundElements": null,
  991. "customData": undefined,
  992. "fillStyle": "solid",
  993. "frameId": null,
  994. "groupIds": [],
  995. "height": 100,
  996. "index": "a1",
  997. "isDeleted": false,
  998. "link": null,
  999. "locked": false,
  1000. "opacity": 100,
  1001. "roughness": 1,
  1002. "roundness": {
  1003. "type": 3,
  1004. },
  1005. "strokeColor": "#1e1e1e",
  1006. "strokeStyle": "solid",
  1007. "strokeWidth": 2,
  1008. "type": "rectangle",
  1009. "width": 100,
  1010. "x": 100,
  1011. "y": -50,
  1012. },
  1013. "inserted": {
  1014. "isDeleted": true,
  1015. },
  1016. },
  1017. },
  1018. "updated": Map {},
  1019. },
  1020. },
  1021. HistoryEntry {
  1022. "appStateChange": AppStateChange {
  1023. "delta": Delta {
  1024. "deleted": {
  1025. "selectedElementIds": {
  1026. "id167": true,
  1027. },
  1028. "selectedLinearElementId": "id167",
  1029. },
  1030. "inserted": {
  1031. "selectedElementIds": {},
  1032. "selectedLinearElementId": null,
  1033. },
  1034. },
  1035. },
  1036. "elementsChange": ElementsChange {
  1037. "added": Map {},
  1038. "removed": Map {
  1039. "id167" => Delta {
  1040. "deleted": {
  1041. "angle": 0,
  1042. "backgroundColor": "transparent",
  1043. "boundElements": null,
  1044. "customData": undefined,
  1045. "elbowed": false,
  1046. "endArrowhead": "arrow",
  1047. "endBinding": null,
  1048. "fillStyle": "solid",
  1049. "frameId": null,
  1050. "groupIds": [],
  1051. "height": 0,
  1052. "index": "a2",
  1053. "isDeleted": false,
  1054. "lastCommittedPoint": null,
  1055. "link": null,
  1056. "locked": false,
  1057. "opacity": 100,
  1058. "points": [
  1059. [
  1060. 0,
  1061. 0,
  1062. ],
  1063. [
  1064. 100,
  1065. 0,
  1066. ],
  1067. ],
  1068. "roughness": 1,
  1069. "roundness": {
  1070. "type": 2,
  1071. },
  1072. "startArrowhead": null,
  1073. "startBinding": null,
  1074. "strokeColor": "#1e1e1e",
  1075. "strokeStyle": "solid",
  1076. "strokeWidth": 2,
  1077. "type": "arrow",
  1078. "width": 100,
  1079. "x": 0,
  1080. "y": 0,
  1081. },
  1082. "inserted": {
  1083. "isDeleted": true,
  1084. },
  1085. },
  1086. },
  1087. "updated": Map {},
  1088. },
  1089. },
  1090. ],
  1091. }
  1092. `;
  1093. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind bindings when both are updated through the history and there are no conflicting updates in the meantime > [end of test] number of elements 1`] = `3`;
  1094. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind bindings when both are updated through the history and there are no conflicting updates in the meantime > [end of test] number of renders 1`] = `23`;
  1095. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind remotely added arrow when it's bindable elements are added through the history > [end of test] appState 1`] = `
  1096. {
  1097. "activeEmbeddable": null,
  1098. "activeTool": {
  1099. "customType": null,
  1100. "fromSelection": false,
  1101. "lastActiveTool": null,
  1102. "locked": false,
  1103. "type": "selection",
  1104. },
  1105. "collaborators": Map {},
  1106. "contextMenu": null,
  1107. "croppingElementId": null,
  1108. "currentChartType": "bar",
  1109. "currentHoveredFontFamily": null,
  1110. "currentItemArrowType": "round",
  1111. "currentItemBackgroundColor": "transparent",
  1112. "currentItemEndArrowhead": "arrow",
  1113. "currentItemFillStyle": "solid",
  1114. "currentItemFontFamily": 5,
  1115. "currentItemFontSize": 20,
  1116. "currentItemOpacity": 100,
  1117. "currentItemRoughness": 1,
  1118. "currentItemRoundness": "round",
  1119. "currentItemStartArrowhead": null,
  1120. "currentItemStrokeColor": "#1e1e1e",
  1121. "currentItemStrokeStyle": "solid",
  1122. "currentItemStrokeWidth": 2,
  1123. "currentItemTextAlign": "left",
  1124. "cursorButton": "up",
  1125. "defaultSidebarDockedPreference": false,
  1126. "editingFrame": null,
  1127. "editingGroupId": null,
  1128. "editingLinearElement": null,
  1129. "editingTextElement": null,
  1130. "elementsToHighlight": null,
  1131. "errorMessage": null,
  1132. "exportBackground": true,
  1133. "exportEmbedScene": false,
  1134. "exportScale": 1,
  1135. "exportWithDarkMode": false,
  1136. "fileHandle": null,
  1137. "followedBy": Set {},
  1138. "frameRendering": {
  1139. "clip": true,
  1140. "enabled": true,
  1141. "name": true,
  1142. "outline": true,
  1143. },
  1144. "frameToHighlight": null,
  1145. "gridModeEnabled": false,
  1146. "gridSize": 20,
  1147. "gridStep": 5,
  1148. "height": 0,
  1149. "hoveredElementIds": {},
  1150. "isBindingEnabled": true,
  1151. "isCropping": false,
  1152. "isLoading": false,
  1153. "isResizing": false,
  1154. "isRotating": false,
  1155. "lastPointerDownWith": "mouse",
  1156. "multiElement": null,
  1157. "newElement": null,
  1158. "objectsSnapModeEnabled": false,
  1159. "offsetLeft": 0,
  1160. "offsetTop": 0,
  1161. "openDialog": null,
  1162. "openMenu": null,
  1163. "openPopup": null,
  1164. "openSidebar": null,
  1165. "originSnapOffset": {
  1166. "x": 0,
  1167. "y": 0,
  1168. },
  1169. "pasteDialog": {
  1170. "data": null,
  1171. "shown": false,
  1172. },
  1173. "penDetected": false,
  1174. "penMode": false,
  1175. "pendingImageElementId": null,
  1176. "previousSelectedElementIds": {},
  1177. "resizingElement": null,
  1178. "scrollX": 0,
  1179. "scrollY": 0,
  1180. "searchMatches": [],
  1181. "selectedElementIds": {},
  1182. "selectedElementsAreBeingDragged": false,
  1183. "selectedGroupIds": {},
  1184. "selectionElement": null,
  1185. "shouldCacheIgnoreZoom": false,
  1186. "showHyperlinkPopup": false,
  1187. "showWelcomeScreen": true,
  1188. "snapLines": [],
  1189. "startBoundElement": null,
  1190. "stats": {
  1191. "open": false,
  1192. "panels": 3,
  1193. },
  1194. "suggestedBindings": [],
  1195. "theme": "light",
  1196. "toast": null,
  1197. "userToFollow": null,
  1198. "viewBackgroundColor": "#ffffff",
  1199. "viewModeEnabled": false,
  1200. "width": 0,
  1201. "zenModeEnabled": false,
  1202. "zoom": {
  1203. "value": 1,
  1204. },
  1205. }
  1206. `;
  1207. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind remotely added arrow when it's bindable elements are added through the history > [end of test] element 0 1`] = `
  1208. {
  1209. "angle": 0,
  1210. "backgroundColor": "transparent",
  1211. "boundElements": null,
  1212. "customData": undefined,
  1213. "elbowed": false,
  1214. "endArrowhead": null,
  1215. "endBinding": {
  1216. "elementId": "id177",
  1217. "fixedPoint": [
  1218. "0.50000",
  1219. 1,
  1220. ],
  1221. "focus": 0,
  1222. "gap": 1,
  1223. },
  1224. "fillStyle": "solid",
  1225. "frameId": null,
  1226. "groupIds": [],
  1227. "height": "1.30038",
  1228. "id": "id178",
  1229. "index": "Zz",
  1230. "isDeleted": false,
  1231. "lastCommittedPoint": null,
  1232. "link": null,
  1233. "locked": false,
  1234. "opacity": 100,
  1235. "points": [
  1236. [
  1237. 0,
  1238. 0,
  1239. ],
  1240. [
  1241. "98.58579",
  1242. "1.30038",
  1243. ],
  1244. ],
  1245. "roughness": 1,
  1246. "roundness": {
  1247. "type": 2,
  1248. },
  1249. "startArrowhead": null,
  1250. "startBinding": {
  1251. "elementId": "id176",
  1252. "fixedPoint": [
  1253. 1,
  1254. "0.50000",
  1255. ],
  1256. "focus": 0,
  1257. "gap": 1,
  1258. },
  1259. "strokeColor": "#1e1e1e",
  1260. "strokeStyle": "solid",
  1261. "strokeWidth": 2,
  1262. "type": "arrow",
  1263. "updated": 1,
  1264. "version": 11,
  1265. "width": "98.58579",
  1266. "x": "0.70711",
  1267. "y": 0,
  1268. }
  1269. `;
  1270. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind remotely added arrow when it's bindable elements are added through the history > [end of test] element 1 1`] = `
  1271. {
  1272. "angle": 0,
  1273. "backgroundColor": "transparent",
  1274. "boundElements": [
  1275. {
  1276. "id": "id178",
  1277. "type": "arrow",
  1278. },
  1279. ],
  1280. "customData": undefined,
  1281. "fillStyle": "solid",
  1282. "frameId": null,
  1283. "groupIds": [],
  1284. "height": 100,
  1285. "id": "id176",
  1286. "index": "a0",
  1287. "isDeleted": false,
  1288. "link": null,
  1289. "locked": false,
  1290. "opacity": 100,
  1291. "roughness": 1,
  1292. "roundness": {
  1293. "type": 3,
  1294. },
  1295. "strokeColor": "#1e1e1e",
  1296. "strokeStyle": "solid",
  1297. "strokeWidth": 2,
  1298. "type": "rectangle",
  1299. "updated": 1,
  1300. "version": 7,
  1301. "width": 100,
  1302. "x": -100,
  1303. "y": -50,
  1304. }
  1305. `;
  1306. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind remotely added arrow when it's bindable elements are added through the history > [end of test] element 2 1`] = `
  1307. {
  1308. "angle": 0,
  1309. "backgroundColor": "transparent",
  1310. "boundElements": [
  1311. {
  1312. "id": "id178",
  1313. "type": "arrow",
  1314. },
  1315. ],
  1316. "customData": undefined,
  1317. "fillStyle": "solid",
  1318. "frameId": null,
  1319. "groupIds": [],
  1320. "height": 100,
  1321. "id": "id177",
  1322. "index": "a1",
  1323. "isDeleted": false,
  1324. "link": null,
  1325. "locked": false,
  1326. "opacity": 100,
  1327. "roughness": 1,
  1328. "roundness": {
  1329. "type": 3,
  1330. },
  1331. "strokeColor": "#1e1e1e",
  1332. "strokeStyle": "solid",
  1333. "strokeWidth": 2,
  1334. "type": "rectangle",
  1335. "updated": 1,
  1336. "version": 7,
  1337. "width": 100,
  1338. "x": 100,
  1339. "y": -50,
  1340. }
  1341. `;
  1342. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind remotely added arrow when it's bindable elements are added through the history > [end of test] history 1`] = `
  1343. History {
  1344. "onHistoryChangedEmitter": Emitter {
  1345. "subscribers": [
  1346. [Function],
  1347. [Function],
  1348. ],
  1349. },
  1350. "redoStack": [],
  1351. "undoStack": [
  1352. HistoryEntry {
  1353. "appStateChange": AppStateChange {
  1354. "delta": Delta {
  1355. "deleted": {},
  1356. "inserted": {},
  1357. },
  1358. },
  1359. "elementsChange": ElementsChange {
  1360. "added": Map {},
  1361. "removed": Map {
  1362. "id176" => Delta {
  1363. "deleted": {
  1364. "angle": 0,
  1365. "backgroundColor": "transparent",
  1366. "boundElements": null,
  1367. "customData": undefined,
  1368. "fillStyle": "solid",
  1369. "frameId": null,
  1370. "groupIds": [],
  1371. "height": 100,
  1372. "index": "a0",
  1373. "isDeleted": false,
  1374. "link": null,
  1375. "locked": false,
  1376. "opacity": 100,
  1377. "roughness": 1,
  1378. "roundness": {
  1379. "type": 3,
  1380. },
  1381. "strokeColor": "#1e1e1e",
  1382. "strokeStyle": "solid",
  1383. "strokeWidth": 2,
  1384. "type": "rectangle",
  1385. "width": 100,
  1386. "x": -100,
  1387. "y": -50,
  1388. },
  1389. "inserted": {
  1390. "isDeleted": true,
  1391. },
  1392. },
  1393. "id177" => Delta {
  1394. "deleted": {
  1395. "angle": 0,
  1396. "backgroundColor": "transparent",
  1397. "boundElements": null,
  1398. "customData": undefined,
  1399. "fillStyle": "solid",
  1400. "frameId": null,
  1401. "groupIds": [],
  1402. "height": 100,
  1403. "index": "a1",
  1404. "isDeleted": false,
  1405. "link": null,
  1406. "locked": false,
  1407. "opacity": 100,
  1408. "roughness": 1,
  1409. "roundness": {
  1410. "type": 3,
  1411. },
  1412. "strokeColor": "#1e1e1e",
  1413. "strokeStyle": "solid",
  1414. "strokeWidth": 2,
  1415. "type": "rectangle",
  1416. "width": 100,
  1417. "x": 100,
  1418. "y": -50,
  1419. },
  1420. "inserted": {
  1421. "isDeleted": true,
  1422. },
  1423. },
  1424. },
  1425. "updated": Map {
  1426. "id178" => Delta {
  1427. "deleted": {
  1428. "endBinding": {
  1429. "elementId": "id177",
  1430. "fixedPoint": [
  1431. "0.50000",
  1432. 1,
  1433. ],
  1434. "focus": 0,
  1435. "gap": 1,
  1436. },
  1437. "startBinding": {
  1438. "elementId": "id176",
  1439. "fixedPoint": [
  1440. 1,
  1441. "0.50000",
  1442. ],
  1443. "focus": 0,
  1444. "gap": 1,
  1445. },
  1446. },
  1447. "inserted": {
  1448. "endBinding": null,
  1449. "startBinding": null,
  1450. },
  1451. },
  1452. },
  1453. },
  1454. },
  1455. ],
  1456. }
  1457. `;
  1458. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind remotely added arrow when it's bindable elements are added through the history > [end of test] number of elements 1`] = `3`;
  1459. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind remotely added arrow when it's bindable elements are added through the history > [end of test] number of renders 1`] = `9`;
  1460. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind remotely added bindable elements when it's arrow is added through the history > [end of test] appState 1`] = `
  1461. {
  1462. "activeEmbeddable": null,
  1463. "activeTool": {
  1464. "customType": null,
  1465. "fromSelection": false,
  1466. "lastActiveTool": null,
  1467. "locked": false,
  1468. "type": "selection",
  1469. },
  1470. "collaborators": Map {},
  1471. "contextMenu": null,
  1472. "croppingElementId": null,
  1473. "currentChartType": "bar",
  1474. "currentHoveredFontFamily": null,
  1475. "currentItemArrowType": "round",
  1476. "currentItemBackgroundColor": "transparent",
  1477. "currentItemEndArrowhead": "arrow",
  1478. "currentItemFillStyle": "solid",
  1479. "currentItemFontFamily": 5,
  1480. "currentItemFontSize": 20,
  1481. "currentItemOpacity": 100,
  1482. "currentItemRoughness": 1,
  1483. "currentItemRoundness": "round",
  1484. "currentItemStartArrowhead": null,
  1485. "currentItemStrokeColor": "#1e1e1e",
  1486. "currentItemStrokeStyle": "solid",
  1487. "currentItemStrokeWidth": 2,
  1488. "currentItemTextAlign": "left",
  1489. "cursorButton": "up",
  1490. "defaultSidebarDockedPreference": false,
  1491. "editingFrame": null,
  1492. "editingGroupId": null,
  1493. "editingLinearElement": null,
  1494. "editingTextElement": null,
  1495. "elementsToHighlight": null,
  1496. "errorMessage": null,
  1497. "exportBackground": true,
  1498. "exportEmbedScene": false,
  1499. "exportScale": 1,
  1500. "exportWithDarkMode": false,
  1501. "fileHandle": null,
  1502. "followedBy": Set {},
  1503. "frameRendering": {
  1504. "clip": true,
  1505. "enabled": true,
  1506. "name": true,
  1507. "outline": true,
  1508. },
  1509. "frameToHighlight": null,
  1510. "gridModeEnabled": false,
  1511. "gridSize": 20,
  1512. "gridStep": 5,
  1513. "height": 0,
  1514. "hoveredElementIds": {},
  1515. "isBindingEnabled": true,
  1516. "isCropping": false,
  1517. "isLoading": false,
  1518. "isResizing": false,
  1519. "isRotating": false,
  1520. "lastPointerDownWith": "mouse",
  1521. "multiElement": null,
  1522. "newElement": null,
  1523. "objectsSnapModeEnabled": false,
  1524. "offsetLeft": 0,
  1525. "offsetTop": 0,
  1526. "openDialog": null,
  1527. "openMenu": null,
  1528. "openPopup": null,
  1529. "openSidebar": null,
  1530. "originSnapOffset": {
  1531. "x": 0,
  1532. "y": 0,
  1533. },
  1534. "pasteDialog": {
  1535. "data": null,
  1536. "shown": false,
  1537. },
  1538. "penDetected": false,
  1539. "penMode": false,
  1540. "pendingImageElementId": null,
  1541. "previousSelectedElementIds": {},
  1542. "resizingElement": null,
  1543. "scrollX": 0,
  1544. "scrollY": 0,
  1545. "searchMatches": [],
  1546. "selectedElementIds": {},
  1547. "selectedElementsAreBeingDragged": false,
  1548. "selectedGroupIds": {},
  1549. "selectionElement": null,
  1550. "shouldCacheIgnoreZoom": false,
  1551. "showHyperlinkPopup": false,
  1552. "showWelcomeScreen": true,
  1553. "snapLines": [],
  1554. "startBoundElement": null,
  1555. "stats": {
  1556. "open": false,
  1557. "panels": 3,
  1558. },
  1559. "suggestedBindings": [],
  1560. "theme": "light",
  1561. "toast": null,
  1562. "userToFollow": null,
  1563. "viewBackgroundColor": "#ffffff",
  1564. "viewModeEnabled": false,
  1565. "width": 0,
  1566. "zenModeEnabled": false,
  1567. "zoom": {
  1568. "value": 1,
  1569. },
  1570. }
  1571. `;
  1572. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind remotely added bindable elements when it's arrow is added through the history > [end of test] element 0 1`] = `
  1573. {
  1574. "angle": 0,
  1575. "backgroundColor": "transparent",
  1576. "boundElements": null,
  1577. "customData": undefined,
  1578. "elbowed": false,
  1579. "endArrowhead": null,
  1580. "endBinding": {
  1581. "elementId": "id180",
  1582. "fixedPoint": [
  1583. 1,
  1584. "0.50000",
  1585. ],
  1586. "focus": 0,
  1587. "gap": 1,
  1588. },
  1589. "fillStyle": "solid",
  1590. "frameId": null,
  1591. "groupIds": [],
  1592. "height": "1.30038",
  1593. "id": "id181",
  1594. "index": "a0",
  1595. "isDeleted": false,
  1596. "lastCommittedPoint": null,
  1597. "link": null,
  1598. "locked": false,
  1599. "opacity": 100,
  1600. "points": [
  1601. [
  1602. 0,
  1603. 0,
  1604. ],
  1605. [
  1606. "98.58579",
  1607. "1.30038",
  1608. ],
  1609. ],
  1610. "roughness": 1,
  1611. "roundness": {
  1612. "type": 2,
  1613. },
  1614. "startArrowhead": null,
  1615. "startBinding": {
  1616. "elementId": "id179",
  1617. "fixedPoint": [
  1618. "0.50000",
  1619. 1,
  1620. ],
  1621. "focus": 0,
  1622. "gap": 1,
  1623. },
  1624. "strokeColor": "#1e1e1e",
  1625. "strokeStyle": "solid",
  1626. "strokeWidth": 2,
  1627. "type": "arrow",
  1628. "updated": 1,
  1629. "version": 11,
  1630. "width": "98.58579",
  1631. "x": "0.70711",
  1632. "y": 0,
  1633. }
  1634. `;
  1635. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind remotely added bindable elements when it's arrow is added through the history > [end of test] element 1 1`] = `
  1636. {
  1637. "angle": 0,
  1638. "backgroundColor": "transparent",
  1639. "boundElements": [
  1640. {
  1641. "id": "id181",
  1642. "type": "arrow",
  1643. },
  1644. ],
  1645. "customData": undefined,
  1646. "fillStyle": "solid",
  1647. "frameId": null,
  1648. "groupIds": [],
  1649. "height": 100,
  1650. "id": "id179",
  1651. "index": "a0V",
  1652. "isDeleted": false,
  1653. "link": null,
  1654. "locked": false,
  1655. "opacity": 100,
  1656. "roughness": 1,
  1657. "roundness": {
  1658. "type": 3,
  1659. },
  1660. "strokeColor": "#1e1e1e",
  1661. "strokeStyle": "solid",
  1662. "strokeWidth": 2,
  1663. "type": "rectangle",
  1664. "updated": 1,
  1665. "version": 12,
  1666. "width": 100,
  1667. "x": -100,
  1668. "y": -50,
  1669. }
  1670. `;
  1671. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind remotely added bindable elements when it's arrow is added through the history > [end of test] element 2 1`] = `
  1672. {
  1673. "angle": 0,
  1674. "backgroundColor": "transparent",
  1675. "boundElements": [
  1676. {
  1677. "id": "id181",
  1678. "type": "arrow",
  1679. },
  1680. ],
  1681. "customData": undefined,
  1682. "fillStyle": "solid",
  1683. "frameId": null,
  1684. "groupIds": [],
  1685. "height": 100,
  1686. "id": "id180",
  1687. "index": "a1",
  1688. "isDeleted": false,
  1689. "link": null,
  1690. "locked": false,
  1691. "opacity": 100,
  1692. "roughness": 1,
  1693. "roundness": {
  1694. "type": 3,
  1695. },
  1696. "strokeColor": "#1e1e1e",
  1697. "strokeStyle": "solid",
  1698. "strokeWidth": 2,
  1699. "type": "rectangle",
  1700. "updated": 1,
  1701. "version": 11,
  1702. "width": 100,
  1703. "x": 100,
  1704. "y": -50,
  1705. }
  1706. `;
  1707. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind remotely added bindable elements when it's arrow is added through the history > [end of test] history 1`] = `
  1708. History {
  1709. "onHistoryChangedEmitter": Emitter {
  1710. "subscribers": [
  1711. [Function],
  1712. [Function],
  1713. ],
  1714. },
  1715. "redoStack": [],
  1716. "undoStack": [
  1717. HistoryEntry {
  1718. "appStateChange": AppStateChange {
  1719. "delta": Delta {
  1720. "deleted": {},
  1721. "inserted": {},
  1722. },
  1723. },
  1724. "elementsChange": ElementsChange {
  1725. "added": Map {},
  1726. "removed": Map {
  1727. "id181" => Delta {
  1728. "deleted": {
  1729. "angle": 0,
  1730. "backgroundColor": "transparent",
  1731. "boundElements": null,
  1732. "customData": undefined,
  1733. "elbowed": false,
  1734. "endArrowhead": null,
  1735. "endBinding": {
  1736. "elementId": "id180",
  1737. "fixedPoint": [
  1738. 1,
  1739. "0.50000",
  1740. ],
  1741. "focus": 0,
  1742. "gap": 1,
  1743. },
  1744. "fillStyle": "solid",
  1745. "frameId": null,
  1746. "groupIds": [],
  1747. "height": "11.27227",
  1748. "index": "a0",
  1749. "isDeleted": false,
  1750. "lastCommittedPoint": null,
  1751. "link": null,
  1752. "locked": false,
  1753. "opacity": 100,
  1754. "points": [
  1755. [
  1756. 0,
  1757. 0,
  1758. ],
  1759. [
  1760. "98.58579",
  1761. "11.27227",
  1762. ],
  1763. ],
  1764. "roughness": 1,
  1765. "roundness": {
  1766. "type": 2,
  1767. },
  1768. "startArrowhead": null,
  1769. "startBinding": {
  1770. "elementId": "id179",
  1771. "fixedPoint": [
  1772. "0.50000",
  1773. 1,
  1774. ],
  1775. "focus": 0,
  1776. "gap": 1,
  1777. },
  1778. "strokeColor": "#1e1e1e",
  1779. "strokeStyle": "solid",
  1780. "strokeWidth": 2,
  1781. "type": "arrow",
  1782. "width": "98.58579",
  1783. "x": "0.70711",
  1784. "y": 0,
  1785. },
  1786. "inserted": {
  1787. "isDeleted": true,
  1788. },
  1789. },
  1790. },
  1791. "updated": Map {
  1792. "id179" => Delta {
  1793. "deleted": {
  1794. "boundElements": [
  1795. {
  1796. "id": "id181",
  1797. "type": "arrow",
  1798. },
  1799. ],
  1800. },
  1801. "inserted": {
  1802. "boundElements": [],
  1803. },
  1804. },
  1805. "id180" => Delta {
  1806. "deleted": {
  1807. "boundElements": [
  1808. {
  1809. "id": "id181",
  1810. "type": "arrow",
  1811. },
  1812. ],
  1813. },
  1814. "inserted": {
  1815. "boundElements": [],
  1816. },
  1817. },
  1818. },
  1819. },
  1820. },
  1821. ],
  1822. }
  1823. `;
  1824. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind remotely added bindable elements when it's arrow is added through the history > [end of test] number of elements 1`] = `3`;
  1825. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should rebind remotely added bindable elements when it's arrow is added through the history > [end of test] number of renders 1`] = `11`;
  1826. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should unbind remotely deleted bindable elements from arrow when the arrow is added through the history > [end of test] appState 1`] = `
  1827. {
  1828. "activeEmbeddable": null,
  1829. "activeTool": {
  1830. "customType": null,
  1831. "fromSelection": false,
  1832. "lastActiveTool": null,
  1833. "locked": false,
  1834. "type": "selection",
  1835. },
  1836. "collaborators": Map {},
  1837. "contextMenu": null,
  1838. "croppingElementId": null,
  1839. "currentChartType": "bar",
  1840. "currentHoveredFontFamily": null,
  1841. "currentItemArrowType": "round",
  1842. "currentItemBackgroundColor": "transparent",
  1843. "currentItemEndArrowhead": "arrow",
  1844. "currentItemFillStyle": "solid",
  1845. "currentItemFontFamily": 5,
  1846. "currentItemFontSize": 20,
  1847. "currentItemOpacity": 100,
  1848. "currentItemRoughness": 1,
  1849. "currentItemRoundness": "round",
  1850. "currentItemStartArrowhead": null,
  1851. "currentItemStrokeColor": "#1e1e1e",
  1852. "currentItemStrokeStyle": "solid",
  1853. "currentItemStrokeWidth": 2,
  1854. "currentItemTextAlign": "left",
  1855. "cursorButton": "up",
  1856. "defaultSidebarDockedPreference": false,
  1857. "editingFrame": null,
  1858. "editingGroupId": null,
  1859. "editingLinearElement": null,
  1860. "editingTextElement": null,
  1861. "elementsToHighlight": null,
  1862. "errorMessage": null,
  1863. "exportBackground": true,
  1864. "exportEmbedScene": false,
  1865. "exportScale": 1,
  1866. "exportWithDarkMode": false,
  1867. "fileHandle": null,
  1868. "followedBy": Set {},
  1869. "frameRendering": {
  1870. "clip": true,
  1871. "enabled": true,
  1872. "name": true,
  1873. "outline": true,
  1874. },
  1875. "frameToHighlight": null,
  1876. "gridModeEnabled": false,
  1877. "gridSize": 20,
  1878. "gridStep": 5,
  1879. "height": 0,
  1880. "hoveredElementIds": {},
  1881. "isBindingEnabled": true,
  1882. "isCropping": false,
  1883. "isLoading": false,
  1884. "isResizing": false,
  1885. "isRotating": false,
  1886. "lastPointerDownWith": "mouse",
  1887. "multiElement": null,
  1888. "newElement": null,
  1889. "objectsSnapModeEnabled": false,
  1890. "offsetLeft": 0,
  1891. "offsetTop": 0,
  1892. "openDialog": null,
  1893. "openMenu": null,
  1894. "openPopup": null,
  1895. "openSidebar": null,
  1896. "originSnapOffset": {
  1897. "x": 0,
  1898. "y": 0,
  1899. },
  1900. "pasteDialog": {
  1901. "data": null,
  1902. "shown": false,
  1903. },
  1904. "penDetected": false,
  1905. "penMode": false,
  1906. "pendingImageElementId": null,
  1907. "previousSelectedElementIds": {},
  1908. "resizingElement": null,
  1909. "scrollX": 0,
  1910. "scrollY": 0,
  1911. "searchMatches": [],
  1912. "selectedElementIds": {},
  1913. "selectedElementsAreBeingDragged": false,
  1914. "selectedGroupIds": {},
  1915. "selectionElement": null,
  1916. "shouldCacheIgnoreZoom": false,
  1917. "showHyperlinkPopup": false,
  1918. "showWelcomeScreen": true,
  1919. "snapLines": [],
  1920. "startBoundElement": null,
  1921. "stats": {
  1922. "open": false,
  1923. "panels": 3,
  1924. },
  1925. "suggestedBindings": [],
  1926. "theme": "light",
  1927. "toast": null,
  1928. "userToFollow": null,
  1929. "viewBackgroundColor": "#ffffff",
  1930. "viewModeEnabled": false,
  1931. "width": 0,
  1932. "zenModeEnabled": false,
  1933. "zoom": {
  1934. "value": 1,
  1935. },
  1936. }
  1937. `;
  1938. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should unbind remotely deleted bindable elements from arrow when the arrow is added through the history > [end of test] element 0 1`] = `
  1939. {
  1940. "angle": 0,
  1941. "backgroundColor": "transparent",
  1942. "boundElements": null,
  1943. "customData": undefined,
  1944. "fillStyle": "solid",
  1945. "frameId": null,
  1946. "groupIds": [],
  1947. "height": 100,
  1948. "id": "id182",
  1949. "index": "a0",
  1950. "isDeleted": false,
  1951. "link": null,
  1952. "locked": false,
  1953. "opacity": 100,
  1954. "roughness": 1,
  1955. "roundness": {
  1956. "type": 3,
  1957. },
  1958. "strokeColor": "#1e1e1e",
  1959. "strokeStyle": "solid",
  1960. "strokeWidth": 2,
  1961. "type": "rectangle",
  1962. "updated": 1,
  1963. "version": 2,
  1964. "width": 100,
  1965. "x": -100,
  1966. "y": -50,
  1967. }
  1968. `;
  1969. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should unbind remotely deleted bindable elements from arrow when the arrow is added through the history > [end of test] element 1 1`] = `
  1970. {
  1971. "angle": 0,
  1972. "backgroundColor": "transparent",
  1973. "boundElements": null,
  1974. "customData": undefined,
  1975. "fillStyle": "solid",
  1976. "frameId": null,
  1977. "groupIds": [],
  1978. "height": 100,
  1979. "id": "id183",
  1980. "index": "a1",
  1981. "isDeleted": false,
  1982. "link": null,
  1983. "locked": false,
  1984. "opacity": 100,
  1985. "roughness": 1,
  1986. "roundness": {
  1987. "type": 3,
  1988. },
  1989. "strokeColor": "#1e1e1e",
  1990. "strokeStyle": "solid",
  1991. "strokeWidth": 2,
  1992. "type": "rectangle",
  1993. "updated": 1,
  1994. "version": 2,
  1995. "width": 100,
  1996. "x": 100,
  1997. "y": -50,
  1998. }
  1999. `;
  2000. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should unbind remotely deleted bindable elements from arrow when the arrow is added through the history > [end of test] history 1`] = `
  2001. History {
  2002. "onHistoryChangedEmitter": Emitter {
  2003. "subscribers": [
  2004. [Function],
  2005. [Function],
  2006. ],
  2007. },
  2008. "redoStack": [],
  2009. "undoStack": [
  2010. HistoryEntry {
  2011. "appStateChange": AppStateChange {
  2012. "delta": Delta {
  2013. "deleted": {},
  2014. "inserted": {},
  2015. },
  2016. },
  2017. "elementsChange": ElementsChange {
  2018. "added": Map {},
  2019. "removed": Map {
  2020. "id182" => Delta {
  2021. "deleted": {
  2022. "angle": 0,
  2023. "backgroundColor": "transparent",
  2024. "boundElements": null,
  2025. "customData": undefined,
  2026. "fillStyle": "solid",
  2027. "frameId": null,
  2028. "groupIds": [],
  2029. "height": 100,
  2030. "index": "a0",
  2031. "isDeleted": false,
  2032. "link": null,
  2033. "locked": false,
  2034. "opacity": 100,
  2035. "roughness": 1,
  2036. "roundness": {
  2037. "type": 3,
  2038. },
  2039. "strokeColor": "#1e1e1e",
  2040. "strokeStyle": "solid",
  2041. "strokeWidth": 2,
  2042. "type": "rectangle",
  2043. "width": 100,
  2044. "x": -100,
  2045. "y": -50,
  2046. },
  2047. "inserted": {
  2048. "isDeleted": true,
  2049. },
  2050. },
  2051. "id183" => Delta {
  2052. "deleted": {
  2053. "angle": 0,
  2054. "backgroundColor": "transparent",
  2055. "boundElements": null,
  2056. "customData": undefined,
  2057. "fillStyle": "solid",
  2058. "frameId": null,
  2059. "groupIds": [],
  2060. "height": 100,
  2061. "index": "a1",
  2062. "isDeleted": false,
  2063. "link": null,
  2064. "locked": false,
  2065. "opacity": 100,
  2066. "roughness": 1,
  2067. "roundness": {
  2068. "type": 3,
  2069. },
  2070. "strokeColor": "#1e1e1e",
  2071. "strokeStyle": "solid",
  2072. "strokeWidth": 2,
  2073. "type": "rectangle",
  2074. "width": 100,
  2075. "x": 100,
  2076. "y": -50,
  2077. },
  2078. "inserted": {
  2079. "isDeleted": true,
  2080. },
  2081. },
  2082. },
  2083. "updated": Map {},
  2084. },
  2085. },
  2086. ],
  2087. }
  2088. `;
  2089. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should unbind remotely deleted bindable elements from arrow when the arrow is added through the history > [end of test] number of elements 1`] = `2`;
  2090. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should unbind remotely deleted bindable elements from arrow when the arrow is added through the history > [end of test] number of renders 1`] = `4`;
  2091. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should update bound element points when rectangle was remotely moved and arrow is added back through the history > [end of test] appState 1`] = `
  2092. {
  2093. "activeEmbeddable": null,
  2094. "activeTool": {
  2095. "customType": null,
  2096. "fromSelection": false,
  2097. "lastActiveTool": null,
  2098. "locked": false,
  2099. "type": "selection",
  2100. },
  2101. "collaborators": Map {},
  2102. "contextMenu": null,
  2103. "croppingElementId": null,
  2104. "currentChartType": "bar",
  2105. "currentHoveredFontFamily": null,
  2106. "currentItemArrowType": "round",
  2107. "currentItemBackgroundColor": "transparent",
  2108. "currentItemEndArrowhead": "arrow",
  2109. "currentItemFillStyle": "solid",
  2110. "currentItemFontFamily": 5,
  2111. "currentItemFontSize": 20,
  2112. "currentItemOpacity": 100,
  2113. "currentItemRoughness": 1,
  2114. "currentItemRoundness": "round",
  2115. "currentItemStartArrowhead": null,
  2116. "currentItemStrokeColor": "#1e1e1e",
  2117. "currentItemStrokeStyle": "solid",
  2118. "currentItemStrokeWidth": 2,
  2119. "currentItemTextAlign": "left",
  2120. "cursorButton": "up",
  2121. "defaultSidebarDockedPreference": false,
  2122. "editingFrame": null,
  2123. "editingGroupId": null,
  2124. "editingLinearElement": null,
  2125. "editingTextElement": null,
  2126. "elementsToHighlight": null,
  2127. "errorMessage": null,
  2128. "exportBackground": true,
  2129. "exportEmbedScene": false,
  2130. "exportScale": 1,
  2131. "exportWithDarkMode": false,
  2132. "fileHandle": null,
  2133. "followedBy": Set {},
  2134. "frameRendering": {
  2135. "clip": true,
  2136. "enabled": true,
  2137. "name": true,
  2138. "outline": true,
  2139. },
  2140. "frameToHighlight": null,
  2141. "gridModeEnabled": false,
  2142. "gridSize": 20,
  2143. "gridStep": 5,
  2144. "height": 0,
  2145. "hoveredElementIds": {},
  2146. "isBindingEnabled": true,
  2147. "isCropping": false,
  2148. "isLoading": false,
  2149. "isResizing": false,
  2150. "isRotating": false,
  2151. "lastPointerDownWith": "mouse",
  2152. "multiElement": null,
  2153. "newElement": null,
  2154. "objectsSnapModeEnabled": false,
  2155. "offsetLeft": 0,
  2156. "offsetTop": 0,
  2157. "openDialog": null,
  2158. "openMenu": null,
  2159. "openPopup": null,
  2160. "openSidebar": null,
  2161. "originSnapOffset": null,
  2162. "pasteDialog": {
  2163. "data": null,
  2164. "shown": false,
  2165. },
  2166. "penDetected": false,
  2167. "penMode": false,
  2168. "pendingImageElementId": null,
  2169. "previousSelectedElementIds": {},
  2170. "resizingElement": null,
  2171. "scrollX": 0,
  2172. "scrollY": 0,
  2173. "searchMatches": [],
  2174. "selectedElementIds": {
  2175. "id186": true,
  2176. },
  2177. "selectedElementsAreBeingDragged": false,
  2178. "selectedGroupIds": {},
  2179. "selectionElement": null,
  2180. "shouldCacheIgnoreZoom": false,
  2181. "showHyperlinkPopup": false,
  2182. "showWelcomeScreen": true,
  2183. "snapLines": [],
  2184. "startBoundElement": null,
  2185. "stats": {
  2186. "open": false,
  2187. "panels": 3,
  2188. },
  2189. "suggestedBindings": [],
  2190. "theme": "light",
  2191. "toast": null,
  2192. "userToFollow": null,
  2193. "viewBackgroundColor": "#ffffff",
  2194. "viewModeEnabled": false,
  2195. "width": 0,
  2196. "zenModeEnabled": false,
  2197. "zoom": {
  2198. "value": 1,
  2199. },
  2200. }
  2201. `;
  2202. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should update bound element points when rectangle was remotely moved and arrow is added back through the history > [end of test] element 0 1`] = `
  2203. {
  2204. "angle": 0,
  2205. "backgroundColor": "transparent",
  2206. "boundElements": [
  2207. {
  2208. "id": "id186",
  2209. "type": "arrow",
  2210. },
  2211. ],
  2212. "customData": undefined,
  2213. "fillStyle": "solid",
  2214. "frameId": null,
  2215. "groupIds": [],
  2216. "height": 100,
  2217. "id": "id184",
  2218. "index": "a0",
  2219. "isDeleted": false,
  2220. "link": null,
  2221. "locked": false,
  2222. "opacity": 100,
  2223. "roughness": 1,
  2224. "roundness": {
  2225. "type": 3,
  2226. },
  2227. "strokeColor": "#1e1e1e",
  2228. "strokeStyle": "solid",
  2229. "strokeWidth": 2,
  2230. "type": "rectangle",
  2231. "updated": 1,
  2232. "version": 7,
  2233. "width": 100,
  2234. "x": -100,
  2235. "y": -50,
  2236. }
  2237. `;
  2238. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should update bound element points when rectangle was remotely moved and arrow is added back through the history > [end of test] element 1 1`] = `
  2239. {
  2240. "angle": 0,
  2241. "backgroundColor": "transparent",
  2242. "boundElements": [
  2243. {
  2244. "id": "id186",
  2245. "type": "arrow",
  2246. },
  2247. ],
  2248. "customData": undefined,
  2249. "fillStyle": "solid",
  2250. "frameId": null,
  2251. "groupIds": [],
  2252. "height": 100,
  2253. "id": "id185",
  2254. "index": "a1",
  2255. "isDeleted": false,
  2256. "link": null,
  2257. "locked": false,
  2258. "opacity": 100,
  2259. "roughness": 1,
  2260. "roundness": {
  2261. "type": 3,
  2262. },
  2263. "strokeColor": "#1e1e1e",
  2264. "strokeStyle": "solid",
  2265. "strokeWidth": 2,
  2266. "type": "rectangle",
  2267. "updated": 1,
  2268. "version": 8,
  2269. "width": 100,
  2270. "x": 500,
  2271. "y": -500,
  2272. }
  2273. `;
  2274. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should update bound element points when rectangle was remotely moved and arrow is added back through the history > [end of test] element 2 1`] = `
  2275. {
  2276. "angle": 0,
  2277. "backgroundColor": "transparent",
  2278. "boundElements": null,
  2279. "customData": undefined,
  2280. "elbowed": false,
  2281. "endArrowhead": "arrow",
  2282. "endBinding": {
  2283. "elementId": "id185",
  2284. "focus": -0,
  2285. "gap": 1,
  2286. },
  2287. "fillStyle": "solid",
  2288. "frameId": null,
  2289. "groupIds": [],
  2290. "height": "374.05754",
  2291. "id": "id186",
  2292. "index": "a2",
  2293. "isDeleted": false,
  2294. "lastCommittedPoint": null,
  2295. "link": null,
  2296. "locked": false,
  2297. "opacity": 100,
  2298. "points": [
  2299. [
  2300. 0,
  2301. 0,
  2302. ],
  2303. [
  2304. "502.78936",
  2305. "-374.05754",
  2306. ],
  2307. ],
  2308. "roughness": 1,
  2309. "roundness": {
  2310. "type": 2,
  2311. },
  2312. "startArrowhead": null,
  2313. "startBinding": {
  2314. "elementId": "id184",
  2315. "focus": 0,
  2316. "gap": 1,
  2317. },
  2318. "strokeColor": "#1e1e1e",
  2319. "strokeStyle": "solid",
  2320. "strokeWidth": 2,
  2321. "type": "arrow",
  2322. "updated": 1,
  2323. "version": 10,
  2324. "width": "502.78936",
  2325. "x": "-0.83465",
  2326. "y": "-36.58211",
  2327. }
  2328. `;
  2329. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should update bound element points when rectangle was remotely moved and arrow is added back through the history > [end of test] history 1`] = `
  2330. History {
  2331. "onHistoryChangedEmitter": Emitter {
  2332. "subscribers": [
  2333. [Function],
  2334. [Function],
  2335. ],
  2336. },
  2337. "redoStack": [],
  2338. "undoStack": [
  2339. HistoryEntry {
  2340. "appStateChange": AppStateChange {
  2341. "delta": Delta {
  2342. "deleted": {},
  2343. "inserted": {},
  2344. },
  2345. },
  2346. "elementsChange": ElementsChange {
  2347. "added": Map {},
  2348. "removed": Map {
  2349. "id184" => Delta {
  2350. "deleted": {
  2351. "angle": 0,
  2352. "backgroundColor": "transparent",
  2353. "boundElements": null,
  2354. "customData": undefined,
  2355. "fillStyle": "solid",
  2356. "frameId": null,
  2357. "groupIds": [],
  2358. "height": 100,
  2359. "index": "a0",
  2360. "isDeleted": false,
  2361. "link": null,
  2362. "locked": false,
  2363. "opacity": 100,
  2364. "roughness": 1,
  2365. "roundness": {
  2366. "type": 3,
  2367. },
  2368. "strokeColor": "#1e1e1e",
  2369. "strokeStyle": "solid",
  2370. "strokeWidth": 2,
  2371. "type": "rectangle",
  2372. "width": 100,
  2373. "x": -100,
  2374. "y": -50,
  2375. },
  2376. "inserted": {
  2377. "isDeleted": true,
  2378. },
  2379. },
  2380. "id185" => Delta {
  2381. "deleted": {
  2382. "angle": 0,
  2383. "backgroundColor": "transparent",
  2384. "boundElements": null,
  2385. "customData": undefined,
  2386. "fillStyle": "solid",
  2387. "frameId": null,
  2388. "groupIds": [],
  2389. "height": 100,
  2390. "index": "a1",
  2391. "isDeleted": false,
  2392. "link": null,
  2393. "locked": false,
  2394. "opacity": 100,
  2395. "roughness": 1,
  2396. "roundness": {
  2397. "type": 3,
  2398. },
  2399. "strokeColor": "#1e1e1e",
  2400. "strokeStyle": "solid",
  2401. "strokeWidth": 2,
  2402. "type": "rectangle",
  2403. "width": 100,
  2404. "x": 100,
  2405. "y": -50,
  2406. },
  2407. "inserted": {
  2408. "isDeleted": true,
  2409. },
  2410. },
  2411. },
  2412. "updated": Map {},
  2413. },
  2414. },
  2415. HistoryEntry {
  2416. "appStateChange": AppStateChange {
  2417. "delta": Delta {
  2418. "deleted": {
  2419. "selectedElementIds": {
  2420. "id186": true,
  2421. },
  2422. "selectedLinearElementId": "id186",
  2423. },
  2424. "inserted": {
  2425. "selectedElementIds": {},
  2426. "selectedLinearElementId": null,
  2427. },
  2428. },
  2429. },
  2430. "elementsChange": ElementsChange {
  2431. "added": Map {},
  2432. "removed": Map {
  2433. "id186" => Delta {
  2434. "deleted": {
  2435. "angle": 0,
  2436. "backgroundColor": "transparent",
  2437. "boundElements": null,
  2438. "customData": undefined,
  2439. "elbowed": false,
  2440. "endArrowhead": "arrow",
  2441. "endBinding": {
  2442. "elementId": "id185",
  2443. "focus": -0,
  2444. "gap": 1,
  2445. },
  2446. "fillStyle": "solid",
  2447. "frameId": null,
  2448. "groupIds": [],
  2449. "height": 0,
  2450. "index": "a2",
  2451. "isDeleted": false,
  2452. "lastCommittedPoint": null,
  2453. "link": null,
  2454. "locked": false,
  2455. "opacity": 100,
  2456. "points": [
  2457. [
  2458. 0,
  2459. 0,
  2460. ],
  2461. [
  2462. 100,
  2463. 0,
  2464. ],
  2465. ],
  2466. "roughness": 1,
  2467. "roundness": {
  2468. "type": 2,
  2469. },
  2470. "startArrowhead": null,
  2471. "startBinding": {
  2472. "elementId": "id184",
  2473. "focus": 0,
  2474. "gap": 1,
  2475. },
  2476. "strokeColor": "#1e1e1e",
  2477. "strokeStyle": "solid",
  2478. "strokeWidth": 2,
  2479. "type": "arrow",
  2480. "width": 100,
  2481. "x": 0,
  2482. "y": 0,
  2483. },
  2484. "inserted": {
  2485. "isDeleted": true,
  2486. },
  2487. },
  2488. },
  2489. "updated": Map {
  2490. "id184" => Delta {
  2491. "deleted": {
  2492. "boundElements": [
  2493. {
  2494. "id": "id186",
  2495. "type": "arrow",
  2496. },
  2497. ],
  2498. },
  2499. "inserted": {
  2500. "boundElements": [],
  2501. },
  2502. },
  2503. "id185" => Delta {
  2504. "deleted": {
  2505. "boundElements": [
  2506. {
  2507. "id": "id186",
  2508. "type": "arrow",
  2509. },
  2510. ],
  2511. },
  2512. "inserted": {
  2513. "boundElements": [],
  2514. },
  2515. },
  2516. },
  2517. },
  2518. },
  2519. ],
  2520. }
  2521. `;
  2522. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should update bound element points when rectangle was remotely moved and arrow is added back through the history > [end of test] number of elements 1`] = `3`;
  2523. exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should update bound element points when rectangle was remotely moved and arrow is added back through the history > [end of test] number of renders 1`] = `9`;
  2524. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should preserve latest remotely added binding and unbind previous one when the container is added through the history > [end of test] appState 1`] = `
  2525. {
  2526. "activeEmbeddable": null,
  2527. "activeTool": {
  2528. "customType": null,
  2529. "fromSelection": false,
  2530. "lastActiveTool": null,
  2531. "locked": false,
  2532. "type": "selection",
  2533. },
  2534. "collaborators": Map {},
  2535. "contextMenu": null,
  2536. "croppingElementId": null,
  2537. "currentChartType": "bar",
  2538. "currentHoveredFontFamily": null,
  2539. "currentItemArrowType": "round",
  2540. "currentItemBackgroundColor": "transparent",
  2541. "currentItemEndArrowhead": "arrow",
  2542. "currentItemFillStyle": "solid",
  2543. "currentItemFontFamily": 5,
  2544. "currentItemFontSize": 20,
  2545. "currentItemOpacity": 100,
  2546. "currentItemRoughness": 1,
  2547. "currentItemRoundness": "round",
  2548. "currentItemStartArrowhead": null,
  2549. "currentItemStrokeColor": "#1e1e1e",
  2550. "currentItemStrokeStyle": "solid",
  2551. "currentItemStrokeWidth": 2,
  2552. "currentItemTextAlign": "left",
  2553. "cursorButton": "up",
  2554. "defaultSidebarDockedPreference": false,
  2555. "editingFrame": null,
  2556. "editingGroupId": null,
  2557. "editingLinearElement": null,
  2558. "editingTextElement": null,
  2559. "elementsToHighlight": null,
  2560. "errorMessage": null,
  2561. "exportBackground": true,
  2562. "exportEmbedScene": false,
  2563. "exportScale": 1,
  2564. "exportWithDarkMode": false,
  2565. "fileHandle": null,
  2566. "followedBy": Set {},
  2567. "frameRendering": {
  2568. "clip": true,
  2569. "enabled": true,
  2570. "name": true,
  2571. "outline": true,
  2572. },
  2573. "frameToHighlight": null,
  2574. "gridModeEnabled": false,
  2575. "gridSize": 20,
  2576. "gridStep": 5,
  2577. "height": 0,
  2578. "hoveredElementIds": {},
  2579. "isBindingEnabled": true,
  2580. "isCropping": false,
  2581. "isLoading": false,
  2582. "isResizing": false,
  2583. "isRotating": false,
  2584. "lastPointerDownWith": "mouse",
  2585. "multiElement": null,
  2586. "newElement": null,
  2587. "objectsSnapModeEnabled": false,
  2588. "offsetLeft": 0,
  2589. "offsetTop": 0,
  2590. "openDialog": null,
  2591. "openMenu": null,
  2592. "openPopup": null,
  2593. "openSidebar": null,
  2594. "originSnapOffset": {
  2595. "x": 0,
  2596. "y": 0,
  2597. },
  2598. "pasteDialog": {
  2599. "data": null,
  2600. "shown": false,
  2601. },
  2602. "penDetected": false,
  2603. "penMode": false,
  2604. "pendingImageElementId": null,
  2605. "previousSelectedElementIds": {},
  2606. "resizingElement": null,
  2607. "scrollX": 0,
  2608. "scrollY": 0,
  2609. "searchMatches": [],
  2610. "selectedElementIds": {},
  2611. "selectedElementsAreBeingDragged": false,
  2612. "selectedGroupIds": {},
  2613. "selectionElement": null,
  2614. "shouldCacheIgnoreZoom": false,
  2615. "showHyperlinkPopup": false,
  2616. "showWelcomeScreen": true,
  2617. "snapLines": [],
  2618. "startBoundElement": null,
  2619. "stats": {
  2620. "open": false,
  2621. "panels": 3,
  2622. },
  2623. "suggestedBindings": [],
  2624. "theme": "light",
  2625. "toast": null,
  2626. "userToFollow": null,
  2627. "viewBackgroundColor": "#ffffff",
  2628. "viewModeEnabled": false,
  2629. "width": 0,
  2630. "zenModeEnabled": false,
  2631. "zoom": {
  2632. "value": 1,
  2633. },
  2634. }
  2635. `;
  2636. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should preserve latest remotely added binding and unbind previous one when the container is added through the history > [end of test] element 0 1`] = `
  2637. {
  2638. "angle": 0,
  2639. "backgroundColor": "transparent",
  2640. "boundElements": [
  2641. {
  2642. "id": "id153",
  2643. "type": "text",
  2644. },
  2645. ],
  2646. "customData": undefined,
  2647. "fillStyle": "solid",
  2648. "frameId": null,
  2649. "groupIds": [],
  2650. "height": 100,
  2651. "id": "id151",
  2652. "index": "a0",
  2653. "isDeleted": false,
  2654. "link": null,
  2655. "locked": false,
  2656. "opacity": 100,
  2657. "roughness": 1,
  2658. "roundness": {
  2659. "type": 3,
  2660. },
  2661. "strokeColor": "#1e1e1e",
  2662. "strokeStyle": "solid",
  2663. "strokeWidth": 2,
  2664. "type": "rectangle",
  2665. "updated": 1,
  2666. "version": 7,
  2667. "width": 100,
  2668. "x": 10,
  2669. "y": 10,
  2670. }
  2671. `;
  2672. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should preserve latest remotely added binding and unbind previous one when the container is added through the history > [end of test] element 1 1`] = `
  2673. {
  2674. "angle": 0,
  2675. "autoResize": true,
  2676. "backgroundColor": "transparent",
  2677. "boundElements": null,
  2678. "containerId": null,
  2679. "customData": undefined,
  2680. "fillStyle": "solid",
  2681. "fontFamily": 5,
  2682. "fontSize": 20,
  2683. "frameId": null,
  2684. "groupIds": [],
  2685. "height": 100,
  2686. "id": "id152",
  2687. "index": "a1",
  2688. "isDeleted": false,
  2689. "lineHeight": "1.25000",
  2690. "link": null,
  2691. "locked": false,
  2692. "opacity": 100,
  2693. "originalText": "que pasa",
  2694. "roughness": 1,
  2695. "roundness": {
  2696. "type": 3,
  2697. },
  2698. "strokeColor": "#1e1e1e",
  2699. "strokeStyle": "solid",
  2700. "strokeWidth": 2,
  2701. "text": "que pasa",
  2702. "textAlign": "left",
  2703. "type": "text",
  2704. "updated": 1,
  2705. "version": 6,
  2706. "verticalAlign": "top",
  2707. "width": 100,
  2708. "x": 15,
  2709. "y": 15,
  2710. }
  2711. `;
  2712. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should preserve latest remotely added binding and unbind previous one when the container is added through the history > [end of test] element 2 1`] = `
  2713. {
  2714. "angle": 0,
  2715. "autoResize": true,
  2716. "backgroundColor": "transparent",
  2717. "boundElements": null,
  2718. "containerId": "id151",
  2719. "customData": undefined,
  2720. "fillStyle": "solid",
  2721. "fontFamily": 5,
  2722. "fontSize": 20,
  2723. "frameId": null,
  2724. "groupIds": [],
  2725. "height": 25,
  2726. "id": "id153",
  2727. "index": "a2",
  2728. "isDeleted": false,
  2729. "lineHeight": "1.25000",
  2730. "link": null,
  2731. "locked": false,
  2732. "opacity": 100,
  2733. "originalText": "ola",
  2734. "roughness": 1,
  2735. "roundness": {
  2736. "type": 3,
  2737. },
  2738. "strokeColor": "#1e1e1e",
  2739. "strokeStyle": "solid",
  2740. "strokeWidth": 2,
  2741. "text": "ola",
  2742. "textAlign": "left",
  2743. "type": "text",
  2744. "updated": 1,
  2745. "version": 11,
  2746. "verticalAlign": "top",
  2747. "width": 30,
  2748. "x": 15,
  2749. "y": 15,
  2750. }
  2751. `;
  2752. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should preserve latest remotely added binding and unbind previous one when the container is added through the history > [end of test] history 1`] = `
  2753. History {
  2754. "onHistoryChangedEmitter": Emitter {
  2755. "subscribers": [
  2756. [Function],
  2757. [Function],
  2758. ],
  2759. },
  2760. "redoStack": [
  2761. HistoryEntry {
  2762. "appStateChange": AppStateChange {
  2763. "delta": Delta {
  2764. "deleted": {},
  2765. "inserted": {},
  2766. },
  2767. },
  2768. "elementsChange": ElementsChange {
  2769. "added": Map {},
  2770. "removed": Map {},
  2771. "updated": Map {
  2772. "id151" => Delta {
  2773. "deleted": {
  2774. "isDeleted": false,
  2775. },
  2776. "inserted": {
  2777. "angle": 0,
  2778. "backgroundColor": "transparent",
  2779. "boundElements": null,
  2780. "customData": undefined,
  2781. "fillStyle": "solid",
  2782. "frameId": null,
  2783. "groupIds": [],
  2784. "height": 100,
  2785. "index": "a0",
  2786. "isDeleted": false,
  2787. "link": null,
  2788. "locked": false,
  2789. "opacity": 100,
  2790. "roughness": 1,
  2791. "roundness": {
  2792. "type": 3,
  2793. },
  2794. "strokeColor": "#1e1e1e",
  2795. "strokeStyle": "solid",
  2796. "strokeWidth": 2,
  2797. "type": "rectangle",
  2798. "width": 100,
  2799. "x": 10,
  2800. "y": 10,
  2801. },
  2802. },
  2803. "id152" => Delta {
  2804. "deleted": {
  2805. "containerId": null,
  2806. },
  2807. "inserted": {
  2808. "containerId": null,
  2809. },
  2810. },
  2811. },
  2812. },
  2813. },
  2814. ],
  2815. "undoStack": [],
  2816. }
  2817. `;
  2818. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should preserve latest remotely added binding and unbind previous one when the container is added through the history > [end of test] number of elements 1`] = `3`;
  2819. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should preserve latest remotely added binding and unbind previous one when the container is added through the history > [end of test] number of renders 1`] = `11`;
  2820. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should preserve latest remotely added binding and unbind previous one when the text is added through history > [end of test] appState 1`] = `
  2821. {
  2822. "activeEmbeddable": null,
  2823. "activeTool": {
  2824. "customType": null,
  2825. "fromSelection": false,
  2826. "lastActiveTool": null,
  2827. "locked": false,
  2828. "type": "selection",
  2829. },
  2830. "collaborators": Map {},
  2831. "contextMenu": null,
  2832. "croppingElementId": null,
  2833. "currentChartType": "bar",
  2834. "currentHoveredFontFamily": null,
  2835. "currentItemArrowType": "round",
  2836. "currentItemBackgroundColor": "transparent",
  2837. "currentItemEndArrowhead": "arrow",
  2838. "currentItemFillStyle": "solid",
  2839. "currentItemFontFamily": 5,
  2840. "currentItemFontSize": 20,
  2841. "currentItemOpacity": 100,
  2842. "currentItemRoughness": 1,
  2843. "currentItemRoundness": "round",
  2844. "currentItemStartArrowhead": null,
  2845. "currentItemStrokeColor": "#1e1e1e",
  2846. "currentItemStrokeStyle": "solid",
  2847. "currentItemStrokeWidth": 2,
  2848. "currentItemTextAlign": "left",
  2849. "cursorButton": "up",
  2850. "defaultSidebarDockedPreference": false,
  2851. "editingFrame": null,
  2852. "editingGroupId": null,
  2853. "editingLinearElement": null,
  2854. "editingTextElement": null,
  2855. "elementsToHighlight": null,
  2856. "errorMessage": null,
  2857. "exportBackground": true,
  2858. "exportEmbedScene": false,
  2859. "exportScale": 1,
  2860. "exportWithDarkMode": false,
  2861. "fileHandle": null,
  2862. "followedBy": Set {},
  2863. "frameRendering": {
  2864. "clip": true,
  2865. "enabled": true,
  2866. "name": true,
  2867. "outline": true,
  2868. },
  2869. "frameToHighlight": null,
  2870. "gridModeEnabled": false,
  2871. "gridSize": 20,
  2872. "gridStep": 5,
  2873. "height": 0,
  2874. "hoveredElementIds": {},
  2875. "isBindingEnabled": true,
  2876. "isCropping": false,
  2877. "isLoading": false,
  2878. "isResizing": false,
  2879. "isRotating": false,
  2880. "lastPointerDownWith": "mouse",
  2881. "multiElement": null,
  2882. "newElement": null,
  2883. "objectsSnapModeEnabled": false,
  2884. "offsetLeft": 0,
  2885. "offsetTop": 0,
  2886. "openDialog": null,
  2887. "openMenu": null,
  2888. "openPopup": null,
  2889. "openSidebar": null,
  2890. "originSnapOffset": {
  2891. "x": 0,
  2892. "y": 0,
  2893. },
  2894. "pasteDialog": {
  2895. "data": null,
  2896. "shown": false,
  2897. },
  2898. "penDetected": false,
  2899. "penMode": false,
  2900. "pendingImageElementId": null,
  2901. "previousSelectedElementIds": {},
  2902. "resizingElement": null,
  2903. "scrollX": 0,
  2904. "scrollY": 0,
  2905. "searchMatches": [],
  2906. "selectedElementIds": {},
  2907. "selectedElementsAreBeingDragged": false,
  2908. "selectedGroupIds": {},
  2909. "selectionElement": null,
  2910. "shouldCacheIgnoreZoom": false,
  2911. "showHyperlinkPopup": false,
  2912. "showWelcomeScreen": true,
  2913. "snapLines": [],
  2914. "startBoundElement": null,
  2915. "stats": {
  2916. "open": false,
  2917. "panels": 3,
  2918. },
  2919. "suggestedBindings": [],
  2920. "theme": "light",
  2921. "toast": null,
  2922. "userToFollow": null,
  2923. "viewBackgroundColor": "#ffffff",
  2924. "viewModeEnabled": false,
  2925. "width": 0,
  2926. "zenModeEnabled": false,
  2927. "zoom": {
  2928. "value": 1,
  2929. },
  2930. }
  2931. `;
  2932. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should preserve latest remotely added binding and unbind previous one when the text is added through history > [end of test] element 0 1`] = `
  2933. {
  2934. "angle": 0,
  2935. "backgroundColor": "transparent",
  2936. "boundElements": [
  2937. {
  2938. "id": "id156",
  2939. "type": "text",
  2940. },
  2941. ],
  2942. "customData": undefined,
  2943. "fillStyle": "solid",
  2944. "frameId": null,
  2945. "groupIds": [],
  2946. "height": 100,
  2947. "id": "id154",
  2948. "index": "Zz",
  2949. "isDeleted": false,
  2950. "link": null,
  2951. "locked": false,
  2952. "opacity": 100,
  2953. "roughness": 1,
  2954. "roundness": {
  2955. "type": 3,
  2956. },
  2957. "strokeColor": "#1e1e1e",
  2958. "strokeStyle": "solid",
  2959. "strokeWidth": 2,
  2960. "type": "rectangle",
  2961. "updated": 1,
  2962. "version": 11,
  2963. "width": 100,
  2964. "x": 10,
  2965. "y": 10,
  2966. }
  2967. `;
  2968. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should preserve latest remotely added binding and unbind previous one when the text is added through history > [end of test] element 1 1`] = `
  2969. {
  2970. "angle": 0,
  2971. "autoResize": true,
  2972. "backgroundColor": "transparent",
  2973. "boundElements": null,
  2974. "containerId": "id154",
  2975. "customData": undefined,
  2976. "fillStyle": "solid",
  2977. "fontFamily": 5,
  2978. "fontSize": 20,
  2979. "frameId": null,
  2980. "groupIds": [],
  2981. "height": 100,
  2982. "id": "id155",
  2983. "index": "a0",
  2984. "isDeleted": true,
  2985. "lineHeight": "1.25000",
  2986. "link": null,
  2987. "locked": false,
  2988. "opacity": 100,
  2989. "originalText": "que pasa",
  2990. "roughness": 1,
  2991. "roundness": {
  2992. "type": 3,
  2993. },
  2994. "strokeColor": "#1e1e1e",
  2995. "strokeStyle": "solid",
  2996. "strokeWidth": 2,
  2997. "text": "que pasa",
  2998. "textAlign": "left",
  2999. "type": "text",
  3000. "updated": 1,
  3001. "version": 9,
  3002. "verticalAlign": "top",
  3003. "width": 100,
  3004. "x": 15,
  3005. "y": 15,
  3006. }
  3007. `;
  3008. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should preserve latest remotely added binding and unbind previous one when the text is added through history > [end of test] element 2 1`] = `
  3009. {
  3010. "angle": 0,
  3011. "autoResize": true,
  3012. "backgroundColor": "transparent",
  3013. "boundElements": null,
  3014. "containerId": "id154",
  3015. "customData": undefined,
  3016. "fillStyle": "solid",
  3017. "fontFamily": 5,
  3018. "fontSize": 20,
  3019. "frameId": null,
  3020. "groupIds": [],
  3021. "height": 25,
  3022. "id": "id156",
  3023. "index": "a1",
  3024. "isDeleted": false,
  3025. "lineHeight": "1.25000",
  3026. "link": null,
  3027. "locked": false,
  3028. "opacity": 100,
  3029. "originalText": "ola",
  3030. "roughness": 1,
  3031. "roundness": {
  3032. "type": 3,
  3033. },
  3034. "strokeColor": "#1e1e1e",
  3035. "strokeStyle": "solid",
  3036. "strokeWidth": 2,
  3037. "text": "ola",
  3038. "textAlign": "left",
  3039. "type": "text",
  3040. "updated": 1,
  3041. "version": 11,
  3042. "verticalAlign": "top",
  3043. "width": 30,
  3044. "x": 15,
  3045. "y": 15,
  3046. }
  3047. `;
  3048. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should preserve latest remotely added binding and unbind previous one when the text is added through history > [end of test] history 1`] = `
  3049. History {
  3050. "onHistoryChangedEmitter": Emitter {
  3051. "subscribers": [
  3052. [Function],
  3053. [Function],
  3054. ],
  3055. },
  3056. "redoStack": [
  3057. HistoryEntry {
  3058. "appStateChange": AppStateChange {
  3059. "delta": Delta {
  3060. "deleted": {},
  3061. "inserted": {},
  3062. },
  3063. },
  3064. "elementsChange": ElementsChange {
  3065. "added": Map {
  3066. "id155" => Delta {
  3067. "deleted": {
  3068. "containerId": "id154",
  3069. "isDeleted": true,
  3070. },
  3071. "inserted": {
  3072. "containerId": null,
  3073. "isDeleted": false,
  3074. },
  3075. },
  3076. },
  3077. "removed": Map {},
  3078. "updated": Map {
  3079. "id154" => Delta {
  3080. "deleted": {
  3081. "boundElements": [],
  3082. },
  3083. "inserted": {
  3084. "boundElements": [
  3085. {
  3086. "id": "id155",
  3087. "type": "text",
  3088. },
  3089. ],
  3090. },
  3091. },
  3092. },
  3093. },
  3094. },
  3095. ],
  3096. "undoStack": [],
  3097. }
  3098. `;
  3099. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should preserve latest remotely added binding and unbind previous one when the text is added through history > [end of test] number of elements 1`] = `3`;
  3100. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should preserve latest remotely added binding and unbind previous one when the text is added through history > [end of test] number of renders 1`] = `11`;
  3101. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind bindings when both are updated through the history and the container got bound to a different text in the meantime > [end of test] appState 1`] = `
  3102. {
  3103. "activeEmbeddable": null,
  3104. "activeTool": {
  3105. "customType": null,
  3106. "fromSelection": false,
  3107. "lastActiveTool": null,
  3108. "locked": false,
  3109. "type": "selection",
  3110. },
  3111. "collaborators": Map {},
  3112. "contextMenu": null,
  3113. "croppingElementId": null,
  3114. "currentChartType": "bar",
  3115. "currentHoveredFontFamily": null,
  3116. "currentItemArrowType": "round",
  3117. "currentItemBackgroundColor": "transparent",
  3118. "currentItemEndArrowhead": "arrow",
  3119. "currentItemFillStyle": "solid",
  3120. "currentItemFontFamily": 5,
  3121. "currentItemFontSize": 20,
  3122. "currentItemOpacity": 100,
  3123. "currentItemRoughness": 1,
  3124. "currentItemRoundness": "round",
  3125. "currentItemStartArrowhead": null,
  3126. "currentItemStrokeColor": "#1e1e1e",
  3127. "currentItemStrokeStyle": "solid",
  3128. "currentItemStrokeWidth": 2,
  3129. "currentItemTextAlign": "left",
  3130. "cursorButton": "up",
  3131. "defaultSidebarDockedPreference": false,
  3132. "editingFrame": null,
  3133. "editingGroupId": null,
  3134. "editingLinearElement": null,
  3135. "editingTextElement": null,
  3136. "elementsToHighlight": null,
  3137. "errorMessage": null,
  3138. "exportBackground": true,
  3139. "exportEmbedScene": false,
  3140. "exportScale": 1,
  3141. "exportWithDarkMode": false,
  3142. "fileHandle": null,
  3143. "followedBy": Set {},
  3144. "frameRendering": {
  3145. "clip": true,
  3146. "enabled": true,
  3147. "name": true,
  3148. "outline": true,
  3149. },
  3150. "frameToHighlight": null,
  3151. "gridModeEnabled": false,
  3152. "gridSize": 20,
  3153. "gridStep": 5,
  3154. "height": 0,
  3155. "hoveredElementIds": {},
  3156. "isBindingEnabled": true,
  3157. "isCropping": false,
  3158. "isLoading": false,
  3159. "isResizing": false,
  3160. "isRotating": false,
  3161. "lastPointerDownWith": "mouse",
  3162. "multiElement": null,
  3163. "newElement": null,
  3164. "objectsSnapModeEnabled": false,
  3165. "offsetLeft": 0,
  3166. "offsetTop": 0,
  3167. "openDialog": null,
  3168. "openMenu": null,
  3169. "openPopup": null,
  3170. "openSidebar": null,
  3171. "originSnapOffset": {
  3172. "x": 0,
  3173. "y": 0,
  3174. },
  3175. "pasteDialog": {
  3176. "data": null,
  3177. "shown": false,
  3178. },
  3179. "penDetected": false,
  3180. "penMode": false,
  3181. "pendingImageElementId": null,
  3182. "previousSelectedElementIds": {},
  3183. "resizingElement": null,
  3184. "scrollX": 0,
  3185. "scrollY": 0,
  3186. "searchMatches": [],
  3187. "selectedElementIds": {},
  3188. "selectedElementsAreBeingDragged": false,
  3189. "selectedGroupIds": {},
  3190. "selectionElement": null,
  3191. "shouldCacheIgnoreZoom": false,
  3192. "showHyperlinkPopup": false,
  3193. "showWelcomeScreen": true,
  3194. "snapLines": [],
  3195. "startBoundElement": null,
  3196. "stats": {
  3197. "open": false,
  3198. "panels": 3,
  3199. },
  3200. "suggestedBindings": [],
  3201. "theme": "light",
  3202. "toast": null,
  3203. "userToFollow": null,
  3204. "viewBackgroundColor": "#ffffff",
  3205. "viewModeEnabled": false,
  3206. "width": 0,
  3207. "zenModeEnabled": false,
  3208. "zoom": {
  3209. "value": 1,
  3210. },
  3211. }
  3212. `;
  3213. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind bindings when both are updated through the history and the container got bound to a different text in the meantime > [end of test] element 0 1`] = `
  3214. {
  3215. "angle": 0,
  3216. "backgroundColor": "transparent",
  3217. "boundElements": [
  3218. {
  3219. "id": "id143",
  3220. "type": "text",
  3221. },
  3222. ],
  3223. "customData": undefined,
  3224. "fillStyle": "solid",
  3225. "frameId": null,
  3226. "groupIds": [],
  3227. "height": 100,
  3228. "id": "id141",
  3229. "index": "a0",
  3230. "isDeleted": false,
  3231. "link": null,
  3232. "locked": false,
  3233. "opacity": 100,
  3234. "roughness": 1,
  3235. "roundness": {
  3236. "type": 3,
  3237. },
  3238. "strokeColor": "#1e1e1e",
  3239. "strokeStyle": "solid",
  3240. "strokeWidth": 2,
  3241. "type": "rectangle",
  3242. "updated": 1,
  3243. "version": 10,
  3244. "width": 100,
  3245. "x": 10,
  3246. "y": 10,
  3247. }
  3248. `;
  3249. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind bindings when both are updated through the history and the container got bound to a different text in the meantime > [end of test] element 1 1`] = `
  3250. {
  3251. "angle": 0,
  3252. "autoResize": true,
  3253. "backgroundColor": "transparent",
  3254. "boundElements": null,
  3255. "containerId": "id141",
  3256. "customData": undefined,
  3257. "fillStyle": "solid",
  3258. "fontFamily": 5,
  3259. "fontSize": 20,
  3260. "frameId": null,
  3261. "groupIds": [],
  3262. "height": 25,
  3263. "id": "id143",
  3264. "index": "a0V",
  3265. "isDeleted": false,
  3266. "lineHeight": "1.25000",
  3267. "link": null,
  3268. "locked": false,
  3269. "opacity": 100,
  3270. "originalText": "ola",
  3271. "roughness": 1,
  3272. "roundness": {
  3273. "type": 3,
  3274. },
  3275. "strokeColor": "#1e1e1e",
  3276. "strokeStyle": "solid",
  3277. "strokeWidth": 2,
  3278. "text": "ola",
  3279. "textAlign": "left",
  3280. "type": "text",
  3281. "updated": 1,
  3282. "version": 7,
  3283. "verticalAlign": "top",
  3284. "width": 30,
  3285. "x": 15,
  3286. "y": 15,
  3287. }
  3288. `;
  3289. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind bindings when both are updated through the history and the container got bound to a different text in the meantime > [end of test] element 2 1`] = `
  3290. {
  3291. "angle": 0,
  3292. "autoResize": true,
  3293. "backgroundColor": "transparent",
  3294. "boundElements": null,
  3295. "containerId": null,
  3296. "customData": undefined,
  3297. "fillStyle": "solid",
  3298. "fontFamily": 5,
  3299. "fontSize": 20,
  3300. "frameId": null,
  3301. "groupIds": [],
  3302. "height": 25,
  3303. "id": "id142",
  3304. "index": "a1",
  3305. "isDeleted": false,
  3306. "lineHeight": "1.25000",
  3307. "link": null,
  3308. "locked": false,
  3309. "opacity": 100,
  3310. "originalText": "que pasa",
  3311. "roughness": 1,
  3312. "roundness": {
  3313. "type": 3,
  3314. },
  3315. "strokeColor": "#1e1e1e",
  3316. "strokeStyle": "solid",
  3317. "strokeWidth": 2,
  3318. "text": "que pasa",
  3319. "textAlign": "left",
  3320. "type": "text",
  3321. "updated": 1,
  3322. "version": 9,
  3323. "verticalAlign": "top",
  3324. "width": 80,
  3325. "x": 15,
  3326. "y": 15,
  3327. }
  3328. `;
  3329. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind bindings when both are updated through the history and the container got bound to a different text in the meantime > [end of test] history 1`] = `
  3330. History {
  3331. "onHistoryChangedEmitter": Emitter {
  3332. "subscribers": [
  3333. [Function],
  3334. [Function],
  3335. ],
  3336. },
  3337. "redoStack": [
  3338. HistoryEntry {
  3339. "appStateChange": AppStateChange {
  3340. "delta": Delta {
  3341. "deleted": {},
  3342. "inserted": {},
  3343. },
  3344. },
  3345. "elementsChange": ElementsChange {
  3346. "added": Map {},
  3347. "removed": Map {},
  3348. "updated": Map {
  3349. "id141" => Delta {
  3350. "deleted": {
  3351. "boundElements": [
  3352. {
  3353. "id": "id143",
  3354. "type": "text",
  3355. },
  3356. ],
  3357. },
  3358. "inserted": {
  3359. "boundElements": [
  3360. {
  3361. "id": "id142",
  3362. "type": "text",
  3363. },
  3364. ],
  3365. },
  3366. },
  3367. "id142" => Delta {
  3368. "deleted": {
  3369. "containerId": null,
  3370. },
  3371. "inserted": {
  3372. "containerId": "id141",
  3373. },
  3374. },
  3375. "id143" => Delta {
  3376. "deleted": {
  3377. "containerId": "id141",
  3378. },
  3379. "inserted": {
  3380. "containerId": null,
  3381. },
  3382. },
  3383. },
  3384. },
  3385. },
  3386. ],
  3387. "undoStack": [],
  3388. }
  3389. `;
  3390. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind bindings when both are updated through the history and the container got bound to a different text in the meantime > [end of test] number of elements 1`] = `3`;
  3391. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind bindings when both are updated through the history and the container got bound to a different text in the meantime > [end of test] number of renders 1`] = `11`;
  3392. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind bindings when both are updated through the history and the text got bound to a different container in the meantime > [end of test] appState 1`] = `
  3393. {
  3394. "activeEmbeddable": null,
  3395. "activeTool": {
  3396. "customType": null,
  3397. "fromSelection": false,
  3398. "lastActiveTool": null,
  3399. "locked": false,
  3400. "type": "selection",
  3401. },
  3402. "collaborators": Map {},
  3403. "contextMenu": null,
  3404. "croppingElementId": null,
  3405. "currentChartType": "bar",
  3406. "currentHoveredFontFamily": null,
  3407. "currentItemArrowType": "round",
  3408. "currentItemBackgroundColor": "transparent",
  3409. "currentItemEndArrowhead": "arrow",
  3410. "currentItemFillStyle": "solid",
  3411. "currentItemFontFamily": 5,
  3412. "currentItemFontSize": 20,
  3413. "currentItemOpacity": 100,
  3414. "currentItemRoughness": 1,
  3415. "currentItemRoundness": "round",
  3416. "currentItemStartArrowhead": null,
  3417. "currentItemStrokeColor": "#1e1e1e",
  3418. "currentItemStrokeStyle": "solid",
  3419. "currentItemStrokeWidth": 2,
  3420. "currentItemTextAlign": "left",
  3421. "cursorButton": "up",
  3422. "defaultSidebarDockedPreference": false,
  3423. "editingFrame": null,
  3424. "editingGroupId": null,
  3425. "editingLinearElement": null,
  3426. "editingTextElement": null,
  3427. "elementsToHighlight": null,
  3428. "errorMessage": null,
  3429. "exportBackground": true,
  3430. "exportEmbedScene": false,
  3431. "exportScale": 1,
  3432. "exportWithDarkMode": false,
  3433. "fileHandle": null,
  3434. "followedBy": Set {},
  3435. "frameRendering": {
  3436. "clip": true,
  3437. "enabled": true,
  3438. "name": true,
  3439. "outline": true,
  3440. },
  3441. "frameToHighlight": null,
  3442. "gridModeEnabled": false,
  3443. "gridSize": 20,
  3444. "gridStep": 5,
  3445. "height": 0,
  3446. "hoveredElementIds": {},
  3447. "isBindingEnabled": true,
  3448. "isCropping": false,
  3449. "isLoading": false,
  3450. "isResizing": false,
  3451. "isRotating": false,
  3452. "lastPointerDownWith": "mouse",
  3453. "multiElement": null,
  3454. "newElement": null,
  3455. "objectsSnapModeEnabled": false,
  3456. "offsetLeft": 0,
  3457. "offsetTop": 0,
  3458. "openDialog": null,
  3459. "openMenu": null,
  3460. "openPopup": null,
  3461. "openSidebar": null,
  3462. "originSnapOffset": {
  3463. "x": 0,
  3464. "y": 0,
  3465. },
  3466. "pasteDialog": {
  3467. "data": null,
  3468. "shown": false,
  3469. },
  3470. "penDetected": false,
  3471. "penMode": false,
  3472. "pendingImageElementId": null,
  3473. "previousSelectedElementIds": {},
  3474. "resizingElement": null,
  3475. "scrollX": 0,
  3476. "scrollY": 0,
  3477. "searchMatches": [],
  3478. "selectedElementIds": {},
  3479. "selectedElementsAreBeingDragged": false,
  3480. "selectedGroupIds": {},
  3481. "selectionElement": null,
  3482. "shouldCacheIgnoreZoom": false,
  3483. "showHyperlinkPopup": false,
  3484. "showWelcomeScreen": true,
  3485. "snapLines": [],
  3486. "startBoundElement": null,
  3487. "stats": {
  3488. "open": false,
  3489. "panels": 3,
  3490. },
  3491. "suggestedBindings": [],
  3492. "theme": "light",
  3493. "toast": null,
  3494. "userToFollow": null,
  3495. "viewBackgroundColor": "#ffffff",
  3496. "viewModeEnabled": false,
  3497. "width": 0,
  3498. "zenModeEnabled": false,
  3499. "zoom": {
  3500. "value": 1,
  3501. },
  3502. }
  3503. `;
  3504. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind bindings when both are updated through the history and the text got bound to a different container in the meantime > [end of test] element 0 1`] = `
  3505. {
  3506. "angle": 0,
  3507. "backgroundColor": "transparent",
  3508. "boundElements": [],
  3509. "customData": undefined,
  3510. "fillStyle": "solid",
  3511. "frameId": null,
  3512. "groupIds": [],
  3513. "height": 100,
  3514. "id": "id144",
  3515. "index": "a0",
  3516. "isDeleted": false,
  3517. "link": null,
  3518. "locked": false,
  3519. "opacity": 100,
  3520. "roughness": 1,
  3521. "roundness": {
  3522. "type": 3,
  3523. },
  3524. "strokeColor": "#1e1e1e",
  3525. "strokeStyle": "solid",
  3526. "strokeWidth": 2,
  3527. "type": "rectangle",
  3528. "updated": 1,
  3529. "version": 8,
  3530. "width": 100,
  3531. "x": 10,
  3532. "y": 10,
  3533. }
  3534. `;
  3535. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind bindings when both are updated through the history and the text got bound to a different container in the meantime > [end of test] element 1 1`] = `
  3536. {
  3537. "angle": 0,
  3538. "backgroundColor": "transparent",
  3539. "boundElements": [
  3540. {
  3541. "id": "id145",
  3542. "type": "text",
  3543. },
  3544. ],
  3545. "customData": undefined,
  3546. "fillStyle": "solid",
  3547. "frameId": null,
  3548. "groupIds": [],
  3549. "height": 60,
  3550. "id": "id146",
  3551. "index": "a0V",
  3552. "isDeleted": false,
  3553. "link": null,
  3554. "locked": false,
  3555. "opacity": 100,
  3556. "roughness": 1,
  3557. "roundness": {
  3558. "type": 3,
  3559. },
  3560. "strokeColor": "#1e1e1e",
  3561. "strokeStyle": "solid",
  3562. "strokeWidth": 2,
  3563. "type": "rectangle",
  3564. "updated": 1,
  3565. "version": 8,
  3566. "width": 50,
  3567. "x": 100,
  3568. "y": 100,
  3569. }
  3570. `;
  3571. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind bindings when both are updated through the history and the text got bound to a different container in the meantime > [end of test] element 2 1`] = `
  3572. {
  3573. "angle": 0,
  3574. "autoResize": true,
  3575. "backgroundColor": "transparent",
  3576. "boundElements": null,
  3577. "containerId": "id146",
  3578. "customData": undefined,
  3579. "fillStyle": "solid",
  3580. "fontFamily": 5,
  3581. "fontSize": 20,
  3582. "frameId": null,
  3583. "groupIds": [],
  3584. "height": 50,
  3585. "id": "id145",
  3586. "index": "a1",
  3587. "isDeleted": false,
  3588. "lineHeight": "1.25000",
  3589. "link": null,
  3590. "locked": false,
  3591. "opacity": 100,
  3592. "originalText": "que pasa",
  3593. "roughness": 1,
  3594. "roundness": {
  3595. "type": 3,
  3596. },
  3597. "strokeColor": "#1e1e1e",
  3598. "strokeStyle": "solid",
  3599. "strokeWidth": 2,
  3600. "text": "que
  3601. pasa",
  3602. "textAlign": "left",
  3603. "type": "text",
  3604. "updated": 1,
  3605. "version": 13,
  3606. "verticalAlign": "top",
  3607. "width": 40,
  3608. "x": 105,
  3609. "y": 105,
  3610. }
  3611. `;
  3612. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind bindings when both are updated through the history and the text got bound to a different container in the meantime > [end of test] history 1`] = `
  3613. History {
  3614. "onHistoryChangedEmitter": Emitter {
  3615. "subscribers": [
  3616. [Function],
  3617. [Function],
  3618. ],
  3619. },
  3620. "redoStack": [
  3621. HistoryEntry {
  3622. "appStateChange": AppStateChange {
  3623. "delta": Delta {
  3624. "deleted": {},
  3625. "inserted": {},
  3626. },
  3627. },
  3628. "elementsChange": ElementsChange {
  3629. "added": Map {},
  3630. "removed": Map {},
  3631. "updated": Map {
  3632. "id144" => Delta {
  3633. "deleted": {
  3634. "boundElements": [],
  3635. },
  3636. "inserted": {
  3637. "boundElements": [
  3638. {
  3639. "id": "id145",
  3640. "type": "text",
  3641. },
  3642. ],
  3643. },
  3644. },
  3645. "id145" => Delta {
  3646. "deleted": {
  3647. "containerId": "id146",
  3648. },
  3649. "inserted": {
  3650. "containerId": "id144",
  3651. },
  3652. },
  3653. "id146" => Delta {
  3654. "deleted": {
  3655. "boundElements": [
  3656. {
  3657. "id": "id145",
  3658. "type": "text",
  3659. },
  3660. ],
  3661. },
  3662. "inserted": {
  3663. "boundElements": [],
  3664. },
  3665. },
  3666. },
  3667. },
  3668. },
  3669. ],
  3670. "undoStack": [],
  3671. }
  3672. `;
  3673. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind bindings when both are updated through the history and the text got bound to a different container in the meantime > [end of test] number of elements 1`] = `3`;
  3674. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind bindings when both are updated through the history and the text got bound to a different container in the meantime > [end of test] number of renders 1`] = `11`;
  3675. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind bindings when both are updated through the history and there no conflicting updates in the meantime > [end of test] appState 1`] = `
  3676. {
  3677. "activeEmbeddable": null,
  3678. "activeTool": {
  3679. "customType": null,
  3680. "fromSelection": false,
  3681. "lastActiveTool": null,
  3682. "locked": false,
  3683. "type": "selection",
  3684. },
  3685. "collaborators": Map {},
  3686. "contextMenu": null,
  3687. "croppingElementId": null,
  3688. "currentChartType": "bar",
  3689. "currentHoveredFontFamily": null,
  3690. "currentItemArrowType": "round",
  3691. "currentItemBackgroundColor": "transparent",
  3692. "currentItemEndArrowhead": "arrow",
  3693. "currentItemFillStyle": "solid",
  3694. "currentItemFontFamily": 5,
  3695. "currentItemFontSize": 20,
  3696. "currentItemOpacity": 100,
  3697. "currentItemRoughness": 1,
  3698. "currentItemRoundness": "round",
  3699. "currentItemStartArrowhead": null,
  3700. "currentItemStrokeColor": "#1e1e1e",
  3701. "currentItemStrokeStyle": "solid",
  3702. "currentItemStrokeWidth": 2,
  3703. "currentItemTextAlign": "left",
  3704. "cursorButton": "up",
  3705. "defaultSidebarDockedPreference": false,
  3706. "editingFrame": null,
  3707. "editingGroupId": null,
  3708. "editingLinearElement": null,
  3709. "editingTextElement": null,
  3710. "elementsToHighlight": null,
  3711. "errorMessage": null,
  3712. "exportBackground": true,
  3713. "exportEmbedScene": false,
  3714. "exportScale": 1,
  3715. "exportWithDarkMode": false,
  3716. "fileHandle": null,
  3717. "followedBy": Set {},
  3718. "frameRendering": {
  3719. "clip": true,
  3720. "enabled": true,
  3721. "name": true,
  3722. "outline": true,
  3723. },
  3724. "frameToHighlight": null,
  3725. "gridModeEnabled": false,
  3726. "gridSize": 20,
  3727. "gridStep": 5,
  3728. "height": 0,
  3729. "hoveredElementIds": {},
  3730. "isBindingEnabled": true,
  3731. "isCropping": false,
  3732. "isLoading": false,
  3733. "isResizing": false,
  3734. "isRotating": false,
  3735. "lastPointerDownWith": "mouse",
  3736. "multiElement": null,
  3737. "newElement": null,
  3738. "objectsSnapModeEnabled": false,
  3739. "offsetLeft": 0,
  3740. "offsetTop": 0,
  3741. "openDialog": null,
  3742. "openMenu": null,
  3743. "openPopup": null,
  3744. "openSidebar": null,
  3745. "originSnapOffset": {
  3746. "x": 0,
  3747. "y": 0,
  3748. },
  3749. "pasteDialog": {
  3750. "data": null,
  3751. "shown": false,
  3752. },
  3753. "penDetected": false,
  3754. "penMode": false,
  3755. "pendingImageElementId": null,
  3756. "previousSelectedElementIds": {},
  3757. "resizingElement": null,
  3758. "scrollX": 0,
  3759. "scrollY": 0,
  3760. "searchMatches": [],
  3761. "selectedElementIds": {},
  3762. "selectedElementsAreBeingDragged": false,
  3763. "selectedGroupIds": {},
  3764. "selectionElement": null,
  3765. "shouldCacheIgnoreZoom": false,
  3766. "showHyperlinkPopup": false,
  3767. "showWelcomeScreen": true,
  3768. "snapLines": [],
  3769. "startBoundElement": null,
  3770. "stats": {
  3771. "open": false,
  3772. "panels": 3,
  3773. },
  3774. "suggestedBindings": [],
  3775. "theme": "light",
  3776. "toast": null,
  3777. "userToFollow": null,
  3778. "viewBackgroundColor": "#ffffff",
  3779. "viewModeEnabled": false,
  3780. "width": 0,
  3781. "zenModeEnabled": false,
  3782. "zoom": {
  3783. "value": 1,
  3784. },
  3785. }
  3786. `;
  3787. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind bindings when both are updated through the history and there no conflicting updates in the meantime > [end of test] element 0 1`] = `
  3788. {
  3789. "angle": 0,
  3790. "backgroundColor": "transparent",
  3791. "boundElements": [],
  3792. "customData": undefined,
  3793. "fillStyle": "solid",
  3794. "frameId": null,
  3795. "groupIds": [],
  3796. "height": 100,
  3797. "id": "id139",
  3798. "index": "a0",
  3799. "isDeleted": false,
  3800. "link": null,
  3801. "locked": false,
  3802. "opacity": 100,
  3803. "roughness": 1,
  3804. "roundness": {
  3805. "type": 3,
  3806. },
  3807. "strokeColor": "#1e1e1e",
  3808. "strokeStyle": "solid",
  3809. "strokeWidth": 2,
  3810. "type": "rectangle",
  3811. "updated": 1,
  3812. "version": 9,
  3813. "width": 100,
  3814. "x": 35,
  3815. "y": 10,
  3816. }
  3817. `;
  3818. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind bindings when both are updated through the history and there no conflicting updates in the meantime > [end of test] element 1 1`] = `
  3819. {
  3820. "angle": 0,
  3821. "autoResize": true,
  3822. "backgroundColor": "transparent",
  3823. "boundElements": null,
  3824. "containerId": null,
  3825. "customData": undefined,
  3826. "fillStyle": "solid",
  3827. "fontFamily": 5,
  3828. "fontSize": 20,
  3829. "frameId": null,
  3830. "groupIds": [],
  3831. "height": 25,
  3832. "id": "id140",
  3833. "index": "a1",
  3834. "isDeleted": false,
  3835. "lineHeight": "1.25000",
  3836. "link": null,
  3837. "locked": false,
  3838. "opacity": 100,
  3839. "originalText": "que pasa",
  3840. "roughness": 1,
  3841. "roundness": {
  3842. "type": 3,
  3843. },
  3844. "strokeColor": "#1e1e1e",
  3845. "strokeStyle": "solid",
  3846. "strokeWidth": 2,
  3847. "text": "que pasa",
  3848. "textAlign": "left",
  3849. "type": "text",
  3850. "updated": 1,
  3851. "version": 10,
  3852. "verticalAlign": "top",
  3853. "width": 80,
  3854. "x": 40,
  3855. "y": 15,
  3856. }
  3857. `;
  3858. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind bindings when both are updated through the history and there no conflicting updates in the meantime > [end of test] history 1`] = `
  3859. History {
  3860. "onHistoryChangedEmitter": Emitter {
  3861. "subscribers": [
  3862. [Function],
  3863. [Function],
  3864. ],
  3865. },
  3866. "redoStack": [
  3867. HistoryEntry {
  3868. "appStateChange": AppStateChange {
  3869. "delta": Delta {
  3870. "deleted": {},
  3871. "inserted": {},
  3872. },
  3873. },
  3874. "elementsChange": ElementsChange {
  3875. "added": Map {},
  3876. "removed": Map {},
  3877. "updated": Map {
  3878. "id139" => Delta {
  3879. "deleted": {
  3880. "boundElements": [],
  3881. },
  3882. "inserted": {
  3883. "boundElements": [
  3884. {
  3885. "id": "id140",
  3886. "type": "text",
  3887. },
  3888. ],
  3889. },
  3890. },
  3891. "id140" => Delta {
  3892. "deleted": {
  3893. "containerId": null,
  3894. },
  3895. "inserted": {
  3896. "containerId": "id139",
  3897. },
  3898. },
  3899. },
  3900. },
  3901. },
  3902. ],
  3903. "undoStack": [],
  3904. }
  3905. `;
  3906. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind bindings when both are updated through the history and there no conflicting updates in the meantime > [end of test] number of elements 1`] = `2`;
  3907. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind bindings when both are updated through the history and there no conflicting updates in the meantime > [end of test] number of renders 1`] = `11`;
  3908. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind remotely added bound text when it's container is added through the history > [end of test] appState 1`] = `
  3909. {
  3910. "activeEmbeddable": null,
  3911. "activeTool": {
  3912. "customType": null,
  3913. "fromSelection": false,
  3914. "lastActiveTool": null,
  3915. "locked": false,
  3916. "type": "selection",
  3917. },
  3918. "collaborators": Map {},
  3919. "contextMenu": null,
  3920. "croppingElementId": null,
  3921. "currentChartType": "bar",
  3922. "currentHoveredFontFamily": null,
  3923. "currentItemArrowType": "round",
  3924. "currentItemBackgroundColor": "transparent",
  3925. "currentItemEndArrowhead": "arrow",
  3926. "currentItemFillStyle": "solid",
  3927. "currentItemFontFamily": 5,
  3928. "currentItemFontSize": 20,
  3929. "currentItemOpacity": 100,
  3930. "currentItemRoughness": 1,
  3931. "currentItemRoundness": "round",
  3932. "currentItemStartArrowhead": null,
  3933. "currentItemStrokeColor": "#1e1e1e",
  3934. "currentItemStrokeStyle": "solid",
  3935. "currentItemStrokeWidth": 2,
  3936. "currentItemTextAlign": "left",
  3937. "cursorButton": "up",
  3938. "defaultSidebarDockedPreference": false,
  3939. "editingFrame": null,
  3940. "editingGroupId": null,
  3941. "editingLinearElement": null,
  3942. "editingTextElement": null,
  3943. "elementsToHighlight": null,
  3944. "errorMessage": null,
  3945. "exportBackground": true,
  3946. "exportEmbedScene": false,
  3947. "exportScale": 1,
  3948. "exportWithDarkMode": false,
  3949. "fileHandle": null,
  3950. "followedBy": Set {},
  3951. "frameRendering": {
  3952. "clip": true,
  3953. "enabled": true,
  3954. "name": true,
  3955. "outline": true,
  3956. },
  3957. "frameToHighlight": null,
  3958. "gridModeEnabled": false,
  3959. "gridSize": 20,
  3960. "gridStep": 5,
  3961. "height": 0,
  3962. "hoveredElementIds": {},
  3963. "isBindingEnabled": true,
  3964. "isCropping": false,
  3965. "isLoading": false,
  3966. "isResizing": false,
  3967. "isRotating": false,
  3968. "lastPointerDownWith": "mouse",
  3969. "multiElement": null,
  3970. "newElement": null,
  3971. "objectsSnapModeEnabled": false,
  3972. "offsetLeft": 0,
  3973. "offsetTop": 0,
  3974. "openDialog": null,
  3975. "openMenu": null,
  3976. "openPopup": null,
  3977. "openSidebar": null,
  3978. "originSnapOffset": {
  3979. "x": 0,
  3980. "y": 0,
  3981. },
  3982. "pasteDialog": {
  3983. "data": null,
  3984. "shown": false,
  3985. },
  3986. "penDetected": false,
  3987. "penMode": false,
  3988. "pendingImageElementId": null,
  3989. "previousSelectedElementIds": {},
  3990. "resizingElement": null,
  3991. "scrollX": 0,
  3992. "scrollY": 0,
  3993. "searchMatches": [],
  3994. "selectedElementIds": {},
  3995. "selectedElementsAreBeingDragged": false,
  3996. "selectedGroupIds": {},
  3997. "selectionElement": null,
  3998. "shouldCacheIgnoreZoom": false,
  3999. "showHyperlinkPopup": false,
  4000. "showWelcomeScreen": true,
  4001. "snapLines": [],
  4002. "startBoundElement": null,
  4003. "stats": {
  4004. "open": false,
  4005. "panels": 3,
  4006. },
  4007. "suggestedBindings": [],
  4008. "theme": "light",
  4009. "toast": null,
  4010. "userToFollow": null,
  4011. "viewBackgroundColor": "#ffffff",
  4012. "viewModeEnabled": false,
  4013. "width": 0,
  4014. "zenModeEnabled": false,
  4015. "zoom": {
  4016. "value": 1,
  4017. },
  4018. }
  4019. `;
  4020. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind remotely added bound text when it's container is added through the history > [end of test] element 0 1`] = `
  4021. {
  4022. "angle": 0,
  4023. "backgroundColor": "transparent",
  4024. "boundElements": [
  4025. {
  4026. "id": "id148",
  4027. "type": "text",
  4028. },
  4029. ],
  4030. "customData": undefined,
  4031. "fillStyle": "solid",
  4032. "frameId": null,
  4033. "groupIds": [],
  4034. "height": 100,
  4035. "id": "id147",
  4036. "index": "a0",
  4037. "isDeleted": false,
  4038. "link": null,
  4039. "locked": false,
  4040. "opacity": 100,
  4041. "roughness": 1,
  4042. "roundness": {
  4043. "type": 3,
  4044. },
  4045. "strokeColor": "#1e1e1e",
  4046. "strokeStyle": "solid",
  4047. "strokeWidth": 2,
  4048. "type": "rectangle",
  4049. "updated": 1,
  4050. "version": 7,
  4051. "width": 100,
  4052. "x": 10,
  4053. "y": 10,
  4054. }
  4055. `;
  4056. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind remotely added bound text when it's container is added through the history > [end of test] element 1 1`] = `
  4057. {
  4058. "angle": 0,
  4059. "autoResize": true,
  4060. "backgroundColor": "transparent",
  4061. "boundElements": null,
  4062. "containerId": "id147",
  4063. "customData": undefined,
  4064. "fillStyle": "solid",
  4065. "fontFamily": 5,
  4066. "fontSize": 20,
  4067. "frameId": null,
  4068. "groupIds": [],
  4069. "height": 25,
  4070. "id": "id148",
  4071. "index": "a1",
  4072. "isDeleted": false,
  4073. "lineHeight": "1.25000",
  4074. "link": null,
  4075. "locked": false,
  4076. "opacity": 100,
  4077. "originalText": "que pasa",
  4078. "roughness": 1,
  4079. "roundness": {
  4080. "type": 3,
  4081. },
  4082. "strokeColor": "#1e1e1e",
  4083. "strokeStyle": "solid",
  4084. "strokeWidth": 2,
  4085. "text": "que pasa",
  4086. "textAlign": "left",
  4087. "type": "text",
  4088. "updated": 1,
  4089. "version": 12,
  4090. "verticalAlign": "top",
  4091. "width": 80,
  4092. "x": 15,
  4093. "y": 15,
  4094. }
  4095. `;
  4096. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind remotely added bound text when it's container is added through the history > [end of test] history 1`] = `
  4097. History {
  4098. "onHistoryChangedEmitter": Emitter {
  4099. "subscribers": [
  4100. [Function],
  4101. [Function],
  4102. ],
  4103. },
  4104. "redoStack": [],
  4105. "undoStack": [
  4106. HistoryEntry {
  4107. "appStateChange": AppStateChange {
  4108. "delta": Delta {
  4109. "deleted": {},
  4110. "inserted": {},
  4111. },
  4112. },
  4113. "elementsChange": ElementsChange {
  4114. "added": Map {},
  4115. "removed": Map {
  4116. "id147" => Delta {
  4117. "deleted": {
  4118. "angle": 0,
  4119. "backgroundColor": "transparent",
  4120. "boundElements": null,
  4121. "customData": undefined,
  4122. "fillStyle": "solid",
  4123. "frameId": null,
  4124. "groupIds": [],
  4125. "height": 100,
  4126. "index": "a0",
  4127. "isDeleted": false,
  4128. "link": null,
  4129. "locked": false,
  4130. "opacity": 100,
  4131. "roughness": 1,
  4132. "roundness": {
  4133. "type": 3,
  4134. },
  4135. "strokeColor": "#1e1e1e",
  4136. "strokeStyle": "solid",
  4137. "strokeWidth": 2,
  4138. "type": "rectangle",
  4139. "width": 100,
  4140. "x": 10,
  4141. "y": 10,
  4142. },
  4143. "inserted": {
  4144. "isDeleted": true,
  4145. },
  4146. },
  4147. },
  4148. "updated": Map {
  4149. "id148" => Delta {
  4150. "deleted": {
  4151. "containerId": "id147",
  4152. },
  4153. "inserted": {
  4154. "containerId": null,
  4155. },
  4156. },
  4157. },
  4158. },
  4159. },
  4160. ],
  4161. }
  4162. `;
  4163. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind remotely added bound text when it's container is added through the history > [end of test] number of elements 1`] = `2`;
  4164. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind remotely added bound text when it's container is added through the history > [end of test] number of renders 1`] = `9`;
  4165. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind remotely added container when it's bound text is added through the history > [end of test] appState 1`] = `
  4166. {
  4167. "activeEmbeddable": null,
  4168. "activeTool": {
  4169. "customType": null,
  4170. "fromSelection": false,
  4171. "lastActiveTool": null,
  4172. "locked": false,
  4173. "type": "selection",
  4174. },
  4175. "collaborators": Map {},
  4176. "contextMenu": null,
  4177. "croppingElementId": null,
  4178. "currentChartType": "bar",
  4179. "currentHoveredFontFamily": null,
  4180. "currentItemArrowType": "round",
  4181. "currentItemBackgroundColor": "transparent",
  4182. "currentItemEndArrowhead": "arrow",
  4183. "currentItemFillStyle": "solid",
  4184. "currentItemFontFamily": 5,
  4185. "currentItemFontSize": 20,
  4186. "currentItemOpacity": 100,
  4187. "currentItemRoughness": 1,
  4188. "currentItemRoundness": "round",
  4189. "currentItemStartArrowhead": null,
  4190. "currentItemStrokeColor": "#1e1e1e",
  4191. "currentItemStrokeStyle": "solid",
  4192. "currentItemStrokeWidth": 2,
  4193. "currentItemTextAlign": "left",
  4194. "cursorButton": "up",
  4195. "defaultSidebarDockedPreference": false,
  4196. "editingFrame": null,
  4197. "editingGroupId": null,
  4198. "editingLinearElement": null,
  4199. "editingTextElement": null,
  4200. "elementsToHighlight": null,
  4201. "errorMessage": null,
  4202. "exportBackground": true,
  4203. "exportEmbedScene": false,
  4204. "exportScale": 1,
  4205. "exportWithDarkMode": false,
  4206. "fileHandle": null,
  4207. "followedBy": Set {},
  4208. "frameRendering": {
  4209. "clip": true,
  4210. "enabled": true,
  4211. "name": true,
  4212. "outline": true,
  4213. },
  4214. "frameToHighlight": null,
  4215. "gridModeEnabled": false,
  4216. "gridSize": 20,
  4217. "gridStep": 5,
  4218. "height": 0,
  4219. "hoveredElementIds": {},
  4220. "isBindingEnabled": true,
  4221. "isCropping": false,
  4222. "isLoading": false,
  4223. "isResizing": false,
  4224. "isRotating": false,
  4225. "lastPointerDownWith": "mouse",
  4226. "multiElement": null,
  4227. "newElement": null,
  4228. "objectsSnapModeEnabled": false,
  4229. "offsetLeft": 0,
  4230. "offsetTop": 0,
  4231. "openDialog": null,
  4232. "openMenu": null,
  4233. "openPopup": null,
  4234. "openSidebar": null,
  4235. "originSnapOffset": {
  4236. "x": 0,
  4237. "y": 0,
  4238. },
  4239. "pasteDialog": {
  4240. "data": null,
  4241. "shown": false,
  4242. },
  4243. "penDetected": false,
  4244. "penMode": false,
  4245. "pendingImageElementId": null,
  4246. "previousSelectedElementIds": {},
  4247. "resizingElement": null,
  4248. "scrollX": 0,
  4249. "scrollY": 0,
  4250. "searchMatches": [],
  4251. "selectedElementIds": {},
  4252. "selectedElementsAreBeingDragged": false,
  4253. "selectedGroupIds": {},
  4254. "selectionElement": null,
  4255. "shouldCacheIgnoreZoom": false,
  4256. "showHyperlinkPopup": false,
  4257. "showWelcomeScreen": true,
  4258. "snapLines": [],
  4259. "startBoundElement": null,
  4260. "stats": {
  4261. "open": false,
  4262. "panels": 3,
  4263. },
  4264. "suggestedBindings": [],
  4265. "theme": "light",
  4266. "toast": null,
  4267. "userToFollow": null,
  4268. "viewBackgroundColor": "#ffffff",
  4269. "viewModeEnabled": false,
  4270. "width": 0,
  4271. "zenModeEnabled": false,
  4272. "zoom": {
  4273. "value": 1,
  4274. },
  4275. }
  4276. `;
  4277. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind remotely added container when it's bound text is added through the history > [end of test] element 0 1`] = `
  4278. {
  4279. "angle": 0,
  4280. "backgroundColor": "transparent",
  4281. "boundElements": [
  4282. {
  4283. "id": "id150",
  4284. "type": "text",
  4285. },
  4286. ],
  4287. "customData": undefined,
  4288. "fillStyle": "solid",
  4289. "frameId": null,
  4290. "groupIds": [],
  4291. "height": 100,
  4292. "id": "id149",
  4293. "index": "Zz",
  4294. "isDeleted": false,
  4295. "link": null,
  4296. "locked": false,
  4297. "opacity": 100,
  4298. "roughness": 1,
  4299. "roundness": {
  4300. "type": 3,
  4301. },
  4302. "strokeColor": "#1e1e1e",
  4303. "strokeStyle": "solid",
  4304. "strokeWidth": 2,
  4305. "type": "rectangle",
  4306. "updated": 1,
  4307. "version": 11,
  4308. "width": 100,
  4309. "x": 10,
  4310. "y": 10,
  4311. }
  4312. `;
  4313. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind remotely added container when it's bound text is added through the history > [end of test] element 1 1`] = `
  4314. {
  4315. "angle": 0,
  4316. "autoResize": true,
  4317. "backgroundColor": "transparent",
  4318. "boundElements": null,
  4319. "containerId": "id149",
  4320. "customData": undefined,
  4321. "fillStyle": "solid",
  4322. "fontFamily": 5,
  4323. "fontSize": 20,
  4324. "frameId": null,
  4325. "groupIds": [],
  4326. "height": 25,
  4327. "id": "id150",
  4328. "index": "a0",
  4329. "isDeleted": false,
  4330. "lineHeight": "1.25000",
  4331. "link": null,
  4332. "locked": false,
  4333. "opacity": 100,
  4334. "originalText": "que pasa",
  4335. "roughness": 1,
  4336. "roundness": {
  4337. "type": 3,
  4338. },
  4339. "strokeColor": "#1e1e1e",
  4340. "strokeStyle": "solid",
  4341. "strokeWidth": 2,
  4342. "text": "que pasa",
  4343. "textAlign": "left",
  4344. "type": "text",
  4345. "updated": 1,
  4346. "version": 8,
  4347. "verticalAlign": "top",
  4348. "width": 80,
  4349. "x": 15,
  4350. "y": 15,
  4351. }
  4352. `;
  4353. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind remotely added container when it's bound text is added through the history > [end of test] history 1`] = `
  4354. History {
  4355. "onHistoryChangedEmitter": Emitter {
  4356. "subscribers": [
  4357. [Function],
  4358. [Function],
  4359. ],
  4360. },
  4361. "redoStack": [],
  4362. "undoStack": [
  4363. HistoryEntry {
  4364. "appStateChange": AppStateChange {
  4365. "delta": Delta {
  4366. "deleted": {},
  4367. "inserted": {},
  4368. },
  4369. },
  4370. "elementsChange": ElementsChange {
  4371. "added": Map {},
  4372. "removed": Map {
  4373. "id150" => Delta {
  4374. "deleted": {
  4375. "angle": 0,
  4376. "autoResize": true,
  4377. "backgroundColor": "transparent",
  4378. "boundElements": null,
  4379. "containerId": "id149",
  4380. "customData": undefined,
  4381. "fillStyle": "solid",
  4382. "fontFamily": 5,
  4383. "fontSize": 20,
  4384. "frameId": null,
  4385. "groupIds": [],
  4386. "height": 25,
  4387. "index": "a0",
  4388. "isDeleted": false,
  4389. "lineHeight": "1.25000",
  4390. "link": null,
  4391. "locked": false,
  4392. "opacity": 100,
  4393. "originalText": "que pasa",
  4394. "roughness": 1,
  4395. "roundness": {
  4396. "type": 3,
  4397. },
  4398. "strokeColor": "#1e1e1e",
  4399. "strokeStyle": "solid",
  4400. "strokeWidth": 2,
  4401. "text": "que pasa",
  4402. "textAlign": "left",
  4403. "type": "text",
  4404. "verticalAlign": "top",
  4405. "width": 80,
  4406. "x": 15,
  4407. "y": 15,
  4408. },
  4409. "inserted": {
  4410. "isDeleted": true,
  4411. },
  4412. },
  4413. },
  4414. "updated": Map {
  4415. "id149" => Delta {
  4416. "deleted": {
  4417. "boundElements": [
  4418. {
  4419. "id": "id150",
  4420. "type": "text",
  4421. },
  4422. ],
  4423. },
  4424. "inserted": {
  4425. "boundElements": [],
  4426. },
  4427. },
  4428. },
  4429. },
  4430. },
  4431. ],
  4432. }
  4433. `;
  4434. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind remotely added container when it's bound text is added through the history > [end of test] number of elements 1`] = `2`;
  4435. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should rebind remotely added container when it's bound text is added through the history > [end of test] number of renders 1`] = `9`;
  4436. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should redraw bound text to match container dimensions when the bound text is updated through the history > [end of test] appState 1`] = `
  4437. {
  4438. "activeEmbeddable": null,
  4439. "activeTool": {
  4440. "customType": null,
  4441. "fromSelection": false,
  4442. "lastActiveTool": null,
  4443. "locked": false,
  4444. "type": "selection",
  4445. },
  4446. "collaborators": Map {},
  4447. "contextMenu": null,
  4448. "croppingElementId": null,
  4449. "currentChartType": "bar",
  4450. "currentHoveredFontFamily": null,
  4451. "currentItemArrowType": "round",
  4452. "currentItemBackgroundColor": "transparent",
  4453. "currentItemEndArrowhead": "arrow",
  4454. "currentItemFillStyle": "solid",
  4455. "currentItemFontFamily": 5,
  4456. "currentItemFontSize": 20,
  4457. "currentItemOpacity": 100,
  4458. "currentItemRoughness": 1,
  4459. "currentItemRoundness": "round",
  4460. "currentItemStartArrowhead": null,
  4461. "currentItemStrokeColor": "#1e1e1e",
  4462. "currentItemStrokeStyle": "solid",
  4463. "currentItemStrokeWidth": 2,
  4464. "currentItemTextAlign": "left",
  4465. "cursorButton": "up",
  4466. "defaultSidebarDockedPreference": false,
  4467. "editingFrame": null,
  4468. "editingGroupId": null,
  4469. "editingLinearElement": null,
  4470. "editingTextElement": null,
  4471. "elementsToHighlight": null,
  4472. "errorMessage": null,
  4473. "exportBackground": true,
  4474. "exportEmbedScene": false,
  4475. "exportScale": 1,
  4476. "exportWithDarkMode": false,
  4477. "fileHandle": null,
  4478. "followedBy": Set {},
  4479. "frameRendering": {
  4480. "clip": true,
  4481. "enabled": true,
  4482. "name": true,
  4483. "outline": true,
  4484. },
  4485. "frameToHighlight": null,
  4486. "gridModeEnabled": false,
  4487. "gridSize": 20,
  4488. "gridStep": 5,
  4489. "height": 0,
  4490. "hoveredElementIds": {},
  4491. "isBindingEnabled": true,
  4492. "isCropping": false,
  4493. "isLoading": false,
  4494. "isResizing": false,
  4495. "isRotating": false,
  4496. "lastPointerDownWith": "mouse",
  4497. "multiElement": null,
  4498. "newElement": null,
  4499. "objectsSnapModeEnabled": false,
  4500. "offsetLeft": 0,
  4501. "offsetTop": 0,
  4502. "openDialog": null,
  4503. "openMenu": null,
  4504. "openPopup": null,
  4505. "openSidebar": null,
  4506. "originSnapOffset": {
  4507. "x": 0,
  4508. "y": 0,
  4509. },
  4510. "pasteDialog": {
  4511. "data": null,
  4512. "shown": false,
  4513. },
  4514. "penDetected": false,
  4515. "penMode": false,
  4516. "pendingImageElementId": null,
  4517. "previousSelectedElementIds": {},
  4518. "resizingElement": null,
  4519. "scrollX": 0,
  4520. "scrollY": 0,
  4521. "searchMatches": [],
  4522. "selectedElementIds": {},
  4523. "selectedElementsAreBeingDragged": false,
  4524. "selectedGroupIds": {},
  4525. "selectionElement": null,
  4526. "shouldCacheIgnoreZoom": false,
  4527. "showHyperlinkPopup": false,
  4528. "showWelcomeScreen": true,
  4529. "snapLines": [],
  4530. "startBoundElement": null,
  4531. "stats": {
  4532. "open": false,
  4533. "panels": 3,
  4534. },
  4535. "suggestedBindings": [],
  4536. "theme": "light",
  4537. "toast": null,
  4538. "userToFollow": null,
  4539. "viewBackgroundColor": "#ffffff",
  4540. "viewModeEnabled": false,
  4541. "width": 0,
  4542. "zenModeEnabled": false,
  4543. "zoom": {
  4544. "value": 1,
  4545. },
  4546. }
  4547. `;
  4548. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should redraw bound text to match container dimensions when the bound text is updated through the history > [end of test] element 0 1`] = `
  4549. {
  4550. "angle": 0,
  4551. "backgroundColor": "transparent",
  4552. "boundElements": [
  4553. {
  4554. "id": "id164",
  4555. "type": "text",
  4556. },
  4557. ],
  4558. "customData": undefined,
  4559. "fillStyle": "solid",
  4560. "frameId": null,
  4561. "groupIds": [],
  4562. "height": 100,
  4563. "id": "id163",
  4564. "index": "Zz",
  4565. "isDeleted": false,
  4566. "link": null,
  4567. "locked": false,
  4568. "opacity": 100,
  4569. "roughness": 1,
  4570. "roundness": {
  4571. "type": 3,
  4572. },
  4573. "strokeColor": "#1e1e1e",
  4574. "strokeStyle": "solid",
  4575. "strokeWidth": 2,
  4576. "type": "rectangle",
  4577. "updated": 1,
  4578. "version": 3,
  4579. "width": 100,
  4580. "x": 10,
  4581. "y": 10,
  4582. }
  4583. `;
  4584. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should redraw bound text to match container dimensions when the bound text is updated through the history > [end of test] element 1 1`] = `
  4585. {
  4586. "angle": 0,
  4587. "autoResize": true,
  4588. "backgroundColor": "transparent",
  4589. "boundElements": null,
  4590. "containerId": "id163",
  4591. "customData": undefined,
  4592. "fillStyle": "solid",
  4593. "fontFamily": 5,
  4594. "fontSize": 20,
  4595. "frameId": null,
  4596. "groupIds": [],
  4597. "height": 25,
  4598. "id": "id164",
  4599. "index": "a0",
  4600. "isDeleted": false,
  4601. "lineHeight": "1.25000",
  4602. "link": null,
  4603. "locked": false,
  4604. "opacity": 100,
  4605. "originalText": "que pasa",
  4606. "roughness": 1,
  4607. "roundness": {
  4608. "type": 3,
  4609. },
  4610. "strokeColor": "#1e1e1e",
  4611. "strokeStyle": "solid",
  4612. "strokeWidth": 2,
  4613. "text": "que pasa",
  4614. "textAlign": "left",
  4615. "type": "text",
  4616. "updated": 1,
  4617. "version": 7,
  4618. "verticalAlign": "top",
  4619. "width": 80,
  4620. "x": 15,
  4621. "y": 15,
  4622. }
  4623. `;
  4624. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should redraw bound text to match container dimensions when the bound text is updated through the history > [end of test] history 1`] = `
  4625. History {
  4626. "onHistoryChangedEmitter": Emitter {
  4627. "subscribers": [
  4628. [Function],
  4629. [Function],
  4630. ],
  4631. },
  4632. "redoStack": [
  4633. HistoryEntry {
  4634. "appStateChange": AppStateChange {
  4635. "delta": Delta {
  4636. "deleted": {},
  4637. "inserted": {},
  4638. },
  4639. },
  4640. "elementsChange": ElementsChange {
  4641. "added": Map {},
  4642. "removed": Map {},
  4643. "updated": Map {
  4644. "id164" => Delta {
  4645. "deleted": {
  4646. "angle": 0,
  4647. "x": 15,
  4648. "y": 15,
  4649. },
  4650. "inserted": {
  4651. "angle": 0,
  4652. "x": 15,
  4653. "y": 15,
  4654. },
  4655. },
  4656. },
  4657. },
  4658. },
  4659. ],
  4660. "undoStack": [],
  4661. }
  4662. `;
  4663. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should redraw bound text to match container dimensions when the bound text is updated through the history > [end of test] number of elements 1`] = `2`;
  4664. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should redraw bound text to match container dimensions when the bound text is updated through the history > [end of test] number of renders 1`] = `9`;
  4665. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should redraw remotely added bound text when it's container is updated through the history > [end of test] appState 1`] = `
  4666. {
  4667. "activeEmbeddable": null,
  4668. "activeTool": {
  4669. "customType": null,
  4670. "fromSelection": false,
  4671. "lastActiveTool": null,
  4672. "locked": false,
  4673. "type": "selection",
  4674. },
  4675. "collaborators": Map {},
  4676. "contextMenu": null,
  4677. "croppingElementId": null,
  4678. "currentChartType": "bar",
  4679. "currentHoveredFontFamily": null,
  4680. "currentItemArrowType": "round",
  4681. "currentItemBackgroundColor": "transparent",
  4682. "currentItemEndArrowhead": "arrow",
  4683. "currentItemFillStyle": "solid",
  4684. "currentItemFontFamily": 5,
  4685. "currentItemFontSize": 20,
  4686. "currentItemOpacity": 100,
  4687. "currentItemRoughness": 1,
  4688. "currentItemRoundness": "round",
  4689. "currentItemStartArrowhead": null,
  4690. "currentItemStrokeColor": "#1e1e1e",
  4691. "currentItemStrokeStyle": "solid",
  4692. "currentItemStrokeWidth": 2,
  4693. "currentItemTextAlign": "left",
  4694. "cursorButton": "up",
  4695. "defaultSidebarDockedPreference": false,
  4696. "editingFrame": null,
  4697. "editingGroupId": null,
  4698. "editingLinearElement": null,
  4699. "editingTextElement": null,
  4700. "elementsToHighlight": null,
  4701. "errorMessage": null,
  4702. "exportBackground": true,
  4703. "exportEmbedScene": false,
  4704. "exportScale": 1,
  4705. "exportWithDarkMode": false,
  4706. "fileHandle": null,
  4707. "followedBy": Set {},
  4708. "frameRendering": {
  4709. "clip": true,
  4710. "enabled": true,
  4711. "name": true,
  4712. "outline": true,
  4713. },
  4714. "frameToHighlight": null,
  4715. "gridModeEnabled": false,
  4716. "gridSize": 20,
  4717. "gridStep": 5,
  4718. "height": 0,
  4719. "hoveredElementIds": {},
  4720. "isBindingEnabled": true,
  4721. "isCropping": false,
  4722. "isLoading": false,
  4723. "isResizing": false,
  4724. "isRotating": false,
  4725. "lastPointerDownWith": "mouse",
  4726. "multiElement": null,
  4727. "newElement": null,
  4728. "objectsSnapModeEnabled": false,
  4729. "offsetLeft": 0,
  4730. "offsetTop": 0,
  4731. "openDialog": null,
  4732. "openMenu": null,
  4733. "openPopup": null,
  4734. "openSidebar": null,
  4735. "originSnapOffset": {
  4736. "x": 0,
  4737. "y": 0,
  4738. },
  4739. "pasteDialog": {
  4740. "data": null,
  4741. "shown": false,
  4742. },
  4743. "penDetected": false,
  4744. "penMode": false,
  4745. "pendingImageElementId": null,
  4746. "previousSelectedElementIds": {},
  4747. "resizingElement": null,
  4748. "scrollX": 0,
  4749. "scrollY": 0,
  4750. "searchMatches": [],
  4751. "selectedElementIds": {},
  4752. "selectedElementsAreBeingDragged": false,
  4753. "selectedGroupIds": {},
  4754. "selectionElement": null,
  4755. "shouldCacheIgnoreZoom": false,
  4756. "showHyperlinkPopup": false,
  4757. "showWelcomeScreen": true,
  4758. "snapLines": [],
  4759. "startBoundElement": null,
  4760. "stats": {
  4761. "open": false,
  4762. "panels": 3,
  4763. },
  4764. "suggestedBindings": [],
  4765. "theme": "light",
  4766. "toast": null,
  4767. "userToFollow": null,
  4768. "viewBackgroundColor": "#ffffff",
  4769. "viewModeEnabled": false,
  4770. "width": 0,
  4771. "zenModeEnabled": false,
  4772. "zoom": {
  4773. "value": 1,
  4774. },
  4775. }
  4776. `;
  4777. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should redraw remotely added bound text when it's container is updated through the history > [end of test] element 0 1`] = `
  4778. {
  4779. "angle": 90,
  4780. "backgroundColor": "transparent",
  4781. "boundElements": [
  4782. {
  4783. "id": "id162",
  4784. "type": "text",
  4785. },
  4786. ],
  4787. "customData": undefined,
  4788. "fillStyle": "solid",
  4789. "frameId": null,
  4790. "groupIds": [],
  4791. "height": 100,
  4792. "id": "id161",
  4793. "index": "a0",
  4794. "isDeleted": false,
  4795. "link": null,
  4796. "locked": false,
  4797. "opacity": 100,
  4798. "roughness": 1,
  4799. "roundness": {
  4800. "type": 3,
  4801. },
  4802. "strokeColor": "#1e1e1e",
  4803. "strokeStyle": "solid",
  4804. "strokeWidth": 2,
  4805. "type": "rectangle",
  4806. "updated": 1,
  4807. "version": 8,
  4808. "width": 100,
  4809. "x": 200,
  4810. "y": 200,
  4811. }
  4812. `;
  4813. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should redraw remotely added bound text when it's container is updated through the history > [end of test] element 1 1`] = `
  4814. {
  4815. "angle": 90,
  4816. "autoResize": true,
  4817. "backgroundColor": "transparent",
  4818. "boundElements": null,
  4819. "containerId": "id161",
  4820. "customData": undefined,
  4821. "fillStyle": "solid",
  4822. "fontFamily": 5,
  4823. "fontSize": 20,
  4824. "frameId": null,
  4825. "groupIds": [],
  4826. "height": 25,
  4827. "id": "id162",
  4828. "index": "a1",
  4829. "isDeleted": false,
  4830. "lineHeight": "1.25000",
  4831. "link": null,
  4832. "locked": false,
  4833. "opacity": 100,
  4834. "originalText": "que pasa",
  4835. "roughness": 1,
  4836. "roundness": {
  4837. "type": 3,
  4838. },
  4839. "strokeColor": "#1e1e1e",
  4840. "strokeStyle": "solid",
  4841. "strokeWidth": 2,
  4842. "text": "que pasa",
  4843. "textAlign": "left",
  4844. "type": "text",
  4845. "updated": 1,
  4846. "version": 6,
  4847. "verticalAlign": "top",
  4848. "width": 80,
  4849. "x": 205,
  4850. "y": 205,
  4851. }
  4852. `;
  4853. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should redraw remotely added bound text when it's container is updated through the history > [end of test] history 1`] = `
  4854. History {
  4855. "onHistoryChangedEmitter": Emitter {
  4856. "subscribers": [
  4857. [Function],
  4858. [Function],
  4859. ],
  4860. },
  4861. "redoStack": [],
  4862. "undoStack": [
  4863. HistoryEntry {
  4864. "appStateChange": AppStateChange {
  4865. "delta": Delta {
  4866. "deleted": {},
  4867. "inserted": {},
  4868. },
  4869. },
  4870. "elementsChange": ElementsChange {
  4871. "added": Map {},
  4872. "removed": Map {},
  4873. "updated": Map {
  4874. "id161" => Delta {
  4875. "deleted": {
  4876. "angle": 90,
  4877. "x": 200,
  4878. "y": 200,
  4879. },
  4880. "inserted": {
  4881. "angle": 0,
  4882. "x": 10,
  4883. "y": 10,
  4884. },
  4885. },
  4886. },
  4887. },
  4888. },
  4889. ],
  4890. }
  4891. `;
  4892. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should redraw remotely added bound text when it's container is updated through the history > [end of test] number of elements 1`] = `2`;
  4893. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should redraw remotely added bound text when it's container is updated through the history > [end of test] number of renders 1`] = `10`;
  4894. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should unbind remotely deleted bound text from container when the container is added through the history > [end of test] appState 1`] = `
  4895. {
  4896. "activeEmbeddable": null,
  4897. "activeTool": {
  4898. "customType": null,
  4899. "fromSelection": false,
  4900. "lastActiveTool": null,
  4901. "locked": false,
  4902. "type": "selection",
  4903. },
  4904. "collaborators": Map {},
  4905. "contextMenu": null,
  4906. "croppingElementId": null,
  4907. "currentChartType": "bar",
  4908. "currentHoveredFontFamily": null,
  4909. "currentItemArrowType": "round",
  4910. "currentItemBackgroundColor": "transparent",
  4911. "currentItemEndArrowhead": "arrow",
  4912. "currentItemFillStyle": "solid",
  4913. "currentItemFontFamily": 5,
  4914. "currentItemFontSize": 20,
  4915. "currentItemOpacity": 100,
  4916. "currentItemRoughness": 1,
  4917. "currentItemRoundness": "round",
  4918. "currentItemStartArrowhead": null,
  4919. "currentItemStrokeColor": "#1e1e1e",
  4920. "currentItemStrokeStyle": "solid",
  4921. "currentItemStrokeWidth": 2,
  4922. "currentItemTextAlign": "left",
  4923. "cursorButton": "up",
  4924. "defaultSidebarDockedPreference": false,
  4925. "editingFrame": null,
  4926. "editingGroupId": null,
  4927. "editingLinearElement": null,
  4928. "editingTextElement": null,
  4929. "elementsToHighlight": null,
  4930. "errorMessage": null,
  4931. "exportBackground": true,
  4932. "exportEmbedScene": false,
  4933. "exportScale": 1,
  4934. "exportWithDarkMode": false,
  4935. "fileHandle": null,
  4936. "followedBy": Set {},
  4937. "frameRendering": {
  4938. "clip": true,
  4939. "enabled": true,
  4940. "name": true,
  4941. "outline": true,
  4942. },
  4943. "frameToHighlight": null,
  4944. "gridModeEnabled": false,
  4945. "gridSize": 20,
  4946. "gridStep": 5,
  4947. "height": 0,
  4948. "hoveredElementIds": {},
  4949. "isBindingEnabled": true,
  4950. "isCropping": false,
  4951. "isLoading": false,
  4952. "isResizing": false,
  4953. "isRotating": false,
  4954. "lastPointerDownWith": "mouse",
  4955. "multiElement": null,
  4956. "newElement": null,
  4957. "objectsSnapModeEnabled": false,
  4958. "offsetLeft": 0,
  4959. "offsetTop": 0,
  4960. "openDialog": null,
  4961. "openMenu": null,
  4962. "openPopup": null,
  4963. "openSidebar": null,
  4964. "originSnapOffset": {
  4965. "x": 0,
  4966. "y": 0,
  4967. },
  4968. "pasteDialog": {
  4969. "data": null,
  4970. "shown": false,
  4971. },
  4972. "penDetected": false,
  4973. "penMode": false,
  4974. "pendingImageElementId": null,
  4975. "previousSelectedElementIds": {},
  4976. "resizingElement": null,
  4977. "scrollX": 0,
  4978. "scrollY": 0,
  4979. "searchMatches": [],
  4980. "selectedElementIds": {},
  4981. "selectedElementsAreBeingDragged": false,
  4982. "selectedGroupIds": {},
  4983. "selectionElement": null,
  4984. "shouldCacheIgnoreZoom": false,
  4985. "showHyperlinkPopup": false,
  4986. "showWelcomeScreen": true,
  4987. "snapLines": [],
  4988. "startBoundElement": null,
  4989. "stats": {
  4990. "open": false,
  4991. "panels": 3,
  4992. },
  4993. "suggestedBindings": [],
  4994. "theme": "light",
  4995. "toast": null,
  4996. "userToFollow": null,
  4997. "viewBackgroundColor": "#ffffff",
  4998. "viewModeEnabled": false,
  4999. "width": 0,
  5000. "zenModeEnabled": false,
  5001. "zoom": {
  5002. "value": 1,
  5003. },
  5004. }
  5005. `;
  5006. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should unbind remotely deleted bound text from container when the container is added through the history > [end of test] element 0 1`] = `
  5007. {
  5008. "angle": 0,
  5009. "backgroundColor": "transparent",
  5010. "boundElements": [],
  5011. "customData": undefined,
  5012. "fillStyle": "solid",
  5013. "frameId": null,
  5014. "groupIds": [],
  5015. "height": 100,
  5016. "id": "id157",
  5017. "index": "a0",
  5018. "isDeleted": false,
  5019. "link": null,
  5020. "locked": false,
  5021. "opacity": 100,
  5022. "roughness": 1,
  5023. "roundness": {
  5024. "type": 3,
  5025. },
  5026. "strokeColor": "#1e1e1e",
  5027. "strokeStyle": "solid",
  5028. "strokeWidth": 2,
  5029. "type": "rectangle",
  5030. "updated": 1,
  5031. "version": 8,
  5032. "width": 100,
  5033. "x": 10,
  5034. "y": 10,
  5035. }
  5036. `;
  5037. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should unbind remotely deleted bound text from container when the container is added through the history > [end of test] element 1 1`] = `
  5038. {
  5039. "angle": 0,
  5040. "autoResize": true,
  5041. "backgroundColor": "transparent",
  5042. "boundElements": null,
  5043. "containerId": "id157",
  5044. "customData": undefined,
  5045. "fillStyle": "solid",
  5046. "fontFamily": 5,
  5047. "fontSize": 20,
  5048. "frameId": null,
  5049. "groupIds": [],
  5050. "height": 100,
  5051. "id": "id158",
  5052. "index": "a1",
  5053. "isDeleted": true,
  5054. "lineHeight": "1.25000",
  5055. "link": null,
  5056. "locked": false,
  5057. "opacity": 100,
  5058. "originalText": "que pasa",
  5059. "roughness": 1,
  5060. "roundness": {
  5061. "type": 3,
  5062. },
  5063. "strokeColor": "#1e1e1e",
  5064. "strokeStyle": "solid",
  5065. "strokeWidth": 2,
  5066. "text": "que pasa",
  5067. "textAlign": "left",
  5068. "type": "text",
  5069. "updated": 1,
  5070. "version": 3,
  5071. "verticalAlign": "top",
  5072. "width": 100,
  5073. "x": 15,
  5074. "y": 15,
  5075. }
  5076. `;
  5077. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should unbind remotely deleted bound text from container when the container is added through the history > [end of test] history 1`] = `
  5078. History {
  5079. "onHistoryChangedEmitter": Emitter {
  5080. "subscribers": [
  5081. [Function],
  5082. [Function],
  5083. ],
  5084. },
  5085. "redoStack": [],
  5086. "undoStack": [
  5087. HistoryEntry {
  5088. "appStateChange": AppStateChange {
  5089. "delta": Delta {
  5090. "deleted": {},
  5091. "inserted": {},
  5092. },
  5093. },
  5094. "elementsChange": ElementsChange {
  5095. "added": Map {},
  5096. "removed": Map {
  5097. "id157" => Delta {
  5098. "deleted": {
  5099. "boundElements": [],
  5100. "isDeleted": false,
  5101. },
  5102. "inserted": {
  5103. "boundElements": [
  5104. {
  5105. "id": "id158",
  5106. "type": "text",
  5107. },
  5108. ],
  5109. "isDeleted": true,
  5110. },
  5111. },
  5112. },
  5113. "updated": Map {},
  5114. },
  5115. },
  5116. ],
  5117. }
  5118. `;
  5119. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should unbind remotely deleted bound text from container when the container is added through the history > [end of test] number of elements 1`] = `2`;
  5120. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should unbind remotely deleted bound text from container when the container is added through the history > [end of test] number of renders 1`] = `9`;
  5121. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should unbind remotely deleted container from bound text when the text is added through the history > [end of test] appState 1`] = `
  5122. {
  5123. "activeEmbeddable": null,
  5124. "activeTool": {
  5125. "customType": null,
  5126. "fromSelection": false,
  5127. "lastActiveTool": null,
  5128. "locked": false,
  5129. "type": "selection",
  5130. },
  5131. "collaborators": Map {},
  5132. "contextMenu": null,
  5133. "croppingElementId": null,
  5134. "currentChartType": "bar",
  5135. "currentHoveredFontFamily": null,
  5136. "currentItemArrowType": "round",
  5137. "currentItemBackgroundColor": "transparent",
  5138. "currentItemEndArrowhead": "arrow",
  5139. "currentItemFillStyle": "solid",
  5140. "currentItemFontFamily": 5,
  5141. "currentItemFontSize": 20,
  5142. "currentItemOpacity": 100,
  5143. "currentItemRoughness": 1,
  5144. "currentItemRoundness": "round",
  5145. "currentItemStartArrowhead": null,
  5146. "currentItemStrokeColor": "#1e1e1e",
  5147. "currentItemStrokeStyle": "solid",
  5148. "currentItemStrokeWidth": 2,
  5149. "currentItemTextAlign": "left",
  5150. "cursorButton": "up",
  5151. "defaultSidebarDockedPreference": false,
  5152. "editingFrame": null,
  5153. "editingGroupId": null,
  5154. "editingLinearElement": null,
  5155. "editingTextElement": null,
  5156. "elementsToHighlight": null,
  5157. "errorMessage": null,
  5158. "exportBackground": true,
  5159. "exportEmbedScene": false,
  5160. "exportScale": 1,
  5161. "exportWithDarkMode": false,
  5162. "fileHandle": null,
  5163. "followedBy": Set {},
  5164. "frameRendering": {
  5165. "clip": true,
  5166. "enabled": true,
  5167. "name": true,
  5168. "outline": true,
  5169. },
  5170. "frameToHighlight": null,
  5171. "gridModeEnabled": false,
  5172. "gridSize": 20,
  5173. "gridStep": 5,
  5174. "height": 0,
  5175. "hoveredElementIds": {},
  5176. "isBindingEnabled": true,
  5177. "isCropping": false,
  5178. "isLoading": false,
  5179. "isResizing": false,
  5180. "isRotating": false,
  5181. "lastPointerDownWith": "mouse",
  5182. "multiElement": null,
  5183. "newElement": null,
  5184. "objectsSnapModeEnabled": false,
  5185. "offsetLeft": 0,
  5186. "offsetTop": 0,
  5187. "openDialog": null,
  5188. "openMenu": null,
  5189. "openPopup": null,
  5190. "openSidebar": null,
  5191. "originSnapOffset": {
  5192. "x": 0,
  5193. "y": 0,
  5194. },
  5195. "pasteDialog": {
  5196. "data": null,
  5197. "shown": false,
  5198. },
  5199. "penDetected": false,
  5200. "penMode": false,
  5201. "pendingImageElementId": null,
  5202. "previousSelectedElementIds": {},
  5203. "resizingElement": null,
  5204. "scrollX": 0,
  5205. "scrollY": 0,
  5206. "searchMatches": [],
  5207. "selectedElementIds": {},
  5208. "selectedElementsAreBeingDragged": false,
  5209. "selectedGroupIds": {},
  5210. "selectionElement": null,
  5211. "shouldCacheIgnoreZoom": false,
  5212. "showHyperlinkPopup": false,
  5213. "showWelcomeScreen": true,
  5214. "snapLines": [],
  5215. "startBoundElement": null,
  5216. "stats": {
  5217. "open": false,
  5218. "panels": 3,
  5219. },
  5220. "suggestedBindings": [],
  5221. "theme": "light",
  5222. "toast": null,
  5223. "userToFollow": null,
  5224. "viewBackgroundColor": "#ffffff",
  5225. "viewModeEnabled": false,
  5226. "width": 0,
  5227. "zenModeEnabled": false,
  5228. "zoom": {
  5229. "value": 1,
  5230. },
  5231. }
  5232. `;
  5233. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should unbind remotely deleted container from bound text when the text is added through the history > [end of test] element 0 1`] = `
  5234. {
  5235. "angle": 0,
  5236. "backgroundColor": "transparent",
  5237. "boundElements": [
  5238. {
  5239. "id": "id160",
  5240. "type": "text",
  5241. },
  5242. ],
  5243. "customData": undefined,
  5244. "fillStyle": "solid",
  5245. "frameId": null,
  5246. "groupIds": [],
  5247. "height": 100,
  5248. "id": "id159",
  5249. "index": "Zz",
  5250. "isDeleted": true,
  5251. "link": null,
  5252. "locked": false,
  5253. "opacity": 100,
  5254. "roughness": 1,
  5255. "roundness": {
  5256. "type": 3,
  5257. },
  5258. "strokeColor": "#1e1e1e",
  5259. "strokeStyle": "solid",
  5260. "strokeWidth": 2,
  5261. "type": "rectangle",
  5262. "updated": 1,
  5263. "version": 3,
  5264. "width": 100,
  5265. "x": 10,
  5266. "y": 10,
  5267. }
  5268. `;
  5269. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should unbind remotely deleted container from bound text when the text is added through the history > [end of test] element 1 1`] = `
  5270. {
  5271. "angle": 0,
  5272. "autoResize": true,
  5273. "backgroundColor": "transparent",
  5274. "boundElements": null,
  5275. "containerId": null,
  5276. "customData": undefined,
  5277. "fillStyle": "solid",
  5278. "fontFamily": 5,
  5279. "fontSize": 20,
  5280. "frameId": null,
  5281. "groupIds": [],
  5282. "height": 100,
  5283. "id": "id160",
  5284. "index": "a0",
  5285. "isDeleted": false,
  5286. "lineHeight": "1.25000",
  5287. "link": null,
  5288. "locked": false,
  5289. "opacity": 100,
  5290. "originalText": "que pasa",
  5291. "roughness": 1,
  5292. "roundness": {
  5293. "type": 3,
  5294. },
  5295. "strokeColor": "#1e1e1e",
  5296. "strokeStyle": "solid",
  5297. "strokeWidth": 2,
  5298. "text": "que pasa",
  5299. "textAlign": "left",
  5300. "type": "text",
  5301. "updated": 1,
  5302. "version": 8,
  5303. "verticalAlign": "top",
  5304. "width": 100,
  5305. "x": 15,
  5306. "y": 15,
  5307. }
  5308. `;
  5309. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should unbind remotely deleted container from bound text when the text is added through the history > [end of test] history 1`] = `
  5310. History {
  5311. "onHistoryChangedEmitter": Emitter {
  5312. "subscribers": [
  5313. [Function],
  5314. [Function],
  5315. ],
  5316. },
  5317. "redoStack": [],
  5318. "undoStack": [
  5319. HistoryEntry {
  5320. "appStateChange": AppStateChange {
  5321. "delta": Delta {
  5322. "deleted": {},
  5323. "inserted": {},
  5324. },
  5325. },
  5326. "elementsChange": ElementsChange {
  5327. "added": Map {},
  5328. "removed": Map {
  5329. "id160" => Delta {
  5330. "deleted": {
  5331. "containerId": null,
  5332. "isDeleted": false,
  5333. },
  5334. "inserted": {
  5335. "containerId": "id159",
  5336. "isDeleted": true,
  5337. },
  5338. },
  5339. },
  5340. "updated": Map {},
  5341. },
  5342. },
  5343. ],
  5344. }
  5345. `;
  5346. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should unbind remotely deleted container from bound text when the text is added through the history > [end of test] number of elements 1`] = `2`;
  5347. exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should unbind remotely deleted container from bound text when the text is added through the history > [end of test] number of renders 1`] = `9`;
  5348. exports[`history > multiplayer undo/redo > conflicts in frames and their children > should not rebind frame child with frame when frame was remotely deleted and frame child is added back through the history > [end of test] appState 1`] = `
  5349. {
  5350. "activeEmbeddable": null,
  5351. "activeTool": {
  5352. "customType": null,
  5353. "fromSelection": false,
  5354. "lastActiveTool": null,
  5355. "locked": false,
  5356. "type": "selection",
  5357. },
  5358. "collaborators": Map {},
  5359. "contextMenu": null,
  5360. "croppingElementId": null,
  5361. "currentChartType": "bar",
  5362. "currentHoveredFontFamily": null,
  5363. "currentItemArrowType": "round",
  5364. "currentItemBackgroundColor": "transparent",
  5365. "currentItemEndArrowhead": "arrow",
  5366. "currentItemFillStyle": "solid",
  5367. "currentItemFontFamily": 5,
  5368. "currentItemFontSize": 20,
  5369. "currentItemOpacity": 100,
  5370. "currentItemRoughness": 1,
  5371. "currentItemRoundness": "round",
  5372. "currentItemStartArrowhead": null,
  5373. "currentItemStrokeColor": "#1e1e1e",
  5374. "currentItemStrokeStyle": "solid",
  5375. "currentItemStrokeWidth": 2,
  5376. "currentItemTextAlign": "left",
  5377. "cursorButton": "up",
  5378. "defaultSidebarDockedPreference": false,
  5379. "editingFrame": null,
  5380. "editingGroupId": null,
  5381. "editingLinearElement": null,
  5382. "editingTextElement": null,
  5383. "elementsToHighlight": null,
  5384. "errorMessage": null,
  5385. "exportBackground": true,
  5386. "exportEmbedScene": false,
  5387. "exportScale": 1,
  5388. "exportWithDarkMode": false,
  5389. "fileHandle": null,
  5390. "followedBy": Set {},
  5391. "frameRendering": {
  5392. "clip": true,
  5393. "enabled": true,
  5394. "name": true,
  5395. "outline": true,
  5396. },
  5397. "frameToHighlight": null,
  5398. "gridModeEnabled": false,
  5399. "gridSize": 20,
  5400. "gridStep": 5,
  5401. "height": 0,
  5402. "hoveredElementIds": {},
  5403. "isBindingEnabled": true,
  5404. "isCropping": false,
  5405. "isLoading": false,
  5406. "isResizing": false,
  5407. "isRotating": false,
  5408. "lastPointerDownWith": "mouse",
  5409. "multiElement": null,
  5410. "newElement": null,
  5411. "objectsSnapModeEnabled": false,
  5412. "offsetLeft": 0,
  5413. "offsetTop": 0,
  5414. "openDialog": null,
  5415. "openMenu": null,
  5416. "openPopup": null,
  5417. "openSidebar": null,
  5418. "originSnapOffset": {
  5419. "x": 0,
  5420. "y": 0,
  5421. },
  5422. "pasteDialog": {
  5423. "data": null,
  5424. "shown": false,
  5425. },
  5426. "penDetected": false,
  5427. "penMode": false,
  5428. "pendingImageElementId": null,
  5429. "previousSelectedElementIds": {},
  5430. "resizingElement": null,
  5431. "scrollX": 0,
  5432. "scrollY": 0,
  5433. "searchMatches": [],
  5434. "selectedElementIds": {},
  5435. "selectedElementsAreBeingDragged": false,
  5436. "selectedGroupIds": {},
  5437. "selectionElement": null,
  5438. "shouldCacheIgnoreZoom": false,
  5439. "showHyperlinkPopup": false,
  5440. "showWelcomeScreen": true,
  5441. "snapLines": [],
  5442. "startBoundElement": null,
  5443. "stats": {
  5444. "open": false,
  5445. "panels": 3,
  5446. },
  5447. "suggestedBindings": [],
  5448. "theme": "light",
  5449. "toast": null,
  5450. "userToFollow": null,
  5451. "viewBackgroundColor": "#ffffff",
  5452. "viewModeEnabled": false,
  5453. "width": 0,
  5454. "zenModeEnabled": false,
  5455. "zoom": {
  5456. "value": 1,
  5457. },
  5458. }
  5459. `;
  5460. exports[`history > multiplayer undo/redo > conflicts in frames and their children > should not rebind frame child with frame when frame was remotely deleted and frame child is added back through the history > [end of test] element 0 1`] = `
  5461. {
  5462. "angle": 0,
  5463. "backgroundColor": "transparent",
  5464. "boundElements": null,
  5465. "customData": undefined,
  5466. "fillStyle": "solid",
  5467. "frameId": null,
  5468. "groupIds": [],
  5469. "height": 100,
  5470. "id": "id188",
  5471. "index": "Zz",
  5472. "isDeleted": false,
  5473. "link": null,
  5474. "locked": false,
  5475. "opacity": 100,
  5476. "roughness": 1,
  5477. "roundness": {
  5478. "type": 3,
  5479. },
  5480. "strokeColor": "#1e1e1e",
  5481. "strokeStyle": "solid",
  5482. "strokeWidth": 2,
  5483. "type": "rectangle",
  5484. "updated": 1,
  5485. "version": 10,
  5486. "width": 100,
  5487. "x": 10,
  5488. "y": 10,
  5489. }
  5490. `;
  5491. exports[`history > multiplayer undo/redo > conflicts in frames and their children > should not rebind frame child with frame when frame was remotely deleted and frame child is added back through the history > [end of test] element 1 1`] = `
  5492. {
  5493. "angle": 0,
  5494. "backgroundColor": "transparent",
  5495. "boundElements": null,
  5496. "customData": undefined,
  5497. "fillStyle": "solid",
  5498. "frameId": null,
  5499. "groupIds": [],
  5500. "height": 500,
  5501. "id": "id187",
  5502. "index": "a0",
  5503. "isDeleted": true,
  5504. "link": null,
  5505. "locked": false,
  5506. "name": null,
  5507. "opacity": 100,
  5508. "roughness": 1,
  5509. "roundness": {
  5510. "type": 3,
  5511. },
  5512. "strokeColor": "#1e1e1e",
  5513. "strokeStyle": "solid",
  5514. "strokeWidth": 2,
  5515. "type": "frame",
  5516. "updated": 1,
  5517. "version": 3,
  5518. "width": 500,
  5519. "x": 0,
  5520. "y": 0,
  5521. }
  5522. `;
  5523. exports[`history > multiplayer undo/redo > conflicts in frames and their children > should not rebind frame child with frame when frame was remotely deleted and frame child is added back through the history > [end of test] history 1`] = `
  5524. History {
  5525. "onHistoryChangedEmitter": Emitter {
  5526. "subscribers": [
  5527. [Function],
  5528. [Function],
  5529. ],
  5530. },
  5531. "redoStack": [],
  5532. "undoStack": [
  5533. HistoryEntry {
  5534. "appStateChange": AppStateChange {
  5535. "delta": Delta {
  5536. "deleted": {},
  5537. "inserted": {},
  5538. },
  5539. },
  5540. "elementsChange": ElementsChange {
  5541. "added": Map {},
  5542. "removed": Map {
  5543. "id188" => Delta {
  5544. "deleted": {
  5545. "angle": 0,
  5546. "backgroundColor": "transparent",
  5547. "boundElements": null,
  5548. "customData": undefined,
  5549. "fillStyle": "solid",
  5550. "frameId": null,
  5551. "groupIds": [],
  5552. "height": 100,
  5553. "index": "Zz",
  5554. "isDeleted": false,
  5555. "link": null,
  5556. "locked": false,
  5557. "opacity": 100,
  5558. "roughness": 1,
  5559. "roundness": {
  5560. "type": 3,
  5561. },
  5562. "strokeColor": "#1e1e1e",
  5563. "strokeStyle": "solid",
  5564. "strokeWidth": 2,
  5565. "type": "rectangle",
  5566. "width": 100,
  5567. "x": 10,
  5568. "y": 10,
  5569. },
  5570. "inserted": {
  5571. "isDeleted": true,
  5572. },
  5573. },
  5574. },
  5575. "updated": Map {},
  5576. },
  5577. },
  5578. HistoryEntry {
  5579. "appStateChange": AppStateChange {
  5580. "delta": Delta {
  5581. "deleted": {},
  5582. "inserted": {},
  5583. },
  5584. },
  5585. "elementsChange": ElementsChange {
  5586. "added": Map {},
  5587. "removed": Map {},
  5588. "updated": Map {
  5589. "id188" => Delta {
  5590. "deleted": {
  5591. "frameId": "id187",
  5592. },
  5593. "inserted": {
  5594. "frameId": null,
  5595. },
  5596. },
  5597. },
  5598. },
  5599. },
  5600. ],
  5601. }
  5602. `;
  5603. exports[`history > multiplayer undo/redo > conflicts in frames and their children > should not rebind frame child with frame when frame was remotely deleted and frame child is added back through the history > [end of test] number of elements 1`] = `2`;
  5604. exports[`history > multiplayer undo/redo > conflicts in frames and their children > should not rebind frame child with frame when frame was remotely deleted and frame child is added back through the history > [end of test] number of renders 1`] = `13`;
  5605. exports[`history > multiplayer undo/redo > should iterate through the history when editing group contains only remotely deleted elements > [end of test] appState 1`] = `
  5606. {
  5607. "activeEmbeddable": null,
  5608. "activeTool": {
  5609. "customType": null,
  5610. "fromSelection": false,
  5611. "lastActiveTool": null,
  5612. "locked": false,
  5613. "type": "selection",
  5614. },
  5615. "collaborators": Map {},
  5616. "contextMenu": null,
  5617. "croppingElementId": null,
  5618. "currentChartType": "bar",
  5619. "currentHoveredFontFamily": null,
  5620. "currentItemArrowType": "round",
  5621. "currentItemBackgroundColor": "transparent",
  5622. "currentItemEndArrowhead": "arrow",
  5623. "currentItemFillStyle": "solid",
  5624. "currentItemFontFamily": 5,
  5625. "currentItemFontSize": 20,
  5626. "currentItemOpacity": 100,
  5627. "currentItemRoughness": 1,
  5628. "currentItemRoundness": "round",
  5629. "currentItemStartArrowhead": null,
  5630. "currentItemStrokeColor": "#1e1e1e",
  5631. "currentItemStrokeStyle": "solid",
  5632. "currentItemStrokeWidth": 2,
  5633. "currentItemTextAlign": "left",
  5634. "cursorButton": "up",
  5635. "defaultSidebarDockedPreference": false,
  5636. "editingFrame": null,
  5637. "editingGroupId": null,
  5638. "editingLinearElement": null,
  5639. "editingTextElement": null,
  5640. "elementsToHighlight": null,
  5641. "errorMessage": null,
  5642. "exportBackground": true,
  5643. "exportEmbedScene": false,
  5644. "exportScale": 1,
  5645. "exportWithDarkMode": false,
  5646. "fileHandle": null,
  5647. "followedBy": Set {},
  5648. "frameRendering": {
  5649. "clip": true,
  5650. "enabled": true,
  5651. "name": true,
  5652. "outline": true,
  5653. },
  5654. "frameToHighlight": null,
  5655. "gridModeEnabled": false,
  5656. "gridSize": 20,
  5657. "gridStep": 5,
  5658. "height": 0,
  5659. "hoveredElementIds": {},
  5660. "isBindingEnabled": true,
  5661. "isCropping": false,
  5662. "isLoading": false,
  5663. "isResizing": false,
  5664. "isRotating": false,
  5665. "lastPointerDownWith": "mouse",
  5666. "multiElement": null,
  5667. "newElement": null,
  5668. "objectsSnapModeEnabled": false,
  5669. "offsetLeft": 0,
  5670. "offsetTop": 0,
  5671. "openDialog": null,
  5672. "openMenu": null,
  5673. "openPopup": null,
  5674. "openSidebar": null,
  5675. "originSnapOffset": null,
  5676. "pasteDialog": {
  5677. "data": null,
  5678. "shown": false,
  5679. },
  5680. "penDetected": false,
  5681. "penMode": false,
  5682. "pendingImageElementId": null,
  5683. "previousSelectedElementIds": {
  5684. "id116": true,
  5685. },
  5686. "resizingElement": null,
  5687. "scrollX": 0,
  5688. "scrollY": 0,
  5689. "searchMatches": [],
  5690. "selectedElementIds": {},
  5691. "selectedElementsAreBeingDragged": false,
  5692. "selectedGroupIds": {},
  5693. "selectionElement": null,
  5694. "shouldCacheIgnoreZoom": false,
  5695. "showHyperlinkPopup": false,
  5696. "showWelcomeScreen": true,
  5697. "snapLines": [],
  5698. "startBoundElement": null,
  5699. "stats": {
  5700. "open": false,
  5701. "panels": 3,
  5702. },
  5703. "suggestedBindings": [],
  5704. "theme": "light",
  5705. "toast": null,
  5706. "userToFollow": null,
  5707. "viewBackgroundColor": "#ffffff",
  5708. "viewModeEnabled": false,
  5709. "width": 0,
  5710. "zenModeEnabled": false,
  5711. "zoom": {
  5712. "value": 1,
  5713. },
  5714. }
  5715. `;
  5716. exports[`history > multiplayer undo/redo > should iterate through the history when editing group contains only remotely deleted elements > [end of test] element 0 1`] = `
  5717. {
  5718. "angle": 0,
  5719. "backgroundColor": "transparent",
  5720. "boundElements": null,
  5721. "customData": undefined,
  5722. "fillStyle": "solid",
  5723. "frameId": null,
  5724. "groupIds": [
  5725. "A",
  5726. ],
  5727. "height": 100,
  5728. "id": "id115",
  5729. "index": "a0",
  5730. "isDeleted": false,
  5731. "link": null,
  5732. "locked": false,
  5733. "opacity": 100,
  5734. "roughness": 1,
  5735. "roundness": {
  5736. "type": 3,
  5737. },
  5738. "strokeColor": "#1e1e1e",
  5739. "strokeStyle": "solid",
  5740. "strokeWidth": 2,
  5741. "type": "rectangle",
  5742. "updated": 1,
  5743. "version": 5,
  5744. "width": 100,
  5745. "x": 0,
  5746. "y": 0,
  5747. }
  5748. `;
  5749. exports[`history > multiplayer undo/redo > should iterate through the history when editing group contains only remotely deleted elements > [end of test] element 1 1`] = `
  5750. {
  5751. "angle": 0,
  5752. "backgroundColor": "transparent",
  5753. "boundElements": null,
  5754. "customData": undefined,
  5755. "fillStyle": "solid",
  5756. "frameId": null,
  5757. "groupIds": [
  5758. "A",
  5759. ],
  5760. "height": 100,
  5761. "id": "id116",
  5762. "index": "a1",
  5763. "isDeleted": true,
  5764. "link": null,
  5765. "locked": false,
  5766. "opacity": 100,
  5767. "roughness": 1,
  5768. "roundness": {
  5769. "type": 3,
  5770. },
  5771. "strokeColor": "#1e1e1e",
  5772. "strokeStyle": "solid",
  5773. "strokeWidth": 2,
  5774. "type": "rectangle",
  5775. "updated": 1,
  5776. "version": 4,
  5777. "width": 100,
  5778. "x": 100,
  5779. "y": 100,
  5780. }
  5781. `;
  5782. exports[`history > multiplayer undo/redo > should iterate through the history when editing group contains only remotely deleted elements > [end of test] history 1`] = `
  5783. History {
  5784. "onHistoryChangedEmitter": Emitter {
  5785. "subscribers": [
  5786. [Function],
  5787. [Function],
  5788. ],
  5789. },
  5790. "redoStack": [],
  5791. "undoStack": [
  5792. HistoryEntry {
  5793. "appStateChange": AppStateChange {
  5794. "delta": Delta {
  5795. "deleted": {
  5796. "selectedElementIds": {
  5797. "id115": true,
  5798. "id116": true,
  5799. },
  5800. "selectedGroupIds": {
  5801. "A": true,
  5802. },
  5803. },
  5804. "inserted": {
  5805. "selectedElementIds": {},
  5806. "selectedGroupIds": {},
  5807. },
  5808. },
  5809. },
  5810. "elementsChange": ElementsChange {
  5811. "added": Map {},
  5812. "removed": Map {},
  5813. "updated": Map {
  5814. "id115" => Delta {
  5815. "deleted": {
  5816. "angle": 0,
  5817. "backgroundColor": "transparent",
  5818. "boundElements": null,
  5819. "customData": undefined,
  5820. "fillStyle": "solid",
  5821. "frameId": null,
  5822. "groupIds": [
  5823. "A",
  5824. ],
  5825. "height": 100,
  5826. "index": "a0",
  5827. "isDeleted": true,
  5828. "link": null,
  5829. "locked": false,
  5830. "opacity": 100,
  5831. "roughness": 1,
  5832. "roundness": {
  5833. "type": 3,
  5834. },
  5835. "strokeColor": "#1e1e1e",
  5836. "strokeStyle": "solid",
  5837. "strokeWidth": 2,
  5838. "type": "rectangle",
  5839. "width": 100,
  5840. "x": 0,
  5841. "y": 0,
  5842. },
  5843. "inserted": {
  5844. "isDeleted": true,
  5845. },
  5846. },
  5847. "id116" => Delta {
  5848. "deleted": {
  5849. "angle": 0,
  5850. "backgroundColor": "transparent",
  5851. "boundElements": null,
  5852. "customData": undefined,
  5853. "fillStyle": "solid",
  5854. "frameId": null,
  5855. "groupIds": [
  5856. "A",
  5857. ],
  5858. "height": 100,
  5859. "index": "a1",
  5860. "isDeleted": true,
  5861. "link": null,
  5862. "locked": false,
  5863. "opacity": 100,
  5864. "roughness": 1,
  5865. "roundness": {
  5866. "type": 3,
  5867. },
  5868. "strokeColor": "#1e1e1e",
  5869. "strokeStyle": "solid",
  5870. "strokeWidth": 2,
  5871. "type": "rectangle",
  5872. "width": 100,
  5873. "x": 100,
  5874. "y": 100,
  5875. },
  5876. "inserted": {
  5877. "isDeleted": true,
  5878. },
  5879. },
  5880. },
  5881. },
  5882. },
  5883. HistoryEntry {
  5884. "appStateChange": AppStateChange {
  5885. "delta": Delta {
  5886. "deleted": {
  5887. "editingGroupId": "A",
  5888. "selectedElementIds": {},
  5889. "selectedGroupIds": {},
  5890. },
  5891. "inserted": {
  5892. "editingGroupId": null,
  5893. "selectedElementIds": {
  5894. "id115": true,
  5895. },
  5896. "selectedGroupIds": {
  5897. "A": true,
  5898. },
  5899. },
  5900. },
  5901. },
  5902. "elementsChange": ElementsChange {
  5903. "added": Map {},
  5904. "removed": Map {},
  5905. "updated": Map {},
  5906. },
  5907. },
  5908. HistoryEntry {
  5909. "appStateChange": AppStateChange {
  5910. "delta": Delta {
  5911. "deleted": {
  5912. "editingGroupId": null,
  5913. "selectedElementIds": {},
  5914. },
  5915. "inserted": {
  5916. "editingGroupId": "A",
  5917. "selectedElementIds": {
  5918. "id116": true,
  5919. },
  5920. },
  5921. },
  5922. },
  5923. "elementsChange": ElementsChange {
  5924. "added": Map {},
  5925. "removed": Map {},
  5926. "updated": Map {},
  5927. },
  5928. },
  5929. ],
  5930. }
  5931. `;
  5932. exports[`history > multiplayer undo/redo > should iterate through the history when editing group contains only remotely deleted elements > [end of test] number of elements 1`] = `2`;
  5933. exports[`history > multiplayer undo/redo > should iterate through the history when editing group contains only remotely deleted elements > [end of test] number of renders 1`] = `13`;
  5934. exports[`history > multiplayer undo/redo > should iterate through the history when element changes relate only to remotely deleted elements > [end of test] appState 1`] = `
  5935. {
  5936. "activeEmbeddable": null,
  5937. "activeTool": {
  5938. "customType": null,
  5939. "fromSelection": false,
  5940. "lastActiveTool": null,
  5941. "locked": false,
  5942. "type": "selection",
  5943. },
  5944. "collaborators": Map {},
  5945. "contextMenu": null,
  5946. "croppingElementId": null,
  5947. "currentChartType": "bar",
  5948. "currentHoveredFontFamily": null,
  5949. "currentItemArrowType": "round",
  5950. "currentItemBackgroundColor": "#ffc9c9",
  5951. "currentItemEndArrowhead": "arrow",
  5952. "currentItemFillStyle": "solid",
  5953. "currentItemFontFamily": 5,
  5954. "currentItemFontSize": 20,
  5955. "currentItemOpacity": 100,
  5956. "currentItemRoughness": 1,
  5957. "currentItemRoundness": "round",
  5958. "currentItemStartArrowhead": null,
  5959. "currentItemStrokeColor": "#1e1e1e",
  5960. "currentItemStrokeStyle": "solid",
  5961. "currentItemStrokeWidth": 2,
  5962. "currentItemTextAlign": "left",
  5963. "cursorButton": "up",
  5964. "defaultSidebarDockedPreference": false,
  5965. "editingFrame": null,
  5966. "editingGroupId": null,
  5967. "editingLinearElement": null,
  5968. "editingTextElement": null,
  5969. "elementsToHighlight": null,
  5970. "errorMessage": null,
  5971. "exportBackground": true,
  5972. "exportEmbedScene": false,
  5973. "exportScale": 1,
  5974. "exportWithDarkMode": false,
  5975. "fileHandle": null,
  5976. "followedBy": Set {},
  5977. "frameRendering": {
  5978. "clip": true,
  5979. "enabled": true,
  5980. "name": true,
  5981. "outline": true,
  5982. },
  5983. "frameToHighlight": null,
  5984. "gridModeEnabled": false,
  5985. "gridSize": 20,
  5986. "gridStep": 5,
  5987. "height": 0,
  5988. "hoveredElementIds": {},
  5989. "isBindingEnabled": true,
  5990. "isCropping": false,
  5991. "isLoading": false,
  5992. "isResizing": false,
  5993. "isRotating": false,
  5994. "lastPointerDownWith": "mouse",
  5995. "multiElement": null,
  5996. "newElement": null,
  5997. "objectsSnapModeEnabled": false,
  5998. "offsetLeft": 0,
  5999. "offsetTop": 0,
  6000. "openDialog": null,
  6001. "openMenu": null,
  6002. "openPopup": "elementBackground",
  6003. "openSidebar": null,
  6004. "originSnapOffset": null,
  6005. "pasteDialog": {
  6006. "data": null,
  6007. "shown": false,
  6008. },
  6009. "penDetected": false,
  6010. "penMode": false,
  6011. "pendingImageElementId": null,
  6012. "previousSelectedElementIds": {
  6013. "id103": true,
  6014. },
  6015. "resizingElement": null,
  6016. "scrollX": 0,
  6017. "scrollY": 0,
  6018. "searchMatches": [],
  6019. "selectedElementIds": {},
  6020. "selectedElementsAreBeingDragged": false,
  6021. "selectedGroupIds": {},
  6022. "selectionElement": null,
  6023. "shouldCacheIgnoreZoom": false,
  6024. "showHyperlinkPopup": false,
  6025. "showWelcomeScreen": true,
  6026. "snapLines": [],
  6027. "startBoundElement": null,
  6028. "stats": {
  6029. "open": false,
  6030. "panels": 3,
  6031. },
  6032. "suggestedBindings": [],
  6033. "theme": "light",
  6034. "toast": null,
  6035. "userToFollow": null,
  6036. "viewBackgroundColor": "#ffffff",
  6037. "viewModeEnabled": false,
  6038. "width": 0,
  6039. "zenModeEnabled": false,
  6040. "zoom": {
  6041. "value": 1,
  6042. },
  6043. }
  6044. `;
  6045. exports[`history > multiplayer undo/redo > should iterate through the history when element changes relate only to remotely deleted elements > [end of test] element 0 1`] = `
  6046. {
  6047. "angle": 0,
  6048. "backgroundColor": "transparent",
  6049. "boundElements": null,
  6050. "customData": undefined,
  6051. "fillStyle": "solid",
  6052. "frameId": null,
  6053. "groupIds": [],
  6054. "height": 10,
  6055. "id": "id101",
  6056. "index": "a0",
  6057. "isDeleted": false,
  6058. "link": null,
  6059. "locked": false,
  6060. "opacity": 100,
  6061. "roughness": 1,
  6062. "roundness": {
  6063. "type": 3,
  6064. },
  6065. "strokeColor": "#1e1e1e",
  6066. "strokeStyle": "solid",
  6067. "strokeWidth": 2,
  6068. "type": "rectangle",
  6069. "updated": 1,
  6070. "version": 3,
  6071. "width": 10,
  6072. "x": 10,
  6073. "y": 0,
  6074. }
  6075. `;
  6076. exports[`history > multiplayer undo/redo > should iterate through the history when element changes relate only to remotely deleted elements > [end of test] element 1 1`] = `
  6077. {
  6078. "angle": 0,
  6079. "backgroundColor": "#ffc9c9",
  6080. "boundElements": null,
  6081. "customData": undefined,
  6082. "fillStyle": "solid",
  6083. "frameId": null,
  6084. "groupIds": [],
  6085. "height": 10,
  6086. "id": "id102",
  6087. "index": "a1",
  6088. "isDeleted": true,
  6089. "link": null,
  6090. "locked": false,
  6091. "opacity": 100,
  6092. "roughness": 1,
  6093. "roundness": {
  6094. "type": 3,
  6095. },
  6096. "strokeColor": "#1e1e1e",
  6097. "strokeStyle": "solid",
  6098. "strokeWidth": 2,
  6099. "type": "rectangle",
  6100. "updated": 1,
  6101. "version": 7,
  6102. "width": 10,
  6103. "x": 20,
  6104. "y": 0,
  6105. }
  6106. `;
  6107. exports[`history > multiplayer undo/redo > should iterate through the history when element changes relate only to remotely deleted elements > [end of test] element 2 1`] = `
  6108. {
  6109. "angle": 0,
  6110. "backgroundColor": "#ffc9c9",
  6111. "boundElements": null,
  6112. "customData": undefined,
  6113. "fillStyle": "solid",
  6114. "frameId": null,
  6115. "groupIds": [],
  6116. "height": 10,
  6117. "id": "id103",
  6118. "index": "a2",
  6119. "isDeleted": true,
  6120. "link": null,
  6121. "locked": false,
  6122. "opacity": 100,
  6123. "roughness": 1,
  6124. "roundness": {
  6125. "type": 3,
  6126. },
  6127. "strokeColor": "#1e1e1e",
  6128. "strokeStyle": "solid",
  6129. "strokeWidth": 2,
  6130. "type": "rectangle",
  6131. "updated": 1,
  6132. "version": 7,
  6133. "width": 10,
  6134. "x": 50,
  6135. "y": 50,
  6136. }
  6137. `;
  6138. exports[`history > multiplayer undo/redo > should iterate through the history when element changes relate only to remotely deleted elements > [end of test] history 1`] = `
  6139. History {
  6140. "onHistoryChangedEmitter": Emitter {
  6141. "subscribers": [
  6142. [Function],
  6143. [Function],
  6144. ],
  6145. },
  6146. "redoStack": [],
  6147. "undoStack": [
  6148. HistoryEntry {
  6149. "appStateChange": AppStateChange {
  6150. "delta": Delta {
  6151. "deleted": {
  6152. "selectedElementIds": {
  6153. "id101": true,
  6154. },
  6155. },
  6156. "inserted": {
  6157. "selectedElementIds": {},
  6158. },
  6159. },
  6160. },
  6161. "elementsChange": ElementsChange {
  6162. "added": Map {},
  6163. "removed": Map {
  6164. "id101" => Delta {
  6165. "deleted": {
  6166. "angle": 0,
  6167. "backgroundColor": "transparent",
  6168. "boundElements": null,
  6169. "customData": undefined,
  6170. "fillStyle": "solid",
  6171. "frameId": null,
  6172. "groupIds": [],
  6173. "height": 10,
  6174. "index": "a0",
  6175. "isDeleted": false,
  6176. "link": null,
  6177. "locked": false,
  6178. "opacity": 100,
  6179. "roughness": 1,
  6180. "roundness": {
  6181. "type": 3,
  6182. },
  6183. "strokeColor": "#1e1e1e",
  6184. "strokeStyle": "solid",
  6185. "strokeWidth": 2,
  6186. "type": "rectangle",
  6187. "width": 10,
  6188. "x": 10,
  6189. "y": 0,
  6190. },
  6191. "inserted": {
  6192. "isDeleted": true,
  6193. },
  6194. },
  6195. },
  6196. "updated": Map {},
  6197. },
  6198. },
  6199. HistoryEntry {
  6200. "appStateChange": AppStateChange {
  6201. "delta": Delta {
  6202. "deleted": {
  6203. "selectedElementIds": {
  6204. "id102": true,
  6205. },
  6206. },
  6207. "inserted": {
  6208. "selectedElementIds": {
  6209. "id101": true,
  6210. },
  6211. },
  6212. },
  6213. },
  6214. "elementsChange": ElementsChange {
  6215. "added": Map {},
  6216. "removed": Map {},
  6217. "updated": Map {
  6218. "id102" => Delta {
  6219. "deleted": {
  6220. "angle": 0,
  6221. "backgroundColor": "#ffc9c9",
  6222. "boundElements": null,
  6223. "customData": undefined,
  6224. "fillStyle": "solid",
  6225. "frameId": null,
  6226. "groupIds": [],
  6227. "height": 10,
  6228. "index": "a1",
  6229. "isDeleted": true,
  6230. "link": null,
  6231. "locked": false,
  6232. "opacity": 100,
  6233. "roughness": 1,
  6234. "roundness": {
  6235. "type": 3,
  6236. },
  6237. "strokeColor": "#1e1e1e",
  6238. "strokeStyle": "solid",
  6239. "strokeWidth": 2,
  6240. "type": "rectangle",
  6241. "width": 10,
  6242. "x": 20,
  6243. "y": 0,
  6244. },
  6245. "inserted": {
  6246. "isDeleted": true,
  6247. },
  6248. },
  6249. },
  6250. },
  6251. },
  6252. HistoryEntry {
  6253. "appStateChange": AppStateChange {
  6254. "delta": Delta {
  6255. "deleted": {},
  6256. "inserted": {},
  6257. },
  6258. },
  6259. "elementsChange": ElementsChange {
  6260. "added": Map {},
  6261. "removed": Map {},
  6262. "updated": Map {
  6263. "id102" => Delta {
  6264. "deleted": {
  6265. "backgroundColor": "#ffc9c9",
  6266. },
  6267. "inserted": {
  6268. "backgroundColor": "transparent",
  6269. },
  6270. },
  6271. },
  6272. },
  6273. },
  6274. HistoryEntry {
  6275. "appStateChange": AppStateChange {
  6276. "delta": Delta {
  6277. "deleted": {
  6278. "selectedElementIds": {
  6279. "id103": true,
  6280. },
  6281. },
  6282. "inserted": {
  6283. "selectedElementIds": {
  6284. "id102": true,
  6285. },
  6286. },
  6287. },
  6288. },
  6289. "elementsChange": ElementsChange {
  6290. "added": Map {},
  6291. "removed": Map {},
  6292. "updated": Map {
  6293. "id103" => Delta {
  6294. "deleted": {
  6295. "angle": 0,
  6296. "backgroundColor": "#ffc9c9",
  6297. "boundElements": null,
  6298. "customData": undefined,
  6299. "fillStyle": "solid",
  6300. "frameId": null,
  6301. "groupIds": [],
  6302. "height": 10,
  6303. "index": "a2",
  6304. "isDeleted": true,
  6305. "link": null,
  6306. "locked": false,
  6307. "opacity": 100,
  6308. "roughness": 1,
  6309. "roundness": {
  6310. "type": 3,
  6311. },
  6312. "strokeColor": "#1e1e1e",
  6313. "strokeStyle": "solid",
  6314. "strokeWidth": 2,
  6315. "type": "rectangle",
  6316. "width": 10,
  6317. "x": 50,
  6318. "y": 50,
  6319. },
  6320. "inserted": {
  6321. "isDeleted": true,
  6322. },
  6323. },
  6324. },
  6325. },
  6326. },
  6327. HistoryEntry {
  6328. "appStateChange": AppStateChange {
  6329. "delta": Delta {
  6330. "deleted": {},
  6331. "inserted": {},
  6332. },
  6333. },
  6334. "elementsChange": ElementsChange {
  6335. "added": Map {},
  6336. "removed": Map {},
  6337. "updated": Map {
  6338. "id103" => Delta {
  6339. "deleted": {
  6340. "x": 50,
  6341. "y": 50,
  6342. },
  6343. "inserted": {
  6344. "x": 30,
  6345. "y": 30,
  6346. },
  6347. },
  6348. },
  6349. },
  6350. },
  6351. ],
  6352. }
  6353. `;
  6354. exports[`history > multiplayer undo/redo > should iterate through the history when element changes relate only to remotely deleted elements > [end of test] number of elements 1`] = `3`;
  6355. exports[`history > multiplayer undo/redo > should iterate through the history when element changes relate only to remotely deleted elements > [end of test] number of renders 1`] = `17`;
  6356. exports[`history > multiplayer undo/redo > should iterate through the history when selected elements relate only to remotely deleted elements > [end of test] appState 1`] = `
  6357. {
  6358. "activeEmbeddable": null,
  6359. "activeTool": {
  6360. "customType": null,
  6361. "fromSelection": false,
  6362. "lastActiveTool": null,
  6363. "locked": false,
  6364. "type": "selection",
  6365. },
  6366. "collaborators": Map {},
  6367. "contextMenu": null,
  6368. "croppingElementId": null,
  6369. "currentChartType": "bar",
  6370. "currentHoveredFontFamily": null,
  6371. "currentItemArrowType": "round",
  6372. "currentItemBackgroundColor": "transparent",
  6373. "currentItemEndArrowhead": "arrow",
  6374. "currentItemFillStyle": "solid",
  6375. "currentItemFontFamily": 5,
  6376. "currentItemFontSize": 20,
  6377. "currentItemOpacity": 100,
  6378. "currentItemRoughness": 1,
  6379. "currentItemRoundness": "round",
  6380. "currentItemStartArrowhead": null,
  6381. "currentItemStrokeColor": "#1e1e1e",
  6382. "currentItemStrokeStyle": "solid",
  6383. "currentItemStrokeWidth": 2,
  6384. "currentItemTextAlign": "left",
  6385. "cursorButton": "up",
  6386. "defaultSidebarDockedPreference": false,
  6387. "editingFrame": null,
  6388. "editingGroupId": null,
  6389. "editingLinearElement": null,
  6390. "editingTextElement": null,
  6391. "elementsToHighlight": null,
  6392. "errorMessage": null,
  6393. "exportBackground": true,
  6394. "exportEmbedScene": false,
  6395. "exportScale": 1,
  6396. "exportWithDarkMode": false,
  6397. "fileHandle": null,
  6398. "followedBy": Set {},
  6399. "frameRendering": {
  6400. "clip": true,
  6401. "enabled": true,
  6402. "name": true,
  6403. "outline": true,
  6404. },
  6405. "frameToHighlight": null,
  6406. "gridModeEnabled": false,
  6407. "gridSize": 20,
  6408. "gridStep": 5,
  6409. "height": 0,
  6410. "hoveredElementIds": {},
  6411. "isBindingEnabled": true,
  6412. "isCropping": false,
  6413. "isLoading": false,
  6414. "isResizing": false,
  6415. "isRotating": false,
  6416. "lastPointerDownWith": "mouse",
  6417. "multiElement": null,
  6418. "newElement": null,
  6419. "objectsSnapModeEnabled": false,
  6420. "offsetLeft": 0,
  6421. "offsetTop": 0,
  6422. "openDialog": null,
  6423. "openMenu": null,
  6424. "openPopup": null,
  6425. "openSidebar": null,
  6426. "originSnapOffset": null,
  6427. "pasteDialog": {
  6428. "data": null,
  6429. "shown": false,
  6430. },
  6431. "penDetected": false,
  6432. "penMode": false,
  6433. "pendingImageElementId": null,
  6434. "previousSelectedElementIds": {
  6435. "id106": true,
  6436. },
  6437. "resizingElement": null,
  6438. "scrollX": 0,
  6439. "scrollY": 0,
  6440. "searchMatches": [],
  6441. "selectedElementIds": {
  6442. "id106": true,
  6443. "id107": true,
  6444. },
  6445. "selectedElementsAreBeingDragged": false,
  6446. "selectedGroupIds": {},
  6447. "selectionElement": null,
  6448. "shouldCacheIgnoreZoom": false,
  6449. "showHyperlinkPopup": false,
  6450. "showWelcomeScreen": true,
  6451. "snapLines": [],
  6452. "startBoundElement": null,
  6453. "stats": {
  6454. "open": false,
  6455. "panels": 3,
  6456. },
  6457. "suggestedBindings": [],
  6458. "theme": "light",
  6459. "toast": null,
  6460. "userToFollow": null,
  6461. "viewBackgroundColor": "#ffffff",
  6462. "viewModeEnabled": false,
  6463. "width": 0,
  6464. "zenModeEnabled": false,
  6465. "zoom": {
  6466. "value": 1,
  6467. },
  6468. }
  6469. `;
  6470. exports[`history > multiplayer undo/redo > should iterate through the history when selected elements relate only to remotely deleted elements > [end of test] element 0 1`] = `
  6471. {
  6472. "angle": 0,
  6473. "backgroundColor": "transparent",
  6474. "boundElements": null,
  6475. "customData": undefined,
  6476. "fillStyle": "solid",
  6477. "frameId": null,
  6478. "groupIds": [],
  6479. "height": 100,
  6480. "id": "id105",
  6481. "index": "a0",
  6482. "isDeleted": false,
  6483. "link": null,
  6484. "locked": false,
  6485. "opacity": 100,
  6486. "roughness": 1,
  6487. "roundness": {
  6488. "type": 3,
  6489. },
  6490. "strokeColor": "#1e1e1e",
  6491. "strokeStyle": "solid",
  6492. "strokeWidth": 2,
  6493. "type": "rectangle",
  6494. "updated": 1,
  6495. "version": 2,
  6496. "width": 100,
  6497. "x": 10,
  6498. "y": 10,
  6499. }
  6500. `;
  6501. exports[`history > multiplayer undo/redo > should iterate through the history when selected elements relate only to remotely deleted elements > [end of test] element 1 1`] = `
  6502. {
  6503. "angle": 0,
  6504. "backgroundColor": "transparent",
  6505. "boundElements": null,
  6506. "customData": undefined,
  6507. "fillStyle": "solid",
  6508. "frameId": null,
  6509. "groupIds": [],
  6510. "height": 100,
  6511. "id": "id106",
  6512. "index": "a1",
  6513. "isDeleted": false,
  6514. "link": null,
  6515. "locked": false,
  6516. "opacity": 100,
  6517. "roughness": 1,
  6518. "roundness": {
  6519. "type": 3,
  6520. },
  6521. "strokeColor": "#1e1e1e",
  6522. "strokeStyle": "solid",
  6523. "strokeWidth": 2,
  6524. "type": "rectangle",
  6525. "updated": 1,
  6526. "version": 4,
  6527. "width": 100,
  6528. "x": 20,
  6529. "y": 20,
  6530. }
  6531. `;
  6532. exports[`history > multiplayer undo/redo > should iterate through the history when selected elements relate only to remotely deleted elements > [end of test] element 2 1`] = `
  6533. {
  6534. "angle": 0,
  6535. "backgroundColor": "transparent",
  6536. "boundElements": null,
  6537. "customData": undefined,
  6538. "fillStyle": "solid",
  6539. "frameId": null,
  6540. "groupIds": [],
  6541. "height": 100,
  6542. "id": "id107",
  6543. "index": "a2",
  6544. "isDeleted": false,
  6545. "link": null,
  6546. "locked": false,
  6547. "opacity": 100,
  6548. "roughness": 1,
  6549. "roundness": {
  6550. "type": 3,
  6551. },
  6552. "strokeColor": "#1e1e1e",
  6553. "strokeStyle": "solid",
  6554. "strokeWidth": 2,
  6555. "type": "rectangle",
  6556. "updated": 1,
  6557. "version": 4,
  6558. "width": 100,
  6559. "x": 30,
  6560. "y": 30,
  6561. }
  6562. `;
  6563. exports[`history > multiplayer undo/redo > should iterate through the history when selected elements relate only to remotely deleted elements > [end of test] history 1`] = `
  6564. History {
  6565. "onHistoryChangedEmitter": Emitter {
  6566. "subscribers": [
  6567. [Function],
  6568. [Function],
  6569. ],
  6570. },
  6571. "redoStack": [],
  6572. "undoStack": [
  6573. HistoryEntry {
  6574. "appStateChange": AppStateChange {
  6575. "delta": Delta {
  6576. "deleted": {
  6577. "selectedElementIds": {
  6578. "id105": true,
  6579. },
  6580. },
  6581. "inserted": {
  6582. "selectedElementIds": {},
  6583. },
  6584. },
  6585. },
  6586. "elementsChange": ElementsChange {
  6587. "added": Map {},
  6588. "removed": Map {
  6589. "id105" => Delta {
  6590. "deleted": {
  6591. "angle": 0,
  6592. "backgroundColor": "transparent",
  6593. "boundElements": null,
  6594. "customData": undefined,
  6595. "fillStyle": "solid",
  6596. "frameId": null,
  6597. "groupIds": [],
  6598. "height": 100,
  6599. "index": "a0",
  6600. "isDeleted": false,
  6601. "link": null,
  6602. "locked": false,
  6603. "opacity": 100,
  6604. "roughness": 1,
  6605. "roundness": {
  6606. "type": 3,
  6607. },
  6608. "strokeColor": "#1e1e1e",
  6609. "strokeStyle": "solid",
  6610. "strokeWidth": 2,
  6611. "type": "rectangle",
  6612. "width": 100,
  6613. "x": 10,
  6614. "y": 10,
  6615. },
  6616. "inserted": {
  6617. "isDeleted": true,
  6618. },
  6619. },
  6620. "id106" => Delta {
  6621. "deleted": {
  6622. "angle": 0,
  6623. "backgroundColor": "transparent",
  6624. "boundElements": null,
  6625. "customData": undefined,
  6626. "fillStyle": "solid",
  6627. "frameId": null,
  6628. "groupIds": [],
  6629. "height": 100,
  6630. "index": "a1",
  6631. "isDeleted": false,
  6632. "link": null,
  6633. "locked": false,
  6634. "opacity": 100,
  6635. "roughness": 1,
  6636. "roundness": {
  6637. "type": 3,
  6638. },
  6639. "strokeColor": "#1e1e1e",
  6640. "strokeStyle": "solid",
  6641. "strokeWidth": 2,
  6642. "type": "rectangle",
  6643. "width": 100,
  6644. "x": 20,
  6645. "y": 20,
  6646. },
  6647. "inserted": {
  6648. "isDeleted": true,
  6649. },
  6650. },
  6651. "id107" => Delta {
  6652. "deleted": {
  6653. "angle": 0,
  6654. "backgroundColor": "transparent",
  6655. "boundElements": null,
  6656. "customData": undefined,
  6657. "fillStyle": "solid",
  6658. "frameId": null,
  6659. "groupIds": [],
  6660. "height": 100,
  6661. "index": "a2",
  6662. "isDeleted": false,
  6663. "link": null,
  6664. "locked": false,
  6665. "opacity": 100,
  6666. "roughness": 1,
  6667. "roundness": {
  6668. "type": 3,
  6669. },
  6670. "strokeColor": "#1e1e1e",
  6671. "strokeStyle": "solid",
  6672. "strokeWidth": 2,
  6673. "type": "rectangle",
  6674. "width": 100,
  6675. "x": 30,
  6676. "y": 30,
  6677. },
  6678. "inserted": {
  6679. "isDeleted": true,
  6680. },
  6681. },
  6682. },
  6683. "updated": Map {},
  6684. },
  6685. },
  6686. HistoryEntry {
  6687. "appStateChange": AppStateChange {
  6688. "delta": Delta {
  6689. "deleted": {
  6690. "selectedElementIds": {
  6691. "id106": true,
  6692. },
  6693. },
  6694. "inserted": {
  6695. "selectedElementIds": {
  6696. "id105": true,
  6697. },
  6698. },
  6699. },
  6700. },
  6701. "elementsChange": ElementsChange {
  6702. "added": Map {},
  6703. "removed": Map {},
  6704. "updated": Map {},
  6705. },
  6706. },
  6707. HistoryEntry {
  6708. "appStateChange": AppStateChange {
  6709. "delta": Delta {
  6710. "deleted": {
  6711. "selectedElementIds": {
  6712. "id107": true,
  6713. },
  6714. },
  6715. "inserted": {
  6716. "selectedElementIds": {},
  6717. },
  6718. },
  6719. },
  6720. "elementsChange": ElementsChange {
  6721. "added": Map {},
  6722. "removed": Map {},
  6723. "updated": Map {},
  6724. },
  6725. },
  6726. ],
  6727. }
  6728. `;
  6729. exports[`history > multiplayer undo/redo > should iterate through the history when selected elements relate only to remotely deleted elements > [end of test] number of elements 1`] = `3`;
  6730. exports[`history > multiplayer undo/redo > should iterate through the history when selected elements relate only to remotely deleted elements > [end of test] number of renders 1`] = `15`;
  6731. exports[`history > multiplayer undo/redo > should iterate through the history when selected groups contain only remotely deleted elements > [end of test] appState 1`] = `
  6732. {
  6733. "activeEmbeddable": null,
  6734. "activeTool": {
  6735. "customType": null,
  6736. "fromSelection": false,
  6737. "lastActiveTool": null,
  6738. "locked": false,
  6739. "type": "selection",
  6740. },
  6741. "collaborators": Map {},
  6742. "contextMenu": null,
  6743. "croppingElementId": null,
  6744. "currentChartType": "bar",
  6745. "currentHoveredFontFamily": null,
  6746. "currentItemArrowType": "round",
  6747. "currentItemBackgroundColor": "transparent",
  6748. "currentItemEndArrowhead": "arrow",
  6749. "currentItemFillStyle": "solid",
  6750. "currentItemFontFamily": 5,
  6751. "currentItemFontSize": 20,
  6752. "currentItemOpacity": 100,
  6753. "currentItemRoughness": 1,
  6754. "currentItemRoundness": "round",
  6755. "currentItemStartArrowhead": null,
  6756. "currentItemStrokeColor": "#1e1e1e",
  6757. "currentItemStrokeStyle": "solid",
  6758. "currentItemStrokeWidth": 2,
  6759. "currentItemTextAlign": "left",
  6760. "cursorButton": "up",
  6761. "defaultSidebarDockedPreference": false,
  6762. "editingFrame": null,
  6763. "editingGroupId": null,
  6764. "editingLinearElement": null,
  6765. "editingTextElement": null,
  6766. "elementsToHighlight": null,
  6767. "errorMessage": null,
  6768. "exportBackground": true,
  6769. "exportEmbedScene": false,
  6770. "exportScale": 1,
  6771. "exportWithDarkMode": false,
  6772. "fileHandle": null,
  6773. "followedBy": Set {},
  6774. "frameRendering": {
  6775. "clip": true,
  6776. "enabled": true,
  6777. "name": true,
  6778. "outline": true,
  6779. },
  6780. "frameToHighlight": null,
  6781. "gridModeEnabled": false,
  6782. "gridSize": 20,
  6783. "gridStep": 5,
  6784. "height": 0,
  6785. "hoveredElementIds": {},
  6786. "isBindingEnabled": true,
  6787. "isCropping": false,
  6788. "isLoading": false,
  6789. "isResizing": false,
  6790. "isRotating": false,
  6791. "lastPointerDownWith": "mouse",
  6792. "multiElement": null,
  6793. "newElement": null,
  6794. "objectsSnapModeEnabled": false,
  6795. "offsetLeft": 0,
  6796. "offsetTop": 0,
  6797. "openDialog": null,
  6798. "openMenu": null,
  6799. "openPopup": null,
  6800. "openSidebar": null,
  6801. "originSnapOffset": {
  6802. "x": 0,
  6803. "y": 0,
  6804. },
  6805. "pasteDialog": {
  6806. "data": null,
  6807. "shown": false,
  6808. },
  6809. "penDetected": false,
  6810. "penMode": false,
  6811. "pendingImageElementId": null,
  6812. "previousSelectedElementIds": {},
  6813. "resizingElement": null,
  6814. "scrollX": 0,
  6815. "scrollY": 0,
  6816. "searchMatches": [],
  6817. "selectedElementIds": {
  6818. "id111": true,
  6819. "id112": true,
  6820. "id113": true,
  6821. "id114": true,
  6822. },
  6823. "selectedElementsAreBeingDragged": false,
  6824. "selectedGroupIds": {
  6825. "A": true,
  6826. "B": true,
  6827. },
  6828. "selectionElement": null,
  6829. "shouldCacheIgnoreZoom": false,
  6830. "showHyperlinkPopup": false,
  6831. "showWelcomeScreen": true,
  6832. "snapLines": [],
  6833. "startBoundElement": null,
  6834. "stats": {
  6835. "open": false,
  6836. "panels": 3,
  6837. },
  6838. "suggestedBindings": [],
  6839. "theme": "light",
  6840. "toast": null,
  6841. "userToFollow": null,
  6842. "viewBackgroundColor": "#ffffff",
  6843. "viewModeEnabled": false,
  6844. "width": 0,
  6845. "zenModeEnabled": false,
  6846. "zoom": {
  6847. "value": 1,
  6848. },
  6849. }
  6850. `;
  6851. exports[`history > multiplayer undo/redo > should iterate through the history when selected groups contain only remotely deleted elements > [end of test] element 0 1`] = `
  6852. {
  6853. "angle": 0,
  6854. "backgroundColor": "transparent",
  6855. "boundElements": null,
  6856. "customData": undefined,
  6857. "fillStyle": "solid",
  6858. "frameId": null,
  6859. "groupIds": [
  6860. "A",
  6861. ],
  6862. "height": 100,
  6863. "id": "id111",
  6864. "index": "a0",
  6865. "isDeleted": false,
  6866. "link": null,
  6867. "locked": false,
  6868. "opacity": 100,
  6869. "roughness": 1,
  6870. "roundness": {
  6871. "type": 3,
  6872. },
  6873. "strokeColor": "#1e1e1e",
  6874. "strokeStyle": "solid",
  6875. "strokeWidth": 2,
  6876. "type": "rectangle",
  6877. "updated": 1,
  6878. "version": 4,
  6879. "width": 100,
  6880. "x": 0,
  6881. "y": 0,
  6882. }
  6883. `;
  6884. exports[`history > multiplayer undo/redo > should iterate through the history when selected groups contain only remotely deleted elements > [end of test] element 1 1`] = `
  6885. {
  6886. "angle": 0,
  6887. "backgroundColor": "transparent",
  6888. "boundElements": null,
  6889. "customData": undefined,
  6890. "fillStyle": "solid",
  6891. "frameId": null,
  6892. "groupIds": [
  6893. "A",
  6894. ],
  6895. "height": 100,
  6896. "id": "id112",
  6897. "index": "a1",
  6898. "isDeleted": false,
  6899. "link": null,
  6900. "locked": false,
  6901. "opacity": 100,
  6902. "roughness": 1,
  6903. "roundness": {
  6904. "type": 3,
  6905. },
  6906. "strokeColor": "#1e1e1e",
  6907. "strokeStyle": "solid",
  6908. "strokeWidth": 2,
  6909. "type": "rectangle",
  6910. "updated": 1,
  6911. "version": 4,
  6912. "width": 100,
  6913. "x": 0,
  6914. "y": 0,
  6915. }
  6916. `;
  6917. exports[`history > multiplayer undo/redo > should iterate through the history when selected groups contain only remotely deleted elements > [end of test] element 2 1`] = `
  6918. {
  6919. "angle": 0,
  6920. "backgroundColor": "transparent",
  6921. "boundElements": null,
  6922. "customData": undefined,
  6923. "fillStyle": "solid",
  6924. "frameId": null,
  6925. "groupIds": [
  6926. "B",
  6927. ],
  6928. "height": 100,
  6929. "id": "id113",
  6930. "index": "a2",
  6931. "isDeleted": false,
  6932. "link": null,
  6933. "locked": false,
  6934. "opacity": 100,
  6935. "roughness": 1,
  6936. "roundness": {
  6937. "type": 3,
  6938. },
  6939. "strokeColor": "#1e1e1e",
  6940. "strokeStyle": "solid",
  6941. "strokeWidth": 2,
  6942. "type": "rectangle",
  6943. "updated": 1,
  6944. "version": 2,
  6945. "width": 100,
  6946. "x": 0,
  6947. "y": 0,
  6948. }
  6949. `;
  6950. exports[`history > multiplayer undo/redo > should iterate through the history when selected groups contain only remotely deleted elements > [end of test] element 3 1`] = `
  6951. {
  6952. "angle": 0,
  6953. "backgroundColor": "transparent",
  6954. "boundElements": null,
  6955. "customData": undefined,
  6956. "fillStyle": "solid",
  6957. "frameId": null,
  6958. "groupIds": [
  6959. "B",
  6960. ],
  6961. "height": 100,
  6962. "id": "id114",
  6963. "index": "a3",
  6964. "isDeleted": false,
  6965. "link": null,
  6966. "locked": false,
  6967. "opacity": 100,
  6968. "roughness": 1,
  6969. "roundness": {
  6970. "type": 3,
  6971. },
  6972. "strokeColor": "#1e1e1e",
  6973. "strokeStyle": "solid",
  6974. "strokeWidth": 2,
  6975. "type": "rectangle",
  6976. "updated": 1,
  6977. "version": 2,
  6978. "width": 100,
  6979. "x": 0,
  6980. "y": 0,
  6981. }
  6982. `;
  6983. exports[`history > multiplayer undo/redo > should iterate through the history when selected groups contain only remotely deleted elements > [end of test] history 1`] = `
  6984. History {
  6985. "onHistoryChangedEmitter": Emitter {
  6986. "subscribers": [
  6987. [Function],
  6988. [Function],
  6989. ],
  6990. },
  6991. "redoStack": [],
  6992. "undoStack": [
  6993. HistoryEntry {
  6994. "appStateChange": AppStateChange {
  6995. "delta": Delta {
  6996. "deleted": {
  6997. "selectedElementIds": {
  6998. "id111": true,
  6999. "id112": true,
  7000. },
  7001. "selectedGroupIds": {
  7002. "A": true,
  7003. },
  7004. },
  7005. "inserted": {
  7006. "selectedElementIds": {},
  7007. "selectedGroupIds": {},
  7008. },
  7009. },
  7010. },
  7011. "elementsChange": ElementsChange {
  7012. "added": Map {},
  7013. "removed": Map {},
  7014. "updated": Map {},
  7015. },
  7016. },
  7017. HistoryEntry {
  7018. "appStateChange": AppStateChange {
  7019. "delta": Delta {
  7020. "deleted": {
  7021. "selectedElementIds": {
  7022. "id113": true,
  7023. "id114": true,
  7024. },
  7025. "selectedGroupIds": {
  7026. "B": true,
  7027. },
  7028. },
  7029. "inserted": {
  7030. "selectedElementIds": {},
  7031. "selectedGroupIds": {},
  7032. },
  7033. },
  7034. },
  7035. "elementsChange": ElementsChange {
  7036. "added": Map {},
  7037. "removed": Map {},
  7038. "updated": Map {},
  7039. },
  7040. },
  7041. ],
  7042. }
  7043. `;
  7044. exports[`history > multiplayer undo/redo > should iterate through the history when selected groups contain only remotely deleted elements > [end of test] number of elements 1`] = `4`;
  7045. exports[`history > multiplayer undo/redo > should iterate through the history when selected groups contain only remotely deleted elements > [end of test] number of renders 1`] = `15`;
  7046. exports[`history > multiplayer undo/redo > should iterate through the history when selected or editing linear element was remotely deleted > [end of test] appState 1`] = `
  7047. {
  7048. "activeEmbeddable": null,
  7049. "activeTool": {
  7050. "customType": null,
  7051. "fromSelection": false,
  7052. "lastActiveTool": null,
  7053. "locked": false,
  7054. "type": "selection",
  7055. },
  7056. "collaborators": Map {},
  7057. "contextMenu": null,
  7058. "croppingElementId": null,
  7059. "currentChartType": "bar",
  7060. "currentHoveredFontFamily": null,
  7061. "currentItemArrowType": "round",
  7062. "currentItemBackgroundColor": "transparent",
  7063. "currentItemEndArrowhead": "arrow",
  7064. "currentItemFillStyle": "solid",
  7065. "currentItemFontFamily": 5,
  7066. "currentItemFontSize": 20,
  7067. "currentItemOpacity": 100,
  7068. "currentItemRoughness": 1,
  7069. "currentItemRoundness": "round",
  7070. "currentItemStartArrowhead": null,
  7071. "currentItemStrokeColor": "#1e1e1e",
  7072. "currentItemStrokeStyle": "solid",
  7073. "currentItemStrokeWidth": 2,
  7074. "currentItemTextAlign": "left",
  7075. "cursorButton": "up",
  7076. "defaultSidebarDockedPreference": false,
  7077. "editingFrame": null,
  7078. "editingGroupId": null,
  7079. "editingLinearElement": null,
  7080. "editingTextElement": null,
  7081. "elementsToHighlight": null,
  7082. "errorMessage": null,
  7083. "exportBackground": true,
  7084. "exportEmbedScene": false,
  7085. "exportScale": 1,
  7086. "exportWithDarkMode": false,
  7087. "fileHandle": null,
  7088. "followedBy": Set {},
  7089. "frameRendering": {
  7090. "clip": true,
  7091. "enabled": true,
  7092. "name": true,
  7093. "outline": true,
  7094. },
  7095. "frameToHighlight": null,
  7096. "gridModeEnabled": false,
  7097. "gridSize": 20,
  7098. "gridStep": 5,
  7099. "height": 0,
  7100. "hoveredElementIds": {},
  7101. "isBindingEnabled": true,
  7102. "isCropping": false,
  7103. "isLoading": false,
  7104. "isResizing": false,
  7105. "isRotating": false,
  7106. "lastPointerDownWith": "mouse",
  7107. "multiElement": null,
  7108. "newElement": null,
  7109. "objectsSnapModeEnabled": false,
  7110. "offsetLeft": 0,
  7111. "offsetTop": 0,
  7112. "openDialog": null,
  7113. "openMenu": null,
  7114. "openPopup": null,
  7115. "openSidebar": null,
  7116. "originSnapOffset": null,
  7117. "pasteDialog": {
  7118. "data": null,
  7119. "shown": false,
  7120. },
  7121. "penDetected": false,
  7122. "penMode": false,
  7123. "pendingImageElementId": null,
  7124. "previousSelectedElementIds": {},
  7125. "resizingElement": null,
  7126. "scrollX": 0,
  7127. "scrollY": 0,
  7128. "searchMatches": [],
  7129. "selectedElementIds": {
  7130. "id119": true,
  7131. },
  7132. "selectedElementsAreBeingDragged": false,
  7133. "selectedGroupIds": {},
  7134. "selectionElement": null,
  7135. "shouldCacheIgnoreZoom": false,
  7136. "showHyperlinkPopup": false,
  7137. "showWelcomeScreen": true,
  7138. "snapLines": [],
  7139. "startBoundElement": null,
  7140. "stats": {
  7141. "open": false,
  7142. "panels": 3,
  7143. },
  7144. "suggestedBindings": [],
  7145. "theme": "light",
  7146. "toast": null,
  7147. "userToFollow": null,
  7148. "viewBackgroundColor": "#ffffff",
  7149. "viewModeEnabled": false,
  7150. "width": 0,
  7151. "zenModeEnabled": false,
  7152. "zoom": {
  7153. "value": 1,
  7154. },
  7155. }
  7156. `;
  7157. exports[`history > multiplayer undo/redo > should iterate through the history when selected or editing linear element was remotely deleted > [end of test] element 0 1`] = `
  7158. {
  7159. "angle": 0,
  7160. "backgroundColor": "transparent",
  7161. "boundElements": null,
  7162. "customData": undefined,
  7163. "elbowed": false,
  7164. "endArrowhead": "arrow",
  7165. "endBinding": null,
  7166. "fillStyle": "solid",
  7167. "frameId": null,
  7168. "groupIds": [],
  7169. "height": 10,
  7170. "id": "id119",
  7171. "index": "a0",
  7172. "isDeleted": true,
  7173. "lastCommittedPoint": [
  7174. 10,
  7175. 10,
  7176. ],
  7177. "link": null,
  7178. "locked": false,
  7179. "opacity": 100,
  7180. "points": [
  7181. [
  7182. 0,
  7183. 0,
  7184. ],
  7185. [
  7186. 10,
  7187. 10,
  7188. ],
  7189. ],
  7190. "roughness": 1,
  7191. "roundness": {
  7192. "type": 2,
  7193. },
  7194. "startArrowhead": null,
  7195. "startBinding": null,
  7196. "strokeColor": "#1e1e1e",
  7197. "strokeStyle": "solid",
  7198. "strokeWidth": 2,
  7199. "type": "arrow",
  7200. "updated": 1,
  7201. "version": 7,
  7202. "width": 10,
  7203. "x": 0,
  7204. "y": 0,
  7205. }
  7206. `;
  7207. exports[`history > multiplayer undo/redo > should iterate through the history when selected or editing linear element was remotely deleted > [end of test] history 1`] = `
  7208. History {
  7209. "onHistoryChangedEmitter": Emitter {
  7210. "subscribers": [
  7211. [Function],
  7212. [Function],
  7213. ],
  7214. },
  7215. "redoStack": [],
  7216. "undoStack": [
  7217. HistoryEntry {
  7218. "appStateChange": AppStateChange {
  7219. "delta": Delta {
  7220. "deleted": {
  7221. "selectedElementIds": {
  7222. "id119": true,
  7223. },
  7224. },
  7225. "inserted": {
  7226. "selectedElementIds": {},
  7227. },
  7228. },
  7229. },
  7230. "elementsChange": ElementsChange {
  7231. "added": Map {},
  7232. "removed": Map {
  7233. "id119" => Delta {
  7234. "deleted": {
  7235. "angle": 0,
  7236. "backgroundColor": "transparent",
  7237. "boundElements": null,
  7238. "customData": undefined,
  7239. "elbowed": false,
  7240. "endArrowhead": "arrow",
  7241. "endBinding": null,
  7242. "fillStyle": "solid",
  7243. "frameId": null,
  7244. "groupIds": [],
  7245. "height": 10,
  7246. "index": "a0",
  7247. "isDeleted": false,
  7248. "lastCommittedPoint": [
  7249. 10,
  7250. 10,
  7251. ],
  7252. "link": null,
  7253. "locked": false,
  7254. "opacity": 100,
  7255. "points": [
  7256. [
  7257. 0,
  7258. 0,
  7259. ],
  7260. [
  7261. 10,
  7262. 10,
  7263. ],
  7264. ],
  7265. "roughness": 1,
  7266. "roundness": {
  7267. "type": 2,
  7268. },
  7269. "startArrowhead": null,
  7270. "startBinding": null,
  7271. "strokeColor": "#1e1e1e",
  7272. "strokeStyle": "solid",
  7273. "strokeWidth": 2,
  7274. "type": "arrow",
  7275. "width": 10,
  7276. "x": 0,
  7277. "y": 0,
  7278. },
  7279. "inserted": {
  7280. "isDeleted": true,
  7281. },
  7282. },
  7283. },
  7284. "updated": Map {},
  7285. },
  7286. },
  7287. HistoryEntry {
  7288. "appStateChange": AppStateChange {
  7289. "delta": Delta {
  7290. "deleted": {
  7291. "selectedLinearElementId": "id119",
  7292. },
  7293. "inserted": {
  7294. "selectedLinearElementId": null,
  7295. },
  7296. },
  7297. },
  7298. "elementsChange": ElementsChange {
  7299. "added": Map {},
  7300. "removed": Map {},
  7301. "updated": Map {},
  7302. },
  7303. },
  7304. HistoryEntry {
  7305. "appStateChange": AppStateChange {
  7306. "delta": Delta {
  7307. "deleted": {
  7308. "editingLinearElementId": "id119",
  7309. },
  7310. "inserted": {
  7311. "editingLinearElementId": null,
  7312. },
  7313. },
  7314. },
  7315. "elementsChange": ElementsChange {
  7316. "added": Map {},
  7317. "removed": Map {},
  7318. "updated": Map {},
  7319. },
  7320. },
  7321. HistoryEntry {
  7322. "appStateChange": AppStateChange {
  7323. "delta": Delta {
  7324. "deleted": {
  7325. "editingLinearElementId": null,
  7326. },
  7327. "inserted": {
  7328. "editingLinearElementId": "id119",
  7329. },
  7330. },
  7331. },
  7332. "elementsChange": ElementsChange {
  7333. "added": Map {},
  7334. "removed": Map {},
  7335. "updated": Map {},
  7336. },
  7337. },
  7338. ],
  7339. }
  7340. `;
  7341. exports[`history > multiplayer undo/redo > should iterate through the history when selected or editing linear element was remotely deleted > [end of test] number of elements 1`] = `1`;
  7342. exports[`history > multiplayer undo/redo > should iterate through the history when selected or editing linear element was remotely deleted > [end of test] number of renders 1`] = `10`;
  7343. exports[`history > multiplayer undo/redo > should iterate through the history when when element change relates to remotely deleted element > [end of test] appState 1`] = `
  7344. {
  7345. "activeEmbeddable": null,
  7346. "activeTool": {
  7347. "customType": null,
  7348. "fromSelection": false,
  7349. "lastActiveTool": null,
  7350. "locked": false,
  7351. "type": "selection",
  7352. },
  7353. "collaborators": Map {},
  7354. "contextMenu": null,
  7355. "croppingElementId": null,
  7356. "currentChartType": "bar",
  7357. "currentHoveredFontFamily": null,
  7358. "currentItemArrowType": "round",
  7359. "currentItemBackgroundColor": "#ffc9c9",
  7360. "currentItemEndArrowhead": "arrow",
  7361. "currentItemFillStyle": "solid",
  7362. "currentItemFontFamily": 5,
  7363. "currentItemFontSize": 20,
  7364. "currentItemOpacity": 100,
  7365. "currentItemRoughness": 1,
  7366. "currentItemRoundness": "round",
  7367. "currentItemStartArrowhead": null,
  7368. "currentItemStrokeColor": "#1e1e1e",
  7369. "currentItemStrokeStyle": "solid",
  7370. "currentItemStrokeWidth": 2,
  7371. "currentItemTextAlign": "left",
  7372. "cursorButton": "up",
  7373. "defaultSidebarDockedPreference": false,
  7374. "editingFrame": null,
  7375. "editingGroupId": null,
  7376. "editingLinearElement": null,
  7377. "editingTextElement": null,
  7378. "elementsToHighlight": null,
  7379. "errorMessage": null,
  7380. "exportBackground": true,
  7381. "exportEmbedScene": false,
  7382. "exportScale": 1,
  7383. "exportWithDarkMode": false,
  7384. "fileHandle": null,
  7385. "followedBy": Set {},
  7386. "frameRendering": {
  7387. "clip": true,
  7388. "enabled": true,
  7389. "name": true,
  7390. "outline": true,
  7391. },
  7392. "frameToHighlight": null,
  7393. "gridModeEnabled": false,
  7394. "gridSize": 20,
  7395. "gridStep": 5,
  7396. "height": 0,
  7397. "hoveredElementIds": {},
  7398. "isBindingEnabled": true,
  7399. "isCropping": false,
  7400. "isLoading": false,
  7401. "isResizing": false,
  7402. "isRotating": false,
  7403. "lastPointerDownWith": "mouse",
  7404. "multiElement": null,
  7405. "newElement": null,
  7406. "objectsSnapModeEnabled": false,
  7407. "offsetLeft": 0,
  7408. "offsetTop": 0,
  7409. "openDialog": null,
  7410. "openMenu": null,
  7411. "openPopup": "elementBackground",
  7412. "openSidebar": null,
  7413. "originSnapOffset": null,
  7414. "pasteDialog": {
  7415. "data": null,
  7416. "shown": false,
  7417. },
  7418. "penDetected": false,
  7419. "penMode": false,
  7420. "pendingImageElementId": null,
  7421. "previousSelectedElementIds": {},
  7422. "resizingElement": null,
  7423. "scrollX": 0,
  7424. "scrollY": 0,
  7425. "searchMatches": [],
  7426. "selectedElementIds": {},
  7427. "selectedElementsAreBeingDragged": false,
  7428. "selectedGroupIds": {},
  7429. "selectionElement": null,
  7430. "shouldCacheIgnoreZoom": false,
  7431. "showHyperlinkPopup": false,
  7432. "showWelcomeScreen": true,
  7433. "snapLines": [],
  7434. "startBoundElement": null,
  7435. "stats": {
  7436. "open": false,
  7437. "panels": 3,
  7438. },
  7439. "suggestedBindings": [],
  7440. "theme": "light",
  7441. "toast": null,
  7442. "userToFollow": null,
  7443. "viewBackgroundColor": "#ffffff",
  7444. "viewModeEnabled": false,
  7445. "width": 0,
  7446. "zenModeEnabled": false,
  7447. "zoom": {
  7448. "value": 1,
  7449. },
  7450. }
  7451. `;
  7452. exports[`history > multiplayer undo/redo > should iterate through the history when when element change relates to remotely deleted element > [end of test] element 0 1`] = `
  7453. {
  7454. "angle": 0,
  7455. "backgroundColor": "#ffec99",
  7456. "boundElements": null,
  7457. "customData": undefined,
  7458. "fillStyle": "solid",
  7459. "frameId": null,
  7460. "groupIds": [],
  7461. "height": 10,
  7462. "id": "id100",
  7463. "index": "a0",
  7464. "isDeleted": true,
  7465. "link": null,
  7466. "locked": false,
  7467. "opacity": 100,
  7468. "roughness": 1,
  7469. "roundness": {
  7470. "type": 3,
  7471. },
  7472. "strokeColor": "#1e1e1e",
  7473. "strokeStyle": "solid",
  7474. "strokeWidth": 2,
  7475. "type": "rectangle",
  7476. "updated": 1,
  7477. "version": 7,
  7478. "width": 10,
  7479. "x": 10,
  7480. "y": 0,
  7481. }
  7482. `;
  7483. exports[`history > multiplayer undo/redo > should iterate through the history when when element change relates to remotely deleted element > [end of test] history 1`] = `
  7484. History {
  7485. "onHistoryChangedEmitter": Emitter {
  7486. "subscribers": [
  7487. [Function],
  7488. [Function],
  7489. ],
  7490. },
  7491. "redoStack": [],
  7492. "undoStack": [
  7493. HistoryEntry {
  7494. "appStateChange": AppStateChange {
  7495. "delta": Delta {
  7496. "deleted": {
  7497. "selectedElementIds": {
  7498. "id100": true,
  7499. },
  7500. },
  7501. "inserted": {
  7502. "selectedElementIds": {},
  7503. },
  7504. },
  7505. },
  7506. "elementsChange": ElementsChange {
  7507. "added": Map {},
  7508. "removed": Map {},
  7509. "updated": Map {
  7510. "id100" => Delta {
  7511. "deleted": {
  7512. "angle": 0,
  7513. "backgroundColor": "#ffec99",
  7514. "boundElements": null,
  7515. "customData": undefined,
  7516. "fillStyle": "solid",
  7517. "frameId": null,
  7518. "groupIds": [],
  7519. "height": 10,
  7520. "index": "a0",
  7521. "isDeleted": true,
  7522. "link": null,
  7523. "locked": false,
  7524. "opacity": 100,
  7525. "roughness": 1,
  7526. "roundness": {
  7527. "type": 3,
  7528. },
  7529. "strokeColor": "#1e1e1e",
  7530. "strokeStyle": "solid",
  7531. "strokeWidth": 2,
  7532. "type": "rectangle",
  7533. "width": 10,
  7534. "x": 10,
  7535. "y": 0,
  7536. },
  7537. "inserted": {
  7538. "isDeleted": true,
  7539. },
  7540. },
  7541. },
  7542. },
  7543. },
  7544. HistoryEntry {
  7545. "appStateChange": AppStateChange {
  7546. "delta": Delta {
  7547. "deleted": {},
  7548. "inserted": {},
  7549. },
  7550. },
  7551. "elementsChange": ElementsChange {
  7552. "added": Map {},
  7553. "removed": Map {},
  7554. "updated": Map {
  7555. "id100" => Delta {
  7556. "deleted": {
  7557. "backgroundColor": "#ffec99",
  7558. },
  7559. "inserted": {
  7560. "backgroundColor": "transparent",
  7561. },
  7562. },
  7563. },
  7564. },
  7565. },
  7566. ],
  7567. }
  7568. `;
  7569. exports[`history > multiplayer undo/redo > should iterate through the history when when element change relates to remotely deleted element > [end of test] number of elements 1`] = `1`;
  7570. exports[`history > multiplayer undo/redo > should iterate through the history when when element change relates to remotely deleted element > [end of test] number of renders 1`] = `9`;
  7571. exports[`history > multiplayer undo/redo > should iterate through the history when z-index changes do not produce visible change and we synced all indices > [end of test] appState 1`] = `
  7572. {
  7573. "activeEmbeddable": null,
  7574. "activeTool": {
  7575. "customType": null,
  7576. "fromSelection": false,
  7577. "lastActiveTool": null,
  7578. "locked": false,
  7579. "type": "selection",
  7580. },
  7581. "collaborators": Map {},
  7582. "contextMenu": null,
  7583. "croppingElementId": null,
  7584. "currentChartType": "bar",
  7585. "currentHoveredFontFamily": null,
  7586. "currentItemArrowType": "round",
  7587. "currentItemBackgroundColor": "transparent",
  7588. "currentItemEndArrowhead": "arrow",
  7589. "currentItemFillStyle": "solid",
  7590. "currentItemFontFamily": 5,
  7591. "currentItemFontSize": 20,
  7592. "currentItemOpacity": 100,
  7593. "currentItemRoughness": 1,
  7594. "currentItemRoundness": "round",
  7595. "currentItemStartArrowhead": null,
  7596. "currentItemStrokeColor": "#1e1e1e",
  7597. "currentItemStrokeStyle": "solid",
  7598. "currentItemStrokeWidth": 2,
  7599. "currentItemTextAlign": "left",
  7600. "cursorButton": "up",
  7601. "defaultSidebarDockedPreference": false,
  7602. "editingFrame": null,
  7603. "editingGroupId": null,
  7604. "editingLinearElement": null,
  7605. "editingTextElement": null,
  7606. "elementsToHighlight": null,
  7607. "errorMessage": null,
  7608. "exportBackground": true,
  7609. "exportEmbedScene": false,
  7610. "exportScale": 1,
  7611. "exportWithDarkMode": false,
  7612. "fileHandle": null,
  7613. "followedBy": Set {},
  7614. "frameRendering": {
  7615. "clip": true,
  7616. "enabled": true,
  7617. "name": true,
  7618. "outline": true,
  7619. },
  7620. "frameToHighlight": null,
  7621. "gridModeEnabled": false,
  7622. "gridSize": 20,
  7623. "gridStep": 5,
  7624. "height": 0,
  7625. "hoveredElementIds": {},
  7626. "isBindingEnabled": true,
  7627. "isCropping": false,
  7628. "isLoading": false,
  7629. "isResizing": false,
  7630. "isRotating": false,
  7631. "lastPointerDownWith": "mouse",
  7632. "multiElement": null,
  7633. "newElement": null,
  7634. "objectsSnapModeEnabled": false,
  7635. "offsetLeft": 0,
  7636. "offsetTop": 0,
  7637. "openDialog": null,
  7638. "openMenu": null,
  7639. "openPopup": null,
  7640. "openSidebar": null,
  7641. "originSnapOffset": null,
  7642. "pasteDialog": {
  7643. "data": null,
  7644. "shown": false,
  7645. },
  7646. "penDetected": false,
  7647. "penMode": false,
  7648. "pendingImageElementId": null,
  7649. "previousSelectedElementIds": {},
  7650. "resizingElement": null,
  7651. "scrollX": 0,
  7652. "scrollY": 0,
  7653. "searchMatches": [],
  7654. "selectedElementIds": {},
  7655. "selectedElementsAreBeingDragged": false,
  7656. "selectedGroupIds": {},
  7657. "selectionElement": null,
  7658. "shouldCacheIgnoreZoom": false,
  7659. "showHyperlinkPopup": false,
  7660. "showWelcomeScreen": true,
  7661. "snapLines": [],
  7662. "startBoundElement": null,
  7663. "stats": {
  7664. "open": false,
  7665. "panels": 3,
  7666. },
  7667. "suggestedBindings": [],
  7668. "theme": "light",
  7669. "toast": null,
  7670. "userToFollow": null,
  7671. "viewBackgroundColor": "#ffffff",
  7672. "viewModeEnabled": false,
  7673. "width": 0,
  7674. "zenModeEnabled": false,
  7675. "zoom": {
  7676. "value": 1,
  7677. },
  7678. }
  7679. `;
  7680. exports[`history > multiplayer undo/redo > should iterate through the history when z-index changes do not produce visible change and we synced all indices > [end of test] element 0 1`] = `
  7681. {
  7682. "angle": 0,
  7683. "backgroundColor": "transparent",
  7684. "boundElements": null,
  7685. "customData": undefined,
  7686. "fillStyle": "solid",
  7687. "frameId": null,
  7688. "groupIds": [],
  7689. "height": 100,
  7690. "id": "id125",
  7691. "index": "a1",
  7692. "isDeleted": true,
  7693. "link": null,
  7694. "locked": false,
  7695. "opacity": 100,
  7696. "roughness": 1,
  7697. "roundness": {
  7698. "type": 3,
  7699. },
  7700. "strokeColor": "#1e1e1e",
  7701. "strokeStyle": "solid",
  7702. "strokeWidth": 2,
  7703. "type": "rectangle",
  7704. "updated": 1,
  7705. "version": 8,
  7706. "width": 100,
  7707. "x": 20,
  7708. "y": 20,
  7709. }
  7710. `;
  7711. exports[`history > multiplayer undo/redo > should iterate through the history when z-index changes do not produce visible change and we synced all indices > [end of test] element 1 1`] = `
  7712. {
  7713. "angle": 0,
  7714. "backgroundColor": "transparent",
  7715. "boundElements": null,
  7716. "customData": undefined,
  7717. "fillStyle": "solid",
  7718. "frameId": null,
  7719. "groupIds": [],
  7720. "height": 100,
  7721. "id": "id126",
  7722. "index": "a3V",
  7723. "isDeleted": true,
  7724. "link": null,
  7725. "locked": false,
  7726. "opacity": 100,
  7727. "roughness": 1,
  7728. "roundness": {
  7729. "type": 3,
  7730. },
  7731. "strokeColor": "#1e1e1e",
  7732. "strokeStyle": "solid",
  7733. "strokeWidth": 2,
  7734. "type": "rectangle",
  7735. "updated": 1,
  7736. "version": 4,
  7737. "width": 100,
  7738. "x": 30,
  7739. "y": 30,
  7740. }
  7741. `;
  7742. exports[`history > multiplayer undo/redo > should iterate through the history when z-index changes do not produce visible change and we synced all indices > [end of test] element 2 1`] = `
  7743. {
  7744. "angle": 0,
  7745. "backgroundColor": "transparent",
  7746. "boundElements": null,
  7747. "customData": undefined,
  7748. "fillStyle": "solid",
  7749. "frameId": null,
  7750. "groupIds": [],
  7751. "height": 100,
  7752. "id": "id124",
  7753. "index": "a4",
  7754. "isDeleted": true,
  7755. "link": null,
  7756. "locked": false,
  7757. "opacity": 100,
  7758. "roughness": 1,
  7759. "roundness": {
  7760. "type": 3,
  7761. },
  7762. "strokeColor": "#1e1e1e",
  7763. "strokeStyle": "solid",
  7764. "strokeWidth": 2,
  7765. "type": "rectangle",
  7766. "updated": 1,
  7767. "version": 4,
  7768. "width": 100,
  7769. "x": 10,
  7770. "y": 10,
  7771. }
  7772. `;
  7773. exports[`history > multiplayer undo/redo > should iterate through the history when z-index changes do not produce visible change and we synced all indices > [end of test] history 1`] = `
  7774. History {
  7775. "onHistoryChangedEmitter": Emitter {
  7776. "subscribers": [
  7777. [Function],
  7778. [Function],
  7779. ],
  7780. },
  7781. "redoStack": [
  7782. HistoryEntry {
  7783. "appStateChange": AppStateChange {
  7784. "delta": Delta {
  7785. "deleted": {},
  7786. "inserted": {},
  7787. },
  7788. },
  7789. "elementsChange": ElementsChange {
  7790. "added": Map {},
  7791. "removed": Map {},
  7792. "updated": Map {
  7793. "id125" => Delta {
  7794. "deleted": {
  7795. "index": "a1",
  7796. },
  7797. "inserted": {
  7798. "index": "a3",
  7799. },
  7800. },
  7801. },
  7802. },
  7803. },
  7804. HistoryEntry {
  7805. "appStateChange": AppStateChange {
  7806. "delta": Delta {
  7807. "deleted": {
  7808. "selectedElementIds": {},
  7809. },
  7810. "inserted": {
  7811. "selectedElementIds": {
  7812. "id125": true,
  7813. },
  7814. },
  7815. },
  7816. },
  7817. "elementsChange": ElementsChange {
  7818. "added": Map {
  7819. "id124" => Delta {
  7820. "deleted": {
  7821. "isDeleted": true,
  7822. },
  7823. "inserted": {
  7824. "angle": 0,
  7825. "backgroundColor": "transparent",
  7826. "boundElements": null,
  7827. "customData": undefined,
  7828. "fillStyle": "solid",
  7829. "frameId": null,
  7830. "groupIds": [],
  7831. "height": 100,
  7832. "index": "a4",
  7833. "isDeleted": false,
  7834. "link": null,
  7835. "locked": false,
  7836. "opacity": 100,
  7837. "roughness": 1,
  7838. "roundness": {
  7839. "type": 3,
  7840. },
  7841. "strokeColor": "#1e1e1e",
  7842. "strokeStyle": "solid",
  7843. "strokeWidth": 2,
  7844. "type": "rectangle",
  7845. "width": 100,
  7846. "x": 10,
  7847. "y": 10,
  7848. },
  7849. },
  7850. "id125" => Delta {
  7851. "deleted": {
  7852. "isDeleted": true,
  7853. },
  7854. "inserted": {
  7855. "angle": 0,
  7856. "backgroundColor": "transparent",
  7857. "boundElements": null,
  7858. "customData": undefined,
  7859. "fillStyle": "solid",
  7860. "frameId": null,
  7861. "groupIds": [],
  7862. "height": 100,
  7863. "index": "a3",
  7864. "isDeleted": false,
  7865. "link": null,
  7866. "locked": false,
  7867. "opacity": 100,
  7868. "roughness": 1,
  7869. "roundness": {
  7870. "type": 3,
  7871. },
  7872. "strokeColor": "#1e1e1e",
  7873. "strokeStyle": "solid",
  7874. "strokeWidth": 2,
  7875. "type": "rectangle",
  7876. "width": 100,
  7877. "x": 20,
  7878. "y": 20,
  7879. },
  7880. },
  7881. "id126" => Delta {
  7882. "deleted": {
  7883. "isDeleted": true,
  7884. },
  7885. "inserted": {
  7886. "angle": 0,
  7887. "backgroundColor": "transparent",
  7888. "boundElements": null,
  7889. "customData": undefined,
  7890. "fillStyle": "solid",
  7891. "frameId": null,
  7892. "groupIds": [],
  7893. "height": 100,
  7894. "index": "a3V",
  7895. "isDeleted": false,
  7896. "link": null,
  7897. "locked": false,
  7898. "opacity": 100,
  7899. "roughness": 1,
  7900. "roundness": {
  7901. "type": 3,
  7902. },
  7903. "strokeColor": "#1e1e1e",
  7904. "strokeStyle": "solid",
  7905. "strokeWidth": 2,
  7906. "type": "rectangle",
  7907. "width": 100,
  7908. "x": 30,
  7909. "y": 30,
  7910. },
  7911. },
  7912. },
  7913. "removed": Map {},
  7914. "updated": Map {},
  7915. },
  7916. },
  7917. ],
  7918. "undoStack": [],
  7919. }
  7920. `;
  7921. exports[`history > multiplayer undo/redo > should iterate through the history when z-index changes do not produce visible change and we synced all indices > [end of test] number of elements 1`] = `3`;
  7922. exports[`history > multiplayer undo/redo > should iterate through the history when z-index changes do not produce visible change and we synced all indices > [end of test] number of renders 1`] = `11`;
  7923. exports[`history > multiplayer undo/redo > should iterate through the history when z-index changes do not produce visible change and we synced changed indices > [end of test] appState 1`] = `
  7924. {
  7925. "activeEmbeddable": null,
  7926. "activeTool": {
  7927. "customType": null,
  7928. "fromSelection": false,
  7929. "lastActiveTool": null,
  7930. "locked": false,
  7931. "type": "selection",
  7932. },
  7933. "collaborators": Map {},
  7934. "contextMenu": null,
  7935. "croppingElementId": null,
  7936. "currentChartType": "bar",
  7937. "currentHoveredFontFamily": null,
  7938. "currentItemArrowType": "round",
  7939. "currentItemBackgroundColor": "transparent",
  7940. "currentItemEndArrowhead": "arrow",
  7941. "currentItemFillStyle": "solid",
  7942. "currentItemFontFamily": 5,
  7943. "currentItemFontSize": 20,
  7944. "currentItemOpacity": 100,
  7945. "currentItemRoughness": 1,
  7946. "currentItemRoundness": "round",
  7947. "currentItemStartArrowhead": null,
  7948. "currentItemStrokeColor": "#1e1e1e",
  7949. "currentItemStrokeStyle": "solid",
  7950. "currentItemStrokeWidth": 2,
  7951. "currentItemTextAlign": "left",
  7952. "cursorButton": "up",
  7953. "defaultSidebarDockedPreference": false,
  7954. "editingFrame": null,
  7955. "editingGroupId": null,
  7956. "editingLinearElement": null,
  7957. "editingTextElement": null,
  7958. "elementsToHighlight": null,
  7959. "errorMessage": null,
  7960. "exportBackground": true,
  7961. "exportEmbedScene": false,
  7962. "exportScale": 1,
  7963. "exportWithDarkMode": false,
  7964. "fileHandle": null,
  7965. "followedBy": Set {},
  7966. "frameRendering": {
  7967. "clip": true,
  7968. "enabled": true,
  7969. "name": true,
  7970. "outline": true,
  7971. },
  7972. "frameToHighlight": null,
  7973. "gridModeEnabled": false,
  7974. "gridSize": 20,
  7975. "gridStep": 5,
  7976. "height": 0,
  7977. "hoveredElementIds": {},
  7978. "isBindingEnabled": true,
  7979. "isCropping": false,
  7980. "isLoading": false,
  7981. "isResizing": false,
  7982. "isRotating": false,
  7983. "lastPointerDownWith": "mouse",
  7984. "multiElement": null,
  7985. "newElement": null,
  7986. "objectsSnapModeEnabled": false,
  7987. "offsetLeft": 0,
  7988. "offsetTop": 0,
  7989. "openDialog": null,
  7990. "openMenu": null,
  7991. "openPopup": null,
  7992. "openSidebar": null,
  7993. "originSnapOffset": null,
  7994. "pasteDialog": {
  7995. "data": null,
  7996. "shown": false,
  7997. },
  7998. "penDetected": false,
  7999. "penMode": false,
  8000. "pendingImageElementId": null,
  8001. "previousSelectedElementIds": {},
  8002. "resizingElement": null,
  8003. "scrollX": 0,
  8004. "scrollY": 0,
  8005. "searchMatches": [],
  8006. "selectedElementIds": {},
  8007. "selectedElementsAreBeingDragged": false,
  8008. "selectedGroupIds": {},
  8009. "selectionElement": null,
  8010. "shouldCacheIgnoreZoom": false,
  8011. "showHyperlinkPopup": false,
  8012. "showWelcomeScreen": true,
  8013. "snapLines": [],
  8014. "startBoundElement": null,
  8015. "stats": {
  8016. "open": false,
  8017. "panels": 3,
  8018. },
  8019. "suggestedBindings": [],
  8020. "theme": "light",
  8021. "toast": null,
  8022. "userToFollow": null,
  8023. "viewBackgroundColor": "#ffffff",
  8024. "viewModeEnabled": false,
  8025. "width": 0,
  8026. "zenModeEnabled": false,
  8027. "zoom": {
  8028. "value": 1,
  8029. },
  8030. }
  8031. `;
  8032. exports[`history > multiplayer undo/redo > should iterate through the history when z-index changes do not produce visible change and we synced changed indices > [end of test] element 0 1`] = `
  8033. {
  8034. "angle": 0,
  8035. "backgroundColor": "transparent",
  8036. "boundElements": null,
  8037. "customData": undefined,
  8038. "fillStyle": "solid",
  8039. "frameId": null,
  8040. "groupIds": [],
  8041. "height": 100,
  8042. "id": "id120",
  8043. "index": "Zx",
  8044. "isDeleted": true,
  8045. "link": null,
  8046. "locked": false,
  8047. "opacity": 100,
  8048. "roughness": 1,
  8049. "roundness": {
  8050. "type": 3,
  8051. },
  8052. "strokeColor": "#1e1e1e",
  8053. "strokeStyle": "solid",
  8054. "strokeWidth": 2,
  8055. "type": "rectangle",
  8056. "updated": 1,
  8057. "version": 4,
  8058. "width": 100,
  8059. "x": 10,
  8060. "y": 10,
  8061. }
  8062. `;
  8063. exports[`history > multiplayer undo/redo > should iterate through the history when z-index changes do not produce visible change and we synced changed indices > [end of test] element 1 1`] = `
  8064. {
  8065. "angle": 0,
  8066. "backgroundColor": "transparent",
  8067. "boundElements": null,
  8068. "customData": undefined,
  8069. "fillStyle": "solid",
  8070. "frameId": null,
  8071. "groupIds": [],
  8072. "height": 100,
  8073. "id": "id122",
  8074. "index": "Zy",
  8075. "isDeleted": true,
  8076. "link": null,
  8077. "locked": false,
  8078. "opacity": 100,
  8079. "roughness": 1,
  8080. "roundness": {
  8081. "type": 3,
  8082. },
  8083. "strokeColor": "#1e1e1e",
  8084. "strokeStyle": "solid",
  8085. "strokeWidth": 2,
  8086. "type": "rectangle",
  8087. "updated": 1,
  8088. "version": 4,
  8089. "width": 100,
  8090. "x": 30,
  8091. "y": 30,
  8092. }
  8093. `;
  8094. exports[`history > multiplayer undo/redo > should iterate through the history when z-index changes do not produce visible change and we synced changed indices > [end of test] element 2 1`] = `
  8095. {
  8096. "angle": 0,
  8097. "backgroundColor": "transparent",
  8098. "boundElements": null,
  8099. "customData": undefined,
  8100. "fillStyle": "solid",
  8101. "frameId": null,
  8102. "groupIds": [],
  8103. "height": 100,
  8104. "id": "id121",
  8105. "index": "a1",
  8106. "isDeleted": true,
  8107. "link": null,
  8108. "locked": false,
  8109. "opacity": 100,
  8110. "roughness": 1,
  8111. "roundness": {
  8112. "type": 3,
  8113. },
  8114. "strokeColor": "#1e1e1e",
  8115. "strokeStyle": "solid",
  8116. "strokeWidth": 2,
  8117. "type": "rectangle",
  8118. "updated": 1,
  8119. "version": 7,
  8120. "width": 100,
  8121. "x": 20,
  8122. "y": 20,
  8123. }
  8124. `;
  8125. exports[`history > multiplayer undo/redo > should iterate through the history when z-index changes do not produce visible change and we synced changed indices > [end of test] history 1`] = `
  8126. History {
  8127. "onHistoryChangedEmitter": Emitter {
  8128. "subscribers": [
  8129. [Function],
  8130. [Function],
  8131. ],
  8132. },
  8133. "redoStack": [
  8134. HistoryEntry {
  8135. "appStateChange": AppStateChange {
  8136. "delta": Delta {
  8137. "deleted": {},
  8138. "inserted": {},
  8139. },
  8140. },
  8141. "elementsChange": ElementsChange {
  8142. "added": Map {},
  8143. "removed": Map {},
  8144. "updated": Map {
  8145. "id121" => Delta {
  8146. "deleted": {
  8147. "index": "a1",
  8148. },
  8149. "inserted": {
  8150. "index": "Zz",
  8151. },
  8152. },
  8153. },
  8154. },
  8155. },
  8156. HistoryEntry {
  8157. "appStateChange": AppStateChange {
  8158. "delta": Delta {
  8159. "deleted": {
  8160. "selectedElementIds": {},
  8161. },
  8162. "inserted": {
  8163. "selectedElementIds": {
  8164. "id121": true,
  8165. },
  8166. },
  8167. },
  8168. },
  8169. "elementsChange": ElementsChange {
  8170. "added": Map {
  8171. "id120" => Delta {
  8172. "deleted": {
  8173. "isDeleted": true,
  8174. },
  8175. "inserted": {
  8176. "angle": 0,
  8177. "backgroundColor": "transparent",
  8178. "boundElements": null,
  8179. "customData": undefined,
  8180. "fillStyle": "solid",
  8181. "frameId": null,
  8182. "groupIds": [],
  8183. "height": 100,
  8184. "index": "Zx",
  8185. "isDeleted": false,
  8186. "link": null,
  8187. "locked": false,
  8188. "opacity": 100,
  8189. "roughness": 1,
  8190. "roundness": {
  8191. "type": 3,
  8192. },
  8193. "strokeColor": "#1e1e1e",
  8194. "strokeStyle": "solid",
  8195. "strokeWidth": 2,
  8196. "type": "rectangle",
  8197. "width": 100,
  8198. "x": 10,
  8199. "y": 10,
  8200. },
  8201. },
  8202. "id121" => Delta {
  8203. "deleted": {
  8204. "isDeleted": true,
  8205. },
  8206. "inserted": {
  8207. "angle": 0,
  8208. "backgroundColor": "transparent",
  8209. "boundElements": null,
  8210. "customData": undefined,
  8211. "fillStyle": "solid",
  8212. "frameId": null,
  8213. "groupIds": [],
  8214. "height": 100,
  8215. "index": "Zz",
  8216. "isDeleted": false,
  8217. "link": null,
  8218. "locked": false,
  8219. "opacity": 100,
  8220. "roughness": 1,
  8221. "roundness": {
  8222. "type": 3,
  8223. },
  8224. "strokeColor": "#1e1e1e",
  8225. "strokeStyle": "solid",
  8226. "strokeWidth": 2,
  8227. "type": "rectangle",
  8228. "width": 100,
  8229. "x": 20,
  8230. "y": 20,
  8231. },
  8232. },
  8233. "id122" => Delta {
  8234. "deleted": {
  8235. "isDeleted": true,
  8236. },
  8237. "inserted": {
  8238. "angle": 0,
  8239. "backgroundColor": "transparent",
  8240. "boundElements": null,
  8241. "customData": undefined,
  8242. "fillStyle": "solid",
  8243. "frameId": null,
  8244. "groupIds": [],
  8245. "height": 100,
  8246. "index": "Zy",
  8247. "isDeleted": false,
  8248. "link": null,
  8249. "locked": false,
  8250. "opacity": 100,
  8251. "roughness": 1,
  8252. "roundness": {
  8253. "type": 3,
  8254. },
  8255. "strokeColor": "#1e1e1e",
  8256. "strokeStyle": "solid",
  8257. "strokeWidth": 2,
  8258. "type": "rectangle",
  8259. "width": 100,
  8260. "x": 30,
  8261. "y": 30,
  8262. },
  8263. },
  8264. },
  8265. "removed": Map {},
  8266. "updated": Map {},
  8267. },
  8268. },
  8269. ],
  8270. "undoStack": [],
  8271. }
  8272. `;
  8273. exports[`history > multiplayer undo/redo > should iterate through the history when z-index changes do not produce visible change and we synced changed indices > [end of test] number of elements 1`] = `3`;
  8274. exports[`history > multiplayer undo/redo > should iterate through the history when z-index changes do not produce visible change and we synced changed indices > [end of test] number of renders 1`] = `11`;
  8275. exports[`history > multiplayer undo/redo > should not let remote changes to interfere with in progress dragging > [end of test] appState 1`] = `
  8276. {
  8277. "activeEmbeddable": null,
  8278. "activeTool": {
  8279. "customType": null,
  8280. "fromSelection": false,
  8281. "lastActiveTool": null,
  8282. "locked": false,
  8283. "type": "selection",
  8284. },
  8285. "collaborators": Map {},
  8286. "contextMenu": null,
  8287. "croppingElementId": null,
  8288. "currentChartType": "bar",
  8289. "currentHoveredFontFamily": null,
  8290. "currentItemArrowType": "round",
  8291. "currentItemBackgroundColor": "transparent",
  8292. "currentItemEndArrowhead": "arrow",
  8293. "currentItemFillStyle": "solid",
  8294. "currentItemFontFamily": 5,
  8295. "currentItemFontSize": 20,
  8296. "currentItemOpacity": 100,
  8297. "currentItemRoughness": 1,
  8298. "currentItemRoundness": "round",
  8299. "currentItemStartArrowhead": null,
  8300. "currentItemStrokeColor": "#1e1e1e",
  8301. "currentItemStrokeStyle": "solid",
  8302. "currentItemStrokeWidth": 2,
  8303. "currentItemTextAlign": "left",
  8304. "cursorButton": "up",
  8305. "defaultSidebarDockedPreference": false,
  8306. "editingFrame": null,
  8307. "editingGroupId": null,
  8308. "editingLinearElement": null,
  8309. "editingTextElement": null,
  8310. "elementsToHighlight": null,
  8311. "errorMessage": null,
  8312. "exportBackground": true,
  8313. "exportEmbedScene": false,
  8314. "exportScale": 1,
  8315. "exportWithDarkMode": false,
  8316. "fileHandle": null,
  8317. "followedBy": Set {},
  8318. "frameRendering": {
  8319. "clip": true,
  8320. "enabled": true,
  8321. "name": true,
  8322. "outline": true,
  8323. },
  8324. "frameToHighlight": null,
  8325. "gridModeEnabled": false,
  8326. "gridSize": 20,
  8327. "gridStep": 5,
  8328. "height": 0,
  8329. "hoveredElementIds": {},
  8330. "isBindingEnabled": true,
  8331. "isCropping": false,
  8332. "isLoading": false,
  8333. "isResizing": false,
  8334. "isRotating": false,
  8335. "lastPointerDownWith": "mouse",
  8336. "multiElement": null,
  8337. "newElement": null,
  8338. "objectsSnapModeEnabled": false,
  8339. "offsetLeft": 0,
  8340. "offsetTop": 0,
  8341. "openDialog": null,
  8342. "openMenu": null,
  8343. "openPopup": null,
  8344. "openSidebar": null,
  8345. "originSnapOffset": null,
  8346. "pasteDialog": {
  8347. "data": null,
  8348. "shown": false,
  8349. },
  8350. "penDetected": false,
  8351. "penMode": false,
  8352. "pendingImageElementId": null,
  8353. "previousSelectedElementIds": {
  8354. "id133": true,
  8355. "id134": true,
  8356. },
  8357. "resizingElement": null,
  8358. "scrollX": 0,
  8359. "scrollY": 0,
  8360. "searchMatches": [],
  8361. "selectedElementIds": {
  8362. "id133": true,
  8363. "id134": true,
  8364. },
  8365. "selectedElementsAreBeingDragged": false,
  8366. "selectedGroupIds": {},
  8367. "selectionElement": null,
  8368. "shouldCacheIgnoreZoom": false,
  8369. "showHyperlinkPopup": false,
  8370. "showWelcomeScreen": true,
  8371. "snapLines": [],
  8372. "startBoundElement": null,
  8373. "stats": {
  8374. "open": false,
  8375. "panels": 3,
  8376. },
  8377. "suggestedBindings": [],
  8378. "theme": "light",
  8379. "toast": null,
  8380. "userToFollow": null,
  8381. "viewBackgroundColor": "#ffffff",
  8382. "viewModeEnabled": false,
  8383. "width": 0,
  8384. "zenModeEnabled": false,
  8385. "zoom": {
  8386. "value": 1,
  8387. },
  8388. }
  8389. `;
  8390. exports[`history > multiplayer undo/redo > should not let remote changes to interfere with in progress dragging > [end of test] element 0 1`] = `
  8391. {
  8392. "angle": 0,
  8393. "backgroundColor": "transparent",
  8394. "boundElements": null,
  8395. "customData": undefined,
  8396. "fillStyle": "solid",
  8397. "frameId": null,
  8398. "groupIds": [],
  8399. "height": 10,
  8400. "id": "id133",
  8401. "index": "a0",
  8402. "isDeleted": false,
  8403. "link": null,
  8404. "locked": false,
  8405. "opacity": 100,
  8406. "roughness": 1,
  8407. "roundness": {
  8408. "type": 3,
  8409. },
  8410. "strokeColor": "#1e1e1e",
  8411. "strokeStyle": "solid",
  8412. "strokeWidth": 2,
  8413. "type": "rectangle",
  8414. "updated": 1,
  8415. "version": 9,
  8416. "width": 10,
  8417. "x": 90,
  8418. "y": 90,
  8419. }
  8420. `;
  8421. exports[`history > multiplayer undo/redo > should not let remote changes to interfere with in progress dragging > [end of test] element 1 1`] = `
  8422. {
  8423. "angle": 0,
  8424. "backgroundColor": "transparent",
  8425. "boundElements": null,
  8426. "customData": undefined,
  8427. "fillStyle": "solid",
  8428. "frameId": null,
  8429. "groupIds": [],
  8430. "height": 10,
  8431. "id": "id134",
  8432. "index": "a1",
  8433. "isDeleted": false,
  8434. "link": null,
  8435. "locked": false,
  8436. "opacity": 100,
  8437. "roughness": 1,
  8438. "roundness": {
  8439. "type": 3,
  8440. },
  8441. "strokeColor": "#1e1e1e",
  8442. "strokeStyle": "solid",
  8443. "strokeWidth": 2,
  8444. "type": "rectangle",
  8445. "updated": 1,
  8446. "version": 9,
  8447. "width": 10,
  8448. "x": 110,
  8449. "y": 110,
  8450. }
  8451. `;
  8452. exports[`history > multiplayer undo/redo > should not let remote changes to interfere with in progress dragging > [end of test] element 2 1`] = `
  8453. {
  8454. "angle": 0,
  8455. "backgroundColor": "transparent",
  8456. "boundElements": null,
  8457. "customData": undefined,
  8458. "fillStyle": "solid",
  8459. "frameId": null,
  8460. "groupIds": [],
  8461. "height": 100,
  8462. "id": "id138",
  8463. "index": "a2",
  8464. "isDeleted": false,
  8465. "link": null,
  8466. "locked": false,
  8467. "opacity": 100,
  8468. "roughness": 1,
  8469. "roundness": {
  8470. "type": 3,
  8471. },
  8472. "strokeColor": "#a5d8ff",
  8473. "strokeStyle": "solid",
  8474. "strokeWidth": 2,
  8475. "type": "rectangle",
  8476. "updated": 1,
  8477. "version": 2,
  8478. "width": 100,
  8479. "x": 0,
  8480. "y": 0,
  8481. }
  8482. `;
  8483. exports[`history > multiplayer undo/redo > should not let remote changes to interfere with in progress dragging > [end of test] history 1`] = `
  8484. History {
  8485. "onHistoryChangedEmitter": Emitter {
  8486. "subscribers": [
  8487. [Function],
  8488. [Function],
  8489. ],
  8490. },
  8491. "redoStack": [],
  8492. "undoStack": [
  8493. HistoryEntry {
  8494. "appStateChange": AppStateChange {
  8495. "delta": Delta {
  8496. "deleted": {
  8497. "selectedElementIds": {
  8498. "id133": true,
  8499. },
  8500. },
  8501. "inserted": {
  8502. "selectedElementIds": {},
  8503. },
  8504. },
  8505. },
  8506. "elementsChange": ElementsChange {
  8507. "added": Map {},
  8508. "removed": Map {
  8509. "id133" => Delta {
  8510. "deleted": {
  8511. "angle": 0,
  8512. "backgroundColor": "transparent",
  8513. "boundElements": null,
  8514. "customData": undefined,
  8515. "fillStyle": "solid",
  8516. "frameId": null,
  8517. "groupIds": [],
  8518. "height": 10,
  8519. "index": "a0",
  8520. "isDeleted": false,
  8521. "link": null,
  8522. "locked": false,
  8523. "opacity": 100,
  8524. "roughness": 1,
  8525. "roundness": {
  8526. "type": 3,
  8527. },
  8528. "strokeColor": "#1e1e1e",
  8529. "strokeStyle": "solid",
  8530. "strokeWidth": 2,
  8531. "type": "rectangle",
  8532. "width": 10,
  8533. "x": 10,
  8534. "y": 10,
  8535. },
  8536. "inserted": {
  8537. "isDeleted": true,
  8538. },
  8539. },
  8540. },
  8541. "updated": Map {},
  8542. },
  8543. },
  8544. HistoryEntry {
  8545. "appStateChange": AppStateChange {
  8546. "delta": Delta {
  8547. "deleted": {
  8548. "selectedElementIds": {
  8549. "id134": true,
  8550. },
  8551. },
  8552. "inserted": {
  8553. "selectedElementIds": {
  8554. "id133": true,
  8555. },
  8556. },
  8557. },
  8558. },
  8559. "elementsChange": ElementsChange {
  8560. "added": Map {},
  8561. "removed": Map {
  8562. "id134" => Delta {
  8563. "deleted": {
  8564. "angle": 0,
  8565. "backgroundColor": "transparent",
  8566. "boundElements": null,
  8567. "customData": undefined,
  8568. "fillStyle": "solid",
  8569. "frameId": null,
  8570. "groupIds": [],
  8571. "height": 10,
  8572. "index": "a1",
  8573. "isDeleted": false,
  8574. "link": null,
  8575. "locked": false,
  8576. "opacity": 100,
  8577. "roughness": 1,
  8578. "roundness": {
  8579. "type": 3,
  8580. },
  8581. "strokeColor": "#1e1e1e",
  8582. "strokeStyle": "solid",
  8583. "strokeWidth": 2,
  8584. "type": "rectangle",
  8585. "width": 10,
  8586. "x": 30,
  8587. "y": 30,
  8588. },
  8589. "inserted": {
  8590. "isDeleted": true,
  8591. },
  8592. },
  8593. },
  8594. "updated": Map {},
  8595. },
  8596. },
  8597. HistoryEntry {
  8598. "appStateChange": AppStateChange {
  8599. "delta": Delta {
  8600. "deleted": {
  8601. "selectedElementIds": {
  8602. "id133": true,
  8603. },
  8604. },
  8605. "inserted": {
  8606. "selectedElementIds": {
  8607. "id134": true,
  8608. },
  8609. },
  8610. },
  8611. },
  8612. "elementsChange": ElementsChange {
  8613. "added": Map {},
  8614. "removed": Map {},
  8615. "updated": Map {},
  8616. },
  8617. },
  8618. HistoryEntry {
  8619. "appStateChange": AppStateChange {
  8620. "delta": Delta {
  8621. "deleted": {
  8622. "selectedElementIds": {
  8623. "id134": true,
  8624. },
  8625. },
  8626. "inserted": {
  8627. "selectedElementIds": {},
  8628. },
  8629. },
  8630. },
  8631. "elementsChange": ElementsChange {
  8632. "added": Map {},
  8633. "removed": Map {},
  8634. "updated": Map {},
  8635. },
  8636. },
  8637. HistoryEntry {
  8638. "appStateChange": AppStateChange {
  8639. "delta": Delta {
  8640. "deleted": {},
  8641. "inserted": {},
  8642. },
  8643. },
  8644. "elementsChange": ElementsChange {
  8645. "added": Map {},
  8646. "removed": Map {},
  8647. "updated": Map {
  8648. "id133" => Delta {
  8649. "deleted": {
  8650. "x": 90,
  8651. "y": 90,
  8652. },
  8653. "inserted": {
  8654. "x": 10,
  8655. "y": 10,
  8656. },
  8657. },
  8658. "id134" => Delta {
  8659. "deleted": {
  8660. "x": 110,
  8661. "y": 110,
  8662. },
  8663. "inserted": {
  8664. "x": 30,
  8665. "y": 30,
  8666. },
  8667. },
  8668. },
  8669. },
  8670. },
  8671. ],
  8672. }
  8673. `;
  8674. exports[`history > multiplayer undo/redo > should not let remote changes to interfere with in progress dragging > [end of test] number of elements 1`] = `3`;
  8675. exports[`history > multiplayer undo/redo > should not let remote changes to interfere with in progress dragging > [end of test] number of renders 1`] = `25`;
  8676. exports[`history > multiplayer undo/redo > should not let remote changes to interfere with in progress freedraw > [end of test] appState 1`] = `
  8677. {
  8678. "activeEmbeddable": null,
  8679. "activeTool": {
  8680. "customType": null,
  8681. "fromSelection": false,
  8682. "lastActiveTool": null,
  8683. "locked": false,
  8684. "type": "freedraw",
  8685. },
  8686. "collaborators": Map {},
  8687. "contextMenu": null,
  8688. "croppingElementId": null,
  8689. "currentChartType": "bar",
  8690. "currentHoveredFontFamily": null,
  8691. "currentItemArrowType": "round",
  8692. "currentItemBackgroundColor": "transparent",
  8693. "currentItemEndArrowhead": "arrow",
  8694. "currentItemFillStyle": "solid",
  8695. "currentItemFontFamily": 5,
  8696. "currentItemFontSize": 20,
  8697. "currentItemOpacity": 100,
  8698. "currentItemRoughness": 1,
  8699. "currentItemRoundness": "round",
  8700. "currentItemStartArrowhead": null,
  8701. "currentItemStrokeColor": "#1e1e1e",
  8702. "currentItemStrokeStyle": "solid",
  8703. "currentItemStrokeWidth": 2,
  8704. "currentItemTextAlign": "left",
  8705. "cursorButton": "up",
  8706. "defaultSidebarDockedPreference": false,
  8707. "editingFrame": null,
  8708. "editingGroupId": null,
  8709. "editingLinearElement": null,
  8710. "editingTextElement": null,
  8711. "elementsToHighlight": null,
  8712. "errorMessage": null,
  8713. "exportBackground": true,
  8714. "exportEmbedScene": false,
  8715. "exportScale": 1,
  8716. "exportWithDarkMode": false,
  8717. "fileHandle": null,
  8718. "followedBy": Set {},
  8719. "frameRendering": {
  8720. "clip": true,
  8721. "enabled": true,
  8722. "name": true,
  8723. "outline": true,
  8724. },
  8725. "frameToHighlight": null,
  8726. "gridModeEnabled": false,
  8727. "gridSize": 20,
  8728. "gridStep": 5,
  8729. "height": 0,
  8730. "hoveredElementIds": {},
  8731. "isBindingEnabled": true,
  8732. "isCropping": false,
  8733. "isLoading": false,
  8734. "isResizing": false,
  8735. "isRotating": false,
  8736. "lastPointerDownWith": "mouse",
  8737. "multiElement": null,
  8738. "newElement": null,
  8739. "objectsSnapModeEnabled": false,
  8740. "offsetLeft": 0,
  8741. "offsetTop": 0,
  8742. "openDialog": null,
  8743. "openMenu": null,
  8744. "openPopup": null,
  8745. "openSidebar": null,
  8746. "originSnapOffset": null,
  8747. "pasteDialog": {
  8748. "data": null,
  8749. "shown": false,
  8750. },
  8751. "penDetected": false,
  8752. "penMode": false,
  8753. "pendingImageElementId": null,
  8754. "previousSelectedElementIds": {},
  8755. "resizingElement": null,
  8756. "scrollX": 0,
  8757. "scrollY": 0,
  8758. "searchMatches": [],
  8759. "selectedElementIds": {},
  8760. "selectedElementsAreBeingDragged": false,
  8761. "selectedGroupIds": {},
  8762. "selectionElement": null,
  8763. "shouldCacheIgnoreZoom": false,
  8764. "showHyperlinkPopup": false,
  8765. "showWelcomeScreen": true,
  8766. "snapLines": [],
  8767. "startBoundElement": null,
  8768. "stats": {
  8769. "open": false,
  8770. "panels": 3,
  8771. },
  8772. "suggestedBindings": [],
  8773. "theme": "light",
  8774. "toast": null,
  8775. "userToFollow": null,
  8776. "viewBackgroundColor": "#ffffff",
  8777. "viewModeEnabled": false,
  8778. "width": 0,
  8779. "zenModeEnabled": false,
  8780. "zoom": {
  8781. "value": 1,
  8782. },
  8783. }
  8784. `;
  8785. exports[`history > multiplayer undo/redo > should not let remote changes to interfere with in progress freedraw > [end of test] element 0 1`] = `
  8786. {
  8787. "angle": 0,
  8788. "backgroundColor": "transparent",
  8789. "boundElements": null,
  8790. "customData": undefined,
  8791. "fillStyle": "solid",
  8792. "frameId": null,
  8793. "groupIds": [],
  8794. "height": 50,
  8795. "id": "id128",
  8796. "index": "a0",
  8797. "isDeleted": false,
  8798. "lastCommittedPoint": [
  8799. 50,
  8800. 50,
  8801. ],
  8802. "link": null,
  8803. "locked": false,
  8804. "opacity": 100,
  8805. "points": [
  8806. [
  8807. 0,
  8808. 0,
  8809. ],
  8810. [
  8811. 20,
  8812. 20,
  8813. ],
  8814. [
  8815. 50,
  8816. 50,
  8817. ],
  8818. [
  8819. 50,
  8820. 50,
  8821. ],
  8822. ],
  8823. "pressures": [
  8824. 0,
  8825. 0,
  8826. 0,
  8827. 0,
  8828. ],
  8829. "roughness": 1,
  8830. "roundness": null,
  8831. "simulatePressure": false,
  8832. "strokeColor": "#1e1e1e",
  8833. "strokeStyle": "solid",
  8834. "strokeWidth": 2,
  8835. "type": "freedraw",
  8836. "updated": 1,
  8837. "version": 7,
  8838. "width": 50,
  8839. "x": 10,
  8840. "y": 10,
  8841. }
  8842. `;
  8843. exports[`history > multiplayer undo/redo > should not let remote changes to interfere with in progress freedraw > [end of test] element 1 1`] = `
  8844. {
  8845. "angle": 0,
  8846. "backgroundColor": "transparent",
  8847. "boundElements": null,
  8848. "customData": undefined,
  8849. "fillStyle": "solid",
  8850. "frameId": null,
  8851. "groupIds": [],
  8852. "height": 100,
  8853. "id": "id129",
  8854. "index": "a1",
  8855. "isDeleted": false,
  8856. "link": null,
  8857. "locked": false,
  8858. "opacity": 100,
  8859. "roughness": 1,
  8860. "roundness": {
  8861. "type": 3,
  8862. },
  8863. "strokeColor": "#a5d8ff",
  8864. "strokeStyle": "solid",
  8865. "strokeWidth": 2,
  8866. "type": "rectangle",
  8867. "updated": 1,
  8868. "version": 2,
  8869. "width": 100,
  8870. "x": 0,
  8871. "y": 0,
  8872. }
  8873. `;
  8874. exports[`history > multiplayer undo/redo > should not let remote changes to interfere with in progress freedraw > [end of test] history 1`] = `
  8875. History {
  8876. "onHistoryChangedEmitter": Emitter {
  8877. "subscribers": [
  8878. [Function],
  8879. [Function],
  8880. ],
  8881. },
  8882. "redoStack": [],
  8883. "undoStack": [
  8884. HistoryEntry {
  8885. "appStateChange": AppStateChange {
  8886. "delta": Delta {
  8887. "deleted": {},
  8888. "inserted": {},
  8889. },
  8890. },
  8891. "elementsChange": ElementsChange {
  8892. "added": Map {},
  8893. "removed": Map {
  8894. "id128" => Delta {
  8895. "deleted": {
  8896. "angle": 0,
  8897. "backgroundColor": "transparent",
  8898. "boundElements": null,
  8899. "customData": undefined,
  8900. "fillStyle": "solid",
  8901. "frameId": null,
  8902. "groupIds": [],
  8903. "height": 50,
  8904. "index": "a0",
  8905. "isDeleted": false,
  8906. "lastCommittedPoint": [
  8907. 50,
  8908. 50,
  8909. ],
  8910. "link": null,
  8911. "locked": false,
  8912. "opacity": 100,
  8913. "points": [
  8914. [
  8915. 0,
  8916. 0,
  8917. ],
  8918. [
  8919. 20,
  8920. 20,
  8921. ],
  8922. [
  8923. 50,
  8924. 50,
  8925. ],
  8926. [
  8927. 50,
  8928. 50,
  8929. ],
  8930. ],
  8931. "pressures": [
  8932. 0,
  8933. 0,
  8934. 0,
  8935. 0,
  8936. ],
  8937. "roughness": 1,
  8938. "roundness": null,
  8939. "simulatePressure": false,
  8940. "strokeColor": "#1e1e1e",
  8941. "strokeStyle": "solid",
  8942. "strokeWidth": 2,
  8943. "type": "freedraw",
  8944. "width": 50,
  8945. "x": 10,
  8946. "y": 10,
  8947. },
  8948. "inserted": {
  8949. "isDeleted": true,
  8950. },
  8951. },
  8952. },
  8953. "updated": Map {},
  8954. },
  8955. },
  8956. ],
  8957. }
  8958. `;
  8959. exports[`history > multiplayer undo/redo > should not let remote changes to interfere with in progress freedraw > [end of test] number of elements 1`] = `2`;
  8960. exports[`history > multiplayer undo/redo > should not let remote changes to interfere with in progress freedraw > [end of test] number of renders 1`] = `8`;
  8961. exports[`history > multiplayer undo/redo > should not let remote changes to interfere with in progress resizing > [end of test] appState 1`] = `
  8962. {
  8963. "activeEmbeddable": null,
  8964. "activeTool": {
  8965. "customType": null,
  8966. "fromSelection": false,
  8967. "lastActiveTool": null,
  8968. "locked": false,
  8969. "type": "selection",
  8970. },
  8971. "collaborators": Map {},
  8972. "contextMenu": null,
  8973. "croppingElementId": null,
  8974. "currentChartType": "bar",
  8975. "currentHoveredFontFamily": null,
  8976. "currentItemArrowType": "round",
  8977. "currentItemBackgroundColor": "transparent",
  8978. "currentItemEndArrowhead": "arrow",
  8979. "currentItemFillStyle": "solid",
  8980. "currentItemFontFamily": 5,
  8981. "currentItemFontSize": 20,
  8982. "currentItemOpacity": 100,
  8983. "currentItemRoughness": 1,
  8984. "currentItemRoundness": "round",
  8985. "currentItemStartArrowhead": null,
  8986. "currentItemStrokeColor": "#1e1e1e",
  8987. "currentItemStrokeStyle": "solid",
  8988. "currentItemStrokeWidth": 2,
  8989. "currentItemTextAlign": "left",
  8990. "cursorButton": "up",
  8991. "defaultSidebarDockedPreference": false,
  8992. "editingFrame": null,
  8993. "editingGroupId": null,
  8994. "editingLinearElement": null,
  8995. "editingTextElement": null,
  8996. "elementsToHighlight": null,
  8997. "errorMessage": null,
  8998. "exportBackground": true,
  8999. "exportEmbedScene": false,
  9000. "exportScale": 1,
  9001. "exportWithDarkMode": false,
  9002. "fileHandle": null,
  9003. "followedBy": Set {},
  9004. "frameRendering": {
  9005. "clip": true,
  9006. "enabled": true,
  9007. "name": true,
  9008. "outline": true,
  9009. },
  9010. "frameToHighlight": null,
  9011. "gridModeEnabled": false,
  9012. "gridSize": 20,
  9013. "gridStep": 5,
  9014. "height": 0,
  9015. "hoveredElementIds": {},
  9016. "isBindingEnabled": true,
  9017. "isCropping": false,
  9018. "isLoading": false,
  9019. "isResizing": false,
  9020. "isRotating": false,
  9021. "lastPointerDownWith": "mouse",
  9022. "multiElement": null,
  9023. "newElement": null,
  9024. "objectsSnapModeEnabled": false,
  9025. "offsetLeft": 0,
  9026. "offsetTop": 0,
  9027. "openDialog": null,
  9028. "openMenu": null,
  9029. "openPopup": null,
  9030. "openSidebar": null,
  9031. "originSnapOffset": null,
  9032. "pasteDialog": {
  9033. "data": null,
  9034. "shown": false,
  9035. },
  9036. "penDetected": false,
  9037. "penMode": false,
  9038. "pendingImageElementId": null,
  9039. "previousSelectedElementIds": {},
  9040. "resizingElement": null,
  9041. "scrollX": 0,
  9042. "scrollY": 0,
  9043. "searchMatches": [],
  9044. "selectedElementIds": {
  9045. "id130": true,
  9046. },
  9047. "selectedElementsAreBeingDragged": false,
  9048. "selectedGroupIds": {},
  9049. "selectionElement": null,
  9050. "shouldCacheIgnoreZoom": false,
  9051. "showHyperlinkPopup": false,
  9052. "showWelcomeScreen": true,
  9053. "snapLines": [],
  9054. "startBoundElement": null,
  9055. "stats": {
  9056. "open": false,
  9057. "panels": 3,
  9058. },
  9059. "suggestedBindings": [],
  9060. "theme": "light",
  9061. "toast": null,
  9062. "userToFollow": null,
  9063. "viewBackgroundColor": "#ffffff",
  9064. "viewModeEnabled": false,
  9065. "width": 0,
  9066. "zenModeEnabled": false,
  9067. "zoom": {
  9068. "value": 1,
  9069. },
  9070. }
  9071. `;
  9072. exports[`history > multiplayer undo/redo > should not let remote changes to interfere with in progress resizing > [end of test] element 0 1`] = `
  9073. {
  9074. "angle": 0,
  9075. "backgroundColor": "transparent",
  9076. "boundElements": null,
  9077. "customData": undefined,
  9078. "fillStyle": "solid",
  9079. "frameId": null,
  9080. "groupIds": [],
  9081. "height": 90,
  9082. "id": "id130",
  9083. "index": "a0",
  9084. "isDeleted": false,
  9085. "link": null,
  9086. "locked": false,
  9087. "opacity": 100,
  9088. "roughness": 1,
  9089. "roundness": {
  9090. "type": 3,
  9091. },
  9092. "strokeColor": "#1e1e1e",
  9093. "strokeStyle": "solid",
  9094. "strokeWidth": 2,
  9095. "type": "rectangle",
  9096. "updated": 1,
  9097. "version": 9,
  9098. "width": 90,
  9099. "x": 10,
  9100. "y": 10,
  9101. }
  9102. `;
  9103. exports[`history > multiplayer undo/redo > should not let remote changes to interfere with in progress resizing > [end of test] element 1 1`] = `
  9104. {
  9105. "angle": 0,
  9106. "backgroundColor": "transparent",
  9107. "boundElements": null,
  9108. "customData": undefined,
  9109. "fillStyle": "solid",
  9110. "frameId": null,
  9111. "groupIds": [],
  9112. "height": 100,
  9113. "id": "id132",
  9114. "index": "a1",
  9115. "isDeleted": false,
  9116. "link": null,
  9117. "locked": false,
  9118. "opacity": 100,
  9119. "roughness": 1,
  9120. "roundness": {
  9121. "type": 3,
  9122. },
  9123. "strokeColor": "#a5d8ff",
  9124. "strokeStyle": "solid",
  9125. "strokeWidth": 2,
  9126. "type": "rectangle",
  9127. "updated": 1,
  9128. "version": 2,
  9129. "width": 100,
  9130. "x": 0,
  9131. "y": 0,
  9132. }
  9133. `;
  9134. exports[`history > multiplayer undo/redo > should not let remote changes to interfere with in progress resizing > [end of test] history 1`] = `
  9135. History {
  9136. "onHistoryChangedEmitter": Emitter {
  9137. "subscribers": [
  9138. [Function],
  9139. [Function],
  9140. ],
  9141. },
  9142. "redoStack": [],
  9143. "undoStack": [
  9144. HistoryEntry {
  9145. "appStateChange": AppStateChange {
  9146. "delta": Delta {
  9147. "deleted": {
  9148. "selectedElementIds": {
  9149. "id130": true,
  9150. },
  9151. },
  9152. "inserted": {
  9153. "selectedElementIds": {},
  9154. },
  9155. },
  9156. },
  9157. "elementsChange": ElementsChange {
  9158. "added": Map {},
  9159. "removed": Map {
  9160. "id130" => Delta {
  9161. "deleted": {
  9162. "angle": 0,
  9163. "backgroundColor": "transparent",
  9164. "boundElements": null,
  9165. "customData": undefined,
  9166. "fillStyle": "solid",
  9167. "frameId": null,
  9168. "groupIds": [],
  9169. "height": 10,
  9170. "index": "a0",
  9171. "isDeleted": false,
  9172. "link": null,
  9173. "locked": false,
  9174. "opacity": 100,
  9175. "roughness": 1,
  9176. "roundness": {
  9177. "type": 3,
  9178. },
  9179. "strokeColor": "#1e1e1e",
  9180. "strokeStyle": "solid",
  9181. "strokeWidth": 2,
  9182. "type": "rectangle",
  9183. "width": 10,
  9184. "x": 10,
  9185. "y": 10,
  9186. },
  9187. "inserted": {
  9188. "isDeleted": true,
  9189. },
  9190. },
  9191. },
  9192. "updated": Map {},
  9193. },
  9194. },
  9195. HistoryEntry {
  9196. "appStateChange": AppStateChange {
  9197. "delta": Delta {
  9198. "deleted": {},
  9199. "inserted": {},
  9200. },
  9201. },
  9202. "elementsChange": ElementsChange {
  9203. "added": Map {},
  9204. "removed": Map {},
  9205. "updated": Map {
  9206. "id130" => Delta {
  9207. "deleted": {
  9208. "height": 90,
  9209. "width": 90,
  9210. },
  9211. "inserted": {
  9212. "height": 10,
  9213. "width": 10,
  9214. },
  9215. },
  9216. },
  9217. },
  9218. },
  9219. ],
  9220. }
  9221. `;
  9222. exports[`history > multiplayer undo/redo > should not let remote changes to interfere with in progress resizing > [end of test] number of elements 1`] = `2`;
  9223. exports[`history > multiplayer undo/redo > should not let remote changes to interfere with in progress resizing > [end of test] number of renders 1`] = `13`;
  9224. exports[`history > multiplayer undo/redo > should not override remote changes on different elements > [end of test] appState 1`] = `
  9225. {
  9226. "activeEmbeddable": null,
  9227. "activeTool": {
  9228. "customType": null,
  9229. "fromSelection": false,
  9230. "lastActiveTool": null,
  9231. "locked": false,
  9232. "type": "selection",
  9233. },
  9234. "collaborators": Map {},
  9235. "contextMenu": null,
  9236. "croppingElementId": null,
  9237. "currentChartType": "bar",
  9238. "currentHoveredFontFamily": null,
  9239. "currentItemArrowType": "round",
  9240. "currentItemBackgroundColor": "#ffc9c9",
  9241. "currentItemEndArrowhead": "arrow",
  9242. "currentItemFillStyle": "solid",
  9243. "currentItemFontFamily": 5,
  9244. "currentItemFontSize": 20,
  9245. "currentItemOpacity": 100,
  9246. "currentItemRoughness": 1,
  9247. "currentItemRoundness": "round",
  9248. "currentItemStartArrowhead": null,
  9249. "currentItemStrokeColor": "#1e1e1e",
  9250. "currentItemStrokeStyle": "solid",
  9251. "currentItemStrokeWidth": 2,
  9252. "currentItemTextAlign": "left",
  9253. "cursorButton": "up",
  9254. "defaultSidebarDockedPreference": false,
  9255. "editingFrame": null,
  9256. "editingGroupId": null,
  9257. "editingLinearElement": null,
  9258. "editingTextElement": null,
  9259. "elementsToHighlight": null,
  9260. "errorMessage": null,
  9261. "exportBackground": true,
  9262. "exportEmbedScene": false,
  9263. "exportScale": 1,
  9264. "exportWithDarkMode": false,
  9265. "fileHandle": null,
  9266. "followedBy": Set {},
  9267. "frameRendering": {
  9268. "clip": true,
  9269. "enabled": true,
  9270. "name": true,
  9271. "outline": true,
  9272. },
  9273. "frameToHighlight": null,
  9274. "gridModeEnabled": false,
  9275. "gridSize": 20,
  9276. "gridStep": 5,
  9277. "height": 0,
  9278. "hoveredElementIds": {},
  9279. "isBindingEnabled": true,
  9280. "isCropping": false,
  9281. "isLoading": false,
  9282. "isResizing": false,
  9283. "isRotating": false,
  9284. "lastPointerDownWith": "mouse",
  9285. "multiElement": null,
  9286. "newElement": null,
  9287. "objectsSnapModeEnabled": false,
  9288. "offsetLeft": 0,
  9289. "offsetTop": 0,
  9290. "openDialog": null,
  9291. "openMenu": null,
  9292. "openPopup": "elementBackground",
  9293. "openSidebar": null,
  9294. "originSnapOffset": null,
  9295. "pasteDialog": {
  9296. "data": null,
  9297. "shown": false,
  9298. },
  9299. "penDetected": false,
  9300. "penMode": false,
  9301. "pendingImageElementId": null,
  9302. "previousSelectedElementIds": {},
  9303. "resizingElement": null,
  9304. "scrollX": 0,
  9305. "scrollY": 0,
  9306. "searchMatches": [],
  9307. "selectedElementIds": {
  9308. "id87": true,
  9309. },
  9310. "selectedElementsAreBeingDragged": false,
  9311. "selectedGroupIds": {},
  9312. "selectionElement": null,
  9313. "shouldCacheIgnoreZoom": false,
  9314. "showHyperlinkPopup": false,
  9315. "showWelcomeScreen": true,
  9316. "snapLines": [],
  9317. "startBoundElement": null,
  9318. "stats": {
  9319. "open": false,
  9320. "panels": 3,
  9321. },
  9322. "suggestedBindings": [],
  9323. "theme": "light",
  9324. "toast": null,
  9325. "userToFollow": null,
  9326. "viewBackgroundColor": "#ffffff",
  9327. "viewModeEnabled": false,
  9328. "width": 0,
  9329. "zenModeEnabled": false,
  9330. "zoom": {
  9331. "value": 1,
  9332. },
  9333. }
  9334. `;
  9335. exports[`history > multiplayer undo/redo > should not override remote changes on different elements > [end of test] element 0 1`] = `
  9336. {
  9337. "angle": 0,
  9338. "backgroundColor": "transparent",
  9339. "boundElements": null,
  9340. "customData": undefined,
  9341. "fillStyle": "solid",
  9342. "frameId": null,
  9343. "groupIds": [],
  9344. "height": 10,
  9345. "id": "id87",
  9346. "index": "a0",
  9347. "isDeleted": false,
  9348. "link": null,
  9349. "locked": false,
  9350. "opacity": 100,
  9351. "roughness": 1,
  9352. "roundness": {
  9353. "type": 3,
  9354. },
  9355. "strokeColor": "#1e1e1e",
  9356. "strokeStyle": "solid",
  9357. "strokeWidth": 2,
  9358. "type": "rectangle",
  9359. "updated": 1,
  9360. "version": 7,
  9361. "width": 10,
  9362. "x": 10,
  9363. "y": 0,
  9364. }
  9365. `;
  9366. exports[`history > multiplayer undo/redo > should not override remote changes on different elements > [end of test] element 1 1`] = `
  9367. {
  9368. "angle": 0,
  9369. "backgroundColor": "#ffc9c9",
  9370. "boundElements": null,
  9371. "customData": undefined,
  9372. "fillStyle": "solid",
  9373. "frameId": null,
  9374. "groupIds": [],
  9375. "height": 100,
  9376. "id": "id88",
  9377. "index": "a1",
  9378. "isDeleted": false,
  9379. "link": null,
  9380. "locked": false,
  9381. "opacity": 100,
  9382. "roughness": 1,
  9383. "roundness": {
  9384. "type": 3,
  9385. },
  9386. "strokeColor": "#a5d8ff",
  9387. "strokeStyle": "solid",
  9388. "strokeWidth": 2,
  9389. "type": "rectangle",
  9390. "updated": 1,
  9391. "version": 2,
  9392. "width": 100,
  9393. "x": 0,
  9394. "y": 0,
  9395. }
  9396. `;
  9397. exports[`history > multiplayer undo/redo > should not override remote changes on different elements > [end of test] history 1`] = `
  9398. History {
  9399. "onHistoryChangedEmitter": Emitter {
  9400. "subscribers": [
  9401. [Function],
  9402. [Function],
  9403. ],
  9404. },
  9405. "redoStack": [
  9406. HistoryEntry {
  9407. "appStateChange": AppStateChange {
  9408. "delta": Delta {
  9409. "deleted": {},
  9410. "inserted": {},
  9411. },
  9412. },
  9413. "elementsChange": ElementsChange {
  9414. "added": Map {},
  9415. "removed": Map {},
  9416. "updated": Map {
  9417. "id87" => Delta {
  9418. "deleted": {
  9419. "backgroundColor": "transparent",
  9420. },
  9421. "inserted": {
  9422. "backgroundColor": "#ffc9c9",
  9423. },
  9424. },
  9425. },
  9426. },
  9427. },
  9428. ],
  9429. "undoStack": [
  9430. HistoryEntry {
  9431. "appStateChange": AppStateChange {
  9432. "delta": Delta {
  9433. "deleted": {
  9434. "selectedElementIds": {
  9435. "id87": true,
  9436. },
  9437. },
  9438. "inserted": {
  9439. "selectedElementIds": {},
  9440. },
  9441. },
  9442. },
  9443. "elementsChange": ElementsChange {
  9444. "added": Map {},
  9445. "removed": Map {
  9446. "id87" => Delta {
  9447. "deleted": {
  9448. "angle": 0,
  9449. "backgroundColor": "transparent",
  9450. "boundElements": null,
  9451. "customData": undefined,
  9452. "fillStyle": "solid",
  9453. "frameId": null,
  9454. "groupIds": [],
  9455. "height": 10,
  9456. "index": "a0",
  9457. "isDeleted": false,
  9458. "link": null,
  9459. "locked": false,
  9460. "opacity": 100,
  9461. "roughness": 1,
  9462. "roundness": {
  9463. "type": 3,
  9464. },
  9465. "strokeColor": "#1e1e1e",
  9466. "strokeStyle": "solid",
  9467. "strokeWidth": 2,
  9468. "type": "rectangle",
  9469. "width": 10,
  9470. "x": 10,
  9471. "y": 0,
  9472. },
  9473. "inserted": {
  9474. "isDeleted": true,
  9475. },
  9476. },
  9477. },
  9478. "updated": Map {},
  9479. },
  9480. },
  9481. ],
  9482. }
  9483. `;
  9484. exports[`history > multiplayer undo/redo > should not override remote changes on different elements > [end of test] number of elements 1`] = `2`;
  9485. exports[`history > multiplayer undo/redo > should not override remote changes on different elements > [end of test] number of renders 1`] = `10`;
  9486. exports[`history > multiplayer undo/redo > should not override remote changes on different properties > [end of test] appState 1`] = `
  9487. {
  9488. "activeEmbeddable": null,
  9489. "activeTool": {
  9490. "customType": null,
  9491. "fromSelection": false,
  9492. "lastActiveTool": null,
  9493. "locked": false,
  9494. "type": "selection",
  9495. },
  9496. "collaborators": Map {},
  9497. "contextMenu": null,
  9498. "croppingElementId": null,
  9499. "currentChartType": "bar",
  9500. "currentHoveredFontFamily": null,
  9501. "currentItemArrowType": "round",
  9502. "currentItemBackgroundColor": "#ffc9c9",
  9503. "currentItemEndArrowhead": "arrow",
  9504. "currentItemFillStyle": "solid",
  9505. "currentItemFontFamily": 5,
  9506. "currentItemFontSize": 20,
  9507. "currentItemOpacity": 100,
  9508. "currentItemRoughness": 1,
  9509. "currentItemRoundness": "round",
  9510. "currentItemStartArrowhead": null,
  9511. "currentItemStrokeColor": "#1e1e1e",
  9512. "currentItemStrokeStyle": "solid",
  9513. "currentItemStrokeWidth": 2,
  9514. "currentItemTextAlign": "left",
  9515. "cursorButton": "up",
  9516. "defaultSidebarDockedPreference": false,
  9517. "editingFrame": null,
  9518. "editingGroupId": null,
  9519. "editingLinearElement": null,
  9520. "editingTextElement": null,
  9521. "elementsToHighlight": null,
  9522. "errorMessage": null,
  9523. "exportBackground": true,
  9524. "exportEmbedScene": false,
  9525. "exportScale": 1,
  9526. "exportWithDarkMode": false,
  9527. "fileHandle": null,
  9528. "followedBy": Set {},
  9529. "frameRendering": {
  9530. "clip": true,
  9531. "enabled": true,
  9532. "name": true,
  9533. "outline": true,
  9534. },
  9535. "frameToHighlight": null,
  9536. "gridModeEnabled": false,
  9537. "gridSize": 20,
  9538. "gridStep": 5,
  9539. "height": 0,
  9540. "hoveredElementIds": {},
  9541. "isBindingEnabled": true,
  9542. "isCropping": false,
  9543. "isLoading": false,
  9544. "isResizing": false,
  9545. "isRotating": false,
  9546. "lastPointerDownWith": "mouse",
  9547. "multiElement": null,
  9548. "newElement": null,
  9549. "objectsSnapModeEnabled": false,
  9550. "offsetLeft": 0,
  9551. "offsetTop": 0,
  9552. "openDialog": null,
  9553. "openMenu": null,
  9554. "openPopup": "elementBackground",
  9555. "openSidebar": null,
  9556. "originSnapOffset": null,
  9557. "pasteDialog": {
  9558. "data": null,
  9559. "shown": false,
  9560. },
  9561. "penDetected": false,
  9562. "penMode": false,
  9563. "pendingImageElementId": null,
  9564. "previousSelectedElementIds": {},
  9565. "resizingElement": null,
  9566. "scrollX": 0,
  9567. "scrollY": 0,
  9568. "searchMatches": [],
  9569. "selectedElementIds": {
  9570. "id89": true,
  9571. },
  9572. "selectedElementsAreBeingDragged": false,
  9573. "selectedGroupIds": {},
  9574. "selectionElement": null,
  9575. "shouldCacheIgnoreZoom": false,
  9576. "showHyperlinkPopup": false,
  9577. "showWelcomeScreen": true,
  9578. "snapLines": [],
  9579. "startBoundElement": null,
  9580. "stats": {
  9581. "open": false,
  9582. "panels": 3,
  9583. },
  9584. "suggestedBindings": [],
  9585. "theme": "light",
  9586. "toast": null,
  9587. "userToFollow": null,
  9588. "viewBackgroundColor": "#ffffff",
  9589. "viewModeEnabled": false,
  9590. "width": 0,
  9591. "zenModeEnabled": false,
  9592. "zoom": {
  9593. "value": 1,
  9594. },
  9595. }
  9596. `;
  9597. exports[`history > multiplayer undo/redo > should not override remote changes on different properties > [end of test] element 0 1`] = `
  9598. {
  9599. "angle": 0,
  9600. "backgroundColor": "#ffc9c9",
  9601. "boundElements": null,
  9602. "customData": undefined,
  9603. "fillStyle": "solid",
  9604. "frameId": null,
  9605. "groupIds": [],
  9606. "height": 10,
  9607. "id": "id89",
  9608. "index": "a0",
  9609. "isDeleted": false,
  9610. "link": null,
  9611. "locked": false,
  9612. "opacity": 100,
  9613. "roughness": 1,
  9614. "roundness": {
  9615. "type": 3,
  9616. },
  9617. "strokeColor": "#ffec99",
  9618. "strokeStyle": "solid",
  9619. "strokeWidth": 2,
  9620. "type": "rectangle",
  9621. "updated": 1,
  9622. "version": 7,
  9623. "width": 10,
  9624. "x": 10,
  9625. "y": 0,
  9626. }
  9627. `;
  9628. exports[`history > multiplayer undo/redo > should not override remote changes on different properties > [end of test] history 1`] = `
  9629. History {
  9630. "onHistoryChangedEmitter": Emitter {
  9631. "subscribers": [
  9632. [Function],
  9633. [Function],
  9634. ],
  9635. },
  9636. "redoStack": [],
  9637. "undoStack": [
  9638. HistoryEntry {
  9639. "appStateChange": AppStateChange {
  9640. "delta": Delta {
  9641. "deleted": {
  9642. "selectedElementIds": {
  9643. "id89": true,
  9644. },
  9645. },
  9646. "inserted": {
  9647. "selectedElementIds": {},
  9648. },
  9649. },
  9650. },
  9651. "elementsChange": ElementsChange {
  9652. "added": Map {},
  9653. "removed": Map {
  9654. "id89" => Delta {
  9655. "deleted": {
  9656. "angle": 0,
  9657. "backgroundColor": "transparent",
  9658. "boundElements": null,
  9659. "customData": undefined,
  9660. "fillStyle": "solid",
  9661. "frameId": null,
  9662. "groupIds": [],
  9663. "height": 10,
  9664. "index": "a0",
  9665. "isDeleted": false,
  9666. "link": null,
  9667. "locked": false,
  9668. "opacity": 100,
  9669. "roughness": 1,
  9670. "roundness": {
  9671. "type": 3,
  9672. },
  9673. "strokeColor": "#1e1e1e",
  9674. "strokeStyle": "solid",
  9675. "strokeWidth": 2,
  9676. "type": "rectangle",
  9677. "width": 10,
  9678. "x": 10,
  9679. "y": 0,
  9680. },
  9681. "inserted": {
  9682. "isDeleted": true,
  9683. },
  9684. },
  9685. },
  9686. "updated": Map {},
  9687. },
  9688. },
  9689. HistoryEntry {
  9690. "appStateChange": AppStateChange {
  9691. "delta": Delta {
  9692. "deleted": {},
  9693. "inserted": {},
  9694. },
  9695. },
  9696. "elementsChange": ElementsChange {
  9697. "added": Map {},
  9698. "removed": Map {},
  9699. "updated": Map {
  9700. "id89" => Delta {
  9701. "deleted": {
  9702. "backgroundColor": "#ffc9c9",
  9703. },
  9704. "inserted": {
  9705. "backgroundColor": "transparent",
  9706. },
  9707. },
  9708. },
  9709. },
  9710. },
  9711. ],
  9712. }
  9713. `;
  9714. exports[`history > multiplayer undo/redo > should not override remote changes on different properties > [end of test] number of elements 1`] = `1`;
  9715. exports[`history > multiplayer undo/redo > should not override remote changes on different properties > [end of test] number of renders 1`] = `9`;
  9716. exports[`history > multiplayer undo/redo > should override remotely added groups on undo, but restore them on redo > [end of test] appState 1`] = `
  9717. {
  9718. "activeEmbeddable": null,
  9719. "activeTool": {
  9720. "customType": null,
  9721. "fromSelection": false,
  9722. "lastActiveTool": null,
  9723. "locked": false,
  9724. "type": "selection",
  9725. },
  9726. "collaborators": Map {},
  9727. "contextMenu": null,
  9728. "croppingElementId": null,
  9729. "currentChartType": "bar",
  9730. "currentHoveredFontFamily": null,
  9731. "currentItemArrowType": "round",
  9732. "currentItemBackgroundColor": "transparent",
  9733. "currentItemEndArrowhead": "arrow",
  9734. "currentItemFillStyle": "solid",
  9735. "currentItemFontFamily": 5,
  9736. "currentItemFontSize": 20,
  9737. "currentItemOpacity": 100,
  9738. "currentItemRoughness": 1,
  9739. "currentItemRoundness": "round",
  9740. "currentItemStartArrowhead": null,
  9741. "currentItemStrokeColor": "#1e1e1e",
  9742. "currentItemStrokeStyle": "solid",
  9743. "currentItemStrokeWidth": 2,
  9744. "currentItemTextAlign": "left",
  9745. "cursorButton": "up",
  9746. "defaultSidebarDockedPreference": false,
  9747. "editingFrame": null,
  9748. "editingGroupId": null,
  9749. "editingLinearElement": null,
  9750. "editingTextElement": null,
  9751. "elementsToHighlight": null,
  9752. "errorMessage": null,
  9753. "exportBackground": true,
  9754. "exportEmbedScene": false,
  9755. "exportScale": 1,
  9756. "exportWithDarkMode": false,
  9757. "fileHandle": null,
  9758. "followedBy": Set {},
  9759. "frameRendering": {
  9760. "clip": true,
  9761. "enabled": true,
  9762. "name": true,
  9763. "outline": true,
  9764. },
  9765. "frameToHighlight": null,
  9766. "gridModeEnabled": false,
  9767. "gridSize": 20,
  9768. "gridStep": 5,
  9769. "height": 0,
  9770. "hoveredElementIds": {},
  9771. "isBindingEnabled": true,
  9772. "isCropping": false,
  9773. "isLoading": false,
  9774. "isResizing": false,
  9775. "isRotating": false,
  9776. "lastPointerDownWith": "mouse",
  9777. "multiElement": null,
  9778. "newElement": null,
  9779. "objectsSnapModeEnabled": false,
  9780. "offsetLeft": 0,
  9781. "offsetTop": 0,
  9782. "openDialog": null,
  9783. "openMenu": null,
  9784. "openPopup": null,
  9785. "openSidebar": null,
  9786. "originSnapOffset": {
  9787. "x": 0,
  9788. "y": 0,
  9789. },
  9790. "pasteDialog": {
  9791. "data": null,
  9792. "shown": false,
  9793. },
  9794. "penDetected": false,
  9795. "penMode": false,
  9796. "pendingImageElementId": null,
  9797. "previousSelectedElementIds": {},
  9798. "resizingElement": null,
  9799. "scrollX": 0,
  9800. "scrollY": 0,
  9801. "searchMatches": [],
  9802. "selectedElementIds": {},
  9803. "selectedElementsAreBeingDragged": false,
  9804. "selectedGroupIds": {},
  9805. "selectionElement": null,
  9806. "shouldCacheIgnoreZoom": false,
  9807. "showHyperlinkPopup": false,
  9808. "showWelcomeScreen": true,
  9809. "snapLines": [],
  9810. "startBoundElement": null,
  9811. "stats": {
  9812. "open": false,
  9813. "panels": 3,
  9814. },
  9815. "suggestedBindings": [],
  9816. "theme": "light",
  9817. "toast": null,
  9818. "userToFollow": null,
  9819. "viewBackgroundColor": "#ffffff",
  9820. "viewModeEnabled": false,
  9821. "width": 0,
  9822. "zenModeEnabled": false,
  9823. "zoom": {
  9824. "value": 1,
  9825. },
  9826. }
  9827. `;
  9828. exports[`history > multiplayer undo/redo > should override remotely added groups on undo, but restore them on redo > [end of test] element 0 1`] = `
  9829. {
  9830. "angle": 0,
  9831. "backgroundColor": "transparent",
  9832. "boundElements": null,
  9833. "customData": undefined,
  9834. "fillStyle": "solid",
  9835. "frameId": null,
  9836. "groupIds": [
  9837. "A",
  9838. "B",
  9839. ],
  9840. "height": 100,
  9841. "id": "id94",
  9842. "index": "a0",
  9843. "isDeleted": false,
  9844. "link": null,
  9845. "locked": false,
  9846. "opacity": 100,
  9847. "roughness": 1,
  9848. "roundness": {
  9849. "type": 3,
  9850. },
  9851. "strokeColor": "#1e1e1e",
  9852. "strokeStyle": "solid",
  9853. "strokeWidth": 2,
  9854. "type": "rectangle",
  9855. "updated": 1,
  9856. "version": 6,
  9857. "width": 100,
  9858. "x": 0,
  9859. "y": 0,
  9860. }
  9861. `;
  9862. exports[`history > multiplayer undo/redo > should override remotely added groups on undo, but restore them on redo > [end of test] element 1 1`] = `
  9863. {
  9864. "angle": 0,
  9865. "backgroundColor": "transparent",
  9866. "boundElements": null,
  9867. "customData": undefined,
  9868. "fillStyle": "solid",
  9869. "frameId": null,
  9870. "groupIds": [
  9871. "A",
  9872. "B",
  9873. ],
  9874. "height": 100,
  9875. "id": "id95",
  9876. "index": "a1",
  9877. "isDeleted": false,
  9878. "link": null,
  9879. "locked": false,
  9880. "opacity": 100,
  9881. "roughness": 1,
  9882. "roundness": {
  9883. "type": 3,
  9884. },
  9885. "strokeColor": "#1e1e1e",
  9886. "strokeStyle": "solid",
  9887. "strokeWidth": 2,
  9888. "type": "rectangle",
  9889. "updated": 1,
  9890. "version": 6,
  9891. "width": 100,
  9892. "x": 0,
  9893. "y": 0,
  9894. }
  9895. `;
  9896. exports[`history > multiplayer undo/redo > should override remotely added groups on undo, but restore them on redo > [end of test] element 2 1`] = `
  9897. {
  9898. "angle": 0,
  9899. "backgroundColor": "transparent",
  9900. "boundElements": null,
  9901. "customData": undefined,
  9902. "fillStyle": "solid",
  9903. "frameId": null,
  9904. "groupIds": [
  9905. "B",
  9906. ],
  9907. "height": 100,
  9908. "id": "id96",
  9909. "index": "a2",
  9910. "isDeleted": false,
  9911. "link": null,
  9912. "locked": false,
  9913. "opacity": 100,
  9914. "roughness": 1,
  9915. "roundness": {
  9916. "type": 3,
  9917. },
  9918. "strokeColor": "#1e1e1e",
  9919. "strokeStyle": "solid",
  9920. "strokeWidth": 2,
  9921. "type": "rectangle",
  9922. "updated": 1,
  9923. "version": 2,
  9924. "width": 100,
  9925. "x": 0,
  9926. "y": 0,
  9927. }
  9928. `;
  9929. exports[`history > multiplayer undo/redo > should override remotely added groups on undo, but restore them on redo > [end of test] element 3 1`] = `
  9930. {
  9931. "angle": 0,
  9932. "backgroundColor": "transparent",
  9933. "boundElements": null,
  9934. "customData": undefined,
  9935. "fillStyle": "solid",
  9936. "frameId": null,
  9937. "groupIds": [
  9938. "B",
  9939. ],
  9940. "height": 100,
  9941. "id": "id97",
  9942. "index": "a3",
  9943. "isDeleted": false,
  9944. "link": null,
  9945. "locked": false,
  9946. "opacity": 100,
  9947. "roughness": 1,
  9948. "roundness": {
  9949. "type": 3,
  9950. },
  9951. "strokeColor": "#1e1e1e",
  9952. "strokeStyle": "solid",
  9953. "strokeWidth": 2,
  9954. "type": "rectangle",
  9955. "updated": 1,
  9956. "version": 2,
  9957. "width": 100,
  9958. "x": 0,
  9959. "y": 0,
  9960. }
  9961. `;
  9962. exports[`history > multiplayer undo/redo > should override remotely added groups on undo, but restore them on redo > [end of test] history 1`] = `
  9963. History {
  9964. "onHistoryChangedEmitter": Emitter {
  9965. "subscribers": [
  9966. [Function],
  9967. [Function],
  9968. ],
  9969. },
  9970. "redoStack": [],
  9971. "undoStack": [
  9972. HistoryEntry {
  9973. "appStateChange": AppStateChange {
  9974. "delta": Delta {
  9975. "deleted": {},
  9976. "inserted": {},
  9977. },
  9978. },
  9979. "elementsChange": ElementsChange {
  9980. "added": Map {},
  9981. "removed": Map {},
  9982. "updated": Map {
  9983. "id94" => Delta {
  9984. "deleted": {
  9985. "groupIds": [
  9986. "A",
  9987. "B",
  9988. ],
  9989. },
  9990. "inserted": {
  9991. "groupIds": [],
  9992. },
  9993. },
  9994. "id95" => Delta {
  9995. "deleted": {
  9996. "groupIds": [
  9997. "A",
  9998. "B",
  9999. ],
  10000. },
  10001. "inserted": {
  10002. "groupIds": [],
  10003. },
  10004. },
  10005. },
  10006. },
  10007. },
  10008. ],
  10009. }
  10010. `;
  10011. exports[`history > multiplayer undo/redo > should override remotely added groups on undo, but restore them on redo > [end of test] number of elements 1`] = `4`;
  10012. exports[`history > multiplayer undo/redo > should override remotely added groups on undo, but restore them on redo > [end of test] number of renders 1`] = `8`;
  10013. exports[`history > multiplayer undo/redo > should override remotely added points on undo, but restore them on redo > [end of test] appState 1`] = `
  10014. {
  10015. "activeEmbeddable": null,
  10016. "activeTool": {
  10017. "customType": null,
  10018. "fromSelection": false,
  10019. "lastActiveTool": null,
  10020. "locked": false,
  10021. "type": "selection",
  10022. },
  10023. "collaborators": Map {},
  10024. "contextMenu": null,
  10025. "croppingElementId": null,
  10026. "currentChartType": "bar",
  10027. "currentHoveredFontFamily": null,
  10028. "currentItemArrowType": "round",
  10029. "currentItemBackgroundColor": "transparent",
  10030. "currentItemEndArrowhead": "arrow",
  10031. "currentItemFillStyle": "solid",
  10032. "currentItemFontFamily": 5,
  10033. "currentItemFontSize": 20,
  10034. "currentItemOpacity": 100,
  10035. "currentItemRoughness": 1,
  10036. "currentItemRoundness": "round",
  10037. "currentItemStartArrowhead": null,
  10038. "currentItemStrokeColor": "#1e1e1e",
  10039. "currentItemStrokeStyle": "solid",
  10040. "currentItemStrokeWidth": 2,
  10041. "currentItemTextAlign": "left",
  10042. "cursorButton": "up",
  10043. "defaultSidebarDockedPreference": false,
  10044. "editingFrame": null,
  10045. "editingGroupId": null,
  10046. "editingLinearElement": null,
  10047. "editingTextElement": null,
  10048. "elementsToHighlight": null,
  10049. "errorMessage": null,
  10050. "exportBackground": true,
  10051. "exportEmbedScene": false,
  10052. "exportScale": 1,
  10053. "exportWithDarkMode": false,
  10054. "fileHandle": null,
  10055. "followedBy": Set {},
  10056. "frameRendering": {
  10057. "clip": true,
  10058. "enabled": true,
  10059. "name": true,
  10060. "outline": true,
  10061. },
  10062. "frameToHighlight": null,
  10063. "gridModeEnabled": false,
  10064. "gridSize": 20,
  10065. "gridStep": 5,
  10066. "height": 0,
  10067. "hoveredElementIds": {},
  10068. "isBindingEnabled": true,
  10069. "isCropping": false,
  10070. "isLoading": false,
  10071. "isResizing": false,
  10072. "isRotating": false,
  10073. "lastPointerDownWith": "mouse",
  10074. "multiElement": null,
  10075. "newElement": null,
  10076. "objectsSnapModeEnabled": false,
  10077. "offsetLeft": 0,
  10078. "offsetTop": 0,
  10079. "openDialog": null,
  10080. "openMenu": null,
  10081. "openPopup": null,
  10082. "openSidebar": null,
  10083. "originSnapOffset": null,
  10084. "pasteDialog": {
  10085. "data": null,
  10086. "shown": false,
  10087. },
  10088. "penDetected": false,
  10089. "penMode": false,
  10090. "pendingImageElementId": null,
  10091. "previousSelectedElementIds": {},
  10092. "resizingElement": null,
  10093. "scrollX": 0,
  10094. "scrollY": 0,
  10095. "searchMatches": [],
  10096. "selectedElementIds": {
  10097. "id98": true,
  10098. },
  10099. "selectedElementsAreBeingDragged": false,
  10100. "selectedGroupIds": {},
  10101. "selectionElement": null,
  10102. "shouldCacheIgnoreZoom": false,
  10103. "showHyperlinkPopup": false,
  10104. "showWelcomeScreen": true,
  10105. "snapLines": [],
  10106. "startBoundElement": null,
  10107. "stats": {
  10108. "open": false,
  10109. "panels": 3,
  10110. },
  10111. "suggestedBindings": [],
  10112. "theme": "light",
  10113. "toast": null,
  10114. "userToFollow": null,
  10115. "viewBackgroundColor": "#ffffff",
  10116. "viewModeEnabled": false,
  10117. "width": 0,
  10118. "zenModeEnabled": false,
  10119. "zoom": {
  10120. "value": 1,
  10121. },
  10122. }
  10123. `;
  10124. exports[`history > multiplayer undo/redo > should override remotely added points on undo, but restore them on redo > [end of test] element 0 1`] = `
  10125. {
  10126. "angle": 0,
  10127. "backgroundColor": "transparent",
  10128. "boundElements": null,
  10129. "customData": undefined,
  10130. "elbowed": false,
  10131. "endArrowhead": "arrow",
  10132. "endBinding": null,
  10133. "fillStyle": "solid",
  10134. "frameId": null,
  10135. "groupIds": [],
  10136. "height": 30,
  10137. "id": "id98",
  10138. "index": "a0",
  10139. "isDeleted": false,
  10140. "lastCommittedPoint": [
  10141. 30,
  10142. 30,
  10143. ],
  10144. "link": null,
  10145. "locked": false,
  10146. "opacity": 100,
  10147. "points": [
  10148. [
  10149. 0,
  10150. 0,
  10151. ],
  10152. [
  10153. 5,
  10154. 5,
  10155. ],
  10156. [
  10157. 10,
  10158. 10,
  10159. ],
  10160. [
  10161. 15,
  10162. 15,
  10163. ],
  10164. [
  10165. 20,
  10166. 20,
  10167. ],
  10168. ],
  10169. "roughness": 1,
  10170. "roundness": {
  10171. "type": 2,
  10172. },
  10173. "startArrowhead": null,
  10174. "startBinding": null,
  10175. "strokeColor": "#1e1e1e",
  10176. "strokeStyle": "solid",
  10177. "strokeWidth": 2,
  10178. "type": "arrow",
  10179. "updated": 1,
  10180. "version": 13,
  10181. "width": 30,
  10182. "x": 0,
  10183. "y": 0,
  10184. }
  10185. `;
  10186. exports[`history > multiplayer undo/redo > should override remotely added points on undo, but restore them on redo > [end of test] history 1`] = `
  10187. History {
  10188. "onHistoryChangedEmitter": Emitter {
  10189. "subscribers": [
  10190. [Function],
  10191. [Function],
  10192. ],
  10193. },
  10194. "redoStack": [],
  10195. "undoStack": [
  10196. HistoryEntry {
  10197. "appStateChange": AppStateChange {
  10198. "delta": Delta {
  10199. "deleted": {
  10200. "selectedElementIds": {
  10201. "id98": true,
  10202. },
  10203. },
  10204. "inserted": {
  10205. "selectedElementIds": {},
  10206. },
  10207. },
  10208. },
  10209. "elementsChange": ElementsChange {
  10210. "added": Map {},
  10211. "removed": Map {
  10212. "id98" => Delta {
  10213. "deleted": {
  10214. "angle": 0,
  10215. "backgroundColor": "transparent",
  10216. "boundElements": null,
  10217. "customData": undefined,
  10218. "elbowed": false,
  10219. "endArrowhead": "arrow",
  10220. "endBinding": null,
  10221. "fillStyle": "solid",
  10222. "frameId": null,
  10223. "groupIds": [],
  10224. "height": 10,
  10225. "index": "a0",
  10226. "isDeleted": false,
  10227. "lastCommittedPoint": [
  10228. 10,
  10229. 10,
  10230. ],
  10231. "link": null,
  10232. "locked": false,
  10233. "opacity": 100,
  10234. "points": [
  10235. [
  10236. 0,
  10237. 0,
  10238. ],
  10239. [
  10240. 10,
  10241. 10,
  10242. ],
  10243. ],
  10244. "roughness": 1,
  10245. "roundness": {
  10246. "type": 2,
  10247. },
  10248. "startArrowhead": null,
  10249. "startBinding": null,
  10250. "strokeColor": "#1e1e1e",
  10251. "strokeStyle": "solid",
  10252. "strokeWidth": 2,
  10253. "type": "arrow",
  10254. "width": 10,
  10255. "x": 0,
  10256. "y": 0,
  10257. },
  10258. "inserted": {
  10259. "isDeleted": true,
  10260. },
  10261. },
  10262. },
  10263. "updated": Map {},
  10264. },
  10265. },
  10266. HistoryEntry {
  10267. "appStateChange": AppStateChange {
  10268. "delta": Delta {
  10269. "deleted": {},
  10270. "inserted": {},
  10271. },
  10272. },
  10273. "elementsChange": ElementsChange {
  10274. "added": Map {},
  10275. "removed": Map {},
  10276. "updated": Map {
  10277. "id98" => Delta {
  10278. "deleted": {
  10279. "height": 30,
  10280. "lastCommittedPoint": [
  10281. 30,
  10282. 30,
  10283. ],
  10284. "points": [
  10285. [
  10286. 0,
  10287. 0,
  10288. ],
  10289. [
  10290. 5,
  10291. 5,
  10292. ],
  10293. [
  10294. 10,
  10295. 10,
  10296. ],
  10297. [
  10298. 15,
  10299. 15,
  10300. ],
  10301. [
  10302. 20,
  10303. 20,
  10304. ],
  10305. ],
  10306. "width": 30,
  10307. },
  10308. "inserted": {
  10309. "height": 10,
  10310. "lastCommittedPoint": [
  10311. 10,
  10312. 10,
  10313. ],
  10314. "points": [
  10315. [
  10316. 0,
  10317. 0,
  10318. ],
  10319. [
  10320. 10,
  10321. 10,
  10322. ],
  10323. ],
  10324. "width": 10,
  10325. },
  10326. },
  10327. },
  10328. },
  10329. },
  10330. HistoryEntry {
  10331. "appStateChange": AppStateChange {
  10332. "delta": Delta {
  10333. "deleted": {
  10334. "selectedLinearElementId": "id98",
  10335. },
  10336. "inserted": {
  10337. "selectedLinearElementId": null,
  10338. },
  10339. },
  10340. },
  10341. "elementsChange": ElementsChange {
  10342. "added": Map {},
  10343. "removed": Map {},
  10344. "updated": Map {},
  10345. },
  10346. },
  10347. ],
  10348. }
  10349. `;
  10350. exports[`history > multiplayer undo/redo > should override remotely added points on undo, but restore them on redo > [end of test] number of elements 1`] = `1`;
  10351. exports[`history > multiplayer undo/redo > should override remotely added points on undo, but restore them on redo > [end of test] number of renders 1`] = `15`;
  10352. exports[`history > multiplayer undo/redo > should redistribute deltas when element gets removed locally but is restored remotely > [end of test] appState 1`] = `
  10353. {
  10354. "activeEmbeddable": null,
  10355. "activeTool": {
  10356. "customType": null,
  10357. "fromSelection": false,
  10358. "lastActiveTool": null,
  10359. "locked": false,
  10360. "type": "selection",
  10361. },
  10362. "collaborators": Map {},
  10363. "contextMenu": null,
  10364. "croppingElementId": null,
  10365. "currentChartType": "bar",
  10366. "currentHoveredFontFamily": null,
  10367. "currentItemArrowType": "round",
  10368. "currentItemBackgroundColor": "transparent",
  10369. "currentItemEndArrowhead": "arrow",
  10370. "currentItemFillStyle": "solid",
  10371. "currentItemFontFamily": 5,
  10372. "currentItemFontSize": 20,
  10373. "currentItemOpacity": 100,
  10374. "currentItemRoughness": 1,
  10375. "currentItemRoundness": "round",
  10376. "currentItemStartArrowhead": null,
  10377. "currentItemStrokeColor": "#1e1e1e",
  10378. "currentItemStrokeStyle": "solid",
  10379. "currentItemStrokeWidth": 2,
  10380. "currentItemTextAlign": "left",
  10381. "cursorButton": "up",
  10382. "defaultSidebarDockedPreference": false,
  10383. "editingFrame": null,
  10384. "editingGroupId": null,
  10385. "editingLinearElement": null,
  10386. "editingTextElement": null,
  10387. "elementsToHighlight": null,
  10388. "errorMessage": null,
  10389. "exportBackground": true,
  10390. "exportEmbedScene": false,
  10391. "exportScale": 1,
  10392. "exportWithDarkMode": false,
  10393. "fileHandle": null,
  10394. "followedBy": Set {},
  10395. "frameRendering": {
  10396. "clip": true,
  10397. "enabled": true,
  10398. "name": true,
  10399. "outline": true,
  10400. },
  10401. "frameToHighlight": null,
  10402. "gridModeEnabled": false,
  10403. "gridSize": 20,
  10404. "gridStep": 5,
  10405. "height": 0,
  10406. "hoveredElementIds": {},
  10407. "isBindingEnabled": true,
  10408. "isCropping": false,
  10409. "isLoading": false,
  10410. "isResizing": false,
  10411. "isRotating": false,
  10412. "lastPointerDownWith": "mouse",
  10413. "multiElement": null,
  10414. "newElement": null,
  10415. "objectsSnapModeEnabled": false,
  10416. "offsetLeft": 0,
  10417. "offsetTop": 0,
  10418. "openDialog": null,
  10419. "openMenu": null,
  10420. "openPopup": null,
  10421. "openSidebar": null,
  10422. "originSnapOffset": null,
  10423. "pasteDialog": {
  10424. "data": null,
  10425. "shown": false,
  10426. },
  10427. "penDetected": false,
  10428. "penMode": false,
  10429. "pendingImageElementId": null,
  10430. "previousSelectedElementIds": {},
  10431. "resizingElement": null,
  10432. "scrollX": 0,
  10433. "scrollY": 0,
  10434. "searchMatches": [],
  10435. "selectedElementIds": {},
  10436. "selectedElementsAreBeingDragged": false,
  10437. "selectedGroupIds": {},
  10438. "selectionElement": null,
  10439. "shouldCacheIgnoreZoom": false,
  10440. "showHyperlinkPopup": false,
  10441. "showWelcomeScreen": true,
  10442. "snapLines": [],
  10443. "startBoundElement": null,
  10444. "stats": {
  10445. "open": false,
  10446. "panels": 3,
  10447. },
  10448. "suggestedBindings": [],
  10449. "theme": "light",
  10450. "toast": null,
  10451. "userToFollow": null,
  10452. "viewBackgroundColor": "#ffffff",
  10453. "viewModeEnabled": false,
  10454. "width": 0,
  10455. "zenModeEnabled": false,
  10456. "zoom": {
  10457. "value": 1,
  10458. },
  10459. }
  10460. `;
  10461. exports[`history > multiplayer undo/redo > should redistribute deltas when element gets removed locally but is restored remotely > [end of test] element 0 1`] = `
  10462. {
  10463. "angle": 0,
  10464. "backgroundColor": "#ffec99",
  10465. "boundElements": null,
  10466. "customData": undefined,
  10467. "fillStyle": "solid",
  10468. "frameId": null,
  10469. "groupIds": [],
  10470. "height": 10,
  10471. "id": "id99",
  10472. "index": "a0",
  10473. "isDeleted": false,
  10474. "link": null,
  10475. "locked": false,
  10476. "opacity": 100,
  10477. "roughness": 1,
  10478. "roundness": {
  10479. "type": 3,
  10480. },
  10481. "strokeColor": "#1e1e1e",
  10482. "strokeStyle": "solid",
  10483. "strokeWidth": 2,
  10484. "type": "rectangle",
  10485. "updated": 1,
  10486. "version": 7,
  10487. "width": 10,
  10488. "x": 10,
  10489. "y": 0,
  10490. }
  10491. `;
  10492. exports[`history > multiplayer undo/redo > should redistribute deltas when element gets removed locally but is restored remotely > [end of test] history 1`] = `
  10493. History {
  10494. "onHistoryChangedEmitter": Emitter {
  10495. "subscribers": [
  10496. [Function],
  10497. [Function],
  10498. ],
  10499. },
  10500. "redoStack": [],
  10501. "undoStack": [
  10502. HistoryEntry {
  10503. "appStateChange": AppStateChange {
  10504. "delta": Delta {
  10505. "deleted": {
  10506. "selectedElementIds": {
  10507. "id99": true,
  10508. },
  10509. },
  10510. "inserted": {
  10511. "selectedElementIds": {},
  10512. },
  10513. },
  10514. },
  10515. "elementsChange": ElementsChange {
  10516. "added": Map {},
  10517. "removed": Map {
  10518. "id99" => Delta {
  10519. "deleted": {
  10520. "angle": 0,
  10521. "backgroundColor": "#ffec99",
  10522. "boundElements": null,
  10523. "customData": undefined,
  10524. "fillStyle": "solid",
  10525. "frameId": null,
  10526. "groupIds": [],
  10527. "height": 10,
  10528. "index": "a0",
  10529. "isDeleted": false,
  10530. "link": null,
  10531. "locked": false,
  10532. "opacity": 100,
  10533. "roughness": 1,
  10534. "roundness": {
  10535. "type": 3,
  10536. },
  10537. "strokeColor": "#1e1e1e",
  10538. "strokeStyle": "solid",
  10539. "strokeWidth": 2,
  10540. "type": "rectangle",
  10541. "width": 10,
  10542. "x": 10,
  10543. "y": 0,
  10544. },
  10545. "inserted": {
  10546. "isDeleted": true,
  10547. },
  10548. },
  10549. },
  10550. "updated": Map {},
  10551. },
  10552. },
  10553. HistoryEntry {
  10554. "appStateChange": AppStateChange {
  10555. "delta": Delta {
  10556. "deleted": {
  10557. "selectedElementIds": {},
  10558. },
  10559. "inserted": {
  10560. "selectedElementIds": {
  10561. "id99": true,
  10562. },
  10563. },
  10564. },
  10565. },
  10566. "elementsChange": ElementsChange {
  10567. "added": Map {},
  10568. "removed": Map {},
  10569. "updated": Map {
  10570. "id99" => Delta {
  10571. "deleted": {
  10572. "isDeleted": false,
  10573. },
  10574. "inserted": {
  10575. "isDeleted": false,
  10576. },
  10577. },
  10578. },
  10579. },
  10580. },
  10581. ],
  10582. }
  10583. `;
  10584. exports[`history > multiplayer undo/redo > should redistribute deltas when element gets removed locally but is restored remotely > [end of test] number of elements 1`] = `1`;
  10585. exports[`history > multiplayer undo/redo > should redistribute deltas when element gets removed locally but is restored remotely > [end of test] number of renders 1`] = `11`;
  10586. exports[`history > multiplayer undo/redo > should redraw arrows on undo > [end of test] appState 1`] = `
  10587. {
  10588. "activeEmbeddable": null,
  10589. "activeTool": {
  10590. "customType": null,
  10591. "fromSelection": false,
  10592. "lastActiveTool": null,
  10593. "locked": false,
  10594. "type": "selection",
  10595. },
  10596. "collaborators": Map {},
  10597. "contextMenu": null,
  10598. "croppingElementId": null,
  10599. "currentChartType": "bar",
  10600. "currentHoveredFontFamily": null,
  10601. "currentItemArrowType": "round",
  10602. "currentItemBackgroundColor": "transparent",
  10603. "currentItemEndArrowhead": "arrow",
  10604. "currentItemFillStyle": "solid",
  10605. "currentItemFontFamily": 5,
  10606. "currentItemFontSize": 20,
  10607. "currentItemOpacity": 100,
  10608. "currentItemRoughness": 1,
  10609. "currentItemRoundness": "round",
  10610. "currentItemStartArrowhead": null,
  10611. "currentItemStrokeColor": "#1e1e1e",
  10612. "currentItemStrokeStyle": "solid",
  10613. "currentItemStrokeWidth": 2,
  10614. "currentItemTextAlign": "left",
  10615. "cursorButton": "up",
  10616. "defaultSidebarDockedPreference": false,
  10617. "editingFrame": null,
  10618. "editingGroupId": null,
  10619. "editingLinearElement": null,
  10620. "editingTextElement": null,
  10621. "elementsToHighlight": null,
  10622. "errorMessage": null,
  10623. "exportBackground": true,
  10624. "exportEmbedScene": false,
  10625. "exportScale": 1,
  10626. "exportWithDarkMode": false,
  10627. "fileHandle": null,
  10628. "followedBy": Set {},
  10629. "frameRendering": {
  10630. "clip": true,
  10631. "enabled": true,
  10632. "name": true,
  10633. "outline": true,
  10634. },
  10635. "frameToHighlight": null,
  10636. "gridModeEnabled": false,
  10637. "gridSize": 20,
  10638. "gridStep": 5,
  10639. "height": 0,
  10640. "hoveredElementIds": {},
  10641. "isBindingEnabled": true,
  10642. "isCropping": false,
  10643. "isLoading": false,
  10644. "isResizing": false,
  10645. "isRotating": false,
  10646. "lastPointerDownWith": "mouse",
  10647. "multiElement": null,
  10648. "newElement": null,
  10649. "objectsSnapModeEnabled": false,
  10650. "offsetLeft": 0,
  10651. "offsetTop": 0,
  10652. "openDialog": null,
  10653. "openMenu": null,
  10654. "openPopup": null,
  10655. "openSidebar": null,
  10656. "originSnapOffset": {
  10657. "x": 0,
  10658. "y": 0,
  10659. },
  10660. "pasteDialog": {
  10661. "data": null,
  10662. "shown": false,
  10663. },
  10664. "penDetected": false,
  10665. "penMode": false,
  10666. "pendingImageElementId": null,
  10667. "previousSelectedElementIds": {},
  10668. "resizingElement": null,
  10669. "scrollX": 0,
  10670. "scrollY": 0,
  10671. "searchMatches": [],
  10672. "selectedElementIds": {},
  10673. "selectedElementsAreBeingDragged": false,
  10674. "selectedGroupIds": {},
  10675. "selectionElement": null,
  10676. "shouldCacheIgnoreZoom": false,
  10677. "showHyperlinkPopup": false,
  10678. "showWelcomeScreen": true,
  10679. "snapLines": [],
  10680. "startBoundElement": null,
  10681. "stats": {
  10682. "open": false,
  10683. "panels": 3,
  10684. },
  10685. "suggestedBindings": [],
  10686. "theme": "light",
  10687. "toast": null,
  10688. "userToFollow": null,
  10689. "viewBackgroundColor": "#ffffff",
  10690. "viewModeEnabled": false,
  10691. "width": 0,
  10692. "zenModeEnabled": false,
  10693. "zoom": {
  10694. "value": 1,
  10695. },
  10696. }
  10697. `;
  10698. exports[`history > multiplayer undo/redo > should redraw arrows on undo > [end of test] element 0 1`] = `
  10699. {
  10700. "angle": 0,
  10701. "backgroundColor": "transparent",
  10702. "boundElements": [],
  10703. "customData": undefined,
  10704. "fillStyle": "solid",
  10705. "frameId": null,
  10706. "groupIds": [],
  10707. "height": 126,
  10708. "id": "KPrBI4g_v9qUB1XxYLgSz",
  10709. "index": "a0",
  10710. "isDeleted": true,
  10711. "link": null,
  10712. "locked": false,
  10713. "opacity": 100,
  10714. "roughness": 1,
  10715. "roundness": {
  10716. "type": 3,
  10717. },
  10718. "strokeColor": "#1e1e1e",
  10719. "strokeStyle": "solid",
  10720. "strokeWidth": 2,
  10721. "type": "rectangle",
  10722. "updated": 1,
  10723. "version": 4,
  10724. "width": 157,
  10725. "x": 600,
  10726. "y": 0,
  10727. }
  10728. `;
  10729. exports[`history > multiplayer undo/redo > should redraw arrows on undo > [end of test] element 1 1`] = `
  10730. {
  10731. "angle": 0,
  10732. "backgroundColor": "transparent",
  10733. "boundElements": [],
  10734. "customData": undefined,
  10735. "fillStyle": "solid",
  10736. "frameId": null,
  10737. "groupIds": [],
  10738. "height": 129,
  10739. "id": "u2JGnnmoJ0VATV4vCNJE5",
  10740. "index": "a1",
  10741. "isDeleted": true,
  10742. "link": null,
  10743. "locked": false,
  10744. "opacity": 100,
  10745. "roughness": 1,
  10746. "roundness": {
  10747. "type": 3,
  10748. },
  10749. "strokeColor": "#1e1e1e",
  10750. "strokeStyle": "solid",
  10751. "strokeWidth": 2,
  10752. "type": "diamond",
  10753. "updated": 1,
  10754. "version": 4,
  10755. "width": 124,
  10756. "x": 1152,
  10757. "y": 516,
  10758. }
  10759. `;
  10760. exports[`history > multiplayer undo/redo > should redraw arrows on undo > [end of test] element 2 1`] = `
  10761. {
  10762. "angle": 0,
  10763. "backgroundColor": "transparent",
  10764. "boundElements": null,
  10765. "customData": undefined,
  10766. "elbowed": true,
  10767. "endArrowhead": null,
  10768. "endBinding": {
  10769. "elementId": "u2JGnnmoJ0VATV4vCNJE5",
  10770. "fixedPoint": [
  10771. "0.49919",
  10772. "-0.03875",
  10773. ],
  10774. "focus": "-0.00161",
  10775. "gap": "3.53708",
  10776. },
  10777. "endIsSpecial": false,
  10778. "fillStyle": "solid",
  10779. "fixedSegments": [],
  10780. "frameId": null,
  10781. "groupIds": [],
  10782. "height": "236.10000",
  10783. "id": "6Rm4g567UQM4WjLwej2Vc",
  10784. "index": "a2",
  10785. "isDeleted": true,
  10786. "lastCommittedPoint": null,
  10787. "link": null,
  10788. "locked": false,
  10789. "opacity": 100,
  10790. "points": [
  10791. [
  10792. 0,
  10793. 0,
  10794. ],
  10795. [
  10796. "178.90000",
  10797. 0,
  10798. ],
  10799. [
  10800. "178.90000",
  10801. "236.10000",
  10802. ],
  10803. ],
  10804. "roughness": 1,
  10805. "roundness": {
  10806. "type": 2,
  10807. },
  10808. "startArrowhead": null,
  10809. "startBinding": {
  10810. "elementId": "KPrBI4g_v9qUB1XxYLgSz",
  10811. "fixedPoint": [
  10812. "1.03185",
  10813. "0.49921",
  10814. ],
  10815. "focus": "-0.00159",
  10816. "gap": 5,
  10817. },
  10818. "startIsSpecial": false,
  10819. "strokeColor": "#1e1e1e",
  10820. "strokeStyle": "solid",
  10821. "strokeWidth": 2,
  10822. "type": "arrow",
  10823. "updated": 1,
  10824. "version": 3,
  10825. "width": "178.90000",
  10826. "x": 1035,
  10827. "y": "274.90000",
  10828. }
  10829. `;
  10830. exports[`history > multiplayer undo/redo > should redraw arrows on undo > [end of test] history 1`] = `
  10831. History {
  10832. "onHistoryChangedEmitter": Emitter {
  10833. "subscribers": [
  10834. [Function],
  10835. [Function],
  10836. ],
  10837. },
  10838. "redoStack": [
  10839. HistoryEntry {
  10840. "appStateChange": AppStateChange {
  10841. "delta": Delta {
  10842. "deleted": {},
  10843. "inserted": {},
  10844. },
  10845. },
  10846. "elementsChange": ElementsChange {
  10847. "added": Map {
  10848. "6Rm4g567UQM4WjLwej2Vc" => Delta {
  10849. "deleted": {
  10850. "isDeleted": true,
  10851. },
  10852. "inserted": {
  10853. "angle": 0,
  10854. "backgroundColor": "transparent",
  10855. "boundElements": null,
  10856. "customData": undefined,
  10857. "elbowed": true,
  10858. "endArrowhead": null,
  10859. "endBinding": {
  10860. "elementId": "u2JGnnmoJ0VATV4vCNJE5",
  10861. "fixedPoint": [
  10862. "0.49919",
  10863. "-0.03875",
  10864. ],
  10865. "focus": "-0.00161",
  10866. "gap": "3.53708",
  10867. },
  10868. "endIsSpecial": false,
  10869. "fillStyle": "solid",
  10870. "fixedSegments": [],
  10871. "frameId": null,
  10872. "groupIds": [],
  10873. "height": "236.10000",
  10874. "index": "a2",
  10875. "isDeleted": false,
  10876. "lastCommittedPoint": null,
  10877. "link": null,
  10878. "locked": false,
  10879. "opacity": 100,
  10880. "points": [
  10881. [
  10882. 0,
  10883. 0,
  10884. ],
  10885. [
  10886. "178.90000",
  10887. 0,
  10888. ],
  10889. [
  10890. "178.90000",
  10891. "236.10000",
  10892. ],
  10893. ],
  10894. "roughness": 1,
  10895. "roundness": {
  10896. "type": 2,
  10897. },
  10898. "startArrowhead": null,
  10899. "startBinding": {
  10900. "elementId": "KPrBI4g_v9qUB1XxYLgSz",
  10901. "fixedPoint": [
  10902. "1.03185",
  10903. "0.49921",
  10904. ],
  10905. "focus": "-0.00159",
  10906. "gap": 5,
  10907. },
  10908. "startIsSpecial": false,
  10909. "strokeColor": "#1e1e1e",
  10910. "strokeStyle": "solid",
  10911. "strokeWidth": 2,
  10912. "type": "arrow",
  10913. "width": "178.90000",
  10914. "x": 1035,
  10915. "y": "274.90000",
  10916. },
  10917. },
  10918. },
  10919. "removed": Map {},
  10920. "updated": Map {
  10921. "KPrBI4g_v9qUB1XxYLgSz" => Delta {
  10922. "deleted": {
  10923. "boundElements": [],
  10924. },
  10925. "inserted": {
  10926. "boundElements": [
  10927. {
  10928. "id": "6Rm4g567UQM4WjLwej2Vc",
  10929. "type": "arrow",
  10930. },
  10931. ],
  10932. },
  10933. },
  10934. "u2JGnnmoJ0VATV4vCNJE5" => Delta {
  10935. "deleted": {
  10936. "boundElements": [],
  10937. },
  10938. "inserted": {
  10939. "boundElements": [
  10940. {
  10941. "id": "6Rm4g567UQM4WjLwej2Vc",
  10942. "type": "arrow",
  10943. },
  10944. ],
  10945. },
  10946. },
  10947. },
  10948. },
  10949. },
  10950. HistoryEntry {
  10951. "appStateChange": AppStateChange {
  10952. "delta": Delta {
  10953. "deleted": {},
  10954. "inserted": {},
  10955. },
  10956. },
  10957. "elementsChange": ElementsChange {
  10958. "added": Map {
  10959. "KPrBI4g_v9qUB1XxYLgSz" => Delta {
  10960. "deleted": {
  10961. "isDeleted": true,
  10962. },
  10963. "inserted": {
  10964. "angle": 0,
  10965. "backgroundColor": "transparent",
  10966. "boundElements": null,
  10967. "customData": undefined,
  10968. "fillStyle": "solid",
  10969. "frameId": null,
  10970. "groupIds": [],
  10971. "height": 126,
  10972. "index": "a0",
  10973. "isDeleted": false,
  10974. "link": null,
  10975. "locked": false,
  10976. "opacity": 100,
  10977. "roughness": 1,
  10978. "roundness": {
  10979. "type": 3,
  10980. },
  10981. "strokeColor": "#1e1e1e",
  10982. "strokeStyle": "solid",
  10983. "strokeWidth": 2,
  10984. "type": "rectangle",
  10985. "width": 157,
  10986. "x": 600,
  10987. "y": 0,
  10988. },
  10989. },
  10990. "u2JGnnmoJ0VATV4vCNJE5" => Delta {
  10991. "deleted": {
  10992. "isDeleted": true,
  10993. },
  10994. "inserted": {
  10995. "angle": 0,
  10996. "backgroundColor": "transparent",
  10997. "boundElements": null,
  10998. "customData": undefined,
  10999. "fillStyle": "solid",
  11000. "frameId": null,
  11001. "groupIds": [],
  11002. "height": 129,
  11003. "index": "a1",
  11004. "isDeleted": false,
  11005. "link": null,
  11006. "locked": false,
  11007. "opacity": 100,
  11008. "roughness": 1,
  11009. "roundness": {
  11010. "type": 3,
  11011. },
  11012. "strokeColor": "#1e1e1e",
  11013. "strokeStyle": "solid",
  11014. "strokeWidth": 2,
  11015. "type": "diamond",
  11016. "width": 124,
  11017. "x": 1152,
  11018. "y": 516,
  11019. },
  11020. },
  11021. },
  11022. "removed": Map {},
  11023. "updated": Map {},
  11024. },
  11025. },
  11026. ],
  11027. "undoStack": [],
  11028. }
  11029. `;
  11030. exports[`history > multiplayer undo/redo > should redraw arrows on undo > [end of test] number of elements 1`] = `3`;
  11031. exports[`history > multiplayer undo/redo > should redraw arrows on undo > [end of test] number of renders 1`] = `8`;
  11032. exports[`history > multiplayer undo/redo > should update history entries after remote changes on the same properties > [end of test] appState 1`] = `
  11033. {
  11034. "activeEmbeddable": null,
  11035. "activeTool": {
  11036. "customType": null,
  11037. "fromSelection": false,
  11038. "lastActiveTool": null,
  11039. "locked": false,
  11040. "type": "selection",
  11041. },
  11042. "collaborators": Map {},
  11043. "contextMenu": null,
  11044. "croppingElementId": null,
  11045. "currentChartType": "bar",
  11046. "currentHoveredFontFamily": null,
  11047. "currentItemArrowType": "round",
  11048. "currentItemBackgroundColor": "#a5d8ff",
  11049. "currentItemEndArrowhead": "arrow",
  11050. "currentItemFillStyle": "solid",
  11051. "currentItemFontFamily": 5,
  11052. "currentItemFontSize": 20,
  11053. "currentItemOpacity": 100,
  11054. "currentItemRoughness": 1,
  11055. "currentItemRoundness": "round",
  11056. "currentItemStartArrowhead": null,
  11057. "currentItemStrokeColor": "#1e1e1e",
  11058. "currentItemStrokeStyle": "solid",
  11059. "currentItemStrokeWidth": 2,
  11060. "currentItemTextAlign": "left",
  11061. "cursorButton": "up",
  11062. "defaultSidebarDockedPreference": false,
  11063. "editingFrame": null,
  11064. "editingGroupId": null,
  11065. "editingLinearElement": null,
  11066. "editingTextElement": null,
  11067. "elementsToHighlight": null,
  11068. "errorMessage": null,
  11069. "exportBackground": true,
  11070. "exportEmbedScene": false,
  11071. "exportScale": 1,
  11072. "exportWithDarkMode": false,
  11073. "fileHandle": null,
  11074. "followedBy": Set {},
  11075. "frameRendering": {
  11076. "clip": true,
  11077. "enabled": true,
  11078. "name": true,
  11079. "outline": true,
  11080. },
  11081. "frameToHighlight": null,
  11082. "gridModeEnabled": false,
  11083. "gridSize": 20,
  11084. "gridStep": 5,
  11085. "height": 0,
  11086. "hoveredElementIds": {},
  11087. "isBindingEnabled": true,
  11088. "isCropping": false,
  11089. "isLoading": false,
  11090. "isResizing": false,
  11091. "isRotating": false,
  11092. "lastPointerDownWith": "mouse",
  11093. "multiElement": null,
  11094. "newElement": null,
  11095. "objectsSnapModeEnabled": false,
  11096. "offsetLeft": 0,
  11097. "offsetTop": 0,
  11098. "openDialog": null,
  11099. "openMenu": null,
  11100. "openPopup": "elementBackground",
  11101. "openSidebar": null,
  11102. "originSnapOffset": null,
  11103. "pasteDialog": {
  11104. "data": null,
  11105. "shown": false,
  11106. },
  11107. "penDetected": false,
  11108. "penMode": false,
  11109. "pendingImageElementId": null,
  11110. "previousSelectedElementIds": {},
  11111. "resizingElement": null,
  11112. "scrollX": 0,
  11113. "scrollY": 0,
  11114. "searchMatches": [],
  11115. "selectedElementIds": {
  11116. "id90": true,
  11117. },
  11118. "selectedElementsAreBeingDragged": false,
  11119. "selectedGroupIds": {},
  11120. "selectionElement": null,
  11121. "shouldCacheIgnoreZoom": false,
  11122. "showHyperlinkPopup": false,
  11123. "showWelcomeScreen": true,
  11124. "snapLines": [],
  11125. "startBoundElement": null,
  11126. "stats": {
  11127. "open": false,
  11128. "panels": 3,
  11129. },
  11130. "suggestedBindings": [],
  11131. "theme": "light",
  11132. "toast": null,
  11133. "userToFollow": null,
  11134. "viewBackgroundColor": "#ffffff",
  11135. "viewModeEnabled": false,
  11136. "width": 0,
  11137. "zenModeEnabled": false,
  11138. "zoom": {
  11139. "value": 1,
  11140. },
  11141. }
  11142. `;
  11143. exports[`history > multiplayer undo/redo > should update history entries after remote changes on the same properties > [end of test] element 0 1`] = `
  11144. {
  11145. "angle": 0,
  11146. "backgroundColor": "transparent",
  11147. "boundElements": null,
  11148. "customData": undefined,
  11149. "fillStyle": "solid",
  11150. "frameId": null,
  11151. "groupIds": [],
  11152. "height": 10,
  11153. "id": "id90",
  11154. "index": "a0",
  11155. "isDeleted": false,
  11156. "link": null,
  11157. "locked": false,
  11158. "opacity": 100,
  11159. "roughness": 1,
  11160. "roundness": {
  11161. "type": 3,
  11162. },
  11163. "strokeColor": "#1e1e1e",
  11164. "strokeStyle": "solid",
  11165. "strokeWidth": 2,
  11166. "type": "rectangle",
  11167. "updated": 1,
  11168. "version": 13,
  11169. "width": 10,
  11170. "x": 10,
  11171. "y": 0,
  11172. }
  11173. `;
  11174. exports[`history > multiplayer undo/redo > should update history entries after remote changes on the same properties > [end of test] history 1`] = `
  11175. History {
  11176. "onHistoryChangedEmitter": Emitter {
  11177. "subscribers": [
  11178. [Function],
  11179. [Function],
  11180. ],
  11181. },
  11182. "redoStack": [
  11183. HistoryEntry {
  11184. "appStateChange": AppStateChange {
  11185. "delta": Delta {
  11186. "deleted": {},
  11187. "inserted": {},
  11188. },
  11189. },
  11190. "elementsChange": ElementsChange {
  11191. "added": Map {},
  11192. "removed": Map {},
  11193. "updated": Map {
  11194. "id90" => Delta {
  11195. "deleted": {
  11196. "backgroundColor": "#d0bfff",
  11197. },
  11198. "inserted": {
  11199. "backgroundColor": "#ffec99",
  11200. },
  11201. },
  11202. },
  11203. },
  11204. },
  11205. HistoryEntry {
  11206. "appStateChange": AppStateChange {
  11207. "delta": Delta {
  11208. "deleted": {},
  11209. "inserted": {},
  11210. },
  11211. },
  11212. "elementsChange": ElementsChange {
  11213. "added": Map {},
  11214. "removed": Map {},
  11215. "updated": Map {
  11216. "id90" => Delta {
  11217. "deleted": {
  11218. "backgroundColor": "transparent",
  11219. },
  11220. "inserted": {
  11221. "backgroundColor": "#d0bfff",
  11222. },
  11223. },
  11224. },
  11225. },
  11226. },
  11227. ],
  11228. "undoStack": [
  11229. HistoryEntry {
  11230. "appStateChange": AppStateChange {
  11231. "delta": Delta {
  11232. "deleted": {
  11233. "selectedElementIds": {
  11234. "id90": true,
  11235. },
  11236. },
  11237. "inserted": {
  11238. "selectedElementIds": {},
  11239. },
  11240. },
  11241. },
  11242. "elementsChange": ElementsChange {
  11243. "added": Map {},
  11244. "removed": Map {
  11245. "id90" => Delta {
  11246. "deleted": {
  11247. "angle": 0,
  11248. "backgroundColor": "transparent",
  11249. "boundElements": null,
  11250. "customData": undefined,
  11251. "fillStyle": "solid",
  11252. "frameId": null,
  11253. "groupIds": [],
  11254. "height": 10,
  11255. "index": "a0",
  11256. "isDeleted": false,
  11257. "link": null,
  11258. "locked": false,
  11259. "opacity": 100,
  11260. "roughness": 1,
  11261. "roundness": {
  11262. "type": 3,
  11263. },
  11264. "strokeColor": "#1e1e1e",
  11265. "strokeStyle": "solid",
  11266. "strokeWidth": 2,
  11267. "type": "rectangle",
  11268. "width": 10,
  11269. "x": 10,
  11270. "y": 0,
  11271. },
  11272. "inserted": {
  11273. "isDeleted": true,
  11274. },
  11275. },
  11276. },
  11277. "updated": Map {},
  11278. },
  11279. },
  11280. ],
  11281. }
  11282. `;
  11283. exports[`history > multiplayer undo/redo > should update history entries after remote changes on the same properties > [end of test] number of elements 1`] = `1`;
  11284. exports[`history > multiplayer undo/redo > should update history entries after remote changes on the same properties > [end of test] number of renders 1`] = `15`;
  11285. exports[`history > singleplayer undo/redo > remounting undo/redo buttons should initialize undo/redo state correctly > [end of test] appState 1`] = `
  11286. {
  11287. "activeEmbeddable": null,
  11288. "activeTool": {
  11289. "customType": null,
  11290. "fromSelection": false,
  11291. "lastActiveTool": null,
  11292. "locked": false,
  11293. "type": "selection",
  11294. },
  11295. "collaborators": Map {},
  11296. "contextMenu": null,
  11297. "croppingElementId": null,
  11298. "currentChartType": "bar",
  11299. "currentHoveredFontFamily": null,
  11300. "currentItemArrowType": "round",
  11301. "currentItemBackgroundColor": "transparent",
  11302. "currentItemEndArrowhead": "arrow",
  11303. "currentItemFillStyle": "solid",
  11304. "currentItemFontFamily": 5,
  11305. "currentItemFontSize": 20,
  11306. "currentItemOpacity": 100,
  11307. "currentItemRoughness": 1,
  11308. "currentItemRoundness": "round",
  11309. "currentItemStartArrowhead": null,
  11310. "currentItemStrokeColor": "#1e1e1e",
  11311. "currentItemStrokeStyle": "solid",
  11312. "currentItemStrokeWidth": 2,
  11313. "currentItemTextAlign": "left",
  11314. "cursorButton": "up",
  11315. "defaultSidebarDockedPreference": false,
  11316. "editingFrame": null,
  11317. "editingGroupId": null,
  11318. "editingLinearElement": null,
  11319. "editingTextElement": null,
  11320. "elementsToHighlight": null,
  11321. "errorMessage": null,
  11322. "exportBackground": true,
  11323. "exportEmbedScene": false,
  11324. "exportScale": 1,
  11325. "exportWithDarkMode": false,
  11326. "fileHandle": null,
  11327. "followedBy": Set {},
  11328. "frameRendering": {
  11329. "clip": true,
  11330. "enabled": true,
  11331. "name": true,
  11332. "outline": true,
  11333. },
  11334. "frameToHighlight": null,
  11335. "gridModeEnabled": false,
  11336. "gridSize": 20,
  11337. "gridStep": 5,
  11338. "height": 0,
  11339. "hoveredElementIds": {},
  11340. "isBindingEnabled": true,
  11341. "isCropping": false,
  11342. "isLoading": false,
  11343. "isResizing": false,
  11344. "isRotating": false,
  11345. "lastPointerDownWith": "mouse",
  11346. "multiElement": null,
  11347. "newElement": null,
  11348. "objectsSnapModeEnabled": false,
  11349. "offsetLeft": 0,
  11350. "offsetTop": 0,
  11351. "openDialog": null,
  11352. "openMenu": null,
  11353. "openPopup": null,
  11354. "openSidebar": null,
  11355. "originSnapOffset": null,
  11356. "pasteDialog": {
  11357. "data": null,
  11358. "shown": false,
  11359. },
  11360. "penDetected": false,
  11361. "penMode": false,
  11362. "pendingImageElementId": null,
  11363. "previousSelectedElementIds": {},
  11364. "resizingElement": null,
  11365. "scrollX": 0,
  11366. "scrollY": 0,
  11367. "searchMatches": [],
  11368. "selectedElementIds": {},
  11369. "selectedElementsAreBeingDragged": false,
  11370. "selectedGroupIds": {},
  11371. "selectionElement": null,
  11372. "shouldCacheIgnoreZoom": false,
  11373. "showHyperlinkPopup": false,
  11374. "showWelcomeScreen": false,
  11375. "snapLines": [],
  11376. "startBoundElement": null,
  11377. "stats": {
  11378. "open": false,
  11379. "panels": 3,
  11380. },
  11381. "suggestedBindings": [],
  11382. "theme": "light",
  11383. "toast": null,
  11384. "userToFollow": null,
  11385. "viewBackgroundColor": "#ffffff",
  11386. "viewModeEnabled": false,
  11387. "width": 0,
  11388. "zenModeEnabled": false,
  11389. "zoom": {
  11390. "value": 1,
  11391. },
  11392. }
  11393. `;
  11394. exports[`history > singleplayer undo/redo > remounting undo/redo buttons should initialize undo/redo state correctly > [end of test] element 0 1`] = `
  11395. {
  11396. "angle": 0,
  11397. "backgroundColor": "transparent",
  11398. "boundElements": [],
  11399. "customData": undefined,
  11400. "fillStyle": "solid",
  11401. "frameId": null,
  11402. "groupIds": [],
  11403. "height": 100,
  11404. "id": "A",
  11405. "index": "a0",
  11406. "isDeleted": false,
  11407. "link": null,
  11408. "locked": false,
  11409. "opacity": 100,
  11410. "roughness": 1,
  11411. "roundness": {
  11412. "type": 3,
  11413. },
  11414. "strokeColor": "#1e1e1e",
  11415. "strokeStyle": "solid",
  11416. "strokeWidth": 2,
  11417. "type": "rectangle",
  11418. "updated": 1,
  11419. "version": 2,
  11420. "width": 100,
  11421. "x": 0,
  11422. "y": 0,
  11423. }
  11424. `;
  11425. exports[`history > singleplayer undo/redo > remounting undo/redo buttons should initialize undo/redo state correctly > [end of test] element 1 1`] = `
  11426. {
  11427. "angle": 0,
  11428. "backgroundColor": "transparent",
  11429. "boundElements": null,
  11430. "customData": undefined,
  11431. "fillStyle": "solid",
  11432. "frameId": null,
  11433. "groupIds": [],
  11434. "height": 10,
  11435. "id": "id86",
  11436. "index": "a1",
  11437. "isDeleted": true,
  11438. "link": null,
  11439. "locked": false,
  11440. "opacity": 100,
  11441. "roughness": 1,
  11442. "roundness": {
  11443. "type": 3,
  11444. },
  11445. "strokeColor": "#1e1e1e",
  11446. "strokeStyle": "solid",
  11447. "strokeWidth": 2,
  11448. "type": "rectangle",
  11449. "updated": 1,
  11450. "version": 4,
  11451. "width": 10,
  11452. "x": 0,
  11453. "y": 0,
  11454. }
  11455. `;
  11456. exports[`history > singleplayer undo/redo > remounting undo/redo buttons should initialize undo/redo state correctly > [end of test] history 1`] = `
  11457. History {
  11458. "onHistoryChangedEmitter": Emitter {
  11459. "subscribers": [
  11460. [Function],
  11461. [Function],
  11462. ],
  11463. },
  11464. "redoStack": [
  11465. HistoryEntry {
  11466. "appStateChange": AppStateChange {
  11467. "delta": Delta {
  11468. "deleted": {
  11469. "selectedElementIds": {},
  11470. },
  11471. "inserted": {
  11472. "selectedElementIds": {
  11473. "id86": true,
  11474. },
  11475. },
  11476. },
  11477. },
  11478. "elementsChange": ElementsChange {
  11479. "added": Map {
  11480. "id86" => Delta {
  11481. "deleted": {
  11482. "isDeleted": true,
  11483. },
  11484. "inserted": {
  11485. "angle": 0,
  11486. "backgroundColor": "transparent",
  11487. "boundElements": null,
  11488. "customData": undefined,
  11489. "fillStyle": "solid",
  11490. "frameId": null,
  11491. "groupIds": [],
  11492. "height": 10,
  11493. "index": "a1",
  11494. "isDeleted": false,
  11495. "link": null,
  11496. "locked": false,
  11497. "opacity": 100,
  11498. "roughness": 1,
  11499. "roundness": {
  11500. "type": 3,
  11501. },
  11502. "strokeColor": "#1e1e1e",
  11503. "strokeStyle": "solid",
  11504. "strokeWidth": 2,
  11505. "type": "rectangle",
  11506. "width": 10,
  11507. "x": 0,
  11508. "y": 0,
  11509. },
  11510. },
  11511. },
  11512. "removed": Map {},
  11513. "updated": Map {},
  11514. },
  11515. },
  11516. ],
  11517. "undoStack": [],
  11518. }
  11519. `;
  11520. exports[`history > singleplayer undo/redo > remounting undo/redo buttons should initialize undo/redo state correctly > [end of test] number of elements 1`] = `2`;
  11521. exports[`history > singleplayer undo/redo > remounting undo/redo buttons should initialize undo/redo state correctly > [end of test] number of renders 1`] = `11`;
  11522. exports[`history > singleplayer undo/redo > should clear the redo stack on elements change > [end of test] appState 1`] = `
  11523. {
  11524. "activeEmbeddable": null,
  11525. "activeTool": {
  11526. "customType": null,
  11527. "fromSelection": false,
  11528. "lastActiveTool": null,
  11529. "locked": false,
  11530. "type": "selection",
  11531. },
  11532. "collaborators": Map {},
  11533. "contextMenu": null,
  11534. "croppingElementId": null,
  11535. "currentChartType": "bar",
  11536. "currentHoveredFontFamily": null,
  11537. "currentItemArrowType": "round",
  11538. "currentItemBackgroundColor": "transparent",
  11539. "currentItemEndArrowhead": "arrow",
  11540. "currentItemFillStyle": "solid",
  11541. "currentItemFontFamily": 5,
  11542. "currentItemFontSize": 20,
  11543. "currentItemOpacity": 100,
  11544. "currentItemRoughness": 1,
  11545. "currentItemRoundness": "round",
  11546. "currentItemStartArrowhead": null,
  11547. "currentItemStrokeColor": "#1e1e1e",
  11548. "currentItemStrokeStyle": "solid",
  11549. "currentItemStrokeWidth": 2,
  11550. "currentItemTextAlign": "left",
  11551. "cursorButton": "up",
  11552. "defaultSidebarDockedPreference": false,
  11553. "editingFrame": null,
  11554. "editingGroupId": null,
  11555. "editingLinearElement": null,
  11556. "editingTextElement": null,
  11557. "elementsToHighlight": null,
  11558. "errorMessage": null,
  11559. "exportBackground": true,
  11560. "exportEmbedScene": false,
  11561. "exportScale": 1,
  11562. "exportWithDarkMode": false,
  11563. "fileHandle": null,
  11564. "followedBy": Set {},
  11565. "frameRendering": {
  11566. "clip": true,
  11567. "enabled": true,
  11568. "name": true,
  11569. "outline": true,
  11570. },
  11571. "frameToHighlight": null,
  11572. "gridModeEnabled": false,
  11573. "gridSize": 20,
  11574. "gridStep": 5,
  11575. "height": 0,
  11576. "hoveredElementIds": {},
  11577. "isBindingEnabled": true,
  11578. "isCropping": false,
  11579. "isLoading": false,
  11580. "isResizing": false,
  11581. "isRotating": false,
  11582. "lastPointerDownWith": "mouse",
  11583. "multiElement": null,
  11584. "newElement": null,
  11585. "objectsSnapModeEnabled": false,
  11586. "offsetLeft": 0,
  11587. "offsetTop": 0,
  11588. "openDialog": null,
  11589. "openMenu": null,
  11590. "openPopup": null,
  11591. "openSidebar": null,
  11592. "originSnapOffset": null,
  11593. "pasteDialog": {
  11594. "data": null,
  11595. "shown": false,
  11596. },
  11597. "penDetected": false,
  11598. "penMode": false,
  11599. "pendingImageElementId": null,
  11600. "previousSelectedElementIds": {},
  11601. "resizingElement": null,
  11602. "scrollX": 0,
  11603. "scrollY": 0,
  11604. "searchMatches": [],
  11605. "selectedElementIds": {
  11606. "id14": true,
  11607. },
  11608. "selectedElementsAreBeingDragged": false,
  11609. "selectedGroupIds": {},
  11610. "selectionElement": null,
  11611. "shouldCacheIgnoreZoom": false,
  11612. "showHyperlinkPopup": false,
  11613. "showWelcomeScreen": true,
  11614. "snapLines": [],
  11615. "startBoundElement": null,
  11616. "stats": {
  11617. "open": false,
  11618. "panels": 3,
  11619. },
  11620. "suggestedBindings": [],
  11621. "theme": "light",
  11622. "toast": null,
  11623. "userToFollow": null,
  11624. "viewBackgroundColor": "#ffffff",
  11625. "viewModeEnabled": false,
  11626. "width": 0,
  11627. "zenModeEnabled": false,
  11628. "zoom": {
  11629. "value": 1,
  11630. },
  11631. }
  11632. `;
  11633. exports[`history > singleplayer undo/redo > should clear the redo stack on elements change > [end of test] element 0 1`] = `
  11634. {
  11635. "angle": 0,
  11636. "backgroundColor": "transparent",
  11637. "boundElements": null,
  11638. "customData": undefined,
  11639. "fillStyle": "solid",
  11640. "frameId": null,
  11641. "groupIds": [],
  11642. "height": 10,
  11643. "id": "id13",
  11644. "index": "a0",
  11645. "isDeleted": true,
  11646. "link": null,
  11647. "locked": false,
  11648. "opacity": 100,
  11649. "roughness": 1,
  11650. "roundness": {
  11651. "type": 3,
  11652. },
  11653. "strokeColor": "#1e1e1e",
  11654. "strokeStyle": "solid",
  11655. "strokeWidth": 2,
  11656. "type": "rectangle",
  11657. "updated": 1,
  11658. "version": 4,
  11659. "width": 10,
  11660. "x": 10,
  11661. "y": 0,
  11662. }
  11663. `;
  11664. exports[`history > singleplayer undo/redo > should clear the redo stack on elements change > [end of test] element 1 1`] = `
  11665. {
  11666. "angle": 0,
  11667. "backgroundColor": "transparent",
  11668. "boundElements": null,
  11669. "customData": undefined,
  11670. "fillStyle": "solid",
  11671. "frameId": null,
  11672. "groupIds": [],
  11673. "height": 10,
  11674. "id": "id14",
  11675. "index": "a1",
  11676. "isDeleted": false,
  11677. "link": null,
  11678. "locked": false,
  11679. "opacity": 100,
  11680. "roughness": 1,
  11681. "roundness": {
  11682. "type": 3,
  11683. },
  11684. "strokeColor": "#1e1e1e",
  11685. "strokeStyle": "solid",
  11686. "strokeWidth": 2,
  11687. "type": "rectangle",
  11688. "updated": 1,
  11689. "version": 3,
  11690. "width": 10,
  11691. "x": 20,
  11692. "y": 0,
  11693. }
  11694. `;
  11695. exports[`history > singleplayer undo/redo > should clear the redo stack on elements change > [end of test] history 1`] = `
  11696. History {
  11697. "onHistoryChangedEmitter": Emitter {
  11698. "subscribers": [
  11699. [Function],
  11700. [Function],
  11701. ],
  11702. },
  11703. "redoStack": [],
  11704. "undoStack": [
  11705. HistoryEntry {
  11706. "appStateChange": AppStateChange {
  11707. "delta": Delta {
  11708. "deleted": {
  11709. "selectedElementIds": {
  11710. "id14": true,
  11711. },
  11712. },
  11713. "inserted": {
  11714. "selectedElementIds": {},
  11715. },
  11716. },
  11717. },
  11718. "elementsChange": ElementsChange {
  11719. "added": Map {},
  11720. "removed": Map {
  11721. "id14" => Delta {
  11722. "deleted": {
  11723. "angle": 0,
  11724. "backgroundColor": "transparent",
  11725. "boundElements": null,
  11726. "customData": undefined,
  11727. "fillStyle": "solid",
  11728. "frameId": null,
  11729. "groupIds": [],
  11730. "height": 10,
  11731. "index": "a1",
  11732. "isDeleted": false,
  11733. "link": null,
  11734. "locked": false,
  11735. "opacity": 100,
  11736. "roughness": 1,
  11737. "roundness": {
  11738. "type": 3,
  11739. },
  11740. "strokeColor": "#1e1e1e",
  11741. "strokeStyle": "solid",
  11742. "strokeWidth": 2,
  11743. "type": "rectangle",
  11744. "width": 10,
  11745. "x": 20,
  11746. "y": 0,
  11747. },
  11748. "inserted": {
  11749. "isDeleted": true,
  11750. },
  11751. },
  11752. },
  11753. "updated": Map {},
  11754. },
  11755. },
  11756. ],
  11757. }
  11758. `;
  11759. exports[`history > singleplayer undo/redo > should clear the redo stack on elements change > [end of test] number of elements 1`] = `2`;
  11760. exports[`history > singleplayer undo/redo > should clear the redo stack on elements change > [end of test] number of renders 1`] = `8`;
  11761. exports[`history > singleplayer undo/redo > should create entry when selecting freedraw > [end of test] appState 1`] = `
  11762. {
  11763. "activeEmbeddable": null,
  11764. "activeTool": {
  11765. "customType": null,
  11766. "fromSelection": false,
  11767. "lastActiveTool": null,
  11768. "locked": false,
  11769. "type": "freedraw",
  11770. },
  11771. "collaborators": Map {},
  11772. "contextMenu": null,
  11773. "croppingElementId": null,
  11774. "currentChartType": "bar",
  11775. "currentHoveredFontFamily": null,
  11776. "currentItemArrowType": "round",
  11777. "currentItemBackgroundColor": "transparent",
  11778. "currentItemEndArrowhead": "arrow",
  11779. "currentItemFillStyle": "solid",
  11780. "currentItemFontFamily": 5,
  11781. "currentItemFontSize": 20,
  11782. "currentItemOpacity": 100,
  11783. "currentItemRoughness": 1,
  11784. "currentItemRoundness": "round",
  11785. "currentItemStartArrowhead": null,
  11786. "currentItemStrokeColor": "#e03131",
  11787. "currentItemStrokeStyle": "solid",
  11788. "currentItemStrokeWidth": 2,
  11789. "currentItemTextAlign": "left",
  11790. "cursorButton": "up",
  11791. "defaultSidebarDockedPreference": false,
  11792. "editingFrame": null,
  11793. "editingGroupId": null,
  11794. "editingLinearElement": null,
  11795. "editingTextElement": null,
  11796. "elementsToHighlight": null,
  11797. "errorMessage": null,
  11798. "exportBackground": true,
  11799. "exportEmbedScene": false,
  11800. "exportScale": 1,
  11801. "exportWithDarkMode": false,
  11802. "fileHandle": null,
  11803. "followedBy": Set {},
  11804. "frameRendering": {
  11805. "clip": true,
  11806. "enabled": true,
  11807. "name": true,
  11808. "outline": true,
  11809. },
  11810. "frameToHighlight": null,
  11811. "gridModeEnabled": false,
  11812. "gridSize": 20,
  11813. "gridStep": 5,
  11814. "height": 0,
  11815. "hoveredElementIds": {},
  11816. "isBindingEnabled": true,
  11817. "isCropping": false,
  11818. "isLoading": false,
  11819. "isResizing": false,
  11820. "isRotating": false,
  11821. "lastPointerDownWith": "mouse",
  11822. "multiElement": null,
  11823. "newElement": null,
  11824. "objectsSnapModeEnabled": false,
  11825. "offsetLeft": 0,
  11826. "offsetTop": 0,
  11827. "openDialog": null,
  11828. "openMenu": null,
  11829. "openPopup": "elementStroke",
  11830. "openSidebar": null,
  11831. "originSnapOffset": null,
  11832. "pasteDialog": {
  11833. "data": null,
  11834. "shown": false,
  11835. },
  11836. "penDetected": false,
  11837. "penMode": false,
  11838. "pendingImageElementId": null,
  11839. "previousSelectedElementIds": {},
  11840. "resizingElement": null,
  11841. "scrollX": 0,
  11842. "scrollY": 0,
  11843. "searchMatches": [],
  11844. "selectedElementIds": {},
  11845. "selectedElementsAreBeingDragged": false,
  11846. "selectedGroupIds": {},
  11847. "selectionElement": null,
  11848. "shouldCacheIgnoreZoom": false,
  11849. "showHyperlinkPopup": false,
  11850. "showWelcomeScreen": true,
  11851. "snapLines": [],
  11852. "startBoundElement": null,
  11853. "stats": {
  11854. "open": false,
  11855. "panels": 3,
  11856. },
  11857. "suggestedBindings": [],
  11858. "theme": "light",
  11859. "toast": null,
  11860. "userToFollow": null,
  11861. "viewBackgroundColor": "#ffffff",
  11862. "viewModeEnabled": false,
  11863. "width": 0,
  11864. "zenModeEnabled": false,
  11865. "zoom": {
  11866. "value": 1,
  11867. },
  11868. }
  11869. `;
  11870. exports[`history > singleplayer undo/redo > should create entry when selecting freedraw > [end of test] element 0 1`] = `
  11871. {
  11872. "angle": 0,
  11873. "backgroundColor": "transparent",
  11874. "boundElements": null,
  11875. "customData": undefined,
  11876. "fillStyle": "solid",
  11877. "frameId": null,
  11878. "groupIds": [],
  11879. "height": 10,
  11880. "id": "id32",
  11881. "index": "a0",
  11882. "isDeleted": false,
  11883. "link": null,
  11884. "locked": false,
  11885. "opacity": 100,
  11886. "roughness": 1,
  11887. "roundness": {
  11888. "type": 3,
  11889. },
  11890. "strokeColor": "#1e1e1e",
  11891. "strokeStyle": "solid",
  11892. "strokeWidth": 2,
  11893. "type": "rectangle",
  11894. "updated": 1,
  11895. "version": 3,
  11896. "width": 10,
  11897. "x": -10,
  11898. "y": -10,
  11899. }
  11900. `;
  11901. exports[`history > singleplayer undo/redo > should create entry when selecting freedraw > [end of test] element 1 1`] = `
  11902. {
  11903. "angle": 0,
  11904. "backgroundColor": "transparent",
  11905. "boundElements": null,
  11906. "customData": undefined,
  11907. "fillStyle": "solid",
  11908. "frameId": null,
  11909. "groupIds": [],
  11910. "height": 10,
  11911. "id": "id33",
  11912. "index": "a1",
  11913. "isDeleted": true,
  11914. "lastCommittedPoint": [
  11915. 50,
  11916. 10,
  11917. ],
  11918. "link": null,
  11919. "locked": false,
  11920. "opacity": 100,
  11921. "points": [
  11922. [
  11923. 0,
  11924. 0,
  11925. ],
  11926. [
  11927. 50,
  11928. 10,
  11929. ],
  11930. [
  11931. 50,
  11932. 10,
  11933. ],
  11934. ],
  11935. "pressures": [
  11936. 0,
  11937. 0,
  11938. 0,
  11939. ],
  11940. "roughness": 1,
  11941. "roundness": null,
  11942. "simulatePressure": false,
  11943. "strokeColor": "#1e1e1e",
  11944. "strokeStyle": "solid",
  11945. "strokeWidth": 2,
  11946. "type": "freedraw",
  11947. "updated": 1,
  11948. "version": 5,
  11949. "width": 50,
  11950. "x": 40,
  11951. "y": -20,
  11952. }
  11953. `;
  11954. exports[`history > singleplayer undo/redo > should create entry when selecting freedraw > [end of test] element 2 1`] = `
  11955. {
  11956. "angle": 0,
  11957. "backgroundColor": "transparent",
  11958. "boundElements": null,
  11959. "customData": undefined,
  11960. "fillStyle": "solid",
  11961. "frameId": null,
  11962. "groupIds": [],
  11963. "height": 10,
  11964. "id": "id34",
  11965. "index": "a2",
  11966. "isDeleted": false,
  11967. "lastCommittedPoint": [
  11968. 50,
  11969. 10,
  11970. ],
  11971. "link": null,
  11972. "locked": false,
  11973. "opacity": 100,
  11974. "points": [
  11975. [
  11976. 0,
  11977. 0,
  11978. ],
  11979. [
  11980. 50,
  11981. 10,
  11982. ],
  11983. [
  11984. 50,
  11985. 10,
  11986. ],
  11987. ],
  11988. "pressures": [
  11989. 0,
  11990. 0,
  11991. 0,
  11992. ],
  11993. "roughness": 1,
  11994. "roundness": null,
  11995. "simulatePressure": false,
  11996. "strokeColor": "#e03131",
  11997. "strokeStyle": "solid",
  11998. "strokeWidth": 2,
  11999. "type": "freedraw",
  12000. "updated": 1,
  12001. "version": 4,
  12002. "width": 50,
  12003. "x": 130,
  12004. "y": -30,
  12005. }
  12006. `;
  12007. exports[`history > singleplayer undo/redo > should create entry when selecting freedraw > [end of test] history 1`] = `
  12008. History {
  12009. "onHistoryChangedEmitter": Emitter {
  12010. "subscribers": [
  12011. [Function],
  12012. [Function],
  12013. ],
  12014. },
  12015. "redoStack": [],
  12016. "undoStack": [
  12017. HistoryEntry {
  12018. "appStateChange": AppStateChange {
  12019. "delta": Delta {
  12020. "deleted": {
  12021. "selectedElementIds": {
  12022. "id32": true,
  12023. },
  12024. },
  12025. "inserted": {
  12026. "selectedElementIds": {},
  12027. },
  12028. },
  12029. },
  12030. "elementsChange": ElementsChange {
  12031. "added": Map {},
  12032. "removed": Map {
  12033. "id32" => Delta {
  12034. "deleted": {
  12035. "angle": 0,
  12036. "backgroundColor": "transparent",
  12037. "boundElements": null,
  12038. "customData": undefined,
  12039. "fillStyle": "solid",
  12040. "frameId": null,
  12041. "groupIds": [],
  12042. "height": 10,
  12043. "index": "a0",
  12044. "isDeleted": false,
  12045. "link": null,
  12046. "locked": false,
  12047. "opacity": 100,
  12048. "roughness": 1,
  12049. "roundness": {
  12050. "type": 3,
  12051. },
  12052. "strokeColor": "#1e1e1e",
  12053. "strokeStyle": "solid",
  12054. "strokeWidth": 2,
  12055. "type": "rectangle",
  12056. "width": 10,
  12057. "x": -10,
  12058. "y": -10,
  12059. },
  12060. "inserted": {
  12061. "isDeleted": true,
  12062. },
  12063. },
  12064. },
  12065. "updated": Map {},
  12066. },
  12067. },
  12068. HistoryEntry {
  12069. "appStateChange": AppStateChange {
  12070. "delta": Delta {
  12071. "deleted": {
  12072. "selectedElementIds": {},
  12073. },
  12074. "inserted": {
  12075. "selectedElementIds": {
  12076. "id32": true,
  12077. },
  12078. },
  12079. },
  12080. },
  12081. "elementsChange": ElementsChange {
  12082. "added": Map {},
  12083. "removed": Map {},
  12084. "updated": Map {},
  12085. },
  12086. },
  12087. HistoryEntry {
  12088. "appStateChange": AppStateChange {
  12089. "delta": Delta {
  12090. "deleted": {},
  12091. "inserted": {},
  12092. },
  12093. },
  12094. "elementsChange": ElementsChange {
  12095. "added": Map {},
  12096. "removed": Map {
  12097. "id34" => Delta {
  12098. "deleted": {
  12099. "angle": 0,
  12100. "backgroundColor": "transparent",
  12101. "boundElements": null,
  12102. "customData": undefined,
  12103. "fillStyle": "solid",
  12104. "frameId": null,
  12105. "groupIds": [],
  12106. "height": 10,
  12107. "index": "a2",
  12108. "isDeleted": false,
  12109. "lastCommittedPoint": [
  12110. 50,
  12111. 10,
  12112. ],
  12113. "link": null,
  12114. "locked": false,
  12115. "opacity": 100,
  12116. "points": [
  12117. [
  12118. 0,
  12119. 0,
  12120. ],
  12121. [
  12122. 50,
  12123. 10,
  12124. ],
  12125. [
  12126. 50,
  12127. 10,
  12128. ],
  12129. ],
  12130. "pressures": [
  12131. 0,
  12132. 0,
  12133. 0,
  12134. ],
  12135. "roughness": 1,
  12136. "roundness": null,
  12137. "simulatePressure": false,
  12138. "strokeColor": "#e03131",
  12139. "strokeStyle": "solid",
  12140. "strokeWidth": 2,
  12141. "type": "freedraw",
  12142. "width": 50,
  12143. "x": 130,
  12144. "y": -30,
  12145. },
  12146. "inserted": {
  12147. "isDeleted": true,
  12148. },
  12149. },
  12150. },
  12151. "updated": Map {},
  12152. },
  12153. },
  12154. ],
  12155. }
  12156. `;
  12157. exports[`history > singleplayer undo/redo > should create entry when selecting freedraw > [end of test] number of elements 1`] = `3`;
  12158. exports[`history > singleplayer undo/redo > should create entry when selecting freedraw > [end of test] number of renders 1`] = `12`;
  12159. exports[`history > singleplayer undo/redo > should create new history entry on scene import via drag&drop > [end of test] appState 1`] = `
  12160. {
  12161. "activeEmbeddable": null,
  12162. "activeTool": {
  12163. "customType": null,
  12164. "fromSelection": false,
  12165. "lastActiveTool": null,
  12166. "locked": false,
  12167. "type": "selection",
  12168. },
  12169. "collaborators": Map {},
  12170. "contextMenu": null,
  12171. "croppingElementId": null,
  12172. "currentChartType": "bar",
  12173. "currentHoveredFontFamily": null,
  12174. "currentItemArrowType": "round",
  12175. "currentItemBackgroundColor": "transparent",
  12176. "currentItemEndArrowhead": "arrow",
  12177. "currentItemFillStyle": "solid",
  12178. "currentItemFontFamily": 5,
  12179. "currentItemFontSize": 20,
  12180. "currentItemOpacity": 100,
  12181. "currentItemRoughness": 1,
  12182. "currentItemRoundness": "round",
  12183. "currentItemStartArrowhead": null,
  12184. "currentItemStrokeColor": "#1e1e1e",
  12185. "currentItemStrokeStyle": "solid",
  12186. "currentItemStrokeWidth": 2,
  12187. "currentItemTextAlign": "left",
  12188. "cursorButton": "up",
  12189. "defaultSidebarDockedPreference": false,
  12190. "editingFrame": null,
  12191. "editingGroupId": null,
  12192. "editingLinearElement": null,
  12193. "editingTextElement": null,
  12194. "elementsToHighlight": null,
  12195. "errorMessage": null,
  12196. "exportBackground": true,
  12197. "exportEmbedScene": false,
  12198. "exportScale": 1,
  12199. "exportWithDarkMode": false,
  12200. "fileHandle": null,
  12201. "followedBy": Set {},
  12202. "frameRendering": {
  12203. "clip": true,
  12204. "enabled": true,
  12205. "name": true,
  12206. "outline": true,
  12207. },
  12208. "frameToHighlight": null,
  12209. "gridModeEnabled": false,
  12210. "gridSize": 20,
  12211. "gridStep": 5,
  12212. "height": 0,
  12213. "hoveredElementIds": {},
  12214. "isBindingEnabled": true,
  12215. "isCropping": false,
  12216. "isLoading": false,
  12217. "isResizing": false,
  12218. "isRotating": false,
  12219. "lastPointerDownWith": "mouse",
  12220. "multiElement": null,
  12221. "newElement": null,
  12222. "objectsSnapModeEnabled": false,
  12223. "offsetLeft": 0,
  12224. "offsetTop": 0,
  12225. "openDialog": null,
  12226. "openMenu": null,
  12227. "openPopup": null,
  12228. "openSidebar": null,
  12229. "originSnapOffset": {
  12230. "x": 0,
  12231. "y": 0,
  12232. },
  12233. "pasteDialog": {
  12234. "data": null,
  12235. "shown": false,
  12236. },
  12237. "penDetected": false,
  12238. "penMode": false,
  12239. "pendingImageElementId": null,
  12240. "previousSelectedElementIds": {},
  12241. "resizingElement": null,
  12242. "scrollX": -50,
  12243. "scrollY": -50,
  12244. "searchMatches": [],
  12245. "selectedElementIds": {},
  12246. "selectedElementsAreBeingDragged": false,
  12247. "selectedGroupIds": {},
  12248. "selectionElement": null,
  12249. "shouldCacheIgnoreZoom": false,
  12250. "showHyperlinkPopup": false,
  12251. "showWelcomeScreen": false,
  12252. "snapLines": [],
  12253. "startBoundElement": null,
  12254. "stats": {
  12255. "open": false,
  12256. "panels": 3,
  12257. },
  12258. "suggestedBindings": [],
  12259. "theme": "light",
  12260. "toast": null,
  12261. "userToFollow": null,
  12262. "viewBackgroundColor": "#000",
  12263. "viewModeEnabled": false,
  12264. "width": 0,
  12265. "zenModeEnabled": false,
  12266. "zoom": {
  12267. "value": 1,
  12268. },
  12269. }
  12270. `;
  12271. exports[`history > singleplayer undo/redo > should create new history entry on scene import via drag&drop > [end of test] element 0 1`] = `
  12272. {
  12273. "angle": 0,
  12274. "backgroundColor": "transparent",
  12275. "boundElements": [],
  12276. "customData": undefined,
  12277. "fillStyle": "solid",
  12278. "frameId": null,
  12279. "groupIds": [],
  12280. "height": 100,
  12281. "id": "A",
  12282. "index": "a0",
  12283. "isDeleted": true,
  12284. "link": null,
  12285. "locked": false,
  12286. "opacity": 100,
  12287. "roughness": 1,
  12288. "roundness": {
  12289. "type": 3,
  12290. },
  12291. "strokeColor": "#1e1e1e",
  12292. "strokeStyle": "solid",
  12293. "strokeWidth": 2,
  12294. "type": "rectangle",
  12295. "updated": 1,
  12296. "version": 5,
  12297. "width": 100,
  12298. "x": 0,
  12299. "y": 0,
  12300. }
  12301. `;
  12302. exports[`history > singleplayer undo/redo > should create new history entry on scene import via drag&drop > [end of test] element 1 1`] = `
  12303. {
  12304. "angle": 0,
  12305. "backgroundColor": "transparent",
  12306. "boundElements": [],
  12307. "fillStyle": "solid",
  12308. "frameId": null,
  12309. "groupIds": [],
  12310. "height": 100,
  12311. "id": "B",
  12312. "index": "a1",
  12313. "isDeleted": false,
  12314. "link": null,
  12315. "locked": false,
  12316. "opacity": 100,
  12317. "roughness": 1,
  12318. "roundness": {
  12319. "type": 3,
  12320. },
  12321. "strokeColor": "#1e1e1e",
  12322. "strokeStyle": "solid",
  12323. "strokeWidth": 2,
  12324. "type": "rectangle",
  12325. "updated": 1,
  12326. "version": 5,
  12327. "width": 100,
  12328. "x": 0,
  12329. "y": 0,
  12330. }
  12331. `;
  12332. exports[`history > singleplayer undo/redo > should create new history entry on scene import via drag&drop > [end of test] history 1`] = `
  12333. History {
  12334. "onHistoryChangedEmitter": Emitter {
  12335. "subscribers": [
  12336. [Function],
  12337. [Function],
  12338. ],
  12339. },
  12340. "redoStack": [],
  12341. "undoStack": [
  12342. HistoryEntry {
  12343. "appStateChange": AppStateChange {
  12344. "delta": Delta {
  12345. "deleted": {
  12346. "viewBackgroundColor": "#000",
  12347. },
  12348. "inserted": {
  12349. "viewBackgroundColor": "#FFF",
  12350. },
  12351. },
  12352. },
  12353. "elementsChange": ElementsChange {
  12354. "added": Map {
  12355. "A" => Delta {
  12356. "deleted": {
  12357. "isDeleted": true,
  12358. },
  12359. "inserted": {
  12360. "isDeleted": false,
  12361. },
  12362. },
  12363. },
  12364. "removed": Map {
  12365. "B" => Delta {
  12366. "deleted": {
  12367. "angle": 0,
  12368. "backgroundColor": "transparent",
  12369. "boundElements": [],
  12370. "fillStyle": "solid",
  12371. "frameId": null,
  12372. "groupIds": [],
  12373. "height": 100,
  12374. "index": "a1",
  12375. "isDeleted": false,
  12376. "link": null,
  12377. "locked": false,
  12378. "opacity": 100,
  12379. "roughness": 1,
  12380. "roundness": {
  12381. "type": 3,
  12382. },
  12383. "strokeColor": "#1e1e1e",
  12384. "strokeStyle": "solid",
  12385. "strokeWidth": 2,
  12386. "type": "rectangle",
  12387. "width": 100,
  12388. "x": 0,
  12389. "y": 0,
  12390. },
  12391. "inserted": {
  12392. "isDeleted": true,
  12393. },
  12394. },
  12395. },
  12396. "updated": Map {},
  12397. },
  12398. },
  12399. ],
  12400. }
  12401. `;
  12402. exports[`history > singleplayer undo/redo > should create new history entry on scene import via drag&drop > [end of test] number of elements 1`] = `2`;
  12403. exports[`history > singleplayer undo/redo > should create new history entry on scene import via drag&drop > [end of test] number of renders 1`] = `6`;
  12404. exports[`history > singleplayer undo/redo > should disable undo/redo buttons when stacks empty > [end of test] appState 1`] = `
  12405. {
  12406. "activeEmbeddable": null,
  12407. "activeTool": {
  12408. "customType": null,
  12409. "fromSelection": false,
  12410. "lastActiveTool": null,
  12411. "locked": false,
  12412. "type": "selection",
  12413. },
  12414. "collaborators": Map {},
  12415. "contextMenu": null,
  12416. "croppingElementId": null,
  12417. "currentChartType": "bar",
  12418. "currentHoveredFontFamily": null,
  12419. "currentItemArrowType": "round",
  12420. "currentItemBackgroundColor": "transparent",
  12421. "currentItemEndArrowhead": "arrow",
  12422. "currentItemFillStyle": "solid",
  12423. "currentItemFontFamily": 5,
  12424. "currentItemFontSize": 20,
  12425. "currentItemOpacity": 100,
  12426. "currentItemRoughness": 1,
  12427. "currentItemRoundness": "round",
  12428. "currentItemStartArrowhead": null,
  12429. "currentItemStrokeColor": "#1e1e1e",
  12430. "currentItemStrokeStyle": "solid",
  12431. "currentItemStrokeWidth": 2,
  12432. "currentItemTextAlign": "left",
  12433. "cursorButton": "up",
  12434. "defaultSidebarDockedPreference": false,
  12435. "editingFrame": null,
  12436. "editingGroupId": null,
  12437. "editingLinearElement": null,
  12438. "editingTextElement": null,
  12439. "elementsToHighlight": null,
  12440. "errorMessage": null,
  12441. "exportBackground": true,
  12442. "exportEmbedScene": false,
  12443. "exportScale": 1,
  12444. "exportWithDarkMode": false,
  12445. "fileHandle": null,
  12446. "followedBy": Set {},
  12447. "frameRendering": {
  12448. "clip": true,
  12449. "enabled": true,
  12450. "name": true,
  12451. "outline": true,
  12452. },
  12453. "frameToHighlight": null,
  12454. "gridModeEnabled": false,
  12455. "gridSize": 20,
  12456. "gridStep": 5,
  12457. "height": 0,
  12458. "hoveredElementIds": {},
  12459. "isBindingEnabled": true,
  12460. "isCropping": false,
  12461. "isLoading": false,
  12462. "isResizing": false,
  12463. "isRotating": false,
  12464. "lastPointerDownWith": "mouse",
  12465. "multiElement": null,
  12466. "newElement": null,
  12467. "objectsSnapModeEnabled": false,
  12468. "offsetLeft": 0,
  12469. "offsetTop": 0,
  12470. "openDialog": null,
  12471. "openMenu": null,
  12472. "openPopup": null,
  12473. "openSidebar": null,
  12474. "originSnapOffset": null,
  12475. "pasteDialog": {
  12476. "data": null,
  12477. "shown": false,
  12478. },
  12479. "penDetected": false,
  12480. "penMode": false,
  12481. "pendingImageElementId": null,
  12482. "previousSelectedElementIds": {},
  12483. "resizingElement": null,
  12484. "scrollX": 0,
  12485. "scrollY": 0,
  12486. "searchMatches": [],
  12487. "selectedElementIds": {
  12488. "id84": true,
  12489. },
  12490. "selectedElementsAreBeingDragged": false,
  12491. "selectedGroupIds": {},
  12492. "selectionElement": null,
  12493. "shouldCacheIgnoreZoom": false,
  12494. "showHyperlinkPopup": false,
  12495. "showWelcomeScreen": false,
  12496. "snapLines": [],
  12497. "startBoundElement": null,
  12498. "stats": {
  12499. "open": false,
  12500. "panels": 3,
  12501. },
  12502. "suggestedBindings": [],
  12503. "theme": "light",
  12504. "toast": null,
  12505. "userToFollow": null,
  12506. "viewBackgroundColor": "#ffffff",
  12507. "viewModeEnabled": false,
  12508. "width": 0,
  12509. "zenModeEnabled": false,
  12510. "zoom": {
  12511. "value": 1,
  12512. },
  12513. }
  12514. `;
  12515. exports[`history > singleplayer undo/redo > should disable undo/redo buttons when stacks empty > [end of test] element 0 1`] = `
  12516. {
  12517. "angle": 0,
  12518. "backgroundColor": "transparent",
  12519. "boundElements": [],
  12520. "customData": undefined,
  12521. "fillStyle": "solid",
  12522. "frameId": null,
  12523. "groupIds": [],
  12524. "height": 100,
  12525. "id": "A",
  12526. "index": "a0",
  12527. "isDeleted": false,
  12528. "link": null,
  12529. "locked": false,
  12530. "opacity": 100,
  12531. "roughness": 1,
  12532. "roundness": {
  12533. "type": 3,
  12534. },
  12535. "strokeColor": "#1e1e1e",
  12536. "strokeStyle": "solid",
  12537. "strokeWidth": 2,
  12538. "type": "rectangle",
  12539. "updated": 1,
  12540. "version": 2,
  12541. "width": 100,
  12542. "x": 0,
  12543. "y": 0,
  12544. }
  12545. `;
  12546. exports[`history > singleplayer undo/redo > should disable undo/redo buttons when stacks empty > [end of test] element 1 1`] = `
  12547. {
  12548. "angle": 0,
  12549. "backgroundColor": "transparent",
  12550. "boundElements": null,
  12551. "customData": undefined,
  12552. "fillStyle": "solid",
  12553. "frameId": null,
  12554. "groupIds": [],
  12555. "height": 10,
  12556. "id": "id84",
  12557. "index": "a1",
  12558. "isDeleted": false,
  12559. "link": null,
  12560. "locked": false,
  12561. "opacity": 100,
  12562. "roughness": 1,
  12563. "roundness": {
  12564. "type": 3,
  12565. },
  12566. "strokeColor": "#1e1e1e",
  12567. "strokeStyle": "solid",
  12568. "strokeWidth": 2,
  12569. "type": "rectangle",
  12570. "updated": 1,
  12571. "version": 5,
  12572. "width": 10,
  12573. "x": 0,
  12574. "y": 0,
  12575. }
  12576. `;
  12577. exports[`history > singleplayer undo/redo > should disable undo/redo buttons when stacks empty > [end of test] history 1`] = `
  12578. History {
  12579. "onHistoryChangedEmitter": Emitter {
  12580. "subscribers": [
  12581. [Function],
  12582. [Function],
  12583. ],
  12584. },
  12585. "redoStack": [],
  12586. "undoStack": [
  12587. HistoryEntry {
  12588. "appStateChange": AppStateChange {
  12589. "delta": Delta {
  12590. "deleted": {
  12591. "selectedElementIds": {
  12592. "id84": true,
  12593. },
  12594. },
  12595. "inserted": {
  12596. "selectedElementIds": {},
  12597. },
  12598. },
  12599. },
  12600. "elementsChange": ElementsChange {
  12601. "added": Map {},
  12602. "removed": Map {
  12603. "id84" => Delta {
  12604. "deleted": {
  12605. "angle": 0,
  12606. "backgroundColor": "transparent",
  12607. "boundElements": null,
  12608. "customData": undefined,
  12609. "fillStyle": "solid",
  12610. "frameId": null,
  12611. "groupIds": [],
  12612. "height": 10,
  12613. "index": "a1",
  12614. "isDeleted": false,
  12615. "link": null,
  12616. "locked": false,
  12617. "opacity": 100,
  12618. "roughness": 1,
  12619. "roundness": {
  12620. "type": 3,
  12621. },
  12622. "strokeColor": "#1e1e1e",
  12623. "strokeStyle": "solid",
  12624. "strokeWidth": 2,
  12625. "type": "rectangle",
  12626. "width": 10,
  12627. "x": 0,
  12628. "y": 0,
  12629. },
  12630. "inserted": {
  12631. "isDeleted": true,
  12632. },
  12633. },
  12634. },
  12635. "updated": Map {},
  12636. },
  12637. },
  12638. ],
  12639. }
  12640. `;
  12641. exports[`history > singleplayer undo/redo > should disable undo/redo buttons when stacks empty > [end of test] number of elements 1`] = `2`;
  12642. exports[`history > singleplayer undo/redo > should disable undo/redo buttons when stacks empty > [end of test] number of renders 1`] = `7`;
  12643. exports[`history > singleplayer undo/redo > should end up with no history entry after initializing scene > [end of test] appState 1`] = `
  12644. {
  12645. "activeEmbeddable": null,
  12646. "activeTool": {
  12647. "customType": null,
  12648. "fromSelection": false,
  12649. "lastActiveTool": null,
  12650. "locked": false,
  12651. "type": "selection",
  12652. },
  12653. "collaborators": Map {},
  12654. "contextMenu": null,
  12655. "croppingElementId": null,
  12656. "currentChartType": "bar",
  12657. "currentHoveredFontFamily": null,
  12658. "currentItemArrowType": "round",
  12659. "currentItemBackgroundColor": "transparent",
  12660. "currentItemEndArrowhead": "arrow",
  12661. "currentItemFillStyle": "solid",
  12662. "currentItemFontFamily": 5,
  12663. "currentItemFontSize": 20,
  12664. "currentItemOpacity": 100,
  12665. "currentItemRoughness": 1,
  12666. "currentItemRoundness": "round",
  12667. "currentItemStartArrowhead": null,
  12668. "currentItemStrokeColor": "#1e1e1e",
  12669. "currentItemStrokeStyle": "solid",
  12670. "currentItemStrokeWidth": 2,
  12671. "currentItemTextAlign": "left",
  12672. "cursorButton": "up",
  12673. "defaultSidebarDockedPreference": false,
  12674. "editingFrame": null,
  12675. "editingGroupId": null,
  12676. "editingLinearElement": null,
  12677. "editingTextElement": null,
  12678. "elementsToHighlight": null,
  12679. "errorMessage": null,
  12680. "exportBackground": true,
  12681. "exportEmbedScene": false,
  12682. "exportScale": 1,
  12683. "exportWithDarkMode": false,
  12684. "fileHandle": null,
  12685. "followedBy": Set {},
  12686. "frameRendering": {
  12687. "clip": true,
  12688. "enabled": true,
  12689. "name": true,
  12690. "outline": true,
  12691. },
  12692. "frameToHighlight": null,
  12693. "gridModeEnabled": false,
  12694. "gridSize": 20,
  12695. "gridStep": 5,
  12696. "height": 0,
  12697. "hoveredElementIds": {},
  12698. "isBindingEnabled": true,
  12699. "isCropping": false,
  12700. "isLoading": false,
  12701. "isResizing": false,
  12702. "isRotating": false,
  12703. "lastPointerDownWith": "mouse",
  12704. "multiElement": null,
  12705. "newElement": null,
  12706. "objectsSnapModeEnabled": false,
  12707. "offsetLeft": 0,
  12708. "offsetTop": 0,
  12709. "openDialog": null,
  12710. "openMenu": null,
  12711. "openPopup": null,
  12712. "openSidebar": null,
  12713. "originSnapOffset": null,
  12714. "pasteDialog": {
  12715. "data": null,
  12716. "shown": false,
  12717. },
  12718. "penDetected": false,
  12719. "penMode": false,
  12720. "pendingImageElementId": null,
  12721. "previousSelectedElementIds": {},
  12722. "resizingElement": null,
  12723. "scrollX": 0,
  12724. "scrollY": 0,
  12725. "searchMatches": [],
  12726. "selectedElementIds": {
  12727. "id19": true,
  12728. },
  12729. "selectedElementsAreBeingDragged": false,
  12730. "selectedGroupIds": {},
  12731. "selectionElement": null,
  12732. "shouldCacheIgnoreZoom": false,
  12733. "showHyperlinkPopup": false,
  12734. "showWelcomeScreen": false,
  12735. "snapLines": [],
  12736. "startBoundElement": null,
  12737. "stats": {
  12738. "open": false,
  12739. "panels": 3,
  12740. },
  12741. "suggestedBindings": [],
  12742. "theme": "light",
  12743. "toast": null,
  12744. "userToFollow": null,
  12745. "viewBackgroundColor": "#ffffff",
  12746. "viewModeEnabled": false,
  12747. "width": 0,
  12748. "zenModeEnabled": true,
  12749. "zoom": {
  12750. "value": 1,
  12751. },
  12752. }
  12753. `;
  12754. exports[`history > singleplayer undo/redo > should end up with no history entry after initializing scene > [end of test] element 0 1`] = `
  12755. {
  12756. "angle": 0,
  12757. "backgroundColor": "transparent",
  12758. "boundElements": [],
  12759. "customData": undefined,
  12760. "fillStyle": "solid",
  12761. "frameId": null,
  12762. "groupIds": [],
  12763. "height": 100,
  12764. "id": "A",
  12765. "index": "a0",
  12766. "isDeleted": false,
  12767. "link": null,
  12768. "locked": false,
  12769. "opacity": 100,
  12770. "roughness": 1,
  12771. "roundness": {
  12772. "type": 3,
  12773. },
  12774. "strokeColor": "#1e1e1e",
  12775. "strokeStyle": "solid",
  12776. "strokeWidth": 2,
  12777. "type": "rectangle",
  12778. "updated": 1,
  12779. "version": 2,
  12780. "width": 100,
  12781. "x": 0,
  12782. "y": 0,
  12783. }
  12784. `;
  12785. exports[`history > singleplayer undo/redo > should end up with no history entry after initializing scene > [end of test] element 1 1`] = `
  12786. {
  12787. "angle": 0,
  12788. "backgroundColor": "transparent",
  12789. "boundElements": null,
  12790. "customData": undefined,
  12791. "fillStyle": "solid",
  12792. "frameId": null,
  12793. "groupIds": [],
  12794. "height": 10,
  12795. "id": "id19",
  12796. "index": "a1",
  12797. "isDeleted": false,
  12798. "link": null,
  12799. "locked": false,
  12800. "opacity": 100,
  12801. "roughness": 1,
  12802. "roundness": {
  12803. "type": 3,
  12804. },
  12805. "strokeColor": "#1e1e1e",
  12806. "strokeStyle": "solid",
  12807. "strokeWidth": 2,
  12808. "type": "rectangle",
  12809. "updated": 1,
  12810. "version": 5,
  12811. "width": 10,
  12812. "x": 0,
  12813. "y": 0,
  12814. }
  12815. `;
  12816. exports[`history > singleplayer undo/redo > should end up with no history entry after initializing scene > [end of test] history 1`] = `
  12817. History {
  12818. "onHistoryChangedEmitter": Emitter {
  12819. "subscribers": [
  12820. [Function],
  12821. [Function],
  12822. ],
  12823. },
  12824. "redoStack": [],
  12825. "undoStack": [
  12826. HistoryEntry {
  12827. "appStateChange": AppStateChange {
  12828. "delta": Delta {
  12829. "deleted": {
  12830. "selectedElementIds": {
  12831. "id19": true,
  12832. },
  12833. },
  12834. "inserted": {
  12835. "selectedElementIds": {},
  12836. },
  12837. },
  12838. },
  12839. "elementsChange": ElementsChange {
  12840. "added": Map {},
  12841. "removed": Map {
  12842. "id19" => Delta {
  12843. "deleted": {
  12844. "angle": 0,
  12845. "backgroundColor": "transparent",
  12846. "boundElements": null,
  12847. "customData": undefined,
  12848. "fillStyle": "solid",
  12849. "frameId": null,
  12850. "groupIds": [],
  12851. "height": 10,
  12852. "index": "a1",
  12853. "isDeleted": false,
  12854. "link": null,
  12855. "locked": false,
  12856. "opacity": 100,
  12857. "roughness": 1,
  12858. "roundness": {
  12859. "type": 3,
  12860. },
  12861. "strokeColor": "#1e1e1e",
  12862. "strokeStyle": "solid",
  12863. "strokeWidth": 2,
  12864. "type": "rectangle",
  12865. "width": 10,
  12866. "x": 0,
  12867. "y": 0,
  12868. },
  12869. "inserted": {
  12870. "isDeleted": true,
  12871. },
  12872. },
  12873. },
  12874. "updated": Map {},
  12875. },
  12876. },
  12877. ],
  12878. }
  12879. `;
  12880. exports[`history > singleplayer undo/redo > should end up with no history entry after initializing scene > [end of test] number of elements 1`] = `2`;
  12881. exports[`history > singleplayer undo/redo > should end up with no history entry after initializing scene > [end of test] number of renders 1`] = `7`;
  12882. exports[`history > singleplayer undo/redo > should iterate through the history when selection changes do not produce visible change > [end of test] appState 1`] = `
  12883. {
  12884. "activeEmbeddable": null,
  12885. "activeTool": {
  12886. "customType": null,
  12887. "fromSelection": false,
  12888. "lastActiveTool": null,
  12889. "locked": false,
  12890. "type": "selection",
  12891. },
  12892. "collaborators": Map {},
  12893. "contextMenu": null,
  12894. "croppingElementId": null,
  12895. "currentChartType": "bar",
  12896. "currentHoveredFontFamily": null,
  12897. "currentItemArrowType": "round",
  12898. "currentItemBackgroundColor": "transparent",
  12899. "currentItemEndArrowhead": "arrow",
  12900. "currentItemFillStyle": "solid",
  12901. "currentItemFontFamily": 5,
  12902. "currentItemFontSize": 20,
  12903. "currentItemOpacity": 100,
  12904. "currentItemRoughness": 1,
  12905. "currentItemRoundness": "round",
  12906. "currentItemStartArrowhead": null,
  12907. "currentItemStrokeColor": "#1e1e1e",
  12908. "currentItemStrokeStyle": "solid",
  12909. "currentItemStrokeWidth": 2,
  12910. "currentItemTextAlign": "left",
  12911. "cursorButton": "up",
  12912. "defaultSidebarDockedPreference": false,
  12913. "editingFrame": null,
  12914. "editingGroupId": null,
  12915. "editingLinearElement": null,
  12916. "editingTextElement": null,
  12917. "elementsToHighlight": null,
  12918. "errorMessage": null,
  12919. "exportBackground": true,
  12920. "exportEmbedScene": false,
  12921. "exportScale": 1,
  12922. "exportWithDarkMode": false,
  12923. "fileHandle": null,
  12924. "followedBy": Set {},
  12925. "frameRendering": {
  12926. "clip": true,
  12927. "enabled": true,
  12928. "name": true,
  12929. "outline": true,
  12930. },
  12931. "frameToHighlight": null,
  12932. "gridModeEnabled": false,
  12933. "gridSize": 20,
  12934. "gridStep": 5,
  12935. "height": 0,
  12936. "hoveredElementIds": {},
  12937. "isBindingEnabled": true,
  12938. "isCropping": false,
  12939. "isLoading": false,
  12940. "isResizing": false,
  12941. "isRotating": false,
  12942. "lastPointerDownWith": "mouse",
  12943. "multiElement": null,
  12944. "newElement": null,
  12945. "objectsSnapModeEnabled": false,
  12946. "offsetLeft": 0,
  12947. "offsetTop": 0,
  12948. "openDialog": null,
  12949. "openMenu": null,
  12950. "openPopup": null,
  12951. "openSidebar": null,
  12952. "originSnapOffset": null,
  12953. "pasteDialog": {
  12954. "data": null,
  12955. "shown": false,
  12956. },
  12957. "penDetected": false,
  12958. "penMode": false,
  12959. "pendingImageElementId": null,
  12960. "previousSelectedElementIds": {
  12961. "id15": true,
  12962. },
  12963. "resizingElement": null,
  12964. "scrollX": 0,
  12965. "scrollY": 0,
  12966. "searchMatches": [],
  12967. "selectedElementIds": {},
  12968. "selectedElementsAreBeingDragged": false,
  12969. "selectedGroupIds": {},
  12970. "selectionElement": null,
  12971. "shouldCacheIgnoreZoom": false,
  12972. "showHyperlinkPopup": false,
  12973. "showWelcomeScreen": true,
  12974. "snapLines": [],
  12975. "startBoundElement": null,
  12976. "stats": {
  12977. "open": false,
  12978. "panels": 3,
  12979. },
  12980. "suggestedBindings": [],
  12981. "theme": "light",
  12982. "toast": null,
  12983. "userToFollow": null,
  12984. "viewBackgroundColor": "#ffffff",
  12985. "viewModeEnabled": false,
  12986. "width": 0,
  12987. "zenModeEnabled": false,
  12988. "zoom": {
  12989. "value": 1,
  12990. },
  12991. }
  12992. `;
  12993. exports[`history > singleplayer undo/redo > should iterate through the history when selection changes do not produce visible change > [end of test] element 0 1`] = `
  12994. {
  12995. "angle": 0,
  12996. "backgroundColor": "transparent",
  12997. "boundElements": null,
  12998. "customData": undefined,
  12999. "fillStyle": "solid",
  13000. "frameId": null,
  13001. "groupIds": [],
  13002. "height": 10,
  13003. "id": "id15",
  13004. "index": "a0",
  13005. "isDeleted": true,
  13006. "link": null,
  13007. "locked": false,
  13008. "opacity": 100,
  13009. "roughness": 1,
  13010. "roundness": {
  13011. "type": 3,
  13012. },
  13013. "strokeColor": "#1e1e1e",
  13014. "strokeStyle": "solid",
  13015. "strokeWidth": 2,
  13016. "type": "rectangle",
  13017. "updated": 1,
  13018. "version": 4,
  13019. "width": 10,
  13020. "x": 10,
  13021. "y": 0,
  13022. }
  13023. `;
  13024. exports[`history > singleplayer undo/redo > should iterate through the history when selection changes do not produce visible change > [end of test] history 1`] = `
  13025. History {
  13026. "onHistoryChangedEmitter": Emitter {
  13027. "subscribers": [
  13028. [Function],
  13029. [Function],
  13030. ],
  13031. },
  13032. "redoStack": [
  13033. HistoryEntry {
  13034. "appStateChange": AppStateChange {
  13035. "delta": Delta {
  13036. "deleted": {
  13037. "selectedElementIds": {
  13038. "id15": true,
  13039. },
  13040. },
  13041. "inserted": {
  13042. "selectedElementIds": {},
  13043. },
  13044. },
  13045. },
  13046. "elementsChange": ElementsChange {
  13047. "added": Map {},
  13048. "removed": Map {},
  13049. "updated": Map {},
  13050. },
  13051. },
  13052. HistoryEntry {
  13053. "appStateChange": AppStateChange {
  13054. "delta": Delta {
  13055. "deleted": {
  13056. "selectedElementIds": {
  13057. "id15": true,
  13058. },
  13059. },
  13060. "inserted": {
  13061. "selectedElementIds": {},
  13062. },
  13063. },
  13064. },
  13065. "elementsChange": ElementsChange {
  13066. "added": Map {},
  13067. "removed": Map {},
  13068. "updated": Map {},
  13069. },
  13070. },
  13071. HistoryEntry {
  13072. "appStateChange": AppStateChange {
  13073. "delta": Delta {
  13074. "deleted": {
  13075. "selectedElementIds": {},
  13076. },
  13077. "inserted": {
  13078. "selectedElementIds": {
  13079. "id15": true,
  13080. },
  13081. },
  13082. },
  13083. },
  13084. "elementsChange": ElementsChange {
  13085. "added": Map {
  13086. "id15" => Delta {
  13087. "deleted": {
  13088. "isDeleted": true,
  13089. },
  13090. "inserted": {
  13091. "angle": 0,
  13092. "backgroundColor": "transparent",
  13093. "boundElements": null,
  13094. "customData": undefined,
  13095. "fillStyle": "solid",
  13096. "frameId": null,
  13097. "groupIds": [],
  13098. "height": 10,
  13099. "index": "a0",
  13100. "isDeleted": false,
  13101. "link": null,
  13102. "locked": false,
  13103. "opacity": 100,
  13104. "roughness": 1,
  13105. "roundness": {
  13106. "type": 3,
  13107. },
  13108. "strokeColor": "#1e1e1e",
  13109. "strokeStyle": "solid",
  13110. "strokeWidth": 2,
  13111. "type": "rectangle",
  13112. "width": 10,
  13113. "x": 10,
  13114. "y": 0,
  13115. },
  13116. },
  13117. },
  13118. "removed": Map {},
  13119. "updated": Map {},
  13120. },
  13121. },
  13122. ],
  13123. "undoStack": [],
  13124. }
  13125. `;
  13126. exports[`history > singleplayer undo/redo > should iterate through the history when selection changes do not produce visible change > [end of test] number of elements 1`] = `1`;
  13127. exports[`history > singleplayer undo/redo > should iterate through the history when selection changes do not produce visible change > [end of test] number of renders 1`] = `13`;
  13128. exports[`history > singleplayer undo/redo > should not clear the redo stack on standalone appstate change > [end of test] appState 1`] = `
  13129. {
  13130. "activeEmbeddable": null,
  13131. "activeTool": {
  13132. "customType": null,
  13133. "fromSelection": false,
  13134. "lastActiveTool": null,
  13135. "locked": false,
  13136. "type": "selection",
  13137. },
  13138. "collaborators": Map {},
  13139. "contextMenu": null,
  13140. "croppingElementId": null,
  13141. "currentChartType": "bar",
  13142. "currentHoveredFontFamily": null,
  13143. "currentItemArrowType": "round",
  13144. "currentItemBackgroundColor": "transparent",
  13145. "currentItemEndArrowhead": "arrow",
  13146. "currentItemFillStyle": "solid",
  13147. "currentItemFontFamily": 5,
  13148. "currentItemFontSize": 20,
  13149. "currentItemOpacity": 100,
  13150. "currentItemRoughness": 1,
  13151. "currentItemRoundness": "round",
  13152. "currentItemStartArrowhead": null,
  13153. "currentItemStrokeColor": "#1e1e1e",
  13154. "currentItemStrokeStyle": "solid",
  13155. "currentItemStrokeWidth": 2,
  13156. "currentItemTextAlign": "left",
  13157. "cursorButton": "up",
  13158. "defaultSidebarDockedPreference": false,
  13159. "editingFrame": null,
  13160. "editingGroupId": null,
  13161. "editingLinearElement": null,
  13162. "editingTextElement": null,
  13163. "elementsToHighlight": null,
  13164. "errorMessage": null,
  13165. "exportBackground": true,
  13166. "exportEmbedScene": false,
  13167. "exportScale": 1,
  13168. "exportWithDarkMode": false,
  13169. "fileHandle": null,
  13170. "followedBy": Set {},
  13171. "frameRendering": {
  13172. "clip": true,
  13173. "enabled": true,
  13174. "name": true,
  13175. "outline": true,
  13176. },
  13177. "frameToHighlight": null,
  13178. "gridModeEnabled": false,
  13179. "gridSize": 20,
  13180. "gridStep": 5,
  13181. "height": 0,
  13182. "hoveredElementIds": {},
  13183. "isBindingEnabled": true,
  13184. "isCropping": false,
  13185. "isLoading": false,
  13186. "isResizing": false,
  13187. "isRotating": false,
  13188. "lastPointerDownWith": "mouse",
  13189. "multiElement": null,
  13190. "newElement": null,
  13191. "objectsSnapModeEnabled": false,
  13192. "offsetLeft": 0,
  13193. "offsetTop": 0,
  13194. "openDialog": null,
  13195. "openMenu": null,
  13196. "openPopup": null,
  13197. "openSidebar": null,
  13198. "originSnapOffset": null,
  13199. "pasteDialog": {
  13200. "data": null,
  13201. "shown": false,
  13202. },
  13203. "penDetected": false,
  13204. "penMode": false,
  13205. "pendingImageElementId": null,
  13206. "previousSelectedElementIds": {},
  13207. "resizingElement": null,
  13208. "scrollX": 0,
  13209. "scrollY": 0,
  13210. "searchMatches": [],
  13211. "selectedElementIds": {
  13212. "id8": true,
  13213. },
  13214. "selectedElementsAreBeingDragged": false,
  13215. "selectedGroupIds": {},
  13216. "selectionElement": null,
  13217. "shouldCacheIgnoreZoom": false,
  13218. "showHyperlinkPopup": false,
  13219. "showWelcomeScreen": true,
  13220. "snapLines": [],
  13221. "startBoundElement": null,
  13222. "stats": {
  13223. "open": false,
  13224. "panels": 3,
  13225. },
  13226. "suggestedBindings": [],
  13227. "theme": "light",
  13228. "toast": null,
  13229. "userToFollow": null,
  13230. "viewBackgroundColor": "#ffffff",
  13231. "viewModeEnabled": false,
  13232. "width": 0,
  13233. "zenModeEnabled": false,
  13234. "zoom": {
  13235. "value": 1,
  13236. },
  13237. }
  13238. `;
  13239. exports[`history > singleplayer undo/redo > should not clear the redo stack on standalone appstate change > [end of test] element 0 1`] = `
  13240. {
  13241. "angle": 0,
  13242. "backgroundColor": "transparent",
  13243. "boundElements": null,
  13244. "customData": undefined,
  13245. "fillStyle": "solid",
  13246. "frameId": null,
  13247. "groupIds": [],
  13248. "height": 10,
  13249. "id": "id7",
  13250. "index": "a0",
  13251. "isDeleted": false,
  13252. "link": null,
  13253. "locked": false,
  13254. "opacity": 100,
  13255. "roughness": 1,
  13256. "roundness": {
  13257. "type": 3,
  13258. },
  13259. "strokeColor": "#1e1e1e",
  13260. "strokeStyle": "solid",
  13261. "strokeWidth": 2,
  13262. "type": "rectangle",
  13263. "updated": 1,
  13264. "version": 3,
  13265. "width": 10,
  13266. "x": 10,
  13267. "y": 0,
  13268. }
  13269. `;
  13270. exports[`history > singleplayer undo/redo > should not clear the redo stack on standalone appstate change > [end of test] element 1 1`] = `
  13271. {
  13272. "angle": 0,
  13273. "backgroundColor": "transparent",
  13274. "boundElements": null,
  13275. "customData": undefined,
  13276. "fillStyle": "solid",
  13277. "frameId": null,
  13278. "groupIds": [],
  13279. "height": 10,
  13280. "id": "id8",
  13281. "index": "a1",
  13282. "isDeleted": false,
  13283. "link": null,
  13284. "locked": false,
  13285. "opacity": 100,
  13286. "roughness": 1,
  13287. "roundness": {
  13288. "type": 3,
  13289. },
  13290. "strokeColor": "#1e1e1e",
  13291. "strokeStyle": "solid",
  13292. "strokeWidth": 2,
  13293. "type": "rectangle",
  13294. "updated": 1,
  13295. "version": 5,
  13296. "width": 10,
  13297. "x": 20,
  13298. "y": 0,
  13299. }
  13300. `;
  13301. exports[`history > singleplayer undo/redo > should not clear the redo stack on standalone appstate change > [end of test] history 1`] = `
  13302. History {
  13303. "onHistoryChangedEmitter": Emitter {
  13304. "subscribers": [
  13305. [Function],
  13306. [Function],
  13307. ],
  13308. },
  13309. "redoStack": [],
  13310. "undoStack": [
  13311. HistoryEntry {
  13312. "appStateChange": AppStateChange {
  13313. "delta": Delta {
  13314. "deleted": {
  13315. "selectedElementIds": {
  13316. "id7": true,
  13317. },
  13318. },
  13319. "inserted": {
  13320. "selectedElementIds": {},
  13321. },
  13322. },
  13323. },
  13324. "elementsChange": ElementsChange {
  13325. "added": Map {},
  13326. "removed": Map {
  13327. "id7" => Delta {
  13328. "deleted": {
  13329. "angle": 0,
  13330. "backgroundColor": "transparent",
  13331. "boundElements": null,
  13332. "customData": undefined,
  13333. "fillStyle": "solid",
  13334. "frameId": null,
  13335. "groupIds": [],
  13336. "height": 10,
  13337. "index": "a0",
  13338. "isDeleted": false,
  13339. "link": null,
  13340. "locked": false,
  13341. "opacity": 100,
  13342. "roughness": 1,
  13343. "roundness": {
  13344. "type": 3,
  13345. },
  13346. "strokeColor": "#1e1e1e",
  13347. "strokeStyle": "solid",
  13348. "strokeWidth": 2,
  13349. "type": "rectangle",
  13350. "width": 10,
  13351. "x": 10,
  13352. "y": 0,
  13353. },
  13354. "inserted": {
  13355. "isDeleted": true,
  13356. },
  13357. },
  13358. },
  13359. "updated": Map {},
  13360. },
  13361. },
  13362. HistoryEntry {
  13363. "appStateChange": AppStateChange {
  13364. "delta": Delta {
  13365. "deleted": {
  13366. "selectedElementIds": {},
  13367. },
  13368. "inserted": {
  13369. "selectedElementIds": {
  13370. "id7": true,
  13371. },
  13372. },
  13373. },
  13374. },
  13375. "elementsChange": ElementsChange {
  13376. "added": Map {},
  13377. "removed": Map {},
  13378. "updated": Map {},
  13379. },
  13380. },
  13381. HistoryEntry {
  13382. "appStateChange": AppStateChange {
  13383. "delta": Delta {
  13384. "deleted": {
  13385. "selectedElementIds": {
  13386. "id7": true,
  13387. },
  13388. },
  13389. "inserted": {
  13390. "selectedElementIds": {},
  13391. },
  13392. },
  13393. },
  13394. "elementsChange": ElementsChange {
  13395. "added": Map {},
  13396. "removed": Map {},
  13397. "updated": Map {},
  13398. },
  13399. },
  13400. HistoryEntry {
  13401. "appStateChange": AppStateChange {
  13402. "delta": Delta {
  13403. "deleted": {
  13404. "selectedElementIds": {
  13405. "id8": true,
  13406. },
  13407. },
  13408. "inserted": {
  13409. "selectedElementIds": {
  13410. "id7": true,
  13411. },
  13412. },
  13413. },
  13414. },
  13415. "elementsChange": ElementsChange {
  13416. "added": Map {},
  13417. "removed": Map {
  13418. "id8" => Delta {
  13419. "deleted": {
  13420. "angle": 0,
  13421. "backgroundColor": "transparent",
  13422. "boundElements": null,
  13423. "customData": undefined,
  13424. "fillStyle": "solid",
  13425. "frameId": null,
  13426. "groupIds": [],
  13427. "height": 10,
  13428. "index": "a1",
  13429. "isDeleted": false,
  13430. "link": null,
  13431. "locked": false,
  13432. "opacity": 100,
  13433. "roughness": 1,
  13434. "roundness": {
  13435. "type": 3,
  13436. },
  13437. "strokeColor": "#1e1e1e",
  13438. "strokeStyle": "solid",
  13439. "strokeWidth": 2,
  13440. "type": "rectangle",
  13441. "width": 10,
  13442. "x": 20,
  13443. "y": 0,
  13444. },
  13445. "inserted": {
  13446. "isDeleted": true,
  13447. },
  13448. },
  13449. },
  13450. "updated": Map {},
  13451. },
  13452. },
  13453. ],
  13454. }
  13455. `;
  13456. exports[`history > singleplayer undo/redo > should not clear the redo stack on standalone appstate change > [end of test] number of elements 1`] = `2`;
  13457. exports[`history > singleplayer undo/redo > should not clear the redo stack on standalone appstate change > [end of test] number of renders 1`] = `12`;
  13458. exports[`history > singleplayer undo/redo > should not collapse when applying corrupted history entry > [end of test] appState 1`] = `
  13459. {
  13460. "activeEmbeddable": null,
  13461. "activeTool": {
  13462. "customType": null,
  13463. "fromSelection": false,
  13464. "lastActiveTool": null,
  13465. "locked": false,
  13466. "type": "selection",
  13467. },
  13468. "collaborators": Map {},
  13469. "contextMenu": null,
  13470. "croppingElementId": null,
  13471. "currentChartType": "bar",
  13472. "currentHoveredFontFamily": null,
  13473. "currentItemArrowType": "round",
  13474. "currentItemBackgroundColor": "transparent",
  13475. "currentItemEndArrowhead": "arrow",
  13476. "currentItemFillStyle": "solid",
  13477. "currentItemFontFamily": 5,
  13478. "currentItemFontSize": 20,
  13479. "currentItemOpacity": 100,
  13480. "currentItemRoughness": 1,
  13481. "currentItemRoundness": "round",
  13482. "currentItemStartArrowhead": null,
  13483. "currentItemStrokeColor": "#1e1e1e",
  13484. "currentItemStrokeStyle": "solid",
  13485. "currentItemStrokeWidth": 2,
  13486. "currentItemTextAlign": "left",
  13487. "cursorButton": "up",
  13488. "defaultSidebarDockedPreference": false,
  13489. "editingFrame": null,
  13490. "editingGroupId": null,
  13491. "editingLinearElement": null,
  13492. "editingTextElement": null,
  13493. "elementsToHighlight": null,
  13494. "errorMessage": null,
  13495. "exportBackground": true,
  13496. "exportEmbedScene": false,
  13497. "exportScale": 1,
  13498. "exportWithDarkMode": false,
  13499. "fileHandle": null,
  13500. "followedBy": Set {},
  13501. "frameRendering": {
  13502. "clip": true,
  13503. "enabled": true,
  13504. "name": true,
  13505. "outline": true,
  13506. },
  13507. "frameToHighlight": null,
  13508. "gridModeEnabled": false,
  13509. "gridSize": 20,
  13510. "gridStep": 5,
  13511. "height": 0,
  13512. "hoveredElementIds": {},
  13513. "isBindingEnabled": true,
  13514. "isCropping": false,
  13515. "isLoading": false,
  13516. "isResizing": false,
  13517. "isRotating": false,
  13518. "lastPointerDownWith": "mouse",
  13519. "multiElement": null,
  13520. "newElement": null,
  13521. "objectsSnapModeEnabled": false,
  13522. "offsetLeft": 0,
  13523. "offsetTop": 0,
  13524. "openDialog": null,
  13525. "openMenu": null,
  13526. "openPopup": null,
  13527. "openSidebar": null,
  13528. "originSnapOffset": {
  13529. "x": 0,
  13530. "y": 0,
  13531. },
  13532. "pasteDialog": {
  13533. "data": null,
  13534. "shown": false,
  13535. },
  13536. "penDetected": false,
  13537. "penMode": false,
  13538. "pendingImageElementId": null,
  13539. "previousSelectedElementIds": {},
  13540. "resizingElement": null,
  13541. "scrollX": 0,
  13542. "scrollY": 0,
  13543. "searchMatches": [],
  13544. "selectedElementIds": {},
  13545. "selectedElementsAreBeingDragged": false,
  13546. "selectedGroupIds": {},
  13547. "selectionElement": null,
  13548. "shouldCacheIgnoreZoom": false,
  13549. "showHyperlinkPopup": false,
  13550. "showWelcomeScreen": true,
  13551. "snapLines": [],
  13552. "startBoundElement": null,
  13553. "stats": {
  13554. "open": false,
  13555. "panels": 3,
  13556. },
  13557. "suggestedBindings": [],
  13558. "theme": "light",
  13559. "toast": null,
  13560. "userToFollow": null,
  13561. "viewBackgroundColor": "#ffffff",
  13562. "viewModeEnabled": false,
  13563. "width": 0,
  13564. "zenModeEnabled": false,
  13565. "zoom": {
  13566. "value": 1,
  13567. },
  13568. }
  13569. `;
  13570. exports[`history > singleplayer undo/redo > should not collapse when applying corrupted history entry > [end of test] element 0 1`] = `
  13571. {
  13572. "angle": 0,
  13573. "backgroundColor": "transparent",
  13574. "boundElements": null,
  13575. "customData": undefined,
  13576. "fillStyle": "solid",
  13577. "frameId": null,
  13578. "groupIds": [],
  13579. "height": 100,
  13580. "id": "id0",
  13581. "index": "a0",
  13582. "isDeleted": false,
  13583. "link": null,
  13584. "locked": false,
  13585. "opacity": 100,
  13586. "roughness": 1,
  13587. "roundness": {
  13588. "type": 3,
  13589. },
  13590. "strokeColor": "#1e1e1e",
  13591. "strokeStyle": "solid",
  13592. "strokeWidth": 2,
  13593. "type": "rectangle",
  13594. "updated": 1,
  13595. "version": 2,
  13596. "width": 100,
  13597. "x": 0,
  13598. "y": 0,
  13599. }
  13600. `;
  13601. exports[`history > singleplayer undo/redo > should not collapse when applying corrupted history entry > [end of test] history 1`] = `
  13602. History {
  13603. "onHistoryChangedEmitter": Emitter {
  13604. "subscribers": [
  13605. [Function],
  13606. [Function],
  13607. ],
  13608. },
  13609. "redoStack": [],
  13610. "undoStack": [
  13611. HistoryEntry {
  13612. "appStateChange": AppStateChange {
  13613. "delta": Delta {
  13614. "deleted": {},
  13615. "inserted": {},
  13616. },
  13617. },
  13618. "elementsChange": ElementsChange {
  13619. "added": Map {},
  13620. "removed": Map {},
  13621. "updated": Map {},
  13622. },
  13623. },
  13624. ],
  13625. }
  13626. `;
  13627. exports[`history > singleplayer undo/redo > should not collapse when applying corrupted history entry > [end of test] number of elements 1`] = `1`;
  13628. exports[`history > singleplayer undo/redo > should not collapse when applying corrupted history entry > [end of test] number of renders 1`] = `4`;
  13629. exports[`history > singleplayer undo/redo > should not end up with history entry when there are no appstate changes > [end of test] appState 1`] = `
  13630. {
  13631. "activeEmbeddable": null,
  13632. "activeTool": {
  13633. "customType": null,
  13634. "fromSelection": false,
  13635. "lastActiveTool": null,
  13636. "locked": false,
  13637. "type": "selection",
  13638. },
  13639. "collaborators": Map {},
  13640. "contextMenu": null,
  13641. "croppingElementId": null,
  13642. "currentChartType": "bar",
  13643. "currentHoveredFontFamily": null,
  13644. "currentItemArrowType": "round",
  13645. "currentItemBackgroundColor": "transparent",
  13646. "currentItemEndArrowhead": "arrow",
  13647. "currentItemFillStyle": "solid",
  13648. "currentItemFontFamily": 5,
  13649. "currentItemFontSize": 20,
  13650. "currentItemOpacity": 100,
  13651. "currentItemRoughness": 1,
  13652. "currentItemRoundness": "round",
  13653. "currentItemStartArrowhead": null,
  13654. "currentItemStrokeColor": "#1e1e1e",
  13655. "currentItemStrokeStyle": "solid",
  13656. "currentItemStrokeWidth": 2,
  13657. "currentItemTextAlign": "left",
  13658. "cursorButton": "up",
  13659. "defaultSidebarDockedPreference": false,
  13660. "editingFrame": null,
  13661. "editingGroupId": null,
  13662. "editingLinearElement": null,
  13663. "editingTextElement": null,
  13664. "elementsToHighlight": null,
  13665. "errorMessage": null,
  13666. "exportBackground": true,
  13667. "exportEmbedScene": false,
  13668. "exportScale": 1,
  13669. "exportWithDarkMode": false,
  13670. "fileHandle": null,
  13671. "followedBy": Set {},
  13672. "frameRendering": {
  13673. "clip": true,
  13674. "enabled": true,
  13675. "name": true,
  13676. "outline": true,
  13677. },
  13678. "frameToHighlight": null,
  13679. "gridModeEnabled": false,
  13680. "gridSize": 20,
  13681. "gridStep": 5,
  13682. "height": 0,
  13683. "hoveredElementIds": {},
  13684. "isBindingEnabled": true,
  13685. "isCropping": false,
  13686. "isLoading": false,
  13687. "isResizing": false,
  13688. "isRotating": false,
  13689. "lastPointerDownWith": "mouse",
  13690. "multiElement": null,
  13691. "newElement": null,
  13692. "objectsSnapModeEnabled": false,
  13693. "offsetLeft": 0,
  13694. "offsetTop": 0,
  13695. "openDialog": null,
  13696. "openMenu": null,
  13697. "openPopup": null,
  13698. "openSidebar": null,
  13699. "originSnapOffset": null,
  13700. "pasteDialog": {
  13701. "data": null,
  13702. "shown": false,
  13703. },
  13704. "penDetected": false,
  13705. "penMode": false,
  13706. "pendingImageElementId": null,
  13707. "previousSelectedElementIds": {},
  13708. "resizingElement": null,
  13709. "scrollX": 0,
  13710. "scrollY": 0,
  13711. "searchMatches": [],
  13712. "selectedElementIds": {
  13713. "id1": true,
  13714. "id2": true,
  13715. },
  13716. "selectedElementsAreBeingDragged": false,
  13717. "selectedGroupIds": {
  13718. "A": true,
  13719. },
  13720. "selectionElement": null,
  13721. "shouldCacheIgnoreZoom": false,
  13722. "showHyperlinkPopup": false,
  13723. "showWelcomeScreen": true,
  13724. "snapLines": [],
  13725. "startBoundElement": null,
  13726. "stats": {
  13727. "open": false,
  13728. "panels": 3,
  13729. },
  13730. "suggestedBindings": [],
  13731. "theme": "light",
  13732. "toast": null,
  13733. "userToFollow": null,
  13734. "viewBackgroundColor": "#ffffff",
  13735. "viewModeEnabled": false,
  13736. "width": 0,
  13737. "zenModeEnabled": false,
  13738. "zoom": {
  13739. "value": 1,
  13740. },
  13741. }
  13742. `;
  13743. exports[`history > singleplayer undo/redo > should not end up with history entry when there are no appstate changes > [end of test] element 0 1`] = `
  13744. {
  13745. "angle": 0,
  13746. "backgroundColor": "transparent",
  13747. "boundElements": null,
  13748. "customData": undefined,
  13749. "fillStyle": "solid",
  13750. "frameId": null,
  13751. "groupIds": [
  13752. "A",
  13753. ],
  13754. "height": 100,
  13755. "id": "id1",
  13756. "index": "a0",
  13757. "isDeleted": false,
  13758. "link": null,
  13759. "locked": false,
  13760. "opacity": 100,
  13761. "roughness": 1,
  13762. "roundness": {
  13763. "type": 3,
  13764. },
  13765. "strokeColor": "#1e1e1e",
  13766. "strokeStyle": "solid",
  13767. "strokeWidth": 2,
  13768. "type": "rectangle",
  13769. "updated": 1,
  13770. "version": 2,
  13771. "width": 100,
  13772. "x": 0,
  13773. "y": 0,
  13774. }
  13775. `;
  13776. exports[`history > singleplayer undo/redo > should not end up with history entry when there are no appstate changes > [end of test] element 1 1`] = `
  13777. {
  13778. "angle": 0,
  13779. "backgroundColor": "transparent",
  13780. "boundElements": null,
  13781. "customData": undefined,
  13782. "fillStyle": "solid",
  13783. "frameId": null,
  13784. "groupIds": [
  13785. "A",
  13786. ],
  13787. "height": 100,
  13788. "id": "id2",
  13789. "index": "a1",
  13790. "isDeleted": false,
  13791. "link": null,
  13792. "locked": false,
  13793. "opacity": 100,
  13794. "roughness": 1,
  13795. "roundness": {
  13796. "type": 3,
  13797. },
  13798. "strokeColor": "#1e1e1e",
  13799. "strokeStyle": "solid",
  13800. "strokeWidth": 2,
  13801. "type": "rectangle",
  13802. "updated": 1,
  13803. "version": 2,
  13804. "width": 100,
  13805. "x": 0,
  13806. "y": 0,
  13807. }
  13808. `;
  13809. exports[`history > singleplayer undo/redo > should not end up with history entry when there are no appstate changes > [end of test] history 1`] = `
  13810. History {
  13811. "onHistoryChangedEmitter": Emitter {
  13812. "subscribers": [
  13813. [Function],
  13814. [Function],
  13815. ],
  13816. },
  13817. "redoStack": [],
  13818. "undoStack": [
  13819. HistoryEntry {
  13820. "appStateChange": AppStateChange {
  13821. "delta": Delta {
  13822. "deleted": {
  13823. "selectedElementIds": {
  13824. "id1": true,
  13825. "id2": true,
  13826. },
  13827. "selectedGroupIds": {
  13828. "A": true,
  13829. },
  13830. },
  13831. "inserted": {
  13832. "selectedElementIds": {},
  13833. "selectedGroupIds": {},
  13834. },
  13835. },
  13836. },
  13837. "elementsChange": ElementsChange {
  13838. "added": Map {},
  13839. "removed": Map {
  13840. "id1" => Delta {
  13841. "deleted": {
  13842. "angle": 0,
  13843. "backgroundColor": "transparent",
  13844. "boundElements": null,
  13845. "customData": undefined,
  13846. "fillStyle": "solid",
  13847. "frameId": null,
  13848. "groupIds": [
  13849. "A",
  13850. ],
  13851. "height": 100,
  13852. "index": "a0",
  13853. "isDeleted": false,
  13854. "link": null,
  13855. "locked": false,
  13856. "opacity": 100,
  13857. "roughness": 1,
  13858. "roundness": {
  13859. "type": 3,
  13860. },
  13861. "strokeColor": "#1e1e1e",
  13862. "strokeStyle": "solid",
  13863. "strokeWidth": 2,
  13864. "type": "rectangle",
  13865. "width": 100,
  13866. "x": 0,
  13867. "y": 0,
  13868. },
  13869. "inserted": {
  13870. "isDeleted": true,
  13871. },
  13872. },
  13873. "id2" => Delta {
  13874. "deleted": {
  13875. "angle": 0,
  13876. "backgroundColor": "transparent",
  13877. "boundElements": null,
  13878. "customData": undefined,
  13879. "fillStyle": "solid",
  13880. "frameId": null,
  13881. "groupIds": [
  13882. "A",
  13883. ],
  13884. "height": 100,
  13885. "index": "a1",
  13886. "isDeleted": false,
  13887. "link": null,
  13888. "locked": false,
  13889. "opacity": 100,
  13890. "roughness": 1,
  13891. "roundness": {
  13892. "type": 3,
  13893. },
  13894. "strokeColor": "#1e1e1e",
  13895. "strokeStyle": "solid",
  13896. "strokeWidth": 2,
  13897. "type": "rectangle",
  13898. "width": 100,
  13899. "x": 0,
  13900. "y": 0,
  13901. },
  13902. "inserted": {
  13903. "isDeleted": true,
  13904. },
  13905. },
  13906. },
  13907. "updated": Map {},
  13908. },
  13909. },
  13910. ],
  13911. }
  13912. `;
  13913. exports[`history > singleplayer undo/redo > should not end up with history entry when there are no appstate changes > [end of test] number of elements 1`] = `2`;
  13914. exports[`history > singleplayer undo/redo > should not end up with history entry when there are no appstate changes > [end of test] number of renders 1`] = `7`;
  13915. exports[`history > singleplayer undo/redo > should not end up with history entry when there are no elements changes > [end of test] appState 1`] = `
  13916. {
  13917. "activeEmbeddable": null,
  13918. "activeTool": {
  13919. "customType": null,
  13920. "fromSelection": false,
  13921. "lastActiveTool": null,
  13922. "locked": false,
  13923. "type": "selection",
  13924. },
  13925. "collaborators": Map {},
  13926. "contextMenu": null,
  13927. "croppingElementId": null,
  13928. "currentChartType": "bar",
  13929. "currentHoveredFontFamily": null,
  13930. "currentItemArrowType": "round",
  13931. "currentItemBackgroundColor": "transparent",
  13932. "currentItemEndArrowhead": "arrow",
  13933. "currentItemFillStyle": "solid",
  13934. "currentItemFontFamily": 5,
  13935. "currentItemFontSize": 20,
  13936. "currentItemOpacity": 100,
  13937. "currentItemRoughness": 1,
  13938. "currentItemRoundness": "round",
  13939. "currentItemStartArrowhead": null,
  13940. "currentItemStrokeColor": "#1e1e1e",
  13941. "currentItemStrokeStyle": "solid",
  13942. "currentItemStrokeWidth": 2,
  13943. "currentItemTextAlign": "left",
  13944. "cursorButton": "up",
  13945. "defaultSidebarDockedPreference": false,
  13946. "editingFrame": null,
  13947. "editingGroupId": null,
  13948. "editingLinearElement": null,
  13949. "editingTextElement": null,
  13950. "elementsToHighlight": null,
  13951. "errorMessage": null,
  13952. "exportBackground": true,
  13953. "exportEmbedScene": false,
  13954. "exportScale": 1,
  13955. "exportWithDarkMode": false,
  13956. "fileHandle": null,
  13957. "followedBy": Set {},
  13958. "frameRendering": {
  13959. "clip": true,
  13960. "enabled": true,
  13961. "name": true,
  13962. "outline": true,
  13963. },
  13964. "frameToHighlight": null,
  13965. "gridModeEnabled": false,
  13966. "gridSize": 20,
  13967. "gridStep": 5,
  13968. "height": 0,
  13969. "hoveredElementIds": {},
  13970. "isBindingEnabled": true,
  13971. "isCropping": false,
  13972. "isLoading": false,
  13973. "isResizing": false,
  13974. "isRotating": false,
  13975. "lastPointerDownWith": "mouse",
  13976. "multiElement": null,
  13977. "newElement": null,
  13978. "objectsSnapModeEnabled": false,
  13979. "offsetLeft": 0,
  13980. "offsetTop": 0,
  13981. "openDialog": null,
  13982. "openMenu": null,
  13983. "openPopup": null,
  13984. "openSidebar": null,
  13985. "originSnapOffset": {
  13986. "x": 0,
  13987. "y": 0,
  13988. },
  13989. "pasteDialog": {
  13990. "data": null,
  13991. "shown": false,
  13992. },
  13993. "penDetected": false,
  13994. "penMode": false,
  13995. "pendingImageElementId": null,
  13996. "previousSelectedElementIds": {},
  13997. "resizingElement": null,
  13998. "scrollX": 0,
  13999. "scrollY": 0,
  14000. "searchMatches": [],
  14001. "selectedElementIds": {},
  14002. "selectedElementsAreBeingDragged": false,
  14003. "selectedGroupIds": {},
  14004. "selectionElement": null,
  14005. "shouldCacheIgnoreZoom": false,
  14006. "showHyperlinkPopup": false,
  14007. "showWelcomeScreen": true,
  14008. "snapLines": [],
  14009. "startBoundElement": null,
  14010. "stats": {
  14011. "open": false,
  14012. "panels": 3,
  14013. },
  14014. "suggestedBindings": [],
  14015. "theme": "light",
  14016. "toast": null,
  14017. "userToFollow": null,
  14018. "viewBackgroundColor": "#ffffff",
  14019. "viewModeEnabled": false,
  14020. "width": 0,
  14021. "zenModeEnabled": false,
  14022. "zoom": {
  14023. "value": 1,
  14024. },
  14025. }
  14026. `;
  14027. exports[`history > singleplayer undo/redo > should not end up with history entry when there are no elements changes > [end of test] element 0 1`] = `
  14028. {
  14029. "angle": 0,
  14030. "backgroundColor": "transparent",
  14031. "boundElements": null,
  14032. "customData": undefined,
  14033. "fillStyle": "solid",
  14034. "frameId": null,
  14035. "groupIds": [],
  14036. "height": 100,
  14037. "id": "id5",
  14038. "index": "a0",
  14039. "isDeleted": false,
  14040. "link": null,
  14041. "locked": false,
  14042. "opacity": 100,
  14043. "roughness": 1,
  14044. "roundness": {
  14045. "type": 3,
  14046. },
  14047. "strokeColor": "#1e1e1e",
  14048. "strokeStyle": "solid",
  14049. "strokeWidth": 2,
  14050. "type": "rectangle",
  14051. "updated": 1,
  14052. "version": 2,
  14053. "width": 100,
  14054. "x": 0,
  14055. "y": 0,
  14056. }
  14057. `;
  14058. exports[`history > singleplayer undo/redo > should not end up with history entry when there are no elements changes > [end of test] element 1 1`] = `
  14059. {
  14060. "angle": 0,
  14061. "backgroundColor": "transparent",
  14062. "boundElements": null,
  14063. "customData": undefined,
  14064. "fillStyle": "solid",
  14065. "frameId": null,
  14066. "groupIds": [],
  14067. "height": 100,
  14068. "id": "id6",
  14069. "index": "a1",
  14070. "isDeleted": false,
  14071. "link": null,
  14072. "locked": false,
  14073. "opacity": 100,
  14074. "roughness": 1,
  14075. "roundness": {
  14076. "type": 3,
  14077. },
  14078. "strokeColor": "#1e1e1e",
  14079. "strokeStyle": "solid",
  14080. "strokeWidth": 2,
  14081. "type": "rectangle",
  14082. "updated": 1,
  14083. "version": 2,
  14084. "width": 100,
  14085. "x": 0,
  14086. "y": 0,
  14087. }
  14088. `;
  14089. exports[`history > singleplayer undo/redo > should not end up with history entry when there are no elements changes > [end of test] history 1`] = `
  14090. History {
  14091. "onHistoryChangedEmitter": Emitter {
  14092. "subscribers": [
  14093. [Function],
  14094. [Function],
  14095. ],
  14096. },
  14097. "redoStack": [],
  14098. "undoStack": [
  14099. HistoryEntry {
  14100. "appStateChange": AppStateChange {
  14101. "delta": Delta {
  14102. "deleted": {},
  14103. "inserted": {},
  14104. },
  14105. },
  14106. "elementsChange": ElementsChange {
  14107. "added": Map {},
  14108. "removed": Map {
  14109. "id5" => Delta {
  14110. "deleted": {
  14111. "angle": 0,
  14112. "backgroundColor": "transparent",
  14113. "boundElements": null,
  14114. "customData": undefined,
  14115. "fillStyle": "solid",
  14116. "frameId": null,
  14117. "groupIds": [],
  14118. "height": 100,
  14119. "index": "a0",
  14120. "isDeleted": false,
  14121. "link": null,
  14122. "locked": false,
  14123. "opacity": 100,
  14124. "roughness": 1,
  14125. "roundness": {
  14126. "type": 3,
  14127. },
  14128. "strokeColor": "#1e1e1e",
  14129. "strokeStyle": "solid",
  14130. "strokeWidth": 2,
  14131. "type": "rectangle",
  14132. "width": 100,
  14133. "x": 0,
  14134. "y": 0,
  14135. },
  14136. "inserted": {
  14137. "isDeleted": true,
  14138. },
  14139. },
  14140. "id6" => Delta {
  14141. "deleted": {
  14142. "angle": 0,
  14143. "backgroundColor": "transparent",
  14144. "boundElements": null,
  14145. "customData": undefined,
  14146. "fillStyle": "solid",
  14147. "frameId": null,
  14148. "groupIds": [],
  14149. "height": 100,
  14150. "index": "a1",
  14151. "isDeleted": false,
  14152. "link": null,
  14153. "locked": false,
  14154. "opacity": 100,
  14155. "roughness": 1,
  14156. "roundness": {
  14157. "type": 3,
  14158. },
  14159. "strokeColor": "#1e1e1e",
  14160. "strokeStyle": "solid",
  14161. "strokeWidth": 2,
  14162. "type": "rectangle",
  14163. "width": 100,
  14164. "x": 0,
  14165. "y": 0,
  14166. },
  14167. "inserted": {
  14168. "isDeleted": true,
  14169. },
  14170. },
  14171. },
  14172. "updated": Map {},
  14173. },
  14174. },
  14175. ],
  14176. }
  14177. `;
  14178. exports[`history > singleplayer undo/redo > should not end up with history entry when there are no elements changes > [end of test] number of elements 1`] = `2`;
  14179. exports[`history > singleplayer undo/redo > should not end up with history entry when there are no elements changes > [end of test] number of renders 1`] = `5`;
  14180. exports[`history > singleplayer undo/redo > should not override appstate changes when redo stack is not cleared > [end of test] appState 1`] = `
  14181. {
  14182. "activeEmbeddable": null,
  14183. "activeTool": {
  14184. "customType": null,
  14185. "fromSelection": false,
  14186. "lastActiveTool": null,
  14187. "locked": false,
  14188. "type": "selection",
  14189. },
  14190. "collaborators": Map {},
  14191. "contextMenu": null,
  14192. "croppingElementId": null,
  14193. "currentChartType": "bar",
  14194. "currentHoveredFontFamily": null,
  14195. "currentItemArrowType": "round",
  14196. "currentItemBackgroundColor": "#a5d8ff",
  14197. "currentItemEndArrowhead": "arrow",
  14198. "currentItemFillStyle": "solid",
  14199. "currentItemFontFamily": 5,
  14200. "currentItemFontSize": 20,
  14201. "currentItemOpacity": 100,
  14202. "currentItemRoughness": 1,
  14203. "currentItemRoundness": "round",
  14204. "currentItemStartArrowhead": null,
  14205. "currentItemStrokeColor": "#1e1e1e",
  14206. "currentItemStrokeStyle": "solid",
  14207. "currentItemStrokeWidth": 2,
  14208. "currentItemTextAlign": "left",
  14209. "cursorButton": "up",
  14210. "defaultSidebarDockedPreference": false,
  14211. "editingFrame": null,
  14212. "editingGroupId": null,
  14213. "editingLinearElement": null,
  14214. "editingTextElement": null,
  14215. "elementsToHighlight": null,
  14216. "errorMessage": null,
  14217. "exportBackground": true,
  14218. "exportEmbedScene": false,
  14219. "exportScale": 1,
  14220. "exportWithDarkMode": false,
  14221. "fileHandle": null,
  14222. "followedBy": Set {},
  14223. "frameRendering": {
  14224. "clip": true,
  14225. "enabled": true,
  14226. "name": true,
  14227. "outline": true,
  14228. },
  14229. "frameToHighlight": null,
  14230. "gridModeEnabled": false,
  14231. "gridSize": 20,
  14232. "gridStep": 5,
  14233. "height": 0,
  14234. "hoveredElementIds": {},
  14235. "isBindingEnabled": true,
  14236. "isCropping": false,
  14237. "isLoading": false,
  14238. "isResizing": false,
  14239. "isRotating": false,
  14240. "lastPointerDownWith": "mouse",
  14241. "multiElement": null,
  14242. "newElement": null,
  14243. "objectsSnapModeEnabled": false,
  14244. "offsetLeft": 0,
  14245. "offsetTop": 0,
  14246. "openDialog": null,
  14247. "openMenu": null,
  14248. "openPopup": "elementBackground",
  14249. "openSidebar": null,
  14250. "originSnapOffset": null,
  14251. "pasteDialog": {
  14252. "data": null,
  14253. "shown": false,
  14254. },
  14255. "penDetected": false,
  14256. "penMode": false,
  14257. "pendingImageElementId": null,
  14258. "previousSelectedElementIds": {
  14259. "id11": true,
  14260. },
  14261. "resizingElement": null,
  14262. "scrollX": 0,
  14263. "scrollY": 0,
  14264. "searchMatches": [],
  14265. "selectedElementIds": {
  14266. "id11": true,
  14267. },
  14268. "selectedElementsAreBeingDragged": false,
  14269. "selectedGroupIds": {},
  14270. "selectionElement": null,
  14271. "shouldCacheIgnoreZoom": false,
  14272. "showHyperlinkPopup": false,
  14273. "showWelcomeScreen": true,
  14274. "snapLines": [],
  14275. "startBoundElement": null,
  14276. "stats": {
  14277. "open": false,
  14278. "panels": 3,
  14279. },
  14280. "suggestedBindings": [],
  14281. "theme": "light",
  14282. "toast": null,
  14283. "userToFollow": null,
  14284. "viewBackgroundColor": "#ffffff",
  14285. "viewModeEnabled": false,
  14286. "width": 0,
  14287. "zenModeEnabled": false,
  14288. "zoom": {
  14289. "value": 1,
  14290. },
  14291. }
  14292. `;
  14293. exports[`history > singleplayer undo/redo > should not override appstate changes when redo stack is not cleared > [end of test] element 0 1`] = `
  14294. {
  14295. "angle": 0,
  14296. "backgroundColor": "transparent",
  14297. "boundElements": null,
  14298. "customData": undefined,
  14299. "fillStyle": "solid",
  14300. "frameId": null,
  14301. "groupIds": [],
  14302. "height": 10,
  14303. "id": "id11",
  14304. "index": "a0",
  14305. "isDeleted": false,
  14306. "link": null,
  14307. "locked": false,
  14308. "opacity": 100,
  14309. "roughness": 1,
  14310. "roundness": {
  14311. "type": 3,
  14312. },
  14313. "strokeColor": "#1e1e1e",
  14314. "strokeStyle": "solid",
  14315. "strokeWidth": 2,
  14316. "type": "rectangle",
  14317. "updated": 1,
  14318. "version": 11,
  14319. "width": 10,
  14320. "x": 10,
  14321. "y": 0,
  14322. }
  14323. `;
  14324. exports[`history > singleplayer undo/redo > should not override appstate changes when redo stack is not cleared > [end of test] history 1`] = `
  14325. History {
  14326. "onHistoryChangedEmitter": Emitter {
  14327. "subscribers": [
  14328. [Function],
  14329. [Function],
  14330. ],
  14331. },
  14332. "redoStack": [
  14333. HistoryEntry {
  14334. "appStateChange": AppStateChange {
  14335. "delta": Delta {
  14336. "deleted": {},
  14337. "inserted": {},
  14338. },
  14339. },
  14340. "elementsChange": ElementsChange {
  14341. "added": Map {},
  14342. "removed": Map {},
  14343. "updated": Map {
  14344. "id11" => Delta {
  14345. "deleted": {
  14346. "backgroundColor": "#ffc9c9",
  14347. },
  14348. "inserted": {
  14349. "backgroundColor": "#a5d8ff",
  14350. },
  14351. },
  14352. },
  14353. },
  14354. },
  14355. HistoryEntry {
  14356. "appStateChange": AppStateChange {
  14357. "delta": Delta {
  14358. "deleted": {},
  14359. "inserted": {},
  14360. },
  14361. },
  14362. "elementsChange": ElementsChange {
  14363. "added": Map {},
  14364. "removed": Map {},
  14365. "updated": Map {
  14366. "id11" => Delta {
  14367. "deleted": {
  14368. "backgroundColor": "transparent",
  14369. },
  14370. "inserted": {
  14371. "backgroundColor": "#ffc9c9",
  14372. },
  14373. },
  14374. },
  14375. },
  14376. },
  14377. HistoryEntry {
  14378. "appStateChange": AppStateChange {
  14379. "delta": Delta {
  14380. "deleted": {
  14381. "selectedElementIds": {
  14382. "id11": true,
  14383. },
  14384. },
  14385. "inserted": {
  14386. "selectedElementIds": {},
  14387. },
  14388. },
  14389. },
  14390. "elementsChange": ElementsChange {
  14391. "added": Map {},
  14392. "removed": Map {},
  14393. "updated": Map {},
  14394. },
  14395. },
  14396. ],
  14397. "undoStack": [
  14398. HistoryEntry {
  14399. "appStateChange": AppStateChange {
  14400. "delta": Delta {
  14401. "deleted": {
  14402. "selectedElementIds": {
  14403. "id11": true,
  14404. },
  14405. },
  14406. "inserted": {
  14407. "selectedElementIds": {},
  14408. },
  14409. },
  14410. },
  14411. "elementsChange": ElementsChange {
  14412. "added": Map {},
  14413. "removed": Map {
  14414. "id11" => Delta {
  14415. "deleted": {
  14416. "angle": 0,
  14417. "backgroundColor": "transparent",
  14418. "boundElements": null,
  14419. "customData": undefined,
  14420. "fillStyle": "solid",
  14421. "frameId": null,
  14422. "groupIds": [],
  14423. "height": 10,
  14424. "index": "a0",
  14425. "isDeleted": false,
  14426. "link": null,
  14427. "locked": false,
  14428. "opacity": 100,
  14429. "roughness": 1,
  14430. "roundness": {
  14431. "type": 3,
  14432. },
  14433. "strokeColor": "#1e1e1e",
  14434. "strokeStyle": "solid",
  14435. "strokeWidth": 2,
  14436. "type": "rectangle",
  14437. "width": 10,
  14438. "x": 10,
  14439. "y": 0,
  14440. },
  14441. "inserted": {
  14442. "isDeleted": true,
  14443. },
  14444. },
  14445. },
  14446. "updated": Map {},
  14447. },
  14448. },
  14449. ],
  14450. }
  14451. `;
  14452. exports[`history > singleplayer undo/redo > should not override appstate changes when redo stack is not cleared > [end of test] number of elements 1`] = `1`;
  14453. exports[`history > singleplayer undo/redo > should not override appstate changes when redo stack is not cleared > [end of test] number of renders 1`] = `15`;
  14454. exports[`history > singleplayer undo/redo > should support appstate name or viewBackgroundColor change > [end of test] appState 1`] = `
  14455. {
  14456. "activeEmbeddable": null,
  14457. "activeTool": {
  14458. "customType": null,
  14459. "fromSelection": false,
  14460. "lastActiveTool": null,
  14461. "locked": false,
  14462. "type": "selection",
  14463. },
  14464. "collaborators": Map {},
  14465. "contextMenu": null,
  14466. "croppingElementId": null,
  14467. "currentChartType": "bar",
  14468. "currentHoveredFontFamily": null,
  14469. "currentItemArrowType": "round",
  14470. "currentItemBackgroundColor": "transparent",
  14471. "currentItemEndArrowhead": "arrow",
  14472. "currentItemFillStyle": "solid",
  14473. "currentItemFontFamily": 5,
  14474. "currentItemFontSize": 20,
  14475. "currentItemOpacity": 100,
  14476. "currentItemRoughness": 1,
  14477. "currentItemRoundness": "round",
  14478. "currentItemStartArrowhead": null,
  14479. "currentItemStrokeColor": "#1e1e1e",
  14480. "currentItemStrokeStyle": "solid",
  14481. "currentItemStrokeWidth": 2,
  14482. "currentItemTextAlign": "left",
  14483. "cursorButton": "up",
  14484. "defaultSidebarDockedPreference": false,
  14485. "editingFrame": null,
  14486. "editingGroupId": null,
  14487. "editingLinearElement": null,
  14488. "editingTextElement": null,
  14489. "elementsToHighlight": null,
  14490. "errorMessage": null,
  14491. "exportBackground": true,
  14492. "exportEmbedScene": false,
  14493. "exportScale": 1,
  14494. "exportWithDarkMode": false,
  14495. "fileHandle": null,
  14496. "followedBy": Set {},
  14497. "frameRendering": {
  14498. "clip": true,
  14499. "enabled": true,
  14500. "name": true,
  14501. "outline": true,
  14502. },
  14503. "frameToHighlight": null,
  14504. "gridModeEnabled": false,
  14505. "gridSize": 20,
  14506. "gridStep": 5,
  14507. "height": 0,
  14508. "hoveredElementIds": {},
  14509. "isBindingEnabled": true,
  14510. "isCropping": false,
  14511. "isLoading": false,
  14512. "isResizing": false,
  14513. "isRotating": false,
  14514. "lastPointerDownWith": "mouse",
  14515. "multiElement": null,
  14516. "newElement": null,
  14517. "objectsSnapModeEnabled": false,
  14518. "offsetLeft": 0,
  14519. "offsetTop": 0,
  14520. "openDialog": null,
  14521. "openMenu": null,
  14522. "openPopup": null,
  14523. "openSidebar": null,
  14524. "originSnapOffset": {
  14525. "x": 0,
  14526. "y": 0,
  14527. },
  14528. "pasteDialog": {
  14529. "data": null,
  14530. "shown": false,
  14531. },
  14532. "penDetected": false,
  14533. "penMode": false,
  14534. "pendingImageElementId": null,
  14535. "previousSelectedElementIds": {},
  14536. "resizingElement": null,
  14537. "scrollX": 0,
  14538. "scrollY": 0,
  14539. "searchMatches": [],
  14540. "selectedElementIds": {},
  14541. "selectedElementsAreBeingDragged": false,
  14542. "selectedGroupIds": {},
  14543. "selectionElement": null,
  14544. "shouldCacheIgnoreZoom": false,
  14545. "showHyperlinkPopup": false,
  14546. "showWelcomeScreen": true,
  14547. "snapLines": [],
  14548. "startBoundElement": null,
  14549. "stats": {
  14550. "open": false,
  14551. "panels": 3,
  14552. },
  14553. "suggestedBindings": [],
  14554. "theme": "light",
  14555. "toast": null,
  14556. "userToFollow": null,
  14557. "viewBackgroundColor": "#000",
  14558. "viewModeEnabled": false,
  14559. "width": 0,
  14560. "zenModeEnabled": false,
  14561. "zoom": {
  14562. "value": 1,
  14563. },
  14564. }
  14565. `;
  14566. exports[`history > singleplayer undo/redo > should support appstate name or viewBackgroundColor change > [end of test] history 1`] = `
  14567. History {
  14568. "onHistoryChangedEmitter": Emitter {
  14569. "subscribers": [
  14570. [Function],
  14571. [Function],
  14572. ],
  14573. },
  14574. "redoStack": [],
  14575. "undoStack": [
  14576. HistoryEntry {
  14577. "appStateChange": AppStateChange {
  14578. "delta": Delta {
  14579. "deleted": {
  14580. "name": "New name",
  14581. },
  14582. "inserted": {
  14583. "name": "Old name",
  14584. },
  14585. },
  14586. },
  14587. "elementsChange": ElementsChange {
  14588. "added": Map {},
  14589. "removed": Map {},
  14590. "updated": Map {},
  14591. },
  14592. },
  14593. HistoryEntry {
  14594. "appStateChange": AppStateChange {
  14595. "delta": Delta {
  14596. "deleted": {
  14597. "viewBackgroundColor": "#000",
  14598. },
  14599. "inserted": {
  14600. "viewBackgroundColor": "#FFF",
  14601. },
  14602. },
  14603. },
  14604. "elementsChange": ElementsChange {
  14605. "added": Map {},
  14606. "removed": Map {},
  14607. "updated": Map {},
  14608. },
  14609. },
  14610. ],
  14611. }
  14612. `;
  14613. exports[`history > singleplayer undo/redo > should support appstate name or viewBackgroundColor change > [end of test] number of elements 1`] = `0`;
  14614. exports[`history > singleplayer undo/redo > should support appstate name or viewBackgroundColor change > [end of test] number of renders 1`] = `8`;
  14615. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind arrow from non deleted bindable elements on deletion and rebind on undo > [end of test] appState 1`] = `
  14616. {
  14617. "activeEmbeddable": null,
  14618. "activeTool": {
  14619. "customType": null,
  14620. "fromSelection": false,
  14621. "lastActiveTool": null,
  14622. "locked": false,
  14623. "type": "selection",
  14624. },
  14625. "collaborators": Map {},
  14626. "contextMenu": null,
  14627. "croppingElementId": null,
  14628. "currentChartType": "bar",
  14629. "currentHoveredFontFamily": null,
  14630. "currentItemArrowType": "round",
  14631. "currentItemBackgroundColor": "transparent",
  14632. "currentItemEndArrowhead": "arrow",
  14633. "currentItemFillStyle": "solid",
  14634. "currentItemFontFamily": 5,
  14635. "currentItemFontSize": 20,
  14636. "currentItemOpacity": 100,
  14637. "currentItemRoughness": 1,
  14638. "currentItemRoundness": "round",
  14639. "currentItemStartArrowhead": null,
  14640. "currentItemStrokeColor": "#1e1e1e",
  14641. "currentItemStrokeStyle": "solid",
  14642. "currentItemStrokeWidth": 2,
  14643. "currentItemTextAlign": "left",
  14644. "cursorButton": "up",
  14645. "defaultSidebarDockedPreference": false,
  14646. "editingFrame": null,
  14647. "editingGroupId": null,
  14648. "editingLinearElement": null,
  14649. "editingTextElement": null,
  14650. "elementsToHighlight": null,
  14651. "errorMessage": null,
  14652. "exportBackground": true,
  14653. "exportEmbedScene": false,
  14654. "exportScale": 1,
  14655. "exportWithDarkMode": false,
  14656. "fileHandle": null,
  14657. "followedBy": Set {},
  14658. "frameRendering": {
  14659. "clip": true,
  14660. "enabled": true,
  14661. "name": true,
  14662. "outline": true,
  14663. },
  14664. "frameToHighlight": null,
  14665. "gridModeEnabled": false,
  14666. "gridSize": 20,
  14667. "gridStep": 5,
  14668. "height": 0,
  14669. "hoveredElementIds": {},
  14670. "isBindingEnabled": true,
  14671. "isCropping": false,
  14672. "isLoading": false,
  14673. "isResizing": false,
  14674. "isRotating": false,
  14675. "lastPointerDownWith": "mouse",
  14676. "multiElement": null,
  14677. "newElement": null,
  14678. "objectsSnapModeEnabled": false,
  14679. "offsetLeft": 0,
  14680. "offsetTop": 0,
  14681. "openDialog": null,
  14682. "openMenu": null,
  14683. "openPopup": null,
  14684. "openSidebar": null,
  14685. "originSnapOffset": null,
  14686. "pasteDialog": {
  14687. "data": null,
  14688. "shown": false,
  14689. },
  14690. "penDetected": false,
  14691. "penMode": false,
  14692. "pendingImageElementId": null,
  14693. "previousSelectedElementIds": {
  14694. "id56": true,
  14695. },
  14696. "resizingElement": null,
  14697. "scrollX": 0,
  14698. "scrollY": 0,
  14699. "searchMatches": [],
  14700. "selectedElementIds": {
  14701. "id61": true,
  14702. },
  14703. "selectedElementsAreBeingDragged": false,
  14704. "selectedGroupIds": {},
  14705. "selectionElement": null,
  14706. "shouldCacheIgnoreZoom": false,
  14707. "showHyperlinkPopup": false,
  14708. "showWelcomeScreen": true,
  14709. "snapLines": [],
  14710. "startBoundElement": null,
  14711. "stats": {
  14712. "open": false,
  14713. "panels": 3,
  14714. },
  14715. "suggestedBindings": [],
  14716. "theme": "light",
  14717. "toast": null,
  14718. "userToFollow": null,
  14719. "viewBackgroundColor": "#ffffff",
  14720. "viewModeEnabled": false,
  14721. "width": 0,
  14722. "zenModeEnabled": false,
  14723. "zoom": {
  14724. "value": 1,
  14725. },
  14726. }
  14727. `;
  14728. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind arrow from non deleted bindable elements on deletion and rebind on undo > [end of test] element 0 1`] = `
  14729. {
  14730. "angle": 0,
  14731. "backgroundColor": "transparent",
  14732. "boundElements": [
  14733. {
  14734. "id": "id57",
  14735. "type": "text",
  14736. },
  14737. {
  14738. "id": "id61",
  14739. "type": "arrow",
  14740. },
  14741. ],
  14742. "customData": undefined,
  14743. "fillStyle": "solid",
  14744. "frameId": null,
  14745. "groupIds": [],
  14746. "height": 100,
  14747. "id": "id56",
  14748. "index": "a0",
  14749. "isDeleted": false,
  14750. "link": null,
  14751. "locked": false,
  14752. "opacity": 100,
  14753. "roughness": 1,
  14754. "roundness": {
  14755. "type": 3,
  14756. },
  14757. "strokeColor": "#1e1e1e",
  14758. "strokeStyle": "solid",
  14759. "strokeWidth": 2,
  14760. "type": "rectangle",
  14761. "updated": 1,
  14762. "version": 8,
  14763. "width": 100,
  14764. "x": -100,
  14765. "y": -50,
  14766. }
  14767. `;
  14768. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind arrow from non deleted bindable elements on deletion and rebind on undo > [end of test] element 1 1`] = `
  14769. {
  14770. "angle": 0,
  14771. "autoResize": true,
  14772. "backgroundColor": "transparent",
  14773. "boundElements": null,
  14774. "containerId": "id56",
  14775. "customData": undefined,
  14776. "fillStyle": "solid",
  14777. "fontFamily": 5,
  14778. "fontSize": 20,
  14779. "frameId": null,
  14780. "groupIds": [],
  14781. "height": 25,
  14782. "id": "id57",
  14783. "index": "a1",
  14784. "isDeleted": false,
  14785. "lineHeight": "1.25000",
  14786. "link": null,
  14787. "locked": false,
  14788. "opacity": 100,
  14789. "originalText": "ola",
  14790. "roughness": 1,
  14791. "roundness": {
  14792. "type": 3,
  14793. },
  14794. "strokeColor": "#1e1e1e",
  14795. "strokeStyle": "solid",
  14796. "strokeWidth": 2,
  14797. "text": "ola",
  14798. "textAlign": "center",
  14799. "type": "text",
  14800. "updated": 1,
  14801. "version": 6,
  14802. "verticalAlign": "middle",
  14803. "width": 30,
  14804. "x": -65,
  14805. "y": "-12.50000",
  14806. }
  14807. `;
  14808. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind arrow from non deleted bindable elements on deletion and rebind on undo > [end of test] element 2 1`] = `
  14809. {
  14810. "angle": 0,
  14811. "backgroundColor": "transparent",
  14812. "boundElements": [
  14813. {
  14814. "id": "id61",
  14815. "type": "arrow",
  14816. },
  14817. ],
  14818. "customData": undefined,
  14819. "fillStyle": "solid",
  14820. "frameId": null,
  14821. "groupIds": [],
  14822. "height": 100,
  14823. "id": "id58",
  14824. "index": "a2",
  14825. "isDeleted": false,
  14826. "link": null,
  14827. "locked": false,
  14828. "opacity": 100,
  14829. "roughness": 1,
  14830. "roundness": {
  14831. "type": 3,
  14832. },
  14833. "strokeColor": "#1e1e1e",
  14834. "strokeStyle": "solid",
  14835. "strokeWidth": 2,
  14836. "type": "rectangle",
  14837. "updated": 1,
  14838. "version": 7,
  14839. "width": 100,
  14840. "x": 100,
  14841. "y": -50,
  14842. }
  14843. `;
  14844. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind arrow from non deleted bindable elements on deletion and rebind on undo > [end of test] element 3 1`] = `
  14845. {
  14846. "angle": 0,
  14847. "backgroundColor": "transparent",
  14848. "boundElements": null,
  14849. "customData": undefined,
  14850. "elbowed": false,
  14851. "endArrowhead": "arrow",
  14852. "endBinding": {
  14853. "elementId": "id58",
  14854. "focus": -0,
  14855. "gap": 1,
  14856. },
  14857. "fillStyle": "solid",
  14858. "frameId": null,
  14859. "groupIds": [],
  14860. "height": 0,
  14861. "id": "id61",
  14862. "index": "a3",
  14863. "isDeleted": false,
  14864. "lastCommittedPoint": null,
  14865. "link": null,
  14866. "locked": false,
  14867. "opacity": 100,
  14868. "points": [
  14869. [
  14870. 0,
  14871. 0,
  14872. ],
  14873. [
  14874. "98.58579",
  14875. 0,
  14876. ],
  14877. ],
  14878. "roughness": 1,
  14879. "roundness": {
  14880. "type": 2,
  14881. },
  14882. "startArrowhead": null,
  14883. "startBinding": {
  14884. "elementId": "id56",
  14885. "focus": 0,
  14886. "gap": 1,
  14887. },
  14888. "strokeColor": "#1e1e1e",
  14889. "strokeStyle": "solid",
  14890. "strokeWidth": 2,
  14891. "type": "arrow",
  14892. "updated": 1,
  14893. "version": 10,
  14894. "width": "98.58579",
  14895. "x": "0.70711",
  14896. "y": 0,
  14897. }
  14898. `;
  14899. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind arrow from non deleted bindable elements on deletion and rebind on undo > [end of test] history 1`] = `
  14900. History {
  14901. "onHistoryChangedEmitter": Emitter {
  14902. "subscribers": [
  14903. [Function],
  14904. [Function],
  14905. ],
  14906. },
  14907. "redoStack": [
  14908. HistoryEntry {
  14909. "appStateChange": AppStateChange {
  14910. "delta": Delta {
  14911. "deleted": {
  14912. "selectedElementIds": {
  14913. "id61": true,
  14914. },
  14915. "selectedLinearElementId": "id61",
  14916. },
  14917. "inserted": {
  14918. "selectedElementIds": {},
  14919. "selectedLinearElementId": null,
  14920. },
  14921. },
  14922. },
  14923. "elementsChange": ElementsChange {
  14924. "added": Map {},
  14925. "removed": Map {
  14926. "id61" => Delta {
  14927. "deleted": {
  14928. "isDeleted": false,
  14929. "points": [
  14930. [
  14931. 0,
  14932. 0,
  14933. ],
  14934. [
  14935. 100,
  14936. 0,
  14937. ],
  14938. ],
  14939. },
  14940. "inserted": {
  14941. "isDeleted": true,
  14942. "points": [
  14943. [
  14944. 0,
  14945. 0,
  14946. ],
  14947. [
  14948. 100,
  14949. 0,
  14950. ],
  14951. ],
  14952. },
  14953. },
  14954. },
  14955. "updated": Map {
  14956. "id56" => Delta {
  14957. "deleted": {
  14958. "boundElements": [
  14959. {
  14960. "id": "id61",
  14961. "type": "arrow",
  14962. },
  14963. ],
  14964. },
  14965. "inserted": {
  14966. "boundElements": [],
  14967. },
  14968. },
  14969. "id58" => Delta {
  14970. "deleted": {
  14971. "boundElements": [
  14972. {
  14973. "id": "id61",
  14974. "type": "arrow",
  14975. },
  14976. ],
  14977. },
  14978. "inserted": {
  14979. "boundElements": [],
  14980. },
  14981. },
  14982. },
  14983. },
  14984. },
  14985. ],
  14986. "undoStack": [
  14987. HistoryEntry {
  14988. "appStateChange": AppStateChange {
  14989. "delta": Delta {
  14990. "deleted": {},
  14991. "inserted": {},
  14992. },
  14993. },
  14994. "elementsChange": ElementsChange {
  14995. "added": Map {},
  14996. "removed": Map {
  14997. "id56" => Delta {
  14998. "deleted": {
  14999. "angle": 0,
  15000. "backgroundColor": "transparent",
  15001. "boundElements": null,
  15002. "customData": undefined,
  15003. "fillStyle": "solid",
  15004. "frameId": null,
  15005. "groupIds": [],
  15006. "height": 100,
  15007. "index": "a0",
  15008. "isDeleted": false,
  15009. "link": null,
  15010. "locked": false,
  15011. "opacity": 100,
  15012. "roughness": 1,
  15013. "roundness": {
  15014. "type": 3,
  15015. },
  15016. "strokeColor": "#1e1e1e",
  15017. "strokeStyle": "solid",
  15018. "strokeWidth": 2,
  15019. "type": "rectangle",
  15020. "width": 100,
  15021. "x": -100,
  15022. "y": -50,
  15023. },
  15024. "inserted": {
  15025. "isDeleted": true,
  15026. },
  15027. },
  15028. "id57" => Delta {
  15029. "deleted": {
  15030. "angle": 0,
  15031. "autoResize": true,
  15032. "backgroundColor": "transparent",
  15033. "boundElements": null,
  15034. "containerId": null,
  15035. "customData": undefined,
  15036. "fillStyle": "solid",
  15037. "fontFamily": 5,
  15038. "fontSize": 20,
  15039. "frameId": null,
  15040. "groupIds": [],
  15041. "height": 100,
  15042. "index": "a1",
  15043. "isDeleted": false,
  15044. "lineHeight": "1.25000",
  15045. "link": null,
  15046. "locked": false,
  15047. "opacity": 100,
  15048. "originalText": "ola",
  15049. "roughness": 1,
  15050. "roundness": {
  15051. "type": 3,
  15052. },
  15053. "strokeColor": "#1e1e1e",
  15054. "strokeStyle": "solid",
  15055. "strokeWidth": 2,
  15056. "text": "ola",
  15057. "textAlign": "left",
  15058. "type": "text",
  15059. "verticalAlign": "top",
  15060. "width": 100,
  15061. "x": -200,
  15062. "y": -200,
  15063. },
  15064. "inserted": {
  15065. "isDeleted": true,
  15066. },
  15067. },
  15068. "id58" => Delta {
  15069. "deleted": {
  15070. "angle": 0,
  15071. "backgroundColor": "transparent",
  15072. "boundElements": null,
  15073. "customData": undefined,
  15074. "fillStyle": "solid",
  15075. "frameId": null,
  15076. "groupIds": [],
  15077. "height": 100,
  15078. "index": "a2",
  15079. "isDeleted": false,
  15080. "link": null,
  15081. "locked": false,
  15082. "opacity": 100,
  15083. "roughness": 1,
  15084. "roundness": {
  15085. "type": 3,
  15086. },
  15087. "strokeColor": "#1e1e1e",
  15088. "strokeStyle": "solid",
  15089. "strokeWidth": 2,
  15090. "type": "rectangle",
  15091. "width": 100,
  15092. "x": 100,
  15093. "y": -50,
  15094. },
  15095. "inserted": {
  15096. "isDeleted": true,
  15097. },
  15098. },
  15099. },
  15100. "updated": Map {},
  15101. },
  15102. },
  15103. HistoryEntry {
  15104. "appStateChange": AppStateChange {
  15105. "delta": Delta {
  15106. "deleted": {
  15107. "selectedElementIds": {
  15108. "id56": true,
  15109. },
  15110. },
  15111. "inserted": {
  15112. "selectedElementIds": {},
  15113. },
  15114. },
  15115. },
  15116. "elementsChange": ElementsChange {
  15117. "added": Map {},
  15118. "removed": Map {},
  15119. "updated": Map {},
  15120. },
  15121. },
  15122. HistoryEntry {
  15123. "appStateChange": AppStateChange {
  15124. "delta": Delta {
  15125. "deleted": {
  15126. "selectedElementIds": {
  15127. "id57": true,
  15128. },
  15129. },
  15130. "inserted": {
  15131. "selectedElementIds": {},
  15132. },
  15133. },
  15134. },
  15135. "elementsChange": ElementsChange {
  15136. "added": Map {},
  15137. "removed": Map {},
  15138. "updated": Map {},
  15139. },
  15140. },
  15141. HistoryEntry {
  15142. "appStateChange": AppStateChange {
  15143. "delta": Delta {
  15144. "deleted": {
  15145. "selectedElementIds": {},
  15146. },
  15147. "inserted": {
  15148. "selectedElementIds": {
  15149. "id57": true,
  15150. },
  15151. },
  15152. },
  15153. },
  15154. "elementsChange": ElementsChange {
  15155. "added": Map {},
  15156. "removed": Map {},
  15157. "updated": Map {
  15158. "id56" => Delta {
  15159. "deleted": {
  15160. "boundElements": [
  15161. {
  15162. "id": "id57",
  15163. "type": "text",
  15164. },
  15165. ],
  15166. },
  15167. "inserted": {
  15168. "boundElements": [],
  15169. },
  15170. },
  15171. "id57" => Delta {
  15172. "deleted": {
  15173. "containerId": "id56",
  15174. "height": 25,
  15175. "textAlign": "center",
  15176. "verticalAlign": "middle",
  15177. "width": 30,
  15178. "x": -65,
  15179. "y": "-12.50000",
  15180. },
  15181. "inserted": {
  15182. "containerId": null,
  15183. "height": 100,
  15184. "textAlign": "left",
  15185. "verticalAlign": "top",
  15186. "width": 100,
  15187. "x": -200,
  15188. "y": -200,
  15189. },
  15190. },
  15191. },
  15192. },
  15193. },
  15194. HistoryEntry {
  15195. "appStateChange": AppStateChange {
  15196. "delta": Delta {
  15197. "deleted": {
  15198. "selectedElementIds": {
  15199. "id61": true,
  15200. },
  15201. "selectedLinearElementId": "id61",
  15202. },
  15203. "inserted": {
  15204. "selectedElementIds": {
  15205. "id56": true,
  15206. },
  15207. "selectedLinearElementId": null,
  15208. },
  15209. },
  15210. },
  15211. "elementsChange": ElementsChange {
  15212. "added": Map {},
  15213. "removed": Map {
  15214. "id61" => Delta {
  15215. "deleted": {
  15216. "angle": 0,
  15217. "backgroundColor": "transparent",
  15218. "boundElements": null,
  15219. "customData": undefined,
  15220. "elbowed": false,
  15221. "endArrowhead": "arrow",
  15222. "endBinding": {
  15223. "elementId": "id58",
  15224. "focus": -0,
  15225. "gap": 1,
  15226. },
  15227. "fillStyle": "solid",
  15228. "frameId": null,
  15229. "groupIds": [],
  15230. "height": 0,
  15231. "index": "a3",
  15232. "isDeleted": false,
  15233. "lastCommittedPoint": null,
  15234. "link": null,
  15235. "locked": false,
  15236. "opacity": 100,
  15237. "points": [
  15238. [
  15239. 0,
  15240. 0,
  15241. ],
  15242. [
  15243. 100,
  15244. 0,
  15245. ],
  15246. ],
  15247. "roughness": 1,
  15248. "roundness": {
  15249. "type": 2,
  15250. },
  15251. "startArrowhead": null,
  15252. "startBinding": {
  15253. "elementId": "id56",
  15254. "focus": 0,
  15255. "gap": 1,
  15256. },
  15257. "strokeColor": "#1e1e1e",
  15258. "strokeStyle": "solid",
  15259. "strokeWidth": 2,
  15260. "type": "arrow",
  15261. "width": 100,
  15262. "x": 0,
  15263. "y": 0,
  15264. },
  15265. "inserted": {
  15266. "isDeleted": true,
  15267. },
  15268. },
  15269. },
  15270. "updated": Map {
  15271. "id56" => Delta {
  15272. "deleted": {
  15273. "boundElements": [
  15274. {
  15275. "id": "id61",
  15276. "type": "arrow",
  15277. },
  15278. ],
  15279. },
  15280. "inserted": {
  15281. "boundElements": [],
  15282. },
  15283. },
  15284. "id58" => Delta {
  15285. "deleted": {
  15286. "boundElements": [
  15287. {
  15288. "id": "id61",
  15289. "type": "arrow",
  15290. },
  15291. ],
  15292. },
  15293. "inserted": {
  15294. "boundElements": [],
  15295. },
  15296. },
  15297. },
  15298. },
  15299. },
  15300. ],
  15301. }
  15302. `;
  15303. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind arrow from non deleted bindable elements on deletion and rebind on undo > [end of test] number of elements 1`] = `4`;
  15304. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind arrow from non deleted bindable elements on deletion and rebind on undo > [end of test] number of renders 1`] = `12`;
  15305. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind arrow from non deleted bindable elements on undo and rebind on redo > [end of test] appState 1`] = `
  15306. {
  15307. "activeEmbeddable": null,
  15308. "activeTool": {
  15309. "customType": null,
  15310. "fromSelection": false,
  15311. "lastActiveTool": null,
  15312. "locked": false,
  15313. "type": "selection",
  15314. },
  15315. "collaborators": Map {},
  15316. "contextMenu": null,
  15317. "croppingElementId": null,
  15318. "currentChartType": "bar",
  15319. "currentHoveredFontFamily": null,
  15320. "currentItemArrowType": "round",
  15321. "currentItemBackgroundColor": "transparent",
  15322. "currentItemEndArrowhead": "arrow",
  15323. "currentItemFillStyle": "solid",
  15324. "currentItemFontFamily": 5,
  15325. "currentItemFontSize": 20,
  15326. "currentItemOpacity": 100,
  15327. "currentItemRoughness": 1,
  15328. "currentItemRoundness": "round",
  15329. "currentItemStartArrowhead": null,
  15330. "currentItemStrokeColor": "#1e1e1e",
  15331. "currentItemStrokeStyle": "solid",
  15332. "currentItemStrokeWidth": 2,
  15333. "currentItemTextAlign": "left",
  15334. "cursorButton": "up",
  15335. "defaultSidebarDockedPreference": false,
  15336. "editingFrame": null,
  15337. "editingGroupId": null,
  15338. "editingLinearElement": null,
  15339. "editingTextElement": null,
  15340. "elementsToHighlight": null,
  15341. "errorMessage": null,
  15342. "exportBackground": true,
  15343. "exportEmbedScene": false,
  15344. "exportScale": 1,
  15345. "exportWithDarkMode": false,
  15346. "fileHandle": null,
  15347. "followedBy": Set {},
  15348. "frameRendering": {
  15349. "clip": true,
  15350. "enabled": true,
  15351. "name": true,
  15352. "outline": true,
  15353. },
  15354. "frameToHighlight": null,
  15355. "gridModeEnabled": false,
  15356. "gridSize": 20,
  15357. "gridStep": 5,
  15358. "height": 0,
  15359. "hoveredElementIds": {},
  15360. "isBindingEnabled": true,
  15361. "isCropping": false,
  15362. "isLoading": false,
  15363. "isResizing": false,
  15364. "isRotating": false,
  15365. "lastPointerDownWith": "mouse",
  15366. "multiElement": null,
  15367. "newElement": null,
  15368. "objectsSnapModeEnabled": false,
  15369. "offsetLeft": 0,
  15370. "offsetTop": 0,
  15371. "openDialog": null,
  15372. "openMenu": null,
  15373. "openPopup": null,
  15374. "openSidebar": null,
  15375. "originSnapOffset": null,
  15376. "pasteDialog": {
  15377. "data": null,
  15378. "shown": false,
  15379. },
  15380. "penDetected": false,
  15381. "penMode": false,
  15382. "pendingImageElementId": null,
  15383. "previousSelectedElementIds": {
  15384. "id50": true,
  15385. },
  15386. "resizingElement": null,
  15387. "scrollX": 0,
  15388. "scrollY": 0,
  15389. "searchMatches": [],
  15390. "selectedElementIds": {
  15391. "id55": true,
  15392. },
  15393. "selectedElementsAreBeingDragged": false,
  15394. "selectedGroupIds": {},
  15395. "selectionElement": null,
  15396. "shouldCacheIgnoreZoom": false,
  15397. "showHyperlinkPopup": false,
  15398. "showWelcomeScreen": true,
  15399. "snapLines": [],
  15400. "startBoundElement": null,
  15401. "stats": {
  15402. "open": false,
  15403. "panels": 3,
  15404. },
  15405. "suggestedBindings": [],
  15406. "theme": "light",
  15407. "toast": null,
  15408. "userToFollow": null,
  15409. "viewBackgroundColor": "#ffffff",
  15410. "viewModeEnabled": false,
  15411. "width": 0,
  15412. "zenModeEnabled": false,
  15413. "zoom": {
  15414. "value": 1,
  15415. },
  15416. }
  15417. `;
  15418. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind arrow from non deleted bindable elements on undo and rebind on redo > [end of test] element 0 1`] = `
  15419. {
  15420. "angle": 0,
  15421. "backgroundColor": "transparent",
  15422. "boundElements": [
  15423. {
  15424. "id": "id51",
  15425. "type": "text",
  15426. },
  15427. {
  15428. "id": "id55",
  15429. "type": "arrow",
  15430. },
  15431. ],
  15432. "customData": undefined,
  15433. "fillStyle": "solid",
  15434. "frameId": null,
  15435. "groupIds": [],
  15436. "height": 100,
  15437. "id": "id50",
  15438. "index": "a0",
  15439. "isDeleted": false,
  15440. "link": null,
  15441. "locked": false,
  15442. "opacity": 100,
  15443. "roughness": 1,
  15444. "roundness": {
  15445. "type": 3,
  15446. },
  15447. "strokeColor": "#1e1e1e",
  15448. "strokeStyle": "solid",
  15449. "strokeWidth": 2,
  15450. "type": "rectangle",
  15451. "updated": 1,
  15452. "version": 8,
  15453. "width": 100,
  15454. "x": -100,
  15455. "y": -50,
  15456. }
  15457. `;
  15458. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind arrow from non deleted bindable elements on undo and rebind on redo > [end of test] element 1 1`] = `
  15459. {
  15460. "angle": 0,
  15461. "autoResize": true,
  15462. "backgroundColor": "transparent",
  15463. "boundElements": null,
  15464. "containerId": "id50",
  15465. "customData": undefined,
  15466. "fillStyle": "solid",
  15467. "fontFamily": 5,
  15468. "fontSize": 20,
  15469. "frameId": null,
  15470. "groupIds": [],
  15471. "height": 25,
  15472. "id": "id51",
  15473. "index": "a1",
  15474. "isDeleted": false,
  15475. "lineHeight": "1.25000",
  15476. "link": null,
  15477. "locked": false,
  15478. "opacity": 100,
  15479. "originalText": "ola",
  15480. "roughness": 1,
  15481. "roundness": {
  15482. "type": 3,
  15483. },
  15484. "strokeColor": "#1e1e1e",
  15485. "strokeStyle": "solid",
  15486. "strokeWidth": 2,
  15487. "text": "ola",
  15488. "textAlign": "center",
  15489. "type": "text",
  15490. "updated": 1,
  15491. "version": 8,
  15492. "verticalAlign": "middle",
  15493. "width": 30,
  15494. "x": -65,
  15495. "y": "-12.50000",
  15496. }
  15497. `;
  15498. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind arrow from non deleted bindable elements on undo and rebind on redo > [end of test] element 2 1`] = `
  15499. {
  15500. "angle": 0,
  15501. "backgroundColor": "transparent",
  15502. "boundElements": [
  15503. {
  15504. "id": "id55",
  15505. "type": "arrow",
  15506. },
  15507. ],
  15508. "customData": undefined,
  15509. "fillStyle": "solid",
  15510. "frameId": null,
  15511. "groupIds": [],
  15512. "height": 100,
  15513. "id": "id52",
  15514. "index": "a2",
  15515. "isDeleted": false,
  15516. "link": null,
  15517. "locked": false,
  15518. "opacity": 100,
  15519. "roughness": 1,
  15520. "roundness": {
  15521. "type": 3,
  15522. },
  15523. "strokeColor": "#1e1e1e",
  15524. "strokeStyle": "solid",
  15525. "strokeWidth": 2,
  15526. "type": "rectangle",
  15527. "updated": 1,
  15528. "version": 7,
  15529. "width": 100,
  15530. "x": 100,
  15531. "y": -50,
  15532. }
  15533. `;
  15534. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind arrow from non deleted bindable elements on undo and rebind on redo > [end of test] element 3 1`] = `
  15535. {
  15536. "angle": 0,
  15537. "backgroundColor": "transparent",
  15538. "boundElements": null,
  15539. "customData": undefined,
  15540. "elbowed": false,
  15541. "endArrowhead": "arrow",
  15542. "endBinding": {
  15543. "elementId": "id52",
  15544. "focus": -0,
  15545. "gap": 1,
  15546. },
  15547. "fillStyle": "solid",
  15548. "frameId": null,
  15549. "groupIds": [],
  15550. "height": 0,
  15551. "id": "id55",
  15552. "index": "a3",
  15553. "isDeleted": false,
  15554. "lastCommittedPoint": null,
  15555. "link": null,
  15556. "locked": false,
  15557. "opacity": 100,
  15558. "points": [
  15559. [
  15560. 0,
  15561. 0,
  15562. ],
  15563. [
  15564. "98.58579",
  15565. 0,
  15566. ],
  15567. ],
  15568. "roughness": 1,
  15569. "roundness": {
  15570. "type": 2,
  15571. },
  15572. "startArrowhead": null,
  15573. "startBinding": {
  15574. "elementId": "id50",
  15575. "focus": 0,
  15576. "gap": 1,
  15577. },
  15578. "strokeColor": "#1e1e1e",
  15579. "strokeStyle": "solid",
  15580. "strokeWidth": 2,
  15581. "type": "arrow",
  15582. "updated": 1,
  15583. "version": 10,
  15584. "width": "98.58579",
  15585. "x": "0.70711",
  15586. "y": 0,
  15587. }
  15588. `;
  15589. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind arrow from non deleted bindable elements on undo and rebind on redo > [end of test] history 1`] = `
  15590. History {
  15591. "onHistoryChangedEmitter": Emitter {
  15592. "subscribers": [
  15593. [Function],
  15594. [Function],
  15595. ],
  15596. },
  15597. "redoStack": [],
  15598. "undoStack": [
  15599. HistoryEntry {
  15600. "appStateChange": AppStateChange {
  15601. "delta": Delta {
  15602. "deleted": {},
  15603. "inserted": {},
  15604. },
  15605. },
  15606. "elementsChange": ElementsChange {
  15607. "added": Map {},
  15608. "removed": Map {
  15609. "id50" => Delta {
  15610. "deleted": {
  15611. "angle": 0,
  15612. "backgroundColor": "transparent",
  15613. "boundElements": null,
  15614. "customData": undefined,
  15615. "fillStyle": "solid",
  15616. "frameId": null,
  15617. "groupIds": [],
  15618. "height": 100,
  15619. "index": "a0",
  15620. "isDeleted": false,
  15621. "link": null,
  15622. "locked": false,
  15623. "opacity": 100,
  15624. "roughness": 1,
  15625. "roundness": {
  15626. "type": 3,
  15627. },
  15628. "strokeColor": "#1e1e1e",
  15629. "strokeStyle": "solid",
  15630. "strokeWidth": 2,
  15631. "type": "rectangle",
  15632. "width": 100,
  15633. "x": -100,
  15634. "y": -50,
  15635. },
  15636. "inserted": {
  15637. "isDeleted": true,
  15638. },
  15639. },
  15640. "id51" => Delta {
  15641. "deleted": {
  15642. "angle": 0,
  15643. "autoResize": true,
  15644. "backgroundColor": "transparent",
  15645. "boundElements": null,
  15646. "containerId": null,
  15647. "customData": undefined,
  15648. "fillStyle": "solid",
  15649. "fontFamily": 5,
  15650. "fontSize": 20,
  15651. "frameId": null,
  15652. "groupIds": [],
  15653. "height": 100,
  15654. "index": "a1",
  15655. "isDeleted": false,
  15656. "lineHeight": "1.25000",
  15657. "link": null,
  15658. "locked": false,
  15659. "opacity": 100,
  15660. "originalText": "ola",
  15661. "roughness": 1,
  15662. "roundness": {
  15663. "type": 3,
  15664. },
  15665. "strokeColor": "#1e1e1e",
  15666. "strokeStyle": "solid",
  15667. "strokeWidth": 2,
  15668. "text": "ola",
  15669. "textAlign": "left",
  15670. "type": "text",
  15671. "verticalAlign": "top",
  15672. "width": 100,
  15673. "x": -200,
  15674. "y": -200,
  15675. },
  15676. "inserted": {
  15677. "isDeleted": true,
  15678. },
  15679. },
  15680. "id52" => Delta {
  15681. "deleted": {
  15682. "angle": 0,
  15683. "backgroundColor": "transparent",
  15684. "boundElements": null,
  15685. "customData": undefined,
  15686. "fillStyle": "solid",
  15687. "frameId": null,
  15688. "groupIds": [],
  15689. "height": 100,
  15690. "index": "a2",
  15691. "isDeleted": false,
  15692. "link": null,
  15693. "locked": false,
  15694. "opacity": 100,
  15695. "roughness": 1,
  15696. "roundness": {
  15697. "type": 3,
  15698. },
  15699. "strokeColor": "#1e1e1e",
  15700. "strokeStyle": "solid",
  15701. "strokeWidth": 2,
  15702. "type": "rectangle",
  15703. "width": 100,
  15704. "x": 100,
  15705. "y": -50,
  15706. },
  15707. "inserted": {
  15708. "isDeleted": true,
  15709. },
  15710. },
  15711. },
  15712. "updated": Map {},
  15713. },
  15714. },
  15715. HistoryEntry {
  15716. "appStateChange": AppStateChange {
  15717. "delta": Delta {
  15718. "deleted": {
  15719. "selectedElementIds": {
  15720. "id50": true,
  15721. },
  15722. },
  15723. "inserted": {
  15724. "selectedElementIds": {},
  15725. },
  15726. },
  15727. },
  15728. "elementsChange": ElementsChange {
  15729. "added": Map {},
  15730. "removed": Map {},
  15731. "updated": Map {},
  15732. },
  15733. },
  15734. HistoryEntry {
  15735. "appStateChange": AppStateChange {
  15736. "delta": Delta {
  15737. "deleted": {
  15738. "selectedElementIds": {
  15739. "id51": true,
  15740. },
  15741. },
  15742. "inserted": {
  15743. "selectedElementIds": {},
  15744. },
  15745. },
  15746. },
  15747. "elementsChange": ElementsChange {
  15748. "added": Map {},
  15749. "removed": Map {},
  15750. "updated": Map {},
  15751. },
  15752. },
  15753. HistoryEntry {
  15754. "appStateChange": AppStateChange {
  15755. "delta": Delta {
  15756. "deleted": {
  15757. "selectedElementIds": {},
  15758. },
  15759. "inserted": {
  15760. "selectedElementIds": {
  15761. "id51": true,
  15762. },
  15763. },
  15764. },
  15765. },
  15766. "elementsChange": ElementsChange {
  15767. "added": Map {},
  15768. "removed": Map {},
  15769. "updated": Map {
  15770. "id50" => Delta {
  15771. "deleted": {
  15772. "boundElements": [
  15773. {
  15774. "id": "id51",
  15775. "type": "text",
  15776. },
  15777. ],
  15778. },
  15779. "inserted": {
  15780. "boundElements": [],
  15781. },
  15782. },
  15783. "id51" => Delta {
  15784. "deleted": {
  15785. "containerId": "id50",
  15786. "height": 25,
  15787. "textAlign": "center",
  15788. "verticalAlign": "middle",
  15789. "width": 30,
  15790. "x": -65,
  15791. "y": "-12.50000",
  15792. },
  15793. "inserted": {
  15794. "containerId": null,
  15795. "height": 100,
  15796. "textAlign": "left",
  15797. "verticalAlign": "top",
  15798. "width": 100,
  15799. "x": -200,
  15800. "y": -200,
  15801. },
  15802. },
  15803. },
  15804. },
  15805. },
  15806. HistoryEntry {
  15807. "appStateChange": AppStateChange {
  15808. "delta": Delta {
  15809. "deleted": {
  15810. "selectedElementIds": {
  15811. "id55": true,
  15812. },
  15813. "selectedLinearElementId": "id55",
  15814. },
  15815. "inserted": {
  15816. "selectedElementIds": {
  15817. "id50": true,
  15818. },
  15819. "selectedLinearElementId": null,
  15820. },
  15821. },
  15822. },
  15823. "elementsChange": ElementsChange {
  15824. "added": Map {},
  15825. "removed": Map {
  15826. "id55" => Delta {
  15827. "deleted": {
  15828. "angle": 0,
  15829. "backgroundColor": "transparent",
  15830. "boundElements": null,
  15831. "customData": undefined,
  15832. "elbowed": false,
  15833. "endArrowhead": "arrow",
  15834. "endBinding": {
  15835. "elementId": "id52",
  15836. "focus": -0,
  15837. "gap": 1,
  15838. },
  15839. "fillStyle": "solid",
  15840. "frameId": null,
  15841. "groupIds": [],
  15842. "height": 0,
  15843. "index": "a3",
  15844. "isDeleted": false,
  15845. "lastCommittedPoint": null,
  15846. "link": null,
  15847. "locked": false,
  15848. "opacity": 100,
  15849. "points": [
  15850. [
  15851. 0,
  15852. 0,
  15853. ],
  15854. [
  15855. 100,
  15856. 0,
  15857. ],
  15858. ],
  15859. "roughness": 1,
  15860. "roundness": {
  15861. "type": 2,
  15862. },
  15863. "startArrowhead": null,
  15864. "startBinding": {
  15865. "elementId": "id50",
  15866. "focus": 0,
  15867. "gap": 1,
  15868. },
  15869. "strokeColor": "#1e1e1e",
  15870. "strokeStyle": "solid",
  15871. "strokeWidth": 2,
  15872. "type": "arrow",
  15873. "width": 100,
  15874. "x": 0,
  15875. "y": 0,
  15876. },
  15877. "inserted": {
  15878. "isDeleted": true,
  15879. },
  15880. },
  15881. },
  15882. "updated": Map {
  15883. "id50" => Delta {
  15884. "deleted": {
  15885. "boundElements": [
  15886. {
  15887. "id": "id55",
  15888. "type": "arrow",
  15889. },
  15890. ],
  15891. },
  15892. "inserted": {
  15893. "boundElements": [],
  15894. },
  15895. },
  15896. "id52" => Delta {
  15897. "deleted": {
  15898. "boundElements": [
  15899. {
  15900. "id": "id55",
  15901. "type": "arrow",
  15902. },
  15903. ],
  15904. },
  15905. "inserted": {
  15906. "boundElements": [],
  15907. },
  15908. },
  15909. },
  15910. },
  15911. },
  15912. ],
  15913. }
  15914. `;
  15915. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind arrow from non deleted bindable elements on undo and rebind on redo > [end of test] number of elements 1`] = `4`;
  15916. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind arrow from non deleted bindable elements on undo and rebind on redo > [end of test] number of renders 1`] = `12`;
  15917. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind everything from non deleted elements when iterating through the whole undo stack and vice versa rebind everything on redo > [end of test] appState 1`] = `
  15918. {
  15919. "activeEmbeddable": null,
  15920. "activeTool": {
  15921. "customType": null,
  15922. "fromSelection": false,
  15923. "lastActiveTool": null,
  15924. "locked": false,
  15925. "type": "selection",
  15926. },
  15927. "collaborators": Map {},
  15928. "contextMenu": null,
  15929. "croppingElementId": null,
  15930. "currentChartType": "bar",
  15931. "currentHoveredFontFamily": null,
  15932. "currentItemArrowType": "round",
  15933. "currentItemBackgroundColor": "transparent",
  15934. "currentItemEndArrowhead": "arrow",
  15935. "currentItemFillStyle": "solid",
  15936. "currentItemFontFamily": 5,
  15937. "currentItemFontSize": 20,
  15938. "currentItemOpacity": 100,
  15939. "currentItemRoughness": 1,
  15940. "currentItemRoundness": "round",
  15941. "currentItemStartArrowhead": null,
  15942. "currentItemStrokeColor": "#1e1e1e",
  15943. "currentItemStrokeStyle": "solid",
  15944. "currentItemStrokeWidth": 2,
  15945. "currentItemTextAlign": "left",
  15946. "cursorButton": "up",
  15947. "defaultSidebarDockedPreference": false,
  15948. "editingFrame": null,
  15949. "editingGroupId": null,
  15950. "editingLinearElement": null,
  15951. "editingTextElement": null,
  15952. "elementsToHighlight": null,
  15953. "errorMessage": null,
  15954. "exportBackground": true,
  15955. "exportEmbedScene": false,
  15956. "exportScale": 1,
  15957. "exportWithDarkMode": false,
  15958. "fileHandle": null,
  15959. "followedBy": Set {},
  15960. "frameRendering": {
  15961. "clip": true,
  15962. "enabled": true,
  15963. "name": true,
  15964. "outline": true,
  15965. },
  15966. "frameToHighlight": null,
  15967. "gridModeEnabled": false,
  15968. "gridSize": 20,
  15969. "gridStep": 5,
  15970. "height": 0,
  15971. "hoveredElementIds": {},
  15972. "isBindingEnabled": true,
  15973. "isCropping": false,
  15974. "isLoading": false,
  15975. "isResizing": false,
  15976. "isRotating": false,
  15977. "lastPointerDownWith": "mouse",
  15978. "multiElement": null,
  15979. "newElement": null,
  15980. "objectsSnapModeEnabled": false,
  15981. "offsetLeft": 0,
  15982. "offsetTop": 0,
  15983. "openDialog": null,
  15984. "openMenu": null,
  15985. "openPopup": null,
  15986. "openSidebar": null,
  15987. "originSnapOffset": null,
  15988. "pasteDialog": {
  15989. "data": null,
  15990. "shown": false,
  15991. },
  15992. "penDetected": false,
  15993. "penMode": false,
  15994. "pendingImageElementId": null,
  15995. "previousSelectedElementIds": {
  15996. "id62": true,
  15997. },
  15998. "resizingElement": null,
  15999. "scrollX": 0,
  16000. "scrollY": 0,
  16001. "searchMatches": [],
  16002. "selectedElementIds": {
  16003. "id67": true,
  16004. },
  16005. "selectedElementsAreBeingDragged": false,
  16006. "selectedGroupIds": {},
  16007. "selectionElement": null,
  16008. "shouldCacheIgnoreZoom": false,
  16009. "showHyperlinkPopup": false,
  16010. "showWelcomeScreen": true,
  16011. "snapLines": [],
  16012. "startBoundElement": null,
  16013. "stats": {
  16014. "open": false,
  16015. "panels": 3,
  16016. },
  16017. "suggestedBindings": [],
  16018. "theme": "light",
  16019. "toast": null,
  16020. "userToFollow": null,
  16021. "viewBackgroundColor": "#ffffff",
  16022. "viewModeEnabled": false,
  16023. "width": 0,
  16024. "zenModeEnabled": false,
  16025. "zoom": {
  16026. "value": 1,
  16027. },
  16028. }
  16029. `;
  16030. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind everything from non deleted elements when iterating through the whole undo stack and vice versa rebind everything on redo > [end of test] element 0 1`] = `
  16031. {
  16032. "angle": 0,
  16033. "backgroundColor": "transparent",
  16034. "boundElements": [
  16035. {
  16036. "id": "id63",
  16037. "type": "text",
  16038. },
  16039. {
  16040. "id": "id67",
  16041. "type": "arrow",
  16042. },
  16043. ],
  16044. "customData": undefined,
  16045. "fillStyle": "solid",
  16046. "frameId": null,
  16047. "groupIds": [],
  16048. "height": 100,
  16049. "id": "id62",
  16050. "index": "a0",
  16051. "isDeleted": false,
  16052. "link": null,
  16053. "locked": false,
  16054. "opacity": 100,
  16055. "roughness": 1,
  16056. "roundness": {
  16057. "type": 3,
  16058. },
  16059. "strokeColor": "#1e1e1e",
  16060. "strokeStyle": "solid",
  16061. "strokeWidth": 2,
  16062. "type": "rectangle",
  16063. "updated": 1,
  16064. "version": 12,
  16065. "width": 100,
  16066. "x": -100,
  16067. "y": -50,
  16068. }
  16069. `;
  16070. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind everything from non deleted elements when iterating through the whole undo stack and vice versa rebind everything on redo > [end of test] element 1 1`] = `
  16071. {
  16072. "angle": 0,
  16073. "autoResize": true,
  16074. "backgroundColor": "transparent",
  16075. "boundElements": null,
  16076. "containerId": "id62",
  16077. "customData": undefined,
  16078. "fillStyle": "solid",
  16079. "fontFamily": 5,
  16080. "fontSize": 20,
  16081. "frameId": null,
  16082. "groupIds": [],
  16083. "height": 25,
  16084. "id": "id63",
  16085. "index": "a1",
  16086. "isDeleted": false,
  16087. "lineHeight": "1.25000",
  16088. "link": null,
  16089. "locked": false,
  16090. "opacity": 100,
  16091. "originalText": "ola",
  16092. "roughness": 1,
  16093. "roundness": {
  16094. "type": 3,
  16095. },
  16096. "strokeColor": "#1e1e1e",
  16097. "strokeStyle": "solid",
  16098. "strokeWidth": 2,
  16099. "text": "ola",
  16100. "textAlign": "center",
  16101. "type": "text",
  16102. "updated": 1,
  16103. "version": 12,
  16104. "verticalAlign": "middle",
  16105. "width": 30,
  16106. "x": -65,
  16107. "y": "-12.50000",
  16108. }
  16109. `;
  16110. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind everything from non deleted elements when iterating through the whole undo stack and vice versa rebind everything on redo > [end of test] element 2 1`] = `
  16111. {
  16112. "angle": 0,
  16113. "backgroundColor": "transparent",
  16114. "boundElements": [
  16115. {
  16116. "id": "id67",
  16117. "type": "arrow",
  16118. },
  16119. ],
  16120. "customData": undefined,
  16121. "fillStyle": "solid",
  16122. "frameId": null,
  16123. "groupIds": [],
  16124. "height": 100,
  16125. "id": "id64",
  16126. "index": "a2",
  16127. "isDeleted": false,
  16128. "link": null,
  16129. "locked": false,
  16130. "opacity": 100,
  16131. "roughness": 1,
  16132. "roundness": {
  16133. "type": 3,
  16134. },
  16135. "strokeColor": "#1e1e1e",
  16136. "strokeStyle": "solid",
  16137. "strokeWidth": 2,
  16138. "type": "rectangle",
  16139. "updated": 1,
  16140. "version": 9,
  16141. "width": 100,
  16142. "x": 100,
  16143. "y": -50,
  16144. }
  16145. `;
  16146. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind everything from non deleted elements when iterating through the whole undo stack and vice versa rebind everything on redo > [end of test] element 3 1`] = `
  16147. {
  16148. "angle": 0,
  16149. "backgroundColor": "transparent",
  16150. "boundElements": null,
  16151. "customData": undefined,
  16152. "elbowed": false,
  16153. "endArrowhead": "arrow",
  16154. "endBinding": {
  16155. "elementId": "id64",
  16156. "focus": -0,
  16157. "gap": 1,
  16158. },
  16159. "fillStyle": "solid",
  16160. "frameId": null,
  16161. "groupIds": [],
  16162. "height": 0,
  16163. "id": "id67",
  16164. "index": "a3",
  16165. "isDeleted": false,
  16166. "lastCommittedPoint": null,
  16167. "link": null,
  16168. "locked": false,
  16169. "opacity": 100,
  16170. "points": [
  16171. [
  16172. 0,
  16173. 0,
  16174. ],
  16175. [
  16176. "98.58579",
  16177. 0,
  16178. ],
  16179. ],
  16180. "roughness": 1,
  16181. "roundness": {
  16182. "type": 2,
  16183. },
  16184. "startArrowhead": null,
  16185. "startBinding": {
  16186. "elementId": "id62",
  16187. "focus": 0,
  16188. "gap": 1,
  16189. },
  16190. "strokeColor": "#1e1e1e",
  16191. "strokeStyle": "solid",
  16192. "strokeWidth": 2,
  16193. "type": "arrow",
  16194. "updated": 1,
  16195. "version": 10,
  16196. "width": "98.58579",
  16197. "x": "0.70711",
  16198. "y": 0,
  16199. }
  16200. `;
  16201. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind everything from non deleted elements when iterating through the whole undo stack and vice versa rebind everything on redo > [end of test] history 1`] = `
  16202. History {
  16203. "onHistoryChangedEmitter": Emitter {
  16204. "subscribers": [
  16205. [Function],
  16206. [Function],
  16207. ],
  16208. },
  16209. "redoStack": [],
  16210. "undoStack": [
  16211. HistoryEntry {
  16212. "appStateChange": AppStateChange {
  16213. "delta": Delta {
  16214. "deleted": {},
  16215. "inserted": {},
  16216. },
  16217. },
  16218. "elementsChange": ElementsChange {
  16219. "added": Map {},
  16220. "removed": Map {
  16221. "id62" => Delta {
  16222. "deleted": {
  16223. "angle": 0,
  16224. "backgroundColor": "transparent",
  16225. "boundElements": null,
  16226. "customData": undefined,
  16227. "fillStyle": "solid",
  16228. "frameId": null,
  16229. "groupIds": [],
  16230. "height": 100,
  16231. "index": "a0",
  16232. "isDeleted": false,
  16233. "link": null,
  16234. "locked": false,
  16235. "opacity": 100,
  16236. "roughness": 1,
  16237. "roundness": {
  16238. "type": 3,
  16239. },
  16240. "strokeColor": "#1e1e1e",
  16241. "strokeStyle": "solid",
  16242. "strokeWidth": 2,
  16243. "type": "rectangle",
  16244. "width": 100,
  16245. "x": -100,
  16246. "y": -50,
  16247. },
  16248. "inserted": {
  16249. "isDeleted": true,
  16250. },
  16251. },
  16252. "id63" => Delta {
  16253. "deleted": {
  16254. "angle": 0,
  16255. "autoResize": true,
  16256. "backgroundColor": "transparent",
  16257. "boundElements": null,
  16258. "containerId": null,
  16259. "customData": undefined,
  16260. "fillStyle": "solid",
  16261. "fontFamily": 5,
  16262. "fontSize": 20,
  16263. "frameId": null,
  16264. "groupIds": [],
  16265. "height": 100,
  16266. "index": "a1",
  16267. "isDeleted": false,
  16268. "lineHeight": "1.25000",
  16269. "link": null,
  16270. "locked": false,
  16271. "opacity": 100,
  16272. "originalText": "ola",
  16273. "roughness": 1,
  16274. "roundness": {
  16275. "type": 3,
  16276. },
  16277. "strokeColor": "#1e1e1e",
  16278. "strokeStyle": "solid",
  16279. "strokeWidth": 2,
  16280. "text": "ola",
  16281. "textAlign": "left",
  16282. "type": "text",
  16283. "verticalAlign": "top",
  16284. "width": 100,
  16285. "x": -200,
  16286. "y": -200,
  16287. },
  16288. "inserted": {
  16289. "isDeleted": true,
  16290. },
  16291. },
  16292. "id64" => Delta {
  16293. "deleted": {
  16294. "angle": 0,
  16295. "backgroundColor": "transparent",
  16296. "boundElements": null,
  16297. "customData": undefined,
  16298. "fillStyle": "solid",
  16299. "frameId": null,
  16300. "groupIds": [],
  16301. "height": 100,
  16302. "index": "a2",
  16303. "isDeleted": false,
  16304. "link": null,
  16305. "locked": false,
  16306. "opacity": 100,
  16307. "roughness": 1,
  16308. "roundness": {
  16309. "type": 3,
  16310. },
  16311. "strokeColor": "#1e1e1e",
  16312. "strokeStyle": "solid",
  16313. "strokeWidth": 2,
  16314. "type": "rectangle",
  16315. "width": 100,
  16316. "x": 100,
  16317. "y": -50,
  16318. },
  16319. "inserted": {
  16320. "isDeleted": true,
  16321. },
  16322. },
  16323. },
  16324. "updated": Map {},
  16325. },
  16326. },
  16327. HistoryEntry {
  16328. "appStateChange": AppStateChange {
  16329. "delta": Delta {
  16330. "deleted": {
  16331. "selectedElementIds": {
  16332. "id62": true,
  16333. },
  16334. },
  16335. "inserted": {
  16336. "selectedElementIds": {},
  16337. },
  16338. },
  16339. },
  16340. "elementsChange": ElementsChange {
  16341. "added": Map {},
  16342. "removed": Map {},
  16343. "updated": Map {},
  16344. },
  16345. },
  16346. HistoryEntry {
  16347. "appStateChange": AppStateChange {
  16348. "delta": Delta {
  16349. "deleted": {
  16350. "selectedElementIds": {
  16351. "id63": true,
  16352. },
  16353. },
  16354. "inserted": {
  16355. "selectedElementIds": {},
  16356. },
  16357. },
  16358. },
  16359. "elementsChange": ElementsChange {
  16360. "added": Map {},
  16361. "removed": Map {},
  16362. "updated": Map {},
  16363. },
  16364. },
  16365. HistoryEntry {
  16366. "appStateChange": AppStateChange {
  16367. "delta": Delta {
  16368. "deleted": {
  16369. "selectedElementIds": {},
  16370. },
  16371. "inserted": {
  16372. "selectedElementIds": {
  16373. "id63": true,
  16374. },
  16375. },
  16376. },
  16377. },
  16378. "elementsChange": ElementsChange {
  16379. "added": Map {},
  16380. "removed": Map {},
  16381. "updated": Map {
  16382. "id62" => Delta {
  16383. "deleted": {
  16384. "boundElements": [
  16385. {
  16386. "id": "id63",
  16387. "type": "text",
  16388. },
  16389. ],
  16390. },
  16391. "inserted": {
  16392. "boundElements": [],
  16393. },
  16394. },
  16395. "id63" => Delta {
  16396. "deleted": {
  16397. "containerId": "id62",
  16398. "height": 25,
  16399. "textAlign": "center",
  16400. "verticalAlign": "middle",
  16401. "width": 30,
  16402. "x": -65,
  16403. "y": "-12.50000",
  16404. },
  16405. "inserted": {
  16406. "containerId": null,
  16407. "height": 100,
  16408. "textAlign": "left",
  16409. "verticalAlign": "top",
  16410. "width": 100,
  16411. "x": -200,
  16412. "y": -200,
  16413. },
  16414. },
  16415. },
  16416. },
  16417. },
  16418. HistoryEntry {
  16419. "appStateChange": AppStateChange {
  16420. "delta": Delta {
  16421. "deleted": {
  16422. "selectedElementIds": {
  16423. "id67": true,
  16424. },
  16425. "selectedLinearElementId": "id67",
  16426. },
  16427. "inserted": {
  16428. "selectedElementIds": {
  16429. "id62": true,
  16430. },
  16431. "selectedLinearElementId": null,
  16432. },
  16433. },
  16434. },
  16435. "elementsChange": ElementsChange {
  16436. "added": Map {},
  16437. "removed": Map {
  16438. "id67" => Delta {
  16439. "deleted": {
  16440. "angle": 0,
  16441. "backgroundColor": "transparent",
  16442. "boundElements": null,
  16443. "customData": undefined,
  16444. "elbowed": false,
  16445. "endArrowhead": "arrow",
  16446. "endBinding": {
  16447. "elementId": "id64",
  16448. "focus": -0,
  16449. "gap": 1,
  16450. },
  16451. "fillStyle": "solid",
  16452. "frameId": null,
  16453. "groupIds": [],
  16454. "height": 0,
  16455. "index": "a3",
  16456. "isDeleted": false,
  16457. "lastCommittedPoint": null,
  16458. "link": null,
  16459. "locked": false,
  16460. "opacity": 100,
  16461. "points": [
  16462. [
  16463. 0,
  16464. 0,
  16465. ],
  16466. [
  16467. 100,
  16468. 0,
  16469. ],
  16470. ],
  16471. "roughness": 1,
  16472. "roundness": {
  16473. "type": 2,
  16474. },
  16475. "startArrowhead": null,
  16476. "startBinding": {
  16477. "elementId": "id62",
  16478. "focus": 0,
  16479. "gap": 1,
  16480. },
  16481. "strokeColor": "#1e1e1e",
  16482. "strokeStyle": "solid",
  16483. "strokeWidth": 2,
  16484. "type": "arrow",
  16485. "width": 100,
  16486. "x": 0,
  16487. "y": 0,
  16488. },
  16489. "inserted": {
  16490. "isDeleted": true,
  16491. },
  16492. },
  16493. },
  16494. "updated": Map {
  16495. "id62" => Delta {
  16496. "deleted": {
  16497. "boundElements": [
  16498. {
  16499. "id": "id67",
  16500. "type": "arrow",
  16501. },
  16502. ],
  16503. },
  16504. "inserted": {
  16505. "boundElements": [],
  16506. },
  16507. },
  16508. "id64" => Delta {
  16509. "deleted": {
  16510. "boundElements": [
  16511. {
  16512. "id": "id67",
  16513. "type": "arrow",
  16514. },
  16515. ],
  16516. },
  16517. "inserted": {
  16518. "boundElements": [],
  16519. },
  16520. },
  16521. },
  16522. },
  16523. },
  16524. ],
  16525. }
  16526. `;
  16527. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind everything from non deleted elements when iterating through the whole undo stack and vice versa rebind everything on redo > [end of test] number of elements 1`] = `4`;
  16528. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind everything from non deleted elements when iterating through the whole undo stack and vice versa rebind everything on redo > [end of test] number of renders 1`] = `20`;
  16529. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind rectangle from arrow on deletion and rebind on undo > [end of test] appState 1`] = `
  16530. {
  16531. "activeEmbeddable": null,
  16532. "activeTool": {
  16533. "customType": null,
  16534. "fromSelection": false,
  16535. "lastActiveTool": null,
  16536. "locked": false,
  16537. "type": "selection",
  16538. },
  16539. "collaborators": Map {},
  16540. "contextMenu": null,
  16541. "croppingElementId": null,
  16542. "currentChartType": "bar",
  16543. "currentHoveredFontFamily": null,
  16544. "currentItemArrowType": "round",
  16545. "currentItemBackgroundColor": "transparent",
  16546. "currentItemEndArrowhead": "arrow",
  16547. "currentItemFillStyle": "solid",
  16548. "currentItemFontFamily": 5,
  16549. "currentItemFontSize": 20,
  16550. "currentItemOpacity": 100,
  16551. "currentItemRoughness": 1,
  16552. "currentItemRoundness": "round",
  16553. "currentItemStartArrowhead": null,
  16554. "currentItemStrokeColor": "#1e1e1e",
  16555. "currentItemStrokeStyle": "solid",
  16556. "currentItemStrokeWidth": 2,
  16557. "currentItemTextAlign": "left",
  16558. "cursorButton": "up",
  16559. "defaultSidebarDockedPreference": false,
  16560. "editingFrame": null,
  16561. "editingGroupId": null,
  16562. "editingLinearElement": null,
  16563. "editingTextElement": null,
  16564. "elementsToHighlight": null,
  16565. "errorMessage": null,
  16566. "exportBackground": true,
  16567. "exportEmbedScene": false,
  16568. "exportScale": 1,
  16569. "exportWithDarkMode": false,
  16570. "fileHandle": null,
  16571. "followedBy": Set {},
  16572. "frameRendering": {
  16573. "clip": true,
  16574. "enabled": true,
  16575. "name": true,
  16576. "outline": true,
  16577. },
  16578. "frameToHighlight": null,
  16579. "gridModeEnabled": false,
  16580. "gridSize": 20,
  16581. "gridStep": 5,
  16582. "height": 0,
  16583. "hoveredElementIds": {},
  16584. "isBindingEnabled": true,
  16585. "isCropping": false,
  16586. "isLoading": false,
  16587. "isResizing": false,
  16588. "isRotating": false,
  16589. "lastPointerDownWith": "mouse",
  16590. "multiElement": null,
  16591. "newElement": null,
  16592. "objectsSnapModeEnabled": false,
  16593. "offsetLeft": 0,
  16594. "offsetTop": 0,
  16595. "openDialog": null,
  16596. "openMenu": null,
  16597. "openPopup": null,
  16598. "openSidebar": null,
  16599. "originSnapOffset": null,
  16600. "pasteDialog": {
  16601. "data": null,
  16602. "shown": false,
  16603. },
  16604. "penDetected": false,
  16605. "penMode": false,
  16606. "pendingImageElementId": null,
  16607. "previousSelectedElementIds": {},
  16608. "resizingElement": null,
  16609. "scrollX": 0,
  16610. "scrollY": 0,
  16611. "searchMatches": [],
  16612. "selectedElementIds": {
  16613. "id68": true,
  16614. },
  16615. "selectedElementsAreBeingDragged": false,
  16616. "selectedGroupIds": {},
  16617. "selectionElement": null,
  16618. "shouldCacheIgnoreZoom": false,
  16619. "showHyperlinkPopup": false,
  16620. "showWelcomeScreen": true,
  16621. "snapLines": [],
  16622. "startBoundElement": null,
  16623. "stats": {
  16624. "open": false,
  16625. "panels": 3,
  16626. },
  16627. "suggestedBindings": [],
  16628. "theme": "light",
  16629. "toast": null,
  16630. "userToFollow": null,
  16631. "viewBackgroundColor": "#ffffff",
  16632. "viewModeEnabled": false,
  16633. "width": 0,
  16634. "zenModeEnabled": false,
  16635. "zoom": {
  16636. "value": 1,
  16637. },
  16638. }
  16639. `;
  16640. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind rectangle from arrow on deletion and rebind on undo > [end of test] element 0 1`] = `
  16641. {
  16642. "angle": 0,
  16643. "backgroundColor": "transparent",
  16644. "boundElements": [
  16645. {
  16646. "id": "id73",
  16647. "type": "arrow",
  16648. },
  16649. {
  16650. "id": "id69",
  16651. "type": "text",
  16652. },
  16653. ],
  16654. "customData": undefined,
  16655. "fillStyle": "solid",
  16656. "frameId": null,
  16657. "groupIds": [],
  16658. "height": 100,
  16659. "id": "id68",
  16660. "index": "a0",
  16661. "isDeleted": false,
  16662. "link": null,
  16663. "locked": false,
  16664. "opacity": 100,
  16665. "roughness": 1,
  16666. "roundness": {
  16667. "type": 3,
  16668. },
  16669. "strokeColor": "#1e1e1e",
  16670. "strokeStyle": "solid",
  16671. "strokeWidth": 2,
  16672. "type": "rectangle",
  16673. "updated": 1,
  16674. "version": 8,
  16675. "width": 100,
  16676. "x": -100,
  16677. "y": -50,
  16678. }
  16679. `;
  16680. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind rectangle from arrow on deletion and rebind on undo > [end of test] element 1 1`] = `
  16681. {
  16682. "angle": 0,
  16683. "autoResize": true,
  16684. "backgroundColor": "transparent",
  16685. "boundElements": null,
  16686. "containerId": "id68",
  16687. "customData": undefined,
  16688. "fillStyle": "solid",
  16689. "fontFamily": 5,
  16690. "fontSize": 20,
  16691. "frameId": null,
  16692. "groupIds": [],
  16693. "height": 25,
  16694. "id": "id69",
  16695. "index": "a1",
  16696. "isDeleted": false,
  16697. "lineHeight": "1.25000",
  16698. "link": null,
  16699. "locked": false,
  16700. "opacity": 100,
  16701. "originalText": "ola",
  16702. "roughness": 1,
  16703. "roundness": {
  16704. "type": 3,
  16705. },
  16706. "strokeColor": "#1e1e1e",
  16707. "strokeStyle": "solid",
  16708. "strokeWidth": 2,
  16709. "text": "ola",
  16710. "textAlign": "center",
  16711. "type": "text",
  16712. "updated": 1,
  16713. "version": 8,
  16714. "verticalAlign": "middle",
  16715. "width": 30,
  16716. "x": -65,
  16717. "y": "-12.50000",
  16718. }
  16719. `;
  16720. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind rectangle from arrow on deletion and rebind on undo > [end of test] element 2 1`] = `
  16721. {
  16722. "angle": 0,
  16723. "backgroundColor": "transparent",
  16724. "boundElements": [
  16725. {
  16726. "id": "id73",
  16727. "type": "arrow",
  16728. },
  16729. ],
  16730. "customData": undefined,
  16731. "fillStyle": "solid",
  16732. "frameId": null,
  16733. "groupIds": [],
  16734. "height": 100,
  16735. "id": "id70",
  16736. "index": "a2",
  16737. "isDeleted": false,
  16738. "link": null,
  16739. "locked": false,
  16740. "opacity": 100,
  16741. "roughness": 1,
  16742. "roundness": {
  16743. "type": 3,
  16744. },
  16745. "strokeColor": "#1e1e1e",
  16746. "strokeStyle": "solid",
  16747. "strokeWidth": 2,
  16748. "type": "rectangle",
  16749. "updated": 1,
  16750. "version": 5,
  16751. "width": 100,
  16752. "x": 100,
  16753. "y": -50,
  16754. }
  16755. `;
  16756. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind rectangle from arrow on deletion and rebind on undo > [end of test] element 3 1`] = `
  16757. {
  16758. "angle": 0,
  16759. "backgroundColor": "transparent",
  16760. "boundElements": null,
  16761. "customData": undefined,
  16762. "elbowed": false,
  16763. "endArrowhead": "arrow",
  16764. "endBinding": {
  16765. "elementId": "id70",
  16766. "focus": -0,
  16767. "gap": 1,
  16768. },
  16769. "fillStyle": "solid",
  16770. "frameId": null,
  16771. "groupIds": [],
  16772. "height": 0,
  16773. "id": "id73",
  16774. "index": "a3",
  16775. "isDeleted": false,
  16776. "lastCommittedPoint": null,
  16777. "link": null,
  16778. "locked": false,
  16779. "opacity": 100,
  16780. "points": [
  16781. [
  16782. 0,
  16783. 0,
  16784. ],
  16785. [
  16786. "98.58579",
  16787. 0,
  16788. ],
  16789. ],
  16790. "roughness": 1,
  16791. "roundness": {
  16792. "type": 2,
  16793. },
  16794. "startArrowhead": null,
  16795. "startBinding": {
  16796. "elementId": "id68",
  16797. "focus": 0,
  16798. "gap": 1,
  16799. },
  16800. "strokeColor": "#1e1e1e",
  16801. "strokeStyle": "solid",
  16802. "strokeWidth": 2,
  16803. "type": "arrow",
  16804. "updated": 1,
  16805. "version": 10,
  16806. "width": "98.58579",
  16807. "x": "0.70711",
  16808. "y": 0,
  16809. }
  16810. `;
  16811. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind rectangle from arrow on deletion and rebind on undo > [end of test] history 1`] = `
  16812. History {
  16813. "onHistoryChangedEmitter": Emitter {
  16814. "subscribers": [
  16815. [Function],
  16816. [Function],
  16817. ],
  16818. },
  16819. "redoStack": [
  16820. HistoryEntry {
  16821. "appStateChange": AppStateChange {
  16822. "delta": Delta {
  16823. "deleted": {
  16824. "selectedElementIds": {
  16825. "id68": true,
  16826. },
  16827. },
  16828. "inserted": {
  16829. "selectedElementIds": {},
  16830. },
  16831. },
  16832. },
  16833. "elementsChange": ElementsChange {
  16834. "added": Map {},
  16835. "removed": Map {
  16836. "id68" => Delta {
  16837. "deleted": {
  16838. "isDeleted": false,
  16839. },
  16840. "inserted": {
  16841. "isDeleted": true,
  16842. },
  16843. },
  16844. "id69" => Delta {
  16845. "deleted": {
  16846. "isDeleted": false,
  16847. },
  16848. "inserted": {
  16849. "isDeleted": true,
  16850. },
  16851. },
  16852. },
  16853. "updated": Map {
  16854. "id73" => Delta {
  16855. "deleted": {
  16856. "points": [
  16857. [
  16858. 0,
  16859. 0,
  16860. ],
  16861. [
  16862. 100,
  16863. 0,
  16864. ],
  16865. ],
  16866. "startBinding": {
  16867. "elementId": "id68",
  16868. "focus": 0,
  16869. "gap": 1,
  16870. },
  16871. },
  16872. "inserted": {
  16873. "points": [
  16874. [
  16875. 0,
  16876. 0,
  16877. ],
  16878. [
  16879. 100,
  16880. 0,
  16881. ],
  16882. ],
  16883. "startBinding": null,
  16884. },
  16885. },
  16886. },
  16887. },
  16888. },
  16889. ],
  16890. "undoStack": [
  16891. HistoryEntry {
  16892. "appStateChange": AppStateChange {
  16893. "delta": Delta {
  16894. "deleted": {},
  16895. "inserted": {},
  16896. },
  16897. },
  16898. "elementsChange": ElementsChange {
  16899. "added": Map {},
  16900. "removed": Map {
  16901. "id68" => Delta {
  16902. "deleted": {
  16903. "angle": 0,
  16904. "backgroundColor": "transparent",
  16905. "boundElements": null,
  16906. "customData": undefined,
  16907. "fillStyle": "solid",
  16908. "frameId": null,
  16909. "groupIds": [],
  16910. "height": 100,
  16911. "index": "a0",
  16912. "isDeleted": false,
  16913. "link": null,
  16914. "locked": false,
  16915. "opacity": 100,
  16916. "roughness": 1,
  16917. "roundness": {
  16918. "type": 3,
  16919. },
  16920. "strokeColor": "#1e1e1e",
  16921. "strokeStyle": "solid",
  16922. "strokeWidth": 2,
  16923. "type": "rectangle",
  16924. "width": 100,
  16925. "x": -100,
  16926. "y": -50,
  16927. },
  16928. "inserted": {
  16929. "isDeleted": true,
  16930. },
  16931. },
  16932. "id69" => Delta {
  16933. "deleted": {
  16934. "angle": 0,
  16935. "autoResize": true,
  16936. "backgroundColor": "transparent",
  16937. "boundElements": null,
  16938. "containerId": null,
  16939. "customData": undefined,
  16940. "fillStyle": "solid",
  16941. "fontFamily": 5,
  16942. "fontSize": 20,
  16943. "frameId": null,
  16944. "groupIds": [],
  16945. "height": 100,
  16946. "index": "a1",
  16947. "isDeleted": false,
  16948. "lineHeight": "1.25000",
  16949. "link": null,
  16950. "locked": false,
  16951. "opacity": 100,
  16952. "originalText": "ola",
  16953. "roughness": 1,
  16954. "roundness": {
  16955. "type": 3,
  16956. },
  16957. "strokeColor": "#1e1e1e",
  16958. "strokeStyle": "solid",
  16959. "strokeWidth": 2,
  16960. "text": "ola",
  16961. "textAlign": "left",
  16962. "type": "text",
  16963. "verticalAlign": "top",
  16964. "width": 100,
  16965. "x": -200,
  16966. "y": -200,
  16967. },
  16968. "inserted": {
  16969. "isDeleted": true,
  16970. },
  16971. },
  16972. "id70" => Delta {
  16973. "deleted": {
  16974. "angle": 0,
  16975. "backgroundColor": "transparent",
  16976. "boundElements": null,
  16977. "customData": undefined,
  16978. "fillStyle": "solid",
  16979. "frameId": null,
  16980. "groupIds": [],
  16981. "height": 100,
  16982. "index": "a2",
  16983. "isDeleted": false,
  16984. "link": null,
  16985. "locked": false,
  16986. "opacity": 100,
  16987. "roughness": 1,
  16988. "roundness": {
  16989. "type": 3,
  16990. },
  16991. "strokeColor": "#1e1e1e",
  16992. "strokeStyle": "solid",
  16993. "strokeWidth": 2,
  16994. "type": "rectangle",
  16995. "width": 100,
  16996. "x": 100,
  16997. "y": -50,
  16998. },
  16999. "inserted": {
  17000. "isDeleted": true,
  17001. },
  17002. },
  17003. },
  17004. "updated": Map {},
  17005. },
  17006. },
  17007. HistoryEntry {
  17008. "appStateChange": AppStateChange {
  17009. "delta": Delta {
  17010. "deleted": {
  17011. "selectedElementIds": {
  17012. "id68": true,
  17013. },
  17014. },
  17015. "inserted": {
  17016. "selectedElementIds": {},
  17017. },
  17018. },
  17019. },
  17020. "elementsChange": ElementsChange {
  17021. "added": Map {},
  17022. "removed": Map {},
  17023. "updated": Map {},
  17024. },
  17025. },
  17026. HistoryEntry {
  17027. "appStateChange": AppStateChange {
  17028. "delta": Delta {
  17029. "deleted": {
  17030. "selectedElementIds": {
  17031. "id69": true,
  17032. },
  17033. },
  17034. "inserted": {
  17035. "selectedElementIds": {},
  17036. },
  17037. },
  17038. },
  17039. "elementsChange": ElementsChange {
  17040. "added": Map {},
  17041. "removed": Map {},
  17042. "updated": Map {},
  17043. },
  17044. },
  17045. HistoryEntry {
  17046. "appStateChange": AppStateChange {
  17047. "delta": Delta {
  17048. "deleted": {
  17049. "selectedElementIds": {},
  17050. },
  17051. "inserted": {
  17052. "selectedElementIds": {
  17053. "id69": true,
  17054. },
  17055. },
  17056. },
  17057. },
  17058. "elementsChange": ElementsChange {
  17059. "added": Map {},
  17060. "removed": Map {},
  17061. "updated": Map {
  17062. "id68" => Delta {
  17063. "deleted": {
  17064. "boundElements": [
  17065. {
  17066. "id": "id69",
  17067. "type": "text",
  17068. },
  17069. ],
  17070. },
  17071. "inserted": {
  17072. "boundElements": [],
  17073. },
  17074. },
  17075. "id69" => Delta {
  17076. "deleted": {
  17077. "containerId": "id68",
  17078. "height": 25,
  17079. "textAlign": "center",
  17080. "verticalAlign": "middle",
  17081. "width": 30,
  17082. "x": -65,
  17083. "y": "-12.50000",
  17084. },
  17085. "inserted": {
  17086. "containerId": null,
  17087. "height": 100,
  17088. "textAlign": "left",
  17089. "verticalAlign": "top",
  17090. "width": 100,
  17091. "x": -200,
  17092. "y": -200,
  17093. },
  17094. },
  17095. },
  17096. },
  17097. },
  17098. HistoryEntry {
  17099. "appStateChange": AppStateChange {
  17100. "delta": Delta {
  17101. "deleted": {
  17102. "selectedElementIds": {
  17103. "id73": true,
  17104. },
  17105. "selectedLinearElementId": "id73",
  17106. },
  17107. "inserted": {
  17108. "selectedElementIds": {
  17109. "id68": true,
  17110. },
  17111. "selectedLinearElementId": null,
  17112. },
  17113. },
  17114. },
  17115. "elementsChange": ElementsChange {
  17116. "added": Map {},
  17117. "removed": Map {
  17118. "id73" => Delta {
  17119. "deleted": {
  17120. "angle": 0,
  17121. "backgroundColor": "transparent",
  17122. "boundElements": null,
  17123. "customData": undefined,
  17124. "elbowed": false,
  17125. "endArrowhead": "arrow",
  17126. "endBinding": {
  17127. "elementId": "id70",
  17128. "focus": -0,
  17129. "gap": 1,
  17130. },
  17131. "fillStyle": "solid",
  17132. "frameId": null,
  17133. "groupIds": [],
  17134. "height": 0,
  17135. "index": "a3",
  17136. "isDeleted": false,
  17137. "lastCommittedPoint": null,
  17138. "link": null,
  17139. "locked": false,
  17140. "opacity": 100,
  17141. "points": [
  17142. [
  17143. 0,
  17144. 0,
  17145. ],
  17146. [
  17147. 100,
  17148. 0,
  17149. ],
  17150. ],
  17151. "roughness": 1,
  17152. "roundness": {
  17153. "type": 2,
  17154. },
  17155. "startArrowhead": null,
  17156. "startBinding": {
  17157. "elementId": "id68",
  17158. "focus": 0,
  17159. "gap": 1,
  17160. },
  17161. "strokeColor": "#1e1e1e",
  17162. "strokeStyle": "solid",
  17163. "strokeWidth": 2,
  17164. "type": "arrow",
  17165. "width": 100,
  17166. "x": 0,
  17167. "y": 0,
  17168. },
  17169. "inserted": {
  17170. "isDeleted": true,
  17171. },
  17172. },
  17173. },
  17174. "updated": Map {
  17175. "id68" => Delta {
  17176. "deleted": {
  17177. "boundElements": [
  17178. {
  17179. "id": "id73",
  17180. "type": "arrow",
  17181. },
  17182. ],
  17183. },
  17184. "inserted": {
  17185. "boundElements": [],
  17186. },
  17187. },
  17188. "id70" => Delta {
  17189. "deleted": {
  17190. "boundElements": [
  17191. {
  17192. "id": "id73",
  17193. "type": "arrow",
  17194. },
  17195. ],
  17196. },
  17197. "inserted": {
  17198. "boundElements": [],
  17199. },
  17200. },
  17201. },
  17202. },
  17203. },
  17204. HistoryEntry {
  17205. "appStateChange": AppStateChange {
  17206. "delta": Delta {
  17207. "deleted": {
  17208. "selectedElementIds": {
  17209. "id68": true,
  17210. },
  17211. "selectedLinearElementId": null,
  17212. },
  17213. "inserted": {
  17214. "selectedElementIds": {
  17215. "id73": true,
  17216. },
  17217. "selectedLinearElementId": "id73",
  17218. },
  17219. },
  17220. },
  17221. "elementsChange": ElementsChange {
  17222. "added": Map {},
  17223. "removed": Map {},
  17224. "updated": Map {},
  17225. },
  17226. },
  17227. ],
  17228. }
  17229. `;
  17230. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind rectangle from arrow on deletion and rebind on undo > [end of test] number of elements 1`] = `4`;
  17231. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind rectangle from arrow on deletion and rebind on undo > [end of test] number of renders 1`] = `14`;
  17232. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind rectangles from arrow on deletion and rebind on undo > [end of test] appState 1`] = `
  17233. {
  17234. "activeEmbeddable": null,
  17235. "activeTool": {
  17236. "customType": null,
  17237. "fromSelection": false,
  17238. "lastActiveTool": null,
  17239. "locked": false,
  17240. "type": "selection",
  17241. },
  17242. "collaborators": Map {},
  17243. "contextMenu": null,
  17244. "croppingElementId": null,
  17245. "currentChartType": "bar",
  17246. "currentHoveredFontFamily": null,
  17247. "currentItemArrowType": "round",
  17248. "currentItemBackgroundColor": "transparent",
  17249. "currentItemEndArrowhead": "arrow",
  17250. "currentItemFillStyle": "solid",
  17251. "currentItemFontFamily": 5,
  17252. "currentItemFontSize": 20,
  17253. "currentItemOpacity": 100,
  17254. "currentItemRoughness": 1,
  17255. "currentItemRoundness": "round",
  17256. "currentItemStartArrowhead": null,
  17257. "currentItemStrokeColor": "#1e1e1e",
  17258. "currentItemStrokeStyle": "solid",
  17259. "currentItemStrokeWidth": 2,
  17260. "currentItemTextAlign": "left",
  17261. "cursorButton": "up",
  17262. "defaultSidebarDockedPreference": false,
  17263. "editingFrame": null,
  17264. "editingGroupId": null,
  17265. "editingLinearElement": null,
  17266. "editingTextElement": null,
  17267. "elementsToHighlight": null,
  17268. "errorMessage": null,
  17269. "exportBackground": true,
  17270. "exportEmbedScene": false,
  17271. "exportScale": 1,
  17272. "exportWithDarkMode": false,
  17273. "fileHandle": null,
  17274. "followedBy": Set {},
  17275. "frameRendering": {
  17276. "clip": true,
  17277. "enabled": true,
  17278. "name": true,
  17279. "outline": true,
  17280. },
  17281. "frameToHighlight": null,
  17282. "gridModeEnabled": false,
  17283. "gridSize": 20,
  17284. "gridStep": 5,
  17285. "height": 0,
  17286. "hoveredElementIds": {},
  17287. "isBindingEnabled": true,
  17288. "isCropping": false,
  17289. "isLoading": false,
  17290. "isResizing": false,
  17291. "isRotating": false,
  17292. "lastPointerDownWith": "mouse",
  17293. "multiElement": null,
  17294. "newElement": null,
  17295. "objectsSnapModeEnabled": false,
  17296. "offsetLeft": 0,
  17297. "offsetTop": 0,
  17298. "openDialog": null,
  17299. "openMenu": null,
  17300. "openPopup": null,
  17301. "openSidebar": null,
  17302. "originSnapOffset": null,
  17303. "pasteDialog": {
  17304. "data": null,
  17305. "shown": false,
  17306. },
  17307. "penDetected": false,
  17308. "penMode": false,
  17309. "pendingImageElementId": null,
  17310. "previousSelectedElementIds": {
  17311. "id75": true,
  17312. },
  17313. "resizingElement": null,
  17314. "scrollX": 0,
  17315. "scrollY": 0,
  17316. "searchMatches": [],
  17317. "selectedElementIds": {
  17318. "id75": true,
  17319. "id77": true,
  17320. },
  17321. "selectedElementsAreBeingDragged": false,
  17322. "selectedGroupIds": {},
  17323. "selectionElement": null,
  17324. "shouldCacheIgnoreZoom": false,
  17325. "showHyperlinkPopup": false,
  17326. "showWelcomeScreen": true,
  17327. "snapLines": [],
  17328. "startBoundElement": null,
  17329. "stats": {
  17330. "open": false,
  17331. "panels": 3,
  17332. },
  17333. "suggestedBindings": [],
  17334. "theme": "light",
  17335. "toast": null,
  17336. "userToFollow": null,
  17337. "viewBackgroundColor": "#ffffff",
  17338. "viewModeEnabled": false,
  17339. "width": 0,
  17340. "zenModeEnabled": false,
  17341. "zoom": {
  17342. "value": 1,
  17343. },
  17344. }
  17345. `;
  17346. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind rectangles from arrow on deletion and rebind on undo > [end of test] element 0 1`] = `
  17347. {
  17348. "angle": 0,
  17349. "backgroundColor": "transparent",
  17350. "boundElements": [
  17351. {
  17352. "id": "id80",
  17353. "type": "arrow",
  17354. },
  17355. {
  17356. "id": "id76",
  17357. "type": "text",
  17358. },
  17359. ],
  17360. "customData": undefined,
  17361. "fillStyle": "solid",
  17362. "frameId": null,
  17363. "groupIds": [],
  17364. "height": 100,
  17365. "id": "id75",
  17366. "index": "a0",
  17367. "isDeleted": false,
  17368. "link": null,
  17369. "locked": false,
  17370. "opacity": 100,
  17371. "roughness": 1,
  17372. "roundness": {
  17373. "type": 3,
  17374. },
  17375. "strokeColor": "#1e1e1e",
  17376. "strokeStyle": "solid",
  17377. "strokeWidth": 2,
  17378. "type": "rectangle",
  17379. "updated": 1,
  17380. "version": 8,
  17381. "width": 100,
  17382. "x": -100,
  17383. "y": -50,
  17384. }
  17385. `;
  17386. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind rectangles from arrow on deletion and rebind on undo > [end of test] element 1 1`] = `
  17387. {
  17388. "angle": 0,
  17389. "autoResize": true,
  17390. "backgroundColor": "transparent",
  17391. "boundElements": null,
  17392. "containerId": "id75",
  17393. "customData": undefined,
  17394. "fillStyle": "solid",
  17395. "fontFamily": 5,
  17396. "fontSize": 20,
  17397. "frameId": null,
  17398. "groupIds": [],
  17399. "height": 25,
  17400. "id": "id76",
  17401. "index": "a1",
  17402. "isDeleted": false,
  17403. "lineHeight": "1.25000",
  17404. "link": null,
  17405. "locked": false,
  17406. "opacity": 100,
  17407. "originalText": "ola",
  17408. "roughness": 1,
  17409. "roundness": {
  17410. "type": 3,
  17411. },
  17412. "strokeColor": "#1e1e1e",
  17413. "strokeStyle": "solid",
  17414. "strokeWidth": 2,
  17415. "text": "ola",
  17416. "textAlign": "center",
  17417. "type": "text",
  17418. "updated": 1,
  17419. "version": 8,
  17420. "verticalAlign": "middle",
  17421. "width": 30,
  17422. "x": -65,
  17423. "y": "-12.50000",
  17424. }
  17425. `;
  17426. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind rectangles from arrow on deletion and rebind on undo > [end of test] element 2 1`] = `
  17427. {
  17428. "angle": 0,
  17429. "backgroundColor": "transparent",
  17430. "boundElements": [
  17431. {
  17432. "id": "id80",
  17433. "type": "arrow",
  17434. },
  17435. ],
  17436. "customData": undefined,
  17437. "fillStyle": "solid",
  17438. "frameId": null,
  17439. "groupIds": [],
  17440. "height": 100,
  17441. "id": "id77",
  17442. "index": "a2",
  17443. "isDeleted": false,
  17444. "link": null,
  17445. "locked": false,
  17446. "opacity": 100,
  17447. "roughness": 1,
  17448. "roundness": {
  17449. "type": 3,
  17450. },
  17451. "strokeColor": "#1e1e1e",
  17452. "strokeStyle": "solid",
  17453. "strokeWidth": 2,
  17454. "type": "rectangle",
  17455. "updated": 1,
  17456. "version": 5,
  17457. "width": 100,
  17458. "x": 100,
  17459. "y": -50,
  17460. }
  17461. `;
  17462. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind rectangles from arrow on deletion and rebind on undo > [end of test] element 3 1`] = `
  17463. {
  17464. "angle": 0,
  17465. "backgroundColor": "transparent",
  17466. "boundElements": null,
  17467. "customData": undefined,
  17468. "elbowed": false,
  17469. "endArrowhead": "arrow",
  17470. "endBinding": {
  17471. "elementId": "id77",
  17472. "focus": -0,
  17473. "gap": 1,
  17474. },
  17475. "fillStyle": "solid",
  17476. "frameId": null,
  17477. "groupIds": [],
  17478. "height": 0,
  17479. "id": "id80",
  17480. "index": "a3",
  17481. "isDeleted": false,
  17482. "lastCommittedPoint": null,
  17483. "link": null,
  17484. "locked": false,
  17485. "opacity": 100,
  17486. "points": [
  17487. [
  17488. 0,
  17489. 0,
  17490. ],
  17491. [
  17492. "98.58579",
  17493. 0,
  17494. ],
  17495. ],
  17496. "roughness": 1,
  17497. "roundness": {
  17498. "type": 2,
  17499. },
  17500. "startArrowhead": null,
  17501. "startBinding": {
  17502. "elementId": "id75",
  17503. "focus": 0,
  17504. "gap": 1,
  17505. },
  17506. "strokeColor": "#1e1e1e",
  17507. "strokeStyle": "solid",
  17508. "strokeWidth": 2,
  17509. "type": "arrow",
  17510. "updated": 1,
  17511. "version": 11,
  17512. "width": "98.58579",
  17513. "x": "0.70711",
  17514. "y": 0,
  17515. }
  17516. `;
  17517. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind rectangles from arrow on deletion and rebind on undo > [end of test] history 1`] = `
  17518. History {
  17519. "onHistoryChangedEmitter": Emitter {
  17520. "subscribers": [
  17521. [Function],
  17522. [Function],
  17523. ],
  17524. },
  17525. "redoStack": [
  17526. HistoryEntry {
  17527. "appStateChange": AppStateChange {
  17528. "delta": Delta {
  17529. "deleted": {
  17530. "selectedElementIds": {
  17531. "id75": true,
  17532. "id77": true,
  17533. },
  17534. },
  17535. "inserted": {
  17536. "selectedElementIds": {},
  17537. },
  17538. },
  17539. },
  17540. "elementsChange": ElementsChange {
  17541. "added": Map {},
  17542. "removed": Map {
  17543. "id75" => Delta {
  17544. "deleted": {
  17545. "isDeleted": false,
  17546. },
  17547. "inserted": {
  17548. "isDeleted": true,
  17549. },
  17550. },
  17551. "id76" => Delta {
  17552. "deleted": {
  17553. "isDeleted": false,
  17554. },
  17555. "inserted": {
  17556. "isDeleted": true,
  17557. },
  17558. },
  17559. "id77" => Delta {
  17560. "deleted": {
  17561. "isDeleted": false,
  17562. },
  17563. "inserted": {
  17564. "isDeleted": true,
  17565. },
  17566. },
  17567. },
  17568. "updated": Map {
  17569. "id80" => Delta {
  17570. "deleted": {
  17571. "endBinding": {
  17572. "elementId": "id77",
  17573. "focus": -0,
  17574. "gap": 1,
  17575. },
  17576. "points": [
  17577. [
  17578. 0,
  17579. 0,
  17580. ],
  17581. [
  17582. 100,
  17583. 0,
  17584. ],
  17585. ],
  17586. "startBinding": {
  17587. "elementId": "id75",
  17588. "focus": 0,
  17589. "gap": 1,
  17590. },
  17591. },
  17592. "inserted": {
  17593. "endBinding": null,
  17594. "points": [
  17595. [
  17596. 0,
  17597. 0,
  17598. ],
  17599. [
  17600. 100,
  17601. 0,
  17602. ],
  17603. ],
  17604. "startBinding": null,
  17605. },
  17606. },
  17607. },
  17608. },
  17609. },
  17610. ],
  17611. "undoStack": [
  17612. HistoryEntry {
  17613. "appStateChange": AppStateChange {
  17614. "delta": Delta {
  17615. "deleted": {},
  17616. "inserted": {},
  17617. },
  17618. },
  17619. "elementsChange": ElementsChange {
  17620. "added": Map {},
  17621. "removed": Map {
  17622. "id75" => Delta {
  17623. "deleted": {
  17624. "angle": 0,
  17625. "backgroundColor": "transparent",
  17626. "boundElements": null,
  17627. "customData": undefined,
  17628. "fillStyle": "solid",
  17629. "frameId": null,
  17630. "groupIds": [],
  17631. "height": 100,
  17632. "index": "a0",
  17633. "isDeleted": false,
  17634. "link": null,
  17635. "locked": false,
  17636. "opacity": 100,
  17637. "roughness": 1,
  17638. "roundness": {
  17639. "type": 3,
  17640. },
  17641. "strokeColor": "#1e1e1e",
  17642. "strokeStyle": "solid",
  17643. "strokeWidth": 2,
  17644. "type": "rectangle",
  17645. "width": 100,
  17646. "x": -100,
  17647. "y": -50,
  17648. },
  17649. "inserted": {
  17650. "isDeleted": true,
  17651. },
  17652. },
  17653. "id76" => Delta {
  17654. "deleted": {
  17655. "angle": 0,
  17656. "autoResize": true,
  17657. "backgroundColor": "transparent",
  17658. "boundElements": null,
  17659. "containerId": null,
  17660. "customData": undefined,
  17661. "fillStyle": "solid",
  17662. "fontFamily": 5,
  17663. "fontSize": 20,
  17664. "frameId": null,
  17665. "groupIds": [],
  17666. "height": 100,
  17667. "index": "a1",
  17668. "isDeleted": false,
  17669. "lineHeight": "1.25000",
  17670. "link": null,
  17671. "locked": false,
  17672. "opacity": 100,
  17673. "originalText": "ola",
  17674. "roughness": 1,
  17675. "roundness": {
  17676. "type": 3,
  17677. },
  17678. "strokeColor": "#1e1e1e",
  17679. "strokeStyle": "solid",
  17680. "strokeWidth": 2,
  17681. "text": "ola",
  17682. "textAlign": "left",
  17683. "type": "text",
  17684. "verticalAlign": "top",
  17685. "width": 100,
  17686. "x": -200,
  17687. "y": -200,
  17688. },
  17689. "inserted": {
  17690. "isDeleted": true,
  17691. },
  17692. },
  17693. "id77" => Delta {
  17694. "deleted": {
  17695. "angle": 0,
  17696. "backgroundColor": "transparent",
  17697. "boundElements": null,
  17698. "customData": undefined,
  17699. "fillStyle": "solid",
  17700. "frameId": null,
  17701. "groupIds": [],
  17702. "height": 100,
  17703. "index": "a2",
  17704. "isDeleted": false,
  17705. "link": null,
  17706. "locked": false,
  17707. "opacity": 100,
  17708. "roughness": 1,
  17709. "roundness": {
  17710. "type": 3,
  17711. },
  17712. "strokeColor": "#1e1e1e",
  17713. "strokeStyle": "solid",
  17714. "strokeWidth": 2,
  17715. "type": "rectangle",
  17716. "width": 100,
  17717. "x": 100,
  17718. "y": -50,
  17719. },
  17720. "inserted": {
  17721. "isDeleted": true,
  17722. },
  17723. },
  17724. },
  17725. "updated": Map {},
  17726. },
  17727. },
  17728. HistoryEntry {
  17729. "appStateChange": AppStateChange {
  17730. "delta": Delta {
  17731. "deleted": {
  17732. "selectedElementIds": {
  17733. "id75": true,
  17734. },
  17735. },
  17736. "inserted": {
  17737. "selectedElementIds": {},
  17738. },
  17739. },
  17740. },
  17741. "elementsChange": ElementsChange {
  17742. "added": Map {},
  17743. "removed": Map {},
  17744. "updated": Map {},
  17745. },
  17746. },
  17747. HistoryEntry {
  17748. "appStateChange": AppStateChange {
  17749. "delta": Delta {
  17750. "deleted": {
  17751. "selectedElementIds": {
  17752. "id76": true,
  17753. },
  17754. },
  17755. "inserted": {
  17756. "selectedElementIds": {},
  17757. },
  17758. },
  17759. },
  17760. "elementsChange": ElementsChange {
  17761. "added": Map {},
  17762. "removed": Map {},
  17763. "updated": Map {},
  17764. },
  17765. },
  17766. HistoryEntry {
  17767. "appStateChange": AppStateChange {
  17768. "delta": Delta {
  17769. "deleted": {
  17770. "selectedElementIds": {},
  17771. },
  17772. "inserted": {
  17773. "selectedElementIds": {
  17774. "id76": true,
  17775. },
  17776. },
  17777. },
  17778. },
  17779. "elementsChange": ElementsChange {
  17780. "added": Map {},
  17781. "removed": Map {},
  17782. "updated": Map {
  17783. "id75" => Delta {
  17784. "deleted": {
  17785. "boundElements": [
  17786. {
  17787. "id": "id76",
  17788. "type": "text",
  17789. },
  17790. ],
  17791. },
  17792. "inserted": {
  17793. "boundElements": [],
  17794. },
  17795. },
  17796. "id76" => Delta {
  17797. "deleted": {
  17798. "containerId": "id75",
  17799. "height": 25,
  17800. "textAlign": "center",
  17801. "verticalAlign": "middle",
  17802. "width": 30,
  17803. "x": -65,
  17804. "y": "-12.50000",
  17805. },
  17806. "inserted": {
  17807. "containerId": null,
  17808. "height": 100,
  17809. "textAlign": "left",
  17810. "verticalAlign": "top",
  17811. "width": 100,
  17812. "x": -200,
  17813. "y": -200,
  17814. },
  17815. },
  17816. },
  17817. },
  17818. },
  17819. HistoryEntry {
  17820. "appStateChange": AppStateChange {
  17821. "delta": Delta {
  17822. "deleted": {
  17823. "selectedElementIds": {
  17824. "id80": true,
  17825. },
  17826. "selectedLinearElementId": "id80",
  17827. },
  17828. "inserted": {
  17829. "selectedElementIds": {
  17830. "id75": true,
  17831. },
  17832. "selectedLinearElementId": null,
  17833. },
  17834. },
  17835. },
  17836. "elementsChange": ElementsChange {
  17837. "added": Map {},
  17838. "removed": Map {
  17839. "id80" => Delta {
  17840. "deleted": {
  17841. "angle": 0,
  17842. "backgroundColor": "transparent",
  17843. "boundElements": null,
  17844. "customData": undefined,
  17845. "elbowed": false,
  17846. "endArrowhead": "arrow",
  17847. "endBinding": {
  17848. "elementId": "id77",
  17849. "focus": -0,
  17850. "gap": 1,
  17851. },
  17852. "fillStyle": "solid",
  17853. "frameId": null,
  17854. "groupIds": [],
  17855. "height": 0,
  17856. "index": "a3",
  17857. "isDeleted": false,
  17858. "lastCommittedPoint": null,
  17859. "link": null,
  17860. "locked": false,
  17861. "opacity": 100,
  17862. "points": [
  17863. [
  17864. 0,
  17865. 0,
  17866. ],
  17867. [
  17868. 100,
  17869. 0,
  17870. ],
  17871. ],
  17872. "roughness": 1,
  17873. "roundness": {
  17874. "type": 2,
  17875. },
  17876. "startArrowhead": null,
  17877. "startBinding": {
  17878. "elementId": "id75",
  17879. "focus": 0,
  17880. "gap": 1,
  17881. },
  17882. "strokeColor": "#1e1e1e",
  17883. "strokeStyle": "solid",
  17884. "strokeWidth": 2,
  17885. "type": "arrow",
  17886. "width": 100,
  17887. "x": 0,
  17888. "y": 0,
  17889. },
  17890. "inserted": {
  17891. "isDeleted": true,
  17892. },
  17893. },
  17894. },
  17895. "updated": Map {
  17896. "id75" => Delta {
  17897. "deleted": {
  17898. "boundElements": [
  17899. {
  17900. "id": "id80",
  17901. "type": "arrow",
  17902. },
  17903. ],
  17904. },
  17905. "inserted": {
  17906. "boundElements": [],
  17907. },
  17908. },
  17909. "id77" => Delta {
  17910. "deleted": {
  17911. "boundElements": [
  17912. {
  17913. "id": "id80",
  17914. "type": "arrow",
  17915. },
  17916. ],
  17917. },
  17918. "inserted": {
  17919. "boundElements": [],
  17920. },
  17921. },
  17922. },
  17923. },
  17924. },
  17925. HistoryEntry {
  17926. "appStateChange": AppStateChange {
  17927. "delta": Delta {
  17928. "deleted": {
  17929. "selectedElementIds": {
  17930. "id75": true,
  17931. },
  17932. "selectedLinearElementId": null,
  17933. },
  17934. "inserted": {
  17935. "selectedElementIds": {
  17936. "id80": true,
  17937. },
  17938. "selectedLinearElementId": "id80",
  17939. },
  17940. },
  17941. },
  17942. "elementsChange": ElementsChange {
  17943. "added": Map {},
  17944. "removed": Map {},
  17945. "updated": Map {},
  17946. },
  17947. },
  17948. HistoryEntry {
  17949. "appStateChange": AppStateChange {
  17950. "delta": Delta {
  17951. "deleted": {
  17952. "selectedElementIds": {
  17953. "id77": true,
  17954. },
  17955. },
  17956. "inserted": {
  17957. "selectedElementIds": {},
  17958. },
  17959. },
  17960. },
  17961. "elementsChange": ElementsChange {
  17962. "added": Map {},
  17963. "removed": Map {},
  17964. "updated": Map {},
  17965. },
  17966. },
  17967. ],
  17968. }
  17969. `;
  17970. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind rectangles from arrow on deletion and rebind on undo > [end of test] number of elements 1`] = `4`;
  17971. exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind rectangles from arrow on deletion and rebind on undo > [end of test] number of renders 1`] = `15`;
  17972. exports[`history > singleplayer undo/redo > should support changes in elements' order > [end of test] appState 1`] = `
  17973. {
  17974. "activeEmbeddable": null,
  17975. "activeTool": {
  17976. "customType": null,
  17977. "fromSelection": false,
  17978. "lastActiveTool": null,
  17979. "locked": false,
  17980. "type": "selection",
  17981. },
  17982. "collaborators": Map {},
  17983. "contextMenu": null,
  17984. "croppingElementId": null,
  17985. "currentChartType": "bar",
  17986. "currentHoveredFontFamily": null,
  17987. "currentItemArrowType": "round",
  17988. "currentItemBackgroundColor": "transparent",
  17989. "currentItemEndArrowhead": "arrow",
  17990. "currentItemFillStyle": "solid",
  17991. "currentItemFontFamily": 5,
  17992. "currentItemFontSize": 20,
  17993. "currentItemOpacity": 100,
  17994. "currentItemRoughness": 1,
  17995. "currentItemRoundness": "round",
  17996. "currentItemStartArrowhead": null,
  17997. "currentItemStrokeColor": "#1e1e1e",
  17998. "currentItemStrokeStyle": "solid",
  17999. "currentItemStrokeWidth": 2,
  18000. "currentItemTextAlign": "left",
  18001. "cursorButton": "up",
  18002. "defaultSidebarDockedPreference": false,
  18003. "editingFrame": null,
  18004. "editingGroupId": null,
  18005. "editingLinearElement": null,
  18006. "editingTextElement": null,
  18007. "elementsToHighlight": null,
  18008. "errorMessage": null,
  18009. "exportBackground": true,
  18010. "exportEmbedScene": false,
  18011. "exportScale": 1,
  18012. "exportWithDarkMode": false,
  18013. "fileHandle": null,
  18014. "followedBy": Set {},
  18015. "frameRendering": {
  18016. "clip": true,
  18017. "enabled": true,
  18018. "name": true,
  18019. "outline": true,
  18020. },
  18021. "frameToHighlight": null,
  18022. "gridModeEnabled": false,
  18023. "gridSize": 20,
  18024. "gridStep": 5,
  18025. "height": 0,
  18026. "hoveredElementIds": {},
  18027. "isBindingEnabled": true,
  18028. "isCropping": false,
  18029. "isLoading": false,
  18030. "isResizing": false,
  18031. "isRotating": false,
  18032. "lastPointerDownWith": "mouse",
  18033. "multiElement": null,
  18034. "newElement": null,
  18035. "objectsSnapModeEnabled": false,
  18036. "offsetLeft": 0,
  18037. "offsetTop": 0,
  18038. "openDialog": null,
  18039. "openMenu": null,
  18040. "openPopup": null,
  18041. "openSidebar": null,
  18042. "originSnapOffset": null,
  18043. "pasteDialog": {
  18044. "data": null,
  18045. "shown": false,
  18046. },
  18047. "penDetected": false,
  18048. "penMode": false,
  18049. "pendingImageElementId": null,
  18050. "previousSelectedElementIds": {
  18051. "id45": true,
  18052. },
  18053. "resizingElement": null,
  18054. "scrollX": 0,
  18055. "scrollY": 0,
  18056. "searchMatches": [],
  18057. "selectedElementIds": {
  18058. "id45": true,
  18059. "id47": true,
  18060. },
  18061. "selectedElementsAreBeingDragged": false,
  18062. "selectedGroupIds": {},
  18063. "selectionElement": null,
  18064. "shouldCacheIgnoreZoom": false,
  18065. "showHyperlinkPopup": false,
  18066. "showWelcomeScreen": true,
  18067. "snapLines": [],
  18068. "startBoundElement": null,
  18069. "stats": {
  18070. "open": false,
  18071. "panels": 3,
  18072. },
  18073. "suggestedBindings": [],
  18074. "theme": "light",
  18075. "toast": null,
  18076. "userToFollow": null,
  18077. "viewBackgroundColor": "#ffffff",
  18078. "viewModeEnabled": false,
  18079. "width": 0,
  18080. "zenModeEnabled": false,
  18081. "zoom": {
  18082. "value": 1,
  18083. },
  18084. }
  18085. `;
  18086. exports[`history > singleplayer undo/redo > should support changes in elements' order > [end of test] element 0 1`] = `
  18087. {
  18088. "angle": 0,
  18089. "backgroundColor": "transparent",
  18090. "boundElements": null,
  18091. "customData": undefined,
  18092. "fillStyle": "solid",
  18093. "frameId": null,
  18094. "groupIds": [],
  18095. "height": 10,
  18096. "id": "id46",
  18097. "index": "a1",
  18098. "isDeleted": false,
  18099. "link": null,
  18100. "locked": false,
  18101. "opacity": 100,
  18102. "roughness": 1,
  18103. "roundness": {
  18104. "type": 3,
  18105. },
  18106. "strokeColor": "#1e1e1e",
  18107. "strokeStyle": "solid",
  18108. "strokeWidth": 2,
  18109. "type": "rectangle",
  18110. "updated": 1,
  18111. "version": 3,
  18112. "width": 10,
  18113. "x": 20,
  18114. "y": 20,
  18115. }
  18116. `;
  18117. exports[`history > singleplayer undo/redo > should support changes in elements' order > [end of test] element 1 1`] = `
  18118. {
  18119. "angle": 0,
  18120. "backgroundColor": "transparent",
  18121. "boundElements": null,
  18122. "customData": undefined,
  18123. "fillStyle": "solid",
  18124. "frameId": null,
  18125. "groupIds": [],
  18126. "height": 10,
  18127. "id": "id45",
  18128. "index": "a2",
  18129. "isDeleted": false,
  18130. "link": null,
  18131. "locked": false,
  18132. "opacity": 100,
  18133. "roughness": 1,
  18134. "roundness": {
  18135. "type": 3,
  18136. },
  18137. "strokeColor": "#1e1e1e",
  18138. "strokeStyle": "solid",
  18139. "strokeWidth": 2,
  18140. "type": "rectangle",
  18141. "updated": 1,
  18142. "version": 7,
  18143. "width": 10,
  18144. "x": 10,
  18145. "y": 0,
  18146. }
  18147. `;
  18148. exports[`history > singleplayer undo/redo > should support changes in elements' order > [end of test] element 2 1`] = `
  18149. {
  18150. "angle": 0,
  18151. "backgroundColor": "transparent",
  18152. "boundElements": null,
  18153. "customData": undefined,
  18154. "fillStyle": "solid",
  18155. "frameId": null,
  18156. "groupIds": [],
  18157. "height": 10,
  18158. "id": "id47",
  18159. "index": "a3",
  18160. "isDeleted": false,
  18161. "link": null,
  18162. "locked": false,
  18163. "opacity": 100,
  18164. "roughness": 1,
  18165. "roundness": {
  18166. "type": 3,
  18167. },
  18168. "strokeColor": "#1e1e1e",
  18169. "strokeStyle": "solid",
  18170. "strokeWidth": 2,
  18171. "type": "rectangle",
  18172. "updated": 1,
  18173. "version": 10,
  18174. "width": 10,
  18175. "x": 40,
  18176. "y": 40,
  18177. }
  18178. `;
  18179. exports[`history > singleplayer undo/redo > should support changes in elements' order > [end of test] history 1`] = `
  18180. History {
  18181. "onHistoryChangedEmitter": Emitter {
  18182. "subscribers": [
  18183. [Function],
  18184. [Function],
  18185. ],
  18186. },
  18187. "redoStack": [],
  18188. "undoStack": [
  18189. HistoryEntry {
  18190. "appStateChange": AppStateChange {
  18191. "delta": Delta {
  18192. "deleted": {
  18193. "selectedElementIds": {
  18194. "id45": true,
  18195. },
  18196. },
  18197. "inserted": {
  18198. "selectedElementIds": {},
  18199. },
  18200. },
  18201. },
  18202. "elementsChange": ElementsChange {
  18203. "added": Map {},
  18204. "removed": Map {
  18205. "id45" => Delta {
  18206. "deleted": {
  18207. "angle": 0,
  18208. "backgroundColor": "transparent",
  18209. "boundElements": null,
  18210. "customData": undefined,
  18211. "fillStyle": "solid",
  18212. "frameId": null,
  18213. "groupIds": [],
  18214. "height": 10,
  18215. "index": "a0",
  18216. "isDeleted": false,
  18217. "link": null,
  18218. "locked": false,
  18219. "opacity": 100,
  18220. "roughness": 1,
  18221. "roundness": {
  18222. "type": 3,
  18223. },
  18224. "strokeColor": "#1e1e1e",
  18225. "strokeStyle": "solid",
  18226. "strokeWidth": 2,
  18227. "type": "rectangle",
  18228. "width": 10,
  18229. "x": 10,
  18230. "y": 0,
  18231. },
  18232. "inserted": {
  18233. "isDeleted": true,
  18234. },
  18235. },
  18236. },
  18237. "updated": Map {},
  18238. },
  18239. },
  18240. HistoryEntry {
  18241. "appStateChange": AppStateChange {
  18242. "delta": Delta {
  18243. "deleted": {
  18244. "selectedElementIds": {
  18245. "id46": true,
  18246. },
  18247. },
  18248. "inserted": {
  18249. "selectedElementIds": {
  18250. "id45": true,
  18251. },
  18252. },
  18253. },
  18254. },
  18255. "elementsChange": ElementsChange {
  18256. "added": Map {},
  18257. "removed": Map {
  18258. "id46" => Delta {
  18259. "deleted": {
  18260. "angle": 0,
  18261. "backgroundColor": "transparent",
  18262. "boundElements": null,
  18263. "customData": undefined,
  18264. "fillStyle": "solid",
  18265. "frameId": null,
  18266. "groupIds": [],
  18267. "height": 10,
  18268. "index": "a1",
  18269. "isDeleted": false,
  18270. "link": null,
  18271. "locked": false,
  18272. "opacity": 100,
  18273. "roughness": 1,
  18274. "roundness": {
  18275. "type": 3,
  18276. },
  18277. "strokeColor": "#1e1e1e",
  18278. "strokeStyle": "solid",
  18279. "strokeWidth": 2,
  18280. "type": "rectangle",
  18281. "width": 10,
  18282. "x": 20,
  18283. "y": 20,
  18284. },
  18285. "inserted": {
  18286. "isDeleted": true,
  18287. },
  18288. },
  18289. },
  18290. "updated": Map {},
  18291. },
  18292. },
  18293. HistoryEntry {
  18294. "appStateChange": AppStateChange {
  18295. "delta": Delta {
  18296. "deleted": {
  18297. "selectedElementIds": {
  18298. "id47": true,
  18299. },
  18300. },
  18301. "inserted": {
  18302. "selectedElementIds": {
  18303. "id46": true,
  18304. },
  18305. },
  18306. },
  18307. },
  18308. "elementsChange": ElementsChange {
  18309. "added": Map {},
  18310. "removed": Map {
  18311. "id47" => Delta {
  18312. "deleted": {
  18313. "angle": 0,
  18314. "backgroundColor": "transparent",
  18315. "boundElements": null,
  18316. "customData": undefined,
  18317. "fillStyle": "solid",
  18318. "frameId": null,
  18319. "groupIds": [],
  18320. "height": 10,
  18321. "index": "a2",
  18322. "isDeleted": false,
  18323. "link": null,
  18324. "locked": false,
  18325. "opacity": 100,
  18326. "roughness": 1,
  18327. "roundness": {
  18328. "type": 3,
  18329. },
  18330. "strokeColor": "#1e1e1e",
  18331. "strokeStyle": "solid",
  18332. "strokeWidth": 2,
  18333. "type": "rectangle",
  18334. "width": 10,
  18335. "x": 40,
  18336. "y": 40,
  18337. },
  18338. "inserted": {
  18339. "isDeleted": true,
  18340. },
  18341. },
  18342. },
  18343. "updated": Map {},
  18344. },
  18345. },
  18346. HistoryEntry {
  18347. "appStateChange": AppStateChange {
  18348. "delta": Delta {
  18349. "deleted": {},
  18350. "inserted": {},
  18351. },
  18352. },
  18353. "elementsChange": ElementsChange {
  18354. "added": Map {},
  18355. "removed": Map {},
  18356. "updated": Map {
  18357. "id47" => Delta {
  18358. "deleted": {
  18359. "index": "a0V",
  18360. },
  18361. "inserted": {
  18362. "index": "a2",
  18363. },
  18364. },
  18365. },
  18366. },
  18367. },
  18368. HistoryEntry {
  18369. "appStateChange": AppStateChange {
  18370. "delta": Delta {
  18371. "deleted": {
  18372. "selectedElementIds": {
  18373. "id45": true,
  18374. },
  18375. },
  18376. "inserted": {
  18377. "selectedElementIds": {
  18378. "id47": true,
  18379. },
  18380. },
  18381. },
  18382. },
  18383. "elementsChange": ElementsChange {
  18384. "added": Map {},
  18385. "removed": Map {},
  18386. "updated": Map {},
  18387. },
  18388. },
  18389. HistoryEntry {
  18390. "appStateChange": AppStateChange {
  18391. "delta": Delta {
  18392. "deleted": {
  18393. "selectedElementIds": {
  18394. "id47": true,
  18395. },
  18396. },
  18397. "inserted": {
  18398. "selectedElementIds": {},
  18399. },
  18400. },
  18401. },
  18402. "elementsChange": ElementsChange {
  18403. "added": Map {},
  18404. "removed": Map {},
  18405. "updated": Map {},
  18406. },
  18407. },
  18408. HistoryEntry {
  18409. "appStateChange": AppStateChange {
  18410. "delta": Delta {
  18411. "deleted": {},
  18412. "inserted": {},
  18413. },
  18414. },
  18415. "elementsChange": ElementsChange {
  18416. "added": Map {},
  18417. "removed": Map {},
  18418. "updated": Map {
  18419. "id45" => Delta {
  18420. "deleted": {
  18421. "index": "a2",
  18422. },
  18423. "inserted": {
  18424. "index": "Zz",
  18425. },
  18426. },
  18427. "id47" => Delta {
  18428. "deleted": {
  18429. "index": "a3",
  18430. },
  18431. "inserted": {
  18432. "index": "a0",
  18433. },
  18434. },
  18435. },
  18436. },
  18437. },
  18438. ],
  18439. }
  18440. `;
  18441. exports[`history > singleplayer undo/redo > should support changes in elements' order > [end of test] number of elements 1`] = `3`;
  18442. exports[`history > singleplayer undo/redo > should support changes in elements' order > [end of test] number of renders 1`] = `20`;
  18443. exports[`history > singleplayer undo/redo > should support duplication of groups, appstate group selection and editing group > [end of test] appState 1`] = `
  18444. {
  18445. "activeEmbeddable": null,
  18446. "activeTool": {
  18447. "customType": null,
  18448. "fromSelection": false,
  18449. "lastActiveTool": null,
  18450. "locked": false,
  18451. "type": "selection",
  18452. },
  18453. "collaborators": Map {},
  18454. "contextMenu": null,
  18455. "croppingElementId": null,
  18456. "currentChartType": "bar",
  18457. "currentHoveredFontFamily": null,
  18458. "currentItemArrowType": "round",
  18459. "currentItemBackgroundColor": "transparent",
  18460. "currentItemEndArrowhead": "arrow",
  18461. "currentItemFillStyle": "solid",
  18462. "currentItemFontFamily": 5,
  18463. "currentItemFontSize": 20,
  18464. "currentItemOpacity": 100,
  18465. "currentItemRoughness": 1,
  18466. "currentItemRoundness": "round",
  18467. "currentItemStartArrowhead": null,
  18468. "currentItemStrokeColor": "#1e1e1e",
  18469. "currentItemStrokeStyle": "solid",
  18470. "currentItemStrokeWidth": 2,
  18471. "currentItemTextAlign": "left",
  18472. "cursorButton": "up",
  18473. "defaultSidebarDockedPreference": false,
  18474. "editingFrame": null,
  18475. "editingGroupId": null,
  18476. "editingLinearElement": null,
  18477. "editingTextElement": null,
  18478. "elementsToHighlight": null,
  18479. "errorMessage": null,
  18480. "exportBackground": true,
  18481. "exportEmbedScene": false,
  18482. "exportScale": 1,
  18483. "exportWithDarkMode": false,
  18484. "fileHandle": null,
  18485. "followedBy": Set {},
  18486. "frameRendering": {
  18487. "clip": true,
  18488. "enabled": true,
  18489. "name": true,
  18490. "outline": true,
  18491. },
  18492. "frameToHighlight": null,
  18493. "gridModeEnabled": false,
  18494. "gridSize": 20,
  18495. "gridStep": 5,
  18496. "height": 0,
  18497. "hoveredElementIds": {},
  18498. "isBindingEnabled": true,
  18499. "isCropping": false,
  18500. "isLoading": false,
  18501. "isResizing": false,
  18502. "isRotating": false,
  18503. "lastPointerDownWith": "mouse",
  18504. "multiElement": null,
  18505. "newElement": null,
  18506. "objectsSnapModeEnabled": false,
  18507. "offsetLeft": 0,
  18508. "offsetTop": 0,
  18509. "openDialog": null,
  18510. "openMenu": null,
  18511. "openPopup": null,
  18512. "openSidebar": null,
  18513. "originSnapOffset": null,
  18514. "pasteDialog": {
  18515. "data": null,
  18516. "shown": false,
  18517. },
  18518. "penDetected": false,
  18519. "penMode": false,
  18520. "pendingImageElementId": null,
  18521. "previousSelectedElementIds": {
  18522. "id36": true,
  18523. },
  18524. "resizingElement": null,
  18525. "scrollX": 0,
  18526. "scrollY": 0,
  18527. "searchMatches": [],
  18528. "selectedElementIds": {
  18529. "id42": true,
  18530. "id44": true,
  18531. },
  18532. "selectedElementsAreBeingDragged": false,
  18533. "selectedGroupIds": {
  18534. "id43": true,
  18535. },
  18536. "selectionElement": null,
  18537. "shouldCacheIgnoreZoom": false,
  18538. "showHyperlinkPopup": false,
  18539. "showWelcomeScreen": true,
  18540. "snapLines": [],
  18541. "startBoundElement": null,
  18542. "stats": {
  18543. "open": false,
  18544. "panels": 3,
  18545. },
  18546. "suggestedBindings": [],
  18547. "theme": "light",
  18548. "toast": null,
  18549. "userToFollow": null,
  18550. "viewBackgroundColor": "#ffffff",
  18551. "viewModeEnabled": false,
  18552. "width": 0,
  18553. "zenModeEnabled": false,
  18554. "zoom": {
  18555. "value": 1,
  18556. },
  18557. }
  18558. `;
  18559. exports[`history > singleplayer undo/redo > should support duplication of groups, appstate group selection and editing group > [end of test] element 0 1`] = `
  18560. {
  18561. "angle": 0,
  18562. "backgroundColor": "transparent",
  18563. "boundElements": null,
  18564. "customData": undefined,
  18565. "fillStyle": "solid",
  18566. "frameId": null,
  18567. "groupIds": [
  18568. "A",
  18569. ],
  18570. "height": 100,
  18571. "id": "id35",
  18572. "index": "a0",
  18573. "isDeleted": false,
  18574. "link": null,
  18575. "locked": false,
  18576. "opacity": 100,
  18577. "roughness": 1,
  18578. "roundness": {
  18579. "type": 3,
  18580. },
  18581. "strokeColor": "#1e1e1e",
  18582. "strokeStyle": "solid",
  18583. "strokeWidth": 2,
  18584. "type": "rectangle",
  18585. "updated": 1,
  18586. "version": 2,
  18587. "width": 100,
  18588. "x": 0,
  18589. "y": 0,
  18590. }
  18591. `;
  18592. exports[`history > singleplayer undo/redo > should support duplication of groups, appstate group selection and editing group > [end of test] element 1 1`] = `
  18593. {
  18594. "angle": 0,
  18595. "backgroundColor": "transparent",
  18596. "boundElements": null,
  18597. "customData": undefined,
  18598. "fillStyle": "solid",
  18599. "frameId": null,
  18600. "groupIds": [
  18601. "A",
  18602. ],
  18603. "height": 100,
  18604. "id": "id36",
  18605. "index": "a1",
  18606. "isDeleted": false,
  18607. "link": null,
  18608. "locked": false,
  18609. "opacity": 100,
  18610. "roughness": 1,
  18611. "roundness": {
  18612. "type": 3,
  18613. },
  18614. "strokeColor": "#1e1e1e",
  18615. "strokeStyle": "solid",
  18616. "strokeWidth": 2,
  18617. "type": "rectangle",
  18618. "updated": 1,
  18619. "version": 2,
  18620. "width": 100,
  18621. "x": 100,
  18622. "y": 100,
  18623. }
  18624. `;
  18625. exports[`history > singleplayer undo/redo > should support duplication of groups, appstate group selection and editing group > [end of test] element 2 1`] = `
  18626. {
  18627. "angle": 0,
  18628. "backgroundColor": "transparent",
  18629. "boundElements": null,
  18630. "customData": undefined,
  18631. "fillStyle": "solid",
  18632. "frameId": null,
  18633. "groupIds": [
  18634. "id43",
  18635. ],
  18636. "height": 100,
  18637. "id": "id42",
  18638. "index": "a1G",
  18639. "isDeleted": false,
  18640. "link": null,
  18641. "locked": false,
  18642. "opacity": 100,
  18643. "roughness": 1,
  18644. "roundness": {
  18645. "type": 3,
  18646. },
  18647. "strokeColor": "#1e1e1e",
  18648. "strokeStyle": "solid",
  18649. "strokeWidth": 2,
  18650. "type": "rectangle",
  18651. "updated": 1,
  18652. "version": 4,
  18653. "width": 100,
  18654. "x": 10,
  18655. "y": 10,
  18656. }
  18657. `;
  18658. exports[`history > singleplayer undo/redo > should support duplication of groups, appstate group selection and editing group > [end of test] element 3 1`] = `
  18659. {
  18660. "angle": 0,
  18661. "backgroundColor": "transparent",
  18662. "boundElements": null,
  18663. "customData": undefined,
  18664. "fillStyle": "solid",
  18665. "frameId": null,
  18666. "groupIds": [
  18667. "id43",
  18668. ],
  18669. "height": 100,
  18670. "id": "id44",
  18671. "index": "a1V",
  18672. "isDeleted": false,
  18673. "link": null,
  18674. "locked": false,
  18675. "opacity": 100,
  18676. "roughness": 1,
  18677. "roundness": {
  18678. "type": 3,
  18679. },
  18680. "strokeColor": "#1e1e1e",
  18681. "strokeStyle": "solid",
  18682. "strokeWidth": 2,
  18683. "type": "rectangle",
  18684. "updated": 1,
  18685. "version": 4,
  18686. "width": 100,
  18687. "x": 110,
  18688. "y": 110,
  18689. }
  18690. `;
  18691. exports[`history > singleplayer undo/redo > should support duplication of groups, appstate group selection and editing group > [end of test] element 4 1`] = `
  18692. {
  18693. "angle": 0,
  18694. "backgroundColor": "transparent",
  18695. "boundElements": null,
  18696. "customData": undefined,
  18697. "fillStyle": "solid",
  18698. "frameId": null,
  18699. "groupIds": [
  18700. "id40",
  18701. ],
  18702. "height": 100,
  18703. "id": "id39",
  18704. "index": "a2",
  18705. "isDeleted": true,
  18706. "link": null,
  18707. "locked": false,
  18708. "opacity": 100,
  18709. "roughness": 1,
  18710. "roundness": {
  18711. "type": 3,
  18712. },
  18713. "strokeColor": "#1e1e1e",
  18714. "strokeStyle": "solid",
  18715. "strokeWidth": 2,
  18716. "type": "rectangle",
  18717. "updated": 1,
  18718. "version": 7,
  18719. "width": 100,
  18720. "x": 10,
  18721. "y": 10,
  18722. }
  18723. `;
  18724. exports[`history > singleplayer undo/redo > should support duplication of groups, appstate group selection and editing group > [end of test] element 5 1`] = `
  18725. {
  18726. "angle": 0,
  18727. "backgroundColor": "transparent",
  18728. "boundElements": null,
  18729. "customData": undefined,
  18730. "fillStyle": "solid",
  18731. "frameId": null,
  18732. "groupIds": [
  18733. "id40",
  18734. ],
  18735. "height": 100,
  18736. "id": "id41",
  18737. "index": "a3",
  18738. "isDeleted": true,
  18739. "link": null,
  18740. "locked": false,
  18741. "opacity": 100,
  18742. "roughness": 1,
  18743. "roundness": {
  18744. "type": 3,
  18745. },
  18746. "strokeColor": "#1e1e1e",
  18747. "strokeStyle": "solid",
  18748. "strokeWidth": 2,
  18749. "type": "rectangle",
  18750. "updated": 1,
  18751. "version": 7,
  18752. "width": 100,
  18753. "x": 110,
  18754. "y": 110,
  18755. }
  18756. `;
  18757. exports[`history > singleplayer undo/redo > should support duplication of groups, appstate group selection and editing group > [end of test] history 1`] = `
  18758. History {
  18759. "onHistoryChangedEmitter": Emitter {
  18760. "subscribers": [
  18761. [Function],
  18762. [Function],
  18763. ],
  18764. },
  18765. "redoStack": [],
  18766. "undoStack": [
  18767. HistoryEntry {
  18768. "appStateChange": AppStateChange {
  18769. "delta": Delta {
  18770. "deleted": {
  18771. "selectedElementIds": {
  18772. "id35": true,
  18773. "id36": true,
  18774. },
  18775. "selectedGroupIds": {
  18776. "A": true,
  18777. },
  18778. },
  18779. "inserted": {
  18780. "selectedElementIds": {},
  18781. "selectedGroupIds": {},
  18782. },
  18783. },
  18784. },
  18785. "elementsChange": ElementsChange {
  18786. "added": Map {},
  18787. "removed": Map {
  18788. "id35" => Delta {
  18789. "deleted": {
  18790. "angle": 0,
  18791. "backgroundColor": "transparent",
  18792. "boundElements": null,
  18793. "customData": undefined,
  18794. "fillStyle": "solid",
  18795. "frameId": null,
  18796. "groupIds": [
  18797. "A",
  18798. ],
  18799. "height": 100,
  18800. "index": "a0",
  18801. "isDeleted": false,
  18802. "link": null,
  18803. "locked": false,
  18804. "opacity": 100,
  18805. "roughness": 1,
  18806. "roundness": {
  18807. "type": 3,
  18808. },
  18809. "strokeColor": "#1e1e1e",
  18810. "strokeStyle": "solid",
  18811. "strokeWidth": 2,
  18812. "type": "rectangle",
  18813. "width": 100,
  18814. "x": 0,
  18815. "y": 0,
  18816. },
  18817. "inserted": {
  18818. "isDeleted": true,
  18819. },
  18820. },
  18821. "id36" => Delta {
  18822. "deleted": {
  18823. "angle": 0,
  18824. "backgroundColor": "transparent",
  18825. "boundElements": null,
  18826. "customData": undefined,
  18827. "fillStyle": "solid",
  18828. "frameId": null,
  18829. "groupIds": [
  18830. "A",
  18831. ],
  18832. "height": 100,
  18833. "index": "a1",
  18834. "isDeleted": false,
  18835. "link": null,
  18836. "locked": false,
  18837. "opacity": 100,
  18838. "roughness": 1,
  18839. "roundness": {
  18840. "type": 3,
  18841. },
  18842. "strokeColor": "#1e1e1e",
  18843. "strokeStyle": "solid",
  18844. "strokeWidth": 2,
  18845. "type": "rectangle",
  18846. "width": 100,
  18847. "x": 100,
  18848. "y": 100,
  18849. },
  18850. "inserted": {
  18851. "isDeleted": true,
  18852. },
  18853. },
  18854. },
  18855. "updated": Map {},
  18856. },
  18857. },
  18858. HistoryEntry {
  18859. "appStateChange": AppStateChange {
  18860. "delta": Delta {
  18861. "deleted": {
  18862. "selectedElementIds": {
  18863. "id42": true,
  18864. "id44": true,
  18865. },
  18866. "selectedGroupIds": {
  18867. "id43": true,
  18868. },
  18869. },
  18870. "inserted": {
  18871. "selectedElementIds": {
  18872. "id35": true,
  18873. "id36": true,
  18874. },
  18875. "selectedGroupIds": {
  18876. "A": true,
  18877. },
  18878. },
  18879. },
  18880. },
  18881. "elementsChange": ElementsChange {
  18882. "added": Map {},
  18883. "removed": Map {
  18884. "id42" => Delta {
  18885. "deleted": {
  18886. "angle": 0,
  18887. "backgroundColor": "transparent",
  18888. "boundElements": null,
  18889. "customData": undefined,
  18890. "fillStyle": "solid",
  18891. "frameId": null,
  18892. "groupIds": [
  18893. "id43",
  18894. ],
  18895. "height": 100,
  18896. "index": "a1G",
  18897. "isDeleted": false,
  18898. "link": null,
  18899. "locked": false,
  18900. "opacity": 100,
  18901. "roughness": 1,
  18902. "roundness": {
  18903. "type": 3,
  18904. },
  18905. "strokeColor": "#1e1e1e",
  18906. "strokeStyle": "solid",
  18907. "strokeWidth": 2,
  18908. "type": "rectangle",
  18909. "width": 100,
  18910. "x": 10,
  18911. "y": 10,
  18912. },
  18913. "inserted": {
  18914. "isDeleted": true,
  18915. },
  18916. },
  18917. "id44" => Delta {
  18918. "deleted": {
  18919. "angle": 0,
  18920. "backgroundColor": "transparent",
  18921. "boundElements": null,
  18922. "customData": undefined,
  18923. "fillStyle": "solid",
  18924. "frameId": null,
  18925. "groupIds": [
  18926. "id43",
  18927. ],
  18928. "height": 100,
  18929. "index": "a1V",
  18930. "isDeleted": false,
  18931. "link": null,
  18932. "locked": false,
  18933. "opacity": 100,
  18934. "roughness": 1,
  18935. "roundness": {
  18936. "type": 3,
  18937. },
  18938. "strokeColor": "#1e1e1e",
  18939. "strokeStyle": "solid",
  18940. "strokeWidth": 2,
  18941. "type": "rectangle",
  18942. "width": 100,
  18943. "x": 110,
  18944. "y": 110,
  18945. },
  18946. "inserted": {
  18947. "isDeleted": true,
  18948. },
  18949. },
  18950. },
  18951. "updated": Map {},
  18952. },
  18953. },
  18954. ],
  18955. }
  18956. `;
  18957. exports[`history > singleplayer undo/redo > should support duplication of groups, appstate group selection and editing group > [end of test] number of elements 1`] = `6`;
  18958. exports[`history > singleplayer undo/redo > should support duplication of groups, appstate group selection and editing group > [end of test] number of renders 1`] = `18`;
  18959. exports[`history > singleplayer undo/redo > should support element creation, deletion and appstate element selection change > [end of test] appState 1`] = `
  18960. {
  18961. "activeEmbeddable": null,
  18962. "activeTool": {
  18963. "customType": null,
  18964. "fromSelection": false,
  18965. "lastActiveTool": null,
  18966. "locked": false,
  18967. "type": "selection",
  18968. },
  18969. "collaborators": Map {},
  18970. "contextMenu": null,
  18971. "croppingElementId": null,
  18972. "currentChartType": "bar",
  18973. "currentHoveredFontFamily": null,
  18974. "currentItemArrowType": "round",
  18975. "currentItemBackgroundColor": "transparent",
  18976. "currentItemEndArrowhead": "arrow",
  18977. "currentItemFillStyle": "solid",
  18978. "currentItemFontFamily": 5,
  18979. "currentItemFontSize": 20,
  18980. "currentItemOpacity": 100,
  18981. "currentItemRoughness": 1,
  18982. "currentItemRoundness": "round",
  18983. "currentItemStartArrowhead": null,
  18984. "currentItemStrokeColor": "#1e1e1e",
  18985. "currentItemStrokeStyle": "solid",
  18986. "currentItemStrokeWidth": 2,
  18987. "currentItemTextAlign": "left",
  18988. "cursorButton": "up",
  18989. "defaultSidebarDockedPreference": false,
  18990. "editingFrame": null,
  18991. "editingGroupId": null,
  18992. "editingLinearElement": null,
  18993. "editingTextElement": null,
  18994. "elementsToHighlight": null,
  18995. "errorMessage": null,
  18996. "exportBackground": true,
  18997. "exportEmbedScene": false,
  18998. "exportScale": 1,
  18999. "exportWithDarkMode": false,
  19000. "fileHandle": null,
  19001. "followedBy": Set {},
  19002. "frameRendering": {
  19003. "clip": true,
  19004. "enabled": true,
  19005. "name": true,
  19006. "outline": true,
  19007. },
  19008. "frameToHighlight": null,
  19009. "gridModeEnabled": false,
  19010. "gridSize": 20,
  19011. "gridStep": 5,
  19012. "height": 0,
  19013. "hoveredElementIds": {},
  19014. "isBindingEnabled": true,
  19015. "isCropping": false,
  19016. "isLoading": false,
  19017. "isResizing": false,
  19018. "isRotating": false,
  19019. "lastPointerDownWith": "mouse",
  19020. "multiElement": null,
  19021. "newElement": null,
  19022. "objectsSnapModeEnabled": false,
  19023. "offsetLeft": 0,
  19024. "offsetTop": 0,
  19025. "openDialog": null,
  19026. "openMenu": null,
  19027. "openPopup": null,
  19028. "openSidebar": null,
  19029. "originSnapOffset": null,
  19030. "pasteDialog": {
  19031. "data": null,
  19032. "shown": false,
  19033. },
  19034. "penDetected": false,
  19035. "penMode": false,
  19036. "pendingImageElementId": null,
  19037. "previousSelectedElementIds": {
  19038. "id23": true,
  19039. },
  19040. "resizingElement": null,
  19041. "scrollX": 0,
  19042. "scrollY": 0,
  19043. "searchMatches": [],
  19044. "selectedElementIds": {},
  19045. "selectedElementsAreBeingDragged": false,
  19046. "selectedGroupIds": {},
  19047. "selectionElement": null,
  19048. "shouldCacheIgnoreZoom": false,
  19049. "showHyperlinkPopup": false,
  19050. "showWelcomeScreen": true,
  19051. "snapLines": [],
  19052. "startBoundElement": null,
  19053. "stats": {
  19054. "open": false,
  19055. "panels": 3,
  19056. },
  19057. "suggestedBindings": [],
  19058. "theme": "light",
  19059. "toast": null,
  19060. "userToFollow": null,
  19061. "viewBackgroundColor": "#ffffff",
  19062. "viewModeEnabled": false,
  19063. "width": 0,
  19064. "zenModeEnabled": false,
  19065. "zoom": {
  19066. "value": 1,
  19067. },
  19068. }
  19069. `;
  19070. exports[`history > singleplayer undo/redo > should support element creation, deletion and appstate element selection change > [end of test] element 0 1`] = `
  19071. {
  19072. "angle": 0,
  19073. "backgroundColor": "transparent",
  19074. "boundElements": null,
  19075. "customData": undefined,
  19076. "fillStyle": "solid",
  19077. "frameId": null,
  19078. "groupIds": [],
  19079. "height": 10,
  19080. "id": "id22",
  19081. "index": "a0",
  19082. "isDeleted": false,
  19083. "link": null,
  19084. "locked": false,
  19085. "opacity": 100,
  19086. "roughness": 1,
  19087. "roundness": {
  19088. "type": 3,
  19089. },
  19090. "strokeColor": "#1e1e1e",
  19091. "strokeStyle": "solid",
  19092. "strokeWidth": 2,
  19093. "type": "rectangle",
  19094. "updated": 1,
  19095. "version": 5,
  19096. "width": 10,
  19097. "x": 10,
  19098. "y": 0,
  19099. }
  19100. `;
  19101. exports[`history > singleplayer undo/redo > should support element creation, deletion and appstate element selection change > [end of test] element 1 1`] = `
  19102. {
  19103. "angle": 0,
  19104. "backgroundColor": "transparent",
  19105. "boundElements": null,
  19106. "customData": undefined,
  19107. "fillStyle": "solid",
  19108. "frameId": null,
  19109. "groupIds": [],
  19110. "height": 10,
  19111. "id": "id23",
  19112. "index": "a1",
  19113. "isDeleted": true,
  19114. "link": null,
  19115. "locked": false,
  19116. "opacity": 100,
  19117. "roughness": 1,
  19118. "roundness": {
  19119. "type": 3,
  19120. },
  19121. "strokeColor": "#1e1e1e",
  19122. "strokeStyle": "solid",
  19123. "strokeWidth": 2,
  19124. "type": "rectangle",
  19125. "updated": 1,
  19126. "version": 8,
  19127. "width": 10,
  19128. "x": 20,
  19129. "y": 20,
  19130. }
  19131. `;
  19132. exports[`history > singleplayer undo/redo > should support element creation, deletion and appstate element selection change > [end of test] element 2 1`] = `
  19133. {
  19134. "angle": 0,
  19135. "backgroundColor": "transparent",
  19136. "boundElements": null,
  19137. "customData": undefined,
  19138. "fillStyle": "solid",
  19139. "frameId": null,
  19140. "groupIds": [],
  19141. "height": 10,
  19142. "id": "id24",
  19143. "index": "a2",
  19144. "isDeleted": true,
  19145. "link": null,
  19146. "locked": false,
  19147. "opacity": 100,
  19148. "roughness": 1,
  19149. "roundness": {
  19150. "type": 3,
  19151. },
  19152. "strokeColor": "#1e1e1e",
  19153. "strokeStyle": "solid",
  19154. "strokeWidth": 2,
  19155. "type": "rectangle",
  19156. "updated": 1,
  19157. "version": 8,
  19158. "width": 10,
  19159. "x": 40,
  19160. "y": 40,
  19161. }
  19162. `;
  19163. exports[`history > singleplayer undo/redo > should support element creation, deletion and appstate element selection change > [end of test] history 1`] = `
  19164. History {
  19165. "onHistoryChangedEmitter": Emitter {
  19166. "subscribers": [
  19167. [Function],
  19168. [Function],
  19169. ],
  19170. },
  19171. "redoStack": [],
  19172. "undoStack": [
  19173. HistoryEntry {
  19174. "appStateChange": AppStateChange {
  19175. "delta": Delta {
  19176. "deleted": {
  19177. "selectedElementIds": {
  19178. "id22": true,
  19179. },
  19180. },
  19181. "inserted": {
  19182. "selectedElementIds": {},
  19183. },
  19184. },
  19185. },
  19186. "elementsChange": ElementsChange {
  19187. "added": Map {},
  19188. "removed": Map {
  19189. "id22" => Delta {
  19190. "deleted": {
  19191. "angle": 0,
  19192. "backgroundColor": "transparent",
  19193. "boundElements": null,
  19194. "customData": undefined,
  19195. "fillStyle": "solid",
  19196. "frameId": null,
  19197. "groupIds": [],
  19198. "height": 10,
  19199. "index": "a0",
  19200. "isDeleted": false,
  19201. "link": null,
  19202. "locked": false,
  19203. "opacity": 100,
  19204. "roughness": 1,
  19205. "roundness": {
  19206. "type": 3,
  19207. },
  19208. "strokeColor": "#1e1e1e",
  19209. "strokeStyle": "solid",
  19210. "strokeWidth": 2,
  19211. "type": "rectangle",
  19212. "width": 10,
  19213. "x": 10,
  19214. "y": 0,
  19215. },
  19216. "inserted": {
  19217. "isDeleted": true,
  19218. },
  19219. },
  19220. },
  19221. "updated": Map {},
  19222. },
  19223. },
  19224. HistoryEntry {
  19225. "appStateChange": AppStateChange {
  19226. "delta": Delta {
  19227. "deleted": {
  19228. "selectedElementIds": {
  19229. "id23": true,
  19230. },
  19231. },
  19232. "inserted": {
  19233. "selectedElementIds": {
  19234. "id22": true,
  19235. },
  19236. },
  19237. },
  19238. },
  19239. "elementsChange": ElementsChange {
  19240. "added": Map {},
  19241. "removed": Map {
  19242. "id23" => Delta {
  19243. "deleted": {
  19244. "angle": 0,
  19245. "backgroundColor": "transparent",
  19246. "boundElements": null,
  19247. "customData": undefined,
  19248. "fillStyle": "solid",
  19249. "frameId": null,
  19250. "groupIds": [],
  19251. "height": 10,
  19252. "index": "a1",
  19253. "isDeleted": false,
  19254. "link": null,
  19255. "locked": false,
  19256. "opacity": 100,
  19257. "roughness": 1,
  19258. "roundness": {
  19259. "type": 3,
  19260. },
  19261. "strokeColor": "#1e1e1e",
  19262. "strokeStyle": "solid",
  19263. "strokeWidth": 2,
  19264. "type": "rectangle",
  19265. "width": 10,
  19266. "x": 20,
  19267. "y": 20,
  19268. },
  19269. "inserted": {
  19270. "isDeleted": true,
  19271. },
  19272. },
  19273. },
  19274. "updated": Map {},
  19275. },
  19276. },
  19277. HistoryEntry {
  19278. "appStateChange": AppStateChange {
  19279. "delta": Delta {
  19280. "deleted": {
  19281. "selectedElementIds": {
  19282. "id24": true,
  19283. },
  19284. },
  19285. "inserted": {
  19286. "selectedElementIds": {
  19287. "id23": true,
  19288. },
  19289. },
  19290. },
  19291. },
  19292. "elementsChange": ElementsChange {
  19293. "added": Map {},
  19294. "removed": Map {
  19295. "id24" => Delta {
  19296. "deleted": {
  19297. "angle": 0,
  19298. "backgroundColor": "transparent",
  19299. "boundElements": null,
  19300. "customData": undefined,
  19301. "fillStyle": "solid",
  19302. "frameId": null,
  19303. "groupIds": [],
  19304. "height": 10,
  19305. "index": "a2",
  19306. "isDeleted": false,
  19307. "link": null,
  19308. "locked": false,
  19309. "opacity": 100,
  19310. "roughness": 1,
  19311. "roundness": {
  19312. "type": 3,
  19313. },
  19314. "strokeColor": "#1e1e1e",
  19315. "strokeStyle": "solid",
  19316. "strokeWidth": 2,
  19317. "type": "rectangle",
  19318. "width": 10,
  19319. "x": 40,
  19320. "y": 40,
  19321. },
  19322. "inserted": {
  19323. "isDeleted": true,
  19324. },
  19325. },
  19326. },
  19327. "updated": Map {},
  19328. },
  19329. },
  19330. HistoryEntry {
  19331. "appStateChange": AppStateChange {
  19332. "delta": Delta {
  19333. "deleted": {
  19334. "selectedElementIds": {
  19335. "id23": true,
  19336. },
  19337. },
  19338. "inserted": {
  19339. "selectedElementIds": {
  19340. "id24": true,
  19341. },
  19342. },
  19343. },
  19344. },
  19345. "elementsChange": ElementsChange {
  19346. "added": Map {},
  19347. "removed": Map {},
  19348. "updated": Map {},
  19349. },
  19350. },
  19351. HistoryEntry {
  19352. "appStateChange": AppStateChange {
  19353. "delta": Delta {
  19354. "deleted": {
  19355. "selectedElementIds": {
  19356. "id24": true,
  19357. },
  19358. },
  19359. "inserted": {
  19360. "selectedElementIds": {},
  19361. },
  19362. },
  19363. },
  19364. "elementsChange": ElementsChange {
  19365. "added": Map {},
  19366. "removed": Map {},
  19367. "updated": Map {},
  19368. },
  19369. },
  19370. HistoryEntry {
  19371. "appStateChange": AppStateChange {
  19372. "delta": Delta {
  19373. "deleted": {
  19374. "selectedElementIds": {},
  19375. },
  19376. "inserted": {
  19377. "selectedElementIds": {
  19378. "id23": true,
  19379. "id24": true,
  19380. },
  19381. },
  19382. },
  19383. },
  19384. "elementsChange": ElementsChange {
  19385. "added": Map {
  19386. "id23" => Delta {
  19387. "deleted": {
  19388. "isDeleted": true,
  19389. },
  19390. "inserted": {
  19391. "isDeleted": false,
  19392. },
  19393. },
  19394. "id24" => Delta {
  19395. "deleted": {
  19396. "isDeleted": true,
  19397. },
  19398. "inserted": {
  19399. "isDeleted": false,
  19400. },
  19401. },
  19402. },
  19403. "removed": Map {},
  19404. "updated": Map {},
  19405. },
  19406. },
  19407. ],
  19408. }
  19409. `;
  19410. exports[`history > singleplayer undo/redo > should support element creation, deletion and appstate element selection change > [end of test] number of elements 1`] = `3`;
  19411. exports[`history > singleplayer undo/redo > should support element creation, deletion and appstate element selection change > [end of test] number of renders 1`] = `27`;
  19412. exports[`history > singleplayer undo/redo > should support linear element creation and points manipulation through the editor > [end of test] appState 1`] = `
  19413. {
  19414. "activeEmbeddable": null,
  19415. "activeTool": {
  19416. "customType": null,
  19417. "fromSelection": false,
  19418. "lastActiveTool": null,
  19419. "locked": false,
  19420. "type": "selection",
  19421. },
  19422. "collaborators": Map {},
  19423. "contextMenu": null,
  19424. "croppingElementId": null,
  19425. "currentChartType": "bar",
  19426. "currentHoveredFontFamily": null,
  19427. "currentItemArrowType": "round",
  19428. "currentItemBackgroundColor": "transparent",
  19429. "currentItemEndArrowhead": "arrow",
  19430. "currentItemFillStyle": "solid",
  19431. "currentItemFontFamily": 5,
  19432. "currentItemFontSize": 20,
  19433. "currentItemOpacity": 100,
  19434. "currentItemRoughness": 1,
  19435. "currentItemRoundness": "round",
  19436. "currentItemStartArrowhead": null,
  19437. "currentItemStrokeColor": "#1e1e1e",
  19438. "currentItemStrokeStyle": "solid",
  19439. "currentItemStrokeWidth": 2,
  19440. "currentItemTextAlign": "left",
  19441. "cursorButton": "up",
  19442. "defaultSidebarDockedPreference": false,
  19443. "editingFrame": null,
  19444. "editingGroupId": null,
  19445. "editingLinearElement": null,
  19446. "editingTextElement": null,
  19447. "elementsToHighlight": null,
  19448. "errorMessage": null,
  19449. "exportBackground": true,
  19450. "exportEmbedScene": false,
  19451. "exportScale": 1,
  19452. "exportWithDarkMode": false,
  19453. "fileHandle": null,
  19454. "followedBy": Set {},
  19455. "frameRendering": {
  19456. "clip": true,
  19457. "enabled": true,
  19458. "name": true,
  19459. "outline": true,
  19460. },
  19461. "frameToHighlight": null,
  19462. "gridModeEnabled": false,
  19463. "gridSize": 20,
  19464. "gridStep": 5,
  19465. "height": 0,
  19466. "hoveredElementIds": {},
  19467. "isBindingEnabled": true,
  19468. "isCropping": false,
  19469. "isLoading": false,
  19470. "isResizing": false,
  19471. "isRotating": false,
  19472. "lastPointerDownWith": "mouse",
  19473. "multiElement": null,
  19474. "newElement": null,
  19475. "objectsSnapModeEnabled": false,
  19476. "offsetLeft": 0,
  19477. "offsetTop": 0,
  19478. "openDialog": null,
  19479. "openMenu": null,
  19480. "openPopup": null,
  19481. "openSidebar": null,
  19482. "originSnapOffset": null,
  19483. "pasteDialog": {
  19484. "data": null,
  19485. "shown": false,
  19486. },
  19487. "penDetected": false,
  19488. "penMode": false,
  19489. "pendingImageElementId": null,
  19490. "previousSelectedElementIds": {
  19491. "id27": true,
  19492. },
  19493. "resizingElement": null,
  19494. "scrollX": 0,
  19495. "scrollY": 0,
  19496. "searchMatches": [],
  19497. "selectedElementIds": {
  19498. "id27": true,
  19499. },
  19500. "selectedElementsAreBeingDragged": false,
  19501. "selectedGroupIds": {},
  19502. "selectionElement": null,
  19503. "shouldCacheIgnoreZoom": false,
  19504. "showHyperlinkPopup": false,
  19505. "showWelcomeScreen": true,
  19506. "snapLines": [],
  19507. "startBoundElement": null,
  19508. "stats": {
  19509. "open": false,
  19510. "panels": 3,
  19511. },
  19512. "suggestedBindings": [],
  19513. "theme": "light",
  19514. "toast": null,
  19515. "userToFollow": null,
  19516. "viewBackgroundColor": "#ffffff",
  19517. "viewModeEnabled": false,
  19518. "width": 0,
  19519. "zenModeEnabled": false,
  19520. "zoom": {
  19521. "value": 1,
  19522. },
  19523. }
  19524. `;
  19525. exports[`history > singleplayer undo/redo > should support linear element creation and points manipulation through the editor > [end of test] element 0 1`] = `
  19526. {
  19527. "angle": 0,
  19528. "backgroundColor": "transparent",
  19529. "boundElements": null,
  19530. "customData": undefined,
  19531. "elbowed": false,
  19532. "endArrowhead": "arrow",
  19533. "endBinding": null,
  19534. "fillStyle": "solid",
  19535. "frameId": null,
  19536. "groupIds": [],
  19537. "height": 20,
  19538. "id": "id27",
  19539. "index": "a0",
  19540. "isDeleted": false,
  19541. "lastCommittedPoint": [
  19542. 20,
  19543. 0,
  19544. ],
  19545. "link": null,
  19546. "locked": false,
  19547. "opacity": 100,
  19548. "points": [
  19549. [
  19550. 0,
  19551. 0,
  19552. ],
  19553. [
  19554. 10,
  19555. 10,
  19556. ],
  19557. [
  19558. 20,
  19559. 20,
  19560. ],
  19561. ],
  19562. "roughness": 1,
  19563. "roundness": {
  19564. "type": 2,
  19565. },
  19566. "startArrowhead": null,
  19567. "startBinding": null,
  19568. "strokeColor": "#1e1e1e",
  19569. "strokeStyle": "solid",
  19570. "strokeWidth": 2,
  19571. "type": "arrow",
  19572. "updated": 1,
  19573. "version": 15,
  19574. "width": 20,
  19575. "x": 0,
  19576. "y": 0,
  19577. }
  19578. `;
  19579. exports[`history > singleplayer undo/redo > should support linear element creation and points manipulation through the editor > [end of test] history 1`] = `
  19580. History {
  19581. "onHistoryChangedEmitter": Emitter {
  19582. "subscribers": [
  19583. [Function],
  19584. [Function],
  19585. ],
  19586. },
  19587. "redoStack": [],
  19588. "undoStack": [
  19589. HistoryEntry {
  19590. "appStateChange": AppStateChange {
  19591. "delta": Delta {
  19592. "deleted": {
  19593. "selectedElementIds": {
  19594. "id27": true,
  19595. },
  19596. },
  19597. "inserted": {
  19598. "selectedElementIds": {},
  19599. },
  19600. },
  19601. },
  19602. "elementsChange": ElementsChange {
  19603. "added": Map {},
  19604. "removed": Map {
  19605. "id27" => Delta {
  19606. "deleted": {
  19607. "angle": 0,
  19608. "backgroundColor": "transparent",
  19609. "boundElements": null,
  19610. "customData": undefined,
  19611. "elbowed": false,
  19612. "endArrowhead": "arrow",
  19613. "endBinding": null,
  19614. "fillStyle": "solid",
  19615. "frameId": null,
  19616. "groupIds": [],
  19617. "height": 10,
  19618. "index": "a0",
  19619. "isDeleted": false,
  19620. "lastCommittedPoint": [
  19621. 10,
  19622. 10,
  19623. ],
  19624. "link": null,
  19625. "locked": false,
  19626. "opacity": 100,
  19627. "points": [
  19628. [
  19629. 0,
  19630. 0,
  19631. ],
  19632. [
  19633. 10,
  19634. 10,
  19635. ],
  19636. ],
  19637. "roughness": 1,
  19638. "roundness": {
  19639. "type": 2,
  19640. },
  19641. "startArrowhead": null,
  19642. "startBinding": null,
  19643. "strokeColor": "#1e1e1e",
  19644. "strokeStyle": "solid",
  19645. "strokeWidth": 2,
  19646. "type": "arrow",
  19647. "width": 10,
  19648. "x": 0,
  19649. "y": 0,
  19650. },
  19651. "inserted": {
  19652. "isDeleted": true,
  19653. },
  19654. },
  19655. },
  19656. "updated": Map {},
  19657. },
  19658. },
  19659. HistoryEntry {
  19660. "appStateChange": AppStateChange {
  19661. "delta": Delta {
  19662. "deleted": {},
  19663. "inserted": {},
  19664. },
  19665. },
  19666. "elementsChange": ElementsChange {
  19667. "added": Map {},
  19668. "removed": Map {},
  19669. "updated": Map {
  19670. "id27" => Delta {
  19671. "deleted": {
  19672. "lastCommittedPoint": [
  19673. 20,
  19674. 0,
  19675. ],
  19676. "points": [
  19677. [
  19678. 0,
  19679. 0,
  19680. ],
  19681. [
  19682. 10,
  19683. 10,
  19684. ],
  19685. [
  19686. 20,
  19687. 0,
  19688. ],
  19689. ],
  19690. "width": 20,
  19691. },
  19692. "inserted": {
  19693. "lastCommittedPoint": [
  19694. 10,
  19695. 10,
  19696. ],
  19697. "points": [
  19698. [
  19699. 0,
  19700. 0,
  19701. ],
  19702. [
  19703. 10,
  19704. 10,
  19705. ],
  19706. ],
  19707. "width": 10,
  19708. },
  19709. },
  19710. },
  19711. },
  19712. },
  19713. HistoryEntry {
  19714. "appStateChange": AppStateChange {
  19715. "delta": Delta {
  19716. "deleted": {
  19717. "selectedLinearElementId": "id27",
  19718. },
  19719. "inserted": {
  19720. "selectedLinearElementId": null,
  19721. },
  19722. },
  19723. },
  19724. "elementsChange": ElementsChange {
  19725. "added": Map {},
  19726. "removed": Map {},
  19727. "updated": Map {},
  19728. },
  19729. },
  19730. HistoryEntry {
  19731. "appStateChange": AppStateChange {
  19732. "delta": Delta {
  19733. "deleted": {
  19734. "editingLinearElementId": "id27",
  19735. },
  19736. "inserted": {
  19737. "editingLinearElementId": null,
  19738. },
  19739. },
  19740. },
  19741. "elementsChange": ElementsChange {
  19742. "added": Map {},
  19743. "removed": Map {},
  19744. "updated": Map {},
  19745. },
  19746. },
  19747. HistoryEntry {
  19748. "appStateChange": AppStateChange {
  19749. "delta": Delta {
  19750. "deleted": {},
  19751. "inserted": {},
  19752. },
  19753. },
  19754. "elementsChange": ElementsChange {
  19755. "added": Map {},
  19756. "removed": Map {},
  19757. "updated": Map {
  19758. "id27" => Delta {
  19759. "deleted": {
  19760. "height": 20,
  19761. "points": [
  19762. [
  19763. 0,
  19764. 0,
  19765. ],
  19766. [
  19767. 10,
  19768. 10,
  19769. ],
  19770. [
  19771. 20,
  19772. 20,
  19773. ],
  19774. ],
  19775. },
  19776. "inserted": {
  19777. "height": 10,
  19778. "points": [
  19779. [
  19780. 0,
  19781. 0,
  19782. ],
  19783. [
  19784. 10,
  19785. 10,
  19786. ],
  19787. [
  19788. 20,
  19789. 0,
  19790. ],
  19791. ],
  19792. },
  19793. },
  19794. },
  19795. },
  19796. },
  19797. HistoryEntry {
  19798. "appStateChange": AppStateChange {
  19799. "delta": Delta {
  19800. "deleted": {
  19801. "editingLinearElementId": null,
  19802. },
  19803. "inserted": {
  19804. "editingLinearElementId": "id27",
  19805. },
  19806. },
  19807. },
  19808. "elementsChange": ElementsChange {
  19809. "added": Map {},
  19810. "removed": Map {},
  19811. "updated": Map {},
  19812. },
  19813. },
  19814. ],
  19815. }
  19816. `;
  19817. exports[`history > singleplayer undo/redo > should support linear element creation and points manipulation through the editor > [end of test] number of elements 1`] = `1`;
  19818. exports[`history > singleplayer undo/redo > should support linear element creation and points manipulation through the editor > [end of test] number of renders 1`] = `21`;