mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Add stats for nerds (#2453)
Co-authored-by: David Luzar <luzar.david@gmail.com> Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
parent
5cdb9bd2ed
commit
dd993adc5c
15 changed files with 361 additions and 33 deletions
|
@ -66,6 +66,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -525,6 +526,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -966,6 +968,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -1735,6 +1738,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -1935,6 +1939,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -2379,6 +2384,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -2620,6 +2626,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -2778,6 +2785,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -3243,6 +3251,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -3545,6 +3554,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -3742,6 +3752,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -3975,6 +3986,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -4219,6 +4231,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -4613,6 +4626,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -4877,6 +4891,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -5195,6 +5210,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -5372,6 +5388,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -5527,6 +5544,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -5978,6 +5996,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -6280,6 +6299,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -8256,6 +8276,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -8610,6 +8631,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -8854,6 +8876,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -9099,6 +9122,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -9400,6 +9424,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -9555,6 +9580,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -9710,6 +9736,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -9865,6 +9892,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -10046,6 +10074,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -10227,6 +10256,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -10408,6 +10438,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -10589,6 +10620,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -10744,6 +10776,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -10899,6 +10932,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -11080,6 +11114,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -11235,6 +11270,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -11427,6 +11463,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -12127,6 +12164,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -12367,6 +12405,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": true,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -12458,6 +12497,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -12551,6 +12591,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -12706,6 +12747,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -13005,6 +13047,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -13304,6 +13347,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -13457,6 +13501,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -13646,6 +13691,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -13892,6 +13938,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -14201,6 +14248,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -15031,6 +15079,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -15330,6 +15379,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -15633,6 +15683,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -16002,6 +16053,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -16166,6 +16218,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -16472,6 +16525,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -16705,6 +16759,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -16953,6 +17008,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -17261,6 +17317,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -17354,6 +17411,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -17520,6 +17578,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -18319,6 +18378,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -18412,6 +18472,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -19181,6 +19242,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -19575,6 +19637,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -19815,6 +19878,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": true,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -19908,6 +19972,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -20389,6 +20454,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
@ -20480,6 +20546,7 @@ Object {
|
|||
"shouldAddWatermark": false,
|
||||
"shouldCacheIgnoreZoom": false,
|
||||
"showShortcutsDialog": false,
|
||||
"showStats": false,
|
||||
"startBoundElement": null,
|
||||
"suggestedBindings": Array [],
|
||||
"viewBackgroundColor": "#ffffff",
|
||||
|
|
|
@ -1,23 +1,23 @@
|
|||
import { reseed } from "../random";
|
||||
import { queryByText } from "@testing-library/react";
|
||||
import React from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
import { copiedStyles } from "../actions/actionStyles";
|
||||
import { ExcalidrawElement } from "../element/types";
|
||||
import { setLanguage, t } from "../i18n";
|
||||
import { CODES, KEYS } from "../keys";
|
||||
import Excalidraw from "../packages/excalidraw/index";
|
||||
import { reseed } from "../random";
|
||||
import * as Renderer from "../renderer/renderScene";
|
||||
import { setDateTimeForTests } from "../utils";
|
||||
import { API } from "./helpers/api";
|
||||
import { Keyboard, Pointer, UI } from "./helpers/ui";
|
||||
import {
|
||||
waitFor,
|
||||
render,
|
||||
screen,
|
||||
fireEvent,
|
||||
GlobalTestState,
|
||||
render,
|
||||
screen,
|
||||
waitFor,
|
||||
} from "./test-utils";
|
||||
import Excalidraw from "../packages/excalidraw/index";
|
||||
import { setLanguage } from "../i18n";
|
||||
import { setDateTimeForTests } from "../utils";
|
||||
import { ExcalidrawElement } from "../element/types";
|
||||
import { queryByText } from "@testing-library/react";
|
||||
import { copiedStyles } from "../actions/actionStyles";
|
||||
import { UI, Pointer, Keyboard } from "./helpers/ui";
|
||||
import { API } from "./helpers/api";
|
||||
import { CODES, KEYS } from "../keys";
|
||||
|
||||
const { h } = window;
|
||||
|
||||
|
@ -633,10 +633,14 @@ describe("regression tests", () => {
|
|||
});
|
||||
const contextMenu = document.querySelector(".context-menu");
|
||||
const options = contextMenu?.querySelectorAll(".context-menu-option");
|
||||
const expectedOptions = ["Select all", "Toggle grid mode"];
|
||||
const expectedOptions = [
|
||||
t("labels.selectAll"),
|
||||
t("labels.toggleGridMode"),
|
||||
t("labels.toggleStats"),
|
||||
];
|
||||
|
||||
expect(contextMenu).not.toBeNull();
|
||||
expect(options?.length).toBe(2);
|
||||
expect(options?.length).toBe(3);
|
||||
expect(options?.item(0).textContent).toBe(expectedOptions[0]);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue