diff --git a/src/data/restore.ts b/src/data/restore.ts index 8bf2bf9721..fc123a69d6 100644 --- a/src/data/restore.ts +++ b/src/data/restore.ts @@ -28,6 +28,7 @@ import { FONT_FAMILY, ROUNDNESS, DEFAULT_SIDEBAR, + DEFAULT_ELEMENT_PROPS, } from "../constants"; import { getDefaultAppState } from "../appState"; import { LinearElementEditor } from "../element/linearElementEditor"; @@ -81,7 +82,7 @@ const getFontFamilyByName = (fontFamilyName: string): FontFamilyValues => { return DEFAULT_FONT_FAMILY; }; -const restoreElementWithProperties = < +export const restoreElementWithProperties = < T extends Required> & { customData?: ExcalidrawElement["customData"]; /** @deprecated */ @@ -112,18 +113,20 @@ const restoreElementWithProperties = < versionNonce: element.versionNonce ?? 0, isDeleted: element.isDeleted ?? false, id: element.id || randomId(), - fillStyle: element.fillStyle || "hachure", - strokeWidth: element.strokeWidth || 1, - strokeStyle: element.strokeStyle ?? "solid", - roughness: element.roughness ?? 1, - opacity: element.opacity == null ? 100 : element.opacity, + fillStyle: element.fillStyle || DEFAULT_ELEMENT_PROPS.fillStyle, + strokeWidth: element.strokeWidth || DEFAULT_ELEMENT_PROPS.strokeWidth, + strokeStyle: element.strokeStyle ?? DEFAULT_ELEMENT_PROPS.strokeStyle, + roughness: element.roughness ?? DEFAULT_ELEMENT_PROPS.roughness, + opacity: + element.opacity == null ? DEFAULT_ELEMENT_PROPS.opacity : element.opacity, angle: element.angle || 0, x: extra.x ?? element.x ?? 0, y: extra.y ?? element.y ?? 0, - strokeColor: element.strokeColor || oc.black, - backgroundColor: element.backgroundColor || "transparent", - width: element.width, - height: element.height, + strokeColor: element.strokeColor || DEFAULT_ELEMENT_PROPS.strokeColor, + backgroundColor: + element.backgroundColor || DEFAULT_ELEMENT_PROPS.backgroundColor, + width: element.width || 0, + height: element.height || 0, seed: element.seed ?? 1, groupIds: element.groupIds ?? [], roundness: element.roundness @@ -196,7 +199,6 @@ const restoreElement = ( lineHeight, ); element = restoreElementWithProperties(element, { - type: "text", fontSize, fontFamily, text, diff --git a/src/element/newElement.ts b/src/element/newElement.ts index e46d096c2a..4b383fb2c7 100644 --- a/src/element/newElement.ts +++ b/src/element/newElement.ts @@ -49,6 +49,7 @@ import { import { isArrowElement } from "./typeChecks"; import { MarkOptional, Merge, Mutable } from "../utility-types"; import { ImportedDataState } from "../data/types"; +import { restoreElementWithProperties } from "../data/restore"; export const ELEMENTS_SUPPORTING_PROGRAMMATIC_API = [ "rectangle", @@ -103,7 +104,6 @@ const _newElementBase = ( ...rest }: ElementConstructorOpts & Omit, "type">, ) => { - console.log("width", width); // assign type to guard against excess properties const element: Merge = { id: rest.id || randomId(), @@ -668,8 +668,7 @@ export const convertToExcalidrawElements = ( return; } if (!ELEMENTS_SUPPORTING_PROGRAMMATIC_API.includes(element.type)) { - //@ts-ignore - res.push(element); + res.push(element as ExcalidrawElement); return; } //@ts-ignore @@ -681,12 +680,11 @@ export const convertToExcalidrawElements = ( let excalidrawElement; const { type, ...rest } = element; if (element.type === "text") { - //@ts-ignore - excalidrawElement = newTextElement({ + excalidrawElement = { ...element, - }); + } as ExcalidrawTextElement; } else if (type === "arrow" || type === "line") { - excalidrawElement = newLinearElement({ + excalidrawElement = { type, width: 200, height: 24, @@ -696,10 +694,9 @@ export const convertToExcalidrawElements = ( [200, 0], ], ...rest, - }); + } as ExcalidrawLinearElement; } else { - //@ts-ignore - excalidrawElement = newElement({ + excalidrawElement = { ...element, width: element?.width || @@ -711,9 +708,8 @@ export const convertToExcalidrawElements = ( (ELEMENTS_SUPPORTING_PROGRAMMATIC_API.includes(element.type) ? 100 : 0), - }); + } as ExcalidrawGenericElement; } - res.push(excalidrawElement); } }); diff --git a/src/element/textElement.ts b/src/element/textElement.ts index e0419c81a2..fc9ea561dc 100644 --- a/src/element/textElement.ts +++ b/src/element/textElement.ts @@ -91,7 +91,6 @@ export const redrawTextBoundingBox = ( textElement as ExcalidrawTextElementWithContainer, ); const maxContainerWidth = getBoundTextMaxWidth(container); - console.log(metrics, maxContainerWidth, container); if (metrics.height > maxContainerHeight) { const nextHeight = computeContainerDimensionForBoundText( metrics.height, diff --git a/src/packages/excalidraw/example/App.tsx b/src/packages/excalidraw/example/App.tsx index 85993a6831..464278570b 100644 --- a/src/packages/excalidraw/example/App.tsx +++ b/src/packages/excalidraw/example/App.tsx @@ -187,28 +187,17 @@ export default function App({ appTitle, useCustom, customArgs }: AppProps) { [ { type: "rectangle", - version: 141, - versionNonce: 361174001, - isDeleted: false, - id: "oDVXy8D6rom3H1-LLH2-f", fillStyle: "hachure", strokeWidth: 1, strokeStyle: "solid", roughness: 1, - opacity: 100, angle: 0, x: 100.50390625, y: 93.67578125, strokeColor: "#c92a2a", - backgroundColor: "transparent", width: 186.47265625, height: 141.9765625, seed: 1968410350, - groupIds: [], - boundElements: null, - locked: false, - link: null, - updated: 1, roundness: { type: ROUNDNESS.ADAPTIVE_RADIUS, value: 32, diff --git a/src/tests/__snapshots__/contextmenu.test.tsx.snap b/src/tests/__snapshots__/contextmenu.test.tsx.snap index 43e4c0f7da..531fb16d22 100644 --- a/src/tests/__snapshots__/contextmenu.test.tsx.snap +++ b/src/tests/__snapshots__/contextmenu.test.tsx.snap @@ -559,6 +559,786 @@ Object { } `; +exports[`contextMenu element selecting 'Add to library' in context menu adds element to library: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`contextMenu element selecting 'Add to library' in context menu adds element to library: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`contextMenu element selecting 'Add to library' in context menu adds element to library: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`contextMenu element selecting 'Add to library' in context menu adds element to library: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`contextMenu element selecting 'Add to library' in context menu adds element to library: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`contextMenu element selecting 'Add to library' in context menu adds element to library: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`contextMenu element selecting 'Add to library' in context menu adds element to library: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`contextMenu element selecting 'Add to library' in context menu adds element to library: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`contextMenu element selecting 'Add to library' in context menu adds element to library: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`contextMenu element selecting 'Add to library' in context menu adds element to library: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`contextMenu element selecting 'Add to library' in context menu adds element to library: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`contextMenu element selecting 'Add to library' in context menu adds element to library: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`contextMenu element selecting 'Add to library' in context menu adds element to library: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`contextMenu element selecting 'Add to library' in context menu adds element to library: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`contextMenu element selecting 'Add to library' in context menu adds element to library: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`contextMenu element selecting 'Add to library' in context menu adds element to library: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`contextMenu element selecting 'Add to library' in context menu adds element to library: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`contextMenu element selecting 'Add to library' in context menu adds element to library: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`contextMenu element selecting 'Add to library' in context menu adds element to library: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`contextMenu element selecting 'Add to library' in context menu adds element to library: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`contextMenu element selecting 'Add to library' in context menu adds element to library: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 20, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1177973545, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 888958951, + "width": 20, + "x": -80, + "y": -10, +} +`; + exports[`contextMenu element selecting 'Add to library' in context menu adds element to library: [end of test] history 1`] = ` Object { "recording": false, @@ -774,6 +1554,788 @@ Object { } `; +exports[`contextMenu element selecting 'Bring forward' in context menu brings element forward: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`contextMenu element selecting 'Bring forward' in context menu brings element forward: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`contextMenu element selecting 'Bring forward' in context menu brings element forward: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`contextMenu element selecting 'Bring forward' in context menu brings element forward: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`contextMenu element selecting 'Bring forward' in context menu brings element forward: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`contextMenu element selecting 'Bring forward' in context menu brings element forward: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`contextMenu element selecting 'Bring forward' in context menu brings element forward: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`contextMenu element selecting 'Bring forward' in context menu brings element forward: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`contextMenu element selecting 'Bring forward' in context menu brings element forward: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`contextMenu element selecting 'Bring forward' in context menu brings element forward: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`contextMenu element selecting 'Bring forward' in context menu brings element forward: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`contextMenu element selecting 'Bring forward' in context menu brings element forward: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`contextMenu element selecting 'Bring forward' in context menu brings element forward: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`contextMenu element selecting 'Bring forward' in context menu brings element forward: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`contextMenu element selecting 'Bring forward' in context menu brings element forward: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`contextMenu element selecting 'Bring forward' in context menu brings element forward: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`contextMenu element selecting 'Bring forward' in context menu brings element forward: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`contextMenu element selecting 'Bring forward' in context menu brings element forward: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`contextMenu element selecting 'Bring forward' in context menu brings element forward: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`contextMenu element selecting 'Bring forward' in context menu brings element forward: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 20, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 2066753033, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 735304455, + "width": 20, + "x": -50, + "y": 20, +} +`; + +exports[`contextMenu element selecting 'Bring forward' in context menu brings element forward: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 20, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1177973545, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 271613161, + "width": 20, + "x": -80, + "y": -10, +} +`; + exports[`contextMenu element selecting 'Bring forward' in context menu brings element forward: [end of test] history 1`] = ` Object { "recording": false, @@ -1129,6 +2691,788 @@ Object { } `; +exports[`contextMenu element selecting 'Bring to front' in context menu brings element to front: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`contextMenu element selecting 'Bring to front' in context menu brings element to front: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`contextMenu element selecting 'Bring to front' in context menu brings element to front: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`contextMenu element selecting 'Bring to front' in context menu brings element to front: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`contextMenu element selecting 'Bring to front' in context menu brings element to front: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`contextMenu element selecting 'Bring to front' in context menu brings element to front: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`contextMenu element selecting 'Bring to front' in context menu brings element to front: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`contextMenu element selecting 'Bring to front' in context menu brings element to front: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`contextMenu element selecting 'Bring to front' in context menu brings element to front: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`contextMenu element selecting 'Bring to front' in context menu brings element to front: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`contextMenu element selecting 'Bring to front' in context menu brings element to front: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`contextMenu element selecting 'Bring to front' in context menu brings element to front: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`contextMenu element selecting 'Bring to front' in context menu brings element to front: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`contextMenu element selecting 'Bring to front' in context menu brings element to front: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`contextMenu element selecting 'Bring to front' in context menu brings element to front: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`contextMenu element selecting 'Bring to front' in context menu brings element to front: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`contextMenu element selecting 'Bring to front' in context menu brings element to front: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`contextMenu element selecting 'Bring to front' in context menu brings element to front: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`contextMenu element selecting 'Bring to front' in context menu brings element to front: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`contextMenu element selecting 'Bring to front' in context menu brings element to front: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 20, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 2066753033, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 735304455, + "width": 20, + "x": -50, + "y": 20, +} +`; + +exports[`contextMenu element selecting 'Bring to front' in context menu brings element to front: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 20, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1177973545, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 271613161, + "width": 20, + "x": -80, + "y": -10, +} +`; + exports[`contextMenu element selecting 'Bring to front' in context menu brings element to front: [end of test] history 1`] = ` Object { "recording": false, @@ -1455,6 +3799,786 @@ Object { } `; +exports[`contextMenu element selecting 'Copy styles' in context menu copies styles: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`contextMenu element selecting 'Copy styles' in context menu copies styles: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`contextMenu element selecting 'Copy styles' in context menu copies styles: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`contextMenu element selecting 'Copy styles' in context menu copies styles: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`contextMenu element selecting 'Copy styles' in context menu copies styles: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`contextMenu element selecting 'Copy styles' in context menu copies styles: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`contextMenu element selecting 'Copy styles' in context menu copies styles: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`contextMenu element selecting 'Copy styles' in context menu copies styles: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`contextMenu element selecting 'Copy styles' in context menu copies styles: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`contextMenu element selecting 'Copy styles' in context menu copies styles: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`contextMenu element selecting 'Copy styles' in context menu copies styles: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`contextMenu element selecting 'Copy styles' in context menu copies styles: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`contextMenu element selecting 'Copy styles' in context menu copies styles: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`contextMenu element selecting 'Copy styles' in context menu copies styles: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`contextMenu element selecting 'Copy styles' in context menu copies styles: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`contextMenu element selecting 'Copy styles' in context menu copies styles: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`contextMenu element selecting 'Copy styles' in context menu copies styles: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`contextMenu element selecting 'Copy styles' in context menu copies styles: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`contextMenu element selecting 'Copy styles' in context menu copies styles: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`contextMenu element selecting 'Copy styles' in context menu copies styles: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`contextMenu element selecting 'Copy styles' in context menu copies styles: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 20, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 888958951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 2066753033, + "width": 20, + "x": -80, + "y": -10, +} +`; + exports[`contextMenu element selecting 'Copy styles' in context menu copies styles: [end of test] history 1`] = ` Object { "recording": false, @@ -1637,6 +4761,786 @@ Object { } `; +exports[`contextMenu element selecting 'Delete' in context menu deletes element: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`contextMenu element selecting 'Delete' in context menu deletes element: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`contextMenu element selecting 'Delete' in context menu deletes element: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`contextMenu element selecting 'Delete' in context menu deletes element: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`contextMenu element selecting 'Delete' in context menu deletes element: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`contextMenu element selecting 'Delete' in context menu deletes element: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`contextMenu element selecting 'Delete' in context menu deletes element: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`contextMenu element selecting 'Delete' in context menu deletes element: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`contextMenu element selecting 'Delete' in context menu deletes element: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`contextMenu element selecting 'Delete' in context menu deletes element: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`contextMenu element selecting 'Delete' in context menu deletes element: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`contextMenu element selecting 'Delete' in context menu deletes element: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`contextMenu element selecting 'Delete' in context menu deletes element: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`contextMenu element selecting 'Delete' in context menu deletes element: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`contextMenu element selecting 'Delete' in context menu deletes element: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`contextMenu element selecting 'Delete' in context menu deletes element: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`contextMenu element selecting 'Delete' in context menu deletes element: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`contextMenu element selecting 'Delete' in context menu deletes element: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`contextMenu element selecting 'Delete' in context menu deletes element: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`contextMenu element selecting 'Delete' in context menu deletes element: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`contextMenu element selecting 'Delete' in context menu deletes element: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 20, + "id": "id21", + "isDeleted": true, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 888958951, + "width": 20, + "x": -80, + "y": -10, +} +`; + exports[`contextMenu element selecting 'Delete' in context menu deletes element: [end of test] history 1`] = ` Object { "recording": false, @@ -1892,6 +5796,788 @@ Object { } `; +exports[`contextMenu element selecting 'Duplicate' in context menu duplicates element: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`contextMenu element selecting 'Duplicate' in context menu duplicates element: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`contextMenu element selecting 'Duplicate' in context menu duplicates element: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`contextMenu element selecting 'Duplicate' in context menu duplicates element: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`contextMenu element selecting 'Duplicate' in context menu duplicates element: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`contextMenu element selecting 'Duplicate' in context menu duplicates element: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`contextMenu element selecting 'Duplicate' in context menu duplicates element: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`contextMenu element selecting 'Duplicate' in context menu duplicates element: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`contextMenu element selecting 'Duplicate' in context menu duplicates element: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`contextMenu element selecting 'Duplicate' in context menu duplicates element: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`contextMenu element selecting 'Duplicate' in context menu duplicates element: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`contextMenu element selecting 'Duplicate' in context menu duplicates element: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`contextMenu element selecting 'Duplicate' in context menu duplicates element: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`contextMenu element selecting 'Duplicate' in context menu duplicates element: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`contextMenu element selecting 'Duplicate' in context menu duplicates element: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`contextMenu element selecting 'Duplicate' in context menu duplicates element: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`contextMenu element selecting 'Duplicate' in context menu duplicates element: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`contextMenu element selecting 'Duplicate' in context menu duplicates element: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`contextMenu element selecting 'Duplicate' in context menu duplicates element: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`contextMenu element selecting 'Duplicate' in context menu duplicates element: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 20, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1177973545, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 888958951, + "width": 20, + "x": -80, + "y": -10, +} +`; + +exports[`contextMenu element selecting 'Duplicate' in context menu duplicates element: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 20, + "id": "id21_copy", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 2066753033, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 888958951, + "width": 20, + "x": -70, + "y": 0, +} +`; + exports[`contextMenu element selecting 'Duplicate' in context menu duplicates element: [end of test] history 1`] = ` Object { "recording": false, @@ -2187,6 +6873,792 @@ Object { } `; +exports[`contextMenu element selecting 'Group selection' in context menu groups selected elements: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`contextMenu element selecting 'Group selection' in context menu groups selected elements: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`contextMenu element selecting 'Group selection' in context menu groups selected elements: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`contextMenu element selecting 'Group selection' in context menu groups selected elements: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`contextMenu element selecting 'Group selection' in context menu groups selected elements: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`contextMenu element selecting 'Group selection' in context menu groups selected elements: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`contextMenu element selecting 'Group selection' in context menu groups selected elements: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`contextMenu element selecting 'Group selection' in context menu groups selected elements: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`contextMenu element selecting 'Group selection' in context menu groups selected elements: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`contextMenu element selecting 'Group selection' in context menu groups selected elements: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`contextMenu element selecting 'Group selection' in context menu groups selected elements: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`contextMenu element selecting 'Group selection' in context menu groups selected elements: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`contextMenu element selecting 'Group selection' in context menu groups selected elements: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`contextMenu element selecting 'Group selection' in context menu groups selected elements: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`contextMenu element selecting 'Group selection' in context menu groups selected elements: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`contextMenu element selecting 'Group selection' in context menu groups selected elements: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`contextMenu element selecting 'Group selection' in context menu groups selected elements: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`contextMenu element selecting 'Group selection' in context menu groups selected elements: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`contextMenu element selecting 'Group selection' in context menu groups selected elements: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`contextMenu element selecting 'Group selection' in context menu groups selected elements: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id24", + ], + "height": 20, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1177973545, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 651223591, + "width": 20, + "x": -80, + "y": -10, +} +`; + +exports[`contextMenu element selecting 'Group selection' in context menu groups selected elements: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id24", + ], + "height": 20, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 2066753033, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 348321737, + "width": 20, + "x": -50, + "y": 20, +} +`; + exports[`contextMenu element selecting 'Group selection' in context menu groups selected elements: [end of test] history 1`] = ` Object { "recording": false, @@ -2552,6 +8024,788 @@ Object { } `; +exports[`contextMenu element selecting 'Paste styles' in context menu pastes styles: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`contextMenu element selecting 'Paste styles' in context menu pastes styles: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`contextMenu element selecting 'Paste styles' in context menu pastes styles: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`contextMenu element selecting 'Paste styles' in context menu pastes styles: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`contextMenu element selecting 'Paste styles' in context menu pastes styles: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`contextMenu element selecting 'Paste styles' in context menu pastes styles: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`contextMenu element selecting 'Paste styles' in context menu pastes styles: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`contextMenu element selecting 'Paste styles' in context menu pastes styles: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`contextMenu element selecting 'Paste styles' in context menu pastes styles: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`contextMenu element selecting 'Paste styles' in context menu pastes styles: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`contextMenu element selecting 'Paste styles' in context menu pastes styles: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`contextMenu element selecting 'Paste styles' in context menu pastes styles: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`contextMenu element selecting 'Paste styles' in context menu pastes styles: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`contextMenu element selecting 'Paste styles' in context menu pastes styles: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`contextMenu element selecting 'Paste styles' in context menu pastes styles: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`contextMenu element selecting 'Paste styles' in context menu pastes styles: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`contextMenu element selecting 'Paste styles' in context menu pastes styles: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`contextMenu element selecting 'Paste styles' in context menu pastes styles: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`contextMenu element selecting 'Paste styles' in context menu pastes styles: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`contextMenu element selecting 'Paste styles' in context menu pastes styles: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 20, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1177973545, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 888958951, + "width": 20, + "x": -80, + "y": -10, +} +`; + +exports[`contextMenu element selecting 'Paste styles' in context menu pastes styles: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#e64980", + "boundElements": null, + "fillStyle": "cross-hatch", + "groupIds": Array [], + "height": 20, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 60, + "roughness": 2, + "roundness": Object { + "type": 3, + }, + "seed": 1532871783, + "strokeColor": "#c92a2a", + "strokeStyle": "dotted", + "strokeWidth": 2, + "type": "rectangle", + "updated": 1, + "version": 9, + "versionNonce": 337026951, + "width": 20, + "x": -50, + "y": 20, +} +`; + exports[`contextMenu element selecting 'Paste styles' in context menu pastes styles: [end of test] history 1`] = ` Object { "recording": false, @@ -3397,6 +9651,788 @@ Object { } `; +exports[`contextMenu element selecting 'Send backward' in context menu sends element backward: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`contextMenu element selecting 'Send backward' in context menu sends element backward: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`contextMenu element selecting 'Send backward' in context menu sends element backward: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`contextMenu element selecting 'Send backward' in context menu sends element backward: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`contextMenu element selecting 'Send backward' in context menu sends element backward: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`contextMenu element selecting 'Send backward' in context menu sends element backward: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`contextMenu element selecting 'Send backward' in context menu sends element backward: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`contextMenu element selecting 'Send backward' in context menu sends element backward: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`contextMenu element selecting 'Send backward' in context menu sends element backward: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`contextMenu element selecting 'Send backward' in context menu sends element backward: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`contextMenu element selecting 'Send backward' in context menu sends element backward: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`contextMenu element selecting 'Send backward' in context menu sends element backward: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`contextMenu element selecting 'Send backward' in context menu sends element backward: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`contextMenu element selecting 'Send backward' in context menu sends element backward: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`contextMenu element selecting 'Send backward' in context menu sends element backward: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`contextMenu element selecting 'Send backward' in context menu sends element backward: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`contextMenu element selecting 'Send backward' in context menu sends element backward: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`contextMenu element selecting 'Send backward' in context menu sends element backward: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`contextMenu element selecting 'Send backward' in context menu sends element backward: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`contextMenu element selecting 'Send backward' in context menu sends element backward: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 20, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 2066753033, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 271613161, + "width": 20, + "x": -50, + "y": 20, +} +`; + +exports[`contextMenu element selecting 'Send backward' in context menu sends element backward: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 20, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1177973545, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 888958951, + "width": 20, + "x": -80, + "y": -10, +} +`; + exports[`contextMenu element selecting 'Send backward' in context menu sends element backward: [end of test] history 1`] = ` Object { "recording": false, @@ -3752,6 +10788,786 @@ Object { } `; +exports[`contextMenu element selecting 'Send to back' in context menu sends element to back: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`contextMenu element selecting 'Send to back' in context menu sends element to back: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`contextMenu element selecting 'Send to back' in context menu sends element to back: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`contextMenu element selecting 'Send to back' in context menu sends element to back: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`contextMenu element selecting 'Send to back' in context menu sends element to back: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`contextMenu element selecting 'Send to back' in context menu sends element to back: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`contextMenu element selecting 'Send to back' in context menu sends element to back: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`contextMenu element selecting 'Send to back' in context menu sends element to back: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`contextMenu element selecting 'Send to back' in context menu sends element to back: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`contextMenu element selecting 'Send to back' in context menu sends element to back: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`contextMenu element selecting 'Send to back' in context menu sends element to back: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`contextMenu element selecting 'Send to back' in context menu sends element to back: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`contextMenu element selecting 'Send to back' in context menu sends element to back: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`contextMenu element selecting 'Send to back' in context menu sends element to back: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`contextMenu element selecting 'Send to back' in context menu sends element to back: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`contextMenu element selecting 'Send to back' in context menu sends element to back: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`contextMenu element selecting 'Send to back' in context menu sends element to back: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`contextMenu element selecting 'Send to back' in context menu sends element to back: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`contextMenu element selecting 'Send to back' in context menu sends element to back: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`contextMenu element selecting 'Send to back' in context menu sends element to back: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`contextMenu element selecting 'Send to back' in context menu sends element to back: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 20, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1177973545, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 888958951, + "width": 20, + "x": -80, + "y": -10, +} +`; + exports[`contextMenu element selecting 'Send to back' in context menu sends element to back: [end of test] history 1`] = ` Object { "recording": false, @@ -4111,6 +11927,788 @@ Object { } `; +exports[`contextMenu element selecting 'Ungroup selection' in context menu ungroups selected group: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`contextMenu element selecting 'Ungroup selection' in context menu ungroups selected group: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`contextMenu element selecting 'Ungroup selection' in context menu ungroups selected group: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`contextMenu element selecting 'Ungroup selection' in context menu ungroups selected group: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`contextMenu element selecting 'Ungroup selection' in context menu ungroups selected group: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`contextMenu element selecting 'Ungroup selection' in context menu ungroups selected group: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`contextMenu element selecting 'Ungroup selection' in context menu ungroups selected group: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`contextMenu element selecting 'Ungroup selection' in context menu ungroups selected group: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`contextMenu element selecting 'Ungroup selection' in context menu ungroups selected group: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`contextMenu element selecting 'Ungroup selection' in context menu ungroups selected group: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`contextMenu element selecting 'Ungroup selection' in context menu ungroups selected group: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`contextMenu element selecting 'Ungroup selection' in context menu ungroups selected group: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`contextMenu element selecting 'Ungroup selection' in context menu ungroups selected group: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`contextMenu element selecting 'Ungroup selection' in context menu ungroups selected group: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`contextMenu element selecting 'Ungroup selection' in context menu ungroups selected group: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`contextMenu element selecting 'Ungroup selection' in context menu ungroups selected group: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`contextMenu element selecting 'Ungroup selection' in context menu ungroups selected group: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`contextMenu element selecting 'Ungroup selection' in context menu ungroups selected group: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`contextMenu element selecting 'Ungroup selection' in context menu ungroups selected group: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`contextMenu element selecting 'Ungroup selection' in context menu ungroups selected group: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 20, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 888958951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 453187241, + "width": 20, + "x": -80, + "y": -10, +} +`; + +exports[`contextMenu element selecting 'Ungroup selection' in context menu ungroups selected group: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 20, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 735304455, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 1532871783, + "width": 20, + "x": -50, + "y": 20, +} +`; + exports[`contextMenu element selecting 'Ungroup selection' in context menu ungroups selected group: [end of test] history 1`] = ` Object { "recording": false, @@ -4811,6 +13409,788 @@ Object { } `; +exports[`contextMenu element shows 'Group selection' in context menu for multiple selected elements: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`contextMenu element shows 'Group selection' in context menu for multiple selected elements: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`contextMenu element shows 'Group selection' in context menu for multiple selected elements: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`contextMenu element shows 'Group selection' in context menu for multiple selected elements: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`contextMenu element shows 'Group selection' in context menu for multiple selected elements: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`contextMenu element shows 'Group selection' in context menu for multiple selected elements: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`contextMenu element shows 'Group selection' in context menu for multiple selected elements: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`contextMenu element shows 'Group selection' in context menu for multiple selected elements: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`contextMenu element shows 'Group selection' in context menu for multiple selected elements: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`contextMenu element shows 'Group selection' in context menu for multiple selected elements: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`contextMenu element shows 'Group selection' in context menu for multiple selected elements: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`contextMenu element shows 'Group selection' in context menu for multiple selected elements: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`contextMenu element shows 'Group selection' in context menu for multiple selected elements: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`contextMenu element shows 'Group selection' in context menu for multiple selected elements: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`contextMenu element shows 'Group selection' in context menu for multiple selected elements: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`contextMenu element shows 'Group selection' in context menu for multiple selected elements: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`contextMenu element shows 'Group selection' in context menu for multiple selected elements: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`contextMenu element shows 'Group selection' in context menu for multiple selected elements: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`contextMenu element shows 'Group selection' in context menu for multiple selected elements: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`contextMenu element shows 'Group selection' in context menu for multiple selected elements: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1177973545, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 888958951, + "width": 10, + "x": -80, + "y": -10, +} +`; + +exports[`contextMenu element shows 'Group selection' in context menu for multiple selected elements: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 2066753033, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 735304455, + "width": 10, + "x": -60, + "y": -10, +} +`; + exports[`contextMenu element shows 'Group selection' in context menu for multiple selected elements: [end of test] history 1`] = ` Object { "recording": false, @@ -5367,6 +14747,792 @@ Object { } `; +exports[`contextMenu element shows 'Ungroup selection' in context menu for group inside selected elements: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`contextMenu element shows 'Ungroup selection' in context menu for group inside selected elements: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`contextMenu element shows 'Ungroup selection' in context menu for group inside selected elements: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`contextMenu element shows 'Ungroup selection' in context menu for group inside selected elements: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`contextMenu element shows 'Ungroup selection' in context menu for group inside selected elements: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`contextMenu element shows 'Ungroup selection' in context menu for group inside selected elements: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`contextMenu element shows 'Ungroup selection' in context menu for group inside selected elements: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`contextMenu element shows 'Ungroup selection' in context menu for group inside selected elements: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`contextMenu element shows 'Ungroup selection' in context menu for group inside selected elements: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`contextMenu element shows 'Ungroup selection' in context menu for group inside selected elements: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`contextMenu element shows 'Ungroup selection' in context menu for group inside selected elements: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`contextMenu element shows 'Ungroup selection' in context menu for group inside selected elements: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`contextMenu element shows 'Ungroup selection' in context menu for group inside selected elements: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`contextMenu element shows 'Ungroup selection' in context menu for group inside selected elements: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`contextMenu element shows 'Ungroup selection' in context menu for group inside selected elements: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`contextMenu element shows 'Ungroup selection' in context menu for group inside selected elements: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`contextMenu element shows 'Ungroup selection' in context menu for group inside selected elements: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`contextMenu element shows 'Ungroup selection' in context menu for group inside selected elements: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`contextMenu element shows 'Ungroup selection' in context menu for group inside selected elements: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`contextMenu element shows 'Ungroup selection' in context menu for group inside selected elements: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id25", + ], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 888958951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 1189086535, + "width": 10, + "x": -80, + "y": -10, +} +`; + +exports[`contextMenu element shows 'Ungroup selection' in context menu for group inside selected elements: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id25", + ], + "height": 10, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 735304455, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 453187241, + "width": 10, + "x": -60, + "y": -10, +} +`; + exports[`contextMenu element shows 'Ungroup selection' in context menu for group inside selected elements: [end of test] history 1`] = ` Object { "recording": false, @@ -5772,6 +15938,784 @@ Object { } `; +exports[`contextMenu element shows context menu for canvas: [end of test] element 0 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id0", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 337897, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 10, + "y": 10, +} +`; + +exports[`contextMenu element shows context menu for canvas: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`contextMenu element shows context menu for canvas: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`contextMenu element shows context menu for canvas: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`contextMenu element shows context menu for canvas: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`contextMenu element shows context menu for canvas: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`contextMenu element shows context menu for canvas: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`contextMenu element shows context menu for canvas: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`contextMenu element shows context menu for canvas: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`contextMenu element shows context menu for canvas: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`contextMenu element shows context menu for canvas: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`contextMenu element shows context menu for canvas: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`contextMenu element shows context menu for canvas: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`contextMenu element shows context menu for canvas: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`contextMenu element shows context menu for canvas: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`contextMenu element shows context menu for canvas: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`contextMenu element shows context menu for canvas: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`contextMenu element shows context menu for canvas: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`contextMenu element shows context menu for canvas: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`contextMenu element shows context menu for canvas: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`contextMenu element shows context menu for canvas: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + exports[`contextMenu element shows context menu for canvas: [end of test] history 1`] = ` Object { "recording": false, @@ -6581,6 +17525,788 @@ Object { } `; +exports[`contextMenu element shows context menu for element: [end of test] element 1 2`] = ` +Object { + "angle": 0, + "backgroundColor": "red", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1177973545, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 0, + "y": 0, +} +`; + +exports[`contextMenu element shows context menu for element: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`contextMenu element shows context menu for element: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`contextMenu element shows context menu for element: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`contextMenu element shows context menu for element: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`contextMenu element shows context menu for element: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`contextMenu element shows context menu for element: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`contextMenu element shows context menu for element: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`contextMenu element shows context menu for element: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`contextMenu element shows context menu for element: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`contextMenu element shows context menu for element: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`contextMenu element shows context menu for element: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`contextMenu element shows context menu for element: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`contextMenu element shows context menu for element: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`contextMenu element shows context menu for element: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`contextMenu element shows context menu for element: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`contextMenu element shows context menu for element: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`contextMenu element shows context menu for element: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`contextMenu element shows context menu for element: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`contextMenu element shows context menu for element: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`contextMenu element shows context menu for element: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 20, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1177973545, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 888958951, + "width": 20, + "x": -80, + "y": -10, +} +`; + exports[`contextMenu element shows context menu for element: [end of test] history 1`] = ` Object { "recording": false, diff --git a/src/tests/__snapshots__/regressionTests.test.tsx.snap b/src/tests/__snapshots__/regressionTests.test.tsx.snap index 82d3dbbff3..60cfb79626 100644 --- a/src/tests/__snapshots__/regressionTests.test.tsx.snap +++ b/src/tests/__snapshots__/regressionTests.test.tsx.snap @@ -195,6 +195,790 @@ Object { } `; +exports[`given element A and group of elements B and given both are selected when user clicks on B, on pointer up only elements from B should be selected: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`given element A and group of elements B and given both are selected when user clicks on B, on pointer up only elements from B should be selected: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`given element A and group of elements B and given both are selected when user clicks on B, on pointer up only elements from B should be selected: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`given element A and group of elements B and given both are selected when user clicks on B, on pointer up only elements from B should be selected: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`given element A and group of elements B and given both are selected when user clicks on B, on pointer up only elements from B should be selected: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`given element A and group of elements B and given both are selected when user clicks on B, on pointer up only elements from B should be selected: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`given element A and group of elements B and given both are selected when user clicks on B, on pointer up only elements from B should be selected: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`given element A and group of elements B and given both are selected when user clicks on B, on pointer up only elements from B should be selected: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`given element A and group of elements B and given both are selected when user clicks on B, on pointer up only elements from B should be selected: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`given element A and group of elements B and given both are selected when user clicks on B, on pointer up only elements from B should be selected: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`given element A and group of elements B and given both are selected when user clicks on B, on pointer up only elements from B should be selected: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`given element A and group of elements B and given both are selected when user clicks on B, on pointer up only elements from B should be selected: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`given element A and group of elements B and given both are selected when user clicks on B, on pointer up only elements from B should be selected: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`given element A and group of elements B and given both are selected when user clicks on B, on pointer up only elements from B should be selected: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`given element A and group of elements B and given both are selected when user clicks on B, on pointer up only elements from B should be selected: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`given element A and group of elements B and given both are selected when user clicks on B, on pointer up only elements from B should be selected: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`given element A and group of elements B and given both are selected when user clicks on B, on pointer up only elements from B should be selected: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`given element A and group of elements B and given both are selected when user clicks on B, on pointer up only elements from B should be selected: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`given element A and group of elements B and given both are selected when user clicks on B, on pointer up only elements from B should be selected: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1177973545, + "width": 10, + "x": 30, + "y": 40, +} +`; + +exports[`given element A and group of elements B and given both are selected when user clicks on B, on pointer up only elements from B should be selected: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 888958951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 2066753033, + "width": 10, + "x": 30, + "y": 70, +} +`; + +exports[`given element A and group of elements B and given both are selected when user clicks on B, on pointer up only elements from B should be selected: [end of test] element 23 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id23", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 735304455, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 271613161, + "width": 10, + "x": 30, + "y": 100, +} +`; + exports[`given element A and group of elements B and given both are selected when user clicks on B, on pointer up only elements from B should be selected: [end of test] history 1`] = ` Object { "recording": false, @@ -738,6 +1522,794 @@ Object { } `; +exports[`given element A and group of elements B and given both are selected when user shift-clicks on B, on pointer up only element A should be selected: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`given element A and group of elements B and given both are selected when user shift-clicks on B, on pointer up only element A should be selected: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`given element A and group of elements B and given both are selected when user shift-clicks on B, on pointer up only element A should be selected: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`given element A and group of elements B and given both are selected when user shift-clicks on B, on pointer up only element A should be selected: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`given element A and group of elements B and given both are selected when user shift-clicks on B, on pointer up only element A should be selected: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`given element A and group of elements B and given both are selected when user shift-clicks on B, on pointer up only element A should be selected: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`given element A and group of elements B and given both are selected when user shift-clicks on B, on pointer up only element A should be selected: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`given element A and group of elements B and given both are selected when user shift-clicks on B, on pointer up only element A should be selected: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`given element A and group of elements B and given both are selected when user shift-clicks on B, on pointer up only element A should be selected: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`given element A and group of elements B and given both are selected when user shift-clicks on B, on pointer up only element A should be selected: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`given element A and group of elements B and given both are selected when user shift-clicks on B, on pointer up only element A should be selected: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`given element A and group of elements B and given both are selected when user shift-clicks on B, on pointer up only element A should be selected: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`given element A and group of elements B and given both are selected when user shift-clicks on B, on pointer up only element A should be selected: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`given element A and group of elements B and given both are selected when user shift-clicks on B, on pointer up only element A should be selected: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`given element A and group of elements B and given both are selected when user shift-clicks on B, on pointer up only element A should be selected: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`given element A and group of elements B and given both are selected when user shift-clicks on B, on pointer up only element A should be selected: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`given element A and group of elements B and given both are selected when user shift-clicks on B, on pointer up only element A should be selected: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`given element A and group of elements B and given both are selected when user shift-clicks on B, on pointer up only element A should be selected: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`given element A and group of elements B and given both are selected when user shift-clicks on B, on pointer up only element A should be selected: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 888958951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 2066753033, + "width": 100, + "x": 140, + "y": 150, +} +`; + +exports[`given element A and group of elements B and given both are selected when user shift-clicks on B, on pointer up only element A should be selected: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id25", + ], + "height": 100, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 348321737, + "width": 100, + "x": 30, + "y": 40, +} +`; + +exports[`given element A and group of elements B and given both are selected when user shift-clicks on B, on pointer up only element A should be selected: [end of test] element 23 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id25", + ], + "height": 100, + "id": "id23", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 735304455, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 1189086535, + "width": 100, + "x": 250, + "y": 260, +} +`; + exports[`given element A and group of elements B and given both are selected when user shift-clicks on B, on pointer up only element A should be selected: [end of test] history 1`] = ` Object { "recording": false, @@ -1267,6 +2839,759 @@ Object { } `; +exports[`regression tests Cmd/Ctrl-click exclusively select element under pointer: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests Cmd/Ctrl-click exclusively select element under pointer: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests Cmd/Ctrl-click exclusively select element under pointer: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests Cmd/Ctrl-click exclusively select element under pointer: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests Cmd/Ctrl-click exclusively select element under pointer: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests Cmd/Ctrl-click exclusively select element under pointer: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests Cmd/Ctrl-click exclusively select element under pointer: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests Cmd/Ctrl-click exclusively select element under pointer: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests Cmd/Ctrl-click exclusively select element under pointer: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests Cmd/Ctrl-click exclusively select element under pointer: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests Cmd/Ctrl-click exclusively select element under pointer: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests Cmd/Ctrl-click exclusively select element under pointer: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests Cmd/Ctrl-click exclusively select element under pointer: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests Cmd/Ctrl-click exclusively select element under pointer: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests Cmd/Ctrl-click exclusively select element under pointer: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests Cmd/Ctrl-click exclusively select element under pointer: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests Cmd/Ctrl-click exclusively select element under pointer: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests Cmd/Ctrl-click exclusively select element under pointer: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests Cmd/Ctrl-click exclusively select element under pointer: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1177973545, + "width": 10, + "x": 30, + "y": 40, +} +`; + +exports[`regression tests Cmd/Ctrl-click exclusively select element under pointer: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 888958951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 2066753033, + "width": 10, + "x": 60, + "y": 40, +} +`; + exports[`regression tests Cmd/Ctrl-click exclusively select element under pointer: [end of test] history 1`] = ` Object { "recording": false, @@ -2106,6 +4431,786 @@ Object { } `; +exports[`regression tests Drags selected element when hitting only bounding box and keeps element selected: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`regression tests Drags selected element when hitting only bounding box and keeps element selected: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests Drags selected element when hitting only bounding box and keeps element selected: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests Drags selected element when hitting only bounding box and keeps element selected: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests Drags selected element when hitting only bounding box and keeps element selected: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests Drags selected element when hitting only bounding box and keeps element selected: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests Drags selected element when hitting only bounding box and keeps element selected: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests Drags selected element when hitting only bounding box and keeps element selected: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests Drags selected element when hitting only bounding box and keeps element selected: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests Drags selected element when hitting only bounding box and keeps element selected: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests Drags selected element when hitting only bounding box and keeps element selected: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests Drags selected element when hitting only bounding box and keeps element selected: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests Drags selected element when hitting only bounding box and keeps element selected: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests Drags selected element when hitting only bounding box and keeps element selected: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests Drags selected element when hitting only bounding box and keeps element selected: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests Drags selected element when hitting only bounding box and keeps element selected: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests Drags selected element when hitting only bounding box and keeps element selected: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests Drags selected element when hitting only bounding box and keeps element selected: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests Drags selected element when hitting only bounding box and keeps element selected: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests Drags selected element when hitting only bounding box and keeps element selected: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests Drags selected element when hitting only bounding box and keeps element selected: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 2, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 3, + "versionNonce": 2066753033, + "width": 10, + "x": 55, + "y": 65, +} +`; + exports[`regression tests Drags selected element when hitting only bounding box and keeps element selected: [end of test] history 1`] = ` Object { "recording": false, @@ -2407,6 +5512,794 @@ Object { } `; +exports[`regression tests adjusts z order when grouping: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests adjusts z order when grouping: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests adjusts z order when grouping: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests adjusts z order when grouping: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests adjusts z order when grouping: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests adjusts z order when grouping: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests adjusts z order when grouping: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests adjusts z order when grouping: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests adjusts z order when grouping: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests adjusts z order when grouping: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests adjusts z order when grouping: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests adjusts z order when grouping: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests adjusts z order when grouping: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests adjusts z order when grouping: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests adjusts z order when grouping: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests adjusts z order when grouping: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests adjusts z order when grouping: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests adjusts z order when grouping: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests adjusts z order when grouping: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 888958951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 2066753033, + "width": 10, + "x": 60, + "y": 50, +} +`; + +exports[`regression tests adjusts z order when grouping: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id26", + ], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 1189086535, + "width": 10, + "x": 40, + "y": 50, +} +`; + +exports[`regression tests adjusts z order when grouping: [end of test] element 23 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id26", + ], + "height": 10, + "id": "id23", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 735304455, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 453187241, + "width": 10, + "x": 80, + "y": 50, +} +`; + exports[`regression tests adjusts z order when grouping: [end of test] history 1`] = ` Object { "recording": false, @@ -2900,6 +6793,757 @@ Object { } `; +exports[`regression tests alt-drag duplicates an element: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests alt-drag duplicates an element: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests alt-drag duplicates an element: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests alt-drag duplicates an element: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests alt-drag duplicates an element: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests alt-drag duplicates an element: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests alt-drag duplicates an element: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests alt-drag duplicates an element: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests alt-drag duplicates an element: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests alt-drag duplicates an element: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests alt-drag duplicates an element: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests alt-drag duplicates an element: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests alt-drag duplicates an element: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests alt-drag duplicates an element: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests alt-drag duplicates an element: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests alt-drag duplicates an element: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests alt-drag duplicates an element: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests alt-drag duplicates an element: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests alt-drag duplicates an element: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests alt-drag duplicates an element: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1177973545, + "width": 10, + "x": 40, + "y": 50, +} +`; + exports[`regression tests alt-drag duplicates an element: [end of test] history 1`] = ` Object { "recording": false, @@ -3155,6 +7799,786 @@ Object { } `; +exports[`regression tests arrow keys: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`regression tests arrow keys: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests arrow keys: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests arrow keys: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests arrow keys: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests arrow keys: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests arrow keys: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests arrow keys: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests arrow keys: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests arrow keys: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests arrow keys: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests arrow keys: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests arrow keys: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests arrow keys: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests arrow keys: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests arrow keys: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests arrow keys: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests arrow keys: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests arrow keys: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests arrow keys: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests arrow keys: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 8, + "versionNonce": 348321737, + "width": 10, + "x": 39, + "y": 49, +} +`; + exports[`regression tests arrow keys: [end of test] history 1`] = ` Object { "recording": false, @@ -3404,6 +8828,790 @@ Object { } `; +exports[`regression tests can drag element that covers another element, while another elem is selected: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests can drag element that covers another element, while another elem is selected: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests can drag element that covers another element, while another elem is selected: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests can drag element that covers another element, while another elem is selected: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests can drag element that covers another element, while another elem is selected: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests can drag element that covers another element, while another elem is selected: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests can drag element that covers another element, while another elem is selected: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests can drag element that covers another element, while another elem is selected: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests can drag element that covers another element, while another elem is selected: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests can drag element that covers another element, while another elem is selected: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests can drag element that covers another element, while another elem is selected: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests can drag element that covers another element, while another elem is selected: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests can drag element that covers another element, while another elem is selected: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests can drag element that covers another element, while another elem is selected: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests can drag element that covers another element, while another elem is selected: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests can drag element that covers another element, while another elem is selected: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests can drag element that covers another element, while another elem is selected: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests can drag element that covers another element, while another elem is selected: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests can drag element that covers another element, while another elem is selected: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1177973545, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 888958951, + "width": 200, + "x": 130, + "y": 140, +} +`; + +exports[`regression tests can drag element that covers another element, while another elem is selected: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 2066753033, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 1189086535, + "width": 200, + "x": 330, + "y": 340, +} +`; + +exports[`regression tests can drag element that covers another element, while another elem is selected: [end of test] element 23 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 350, + "id": "id23", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 2, + }, + "seed": 271613161, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 2, + "versionNonce": 651223591, + "width": 350, + "x": 330, + "y": 340, +} +`; + exports[`regression tests can drag element that covers another element, while another elem is selected: [end of test] history 1`] = ` Object { "recording": false, @@ -3855,6 +10063,786 @@ Object { } `; +exports[`regression tests change the properties of a shape: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`regression tests change the properties of a shape: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests change the properties of a shape: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests change the properties of a shape: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests change the properties of a shape: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests change the properties of a shape: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests change the properties of a shape: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests change the properties of a shape: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests change the properties of a shape: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests change the properties of a shape: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests change the properties of a shape: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests change the properties of a shape: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests change the properties of a shape: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests change the properties of a shape: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests change the properties of a shape: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests change the properties of a shape: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests change the properties of a shape: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests change the properties of a shape: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests change the properties of a shape: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests change the properties of a shape: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests change the properties of a shape: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fa5252", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#5f3dc4", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 2066753033, + "width": 10, + "x": 40, + "y": 50, +} +`; + exports[`regression tests change the properties of a shape: [end of test] history 1`] = ` Object { "recording": false, @@ -4126,6 +11114,786 @@ Object { } `; +exports[`regression tests click on an element and drag it: [dragged] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`regression tests click on an element and drag it: [dragged] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests click on an element and drag it: [dragged] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests click on an element and drag it: [dragged] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests click on an element and drag it: [dragged] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests click on an element and drag it: [dragged] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests click on an element and drag it: [dragged] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests click on an element and drag it: [dragged] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests click on an element and drag it: [dragged] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests click on an element and drag it: [dragged] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests click on an element and drag it: [dragged] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests click on an element and drag it: [dragged] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests click on an element and drag it: [dragged] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests click on an element and drag it: [dragged] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests click on an element and drag it: [dragged] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests click on an element and drag it: [dragged] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests click on an element and drag it: [dragged] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests click on an element and drag it: [dragged] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests click on an element and drag it: [dragged] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests click on an element and drag it: [dragged] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests click on an element and drag it: [dragged] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 2066753033, + "width": 10, + "x": 50, + "y": 60, +} +`; + exports[`regression tests click on an element and drag it: [dragged] history 1`] = ` Object { "recording": false, @@ -4358,6 +12126,786 @@ Object { } `; +exports[`regression tests click on an element and drag it: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`regression tests click on an element and drag it: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests click on an element and drag it: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests click on an element and drag it: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests click on an element and drag it: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests click on an element and drag it: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests click on an element and drag it: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests click on an element and drag it: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests click on an element and drag it: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests click on an element and drag it: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests click on an element and drag it: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests click on an element and drag it: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests click on an element and drag it: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests click on an element and drag it: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests click on an element and drag it: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests click on an element and drag it: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests click on an element and drag it: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests click on an element and drag it: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests click on an element and drag it: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests click on an element and drag it: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests click on an element and drag it: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 271613161, + "width": 10, + "x": 40, + "y": 50, +} +`; + exports[`regression tests click on an element and drag it: [end of test] history 1`] = ` Object { "recording": false, @@ -4663,6 +13211,788 @@ Object { } `; +exports[`regression tests click to select a shape: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests click to select a shape: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests click to select a shape: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests click to select a shape: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests click to select a shape: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests click to select a shape: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests click to select a shape: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests click to select a shape: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests click to select a shape: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests click to select a shape: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests click to select a shape: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests click to select a shape: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests click to select a shape: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests click to select a shape: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests click to select a shape: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests click to select a shape: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests click to select a shape: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests click to select a shape: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests click to select a shape: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests click to select a shape: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1177973545, + "width": 10, + "x": 40, + "y": 50, +} +`; + +exports[`regression tests click to select a shape: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 888958951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 2066753033, + "width": 10, + "x": 60, + "y": 50, +} +`; + exports[`regression tests click to select a shape: [end of test] history 1`] = ` Object { "recording": false, @@ -4983,6 +14313,798 @@ Object { } `; +exports[`regression tests click-drag to select a group: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests click-drag to select a group: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests click-drag to select a group: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests click-drag to select a group: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + Object { + "id": "id14", + "type": "arrow", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 5, + "versionNonce": 1439318121, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests click-drag to select a group: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests click-drag to select a group: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests click-drag to select a group: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests click-drag to select a group: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests click-drag to select a group: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests click-drag to select a group: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests click-drag to select a group: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests click-drag to select a group: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": Object { + "elementId": "id6", + "focus": -1, + "gap": 15, + }, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 6, + "versionNonce": 337026951, + "width": 300, + "x": -75, + "y": 65, +} +`; + +exports[`regression tests click-drag to select a group: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 4, + "versionNonce": 1532871783, + "verticalAlign": "middle", + "width": 160, + "x": -5, + "y": 52.5, +} +`; + +exports[`regression tests click-drag to select a group: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests click-drag to select a group: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests click-drag to select a group: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests click-drag to select a group: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests click-drag to select a group: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests click-drag to select a group: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1177973545, + "width": 10, + "x": 40, + "y": 50, +} +`; + +exports[`regression tests click-drag to select a group: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 888958951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 2066753033, + "width": 10, + "x": 60, + "y": 50, +} +`; + +exports[`regression tests click-drag to select a group: [end of test] element 23 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id23", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 735304455, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 271613161, + "width": 10, + "x": 80, + "y": 50, +} +`; + exports[`regression tests click-drag to select a group: [end of test] history 1`] = ` Object { "recording": false, @@ -5422,6 +15544,788 @@ Object { } `; +exports[`regression tests deselects group of selected elements on pointer down when pointer doesn't hit any element: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests deselects group of selected elements on pointer down when pointer doesn't hit any element: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests deselects group of selected elements on pointer down when pointer doesn't hit any element: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests deselects group of selected elements on pointer down when pointer doesn't hit any element: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests deselects group of selected elements on pointer down when pointer doesn't hit any element: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests deselects group of selected elements on pointer down when pointer doesn't hit any element: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests deselects group of selected elements on pointer down when pointer doesn't hit any element: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests deselects group of selected elements on pointer down when pointer doesn't hit any element: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests deselects group of selected elements on pointer down when pointer doesn't hit any element: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests deselects group of selected elements on pointer down when pointer doesn't hit any element: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests deselects group of selected elements on pointer down when pointer doesn't hit any element: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests deselects group of selected elements on pointer down when pointer doesn't hit any element: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests deselects group of selected elements on pointer down when pointer doesn't hit any element: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests deselects group of selected elements on pointer down when pointer doesn't hit any element: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests deselects group of selected elements on pointer down when pointer doesn't hit any element: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests deselects group of selected elements on pointer down when pointer doesn't hit any element: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests deselects group of selected elements on pointer down when pointer doesn't hit any element: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests deselects group of selected elements on pointer down when pointer doesn't hit any element: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests deselects group of selected elements on pointer down when pointer doesn't hit any element: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests deselects group of selected elements on pointer down when pointer doesn't hit any element: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1177973545, + "width": 10, + "x": 30, + "y": 40, +} +`; + +exports[`regression tests deselects group of selected elements on pointer down when pointer doesn't hit any element: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 2, + }, + "seed": 888958951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 2, + "versionNonce": 2066753033, + "width": 10, + "x": 140, + "y": 150, +} +`; + exports[`regression tests deselects group of selected elements on pointer down when pointer doesn't hit any element: [end of test] history 1`] = ` Object { "recording": false, @@ -5736,6 +16640,788 @@ Object { } `; +exports[`regression tests deselects group of selected elements on pointer up when pointer hits common bounding box without hitting any element: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests deselects group of selected elements on pointer up when pointer hits common bounding box without hitting any element: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests deselects group of selected elements on pointer up when pointer hits common bounding box without hitting any element: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests deselects group of selected elements on pointer up when pointer hits common bounding box without hitting any element: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests deselects group of selected elements on pointer up when pointer hits common bounding box without hitting any element: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests deselects group of selected elements on pointer up when pointer hits common bounding box without hitting any element: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests deselects group of selected elements on pointer up when pointer hits common bounding box without hitting any element: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests deselects group of selected elements on pointer up when pointer hits common bounding box without hitting any element: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests deselects group of selected elements on pointer up when pointer hits common bounding box without hitting any element: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests deselects group of selected elements on pointer up when pointer hits common bounding box without hitting any element: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests deselects group of selected elements on pointer up when pointer hits common bounding box without hitting any element: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests deselects group of selected elements on pointer up when pointer hits common bounding box without hitting any element: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests deselects group of selected elements on pointer up when pointer hits common bounding box without hitting any element: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests deselects group of selected elements on pointer up when pointer hits common bounding box without hitting any element: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests deselects group of selected elements on pointer up when pointer hits common bounding box without hitting any element: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests deselects group of selected elements on pointer up when pointer hits common bounding box without hitting any element: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests deselects group of selected elements on pointer up when pointer hits common bounding box without hitting any element: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests deselects group of selected elements on pointer up when pointer hits common bounding box without hitting any element: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests deselects group of selected elements on pointer up when pointer hits common bounding box without hitting any element: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests deselects group of selected elements on pointer up when pointer hits common bounding box without hitting any element: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1177973545, + "width": 10, + "x": 30, + "y": 40, +} +`; + +exports[`regression tests deselects group of selected elements on pointer up when pointer hits common bounding box without hitting any element: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 2, + }, + "seed": 888958951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 2, + "versionNonce": 2066753033, + "width": 10, + "x": 140, + "y": 150, +} +`; + exports[`regression tests deselects group of selected elements on pointer up when pointer hits common bounding box without hitting any element: [end of test] history 1`] = ` Object { "recording": false, @@ -6044,6 +17730,786 @@ Object { } `; +exports[`regression tests deselects selected element on pointer down when pointer doesn't hit any element: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`regression tests deselects selected element on pointer down when pointer doesn't hit any element: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests deselects selected element on pointer down when pointer doesn't hit any element: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests deselects selected element on pointer down when pointer doesn't hit any element: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests deselects selected element on pointer down when pointer doesn't hit any element: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests deselects selected element on pointer down when pointer doesn't hit any element: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests deselects selected element on pointer down when pointer doesn't hit any element: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests deselects selected element on pointer down when pointer doesn't hit any element: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests deselects selected element on pointer down when pointer doesn't hit any element: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests deselects selected element on pointer down when pointer doesn't hit any element: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests deselects selected element on pointer down when pointer doesn't hit any element: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests deselects selected element on pointer down when pointer doesn't hit any element: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests deselects selected element on pointer down when pointer doesn't hit any element: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests deselects selected element on pointer down when pointer doesn't hit any element: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests deselects selected element on pointer down when pointer doesn't hit any element: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests deselects selected element on pointer down when pointer doesn't hit any element: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests deselects selected element on pointer down when pointer doesn't hit any element: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests deselects selected element on pointer down when pointer doesn't hit any element: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests deselects selected element on pointer down when pointer doesn't hit any element: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests deselects selected element on pointer down when pointer doesn't hit any element: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests deselects selected element on pointer down when pointer doesn't hit any element: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1177973545, + "width": 10, + "x": 30, + "y": 40, +} +`; + exports[`regression tests deselects selected element on pointer down when pointer doesn't hit any element: [end of test] history 1`] = ` Object { "recording": false, @@ -6230,6 +18696,786 @@ Object { } `; +exports[`regression tests deselects selected element, on pointer up, when click hits element bounding box but doesn't hit the element: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`regression tests deselects selected element, on pointer up, when click hits element bounding box but doesn't hit the element: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests deselects selected element, on pointer up, when click hits element bounding box but doesn't hit the element: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests deselects selected element, on pointer up, when click hits element bounding box but doesn't hit the element: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests deselects selected element, on pointer up, when click hits element bounding box but doesn't hit the element: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests deselects selected element, on pointer up, when click hits element bounding box but doesn't hit the element: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests deselects selected element, on pointer up, when click hits element bounding box but doesn't hit the element: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests deselects selected element, on pointer up, when click hits element bounding box but doesn't hit the element: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests deselects selected element, on pointer up, when click hits element bounding box but doesn't hit the element: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests deselects selected element, on pointer up, when click hits element bounding box but doesn't hit the element: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests deselects selected element, on pointer up, when click hits element bounding box but doesn't hit the element: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests deselects selected element, on pointer up, when click hits element bounding box but doesn't hit the element: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests deselects selected element, on pointer up, when click hits element bounding box but doesn't hit the element: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests deselects selected element, on pointer up, when click hits element bounding box but doesn't hit the element: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests deselects selected element, on pointer up, when click hits element bounding box but doesn't hit the element: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests deselects selected element, on pointer up, when click hits element bounding box but doesn't hit the element: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests deselects selected element, on pointer up, when click hits element bounding box but doesn't hit the element: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests deselects selected element, on pointer up, when click hits element bounding box but doesn't hit the element: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests deselects selected element, on pointer up, when click hits element bounding box but doesn't hit the element: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests deselects selected element, on pointer up, when click hits element bounding box but doesn't hit the element: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests deselects selected element, on pointer up, when click hits element bounding box but doesn't hit the element: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 2, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 2, + "versionNonce": 1177973545, + "width": 100, + "x": 30, + "y": 40, +} +`; + exports[`regression tests deselects selected element, on pointer up, when click hits element bounding box but doesn't hit the element: [end of test] history 1`] = ` Object { "recording": false, @@ -6482,6 +19728,832 @@ Object { } `; +exports[`regression tests double click to edit a group: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [ + "id24", + ], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 453187241, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests double click to edit a group: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [ + "id24", + ], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1532871783, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests double click to edit a group: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id24", + ], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1704745353, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests double click to edit a group: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [ + "id24", + ], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 5, + "versionNonce": 337026951, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests double click to edit a group: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [ + "id24", + ], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 3, + "versionNonce": 1439318121, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests double click to edit a group: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [ + "id24", + ], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 5, + "versionNonce": 1934038695, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests double click to edit a group: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [ + "id24", + ], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 3, + "versionNonce": 425216841, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests double click to edit a group: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [ + "id24", + ], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 5, + "versionNonce": 2140907975, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests double click to edit a group: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [ + "id24", + ], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 3, + "versionNonce": 413268521, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests double click to edit a group: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [ + "id24", + ], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 5, + "versionNonce": 909170919, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests double click to edit a group: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [ + "id24", + ], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 3, + "versionNonce": 613600521, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests double click to edit a group: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id24", + ], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 3, + "versionNonce": 1016275975, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests double click to edit a group: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [ + "id24", + ], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 3, + "versionNonce": 1688617961, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests double click to edit a group: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id24", + ], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 2, + "versionNonce": 1388251943, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests double click to edit a group: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id24", + ], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 3, + "versionNonce": 82304713, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests double click to edit a group: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [ + "id24", + ], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 3, + "versionNonce": 86052423, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests double click to edit a group: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [ + "id24", + ], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 603135401, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests double click to edit a group: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [ + "id24", + ], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 3, + "versionNonce": 513125735, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests double click to edit a group: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id24", + ], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 15958153, + "width": 10, + "x": 40, + "y": 50, +} +`; + +exports[`regression tests double click to edit a group: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id24", + ], + "height": 10, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 888958951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 1516857479, + "width": 10, + "x": 60, + "y": 50, +} +`; + +exports[`regression tests double click to edit a group: [end of test] element 23 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id24", + ], + "height": 10, + "id": "id23", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 735304455, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 1772390249, + "width": 10, + "x": 80, + "y": 50, +} +`; + exports[`regression tests double click to edit a group: [end of test] history 1`] = ` Object { "recording": false, @@ -6980,6 +21052,788 @@ Object { } `; +exports[`regression tests drags selected elements from point inside common bounding box that doesn't hit any element and keeps elements selected after dragging: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests drags selected elements from point inside common bounding box that doesn't hit any element and keeps elements selected after dragging: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests drags selected elements from point inside common bounding box that doesn't hit any element and keeps elements selected after dragging: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests drags selected elements from point inside common bounding box that doesn't hit any element and keeps elements selected after dragging: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests drags selected elements from point inside common bounding box that doesn't hit any element and keeps elements selected after dragging: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests drags selected elements from point inside common bounding box that doesn't hit any element and keeps elements selected after dragging: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests drags selected elements from point inside common bounding box that doesn't hit any element and keeps elements selected after dragging: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests drags selected elements from point inside common bounding box that doesn't hit any element and keeps elements selected after dragging: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests drags selected elements from point inside common bounding box that doesn't hit any element and keeps elements selected after dragging: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests drags selected elements from point inside common bounding box that doesn't hit any element and keeps elements selected after dragging: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests drags selected elements from point inside common bounding box that doesn't hit any element and keeps elements selected after dragging: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests drags selected elements from point inside common bounding box that doesn't hit any element and keeps elements selected after dragging: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests drags selected elements from point inside common bounding box that doesn't hit any element and keeps elements selected after dragging: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests drags selected elements from point inside common bounding box that doesn't hit any element and keeps elements selected after dragging: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests drags selected elements from point inside common bounding box that doesn't hit any element and keeps elements selected after dragging: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests drags selected elements from point inside common bounding box that doesn't hit any element and keeps elements selected after dragging: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests drags selected elements from point inside common bounding box that doesn't hit any element and keeps elements selected after dragging: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests drags selected elements from point inside common bounding box that doesn't hit any element and keeps elements selected after dragging: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests drags selected elements from point inside common bounding box that doesn't hit any element and keeps elements selected after dragging: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests drags selected elements from point inside common bounding box that doesn't hit any element and keeps elements selected after dragging: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 651223591, + "width": 10, + "x": 55, + "y": 65, +} +`; + +exports[`regression tests drags selected elements from point inside common bounding box that doesn't hit any element and keeps elements selected after dragging: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 2, + }, + "seed": 888958951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 3, + "versionNonce": 348321737, + "width": 10, + "x": 165, + "y": 175, +} +`; + exports[`regression tests drags selected elements from point inside common bounding box that doesn't hit any element and keeps elements selected after dragging: [end of test] history 1`] = ` Object { "recording": false, @@ -7620,6 +22474,866 @@ Object { } `; +exports[`regression tests draw every type of shape: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests draw every type of shape: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests draw every type of shape: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests draw every type of shape: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests draw every type of shape: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests draw every type of shape: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests draw every type of shape: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests draw every type of shape: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests draw every type of shape: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests draw every type of shape: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests draw every type of shape: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests draw every type of shape: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests draw every type of shape: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests draw every type of shape: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1177973545, + "width": 20, + "x": 40, + "y": 30, +} +`; + +exports[`regression tests draw every type of shape: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 2, + }, + "seed": 888958951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 2, + "versionNonce": 2066753033, + "width": 20, + "x": 70, + "y": 30, +} +`; + +exports[`regression tests draw every type of shape: [end of test] element 23 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id23", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 2, + }, + "seed": 735304455, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 2, + "versionNonce": 271613161, + "width": 20, + "x": 100, + "y": 30, +} +`; + +exports[`regression tests draw every type of shape: [end of test] element 24 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id24", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 50, + 10, + ], + ], + "roughness": 1, + "roundness": Object { + "type": 2, + }, + "seed": 651223591, + "startArrowhead": null, + "startBinding": Object { + "elementId": "id2", + "focus": -0.7600000000000001, + "gap": 1, + }, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 4, + "versionNonce": 453187241, + "width": 50, + "x": 160, + "y": 30, +} +`; + +exports[`regression tests draw every type of shape: [end of test] element 25 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id25", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 50, + 10, + ], + ], + "roughness": 1, + "roundness": Object { + "type": 2, + }, + "seed": 1704745353, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 3, + "versionNonce": 1439318121, + "width": 50, + "x": 250, + "y": 30, +} +`; + +exports[`regression tests draw every type of shape: [end of test] element 26 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 20, + "id": "id26", + "isDeleted": false, + "lastCommittedPoint": Array [ + 80, + 20, + ], + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 50, + 10, + ], + Array [ + 80, + 20, + ], + ], + "roughness": 1, + "roundness": Object { + "type": 2, + }, + "seed": 1934038695, + "startArrowhead": null, + "startBinding": Object { + "elementId": "id6", + "focus": -0.6417910447761194, + "gap": 1, + }, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 8, + "versionNonce": 1688617961, + "width": 80, + "x": 340, + "y": 30, +} +`; + +exports[`regression tests draw every type of shape: [end of test] element 27 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 20, + "id": "id27", + "isDeleted": false, + "lastCommittedPoint": Array [ + 80, + 20, + ], + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 50, + 10, + ], + Array [ + 80, + 20, + ], + ], + "roughness": 1, + "roundness": Object { + "type": 2, + }, + "seed": 82304713, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 7, + "versionNonce": 1772390249, + "width": 80, + "x": 460, + "y": 30, +} +`; + +exports[`regression tests draw every type of shape: [end of test] element 28 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id28", + "isDeleted": false, + "lastCommittedPoint": Array [ + 50, + 10, + ], + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 50, + 10, + ], + Array [ + 50, + 10, + ], + ], + "pressures": Array [ + 0, + 0, + 0, + ], + "roughness": 1, + "roundness": null, + "seed": 1448656807, + "simulatePressure": false, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "freedraw", + "updated": 1, + "version": 4, + "versionNonce": 836141353, + "width": 50, + "x": 580, + "y": 30, +} +`; + exports[`regression tests draw every type of shape: [end of test] history 1`] = ` Object { "recording": false, @@ -9726,6 +25440,790 @@ Object { } `; +exports[`regression tests given a group of selected elements with an element that is not selected inside the group common bounding box when element that is not selected is clicked should switch selection to not selected element on pointer up: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests given a group of selected elements with an element that is not selected inside the group common bounding box when element that is not selected is clicked should switch selection to not selected element on pointer up: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests given a group of selected elements with an element that is not selected inside the group common bounding box when element that is not selected is clicked should switch selection to not selected element on pointer up: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests given a group of selected elements with an element that is not selected inside the group common bounding box when element that is not selected is clicked should switch selection to not selected element on pointer up: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests given a group of selected elements with an element that is not selected inside the group common bounding box when element that is not selected is clicked should switch selection to not selected element on pointer up: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests given a group of selected elements with an element that is not selected inside the group common bounding box when element that is not selected is clicked should switch selection to not selected element on pointer up: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests given a group of selected elements with an element that is not selected inside the group common bounding box when element that is not selected is clicked should switch selection to not selected element on pointer up: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests given a group of selected elements with an element that is not selected inside the group common bounding box when element that is not selected is clicked should switch selection to not selected element on pointer up: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests given a group of selected elements with an element that is not selected inside the group common bounding box when element that is not selected is clicked should switch selection to not selected element on pointer up: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests given a group of selected elements with an element that is not selected inside the group common bounding box when element that is not selected is clicked should switch selection to not selected element on pointer up: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests given a group of selected elements with an element that is not selected inside the group common bounding box when element that is not selected is clicked should switch selection to not selected element on pointer up: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests given a group of selected elements with an element that is not selected inside the group common bounding box when element that is not selected is clicked should switch selection to not selected element on pointer up: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests given a group of selected elements with an element that is not selected inside the group common bounding box when element that is not selected is clicked should switch selection to not selected element on pointer up: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests given a group of selected elements with an element that is not selected inside the group common bounding box when element that is not selected is clicked should switch selection to not selected element on pointer up: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests given a group of selected elements with an element that is not selected inside the group common bounding box when element that is not selected is clicked should switch selection to not selected element on pointer up: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests given a group of selected elements with an element that is not selected inside the group common bounding box when element that is not selected is clicked should switch selection to not selected element on pointer up: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests given a group of selected elements with an element that is not selected inside the group common bounding box when element that is not selected is clicked should switch selection to not selected element on pointer up: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests given a group of selected elements with an element that is not selected inside the group common bounding box when element that is not selected is clicked should switch selection to not selected element on pointer up: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests given a group of selected elements with an element that is not selected inside the group common bounding box when element that is not selected is clicked should switch selection to not selected element on pointer up: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1177973545, + "width": 10, + "x": 30, + "y": 40, +} +`; + +exports[`regression tests given a group of selected elements with an element that is not selected inside the group common bounding box when element that is not selected is clicked should switch selection to not selected element on pointer up: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 2, + }, + "seed": 888958951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 2, + "versionNonce": 2066753033, + "width": 100, + "x": 140, + "y": 150, +} +`; + +exports[`regression tests given a group of selected elements with an element that is not selected inside the group common bounding box when element that is not selected is clicked should switch selection to not selected element on pointer up: [end of test] element 23 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id23", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 2, + }, + "seed": 735304455, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 2, + "versionNonce": 271613161, + "width": 100, + "x": 340, + "y": 350, +} +`; + exports[`regression tests given a group of selected elements with an element that is not selected inside the group common bounding box when element that is not selected is clicked should switch selection to not selected element on pointer up: [end of test] history 1`] = ` Object { "recording": false, @@ -10115,6 +26613,788 @@ Object { } `; +exports[`regression tests given a selected element A and a not selected element B with higher z-index than A and given B partially overlaps A when there's a shift-click on the overlapped section B is added to the selection: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests given a selected element A and a not selected element B with higher z-index than A and given B partially overlaps A when there's a shift-click on the overlapped section B is added to the selection: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests given a selected element A and a not selected element B with higher z-index than A and given B partially overlaps A when there's a shift-click on the overlapped section B is added to the selection: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests given a selected element A and a not selected element B with higher z-index than A and given B partially overlaps A when there's a shift-click on the overlapped section B is added to the selection: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests given a selected element A and a not selected element B with higher z-index than A and given B partially overlaps A when there's a shift-click on the overlapped section B is added to the selection: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests given a selected element A and a not selected element B with higher z-index than A and given B partially overlaps A when there's a shift-click on the overlapped section B is added to the selection: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests given a selected element A and a not selected element B with higher z-index than A and given B partially overlaps A when there's a shift-click on the overlapped section B is added to the selection: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests given a selected element A and a not selected element B with higher z-index than A and given B partially overlaps A when there's a shift-click on the overlapped section B is added to the selection: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests given a selected element A and a not selected element B with higher z-index than A and given B partially overlaps A when there's a shift-click on the overlapped section B is added to the selection: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests given a selected element A and a not selected element B with higher z-index than A and given B partially overlaps A when there's a shift-click on the overlapped section B is added to the selection: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests given a selected element A and a not selected element B with higher z-index than A and given B partially overlaps A when there's a shift-click on the overlapped section B is added to the selection: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests given a selected element A and a not selected element B with higher z-index than A and given B partially overlaps A when there's a shift-click on the overlapped section B is added to the selection: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests given a selected element A and a not selected element B with higher z-index than A and given B partially overlaps A when there's a shift-click on the overlapped section B is added to the selection: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests given a selected element A and a not selected element B with higher z-index than A and given B partially overlaps A when there's a shift-click on the overlapped section B is added to the selection: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests given a selected element A and a not selected element B with higher z-index than A and given B partially overlaps A when there's a shift-click on the overlapped section B is added to the selection: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests given a selected element A and a not selected element B with higher z-index than A and given B partially overlaps A when there's a shift-click on the overlapped section B is added to the selection: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests given a selected element A and a not selected element B with higher z-index than A and given B partially overlaps A when there's a shift-click on the overlapped section B is added to the selection: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests given a selected element A and a not selected element B with higher z-index than A and given B partially overlaps A when there's a shift-click on the overlapped section B is added to the selection: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests given a selected element A and a not selected element B with higher z-index than A and given B partially overlaps A when there's a shift-click on the overlapped section B is added to the selection: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests given a selected element A and a not selected element B with higher z-index than A and given B partially overlaps A when there's a shift-click on the overlapped section B is added to the selection: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fa5252", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 0, + "x": 30, + "y": 40, +} +`; + +exports[`regression tests given a selected element A and a not selected element B with higher z-index than A and given B partially overlaps A when there's a shift-click on the overlapped section B is added to the selection: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fa5252", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 1000, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 2, + }, + "seed": 1177973545, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 2, + "versionNonce": 888958951, + "width": 1000, + "x": 530, + "y": 540, +} +`; + exports[`regression tests given a selected element A and a not selected element B with higher z-index than A and given B partially overlaps A when there's a shift-click on the overlapped section B is added to the selection: [end of test] history 1`] = ` Object { "recording": false, @@ -10936,6 +28216,786 @@ Object { } `; +exports[`regression tests key 2 selects rectangle tool: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`regression tests key 2 selects rectangle tool: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests key 2 selects rectangle tool: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests key 2 selects rectangle tool: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests key 2 selects rectangle tool: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests key 2 selects rectangle tool: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests key 2 selects rectangle tool: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests key 2 selects rectangle tool: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests key 2 selects rectangle tool: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests key 2 selects rectangle tool: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests key 2 selects rectangle tool: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests key 2 selects rectangle tool: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests key 2 selects rectangle tool: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests key 2 selects rectangle tool: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests key 2 selects rectangle tool: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests key 2 selects rectangle tool: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests key 2 selects rectangle tool: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests key 2 selects rectangle tool: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests key 2 selects rectangle tool: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests key 2 selects rectangle tool: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests key 2 selects rectangle tool: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1177973545, + "width": 10, + "x": 40, + "y": 50, +} +`; + exports[`regression tests key 2 selects rectangle tool: [end of test] history 1`] = ` Object { "recording": false, @@ -11120,6 +29180,786 @@ Object { } `; +exports[`regression tests key 3 selects diamond tool: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`regression tests key 3 selects diamond tool: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests key 3 selects diamond tool: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests key 3 selects diamond tool: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests key 3 selects diamond tool: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests key 3 selects diamond tool: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests key 3 selects diamond tool: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests key 3 selects diamond tool: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests key 3 selects diamond tool: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests key 3 selects diamond tool: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests key 3 selects diamond tool: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests key 3 selects diamond tool: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests key 3 selects diamond tool: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests key 3 selects diamond tool: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests key 3 selects diamond tool: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests key 3 selects diamond tool: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests key 3 selects diamond tool: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests key 3 selects diamond tool: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests key 3 selects diamond tool: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests key 3 selects diamond tool: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests key 3 selects diamond tool: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 2, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 2, + "versionNonce": 1177973545, + "width": 10, + "x": 40, + "y": 50, +} +`; + exports[`regression tests key 3 selects diamond tool: [end of test] history 1`] = ` Object { "recording": false, @@ -11304,6 +30144,786 @@ Object { } `; +exports[`regression tests key 4 selects ellipse tool: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`regression tests key 4 selects ellipse tool: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests key 4 selects ellipse tool: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests key 4 selects ellipse tool: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests key 4 selects ellipse tool: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests key 4 selects ellipse tool: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests key 4 selects ellipse tool: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests key 4 selects ellipse tool: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests key 4 selects ellipse tool: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests key 4 selects ellipse tool: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests key 4 selects ellipse tool: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests key 4 selects ellipse tool: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests key 4 selects ellipse tool: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests key 4 selects ellipse tool: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests key 4 selects ellipse tool: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests key 4 selects ellipse tool: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests key 4 selects ellipse tool: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests key 4 selects ellipse tool: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests key 4 selects ellipse tool: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests key 4 selects ellipse tool: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests key 4 selects ellipse tool: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 2, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 2, + "versionNonce": 1177973545, + "width": 10, + "x": 40, + "y": 50, +} +`; + exports[`regression tests key 4 selects ellipse tool: [end of test] history 1`] = ` Object { "recording": false, @@ -11526,6 +31146,801 @@ Object { } `; +exports[`regression tests key 5 selects arrow tool: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`regression tests key 5 selects arrow tool: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests key 5 selects arrow tool: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests key 5 selects arrow tool: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests key 5 selects arrow tool: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests key 5 selects arrow tool: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests key 5 selects arrow tool: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests key 5 selects arrow tool: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests key 5 selects arrow tool: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests key 5 selects arrow tool: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests key 5 selects arrow tool: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests key 5 selects arrow tool: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests key 5 selects arrow tool: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests key 5 selects arrow tool: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests key 5 selects arrow tool: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests key 5 selects arrow tool: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests key 5 selects arrow tool: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests key 5 selects arrow tool: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests key 5 selects arrow tool: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests key 5 selects arrow tool: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests key 5 selects arrow tool: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 10, + 10, + ], + ], + "roughness": 1, + "roundness": Object { + "type": 2, + }, + "seed": 1573789895, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 3, + "versionNonce": 888958951, + "width": 10, + "x": 40, + "y": 50, +} +`; + exports[`regression tests key 5 selects arrow tool: [end of test] history 1`] = ` Object { "recording": false, @@ -11763,6 +32178,801 @@ Object { } `; +exports[`regression tests key 6 selects line tool: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`regression tests key 6 selects line tool: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests key 6 selects line tool: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests key 6 selects line tool: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests key 6 selects line tool: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests key 6 selects line tool: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests key 6 selects line tool: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests key 6 selects line tool: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests key 6 selects line tool: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests key 6 selects line tool: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests key 6 selects line tool: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests key 6 selects line tool: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests key 6 selects line tool: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests key 6 selects line tool: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests key 6 selects line tool: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests key 6 selects line tool: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests key 6 selects line tool: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests key 6 selects line tool: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests key 6 selects line tool: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests key 6 selects line tool: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests key 6 selects line tool: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 10, + 10, + ], + ], + "roughness": 1, + "roundness": Object { + "type": 2, + }, + "seed": 1573789895, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 3, + "versionNonce": 888958951, + "width": 10, + "x": 40, + "y": 50, +} +`; + exports[`regression tests key 6 selects line tool: [end of test] history 1`] = ` Object { "recording": false, @@ -11984,6 +33194,808 @@ Object { } `; +exports[`regression tests key 7 selects freedraw tool: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`regression tests key 7 selects freedraw tool: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests key 7 selects freedraw tool: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests key 7 selects freedraw tool: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests key 7 selects freedraw tool: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests key 7 selects freedraw tool: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests key 7 selects freedraw tool: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests key 7 selects freedraw tool: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests key 7 selects freedraw tool: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests key 7 selects freedraw tool: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests key 7 selects freedraw tool: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests key 7 selects freedraw tool: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests key 7 selects freedraw tool: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests key 7 selects freedraw tool: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests key 7 selects freedraw tool: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests key 7 selects freedraw tool: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests key 7 selects freedraw tool: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests key 7 selects freedraw tool: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests key 7 selects freedraw tool: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests key 7 selects freedraw tool: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests key 7 selects freedraw tool: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "lastCommittedPoint": Array [ + 10, + 10, + ], + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 10, + 10, + ], + Array [ + 10, + 10, + ], + ], + "pressures": Array [ + 0, + 0, + 0, + ], + "roughness": 1, + "roundness": null, + "seed": 1573789895, + "simulatePressure": false, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "freedraw", + "updated": 1, + "version": 4, + "versionNonce": 2066753033, + "width": 10, + "x": 40, + "y": 50, +} +`; + exports[`regression tests key 7 selects freedraw tool: [end of test] history 1`] = ` Object { "recording": false, @@ -12228,6 +34240,801 @@ Object { } `; +exports[`regression tests key a selects arrow tool: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`regression tests key a selects arrow tool: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests key a selects arrow tool: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests key a selects arrow tool: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests key a selects arrow tool: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests key a selects arrow tool: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests key a selects arrow tool: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests key a selects arrow tool: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests key a selects arrow tool: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests key a selects arrow tool: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests key a selects arrow tool: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests key a selects arrow tool: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests key a selects arrow tool: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests key a selects arrow tool: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests key a selects arrow tool: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests key a selects arrow tool: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests key a selects arrow tool: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests key a selects arrow tool: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests key a selects arrow tool: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests key a selects arrow tool: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests key a selects arrow tool: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 10, + 10, + ], + ], + "roughness": 1, + "roundness": Object { + "type": 2, + }, + "seed": 1573789895, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 3, + "versionNonce": 888958951, + "width": 10, + "x": 40, + "y": 50, +} +`; + exports[`regression tests key a selects arrow tool: [end of test] history 1`] = ` Object { "recording": false, @@ -12427,6 +35234,786 @@ Object { } `; +exports[`regression tests key d selects diamond tool: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`regression tests key d selects diamond tool: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests key d selects diamond tool: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests key d selects diamond tool: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests key d selects diamond tool: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests key d selects diamond tool: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests key d selects diamond tool: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests key d selects diamond tool: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests key d selects diamond tool: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests key d selects diamond tool: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests key d selects diamond tool: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests key d selects diamond tool: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests key d selects diamond tool: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests key d selects diamond tool: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests key d selects diamond tool: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests key d selects diamond tool: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests key d selects diamond tool: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests key d selects diamond tool: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests key d selects diamond tool: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests key d selects diamond tool: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests key d selects diamond tool: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 2, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 2, + "versionNonce": 1177973545, + "width": 10, + "x": 40, + "y": 50, +} +`; + exports[`regression tests key d selects diamond tool: [end of test] history 1`] = ` Object { "recording": false, @@ -12649,6 +36236,801 @@ Object { } `; +exports[`regression tests key l selects line tool: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`regression tests key l selects line tool: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests key l selects line tool: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests key l selects line tool: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests key l selects line tool: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests key l selects line tool: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests key l selects line tool: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests key l selects line tool: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests key l selects line tool: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests key l selects line tool: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests key l selects line tool: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests key l selects line tool: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests key l selects line tool: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests key l selects line tool: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests key l selects line tool: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests key l selects line tool: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests key l selects line tool: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests key l selects line tool: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests key l selects line tool: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests key l selects line tool: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests key l selects line tool: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 10, + 10, + ], + ], + "roughness": 1, + "roundness": Object { + "type": 2, + }, + "seed": 1573789895, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 3, + "versionNonce": 888958951, + "width": 10, + "x": 40, + "y": 50, +} +`; + exports[`regression tests key l selects line tool: [end of test] history 1`] = ` Object { "recording": false, @@ -12848,6 +37230,786 @@ Object { } `; +exports[`regression tests key o selects ellipse tool: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`regression tests key o selects ellipse tool: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests key o selects ellipse tool: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests key o selects ellipse tool: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests key o selects ellipse tool: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests key o selects ellipse tool: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests key o selects ellipse tool: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests key o selects ellipse tool: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests key o selects ellipse tool: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests key o selects ellipse tool: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests key o selects ellipse tool: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests key o selects ellipse tool: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests key o selects ellipse tool: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests key o selects ellipse tool: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests key o selects ellipse tool: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests key o selects ellipse tool: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests key o selects ellipse tool: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests key o selects ellipse tool: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests key o selects ellipse tool: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests key o selects ellipse tool: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests key o selects ellipse tool: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 2, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 2, + "versionNonce": 1177973545, + "width": 10, + "x": 40, + "y": 50, +} +`; + exports[`regression tests key o selects ellipse tool: [end of test] history 1`] = ` Object { "recording": false, @@ -13054,6 +38216,808 @@ Object { } `; +exports[`regression tests key p selects freedraw tool: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`regression tests key p selects freedraw tool: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests key p selects freedraw tool: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests key p selects freedraw tool: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests key p selects freedraw tool: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests key p selects freedraw tool: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests key p selects freedraw tool: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests key p selects freedraw tool: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests key p selects freedraw tool: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests key p selects freedraw tool: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests key p selects freedraw tool: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests key p selects freedraw tool: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests key p selects freedraw tool: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests key p selects freedraw tool: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests key p selects freedraw tool: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests key p selects freedraw tool: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests key p selects freedraw tool: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests key p selects freedraw tool: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests key p selects freedraw tool: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests key p selects freedraw tool: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests key p selects freedraw tool: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "lastCommittedPoint": Array [ + 10, + 10, + ], + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 10, + 10, + ], + Array [ + 10, + 10, + ], + ], + "pressures": Array [ + 0, + 0, + 0, + ], + "roughness": 1, + "roundness": null, + "seed": 1573789895, + "simulatePressure": false, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "freedraw", + "updated": 1, + "version": 4, + "versionNonce": 2066753033, + "width": 10, + "x": 40, + "y": 50, +} +`; + exports[`regression tests key p selects freedraw tool: [end of test] history 1`] = ` Object { "recording": false, @@ -13260,6 +39224,786 @@ Object { } `; +exports[`regression tests key r selects rectangle tool: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`regression tests key r selects rectangle tool: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests key r selects rectangle tool: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests key r selects rectangle tool: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests key r selects rectangle tool: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests key r selects rectangle tool: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests key r selects rectangle tool: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests key r selects rectangle tool: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests key r selects rectangle tool: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests key r selects rectangle tool: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests key r selects rectangle tool: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests key r selects rectangle tool: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests key r selects rectangle tool: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests key r selects rectangle tool: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests key r selects rectangle tool: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests key r selects rectangle tool: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests key r selects rectangle tool: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests key r selects rectangle tool: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests key r selects rectangle tool: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests key r selects rectangle tool: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests key r selects rectangle tool: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1177973545, + "width": 10, + "x": 40, + "y": 50, +} +`; + exports[`regression tests key r selects rectangle tool: [end of test] history 1`] = ` Object { "recording": false, @@ -13622,6 +40366,687 @@ Object { } `; +exports[`regression tests make a group and duplicate it: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + Object { + "id": "id14", + "type": "arrow", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 5, + "versionNonce": 1704745353, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests make a group and duplicate it: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests make a group and duplicate it: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests make a group and duplicate it: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests make a group and duplicate it: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests make a group and duplicate it: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests make a group and duplicate it: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests make a group and duplicate it: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests make a group and duplicate it: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": Object { + "elementId": "id6", + "focus": -0.7142857142857143, + "gap": 1, + }, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 5, + "versionNonce": 1532871783, + "width": 300, + "x": -60, + "y": 60, +} +`; + +exports[`regression tests make a group and duplicate it: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 3, + "versionNonce": 1189086535, + "verticalAlign": "middle", + "width": 160, + "x": 10, + "y": 47.5, +} +`; + +exports[`regression tests make a group and duplicate it: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests make a group and duplicate it: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests make a group and duplicate it: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests make a group and duplicate it: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests make a group and duplicate it: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests make a group and duplicate it: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1177973545, + "width": 10, + "x": 40, + "y": 50, +} +`; + +exports[`regression tests make a group and duplicate it: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 888958951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 2066753033, + "width": 10, + "x": 60, + "y": 50, +} +`; + +exports[`regression tests make a group and duplicate it: [end of test] element 23 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id23", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 735304455, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 271613161, + "width": 10, + "x": 80, + "y": 50, +} +`; + exports[`regression tests make a group and duplicate it: [end of test] history 1`] = ` Object { "recording": false, @@ -14318,6 +41743,788 @@ Object { } `; +exports[`regression tests noop interaction after undo shouldn't create history entry: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 3, + "versionNonce": 1448656807, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests noop interaction after undo shouldn't create history entry: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 3, + "versionNonce": 1750184521, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests noop interaction after undo shouldn't create history entry: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 1150300871, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests noop interaction after undo shouldn't create history entry: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 3, + "versionNonce": 836141353, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests noop interaction after undo shouldn't create history entry: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 6, + "versionNonce": 1571570151, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests noop interaction after undo shouldn't create history entry: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 4, + "versionNonce": 1402893321, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests noop interaction after undo shouldn't create history entry: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 6, + "versionNonce": 314141959, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests noop interaction after undo shouldn't create history entry: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 4, + "versionNonce": 564464361, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests noop interaction after undo shouldn't create history entry: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 6, + "versionNonce": 2134127655, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests noop interaction after undo shouldn't create history entry: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 4, + "versionNonce": 1685439945, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests noop interaction after undo shouldn't create history entry: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 6, + "versionNonce": 453580615, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests noop interaction after undo shouldn't create history entry: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 4, + "versionNonce": 1194075305, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests noop interaction after undo shouldn't create history entry: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 4, + "versionNonce": 747935335, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests noop interaction after undo shouldn't create history entry: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 4, + "versionNonce": 91465609, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests noop interaction after undo shouldn't create history entry: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 3, + "versionNonce": 2057515399, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests noop interaction after undo shouldn't create history entry: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 4, + "versionNonce": 1502072425, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests noop interaction after undo shouldn't create history entry: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 4, + "versionNonce": 1047619751, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests noop interaction after undo shouldn't create history entry: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 708057417, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests noop interaction after undo shouldn't create history entry: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 4, + "versionNonce": 1437318087, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests noop interaction after undo shouldn't create history entry: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 2027161641, + "width": 10, + "x": 40, + "y": 50, +} +`; + +exports[`regression tests noop interaction after undo shouldn't create history entry: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 888958951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 879667943, + "width": 10, + "x": 60, + "y": 50, +} +`; + exports[`regression tests noop interaction after undo shouldn't create history entry: [end of test] history 1`] = ` Object { "recording": false, @@ -14541,6 +42748,784 @@ Object { } `; +exports[`regression tests pinch-to-zoom works: [end of test] element 0 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id0", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 337897, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 10, + "y": 10, +} +`; + +exports[`regression tests pinch-to-zoom works: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`regression tests pinch-to-zoom works: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests pinch-to-zoom works: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests pinch-to-zoom works: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests pinch-to-zoom works: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests pinch-to-zoom works: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests pinch-to-zoom works: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests pinch-to-zoom works: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests pinch-to-zoom works: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests pinch-to-zoom works: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests pinch-to-zoom works: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests pinch-to-zoom works: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests pinch-to-zoom works: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests pinch-to-zoom works: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests pinch-to-zoom works: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests pinch-to-zoom works: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests pinch-to-zoom works: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests pinch-to-zoom works: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests pinch-to-zoom works: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests pinch-to-zoom works: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + exports[`regression tests pinch-to-zoom works: [end of test] history 1`] = ` Object { "recording": false, @@ -14650,6 +43635,784 @@ Object { } `; +exports[`regression tests rerenders UI on language change: [end of test] element 0 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id0", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 337897, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 10, + "y": 10, +} +`; + +exports[`regression tests rerenders UI on language change: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`regression tests rerenders UI on language change: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests rerenders UI on language change: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests rerenders UI on language change: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests rerenders UI on language change: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests rerenders UI on language change: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests rerenders UI on language change: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests rerenders UI on language change: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests rerenders UI on language change: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests rerenders UI on language change: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests rerenders UI on language change: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests rerenders UI on language change: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests rerenders UI on language change: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests rerenders UI on language change: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests rerenders UI on language change: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests rerenders UI on language change: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests rerenders UI on language change: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests rerenders UI on language change: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests rerenders UI on language change: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests rerenders UI on language change: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + exports[`regression tests rerenders UI on language change: [end of test] history 1`] = ` Object { "recording": false, @@ -14795,6 +44558,786 @@ Object { } `; +exports[`regression tests shift click on selected element should deselect it on pointer up: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`regression tests shift click on selected element should deselect it on pointer up: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests shift click on selected element should deselect it on pointer up: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests shift click on selected element should deselect it on pointer up: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests shift click on selected element should deselect it on pointer up: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests shift click on selected element should deselect it on pointer up: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests shift click on selected element should deselect it on pointer up: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests shift click on selected element should deselect it on pointer up: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests shift click on selected element should deselect it on pointer up: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests shift click on selected element should deselect it on pointer up: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests shift click on selected element should deselect it on pointer up: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests shift click on selected element should deselect it on pointer up: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests shift click on selected element should deselect it on pointer up: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests shift click on selected element should deselect it on pointer up: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests shift click on selected element should deselect it on pointer up: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests shift click on selected element should deselect it on pointer up: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests shift click on selected element should deselect it on pointer up: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests shift click on selected element should deselect it on pointer up: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests shift click on selected element should deselect it on pointer up: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests shift click on selected element should deselect it on pointer up: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests shift click on selected element should deselect it on pointer up: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1177973545, + "width": 10, + "x": 30, + "y": 40, +} +`; + exports[`regression tests shift click on selected element should deselect it on pointer up: [end of test] history 1`] = ` Object { "recording": false, @@ -15019,6 +45562,788 @@ Object { } `; +exports[`regression tests shift-click to multiselect, then drag: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests shift-click to multiselect, then drag: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests shift-click to multiselect, then drag: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests shift-click to multiselect, then drag: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests shift-click to multiselect, then drag: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests shift-click to multiselect, then drag: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests shift-click to multiselect, then drag: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests shift-click to multiselect, then drag: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests shift-click to multiselect, then drag: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests shift-click to multiselect, then drag: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests shift-click to multiselect, then drag: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests shift-click to multiselect, then drag: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests shift-click to multiselect, then drag: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests shift-click to multiselect, then drag: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests shift-click to multiselect, then drag: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests shift-click to multiselect, then drag: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests shift-click to multiselect, then drag: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests shift-click to multiselect, then drag: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests shift-click to multiselect, then drag: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests shift-click to multiselect, then drag: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 348321737, + "width": 10, + "x": 50, + "y": 60, +} +`; + +exports[`regression tests shift-click to multiselect, then drag: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 888958951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 1189086535, + "width": 10, + "x": 70, + "y": 60, +} +`; + exports[`regression tests shift-click to multiselect, then drag: [end of test] history 1`] = ` Object { "recording": false, @@ -15415,6 +46740,802 @@ Object { } `; +exports[`regression tests should group elements and ungroup them: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests should group elements and ungroup them: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests should group elements and ungroup them: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests should group elements and ungroup them: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + Object { + "id": "id14", + "type": "arrow", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 5, + "versionNonce": 1704745353, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests should group elements and ungroup them: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests should group elements and ungroup them: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests should group elements and ungroup them: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests should group elements and ungroup them: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests should group elements and ungroup them: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests should group elements and ungroup them: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests should group elements and ungroup them: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests should group elements and ungroup them: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": Object { + "elementId": "id6", + "focus": -0.7142857142857143, + "gap": 1, + }, + "fillStyle": "hachure", + "groupIds": Array [ + "id25", + ], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 6, + "versionNonce": 337026951, + "width": 300, + "x": -60, + "y": 60, +} +`; + +exports[`regression tests should group elements and ungroup them: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [ + "id25", + ], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 4, + "versionNonce": 1439318121, + "verticalAlign": "middle", + "width": 160, + "x": 10, + "y": 47.5, +} +`; + +exports[`regression tests should group elements and ungroup them: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests should group elements and ungroup them: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests should group elements and ungroup them: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests should group elements and ungroup them: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests should group elements and ungroup them: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests should group elements and ungroup them: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1177973545, + "width": 10, + "x": 40, + "y": 50, +} +`; + +exports[`regression tests should group elements and ungroup them: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 888958951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 2066753033, + "width": 10, + "x": 60, + "y": 50, +} +`; + +exports[`regression tests should group elements and ungroup them: [end of test] element 23 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id23", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 735304455, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 271613161, + "width": 10, + "x": 80, + "y": 50, +} +`; + exports[`regression tests should group elements and ungroup them: [end of test] history 1`] = ` Object { "recording": false, @@ -15978,6 +48099,786 @@ Object { } `; +exports[`regression tests should show fill icons when element has non transparent background: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`regression tests should show fill icons when element has non transparent background: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests should show fill icons when element has non transparent background: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests should show fill icons when element has non transparent background: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests should show fill icons when element has non transparent background: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests should show fill icons when element has non transparent background: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests should show fill icons when element has non transparent background: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests should show fill icons when element has non transparent background: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests should show fill icons when element has non transparent background: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests should show fill icons when element has non transparent background: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests should show fill icons when element has non transparent background: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests should show fill icons when element has non transparent background: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests should show fill icons when element has non transparent background: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests should show fill icons when element has non transparent background: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests should show fill icons when element has non transparent background: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests should show fill icons when element has non transparent background: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests should show fill icons when element has non transparent background: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests should show fill icons when element has non transparent background: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests should show fill icons when element has non transparent background: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests should show fill icons when element has non transparent background: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests should show fill icons when element has non transparent background: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fa5252", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 888958951, + "width": 10, + "x": 30, + "y": 40, +} +`; + exports[`regression tests should show fill icons when element has non transparent background: [end of test] history 1`] = ` Object { "recording": false, @@ -16320,6 +49221,825 @@ Object { } `; +exports[`regression tests single-clicking on a subgroup of a selected group should not alter selection: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [ + "id29", + ], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 2140907975, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests single-clicking on a subgroup of a selected group should not alter selection: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id29", + ], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 413268521, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests single-clicking on a subgroup of a selected group should not alter selection: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [ + "id29", + ], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 5, + "versionNonce": 909170919, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests single-clicking on a subgroup of a selected group should not alter selection: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [ + "id29", + ], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 3, + "versionNonce": 613600521, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests single-clicking on a subgroup of a selected group should not alter selection: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [ + "id29", + ], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 5, + "versionNonce": 1016275975, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests single-clicking on a subgroup of a selected group should not alter selection: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [ + "id29", + ], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 3, + "versionNonce": 1688617961, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests single-clicking on a subgroup of a selected group should not alter selection: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [ + "id29", + ], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 5, + "versionNonce": 1388251943, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests single-clicking on a subgroup of a selected group should not alter selection: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [ + "id29", + ], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 3, + "versionNonce": 82304713, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests single-clicking on a subgroup of a selected group should not alter selection: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [ + "id29", + ], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 5, + "versionNonce": 86052423, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests single-clicking on a subgroup of a selected group should not alter selection: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [ + "id29", + ], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 3, + "versionNonce": 603135401, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests single-clicking on a subgroup of a selected group should not alter selection: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id29", + ], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 3, + "versionNonce": 513125735, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests single-clicking on a subgroup of a selected group should not alter selection: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [ + "id29", + ], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 3, + "versionNonce": 15958153, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests single-clicking on a subgroup of a selected group should not alter selection: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id29", + ], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 2, + "versionNonce": 1516857479, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests single-clicking on a subgroup of a selected group should not alter selection: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id29", + ], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 3, + "versionNonce": 1772390249, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests single-clicking on a subgroup of a selected group should not alter selection: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [ + "id29", + ], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 3, + "versionNonce": 1448656807, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests single-clicking on a subgroup of a selected group should not alter selection: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [ + "id29", + ], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 1750184521, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests single-clicking on a subgroup of a selected group should not alter selection: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [ + "id29", + ], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 3, + "versionNonce": 1150300871, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests single-clicking on a subgroup of a selected group should not alter selection: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id29", + ], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 836141353, + "width": 10, + "x": 40, + "y": 40, +} +`; + +exports[`regression tests single-clicking on a subgroup of a selected group should not alter selection: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id29", + ], + "height": 10, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 888958951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 1571570151, + "width": 10, + "x": 80, + "y": 40, +} +`; + +exports[`regression tests single-clicking on a subgroup of a selected group should not alter selection: [end of test] element 23 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id29", + ], + "height": 10, + "id": "id25", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 651223591, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 1402893321, + "width": 10, + "x": 40, + "y": 90, +} +`; + +exports[`regression tests single-clicking on a subgroup of a selected group should not alter selection: [end of test] element 24 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id29", + ], + "height": 10, + "id": "id26", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1189086535, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 314141959, + "width": 10, + "x": 80, + "y": 90, +} +`; + exports[`regression tests single-clicking on a subgroup of a selected group should not alter selection: [end of test] history 1`] = ` Object { "recording": false, @@ -17134,6 +50854,784 @@ Object { } `; +exports[`regression tests spacebar + drag scrolls the canvas: [end of test] element 0 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id0", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 337897, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 10, + "y": 10, +} +`; + +exports[`regression tests spacebar + drag scrolls the canvas: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`regression tests spacebar + drag scrolls the canvas: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests spacebar + drag scrolls the canvas: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests spacebar + drag scrolls the canvas: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests spacebar + drag scrolls the canvas: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests spacebar + drag scrolls the canvas: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests spacebar + drag scrolls the canvas: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests spacebar + drag scrolls the canvas: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests spacebar + drag scrolls the canvas: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests spacebar + drag scrolls the canvas: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests spacebar + drag scrolls the canvas: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests spacebar + drag scrolls the canvas: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests spacebar + drag scrolls the canvas: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests spacebar + drag scrolls the canvas: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests spacebar + drag scrolls the canvas: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests spacebar + drag scrolls the canvas: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests spacebar + drag scrolls the canvas: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests spacebar + drag scrolls the canvas: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests spacebar + drag scrolls the canvas: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests spacebar + drag scrolls the canvas: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + exports[`regression tests spacebar + drag scrolls the canvas: [end of test] history 1`] = ` Object { "recording": false, @@ -17348,6 +51846,832 @@ Object { } `; +exports[`regression tests supports nested groups: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [ + "id24", + ], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 453187241, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests supports nested groups: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [ + "id24", + ], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1532871783, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests supports nested groups: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id24", + ], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1704745353, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests supports nested groups: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [ + "id24", + ], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 5, + "versionNonce": 337026951, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests supports nested groups: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [ + "id24", + ], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 3, + "versionNonce": 1439318121, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests supports nested groups: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [ + "id24", + ], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 5, + "versionNonce": 1934038695, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests supports nested groups: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [ + "id24", + ], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 3, + "versionNonce": 425216841, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests supports nested groups: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [ + "id24", + ], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 5, + "versionNonce": 2140907975, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests supports nested groups: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [ + "id24", + ], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 3, + "versionNonce": 413268521, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests supports nested groups: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [ + "id24", + ], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 5, + "versionNonce": 909170919, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests supports nested groups: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [ + "id24", + ], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 3, + "versionNonce": 613600521, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests supports nested groups: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id24", + ], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 3, + "versionNonce": 1016275975, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests supports nested groups: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [ + "id24", + ], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 3, + "versionNonce": 1688617961, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests supports nested groups: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id24", + ], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 2, + "versionNonce": 1388251943, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests supports nested groups: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id24", + ], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 3, + "versionNonce": 82304713, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests supports nested groups: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [ + "id24", + ], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 3, + "versionNonce": 86052423, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests supports nested groups: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [ + "id24", + ], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 603135401, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests supports nested groups: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [ + "id24", + ], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 3, + "versionNonce": 513125735, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests supports nested groups: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id24", + ], + "height": 50, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 15958153, + "width": 50, + "x": 30, + "y": 40, +} +`; + +exports[`regression tests supports nested groups: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id24", + ], + "height": 50, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 888958951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 1516857479, + "width": 50, + "x": 130, + "y": 140, +} +`; + +exports[`regression tests supports nested groups: [end of test] element 23 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [ + "id24", + ], + "height": 50, + "id": "id23", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 735304455, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 3, + "versionNonce": 1772390249, + "width": 50, + "x": 230, + "y": 240, +} +`; + exports[`regression tests supports nested groups: [end of test] history 1`] = ` Object { "recording": false, @@ -18255,6 +53579,790 @@ Object { } `; +exports[`regression tests switches from group of selected elements to another element on pointer down: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests switches from group of selected elements to another element on pointer down: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests switches from group of selected elements to another element on pointer down: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests switches from group of selected elements to another element on pointer down: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests switches from group of selected elements to another element on pointer down: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests switches from group of selected elements to another element on pointer down: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests switches from group of selected elements to another element on pointer down: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests switches from group of selected elements to another element on pointer down: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests switches from group of selected elements to another element on pointer down: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests switches from group of selected elements to another element on pointer down: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests switches from group of selected elements to another element on pointer down: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests switches from group of selected elements to another element on pointer down: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests switches from group of selected elements to another element on pointer down: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests switches from group of selected elements to another element on pointer down: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests switches from group of selected elements to another element on pointer down: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests switches from group of selected elements to another element on pointer down: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests switches from group of selected elements to another element on pointer down: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests switches from group of selected elements to another element on pointer down: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests switches from group of selected elements to another element on pointer down: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1177973545, + "width": 10, + "x": 30, + "y": 40, +} +`; + +exports[`regression tests switches from group of selected elements to another element on pointer down: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 2, + }, + "seed": 888958951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 2, + "versionNonce": 2066753033, + "width": 100, + "x": 140, + "y": 150, +} +`; + +exports[`regression tests switches from group of selected elements to another element on pointer down: [end of test] element 23 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id23", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 2, + }, + "seed": 735304455, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 2, + "versionNonce": 271613161, + "width": 100, + "x": 340, + "y": 350, +} +`; + exports[`regression tests switches from group of selected elements to another element on pointer down: [end of test] history 1`] = ` Object { "recording": false, @@ -18694,6 +54802,788 @@ Object { } `; +exports[`regression tests switches selected element on pointer down: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests switches selected element on pointer down: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests switches selected element on pointer down: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests switches selected element on pointer down: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests switches selected element on pointer down: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests switches selected element on pointer down: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests switches selected element on pointer down: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests switches selected element on pointer down: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests switches selected element on pointer down: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests switches selected element on pointer down: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests switches selected element on pointer down: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests switches selected element on pointer down: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests switches selected element on pointer down: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests switches selected element on pointer down: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests switches selected element on pointer down: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests switches selected element on pointer down: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests switches selected element on pointer down: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests switches selected element on pointer down: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests switches selected element on pointer down: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests switches selected element on pointer down: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1177973545, + "width": 10, + "x": 30, + "y": 40, +} +`; + +exports[`regression tests switches selected element on pointer down: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 2, + }, + "seed": 888958951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 2, + "versionNonce": 2066753033, + "width": 10, + "x": 50, + "y": 60, +} +`; + exports[`regression tests switches selected element on pointer down: [end of test] history 1`] = ` Object { "recording": false, @@ -18917,6 +55807,784 @@ Object { } `; +exports[`regression tests two-finger scroll works: [end of test] element 0 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id0", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 337897, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 10, + "y": 10, +} +`; + +exports[`regression tests two-finger scroll works: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`regression tests two-finger scroll works: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests two-finger scroll works: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests two-finger scroll works: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests two-finger scroll works: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests two-finger scroll works: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests two-finger scroll works: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests two-finger scroll works: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests two-finger scroll works: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests two-finger scroll works: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests two-finger scroll works: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests two-finger scroll works: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests two-finger scroll works: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests two-finger scroll works: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 3, + "versionNonce": 1177973545, + "width": 300, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests two-finger scroll works: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests two-finger scroll works: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests two-finger scroll works: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests two-finger scroll works: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests two-finger scroll works: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests two-finger scroll works: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + exports[`regression tests two-finger scroll works: [end of test] history 1`] = ` Object { "recording": false, @@ -19139,6 +56807,820 @@ Object { } `; +exports[`regression tests undo/redo drawing an element: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests undo/redo drawing an element: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests undo/redo drawing an element: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests undo/redo drawing an element: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + Object { + "id": "id23", + "type": "arrow", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 5, + "versionNonce": 337026951, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests undo/redo drawing an element: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests undo/redo drawing an element: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests undo/redo drawing an element: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests undo/redo drawing an element: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests undo/redo drawing an element: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests undo/redo drawing an element: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests undo/redo drawing an element: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests undo/redo drawing an element: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests undo/redo drawing an element: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests undo/redo drawing an element: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests undo/redo drawing an element: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests undo/redo drawing an element: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests undo/redo drawing an element: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests undo/redo drawing an element: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + +exports[`regression tests undo/redo drawing an element: [end of test] element 21 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 10, + "id": "id21", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 1573789895, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1177973545, + "width": 20, + "x": 40, + "y": 30, +} +`; + +exports[`regression tests undo/redo drawing an element: [end of test] element 22 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 20, + "id": "id22", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": Object { + "type": 3, + }, + "seed": 888958951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 2066753033, + "width": 30, + "x": 70, + "y": 40, +} +`; + +exports[`regression tests undo/redo drawing an element: [end of test] element 23 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "endArrowhead": "arrow", + "endBinding": Object { + "elementId": "id6", + "focus": -1.0000000000000002, + "gap": 5, + }, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 20, + "id": "id23", + "isDeleted": false, + "lastCommittedPoint": Array [ + 100, + 20, + ], + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 60, + 10, + ], + Array [ + 100, + 20, + ], + ], + "roughness": 1, + "roundness": Object { + "type": 2, + }, + "seed": 735304455, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 9, + "versionNonce": 1439318121, + "width": 100, + "x": 160, + "y": 50, +} +`; + exports[`regression tests undo/redo drawing an element: [end of test] history 1`] = ` Object { "recording": false, @@ -19597,6 +58079,784 @@ Object { } `; +exports[`regression tests updates fontSize & fontFamily appState: [end of test] element 0 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id0", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 337897, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 10, + "y": 10, +} +`; + +exports[`regression tests updates fontSize & fontFamily appState: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`regression tests updates fontSize & fontFamily appState: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests updates fontSize & fontFamily appState: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests updates fontSize & fontFamily appState: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests updates fontSize & fontFamily appState: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests updates fontSize & fontFamily appState: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests updates fontSize & fontFamily appState: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests updates fontSize & fontFamily appState: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests updates fontSize & fontFamily appState: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests updates fontSize & fontFamily appState: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests updates fontSize & fontFamily appState: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests updates fontSize & fontFamily appState: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests updates fontSize & fontFamily appState: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests updates fontSize & fontFamily appState: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests updates fontSize & fontFamily appState: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests updates fontSize & fontFamily appState: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests updates fontSize & fontFamily appState: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests updates fontSize & fontFamily appState: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests updates fontSize & fontFamily appState: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests updates fontSize & fontFamily appState: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + exports[`regression tests updates fontSize & fontFamily appState: [end of test] history 1`] = ` Object { "recording": false, @@ -19706,6 +58966,784 @@ Object { } `; +exports[`regression tests zoom hotkeys: [end of test] element 0 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id0", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 337897, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 10, + "y": 10, +} +`; + +exports[`regression tests zoom hotkeys: [end of test] element 1 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id1", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1278240551, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 50, + "y": 200, +} +`; + +exports[`regression tests zoom hotkeys: [end of test] element 2 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id2", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 449462985, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 100, + "x": 120, + "y": 20, +} +`; + +exports[`regression tests zoom hotkeys: [end of test] element 3 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": null, + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id3", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO", + "roughness": 1, + "roundness": null, + "seed": 453191, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 1, + "versionNonce": 0, + "verticalAlign": "top", + "width": 50, + "x": 300, + "y": 100, +} +`; + +exports[`regression tests zoom hotkeys: [end of test] element 4 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#4dabf7", + "boundElements": Array [], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 200, + "id": "id4", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 401146281, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 500, + "x": 100, + "y": 200, +} +`; + +exports[`regression tests zoom hotkeys: [end of test] element 5 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id5", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 2019559783, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": 100, + "y": 20, +} +`; + +exports[`regression tests zoom hotkeys: [end of test] element 6 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id7", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 35, + "id": "id6", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1150084233, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 4, + "versionNonce": 400692809, + "width": 160, + "x": 240, + "y": 30, +} +`; + +exports[`regression tests zoom hotkeys: [end of test] element 7 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id6", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id7", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM RECT", + "roughness": 1, + "roundness": null, + "seed": 1116226695, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM RECT", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1604849351, + "verticalAlign": "middle", + "width": 150, + "x": 245, + "y": 35, +} +`; + +exports[`regression tests zoom hotkeys: [end of test] element 8 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id9", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 49, + "id": "id8", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1505387817, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "ellipse", + "updated": 1, + "version": 4, + "versionNonce": 81784553, + "width": 269, + "x": 400, + "y": 410, +} +`; + +exports[`regression tests zoom hotkeys: [end of test] element 9 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id8", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id9", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ELLIPSE", + "roughness": 1, + "roundness": null, + "seed": 23633383, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ELLIPSE", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 747212839, + "verticalAlign": "middle", + "width": 180, + "x": 444.39413793040933, + "y": 422.17588386092956, +} +`; + +exports[`regression tests zoom hotkeys: [end of test] element 10 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id11", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 70, + "id": "id10", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1723083209, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1315507081, + "width": 440, + "x": 10, + "y": 530, +} +`; + +exports[`regression tests zoom hotkeys: [end of test] element 11 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id10", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id11", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond", + "roughness": 1, + "roundness": null, + "seed": 760410951, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1898319239, + "verticalAlign": "middle", + "width": 210, + "x": 125, + "y": 552.5, +} +`; + +exports[`regression tests zoom hotkeys: [end of test] element 12 1`] = ` +Object { + "angle": 0, + "backgroundColor": "#fff3bf", + "boundElements": Array [ + Object { + "id": "id13", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 120, + "id": "id12", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 640725609, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "diamond", + "updated": 1, + "version": 4, + "versionNonce": 1402203177, + "width": 440, + "x": 199, + "y": 123, +} +`; + +exports[`regression tests zoom hotkeys: [end of test] element 13 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id12", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 50, + "id": "id13", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO Text In Diamond + with props", + "roughness": 1, + "roundness": null, + "seed": 406373543, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO Text In Diamond + with props", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1359939303, + "verticalAlign": "middle", + "width": 210, + "x": 314, + "y": 158, +} +`; + +exports[`regression tests zoom hotkeys: [end of test] element 14 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id15", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id14", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1349943049, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 2101589481, + "width": 0, + "x": -120, + "y": 40, +} +`; + +exports[`regression tests zoom hotkeys: [end of test] element 15 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id14", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id15", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO FROM ARROW", + "roughness": 1, + "roundness": null, + "seed": 2004587015, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO FROM ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 845789479, + "verticalAlign": "middle", + "width": 160, + "x": -50, + "y": 27.5, +} +`; + +exports[`regression tests zoom hotkeys: [end of test] element 16 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [], + "endArrowhead": null, + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 24, + "id": "id16", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 200, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 1292308681, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "line", + "updated": 1, + "version": 1, + "versionNonce": 0, + "width": 200, + "x": -202, + "y": 70, +} +`; + +exports[`regression tests zoom hotkeys: [end of test] element 17 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id18", + "type": "text", + }, + ], + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "hachure", + "groupIds": Array [], + "height": 0, + "id": "id17", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": Array [ + Array [ + 0, + 0, + ], + Array [ + 300, + 0, + ], + ], + "roughness": 1, + "roundness": null, + "seed": 927333447, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "arrow", + "updated": 1, + "version": 2, + "versionNonce": 1508694887, + "width": 0, + "x": -190, + "y": 169, +} +`; + +exports[`regression tests zoom hotkeys: [end of test] element 18 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id17", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 20, + "groupIds": Array [], + "height": 25, + "id": "id18", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO LABELED ARROW", + "roughness": 1, + "roundness": null, + "seed": 1163661225, + "strokeColor": "#099268", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO LABELED ARROW", + "textAlign": "center", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 745419401, + "verticalAlign": "middle", + "width": 190, + "x": -135, + "y": 156.5, +} +`; + +exports[`regression tests zoom hotkeys: [end of test] element 19 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": Array [ + Object { + "id": "id20", + "type": "text", + }, + ], + "fillStyle": "hachure", + "groupIds": Array [], + "height": 100, + "id": "id19", + "isDeleted": false, + "link": null, + "locked": false, + "opacity": 100, + "roughness": 1, + "roundness": null, + "seed": 1051383431, + "strokeColor": "#495057", + "strokeStyle": "solid", + "strokeWidth": 1, + "type": "rectangle", + "updated": 1, + "version": 2, + "versionNonce": 1279028647, + "width": 113.3515625, + "x": -300, + "y": 200, +} +`; + +exports[`regression tests zoom hotkeys: [end of test] element 20 1`] = ` +Object { + "angle": 0, + "backgroundColor": "transparent", + "baseline": 0, + "boundElements": Array [], + "containerId": "id19", + "fillStyle": "hachure", + "fontFamily": 1, + "fontSize": 13.5, + "groupIds": Array [], + "height": 16.875, + "id": "id20", + "isDeleted": false, + "lineHeight": 1.25, + "link": null, + "locked": false, + "opacity": 100, + "originalText": "HELLO RECT", + "roughness": 1, + "roundness": null, + "seed": 1996028265, + "strokeColor": "#000000", + "strokeStyle": "solid", + "strokeWidth": 1, + "text": "HELLO RECT", + "textAlign": "left", + "type": "text", + "updated": 1, + "version": 2, + "versionNonce": 1984422985, + "verticalAlign": "top", + "width": 100, + "x": -295, + "y": 205, +} +`; + exports[`regression tests zoom hotkeys: [end of test] history 1`] = ` Object { "recording": false,