mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: add first-class support for CJK (#8530)
This commit is contained in:
parent
21815fb930
commit
b479f3bd65
288 changed files with 3559 additions and 918 deletions
|
@ -206,6 +206,7 @@ exports[`contextMenu element > right-clicking on a group should select whole gro
|
|||
/>
|
||||
</g>
|
||||
</svg>,
|
||||
"keyTest": [Function],
|
||||
"keywords": [
|
||||
"svg",
|
||||
"clipboard",
|
||||
|
@ -4723,6 +4724,7 @@ exports[`contextMenu element > shows 'Group selection' in context menu for multi
|
|||
/>
|
||||
</g>
|
||||
</svg>,
|
||||
"keyTest": [Function],
|
||||
"keywords": [
|
||||
"svg",
|
||||
"clipboard",
|
||||
|
@ -5850,6 +5852,7 @@ exports[`contextMenu element > shows 'Ungroup selection' in context menu for gro
|
|||
/>
|
||||
</g>
|
||||
</svg>,
|
||||
"keyTest": [Function],
|
||||
"keywords": [
|
||||
"svg",
|
||||
"clipboard",
|
||||
|
@ -6929,6 +6932,7 @@ exports[`contextMenu element > shows context menu for canvas > [end of test] app
|
|||
/>
|
||||
</g>
|
||||
</svg>,
|
||||
"keyTest": [Function],
|
||||
"keywords": [
|
||||
"svg",
|
||||
"clipboard",
|
||||
|
@ -7697,6 +7701,7 @@ exports[`contextMenu element > shows context menu for element > [end of test] ap
|
|||
/>
|
||||
</g>
|
||||
</svg>,
|
||||
"keyTest": [Function],
|
||||
"keywords": [
|
||||
"svg",
|
||||
"clipboard",
|
||||
|
@ -8591,6 +8596,7 @@ exports[`contextMenu element > shows context menu for element > [end of test] ap
|
|||
/>
|
||||
</g>
|
||||
</svg>,
|
||||
"keyTest": [Function],
|
||||
"keywords": [
|
||||
"svg",
|
||||
"clipboard",
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
||||
|
||||
exports[`Test Linear Elements > Test bound text element > should bind text to arrow when clicked on arrow and enter pressed 1`] = `
|
||||
"Online whiteboard
|
||||
collaboration made
|
||||
"Online whiteboard
|
||||
collaboration made
|
||||
easy"
|
||||
`;
|
||||
|
||||
exports[`Test Linear Elements > Test bound text element > should bind text to arrow when double clicked 1`] = `
|
||||
"Online whiteboard
|
||||
collaboration made
|
||||
"Online whiteboard
|
||||
collaboration made
|
||||
easy"
|
||||
`;
|
||||
|
||||
|
@ -17,41 +17,41 @@ exports[`Test Linear Elements > Test bound text element > should match styles fo
|
|||
class="excalidraw-wysiwyg"
|
||||
data-type="wysiwyg"
|
||||
dir="auto"
|
||||
style="position: absolute; display: inline-block; min-height: 1em; backface-visibility: hidden; margin: 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: 25px; top: 7.5px; transform: translate(0px, 0px) scale(1) rotate(0deg); padding: 0px 10px; text-align: center; vertical-align: middle; color: rgb(30, 30, 30); opacity: 1; filter: var(--theme-filter); max-height: 992.5px; font: Emoji 20px 20px; line-height: 1.25; font-family: Excalifont, Segoe UI Emoji;"
|
||||
style="position: absolute; display: inline-block; min-height: 1em; backface-visibility: hidden; margin: 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: 25px; top: 7.5px; transform: translate(0px, 0px) scale(1) rotate(0deg); padding: 0px 10px; text-align: center; vertical-align: middle; color: rgb(30, 30, 30); opacity: 1; filter: var(--theme-filter); max-height: 992.5px; font: Emoji 20px 20px; line-height: 1.25; font-family: Excalifont, Xiaolai, Segoe UI Emoji;"
|
||||
tabindex="0"
|
||||
wrap="off"
|
||||
/>
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
"Online whiteboard
|
||||
collaboration made
|
||||
"Online whiteboard
|
||||
collaboration made
|
||||
easy"
|
||||
`;
|
||||
|
||||
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`] = `
|
||||
"Online whiteboard
|
||||
"Online whiteboard
|
||||
collaboration made easy"
|
||||
`;
|
||||
|
||||
exports[`Test Linear Elements > Test bound text element > should resize and position the bound text correctly when 2 pointer linear element resized 2`] = `
|
||||
"Online whiteboard
|
||||
collaboration made
|
||||
"Online whiteboard
|
||||
collaboration made
|
||||
easy"
|
||||
`;
|
||||
|
||||
exports[`Test Linear Elements > Test bound text element > should resize and position the bound text correctly when 2 pointer linear element resized 5`] = `
|
||||
"Online whiteboard
|
||||
"Online whiteboard
|
||||
collaboration made easy"
|
||||
`;
|
||||
|
||||
exports[`Test Linear Elements > Test bound text element > should wrap the bound text when arrow bound container moves 1`] = `
|
||||
"Online whiteboard
|
||||
"Online whiteboard
|
||||
collaboration made easy"
|
||||
`;
|
||||
|
||||
exports[`Test Linear Elements > Test bound text element > should wrap the bound text when arrow bound container moves 2`] = `
|
||||
"Online whiteboard
|
||||
collaboration made
|
||||
"Online whiteboard
|
||||
collaboration made
|
||||
easy"
|
||||
`;
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue