dragCreate.test.tsx.snap 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`add element to the scene when pointer dragging long enough arrow 1`] = `1`;
  3. exports[`add element to the scene when pointer dragging long enough arrow 2`] = `
  4. Object {
  5. "angle": 0,
  6. "backgroundColor": "transparent",
  7. "boundElementIds": null,
  8. "endBinding": null,
  9. "fillStyle": "hachure",
  10. "groupIds": Array [],
  11. "height": 50,
  12. "id": "id0",
  13. "isDeleted": false,
  14. "lastCommittedPoint": null,
  15. "opacity": 100,
  16. "points": Array [
  17. Array [
  18. 0,
  19. 0,
  20. ],
  21. Array [
  22. 30,
  23. 50,
  24. ],
  25. ],
  26. "roughness": 1,
  27. "seed": 337897,
  28. "startBinding": null,
  29. "strokeColor": "#000000",
  30. "strokeStyle": "solid",
  31. "strokeWidth": 1,
  32. "type": "arrow",
  33. "version": 3,
  34. "versionNonce": 449462985,
  35. "width": 30,
  36. "x": 30,
  37. "y": 20,
  38. }
  39. `;
  40. exports[`add element to the scene when pointer dragging long enough diamond 1`] = `1`;
  41. exports[`add element to the scene when pointer dragging long enough diamond 2`] = `
  42. Object {
  43. "angle": 0,
  44. "backgroundColor": "transparent",
  45. "boundElementIds": null,
  46. "fillStyle": "hachure",
  47. "groupIds": Array [],
  48. "height": 50,
  49. "id": "id0",
  50. "isDeleted": false,
  51. "opacity": 100,
  52. "roughness": 1,
  53. "seed": 337897,
  54. "strokeColor": "#000000",
  55. "strokeStyle": "solid",
  56. "strokeWidth": 1,
  57. "type": "diamond",
  58. "version": 2,
  59. "versionNonce": 1278240551,
  60. "width": 30,
  61. "x": 30,
  62. "y": 20,
  63. }
  64. `;
  65. exports[`add element to the scene when pointer dragging long enough ellipse 1`] = `1`;
  66. exports[`add element to the scene when pointer dragging long enough ellipse 2`] = `
  67. Object {
  68. "angle": 0,
  69. "backgroundColor": "transparent",
  70. "boundElementIds": null,
  71. "fillStyle": "hachure",
  72. "groupIds": Array [],
  73. "height": 50,
  74. "id": "id0",
  75. "isDeleted": false,
  76. "opacity": 100,
  77. "roughness": 1,
  78. "seed": 337897,
  79. "strokeColor": "#000000",
  80. "strokeStyle": "solid",
  81. "strokeWidth": 1,
  82. "type": "ellipse",
  83. "version": 2,
  84. "versionNonce": 1278240551,
  85. "width": 30,
  86. "x": 30,
  87. "y": 20,
  88. }
  89. `;
  90. exports[`add element to the scene when pointer dragging long enough line 1`] = `
  91. Object {
  92. "angle": 0,
  93. "backgroundColor": "transparent",
  94. "boundElementIds": null,
  95. "endBinding": null,
  96. "fillStyle": "hachure",
  97. "groupIds": Array [],
  98. "height": 50,
  99. "id": "id0",
  100. "isDeleted": false,
  101. "lastCommittedPoint": null,
  102. "opacity": 100,
  103. "points": Array [
  104. Array [
  105. 0,
  106. 0,
  107. ],
  108. Array [
  109. 30,
  110. 50,
  111. ],
  112. ],
  113. "roughness": 1,
  114. "seed": 337897,
  115. "startBinding": null,
  116. "strokeColor": "#000000",
  117. "strokeStyle": "solid",
  118. "strokeWidth": 1,
  119. "type": "line",
  120. "version": 3,
  121. "versionNonce": 449462985,
  122. "width": 30,
  123. "x": 30,
  124. "y": 20,
  125. }
  126. `;
  127. exports[`add element to the scene when pointer dragging long enough rectangle 1`] = `1`;
  128. exports[`add element to the scene when pointer dragging long enough rectangle 2`] = `
  129. Object {
  130. "angle": 0,
  131. "backgroundColor": "transparent",
  132. "boundElementIds": null,
  133. "fillStyle": "hachure",
  134. "groupIds": Array [],
  135. "height": 50,
  136. "id": "id0",
  137. "isDeleted": false,
  138. "opacity": 100,
  139. "roughness": 1,
  140. "seed": 337897,
  141. "strokeColor": "#000000",
  142. "strokeStyle": "solid",
  143. "strokeWidth": 1,
  144. "type": "rectangle",
  145. "version": 2,
  146. "versionNonce": 1278240551,
  147. "width": 30,
  148. "x": 30,
  149. "y": 20,
  150. }
  151. `;