Virtual whiteboard for sketching hand-drawn like diagrams
perf: Reduce SVG export size by more than half by reducing precision to 2 decimal places (#3567)
Preet07839f8d2019
diff --git a/package.json b/package.jsonindex bb8da2675a..8017d02f57 100644--- a/package.json+++ b/package.json@@ -44,7 +44,7 @@"react": "17.0.2","react-dom": "17.0.2","react-scripts": "4.0.3",- "roughjs": "4.4.0",+ "roughjs": "4.4.1","sass": "1.32.10","socket.io-client": "2.3.1","typescript": "4.2.4"diff --git a/src/constants.ts b/src/constants.tsindex 56e0f998f6..0911d7ebcd 100644--- a/src/constants.ts+++ b/src/constants.ts@@ -142,3 +142,5 @@ export const DEFAULT_UI_OPTIONS: AppProps["UIOptions"] = {export const MQ_MAX_WIDTH_PORTRAIT = 730;export const MQ_MAX_WIDTH_LANDSCAPE = 1000;export const MQ_MAX_HEIGHT_LANDSCAPE = 500;++export const MAX_DECIMALS_FOR_SVG_EXPORT = 2;diff --git a/src/renderer/renderElement.ts b/src/renderer/renderElement.tsindex 1e55ec5e0f..cdc95ba042 100644--- a/src/renderer/renderElement.ts+++ b/src/renderer/renderElement.ts@@ -33,6 +33,7 @@ import rough from "roughjs/bin/rough";import { Zoom } from "../types";import { getDefaultAppState } from "../appState";import getFreeDrawShape from "perfect-freehand";+import { MAX_DECIMALS_FOR_SVG_EXPORT } from "../constants";const defaultAppState = getDefaultAppState();@@ -623,6 +624,22 @@ export const renderElement = (}};+const roughSVGDrawWithPrecision = (+ rsvg: RoughSVG,+ drawable: Drawable,+ precision?: number,+) => {+ if (typeof precision === "undefined") {+ return rsvg.draw(drawable);+ }+ const pshape: Drawable = {+ sets: drawable.sets,+ shape: drawable.shape,+ options: { ...drawable.options, fixedDecimalPlaceDigits: precision },+ };+ return rsvg.draw(pshape);+};+export const renderElementToSvg = (element: NonDeletedExcalidrawElement,rsvg: RoughSVG,@@ -645,7 +662,11 @@ export const renderElementToSvg = (case "diamond":case "ellipse": {generateElementShape(element, generator);- const node = rsvg.draw(getShapeForElement(element) as Drawable);+ const node = roughSVGDrawWithPrecision(+ rsvg,+ getShapeForElement(element) as Drawable,+ MAX_DECIMALS_FOR_SVG_EXPORT,+ );const opacity = element.opacity / 100;if (opacity !== 1) {node.setAttribute("stroke-opacity", `${opacity}`);@@ -669,7 +690,11 @@ export const renderElementToSvg = (group.setAttribute("stroke-linecap", "round");(getShapeForElement(element) as Drawable[]).forEach((shape) => {- const node = rsvg.draw(shape);+ const node = roughSVGDrawWithPrecision(+ rsvg,+ shape,+ MAX_DECIMALS_FOR_SVG_EXPORT,+ );if (opacity !== 1) {node.setAttribute("stroke-opacity", `${opacity}`);node.setAttribute("fill-opacity", `${opacity}`);diff --git a/src/tests/scene/__snapshots__/export.test.ts.snap b/src/tests/scene/__snapshots__/export.test.ts.snapindex a482bf18da..6e683378cf 100644--- a/src/tests/scene/__snapshots__/export.test.ts.snap+++ b/src/tests/scene/__snapshots__/export.test.ts.snap@@ -39,13 +39,13 @@ exports[`exportToSvg with default arguments 1`] = `transform="translate(10 10) rotate(0 50 50)"><path- d="M0.3215926512707661 50.63004997398367 C0.3215926512707661 50.63004997398367, 0.3215926512707661 50.63004997398367, 0.3215926512707661 50.63004997398367 M0.3215926512707661 50.63004997398367 C0.3215926512707661 50.63004997398367, 0.3215926512707661 50.63004997398367, 0.3215926512707661 50.63004997398367 M1.3116444075063143 55.07812158325202 C15.314283680909911 40.317192696594816, 29.586475553002956 22.3679465017686, 41.30068086094365 9.811082558978095 M2.951709753419486 54.67243415796644 C16.0620332332674 38.640113484721994, 28.378856737888587 26.078517985053743, 41.314713019944286 11.15742967863728 M5.171848781024966 55.283084084330625 C18.641969062704092 40.540396343431524, 34.58708475044088 23.29840898057148, 53.31407254120831 1.1991572626214868 M6.186589520042691 55.83329720893366 C19.704623349258277 40.84606611932526, 33.943733814950754 25.363679483946875, 52.84148630058889 2.9887363225501424 M8.119493645266274 57.32797425874908 C28.317963275837364 38.183214888624136, 46.32249891122192 16.692627793301966, 57.78110369695352 5.539724622098529 M9.053469256148318 59.26468714588721 C25.32923564702025 39.83582209440465, 41.8306160849394 20.418938676242995, 56.35827982453631 4.408579170880639 M12.227088765855235 63.331688590882365 C23.990645610370535 47.49951368857688, 34.7557846321025 34.03612586499711, 58.2481729996714 7.7216844986654145 M12.100078453923864 62.41692135163957 C25.63639867649566 45.744598393239556, 39.57843969513817 29.469613994570246, 59.39061823984116 6.695872733322464 M14.29370640841686 65.31156106510551 C33.597329259499176 44.370542205669466, 51.891442290095505 21.7267770087133, 61.397356185996415 11.603017956919924 M14.948365355556838 64.35359845900328 C25.417681032581086 51.406878383185045, 36.81428488536206 39.883549442890526, 61.57235950970042 11.188456472910897 M17.438922309585625 69.68807274601626 C30.260685339707685 56.06161492613999, 39.45596451855283 44.25965273041855, 65.1054685795346 14.176014820791497 M17.51343792424422 68.63130793101358 C34.43490484654083 47.57286780897754, 51.040205314444314 27.245688450569375, 64.32975743428261 13.823322362012878 M21.97705179296756 70.01601345754409 C37.962755317150254 53.395778024658156, 51.31585724676195 32.50796416812112, 66.75771091692044 17.845531154877914 M20.502799960154537 70.40579174003744 C29.550969087073746 59.816457255160486, 39.03687978131663 48.81655102144546, 66.82010747678473 15.789872363663687 M21.73079559519714 71.26273926428675 C33.75736014536588 59.356910810301265, 45.613847917302685 49.751400205769826, 69.46584643478842 19.914860523776948 M23.354996926484763 73.08520184911012 C39.91233133496772 53.13656872892285, 58.94368603523295 32.16933577537026, 69.77492385040374 19.390789690898597 M26.90547598189939 74.53933415061927 C41.561312471963205 60.59239361031114, 55.70264533732339 44.030551178595346, 72.28637795674457 22.071605251418053 M26.738852065422424 75.43626189104414 C39.061806264680385 62.99482544975751, 49.89226933628141 47.62014230761195, 73.3431166053082 21.902910066084562 M27.682977718699288 77.60531960091662 C45.485669279026816 62.49366950575278, 58.862542146601 43.361393328918524, 74.53419371942337 26.665933902399 M29.772407369155 78.46397674865197 C46.477472998903394 58.68518805457536, 65.79995397045397 38.46357223946481, 75.02963745469506 24.230479202256856 M29.81568904223134 83.37336417977659 C45.64102953182605 68.3907196182856, 59.0887006020625 52.88316923305044, 78.00074445945934 26.19645254131757 M31.241864550879498 82.29134213496891 C42.1596277300627 70.23776253736212, 50.48133572130091 58.61058558566246, 77.53865686176137 28.766024062450754 M33.50073777610155 84.64044521112864 C46.60365638186787 69.19045796926231, 61.43117383175794 52.145529280543364, 81.17222050045845 32.796075992103205 M34.10082116076442 85.26550627236192 C44.16943386162049 73.11546046220599, 52.797977703880065 63.59797143566162, 80.61674112667558 31.251224119033203 M37.69363715694442 88.36610625957053 C54.95517202411922 70.16265876649439, 71.40429455926696 49.54804309162489, 82.88713855006472 35.26499489957646 M37.40891641200676 86.61102737386625 C46.27044883141778 76.03400236644646, 56.216828198962276 65.63121944660516, 84.33543918364421 34.184878415262254 M38.98252195038495 88.40361880947725 C54.78440403257933 76.47904922390092, 66.87770765804933 59.43158480623836, 87.83481393188416 36.78299908766678 M40.83106729679403 89.5360353222944 C52.96524935680665 74.67067356916478, 64.20609228744718 61.16601048077408, 86.21475483283578 36.91022892350486 M43.182089422048136 94.00469184522383 C60.91143889081985 72.19247241121963, 77.04211192636097 51.44507102889163, 90.21294738255125 39.942444620971955 M43.856409557313725 92.11194125045888 C52.93692036324238 82.13124853273239, 62.975815507456616 68.888071577901, 90.50573353744727 39.0229276067963 M44.92754030856846 94.32418143140802 C62.61018310075747 77.04900235229053, 76.41977670296225 59.94326774124284, 91.94580213870049 44.23412506408974 M45.01723865676282 96.15314712139497 C61.204989661989615 76.97928021753654, 78.29530271822978 58.771199398039435, 92.03363951067567 42.23190767817184 M50.54881493355196 99.15125239195929 C60.62587300473382 81.81996558132536, 75.03884879654458 67.37185909478926, 96.90238102393789 43.5331427409496 M48.38824589530986 98.32320740746961 C65.04047344735905 78.27898960999609, 81.92420555332876 59.44345811879874, 94.0411328026895 46.220254859998434 M50.384239033633115 99.18763579147539 C69.5355724735139 81.1852908399735, 85.85014571162802 58.943036236865595, 99.21007227489795 46.37716621614929 M51.52516423615182 100.78808657171807 C62.453696721804555 87.26701066369127, 73.41370011957088 74.93481700130383, 98.12691512668576 47.298464865311345"+ d="M0.32 50.63 C0.32 50.63, 0.32 50.63, 0.32 50.63 M0.32 50.63 C0.32 50.63, 0.32 50.63, 0.32 50.63 M1.31 55.08 C15.31 40.32, 29.59 22.37, 41.3 9.81 M2.95 54.67 C16.06 38.64, 28.38 26.08, 41.31 11.16 M5.17 55.28 C18.64 40.54, 34.59 23.3, 53.31 1.2 M6.19 55.83 C19.7 40.85, 33.94 25.36, 52.84 2.99 M8.12 57.33 C28.32 38.18, 46.32 16.69, 57.78 5.54 M9.05 59.26 C25.33 39.84, 41.83 20.42, 56.36 4.41 M12.23 63.33 C23.99 47.5, 34.76 34.04, 58.25 7.72 M12.1 62.42 C25.64 45.74, 39.58 29.47, 59.39 6.7 M14.29 65.31 C33.6 44.37, 51.89 21.73, 61.4 11.6 M14.95 64.35 C25.42 51.41, 36.81 39.88, 61.57 11.19 M17.44 69.69 C30.26 56.06, 39.46 44.26, 65.11 14.18 M17.51 68.63 C34.43 47.57, 51.04 27.25, 64.33 13.82 M21.98 70.02 C37.96 53.4, 51.32 32.51, 66.76 17.85 M20.5 70.41 C29.55 59.82, 39.04 48.82, 66.82 15.79 M21.73 71.26 C33.76 59.36, 45.61 49.75, 69.47 19.91 M23.35 73.09 C39.91 53.14, 58.94 32.17, 69.77 19.39 M26.91 74.54 C41.56 60.59, 55.7 44.03, 72.29 22.07 M26.74 75.44 C39.06 62.99, 49.89 47.62, 73.34 21.9 M27.68 77.61 C45.49 62.49, 58.86 43.36, 74.53 26.67 M29.77 78.46 C46.48 58.69, 65.8 38.46, 75.03 24.23 M29.82 83.37 C45.64 68.39, 59.09 52.88, 78 26.2 M31.24 82.29 C42.16 70.24, 50.48 58.61, 77.54 28.77 M33.5 84.64 C46.6 69.19, 61.43 52.15, 81.17 32.8 M34.1 85.27 C44.17 73.12, 52.8 63.6, 80.62 31.25 M37.69 88.37 C54.96 70.16, 71.4 49.55, 82.89 35.26 M37.41 86.61 C46.27 76.03, 56.22 65.63, 84.34 34.18 M38.98 88.4 C54.78 76.48, 66.88 59.43, 87.83 36.78 M40.83 89.54 C52.97 74.67, 64.21 61.17, 86.21 36.91 M43.18 94 C60.91 72.19, 77.04 51.45, 90.21 39.94 M43.86 92.11 C52.94 82.13, 62.98 68.89, 90.51 39.02 M44.93 94.32 C62.61 77.05, 76.42 59.94, 91.95 44.23 M45.02 96.15 C61.2 76.98, 78.3 58.77, 92.03 42.23 M50.55 99.15 C60.63 81.82, 75.04 67.37, 96.9 43.53 M48.39 98.32 C65.04 78.28, 81.92 59.44, 94.04 46.22 M50.38 99.19 C69.54 81.19, 85.85 58.94, 99.21 46.38 M51.53 100.79 C62.45 87.27, 73.41 74.93, 98.13 47.3"fill="none"stroke="#15aabf"stroke-width="0.5"/><path- d="M50.55358276516199 -1.0063428655266762 C62.81930462945253 12.444488233290613, 78.03355055194348 26.677222422100606, 100.29758439213037 51.696192525327206 M50.44191039726138 0.4567862041294575 C69.94771718170495 19.25557524550706, 89.62955550227315 39.73037698518485, 99.85694838687778 51.755582977086306 M98.11570534855127 50.21287991851568 C82.91869207527489 71.12992533359677, 65.15481590423732 88.18803291942925, 49.65887842327356 98.72036983817816 M99.36623812839389 50.680695701390505 C88.57036003578455 62.93863141011447, 74.78615511279553 76.37213786203415, 50.44364107772708 99.9984629638493 M52.55115709453821 99.90411045402288 C35.86204538408666 87.60598102640361, 23.15636815156787 74.11587071735411, 0.7492145076394081 52.333498261868954 M51.67219961807132 99.74776392057538 C32.81567149113864 83.30516709242015, 13.73325096655637 65.72264820601791, 0.11497045680880547 50.738920617848635 M-1.9503647312521935 52.94405772536993 C13.842883658818902 37.61753009814769, 25.2700117566064 26.818373649530113, 50.79735241085291 1.9982242807745934 M0.6614306084811687 50.916901994496584 C16.448444069363177 35.71293304290623, 32.61125064846128 18.698573500551284, 51.59054101631045 0.005398321896791458"+ d="M50.55 -1.01 C62.82 12.44, 78.03 26.68, 100.3 51.7 M50.44 0.46 C69.95 19.26, 89.63 39.73, 99.86 51.76 M98.12 50.21 C82.92 71.13, 65.15 88.19, 49.66 98.72 M99.37 50.68 C88.57 62.94, 74.79 76.37, 50.44 100 M52.55 99.9 C35.86 87.61, 23.16 74.12, 0.75 52.33 M51.67 99.75 C32.82 83.31, 13.73 65.72, 0.11 50.74 M-1.95 52.94 C13.84 37.62, 25.27 26.82, 50.8 2 M0.66 50.92 C16.45 35.71, 32.61 18.7, 51.59 0.01"fill="none"stroke="#000000"stroke-width="1"@@ -56,13 +56,13 @@ exports[`exportToSvg with default arguments 1`] = `transform="translate(10 10) rotate(0 50 50)"><path- d="M9.103186208027179 22.488421969346536 C9.103186208027179 22.488421969346536, 9.103186208027179 22.488421969346536, 9.103186208027179 22.488421969346536 M9.103186208027179 22.488421969346536 C9.103186208027179 22.488421969346536, 9.103186208027179 22.488421969346536, 9.103186208027179 22.488421969346536 M5.765204255854844 34.22233483181613 C14.362991488272383 22.393864753152236, 22.36113370961295 11.335276278628925, 31.06782904238606 6.159780183138377 M5.736394980376719 33.569798227262666 C13.275097861633462 24.572947585739925, 21.83280170300109 14.085501471266827, 29.33454496012235 4.803845231683976 M1.227988672600688 43.129739724767205 C12.485614414371106 30.86920707215446, 24.279758946365426 17.189381048287316, 34.78267771900291 7.139701575529251 M0.7785857777759446 46.00260363958478 C12.56489846413151 32.19351210523688, 24.298028680736646 18.10992605286841, 32.960987669980476 6.3393452135142425 M2.2951026980992637 48.830708910705425 C11.506390154636756 37.55766130013854, 20.27476561930288 29.99022268723167, 39.81789875004496 4.913053521396112 M2.2051392955001674 50.207302049728014 C10.15836555994727 39.88902441781252, 19.678633040248087 28.471874946671655, 40.69918838489856 3.6450175395919793 M4.455219279079987 52.238131756456255 C13.092567087976247 44.78076781918102, 21.099097757838656 35.65983207396413, 46.51334564022263 4.969243727118901 M3.2182294568413035 53.502422472955345 C15.990945476847964 38.74167738930092, 28.10682722697238 23.792457646876475, 45.231407836149536 4.549503314734629 M3.702341239148872 57.10211058594915 C21.082719811007195 38.75885243120156, 39.063127817459936 16.83801043700751, 49.96420177112296 5.3848928561815335 M3.9980163119678664 57.633550631633724 C21.67702872792389 38.634817831046476, 38.67129126854237 19.87750547298338, 51.09289288188293 4.433500350863607 M5.632797785949904 62.590023544004666 C22.776349157294035 43.79883260719605, 38.56875377667124 25.247347256369196, 57.11797690837095 5.40389739295901 M6.424642545086343 63.72839181902121 C20.001039493514707 47.04595944525212, 33.516609367494624 29.600445816086015, 55.39387301428626 5.184826030791413 M6.287657714098604 69.75355753477503 C28.346465083145077 43.73343513823965, 50.391110261901645 20.01272625651366, 62.30480234658209 5.413881741603561 M6.5456466773747515 67.13880383770753 C26.8909592650552 44.75753255905224, 48.03850469945946 20.25284466436394, 60.9748555045375 5.549869407107778 M6.434552318210457 71.54283696241245 C23.567566266759286 54.7208018994115, 38.45674788085201 35.12455060083078, 65.51925382239091 4.960326966712955 M8.48278598001108 71.82992574028239 C24.76937230530255 52.241906946423725, 41.736317468316834 32.0213859777084, 68.31344831583368 3.5227199428479707 M9.849498305929465 78.8205524717375 C21.92178122202455 63.22285232558819, 36.31546353067458 49.177270895858236, 72.01429248546035 7.2512803735532785 M10.338859387201829 76.76930657000386 C27.80411375128059 55.84695984584499, 45.87837595012725 36.0727774741758, 70.74330107440025 7.224877091715577 M13.471429058842645 81.3195747262341 C26.178670520190323 62.11621031676823, 40.64084342838009 46.383278397292194, 72.42397324636792 9.85084054538568 M11.977238757096515 79.25951913879337 C28.808721315442043 59.84045209227148, 44.903699935067614 40.14139658524736, 74.20181341737722 7.973735335409245 M14.467368226612976 81.95888853116827 C29.580058186138128 65.64990355953344, 48.85482738803523 43.626223146498, 77.17255934174818 11.749801046807917 M15.712042465920618 83.62909415035443 C33.9327051510455 59.84969587621079, 53.8408690057206 38.01827577362409, 77.26424955796165 9.728227886964234 M19.667256132846468 86.02765871046954 C41.156525412148426 55.76266235284156, 63.42851335448836 30.337887767274175, 80.66087650823559 12.587392942417772 M17.367961813842648 84.79158607705408 C38.71432841884652 60.940034747421194, 61.49871999163174 34.23013748682724, 80.95509245935048 12.685569209415824 M19.909418514177624 87.72761632873565 C41.43812853418558 67.18187962044433, 59.4109202296613 43.21972559431011, 83.48449006943616 14.137156056144697 M20.250729764059606 89.16295938192755 C44.700828264139986 60.69749989113245, 70.47483990915885 31.419868525681032, 84.59122092171225 15.14212627513097 M24.91480263623143 90.90422037034159 C46.49642078811365 64.19069127024034, 68.95989138056667 37.42544247713892, 88.74735076198436 16.585196452586473 M23.64635705875898 91.76775019778734 C41.7368006049263 71.5536281640301, 57.52696674309932 52.680996805219394, 87.72055540824391 16.14667604714495 M26.224859235642384 94.30607689988516 C42.525974275650256 75.85970358957266, 55.98017958165368 57.155654863172316, 92.27997182251474 20.01605769634086 M25.38401416113777 93.87348548766873 C44.67190845465473 73.25149458236703, 64.61862746664791 51.62024390641993, 91.96523513214251 19.361276738493025 M28.0757786360165 96.3161007412958 C54.4763622473493 69.01409720328769, 76.82406459975361 39.31361803731238, 90.88942898766174 24.162720852005634 M28.335267371364488 96.09684472393869 C48.9679569741552 75.04364850102121, 66.53071188021548 54.17386405510062, 92.896618056605 23.186267812210474 M33.0242546319693 97.72035379872574 C47.47946651763163 83.2910920956797, 62.72616380996875 64.84642652909194, 92.57753758103142 25.892475743510253 M33.66484271061715 97.54749820918693 C55.75574307556121 73.21272404742697, 77.03436163741175 49.0252408880078, 93.87845798179994 28.62114124066425 M37.54142546013526 98.21275463677274 C60.99672282207486 73.98354100081654, 80.27641860048683 54.46304509649356, 97.51055736824875 30.73046885522972 M38.04956689209274 98.70781665644871 C55.60226123635475 79.01377421712004, 75.1218734749792 58.72779816501089, 96.6616093999148 31.16308940666686 M40.91893282815836 99.39036890025736 C55.994562891096464 83.84320839127786, 65.30623482912097 70.37086294448542, 99.58131061493873 35.100284171539016 M42.20942634999774 98.8031616089821 C59.50669261192706 80.80637076798209, 76.05115296650301 64.06734799690315, 98.57114555313706 35.42258594303078 M48.143158030654114 101.48457099333183 C61.552263454128735 83.12634294244991, 75.70705155788772 68.33538881660327, 98.65918208672636 42.073943176813174 M47.40680335551016 100.90804711937682 C67.11563536863908 78.21797997532192, 87.7937817005629 53.86719703759917, 100.38135843365424 41.24838573256855 M52.833103891228546 100.62046323992561 C65.18541452088485 89.21476964435973, 73.65745170826126 75.24608333987621, 101.49617807822716 44.3671952752044 M52.00935795879852 99.58055890999984 C63.61566068370425 88.79018587208162, 74.27351307305759 77.94304284629352, 102.84681781264436 43.097815327869874 M60.178276704497165 98.07629504419089 C72.1969470747221 83.15695310653082, 84.82030733742302 72.21086573861217, 100.72845418112308 50.12719443242432 M60.05290993104083 98.49677353344083 C75.40421288468637 81.68838473478323, 89.82186724759134 65.38419173667648, 101.32889900835187 50.19944959308387 M69.22050914911341 94.29759163117103 C81.71045331728124 79.0083973027423, 90.85975134364986 65.35487250744569, 98.93537780599166 57.09772673173409 M67.14826167745304 94.83988711318068 C80.75720349874662 81.43805782906496, 92.0064412613514 66.54031594160658, 99.4798454079168 57.09333925990921 M73.69637349070234 91.36418698524103 C80.73931548718411 85.89885802061366, 88.96664688187627 76.40792076148416, 98.3925837184579 64.44456365750871 M74.94861144022269 92.14224828203187 C82.00214361358724 85.40744465598915, 86.15613693847065 79.57329875412175, 98.62082400352665 65.83136421115837"+ d="M9.1 22.49 C9.1 22.49, 9.1 22.49, 9.1 22.49 M9.1 22.49 C9.1 22.49, 9.1 22.49, 9.1 22.49 M5.77 34.22 C14.36 22.39, 22.36 11.34, 31.07 6.16 M5.74 33.57 C13.28 24.57, 21.83 14.09, 29.33 4.8 M1.23 43.13 C12.49 30.87, 24.28 17.19, 34.78 7.14 M0.78 46 C12.56 32.19, 24.3 18.11, 32.96 6.34 M2.3 48.83 C11.51 37.56, 20.27 29.99, 39.82 4.91 M2.21 50.21 C10.16 39.89, 19.68 28.47, 40.7 3.65 M4.46 52.24 C13.09 44.78, 21.1 35.66, 46.51 4.97 M3.22 53.5 C15.99 38.74, 28.11 23.79, 45.23 4.55 M3.7 57.1 C21.08 38.76, 39.06 16.84, 49.96 5.38 M4 57.63 C21.68 38.63, 38.67 19.88, 51.09 4.43 M5.63 62.59 C22.78 43.8, 38.57 25.25, 57.12 5.4 M6.42 63.73 C20 47.05, 33.52 29.6, 55.39 5.18 M6.29 69.75 C28.35 43.73, 50.39 20.01, 62.3 5.41 M6.55 67.14 C26.89 44.76, 48.04 20.25, 60.97 5.55 M6.43 71.54 C23.57 54.72, 38.46 35.12, 65.52 4.96 M8.48 71.83 C24.77 52.24, 41.74 32.02, 68.31 3.52 M9.85 78.82 C21.92 63.22, 36.32 49.18, 72.01 7.25 M10.34 76.77 C27.8 55.85, 45.88 36.07, 70.74 7.22 M13.47 81.32 C26.18 62.12, 40.64 46.38, 72.42 9.85 M11.98 79.26 C28.81 59.84, 44.9 40.14, 74.2 7.97 M14.47 81.96 C29.58 65.65, 48.85 43.63, 77.17 11.75 M15.71 83.63 C33.93 59.85, 53.84 38.02, 77.26 9.73 M19.67 86.03 C41.16 55.76, 63.43 30.34, 80.66 12.59 M17.37 84.79 C38.71 60.94, 61.5 34.23, 80.96 12.69 M19.91 87.73 C41.44 67.18, 59.41 43.22, 83.48 14.14 M20.25 89.16 C44.7 60.7, 70.47 31.42, 84.59 15.14 M24.91 90.9 C46.5 64.19, 68.96 37.43, 88.75 16.59 M23.65 91.77 C41.74 71.55, 57.53 52.68, 87.72 16.15 M26.22 94.31 C42.53 75.86, 55.98 57.16, 92.28 20.02 M25.38 93.87 C44.67 73.25, 64.62 51.62, 91.97 19.36 M28.08 96.32 C54.48 69.01, 76.82 39.31, 90.89 24.16 M28.34 96.1 C48.97 75.04, 66.53 54.17, 92.9 23.19 M33.02 97.72 C47.48 83.29, 62.73 64.85, 92.58 25.89 M33.66 97.55 C55.76 73.21, 77.03 49.03, 93.88 28.62 M37.54 98.21 C61 73.98, 80.28 54.46, 97.51 30.73 M38.05 98.71 C55.6 79.01, 75.12 58.73, 96.66 31.16 M40.92 99.39 C55.99 83.84, 65.31 70.37, 99.58 35.1 M42.21 98.8 C59.51 80.81, 76.05 64.07, 98.57 35.42 M48.14 101.48 C61.55 83.13, 75.71 68.34, 98.66 42.07 M47.41 100.91 C67.12 78.22, 87.79 53.87, 100.38 41.25 M52.83 100.62 C65.19 89.21, 73.66 75.25, 101.5 44.37 M52.01 99.58 C63.62 88.79, 74.27 77.94, 102.85 43.1 M60.18 98.08 C72.2 83.16, 84.82 72.21, 100.73 50.13 M60.05 98.5 C75.4 81.69, 89.82 65.38, 101.33 50.2 M69.22 94.3 C81.71 79.01, 90.86 65.35, 98.94 57.1 M67.15 94.84 C80.76 81.44, 92.01 66.54, 99.48 57.09 M73.7 91.36 C80.74 85.9, 88.97 76.41, 98.39 64.44 M74.95 92.14 C82 85.41, 86.16 79.57, 98.62 65.83"fill="none"stroke="#15aabf"stroke-width="0.5"/><path- d="M38.10491993032156 1.4648003756805252 C46.1587020112658 -1.1635890566751965, 56.71416618249042 -0.01944700243322961, 65.18456713523119 2.662401636510282 C73.65496808797197 5.344250275453794, 83.2369939617218 11.015307204808753, 88.92732564676618 17.555892209341593 C94.61765733181056 24.096477213874433, 98.08153267243405 33.28832195851926, 99.3265572454975 41.90591166370733 C100.57158181856094 50.523501368895396, 100.01867573009912 61.10087003792123, 96.39747308514688 69.26143044046998 C92.77627044019465 77.42199084301873, 85.01698062044352 85.7808593562601, 77.59934137578412 90.86927407899981 C70.18170213112472 95.95768880173952, 60.404771420168466 99.19015022322836, 51.8916376171905 99.79191877690829 C43.37850381421253 100.39368733058822, 33.999806580881796 98.57687919598743, 26.520538557916296 94.47988540107943 C19.0412705349508 90.38289160617143, 11.58302625385365 83.09937946807497, 7.016029479397517 75.2099560074603 C2.449032704941385 67.32053254684564, -1.2746818165216485 55.982471009366314, -0.8814420888204921 47.14334463739147 C-0.48820236111933585 38.30421826541663, 4.071069698108882 29.347050254376203, 9.375467845604454 22.175197775611235 C14.679865993100027 15.003345296846266, 25.588730389372625 7.812268017256606, 30.94494679615294 4.112229764801668 C36.30116320293325 0.4121915123467299, 38.93156936618933 0.514977618496084, 41.51276628628634 -0.025031739118396956 C44.09396320638336 -0.565041096732878, 46.04995313932978 0.048077806593855854, 46.43212831673502 0.8721736191147826 M40.942041597447975 1.528498341109426 C48.73904687758561 -0.33698066843751806, 60.254644674161725 0.5588806871514009, 68.5154850568302 3.893718555812164 C76.77632543949868 7.228556424472927, 85.30492730230236 14.153651511914937, 90.50708389345883 21.537525553074005 C95.7092404846153 28.921399594233073, 99.16909672451597 39.56062164589477, 99.72842460376896 48.19696280276658 C100.28775248302195 56.833303959638386, 97.86161831462142 65.69224789579903, 93.86305116897675 73.35557249430484 C89.86448402333208 81.01889709281065, 83.17918752647142 89.64949867323408, 75.73702172990096 94.17691039380142 C68.2948559333305 98.70432211436876, 58.02414992757731 100.83363028945554, 49.210056389553955 100.52004281770888 C40.3959628515306 100.20645534596223, 30.397450405744884 97.11227837745986, 22.852460501760834 92.2953855633215 C15.307470597776785 87.47849274918315, 7.497857656642351 79.90386370646456, 3.940116965649665 71.61868593287875 C0.38237627465697877 63.33350815929294, 0.13441917602431985 51.3713489454786, 1.506016355804718 42.58431892180664 C2.877613535585116 33.79728889813468, 6.715569949855488 25.336832364599342, 12.169700044332053 18.896505790846994 C17.623830138808618 12.456179217094647, 29.22179422656323 7.051068978272754, 34.23079692266411 3.9423594792925485 C39.23979961876499 0.8336499803123423, 41.034523777684775 0.5342086504700347, 42.22371622093734 0.2442487969657563 C43.41290866418991 -0.04571105653852214, 41.49163336104766 1.5583905686387758, 41.365951582179505 2.202600358266878"+ d="M38.1 1.46 C46.16 -1.16, 56.71 -0.02, 65.18 2.66 C73.65 5.34, 83.24 11.02, 88.93 17.56 C94.62 24.1, 98.08 33.29, 99.33 41.91 C100.57 50.52, 100.02 61.1, 96.4 69.26 C92.78 77.42, 85.02 85.78, 77.6 90.87 C70.18 95.96, 60.4 99.19, 51.89 99.79 C43.38 100.39, 34 98.58, 26.52 94.48 C19.04 90.38, 11.58 83.1, 7.02 75.21 C2.45 67.32, -1.27 55.98, -0.88 47.14 C-0.49 38.3, 4.07 29.35, 9.38 22.18 C14.68 15, 25.59 7.81, 30.94 4.11 C36.3 0.41, 38.93 0.51, 41.51 -0.03 C44.09 -0.57, 46.05 0.05, 46.43 0.87 M40.94 1.53 C48.74 -0.34, 60.25 0.56, 68.52 3.89 C76.78 7.23, 85.3 14.15, 90.51 21.54 C95.71 28.92, 99.17 39.56, 99.73 48.2 C100.29 56.83, 97.86 65.69, 93.86 73.36 C89.86 81.02, 83.18 89.65, 75.74 94.18 C68.29 98.7, 58.02 100.83, 49.21 100.52 C40.4 100.21, 30.4 97.11, 22.85 92.3 C15.31 87.48, 7.5 79.9, 3.94 71.62 C0.38 63.33, 0.13 51.37, 1.51 42.58 C2.88 33.8, 6.72 25.34, 12.17 18.9 C17.62 12.46, 29.22 7.05, 34.23 3.94 C39.24 0.83, 41.03 0.53, 42.22 0.24 C43.41 -0.05, 41.49 1.56, 41.37 2.2"fill="none"stroke="#000000"stroke-width="1"diff --git a/yarn.lock b/yarn.lockindex a9b1ecb047..0a45201de9 100644--- a/yarn.lock+++ b/yarn.lock@@ -10852,10 +10852,10 @@ rollup@^1.31.1:"@types/node" "*"acorn "^7.1.0"- version "4.4.0"- resolved "https://registry.yarnpkg.com/roughjs/-/roughjs-4.4.0.tgz#56ee4b3c8a453af8debc03b81e636dcab9efcdb2"- integrity sha512-mDjSVK/RdRwdi4Dw9u5eoMiEsblEr6y2ZpOSyYa5IAAPbpUqplPezWbj4+J2gJlnxKKcRX+ccH26LFDyplhXXQ==+ version "4.4.1"+ resolved "https://registry.yarnpkg.com/roughjs/-/roughjs-4.4.1.tgz#3af79db6abdcb0f32764d1138f99dc9e01027736"+ integrity sha512-/RZvyVquID319VDc9HsF8wn8VPpbMBVdr4NMCi7mta9UeBBeqP6h5Hg4GZXG29DL6jwTkfMjyth/MF7Hn6Sq/w==dependencies:path-data-parser "^0.1.0"points-on-curve "^0.2.0"