dragCreate.test.tsx.snap 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
  2. exports[`Test dragCreate > add element to the scene when pointer dragging long enough > arrow 1`] = `1`;
  3. exports[`Test dragCreate > add element to the scene when pointer dragging long enough > arrow 2`] = `
  4. {
  5. "angle": 0,
  6. "backgroundColor": "transparent",
  7. "boundElements": null,
  8. "customData": undefined,
  9. "endArrowhead": "arrow",
  10. "endBinding": null,
  11. "fillStyle": "solid",
  12. "frameId": null,
  13. "groupIds": [],
  14. "height": 50,
  15. "id": "id0",
  16. "index": "a0",
  17. "isDeleted": false,
  18. "lastCommittedPoint": null,
  19. "link": null,
  20. "locked": false,
  21. "opacity": 100,
  22. "points": [
  23. [
  24. 0,
  25. 0,
  26. ],
  27. [
  28. 30,
  29. 50,
  30. ],
  31. ],
  32. "roughness": 1,
  33. "roundness": {
  34. "type": 2,
  35. },
  36. "seed": 1278240551,
  37. "startArrowhead": null,
  38. "startBinding": null,
  39. "strokeColor": "#1e1e1e",
  40. "strokeStyle": "solid",
  41. "strokeWidth": 2,
  42. "type": "arrow",
  43. "updated": 1,
  44. "version": 4,
  45. "versionNonce": 2019559783,
  46. "width": 30,
  47. "x": 30,
  48. "y": 20,
  49. }
  50. `;
  51. exports[`Test dragCreate > add element to the scene when pointer dragging long enough > diamond 1`] = `1`;
  52. exports[`Test dragCreate > add element to the scene when pointer dragging long enough > diamond 2`] = `
  53. {
  54. "angle": 0,
  55. "backgroundColor": "transparent",
  56. "boundElements": null,
  57. "customData": undefined,
  58. "fillStyle": "solid",
  59. "frameId": null,
  60. "groupIds": [],
  61. "height": 50,
  62. "id": "id0",
  63. "index": "a0",
  64. "isDeleted": false,
  65. "link": null,
  66. "locked": false,
  67. "opacity": 100,
  68. "roughness": 1,
  69. "roundness": {
  70. "type": 2,
  71. },
  72. "seed": 1278240551,
  73. "strokeColor": "#1e1e1e",
  74. "strokeStyle": "solid",
  75. "strokeWidth": 2,
  76. "type": "diamond",
  77. "updated": 1,
  78. "version": 3,
  79. "versionNonce": 401146281,
  80. "width": 30,
  81. "x": 30,
  82. "y": 20,
  83. }
  84. `;
  85. exports[`Test dragCreate > add element to the scene when pointer dragging long enough > ellipse 1`] = `1`;
  86. exports[`Test dragCreate > add element to the scene when pointer dragging long enough > ellipse 2`] = `
  87. {
  88. "angle": 0,
  89. "backgroundColor": "transparent",
  90. "boundElements": null,
  91. "customData": undefined,
  92. "fillStyle": "solid",
  93. "frameId": null,
  94. "groupIds": [],
  95. "height": 50,
  96. "id": "id0",
  97. "index": "a0",
  98. "isDeleted": false,
  99. "link": null,
  100. "locked": false,
  101. "opacity": 100,
  102. "roughness": 1,
  103. "roundness": {
  104. "type": 2,
  105. },
  106. "seed": 1278240551,
  107. "strokeColor": "#1e1e1e",
  108. "strokeStyle": "solid",
  109. "strokeWidth": 2,
  110. "type": "ellipse",
  111. "updated": 1,
  112. "version": 3,
  113. "versionNonce": 401146281,
  114. "width": 30,
  115. "x": 30,
  116. "y": 20,
  117. }
  118. `;
  119. exports[`Test dragCreate > add element to the scene when pointer dragging long enough > line 1`] = `
  120. {
  121. "angle": 0,
  122. "backgroundColor": "transparent",
  123. "boundElements": null,
  124. "customData": undefined,
  125. "endArrowhead": null,
  126. "endBinding": null,
  127. "fillStyle": "solid",
  128. "frameId": null,
  129. "groupIds": [],
  130. "height": 50,
  131. "id": "id0",
  132. "index": "a0",
  133. "isDeleted": false,
  134. "lastCommittedPoint": null,
  135. "link": null,
  136. "locked": false,
  137. "opacity": 100,
  138. "points": [
  139. [
  140. 0,
  141. 0,
  142. ],
  143. [
  144. 30,
  145. 50,
  146. ],
  147. ],
  148. "roughness": 1,
  149. "roundness": {
  150. "type": 2,
  151. },
  152. "seed": 1278240551,
  153. "startArrowhead": null,
  154. "startBinding": null,
  155. "strokeColor": "#1e1e1e",
  156. "strokeStyle": "solid",
  157. "strokeWidth": 2,
  158. "type": "line",
  159. "updated": 1,
  160. "version": 4,
  161. "versionNonce": 2019559783,
  162. "width": 30,
  163. "x": 30,
  164. "y": 20,
  165. }
  166. `;
  167. exports[`Test dragCreate > add element to the scene when pointer dragging long enough > rectangle 1`] = `1`;
  168. exports[`Test dragCreate > add element to the scene when pointer dragging long enough > rectangle 2`] = `
  169. {
  170. "angle": 0,
  171. "backgroundColor": "transparent",
  172. "boundElements": null,
  173. "customData": undefined,
  174. "fillStyle": "solid",
  175. "frameId": null,
  176. "groupIds": [],
  177. "height": 50,
  178. "id": "id0",
  179. "index": "a0",
  180. "isDeleted": false,
  181. "link": null,
  182. "locked": false,
  183. "opacity": 100,
  184. "roughness": 1,
  185. "roundness": {
  186. "type": 3,
  187. },
  188. "seed": 1278240551,
  189. "strokeColor": "#1e1e1e",
  190. "strokeStyle": "solid",
  191. "strokeWidth": 2,
  192. "type": "rectangle",
  193. "updated": 1,
  194. "version": 3,
  195. "versionNonce": 401146281,
  196. "width": 30,
  197. "x": 30,
  198. "y": 20,
  199. }
  200. `;