You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 15be85d
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: packages/s2-core/__tests__/spreadsheet/__snapshots__/multi-line-text-spec.ts.snap
+52-65Lines changed: 52 additions & 65 deletions
Original file line number
Diff line number
Diff line change
@@ -4385,13 +4385,12 @@ Array [
4385
4385
"width": 96,
4386
4386
},
4387
4387
Object {
4388
-
"actualText": "236723672361111",
4389
-
"actualTextHeight": 30,
4390
-
"actualTextWidth": 99,
4388
+
"actualText": "2367236723...",
4389
+
"actualTextHeight": 15,
4390
+
"actualTextWidth": 77,
4391
4391
"height": 30,
4392
4392
"multiLineActualTexts": Array [
4393
-
"23672367236",
4394
-
"1111",
4393
+
"2367236723...",
4395
4394
],
4396
4395
"originalText": 236723672361111,
4397
4396
"width": 96,
@@ -5293,13 +5292,12 @@ Array [
5293
5292
exports[`SpreadSheet Multi Line Text Tests PivotSheet should calculate correctly max text width for default sort header action icons 5`] = `
5294
5293
Array [
5295
5294
Object {
5296
-
"actualText": "236723672361111",
5297
-
"actualTextHeight": 30,
5298
-
"actualTextWidth": 100,
5295
+
"actualText": "23672367236...",
5296
+
"actualTextHeight": 15,
5297
+
"actualTextWidth": 84,
5299
5298
"height": 30,
5300
5299
"multiLineActualTexts": Array [
5301
-
"2367236723611",
5302
-
"11",
5300
+
"23672367236...",
5303
5301
],
5304
5302
"originalText": 236723672361111,
5305
5303
"width": 102,
@@ -7180,13 +7178,12 @@ Array [
7180
7178
exports[`SpreadSheet Multi Line Text Tests PivotSheet should calculate correctly max text width for headerActionIcons 5`] = `
7181
7179
Array [
7182
7180
Object {
7183
-
"actualText": "236723672361111",
7184
-
"actualTextHeight": 30,
7185
-
"actualTextWidth": 100,
7181
+
"actualText": "23672367236...",
7182
+
"actualTextHeight": 15,
7183
+
"actualTextWidth": 84,
7186
7184
"height": 30,
7187
7185
"multiLineActualTexts": Array [
7188
-
"2367236723611",
7189
-
"11",
7186
+
"23672367236...",
7190
7187
],
7191
7188
"originalText": 236723672361111,
7192
7189
"width": 102,
@@ -8880,13 +8877,12 @@ Array [
8880
8877
exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly row cell height priority if actual text not wrap 5`] = `
8881
8878
Array [
8882
8879
Object {
8883
-
"actualText": "236723672361111",
8884
-
"actualTextHeight": 30,
8885
-
"actualTextWidth": 100,
8880
+
"actualText": "23672367236...",
8881
+
"actualTextHeight": 15,
8882
+
"actualTextWidth": 84,
8886
8883
"height": 30,
8887
8884
"multiLineActualTexts": Array [
8888
-
"2367236723611",
8889
-
"11",
8885
+
"23672367236...",
8890
8886
],
8891
8887
"originalText": 236723672361111,
8892
8888
"width": 102,
@@ -9578,13 +9574,12 @@ Array [
9578
9574
exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by colCell.height 5`] = `
9579
9575
Array [
9580
9576
Object {
9581
-
"actualText": "236723672361111",
9582
-
"actualTextHeight": 30,
9583
-
"actualTextWidth": 99,
9577
+
"actualText": "2367236723...",
9578
+
"actualTextHeight": 15,
9579
+
"actualTextWidth": 77,
9584
9580
"height": 30,
9585
9581
"multiLineActualTexts": Array [
9586
-
"23672367236",
9587
-
"1111",
9582
+
"2367236723...",
9588
9583
],
9589
9584
"originalText": 236723672361111,
9590
9585
"width": 96,
@@ -9979,13 +9974,12 @@ Array [
9979
9974
exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by colCell.height() 5`] = `
9980
9975
Array [
9981
9976
Object {
9982
-
"actualText": "236723672361111",
9983
-
"actualTextHeight": 30,
9984
-
"actualTextWidth": 99,
9977
+
"actualText": "2367236723...",
9978
+
"actualTextHeight": 15,
9979
+
"actualTextWidth": 77,
9985
9980
"height": 30,
9986
9981
"multiLineActualTexts": Array [
9987
-
"23672367236",
9988
-
"1111",
9982
+
"2367236723...",
9989
9983
],
9990
9984
"originalText": 236723672361111,
9991
9985
"width": 96,
@@ -10938,13 +10932,12 @@ Array [
10938
10932
exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 5`] = `
10939
10933
Array [
10940
10934
Object {
10941
-
"actualText": "236723672361111",
10942
-
"actualTextHeight": 30,
10943
-
"actualTextWidth": 99,
10935
+
"actualText": "2367236723...",
10936
+
"actualTextHeight": 15,
10937
+
"actualTextWidth": 77,
10944
10938
"height": 30,
10945
10939
"multiLineActualTexts": Array [
10946
-
"23672367236",
10947
-
"1111",
10940
+
"2367236723...",
10948
10941
],
10949
10942
"originalText": 236723672361111,
10950
10943
"width": 96,
@@ -13182,13 +13175,12 @@ Array [
13182
13175
exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by infinity maxLines 5`] = `
13183
13176
Array [
13184
13177
Object {
13185
-
"actualText": "236723672361111",
13186
-
"actualTextHeight": 30,
13187
-
"actualTextWidth": 99,
13178
+
"actualText": "2367236723...",
13179
+
"actualTextHeight": 15,
13180
+
"actualTextWidth": 77,
13188
13181
"height": 30,
13189
13182
"multiLineActualTexts": Array [
13190
-
"23672367236",
13191
-
"1111",
13183
+
"2367236723...",
13192
13184
],
13193
13185
"originalText": 236723672361111,
13194
13186
"width": 96,
@@ -14826,13 +14818,12 @@ Array [
14826
14818
exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by maxLinesByField 5`] = `
14827
14819
Array [
14828
14820
Object {
14829
-
"actualText": "236723672361111",
14830
-
"actualTextHeight": 30,
14831
-
"actualTextWidth": 100,
14821
+
"actualText": "23672367236...",
14822
+
"actualTextHeight": 15,
14823
+
"actualTextWidth": 84,
14832
14824
"height": 30,
14833
14825
"multiLineActualTexts": Array [
14834
-
"2367236723611",
14835
-
"11",
14826
+
"23672367236...",
14836
14827
],
14837
14828
"originalText": 236723672361111,
14838
14829
"width": 102,
@@ -15932,13 +15923,12 @@ Array [
15932
15923
exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 5`] = `
15933
15924
Array [
15934
15925
Object {
15935
-
"actualText": "236723672361111",
15936
-
"actualTextHeight": 30,
15937
-
"actualTextWidth": 99,
15926
+
"actualText": "2367236723...",
15927
+
"actualTextHeight": 15,
15928
+
"actualTextWidth": 77,
15938
15929
"height": 30,
15939
15930
"multiLineActualTexts": Array [
15940
-
"23672367236",
15941
-
"1111",
15931
+
"2367236723...",
15942
15932
],
15943
15933
"originalText": 236723672361111,
15944
15934
"width": 96,
@@ -16622,13 +16612,12 @@ Array [
16622
16612
"width": 103,
16623
16613
},
16624
16614
Object {
16625
-
"actualText": "236723672361111",
16626
-
"actualTextHeight": 30,
16627
-
"actualTextWidth": 100,
16615
+
"actualText": "23672367236...",
16616
+
"actualTextHeight": 15,
16617
+
"actualTextWidth": 84,
16628
16618
"height": 30,
16629
16619
"multiLineActualTexts": Array [
16630
-
"2367236723611",
16631
-
"11",
16620
+
"23672367236...",
16632
16621
],
16633
16622
"originalText": 236723672361111,
16634
16623
"width": 103,
@@ -17311,13 +17300,12 @@ Array [
17311
17300
exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 5`] = `
17312
17301
Array [
17313
17302
Object {
17314
-
"actualText": "236723672361111",
17315
-
"actualTextHeight": 30,
17316
-
"actualTextWidth": 99,
17303
+
"actualText": "2367236723...",
17304
+
"actualTextHeight": 15,
17305
+
"actualTextWidth": 77,
17317
17306
"height": 30,
17318
17307
"multiLineActualTexts": Array [
17319
-
"23672367236",
17320
-
"1111",
17308
+
"2367236723...",
17321
17309
],
17322
17310
"originalText": 236723672361111,
17323
17311
"width": 96,
@@ -17909,13 +17897,12 @@ Array [
17909
17897
exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 5`] = `
0 commit comments