feat: Add Intl.Segmenter support for Textbox word splitting#10791
Open
jiayihu wants to merge 3 commits into
Open
feat: Add Intl.Segmenter support for Textbox word splitting#10791jiayihu wants to merge 3 commits into
jiayihu wants to merge 3 commits into
Annotations
10 errors and 3 warnings
|
src/shapes/Textbox.spec.ts#L438
AssertionError: unstyle word is 206 wide: expected 75 to be 206 // Object.is equality
- Expected
+ Received
- 206
+ 75
❯ src/shapes/Textbox.spec.ts:438:75
|
|
src/shapes/Textbox.spec.ts#L387
AssertionError: All words have the same length line 0: expected [ { …(2) }, …(2) ] to deeply equal [ { …(2) }, { …(2) } ]
- Expected
+ Received
@@ -7,10 +7,18 @@
"r",
"d",
],
},
{
+ "width": 30,
+ "word": [
+ " ",
+ " ",
+ " ",
+ ],
+ },
+ {
"width": 82.20703125,
"word": [
"w",
"o",
"r",
❯ src/shapes/Textbox.spec.ts:387:67
|
|
src/shapes/Textbox.spec.ts#L352
AssertionError: lines match largestWordWidth with styles: expected [ 'xaxbxc', ' xdeyayb', …(2) ] to deeply equal [ 'xaxbxc', 'xdeyayb', 'id', …(1) ]
- Expected
+ Received
[
"xaxbxc",
- "xdeyayb",
- "id",
+ " xdeyayb",
+ " id ",
"sdgjhgsdg",
]
❯ src/shapes/Textbox.spec.ts:352:7
|
|
src/shapes/Textbox.spec.ts#L275
AssertionError: first line match expectations: expected 'xa xb xc' to be 'xa xb xc xd' // Object.is equality
Expected: "xa xb xc xd"
Received: "xa xb xc"
❯ src/shapes/Textbox.spec.ts:275:67
|
|
src/shapes/Textbox.spec.ts#L252
AssertionError: lines are wrapped: expected 12 to be 7 // Object.is equality
- Expected
+ Received
- 7
+ 12
❯ src/shapes/Textbox.spec.ts:252:60
|
|
src/shapes/Textbox.spec.ts#L230
AssertionError: lines are wrapped: expected 3 to be 2 // Object.is equality
- Expected
+ Received
- 2
+ 3
❯ src/shapes/Textbox.spec.ts:230:60
|
|
src/shapes/Textbox.spec.ts#L212
AssertionError: lines are wrapped: expected 3 to be 2 // Object.is equality
- Expected
+ Received
- 2
+ 3
❯ src/shapes/Textbox.spec.ts:212:60
|
|
src/shapes/Textbox.spec.ts#L159
AssertionError: second line is not end of wrapping: expected true to be false // Object.is equality
- Expected
+ Received
- false
+ true
❯ src/shapes/Textbox.spec.ts:159:7
|
|
vitest.extend.ts#L86
Error: Snapshot `Textbox > toObject with styles 1` mismatched
- Expected
+ Received
@@ -10,11 +10,11 @@
"fontFamily": "Times New Roman",
"fontSize": 40,
"fontStyle": "normal",
"fontWeight": "normal",
"globalCompositeOperation": "source-over",
- "height": 202.5,
+ "height": 254.93,
"left": 0,
"lineHeight": 1.16,
"linethrough": false,
"minWidth": 20,
"opacity": 1,
❯ Proxy.<anonymous> vitest.extend.ts:86:31
❯ src/shapes/Textbox.spec.ts:52:21
|
|
vitest.extend.ts#L86
Error: Snapshot `Textbox > fromObject 1` mismatched
- Expected
+ Received
@@ -10,11 +10,11 @@
"fontFamily": "Times New Roman",
"fontSize": 40,
"fontStyle": "normal",
"fontWeight": "normal",
"globalCompositeOperation": "source-over",
- "height": 254.93,
+ "height": 307.36,
"left": 0,
"lineHeight": 1.16,
"linethrough": false,
"minWidth": 20,
"opacity": 1,
❯ Proxy.<anonymous> vitest.extend.ts:86:31
❯ src/shapes/Textbox.spec.ts:27:21
|
|
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809, actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332, actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
|
|
|
The logs for this run have expired and are no longer available.
Loading