fix: remove dependency of t from appState.name

This commit is contained in:
Aakansha Doshi 2024-02-02 12:20:08 +05:30
parent 0c3dffb082
commit 0a34093dce
6 changed files with 317 additions and 315 deletions

View File

@ -19,6 +19,7 @@ import { nativeFileSystemSupported } from "../data/filesystem";
import { Theme } from "../element/types"; import { Theme } from "../element/types";
import "../components/ToolIcon.scss"; import "../components/ToolIcon.scss";
import { getDateTime } from "../utils";
export const actionChangeProjectName = register({ export const actionChangeProjectName = register({
name: "changeProjectName", name: "changeProjectName",
@ -29,7 +30,7 @@ export const actionChangeProjectName = register({
PanelComponent: ({ appState, updateData, appProps, data }) => ( PanelComponent: ({ appState, updateData, appProps, data }) => (
<ProjectName <ProjectName
label={t("labels.fileTitle")} label={t("labels.fileTitle")}
value={appState.name || "Unnamed"} value={appState.name || `${t("labels.untitled")}-${getDateTime()}`}
onChange={(name: string) => updateData(name)} onChange={(name: string) => updateData(name)}
isNameEditable={ isNameEditable={
typeof appProps.name === "undefined" && !appState.viewModeEnabled typeof appProps.name === "undefined" && !appState.viewModeEnabled

View File

@ -7,9 +7,7 @@ import {
EXPORT_SCALES, EXPORT_SCALES,
THEME, THEME,
} from "./constants"; } from "./constants";
import { t } from "./i18n";
import { AppState, NormalizedZoomValue } from "./types"; import { AppState, NormalizedZoomValue } from "./types";
import { getDateTime } from "./utils";
const defaultExportScale = EXPORT_SCALES.includes(devicePixelRatio) const defaultExportScale = EXPORT_SCALES.includes(devicePixelRatio)
? devicePixelRatio ? devicePixelRatio
@ -65,7 +63,7 @@ export const getDefaultAppState = (): Omit<
isRotating: false, isRotating: false,
lastPointerDownWith: "mouse", lastPointerDownWith: "mouse",
multiElement: null, multiElement: null,
name: `${t("labels.untitled")}-${getDateTime()}`, name: "",
contextMenu: null, contextMenu: null,
openMenu: null, openMenu: null,
openPopup: null, openPopup: null,

View File

@ -34,7 +34,7 @@ import { Tooltip } from "./Tooltip";
import "./ImageExportDialog.scss"; import "./ImageExportDialog.scss";
import { useAppProps } from "./App"; import { useAppProps } from "./App";
import { FilledButton } from "./FilledButton"; import { FilledButton } from "./FilledButton";
import { cloneJSON } from "../utils"; import { cloneJSON, getDateTime } from "../utils";
import { prepareElementsForExport } from "../data"; import { prepareElementsForExport } from "../data";
const supportsContextFilters = const supportsContextFilters =
@ -73,7 +73,9 @@ const ImageExportModal = ({
); );
const appProps = useAppProps(); const appProps = useAppProps();
const [projectName, setProjectName] = useState(appStateSnapshot.name); const [projectName, setProjectName] = useState(
appStateSnapshot.name || `${t("labels.untitled")}-${getDateTime()}`,
);
const [exportSelectionOnly, setExportSelectionOnly] = useState(hasSelection); const [exportSelectionOnly, setExportSelectionOnly] = useState(hasSelection);
const [exportWithBackground, setExportWithBackground] = useState( const [exportWithBackground, setExportWithBackground] = useState(
appStateSnapshot.exportBackground, appStateSnapshot.exportBackground,

View File

@ -1,11 +1,12 @@
import "./TextInput.scss"; import "./TextInput.scss";
import React, { useState } from "react"; import React, { useState } from "react";
import { focusNearestParent } from "../utils"; import { focusNearestParent, getDateTime } from "../utils";
import "./ProjectName.scss"; import "./ProjectName.scss";
import { useExcalidrawContainer } from "./App"; import { useExcalidrawContainer } from "./App";
import { KEYS } from "../keys"; import { KEYS } from "../keys";
import { t } from "../i18n";
type Props = { type Props = {
value: string; value: string;

View File

@ -328,7 +328,7 @@ exports[`contextMenu element > right-clicking on a group should select whole gro
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653", "name": "",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -459,7 +459,7 @@ exports[`contextMenu element > right-clicking on a group should select whole gro
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -529,7 +529,7 @@ exports[`contextMenu element > selecting 'Add to library' in context menu adds e
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653", "name": "",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -620,7 +620,7 @@ exports[`contextMenu element > selecting 'Add to library' in context menu adds e
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -631,7 +631,7 @@ exports[`contextMenu element > selecting 'Add to library' in context menu adds e
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -733,7 +733,7 @@ exports[`contextMenu element > selecting 'Bring forward' in context menu brings
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653", "name": "",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -854,7 +854,7 @@ exports[`contextMenu element > selecting 'Bring forward' in context menu brings
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -865,7 +865,7 @@ exports[`contextMenu element > selecting 'Bring forward' in context menu brings
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -908,7 +908,7 @@ exports[`contextMenu element > selecting 'Bring forward' in context menu brings
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -980,7 +980,7 @@ exports[`contextMenu element > selecting 'Bring forward' in context menu brings
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -1111,7 +1111,7 @@ exports[`contextMenu element > selecting 'Bring to front' in context menu brings
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653", "name": "",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -1232,7 +1232,7 @@ exports[`contextMenu element > selecting 'Bring to front' in context menu brings
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -1243,7 +1243,7 @@ exports[`contextMenu element > selecting 'Bring to front' in context menu brings
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -1286,7 +1286,7 @@ exports[`contextMenu element > selecting 'Bring to front' in context menu brings
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -1358,7 +1358,7 @@ exports[`contextMenu element > selecting 'Bring to front' in context menu brings
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -1489,7 +1489,7 @@ exports[`contextMenu element > selecting 'Copy styles' in context menu copies st
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653", "name": "",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -1580,7 +1580,7 @@ exports[`contextMenu element > selecting 'Copy styles' in context menu copies st
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -1591,7 +1591,7 @@ exports[`contextMenu element > selecting 'Copy styles' in context menu copies st
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -1693,7 +1693,7 @@ exports[`contextMenu element > selecting 'Delete' in context menu deletes elemen
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653", "name": "",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -1780,7 +1780,7 @@ exports[`contextMenu element > selecting 'Delete' in context menu deletes elemen
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -1791,7 +1791,7 @@ exports[`contextMenu element > selecting 'Delete' in context menu deletes elemen
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -1834,7 +1834,7 @@ exports[`contextMenu element > selecting 'Delete' in context menu deletes elemen
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -1934,7 +1934,7 @@ exports[`contextMenu element > selecting 'Duplicate' in context menu duplicates
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653", "name": "",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -2055,7 +2055,7 @@ exports[`contextMenu element > selecting 'Duplicate' in context menu duplicates
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -2066,7 +2066,7 @@ exports[`contextMenu element > selecting 'Duplicate' in context menu duplicates
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -2109,7 +2109,7 @@ exports[`contextMenu element > selecting 'Duplicate' in context menu duplicates
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id0_copy": true, "id0_copy": true,
}, },
@ -2240,7 +2240,7 @@ exports[`contextMenu element > selecting 'Group selection' in context menu group
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653", "name": "",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -2370,7 +2370,7 @@ exports[`contextMenu element > selecting 'Group selection' in context menu group
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -2381,7 +2381,7 @@ exports[`contextMenu element > selecting 'Group selection' in context menu group
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -2424,7 +2424,7 @@ exports[`contextMenu element > selecting 'Group selection' in context menu group
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -2496,7 +2496,7 @@ exports[`contextMenu element > selecting 'Group selection' in context menu group
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
"id1": true, "id1": true,
@ -2634,7 +2634,7 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653", "name": "",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -2757,7 +2757,7 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -2768,7 +2768,7 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -2811,7 +2811,7 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -2883,7 +2883,7 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -2955,7 +2955,7 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -3027,7 +3027,7 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -3099,7 +3099,7 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -3171,7 +3171,7 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -3243,7 +3243,7 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -3315,7 +3315,7 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -3446,7 +3446,7 @@ exports[`contextMenu element > selecting 'Send backward' in context menu sends e
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653", "name": "",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -3567,7 +3567,7 @@ exports[`contextMenu element > selecting 'Send backward' in context menu sends e
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -3578,7 +3578,7 @@ exports[`contextMenu element > selecting 'Send backward' in context menu sends e
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -3621,7 +3621,7 @@ exports[`contextMenu element > selecting 'Send backward' in context menu sends e
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -3693,7 +3693,7 @@ exports[`contextMenu element > selecting 'Send backward' in context menu sends e
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -3824,7 +3824,7 @@ exports[`contextMenu element > selecting 'Send to back' in context menu sends el
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653", "name": "",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -3945,7 +3945,7 @@ exports[`contextMenu element > selecting 'Send to back' in context menu sends el
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -3956,7 +3956,7 @@ exports[`contextMenu element > selecting 'Send to back' in context menu sends el
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -3999,7 +3999,7 @@ exports[`contextMenu element > selecting 'Send to back' in context menu sends el
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -4071,7 +4071,7 @@ exports[`contextMenu element > selecting 'Send to back' in context menu sends el
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -4202,7 +4202,7 @@ exports[`contextMenu element > selecting 'Ungroup selection' in context menu ung
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653", "name": "",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -4326,7 +4326,7 @@ exports[`contextMenu element > selecting 'Ungroup selection' in context menu ung
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -4337,7 +4337,7 @@ exports[`contextMenu element > selecting 'Ungroup selection' in context menu ung
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -4380,7 +4380,7 @@ exports[`contextMenu element > selecting 'Ungroup selection' in context menu ung
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -4452,7 +4452,7 @@ exports[`contextMenu element > selecting 'Ungroup selection' in context menu ung
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
"id1": true, "id1": true,
@ -4531,7 +4531,7 @@ exports[`contextMenu element > selecting 'Ungroup selection' in context menu ung
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
"id1": true, "id1": true,
@ -4936,7 +4936,7 @@ exports[`contextMenu element > shows 'Group selection' in context menu for multi
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653", "name": "",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -5060,7 +5060,7 @@ exports[`contextMenu element > shows 'Group selection' in context menu for multi
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -5071,7 +5071,7 @@ exports[`contextMenu element > shows 'Group selection' in context menu for multi
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -5114,7 +5114,7 @@ exports[`contextMenu element > shows 'Group selection' in context menu for multi
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -5518,7 +5518,7 @@ exports[`contextMenu element > shows 'Ungroup selection' in context menu for gro
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653", "name": "",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -5648,7 +5648,7 @@ exports[`contextMenu element > shows 'Ungroup selection' in context menu for gro
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -5659,7 +5659,7 @@ exports[`contextMenu element > shows 'Ungroup selection' in context menu for gro
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -5702,7 +5702,7 @@ exports[`contextMenu element > shows 'Ungroup selection' in context menu for gro
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -5774,7 +5774,7 @@ exports[`contextMenu element > shows 'Ungroup selection' in context menu for gro
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
"id1": true, "id1": true,
@ -6039,7 +6039,7 @@ exports[`contextMenu element > shows context menu for canvas > [end of test] app
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653", "name": "",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -6097,7 +6097,7 @@ exports[`contextMenu element > shows context menu for canvas > [end of test] his
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -6440,7 +6440,7 @@ exports[`contextMenu element > shows context menu for element > [end of test] ap
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653", "name": "",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -6816,7 +6816,7 @@ exports[`contextMenu element > shows context menu for element > [end of test] ap
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653", "name": "",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -6972,7 +6972,7 @@ exports[`contextMenu element > shows context menu for element > [end of test] hi
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -6983,7 +6983,7 @@ exports[`contextMenu element > shows context menu for element > [end of test] hi
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -7035,7 +7035,7 @@ exports[`contextMenu element > shows context menu for element > [end of test] hi
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653", "name": "",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",