123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359 |
- // Jest Snapshot v1, https://goo.gl/fbAQLP
- exports[`restoreElements should restore arrow element correctly 1`] = `
- Object {
- "angle": 0,
- "backgroundColor": "transparent",
- "boundElements": Array [],
- "endArrowhead": null,
- "endBinding": null,
- "fillStyle": "hachure",
- "groupIds": Array [],
- "height": 100,
- "id": "id-arrow01",
- "isDeleted": false,
- "lastCommittedPoint": null,
- "link": null,
- "locked": false,
- "opacity": 100,
- "points": Array [
- Array [
- 0,
- 0,
- ],
- Array [
- 100,
- 100,
- ],
- ],
- "roughness": 1,
- "roundness": Object {
- "type": 2,
- },
- "seed": Any<Number>,
- "startArrowhead": null,
- "startBinding": null,
- "strokeColor": "#1e1e1e",
- "strokeStyle": "solid",
- "strokeWidth": 1,
- "type": "arrow",
- "updated": 1,
- "version": 1,
- "versionNonce": 0,
- "width": 100,
- "x": 0,
- "y": 0,
- }
- `;
- exports[`restoreElements should restore correctly with rectangle, ellipse and diamond elements 1`] = `
- Object {
- "angle": 0,
- "backgroundColor": "blue",
- "boundElements": Array [],
- "fillStyle": "cross-hatch",
- "groupIds": Array [
- "1",
- "2",
- "3",
- ],
- "height": 200,
- "id": "1",
- "isDeleted": false,
- "link": null,
- "locked": false,
- "opacity": 10,
- "roughness": 2,
- "roundness": Object {
- "type": 3,
- },
- "seed": Any<Number>,
- "strokeColor": "red",
- "strokeStyle": "dashed",
- "strokeWidth": 2,
- "type": "rectangle",
- "updated": 1,
- "version": 1,
- "versionNonce": 0,
- "width": 100,
- "x": 10,
- "y": 20,
- }
- `;
- exports[`restoreElements should restore correctly with rectangle, ellipse and diamond elements 2`] = `
- Object {
- "angle": 0,
- "backgroundColor": "blue",
- "boundElements": Array [],
- "fillStyle": "cross-hatch",
- "groupIds": Array [
- "1",
- "2",
- "3",
- ],
- "height": 200,
- "id": "2",
- "isDeleted": false,
- "link": null,
- "locked": false,
- "opacity": 10,
- "roughness": 2,
- "roundness": Object {
- "type": 3,
- },
- "seed": Any<Number>,
- "strokeColor": "red",
- "strokeStyle": "dashed",
- "strokeWidth": 2,
- "type": "ellipse",
- "updated": 1,
- "version": 1,
- "versionNonce": 0,
- "width": 100,
- "x": 10,
- "y": 20,
- }
- `;
- exports[`restoreElements should restore correctly with rectangle, ellipse and diamond elements 3`] = `
- Object {
- "angle": 0,
- "backgroundColor": "blue",
- "boundElements": Array [],
- "fillStyle": "cross-hatch",
- "groupIds": Array [
- "1",
- "2",
- "3",
- ],
- "height": 200,
- "id": "3",
- "isDeleted": false,
- "link": null,
- "locked": false,
- "opacity": 10,
- "roughness": 2,
- "roundness": Object {
- "type": 3,
- },
- "seed": Any<Number>,
- "strokeColor": "red",
- "strokeStyle": "dashed",
- "strokeWidth": 2,
- "type": "diamond",
- "updated": 1,
- "version": 1,
- "versionNonce": 0,
- "width": 100,
- "x": 10,
- "y": 20,
- }
- `;
- exports[`restoreElements should restore freedraw element correctly 1`] = `
- Object {
- "angle": 0,
- "backgroundColor": "transparent",
- "boundElements": Array [],
- "fillStyle": "hachure",
- "groupIds": Array [],
- "height": 0,
- "id": "id-freedraw01",
- "isDeleted": false,
- "lastCommittedPoint": null,
- "link": null,
- "locked": false,
- "opacity": 100,
- "points": Array [],
- "pressures": Array [],
- "roughness": 1,
- "roundness": Object {
- "type": 3,
- },
- "seed": Any<Number>,
- "simulatePressure": true,
- "strokeColor": "#1e1e1e",
- "strokeStyle": "solid",
- "strokeWidth": 1,
- "type": "freedraw",
- "updated": 1,
- "version": 1,
- "versionNonce": 0,
- "width": 0,
- "x": 0,
- "y": 0,
- }
- `;
- exports[`restoreElements should restore line and draw elements correctly 1`] = `
- Object {
- "angle": 0,
- "backgroundColor": "transparent",
- "boundElements": Array [],
- "endArrowhead": null,
- "endBinding": null,
- "fillStyle": "hachure",
- "groupIds": Array [],
- "height": 100,
- "id": "id-line01",
- "isDeleted": false,
- "lastCommittedPoint": null,
- "link": null,
- "locked": false,
- "opacity": 100,
- "points": Array [
- Array [
- 0,
- 0,
- ],
- Array [
- 100,
- 100,
- ],
- ],
- "roughness": 1,
- "roundness": Object {
- "type": 2,
- },
- "seed": Any<Number>,
- "startArrowhead": null,
- "startBinding": null,
- "strokeColor": "#1e1e1e",
- "strokeStyle": "solid",
- "strokeWidth": 1,
- "type": "line",
- "updated": 1,
- "version": 1,
- "versionNonce": 0,
- "width": 100,
- "x": 0,
- "y": 0,
- }
- `;
- exports[`restoreElements should restore line and draw elements correctly 2`] = `
- Object {
- "angle": 0,
- "backgroundColor": "transparent",
- "boundElements": Array [],
- "endArrowhead": null,
- "endBinding": null,
- "fillStyle": "hachure",
- "groupIds": Array [],
- "height": 100,
- "id": "id-draw01",
- "isDeleted": false,
- "lastCommittedPoint": null,
- "link": null,
- "locked": false,
- "opacity": 100,
- "points": Array [
- Array [
- 0,
- 0,
- ],
- Array [
- 100,
- 100,
- ],
- ],
- "roughness": 1,
- "roundness": Object {
- "type": 2,
- },
- "seed": Any<Number>,
- "startArrowhead": null,
- "startBinding": null,
- "strokeColor": "#1e1e1e",
- "strokeStyle": "solid",
- "strokeWidth": 1,
- "type": "line",
- "updated": 1,
- "version": 1,
- "versionNonce": 0,
- "width": 100,
- "x": 0,
- "y": 0,
- }
- `;
- exports[`restoreElements should restore text element correctly passing value for each attribute 1`] = `
- Object {
- "angle": 0,
- "backgroundColor": "transparent",
- "baseline": 0,
- "boundElements": Array [],
- "containerId": null,
- "fillStyle": "hachure",
- "fontFamily": 1,
- "fontSize": 14,
- "groupIds": Array [],
- "height": 100,
- "id": "id-text01",
- "isDeleted": false,
- "lineHeight": 1.25,
- "link": null,
- "locked": false,
- "opacity": 100,
- "originalText": "text",
- "roughness": 1,
- "roundness": Object {
- "type": 3,
- },
- "seed": Any<Number>,
- "strokeColor": "#1e1e1e",
- "strokeStyle": "solid",
- "strokeWidth": 1,
- "text": "text",
- "textAlign": "center",
- "type": "text",
- "updated": 1,
- "version": 1,
- "versionNonce": 0,
- "verticalAlign": "middle",
- "width": 100,
- "x": -20,
- "y": -8.75,
- }
- `;
- exports[`restoreElements should restore text element correctly with unknown font family, null text and undefined alignment 1`] = `
- Object {
- "angle": 0,
- "backgroundColor": "transparent",
- "baseline": 0,
- "boundElements": Array [],
- "containerId": null,
- "fillStyle": "hachure",
- "fontFamily": 1,
- "fontSize": 10,
- "groupIds": Array [],
- "height": 100,
- "id": "id-text01",
- "isDeleted": false,
- "lineHeight": 1.25,
- "link": null,
- "locked": false,
- "opacity": 100,
- "originalText": "test",
- "roughness": 1,
- "roundness": Object {
- "type": 3,
- },
- "seed": Any<Number>,
- "strokeColor": "#1e1e1e",
- "strokeStyle": "solid",
- "strokeWidth": 1,
- "text": "",
- "textAlign": "left",
- "type": "text",
- "updated": 1,
- "version": 1,
- "versionNonce": 0,
- "verticalAlign": "top",
- "width": 100,
- "x": 0,
- "y": 0,
- }
- `;
|