dragCreate.test.tsx.snap 3.0 KB

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