linearElementEditor.test.tsx.snap 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
  2. exports[`Test Linear Elements > Test bound text element > should bind text to arrow when clicked on arrow and enter pressed 1`] = `
  3. "Online whiteboard
  4. collaboration made
  5. easy"
  6. `;
  7. exports[`Test Linear Elements > Test bound text element > should bind text to arrow when double clicked 1`] = `
  8. "Online whiteboard
  9. collaboration made
  10. easy"
  11. `;
  12. exports[`Test Linear Elements > Test bound text element > should match styles for text editor 1`] = `
  13. <textarea
  14. class="excalidraw-wysiwyg"
  15. data-type="wysiwyg"
  16. dir="auto"
  17. style="position: absolute; display: inline-block; min-height: 1em; backface-visibility: hidden; margin: 0px; padding: 0px; border: 0px; outline: 0; resize: none; background: transparent; overflow: hidden; z-index: var(--zIndex-wysiwyg); word-break: break-word; white-space: pre-wrap; overflow-wrap: break-word; box-sizing: content-box; width: 10.5px; height: 26.25px; left: 35px; top: 7.5px; transform: translate(0px, 0px) scale(1) rotate(0deg); text-align: center; vertical-align: middle; color: rgb(30, 30, 30); opacity: 1; max-height: 992.5px; font: Emoji 20px 20px; line-height: 1.25; font-family: Excalifont, Xiaolai, sans-serif, Segoe UI Emoji;"
  18. tabindex="0"
  19. wrap="off"
  20. />
  21. `;
  22. exports[`Test Linear Elements > Test bound text element > should resize and position the bound text and bounding box correctly when 3 pointer arrow element resized 2`] = `
  23. "Online whiteboard
  24. collaboration made
  25. easy"
  26. `;
  27. exports[`Test Linear Elements > Test bound text element > should resize and position the bound text and bounding box correctly when 3 pointer arrow element resized 6`] = `
  28. "Online whiteboard
  29. collaboration made easy"
  30. `;
  31. exports[`Test Linear Elements > Test bound text element > should resize and position the bound text correctly when 2 pointer linear element resized 2`] = `
  32. "Online whiteboard
  33. collaboration made
  34. easy"
  35. `;
  36. exports[`Test Linear Elements > Test bound text element > should resize and position the bound text correctly when 2 pointer linear element resized 5`] = `
  37. "Online whiteboard
  38. collaboration made easy"
  39. `;
  40. exports[`Test Linear Elements > Test bound text element > should wrap the bound text when arrow bound container moves 1`] = `
  41. "Online whiteboard
  42. collaboration made easy"
  43. `;
  44. exports[`Test Linear Elements > Test bound text element > should wrap the bound text when arrow bound container moves 2`] = `
  45. "Online whiteboard
  46. collaboration made
  47. easy"
  48. `;