From f74c65b345e26ef78b11523ff1cf6e83e6dc8e8a Mon Sep 17 00:00:00 2001 From: lijinke666 Date: Mon, 18 Nov 2024 16:45:39 +0800 Subject: [PATCH 1/7] =?UTF-8?q?feat:=20=E5=8D=95=E5=85=83=E6=A0=BC?= =?UTF-8?q?=E8=A1=8C=E9=AB=98=E6=8B=96=E6=8B=BD=E6=94=AF=E6=8C=81=E5=A4=9A?= =?UTF-8?q?=E8=A1=8C=E6=96=87=E6=9C=AC=E8=87=AA=E9=80=82=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../multi-line-text-spec.ts.snap | 19029 +++++++++------- .../spreadsheet/multi-line-text-spec.ts | 35 + .../row-column-resize-spec.ts.snap | 27 + .../interaction/row-column-resize-spec.ts | 72 +- packages/s2-core/__tests__/util/helpers.ts | 13 +- packages/s2-core/src/cell/base-cell.ts | 7 + packages/s2-core/src/cell/col-cell.ts | 2 + packages/s2-core/src/cell/corner-cell.ts | 1 + packages/s2-core/src/cell/row-cell.ts | 1 + packages/s2-core/src/cell/table-data-cell.ts | 1 + .../s2-core/src/common/interface/resize.ts | 1 + .../src/interaction/row-column-resize.ts | 24 +- packages/s2-react/playground/index.tsx | 17 +- packages/s2-react/src/hooks/useSpreadSheet.ts | 2 +- packages/s2-vue/src/hooks/useSheetUpdate.ts | 2 +- s2-site/docs/api/basic-class/base-cell.zh.md | 1 + .../docs/api/components/sheet-component.zh.md | 3 +- s2-site/docs/common/style.zh.md | 2 +- .../docs/manual/basic/multi-line-text.zh.md | 52 +- .../layout/multi-line-text/demo/line-break.ts | 81 + .../layout/multi-line-text/demo/meta.json | 9 + .../layout/multi-line-text/demo/pivot.ts | 4 +- .../layout/multi-line-text/demo/table.ts | 4 +- s2-site/package.json | 16 +- 24 files changed, 11026 insertions(+), 8380 deletions(-) create mode 100644 s2-site/examples/layout/multi-line-text/demo/line-break.ts diff --git a/packages/s2-core/__tests__/spreadsheet/__snapshots__/multi-line-text-spec.ts.snap b/packages/s2-core/__tests__/spreadsheet/__snapshots__/multi-line-text-spec.ts.snap index 8401e9abf6..4afcc6ce9e 100644 --- a/packages/s2-core/__tests__/spreadsheet/__snapshots__/multi-line-text-spec.ts.snap +++ b/packages/s2-core/__tests__/spreadsheet/__snapshots__/multi-line-text-spec.ts.snap @@ -6681,13 +6681,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by maxLines if actual text contains "\\n" 1`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by infinity maxLines 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 76, "multiLineActualTexts": Array [ "序号", ], @@ -6698,7 +6698,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 76, "multiLineActualTexts": Array [ "省份", ], @@ -6706,12 +6706,15 @@ Array [ "width": 96, }, Object { - "actualText": "城市城市城...", - "actualTextHeight": 16, - "actualTextWidth": 71, - "height": 30, + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 64, + "actualTextWidth": 292, + "height": 76, "multiLineActualTexts": Array [ - "城市城市城...", + "城市城市城市", + "城市城市城市", + "城市城市城市", + "城市城市城市", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 96, @@ -6720,7 +6723,7 @@ Array [ "actualText": "类别类别类别类别类别类别类别类别类别类别", "actualTextHeight": 16, "actualTextWidth": 241, - "height": 30, + "height": 96, "multiLineActualTexts": Array [ "类别类别类别类别类别类别类别类别类别类别", ], @@ -6731,7 +6734,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 30, + "height": 96, "multiLineActualTexts": Array [ "子类别", ], @@ -6741,13 +6744,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by maxLines if actual text contains "\\n" 2`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by infinity maxLines 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 120, "multiLineActualTexts": Array [ "1", ], @@ -6758,79 +6761,23 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 120, + "height": 96, "multiLineActualTexts": Array [ "2", ], "originalText": "2", "width": 80, }, - Object { - "actualText": "3", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "3", - ], - "originalText": "3", - "width": 80, - }, - Object { - "actualText": "4", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 120, - "multiLineActualTexts": Array [ - "4", - ], - "originalText": "4", - "width": 80, - }, ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by maxLines if actual text contains "\\n" 3`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by infinity maxLines 3`] = ` Array [ - Object { - "actualText": "纸张...", - "actualTextHeight": 16, - "actualTextWidth": 35, - "height": 30, - "multiLineActualTexts": Array [ - "纸张...", - ], - "originalText": "纸张 -纸张", - "width": 96, - }, - Object { - "actualText": "-", - "actualTextHeight": 16, - "actualTextWidth": 4, - "height": 30, - "multiLineActualTexts": Array [ - "-", - ], - "originalText": "-", - "width": 96, - }, - Object { - "actualText": "数量数量数...", - "actualTextHeight": 15, - "actualTextWidth": 71, - "height": 30, - "multiLineActualTexts": Array [ - "数量数量数...", - ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 96, - }, Object { "actualText": "家具", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 96, "multiLineActualTexts": Array [ "家具", ], @@ -6841,7 +6788,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 96, "multiLineActualTexts": Array [ "桌子", ], @@ -6849,12 +6796,15 @@ Array [ "width": 96, }, Object { - "actualText": "数量数量数...", - "actualTextHeight": 15, - "actualTextWidth": 71, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 60, + "actualTextWidth": 268, + "height": 76, "multiLineActualTexts": Array [ - "数量数量数...", + "数量数量数量", + "数量数量数量", + "数量数量数量", + "数量数量", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 96, @@ -6863,7 +6813,7 @@ Array [ "actualText": "沙发", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 96, "multiLineActualTexts": Array [ "沙发", ], @@ -6871,285 +6821,295 @@ Array [ "width": 96, }, Object { - "actualText": "数量数量数...", - "actualTextHeight": 15, - "actualTextWidth": 71, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 60, + "actualTextWidth": 268, + "height": 76, "multiLineActualTexts": Array [ - "数量数量数...", + "数量数量数量", + "数量数量数量", + "数量数量数量", + "数量数量", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 96, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by infinity maxLines 4`] = ` +Array [ Object { - "actualText": "家具家具家...", + "actualText": "浙江省", "actualTextHeight": 16, - "actualTextWidth": 71, - "height": 30, + "actualTextWidth": 37, + "height": 120, "multiLineActualTexts": Array [ - "家具家具家...", + "浙江省", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "originalText": "浙江省", "width": 96, }, Object { - "actualText": "桌子桌子桌...", - "actualTextHeight": 16, - "actualTextWidth": 71, - "height": 30, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "actualTextHeight": 80, + "actualTextWidth": 365, + "height": 96, "multiLineActualTexts": Array [ - "桌子桌子桌...", + "浙江省浙江省", + "浙江省浙江省", + "浙江省浙江省", + "浙江省浙江省", + "浙江省浙江省", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 96, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by infinity maxLines 5`] = ` +Array [ Object { - "actualText": "数量数量数...", - "actualTextHeight": 15, - "actualTextWidth": 71, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 99, "height": 30, "multiLineActualTexts": Array [ - "数量数量数...", + "23672367236", + "1111", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "originalText": 236723672361111, "width": 96, }, Object { - "actualText": "办公用品", - "actualTextHeight": 16, - "actualTextWidth": 49, - "height": 30, - "multiLineActualTexts": Array [ - "办公用品", - ], - "originalText": "办公用品", - "width": 192, - }, - Object { - "actualText": "笔", - "actualTextHeight": 16, - "actualTextWidth": 13, + "actualText": "3877", + "actualTextHeight": 15, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "笔", + "3877", ], - "originalText": "笔", + "originalText": 3877, "width": 96, }, Object { - "actualText": "数量数量数...", + "actualText": "4342", "actualTextHeight": 15, - "actualTextWidth": 71, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "数量数量数...", + "4342", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "originalText": 4342, "width": 96, }, Object { - "actualText": "纸张", - "actualTextHeight": 16, - "actualTextWidth": 25, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, "height": 30, "multiLineActualTexts": Array [ - "纸张", + "-", ], - "originalText": "纸张", + "originalText": "-", "width": 96, }, Object { - "actualText": "数量数量数...", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 71, - "height": 30, + "actualTextWidth": 4, + "height": 96, "multiLineActualTexts": Array [ - "数量数量数...", + "-", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "originalText": "-", "width": 96, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by maxLines if actual text contains "\\n" 4`] = ` -Array [ Object { - "actualText": "浙江...", - "actualTextHeight": 16, - "actualTextWidth": 35, + "actualText": "632", + "actualTextHeight": 15, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "浙江...", + "632", ], - "originalText": "浙江 -浙江", + "originalText": 632, "width": 96, }, Object { - "actualText": "杭州...", + "actualText": "7234", "actualTextHeight": 15, - "actualTextWidth": 35, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "杭州...", + "7234", ], - "originalText": "杭州 -杭州 -杭州", + "originalText": 7234, "width": 96, }, Object { - "actualText": "浙江省", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 120, + "actualText": "834", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "834", ], - "originalText": "浙江省", + "originalText": 834, "width": 96, }, Object { - "actualText": "绍兴市", + "actualText": "5343", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "5343", ], - "originalText": "绍兴市", + "originalText": 5343, "width": 96, }, Object { - "actualText": "宁波市", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 4, + "height": 96, "multiLineActualTexts": Array [ - "宁波市", + "-", ], - "originalText": "宁波市", + "originalText": "-", "width": 96, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by maxLines if actual text contains "\\n" 1`] = ` +Array [ Object { - "actualText": "舟山市", - "actualTextHeight": 15, - "actualTextWidth": 37, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "舟山市", + "序号", ], - "originalText": "舟山市", - "width": 96, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "杭州市", - "actualTextHeight": 15, - "actualTextWidth": 37, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "杭州市", + "省份", ], - "originalText": "杭州市", + "originalText": "省份", "width": 96, }, Object { - "actualText": "浙江省浙江...", + "actualText": "城市城市城...", "actualTextHeight": 16, "actualTextWidth": 71, "height": 30, "multiLineActualTexts": Array [ - "浙江省浙江...", + "城市城市城...", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 96, }, Object { - "actualText": "杭州市杭州...", - "actualTextHeight": 15, - "actualTextWidth": 71, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 16, + "actualTextWidth": 241, "height": 30, "multiLineActualTexts": Array [ - "杭州市杭州...", + "类别类别类别类别类别类别类别类别类别类别", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "width": 96, + "originalText": "类别类别类别类别类别类别类别类别类别类别", + "width": 272, }, Object { - "actualText": "四川省", + "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 120, + "height": 30, "multiLineActualTexts": Array [ - "四川省", + "子类别", ], - "originalText": "四川省", - "width": 96, + "originalText": "子类别", + "width": 272, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by maxLines if actual text contains "\\n" 2`] = ` +Array [ Object { - "actualText": "成都市", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "成都市", + "1", ], - "originalText": "成都市", - "width": 96, + "originalText": "1", + "width": 80, }, Object { - "actualText": "绵阳市", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 120, "multiLineActualTexts": Array [ - "绵阳市", + "2", ], - "originalText": "绵阳市", - "width": 96, + "originalText": "2", + "width": 80, }, Object { - "actualText": "南充市", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "南充市", + "3", ], - "originalText": "南充市", - "width": 96, + "originalText": "3", + "width": 80, }, Object { - "actualText": "乐山市", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 120, "multiLineActualTexts": Array [ - "乐山市", + "4", ], - "originalText": "乐山市", - "width": 96, + "originalText": "4", + "width": 80, }, ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by maxLines if actual text contains "\\n" 5`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by maxLines if actual text contains "\\n" 3`] = ` Array [ Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, + "actualText": "纸张...", + "actualTextHeight": 16, + "actualTextWidth": 35, "height": 30, "multiLineActualTexts": Array [ - "-", + "纸张...", ], - "originalText": "-", + "originalText": "纸张 +纸张", "width": 96, }, Object { "actualText": "-", - "actualTextHeight": 15, + "actualTextHeight": 16, "actualTextWidth": 4, "height": 30, "multiLineActualTexts": Array [ @@ -7159,313 +7119,326 @@ Array [ "width": 96, }, Object { - "actualText": "-", + "actualText": "数量数量数...", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 71, "height": 30, "multiLineActualTexts": Array [ - "-", + "数量数量数...", ], - "originalText": "-", + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 96, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, + "actualText": "家具", + "actualTextHeight": 16, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "-", + "家具", ], - "originalText": "-", - "width": 96, + "originalText": "家具", + "width": 192, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, + "actualText": "桌子", + "actualTextHeight": 16, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "-", + "桌子", ], - "originalText": "-", + "originalText": "桌子", "width": 96, }, Object { - "actualText": "-", + "actualText": "数量数量数...", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 71, "height": 30, "multiLineActualTexts": Array [ - "-", + "数量数量数...", ], - "originalText": "-", + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 96, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, + "actualText": "沙发", + "actualTextHeight": 16, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "-", + "沙发", ], - "originalText": "-", + "originalText": "沙发", "width": 96, }, Object { - "actualText": "-", + "actualText": "数量数量数...", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 71, "height": 30, "multiLineActualTexts": Array [ - "-", + "数量数量数...", ], - "originalText": "-", + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 96, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, + "actualText": "家具家具家...", + "actualTextHeight": 16, + "actualTextWidth": 71, "height": 30, "multiLineActualTexts": Array [ - "-", + "家具家具家...", ], - "originalText": "-", + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 96, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, + "actualText": "桌子桌子桌...", + "actualTextHeight": 16, + "actualTextWidth": 71, "height": 30, "multiLineActualTexts": Array [ - "-", + "桌子桌子桌...", ], - "originalText": "-", + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 96, }, Object { - "actualText": "-", + "actualText": "数量数量数...", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 71, "height": 30, "multiLineActualTexts": Array [ - "-", + "数量数量数...", ], - "originalText": "-", + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 96, }, Object { - "actualText": "2367236723...", - "actualTextHeight": 15, - "actualTextWidth": 77, + "actualText": "办公用品", + "actualTextHeight": 16, + "actualTextWidth": 49, "height": 30, "multiLineActualTexts": Array [ - "2367236723...", + "办公用品", ], - "originalText": 236723672361111, - "width": 96, + "originalText": "办公用品", + "width": 192, }, Object { - "actualText": "3877", - "actualTextHeight": 15, - "actualTextWidth": 27, + "actualText": "笔", + "actualTextHeight": 16, + "actualTextWidth": 13, "height": 30, "multiLineActualTexts": Array [ - "3877", + "笔", ], - "originalText": 3877, + "originalText": "笔", "width": 96, }, Object { - "actualText": "4342", + "actualText": "数量数量数...", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 71, "height": 30, "multiLineActualTexts": Array [ - "4342", + "数量数量数...", ], - "originalText": 4342, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 96, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, + "actualText": "纸张", + "actualTextHeight": 16, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "-", + "纸张", ], - "originalText": "-", + "originalText": "纸张", "width": 96, }, Object { - "actualText": "-", + "actualText": "数量数量数...", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 71, "height": 30, "multiLineActualTexts": Array [ - "-", + "数量数量数...", ], - "originalText": "-", + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 96, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by maxLines if actual text contains "\\n" 4`] = ` +Array [ Object { - "actualText": "1723", - "actualTextHeight": 15, - "actualTextWidth": 27, + "actualText": "浙江...", + "actualTextHeight": 16, + "actualTextWidth": 35, "height": 30, "multiLineActualTexts": Array [ - "1723", + "浙江...", ], - "originalText": 1723, + "originalText": "浙江 +浙江", "width": 96, }, Object { - "actualText": "1822", + "actualText": "杭州...", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 35, "height": 30, "multiLineActualTexts": Array [ - "1822", + "杭州...", ], - "originalText": 1822, + "originalText": "杭州 +杭州 +杭州", "width": 96, }, Object { - "actualText": "1943", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "浙江省", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 120, "multiLineActualTexts": Array [ - "1943", + "浙江省", ], - "originalText": 1943, + "originalText": "浙江省", "width": 96, }, Object { - "actualText": "2330", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "2330", + "绍兴市", ], - "originalText": 2330, + "originalText": "绍兴市", "width": 96, }, Object { - "actualText": "-", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "-", + "宁波市", ], - "originalText": "-", + "originalText": "宁波市", "width": 96, }, Object { - "actualText": "632", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "632", + "舟山市", ], - "originalText": 632, + "originalText": "舟山市", "width": 96, }, Object { - "actualText": "7234", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "7234", + "杭州市", ], - "originalText": 7234, + "originalText": "杭州市", "width": 96, }, Object { - "actualText": "834", - "actualTextHeight": 15, - "actualTextWidth": 21, + "actualText": "浙江省浙江...", + "actualTextHeight": 16, + "actualTextWidth": 71, "height": 30, "multiLineActualTexts": Array [ - "834", + "浙江省浙江...", ], - "originalText": 834, + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 96, }, Object { - "actualText": "5343", + "actualText": "杭州市杭州...", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 71, "height": 30, "multiLineActualTexts": Array [ - "5343", + "杭州市杭州...", ], - "originalText": 5343, + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 96, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 30, + "actualText": "四川省", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 120, "multiLineActualTexts": Array [ - "-", + "四川省", ], - "originalText": "-", + "originalText": "四川省", "width": 96, }, Object { - "actualText": "2451", + "actualText": "成都市", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "2451", + "成都市", ], - "originalText": 2451, + "originalText": "成都市", "width": 96, }, Object { - "actualText": "2244", + "actualText": "绵阳市", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "2244", + "绵阳市", ], - "originalText": 2244, + "originalText": "绵阳市", "width": 96, }, Object { - "actualText": "2333", + "actualText": "南充市", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "2333", + "南充市", ], - "originalText": 2333, + "originalText": "南充市", "width": 96, }, Object { - "actualText": "2445", + "actualText": "乐山市", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "2445", + "乐山市", ], - "originalText": 2445, + "originalText": "乐山市", "width": 96, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by maxLines if actual text contains "\\n" 5`] = ` +Array [ Object { "actualText": "-", "actualTextHeight": 15, @@ -7522,14 +7495,14 @@ Array [ "width": 96, }, Object { - "actualText": "7789778977...", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 77, + "actualTextWidth": 4, "height": 30, "multiLineActualTexts": Array [ - "7789778977...", + "-", ], - "originalText": "7789778977897789778977897789", + "originalText": "-", "width": 96, }, Object { @@ -7588,47 +7561,47 @@ Array [ "width": 96, }, Object { - "actualText": "1304", + "actualText": "2367236723...", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 77, "height": 30, "multiLineActualTexts": Array [ - "1304", + "2367236723...", ], - "originalText": 1304, + "originalText": 236723672361111, "width": 96, }, Object { - "actualText": "1145", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 26, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "1145", + "3877", ], - "originalText": 1145, + "originalText": 3877, "width": 96, }, Object { - "actualText": "1432", + "actualText": "4342", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "1432", + "4342", ], - "originalText": 1432, + "originalText": 4342, "width": 96, }, Object { - "actualText": "945", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 4, "height": 30, "multiLineActualTexts": Array [ - "945", + "-", ], - "originalText": 945, + "originalText": "-", "width": 96, }, Object { @@ -7643,47 +7616,47 @@ Array [ "width": 96, }, Object { - "actualText": "2335", + "actualText": "1723", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "2335", + "1723", ], - "originalText": 2335, + "originalText": 1723, "width": 96, }, Object { - "actualText": "245", + "actualText": "1822", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "245", + "1822", ], - "originalText": 245, + "originalText": 1822, "width": 96, }, Object { - "actualText": "2457", + "actualText": "1943", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "2457", + "1943", ], - "originalText": 2457, + "originalText": 1943, "width": 96, }, Object { - "actualText": "2458", + "actualText": "2330", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "2458", + "2330", ], - "originalText": 2458, + "originalText": 2330, "width": 96, }, Object { @@ -7698,47 +7671,47 @@ Array [ "width": 96, }, Object { - "actualText": "1354", + "actualText": "632", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "1354", + "632", ], - "originalText": 1354, + "originalText": 632, "width": 96, }, Object { - "actualText": "1523", + "actualText": "7234", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "1523", + "7234", ], - "originalText": 1523, + "originalText": 7234, "width": 96, }, Object { - "actualText": "1634", + "actualText": "834", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "1634", + "834", ], - "originalText": 1634, + "originalText": 834, "width": 96, }, Object { - "actualText": "1343", + "actualText": "5343", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "1343", + "5343", ], - "originalText": 1343, + "originalText": 5343, "width": 96, }, Object { @@ -7753,292 +7726,267 @@ Array [ "width": 96, }, Object { - "actualText": "4004", + "actualText": "2451", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "4004", + "2451", ], - "originalText": 4004, + "originalText": 2451, "width": 96, }, Object { - "actualText": "3077", + "actualText": "2244", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "3077", + "2244", ], - "originalText": 3077, + "originalText": 2244, "width": 96, }, Object { - "actualText": "3551", + "actualText": "2333", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "3551", + "2333", ], - "originalText": 3551, + "originalText": 2333, "width": 96, }, Object { - "actualText": "352", + "actualText": "2445", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "352", + "2445", ], - "originalText": 352, + "originalText": 2445, "width": 96, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, "height": 30, "multiLineActualTexts": Array [ - "序号", + "-", ], - "originalText": "序号", - "width": 80, + "originalText": "-", + "width": 96, }, Object { - "actualText": "省份", - "actualTextHeight": 16, - "actualTextWidth": 25, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, "height": 30, "multiLineActualTexts": Array [ - "省份", + "-", ], - "originalText": "省份", + "originalText": "-", "width": 96, }, Object { - "actualText": "城市城@@@", - "actualTextHeight": 16, - "actualTextWidth": 72, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, "height": 30, "multiLineActualTexts": Array [ - "城市城@@@", + "-", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "originalText": "-", "width": 96, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 16, - "actualTextWidth": 241, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类别类别类别类别类别类别类别", + "-", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 272, + "originalText": "-", + "width": 96, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, "height": 30, "multiLineActualTexts": Array [ - "子类别", + "-", ], - "originalText": "子类别", - "width": 272, + "originalText": "-", + "width": 96, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "7789778977...", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 120, + "actualTextWidth": 77, + "height": 30, "multiLineActualTexts": Array [ - "1", + "7789778977...", ], - "originalText": "1", - "width": 80, + "originalText": "7789778977897789778977897789", + "width": 96, }, Object { - "actualText": "2", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 4, "height": 30, "multiLineActualTexts": Array [ - "2", + "-", ], - "originalText": "2", - "width": 80, + "originalText": "-", + "width": 96, }, Object { - "actualText": "3", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 120, + "actualTextWidth": 4, + "height": 30, "multiLineActualTexts": Array [ - "3", + "-", ], - "originalText": "3", - "width": 80, + "originalText": "-", + "width": 96, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 3`] = ` -Array [ Object { - "actualText": "家具", - "actualTextHeight": 16, - "actualTextWidth": 25, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, "height": 30, "multiLineActualTexts": Array [ - "家具", + "-", ], - "originalText": "家具", - "width": 192, + "originalText": "-", + "width": 96, }, Object { - "actualText": "桌子", - "actualTextHeight": 16, - "actualTextWidth": 25, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "-", ], - "originalText": "桌子", + "originalText": "-", "width": 96, }, Object { - "actualText": "数量数@@@", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 73, + "actualTextWidth": 4, "height": 30, "multiLineActualTexts": Array [ - "数量数@@@", + "-", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "originalText": "-", "width": 96, }, Object { - "actualText": "沙发", - "actualTextHeight": 16, - "actualTextWidth": 25, + "actualText": "1304", + "actualTextHeight": 15, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "1304", ], - "originalText": "沙发", + "originalText": 1304, "width": 96, }, Object { - "actualText": "数量数@@@", + "actualText": "1145", "actualTextHeight": 15, - "actualTextWidth": 73, + "actualTextWidth": 26, "height": 30, "multiLineActualTexts": Array [ - "数量数@@@", + "1145", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "originalText": 1145, "width": 96, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 4`] = ` -Array [ Object { - "actualText": "浙江省", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 120, + "actualText": "1432", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "1432", ], - "originalText": "浙江省", + "originalText": 1432, "width": 96, }, Object { - "actualText": "浙江省@@@", - "actualTextHeight": 16, - "actualTextWidth": 72, + "actualText": "945", + "actualTextHeight": 15, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "浙江省@@@", + "945", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "originalText": 945, "width": 96, }, Object { - "actualText": "四川省", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 120, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, "multiLineActualTexts": Array [ - "四川省", + "-", ], - "originalText": "四川省", + "originalText": "-", "width": 96, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 5`] = ` -Array [ Object { - "actualText": "236723@@@", + "actualText": "2335", "actualTextHeight": 15, - "actualTextWidth": 77, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "236723@@@", + "2335", ], - "originalText": 236723672361111, + "originalText": 2335, "width": 96, }, Object { - "actualText": "3877", + "actualText": "245", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "3877", + "245", ], - "originalText": 3877, + "originalText": 245, "width": 96, }, Object { - "actualText": "4342", + "actualText": "2457", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "4342", + "2457", ], - "originalText": 4342, + "originalText": 2457, "width": 96, }, Object { - "actualText": "-", + "actualText": "2458", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "-", + "2458", ], - "originalText": "-", + "originalText": 2458, "width": 96, }, Object { @@ -8053,91 +8001,47 @@ Array [ "width": 96, }, Object { - "actualText": "1723", + "actualText": "1354", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "1723", + "1354", ], - "originalText": 1723, + "originalText": 1354, "width": 96, }, Object { - "actualText": "1822", + "actualText": "1523", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "1822", + "1523", ], - "originalText": 1822, + "originalText": 1523, "width": 96, }, Object { - "actualText": "1943", + "actualText": "1634", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "1943", + "1634", ], - "originalText": 1943, + "originalText": 1634, "width": 96, }, Object { - "actualText": "2330", + "actualText": "1343", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "2330", + "1343", ], - "originalText": 2330, - "width": 96, - }, - Object { - "actualText": "632", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, - "multiLineActualTexts": Array [ - "632", - ], - "originalText": 632, - "width": 96, - }, - Object { - "actualText": "7234", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "7234", - ], - "originalText": 7234, - "width": 96, - }, - Object { - "actualText": "834", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, - "multiLineActualTexts": Array [ - "834", - ], - "originalText": 834, - "width": 96, - }, - Object { - "actualText": "5343", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "5343", - ], - "originalText": 5343, + "originalText": 1343, "width": 96, }, Object { @@ -8152,59 +8056,59 @@ Array [ "width": 96, }, Object { - "actualText": "2451", + "actualText": "4004", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "2451", + "4004", ], - "originalText": 2451, + "originalText": 4004, "width": 96, }, Object { - "actualText": "2244", + "actualText": "3077", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "2244", + "3077", ], - "originalText": 2244, + "originalText": 3077, "width": 96, }, Object { - "actualText": "2333", + "actualText": "3551", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "2333", + "3551", ], - "originalText": 2333, + "originalText": 3551, "width": 96, }, Object { - "actualText": "2445", + "actualText": "352", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "2445", + "352", ], - "originalText": 2445, + "originalText": 352, "width": 96, }, ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 1`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 61, + "height": 30, "multiLineActualTexts": Array [ "序号", ], @@ -8215,7 +8119,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 61, + "height": 30, "multiLineActualTexts": Array [ "省份", ], @@ -8223,14 +8127,12 @@ Array [ "width": 96, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城...", - "actualTextHeight": 48, - "actualTextWidth": 217, - "height": 61, + "actualText": "城市城@@@", + "actualTextHeight": 16, + "actualTextWidth": 72, + "height": 30, "multiLineActualTexts": Array [ - "城市城市城市", - "城市城市城市", - "城市城市城...", + "城市城@@@", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 96, @@ -8239,7 +8141,7 @@ Array [ "actualText": "类别类别类别类别类别类别类别类别类别类别", "actualTextHeight": 16, "actualTextWidth": 241, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "类别类别类别类别类别类别类别类别类别类别", ], @@ -8250,7 +8152,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "子类别", ], @@ -8260,7 +8162,7 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 2`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 2`] = ` Array [ Object { "actualText": "1", @@ -8277,7 +8179,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "2", ], @@ -8298,13 +8200,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 3`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 3`] = ` Array [ Object { "actualText": "家具", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "家具", ], @@ -8315,7 +8217,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "桌子", ], @@ -8323,14 +8225,12 @@ Array [ "width": 96, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数...", - "actualTextHeight": 45, - "actualTextWidth": 217, - "height": 61, + "actualText": "数量数@@@", + "actualTextHeight": 15, + "actualTextWidth": 73, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量", - "数量数量数量", - "数量数量数...", + "数量数@@@", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 96, @@ -8339,7 +8239,7 @@ Array [ "actualText": "沙发", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "沙发", ], @@ -8347,14 +8247,12 @@ Array [ "width": 96, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数...", - "actualTextHeight": 45, - "actualTextWidth": 217, - "height": 61, + "actualText": "数量数@@@", + "actualTextHeight": 15, + "actualTextWidth": 73, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量", - "数量数量数量", - "数量数量数...", + "数量数@@@", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 96, @@ -8362,7 +8260,7 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 4`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 4`] = ` Array [ Object { "actualText": "浙江省", @@ -8376,14 +8274,12 @@ Array [ "width": 96, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江...", - "actualTextHeight": 48, - "actualTextWidth": 217, - "height": 64, + "actualText": "浙江省@@@", + "actualTextHeight": 16, + "actualTextWidth": 72, + "height": 30, "multiLineActualTexts": Array [ - "浙江省浙江省", - "浙江省浙江省", - "浙江省浙江...", + "浙江省@@@", ], "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 96, @@ -8402,16 +8298,15 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 5`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 5`] = ` Array [ Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 99, + "actualText": "236723@@@", + "actualTextHeight": 15, + "actualTextWidth": 77, "height": 30, "multiLineActualTexts": Array [ - "23672367236", - "1111", + "236723@@@", ], "originalText": 236723672361111, "width": 96, @@ -8453,7 +8348,7 @@ Array [ "actualText": "-", "actualTextHeight": 15, "actualTextWidth": 4, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "-", ], @@ -8471,6 +8366,39 @@ Array [ "originalText": 1723, "width": 96, }, + Object { + "actualText": "1822", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1822", + ], + "originalText": 1822, + "width": 96, + }, + Object { + "actualText": "1943", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1943", + ], + "originalText": 1943, + "width": 96, + }, + Object { + "actualText": "2330", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2330", + ], + "originalText": 2330, + "width": 96, + }, Object { "actualText": "632", "actualTextHeight": 15, @@ -8519,7 +8447,7 @@ Array [ "actualText": "-", "actualTextHeight": 15, "actualTextWidth": 4, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "-", ], @@ -8537,10 +8465,43 @@ Array [ "originalText": 2451, "width": 96, }, + Object { + "actualText": "2244", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2244", + ], + "originalText": 2244, + "width": 96, + }, + Object { + "actualText": "2333", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2333", + ], + "originalText": 2333, + "width": 96, + }, + Object { + "actualText": "2445", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2445", + ], + "originalText": 2445, + "width": 96, + }, ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 1`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 1`] = ` Array [ Object { "actualText": "序号", @@ -8554,29 +8515,39 @@ Array [ "width": 80, }, Object { - "actualText": "省份/城市城市城市城市城市城市...", + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 61, + "multiLineActualTexts": Array [ + "省份", + ], + "originalText": "省份", + "width": 96, + }, + Object { + "actualText": "城市城市城市城市城市城市城市城市城...", "actualTextHeight": 48, - "actualTextWidth": 184, + "actualTextWidth": 217, "height": 61, "multiLineActualTexts": Array [ - "省份/城市城", - "市城市城市", - "城市城市...", + "城市城市城市", + "城市城市城市", + "城市城市城...", ], - "originalText": "省份/城市城市城市城市城市城市城市城市城市城市城市城市", - "width": 100, + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 96, }, Object { "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 32, - "actualTextWidth": 242, + "actualTextHeight": 16, + "actualTextWidth": 241, "height": 64, "multiLineActualTexts": Array [ - "类别类别类别类别类别类别", - "类别类别类别类别", + "类别类别类别类别类别类别类别类别类别类别", ], "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 180, + "width": 272, }, Object { "actualText": "子类别", @@ -8587,18 +8558,18 @@ Array [ "子类别", ], "originalText": "子类别", - "width": 180, + "width": 272, }, ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 2`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 128, + "height": 120, "multiLineActualTexts": Array [ "1", ], @@ -8609,7 +8580,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 150, + "height": 64, "multiLineActualTexts": Array [ "2", ], @@ -8620,7 +8591,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 128, + "height": 120, "multiLineActualTexts": Array [ "3", ], @@ -8630,44 +8601,8 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 3`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 3`] = ` Array [ - Object { - "actualText": "纸张纸张纸张纸张纸张", - "actualTextHeight": 32, - "actualTextWidth": 122, - "height": 64, - "multiLineActualTexts": Array [ - "纸张纸张纸张纸", - "张纸张", - ], - "originalText": "纸张纸张纸张纸张纸张", - "width": 103, - }, - Object { - "actualText": "-", - "actualTextHeight": 16, - "actualTextWidth": 4, - "height": 64, - "multiLineActualTexts": Array [ - "-", - ], - "originalText": "-", - "width": 103, - }, - Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, - "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", - ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103, - }, Object { "actualText": "家具", "actualTextHeight": 16, @@ -8677,7 +8612,7 @@ Array [ "家具", ], "originalText": "家具", - "width": 206, + "width": 192, }, Object { "actualText": "桌子", @@ -8688,20 +8623,20 @@ Array [ "桌子", ], "originalText": "桌子", - "width": 103, + "width": 96, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualText": "数量数量数量数量数量数量数量数量数...", "actualTextHeight": 45, - "actualTextWidth": 253, + "actualTextWidth": 217, "height": 61, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", + "数量数量数量", + "数量数量数量", + "数量数量数...", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103, + "width": 96, }, Object { "actualText": "沙发", @@ -8712,320 +8647,309 @@ Array [ "沙发", ], "originalText": "沙发", - "width": 103, + "width": 96, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualText": "数量数量数量数量数量数量数量数量数...", "actualTextHeight": 45, - "actualTextWidth": 253, + "actualTextWidth": 217, "height": 61, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", + "数量数量数量", + "数量数量数量", + "数量数量数...", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103, + "width": 96, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 4`] = ` +Array [ Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "浙江省", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 120, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具...", + "浙江省", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 103, + "originalText": "浙江省", + "width": 96, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江...", "actualTextHeight": 48, - "actualTextWidth": 253, + "actualTextWidth": 217, "height": 64, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子...", - ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "width": 103, - }, - Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, - "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", + "浙江省浙江省", + "浙江省浙江省", + "浙江省浙江...", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103, + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 96, }, Object { - "actualText": "办公用品", + "actualText": "四川省", "actualTextHeight": 16, - "actualTextWidth": 49, - "height": 64, + "actualTextWidth": 37, + "height": 120, "multiLineActualTexts": Array [ - "办公用品", + "四川省", ], - "originalText": "办公用品", - "width": 206, + "originalText": "四川省", + "width": 96, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 5`] = ` +Array [ Object { - "actualText": "笔", - "actualTextHeight": 16, - "actualTextWidth": 13, - "height": 64, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 99, + "height": 30, "multiLineActualTexts": Array [ - "笔", + "23672367236", + "1111", ], - "originalText": "笔", - "width": 103, + "originalText": 236723672361111, + "width": 96, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, + "actualText": "3877", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", + "3877", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103, + "originalText": 3877, + "width": 96, }, Object { - "actualText": "纸张", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 64, + "actualText": "4342", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "纸张", + "4342", ], - "originalText": "纸张", - "width": 103, + "originalText": 4342, + "width": 96, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", + "-", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103, + "originalText": "-", + "width": 96, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 4`] = ` -Array [ Object { - "actualText": "浙江浙江浙江浙江浙江浙江浙江...", - "actualTextHeight": 48, - "actualTextWidth": 181, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, "height": 64, "multiLineActualTexts": Array [ - "浙江浙江浙", - "江浙江浙江", - "浙江浙江...", + "-", ], - "originalText": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江", - "width": 100, + "originalText": "-", + "width": 96, }, Object { - "actualText": "杭州杭州杭州杭州", - "actualTextHeight": 30, - "actualTextWidth": 98, - "height": 64, + "actualText": "1723", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "杭州杭州杭", - "州杭州", + "1723", ], - "originalText": "杭州杭州杭州杭州", - "width": 100, + "originalText": 1723, + "width": 96, }, Object { - "actualText": "浙江省", - "actualTextHeight": 16, - "actualTextWidth": 37, + "actualText": "632", + "actualTextHeight": 15, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "632", ], - "originalText": "浙江省", - "width": 100, + "originalText": 632, + "width": 96, }, Object { - "actualText": "绍兴市", + "actualText": "7234", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "7234", ], - "originalText": "绍兴市", - "width": 100, + "originalText": 7234, + "width": 96, }, Object { - "actualText": "宁波市", + "actualText": "834", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "834", ], - "originalText": "宁波市", - "width": 100, + "originalText": 834, + "width": 96, }, Object { - "actualText": "舟山市", + "actualText": "5343", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "舟山市", + "5343", ], - "originalText": "舟山市", - "width": 100, + "originalText": 5343, + "width": 96, }, Object { - "actualText": "杭州市", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "杭州市", - ], - "originalText": "杭州市", - "width": 100, - }, - Object { - "actualText": "浙江省浙江省浙江省浙江省浙江...", - "actualTextHeight": 48, - "actualTextWidth": 181, + "actualTextWidth": 4, "height": 64, "multiLineActualTexts": Array [ - "浙江省浙江", - "省浙江省浙", - "江省浙江...", + "-", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 100, + "originalText": "-", + "width": 96, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州...", - "actualTextHeight": 45, - "actualTextWidth": 181, - "height": 64, + "actualText": "2451", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "杭州市杭州", - "市杭州市杭", - "州市杭州...", + "2451", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "width": 100, + "originalText": 2451, + "width": 96, }, ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 5`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 1`] = ` Array [ Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 64, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 61, + "multiLineActualTexts": Array [ + "序号", + ], + "originalText": "序号", + "width": 80, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 64, + "actualText": "省份/城市城市城市城市城市城市...", + "actualTextHeight": 48, + "actualTextWidth": 184, + "height": 61, "multiLineActualTexts": Array [ - "-", + "省份/城市城", + "市城市城市", + "城市城市...", ], - "originalText": "-", - "width": 103, + "originalText": "省份/城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 100, }, Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 30, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 32, + "actualTextWidth": 242, + "height": 64, + "multiLineActualTexts": Array [ + "类别类别类别类别类别类别", + "类别类别类别类别", + ], + "originalText": "类别类别类别类别类别类别类别类别类别类别", + "width": 180, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 30, + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 64, "multiLineActualTexts": Array [ - "-", + "子类别", ], - "originalText": "-", - "width": 103, + "originalText": "子类别", + "width": 180, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 2`] = ` +Array [ Object { - "actualText": "-", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 30, + "actualTextWidth": 7, + "height": 128, "multiLineActualTexts": Array [ - "-", + "1", ], - "originalText": "-", - "width": 103, + "originalText": "1", + "width": 80, }, Object { - "actualText": "-", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 30, + "actualTextWidth": 7, + "height": 150, "multiLineActualTexts": Array [ - "-", + "2", ], - "originalText": "-", - "width": 103, + "originalText": "2", + "width": 80, }, Object { - "actualText": "-", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 30, + "actualTextWidth": 7, + "height": 128, "multiLineActualTexts": Array [ - "-", + "3", ], - "originalText": "-", - "width": 103, + "originalText": "3", + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 3`] = ` +Array [ Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, + "actualText": "纸张纸张纸张纸张纸张", + "actualTextHeight": 32, + "actualTextWidth": 122, "height": 64, - "multiLineActualTexts": Array [], - "originalText": undefined, + "multiLineActualTexts": Array [ + "纸张纸张纸张纸", + "张纸张", + ], + "originalText": "纸张纸张纸张纸张纸张", "width": 103, }, Object { "actualText": "-", - "actualTextHeight": 15, + "actualTextHeight": 16, "actualTextWidth": 4, "height": 64, "multiLineActualTexts": Array [ @@ -9035,192 +8959,291 @@ Array [ "width": 103, }, Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 64, - "multiLineActualTexts": Array [], - "originalText": undefined, + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, + "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数量", + "数量数量数量...", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, + "actualText": "家具", + "actualTextHeight": 16, + "actualTextWidth": 25, "height": 64, "multiLineActualTexts": Array [ - "-", + "家具", ], - "originalText": "-", - "width": 103, - }, - Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 30, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "originalText": "家具", + "width": 206, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 30, + "actualText": "桌子", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "桌子", ], - "originalText": 236723672361111, + "originalText": "桌子", "width": 103, }, Object { - "actualText": "3877", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, "multiLineActualTexts": Array [ - "3877", + "数量数量数量数", + "量数量数量数量", + "数量数量数量...", ], - "originalText": 3877, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103, }, Object { - "actualText": "4342", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "沙发", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, "multiLineActualTexts": Array [ - "4342", + "沙发", ], - "originalText": 4342, + "originalText": "沙发", "width": 103, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, "multiLineActualTexts": Array [ - "-", + "数量数量数量数", + "量数量数量数量", + "数量数量数量...", ], - "originalText": "-", + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103, }, Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, + "actualText": "家具家具家具家具家具家具家具家具家具家具...", + "actualTextHeight": 48, + "actualTextWidth": 253, "height": 64, - "multiLineActualTexts": Array [], - "originalText": undefined, + "multiLineActualTexts": Array [ + "家具家具家具家", + "具家具家具家具", + "家具家具家具...", + ], + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", + "actualTextHeight": 48, + "actualTextWidth": 253, "height": 64, "multiLineActualTexts": Array [ - "-", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子...", ], - "originalText": "-", + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103, }, Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, + "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数量", + "数量数量数量...", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 103, + }, + Object { + "actualText": "办公用品", + "actualTextHeight": 16, + "actualTextWidth": 49, "height": 64, - "multiLineActualTexts": Array [], - "originalText": undefined, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 206, + }, + Object { + "actualText": "笔", + "actualTextHeight": 16, + "actualTextWidth": 13, + "height": 64, + "multiLineActualTexts": Array [ + "笔", + ], + "originalText": "笔", "width": 103, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, + "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数量", + "数量数量数量...", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 103, + }, + Object { + "actualText": "纸张", + "actualTextHeight": 16, + "actualTextWidth": 25, "height": 64, "multiLineActualTexts": Array [ - "-", + "纸张", ], - "originalText": "-", + "originalText": "纸张", "width": 103, }, Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 30, - "multiLineActualTexts": Array [], - "originalText": undefined, + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, + "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数量", + "数量数量数量...", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 4`] = ` +Array [ + Object { + "actualText": "浙江浙江浙江浙江浙江浙江浙江...", + "actualTextHeight": 48, + "actualTextWidth": 181, + "height": 64, + "multiLineActualTexts": Array [ + "浙江浙江浙", + "江浙江浙江", + "浙江浙江...", + ], + "originalText": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江", + "width": 100, + }, Object { - "actualText": "632", + "actualText": "杭州杭州杭州杭州", + "actualTextHeight": 30, + "actualTextWidth": 98, + "height": 64, + "multiLineActualTexts": Array [ + "杭州杭州杭", + "州杭州", + ], + "originalText": "杭州杭州杭州杭州", + "width": 100, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 100, + }, + Object { + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "632", + "绍兴市", ], - "originalText": 632, - "width": 103, + "originalText": "绍兴市", + "width": 100, }, Object { - "actualText": "7234", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "7234", + "宁波市", ], - "originalText": 7234, - "width": 103, + "originalText": "宁波市", + "width": 100, }, Object { - "actualText": "834", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "834", + "舟山市", ], - "originalText": 834, - "width": 103, + "originalText": "舟山市", + "width": 100, }, Object { - "actualText": "5343", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "5343", + "杭州市", ], - "originalText": 5343, - "width": 103, + "originalText": "杭州市", + "width": 100, }, Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, + "actualText": "浙江省浙江省浙江省浙江省浙江...", + "actualTextHeight": 48, + "actualTextWidth": 181, "height": 64, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "multiLineActualTexts": Array [ + "浙江省浙江", + "省浙江省浙", + "江省浙江...", + ], + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 100, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, + "actualText": "杭州市杭州市杭州市杭州市杭州...", + "actualTextHeight": 45, + "actualTextWidth": 181, "height": 64, "multiLineActualTexts": Array [ - "-", + "杭州市杭州", + "市杭州市杭", + "州市杭州...", ], - "originalText": "-", - "width": 103, + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 100, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 5`] = ` +Array [ Object { "actualText": undefined, "actualTextHeight": 0, @@ -9304,16 +9327,14 @@ Array [ "width": 103, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, "height": 64, "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", + "-", ], - "originalText": "7789778977897789778977897789", + "originalText": "-", "width": 103, }, Object { @@ -9346,47 +9367,48 @@ Array [ "width": 103, }, Object { - "actualText": "1304", - "actualTextHeight": 15, - "actualTextWidth": 27, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, "height": 30, "multiLineActualTexts": Array [ - "1304", + "2367236723611", + "11", ], - "originalText": 1304, + "originalText": 236723672361111, "width": 103, }, Object { - "actualText": "1145", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 26, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "1145", + "3877", ], - "originalText": 1145, + "originalText": 3877, "width": 103, }, Object { - "actualText": "1432", + "actualText": "4342", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "1432", + "4342", ], - "originalText": 1432, + "originalText": 4342, "width": 103, }, Object { - "actualText": "945", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 4, "height": 30, "multiLineActualTexts": Array [ - "945", + "-", ], - "originalText": 945, + "originalText": "-", "width": 103, }, Object { @@ -9439,47 +9461,47 @@ Array [ "width": 103, }, Object { - "actualText": "1354", + "actualText": "632", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "1354", + "632", ], - "originalText": 1354, + "originalText": 632, "width": 103, }, Object { - "actualText": "1523", + "actualText": "7234", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "1523", + "7234", ], - "originalText": 1523, + "originalText": 7234, "width": 103, }, Object { - "actualText": "1634", + "actualText": "834", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "1634", + "834", ], - "originalText": 1634, + "originalText": 834, "width": 103, }, Object { - "actualText": "1343", + "actualText": "5343", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "1343", + "5343", ], - "originalText": 1343, + "originalText": 5343, "width": 103, }, Object { @@ -9502,398 +9524,297 @@ Array [ "originalText": "-", "width": 103, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 46, - "multiLineActualTexts": Array [ - "序号", - ], - "originalText": "序号", - "width": 80, + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, + "height": 64, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, }, Object { - "actualText": "省份", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 46, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 64, "multiLineActualTexts": Array [ - "省份", + "-", ], - "originalText": "省份", - "width": 96, + "originalText": "-", + "width": 103, }, Object { - "actualText": "城市城市城市城市城市城...", - "actualTextHeight": 32, - "actualTextWidth": 144, - "height": 46, - "multiLineActualTexts": Array [ - "城市城市城市", - "城市城市城...", - ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "width": 96, + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, + "height": 30, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 16, - "actualTextWidth": 241, - "height": 48, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类别类别类别类别类别类别类别", + "-", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 272, + "originalText": "-", + "width": 103, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 48, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, "multiLineActualTexts": Array [ - "子类别", + "-", ], - "originalText": "子类别", - "width": 272, + "originalText": "-", + "width": 103, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 120, + "actualTextWidth": 4, + "height": 30, "multiLineActualTexts": Array [ - "1", + "-", ], - "originalText": "1", - "width": 80, + "originalText": "-", + "width": 103, }, Object { - "actualText": "2", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 48, + "actualTextWidth": 4, + "height": 30, "multiLineActualTexts": Array [ - "2", + "-", ], - "originalText": "2", - "width": 80, + "originalText": "-", + "width": 103, }, Object { - "actualText": "3", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 120, - "multiLineActualTexts": Array [ - "3", - ], - "originalText": "3", - "width": 80, + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, + "height": 64, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 3`] = ` -Array [ Object { - "actualText": "家具", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 48, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 64, "multiLineActualTexts": Array [ - "家具", + "7789778977897", + "7897789778977", + "89", ], - "originalText": "家具", - "width": 192, + "originalText": "7789778977897789778977897789", + "width": 103, }, Object { - "actualText": "桌子", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 48, - "multiLineActualTexts": Array [ - "桌子", - ], - "originalText": "桌子", - "width": 96, + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, + "height": 64, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, }, Object { - "actualText": "数量数量数量数量数量数...", - "actualTextHeight": 30, - "actualTextWidth": 144, - "height": 46, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 64, "multiLineActualTexts": Array [ - "数量数量数量", - "数量数量数...", + "-", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 96, + "originalText": "-", + "width": 103, }, Object { - "actualText": "沙发", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 48, - "multiLineActualTexts": Array [ - "沙发", - ], - "originalText": "沙发", - "width": 96, + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, + "height": 30, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, }, Object { - "actualText": "数量数量数量数量数量数...", - "actualTextHeight": 30, - "actualTextWidth": 144, - "height": 46, - "multiLineActualTexts": Array [ - "数量数量数量", - "数量数量数...", - ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 96, - }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 4`] = ` -Array [ - Object { - "actualText": "浙江省", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 120, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 96, - }, - Object { - "actualText": "浙江省浙江省浙江省浙江...", - "actualTextHeight": 32, - "actualTextWidth": 144, - "height": 48, - "multiLineActualTexts": Array [ - "浙江省浙江省", - "浙江省浙江...", - ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 96, - }, - Object { - "actualText": "四川省", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 120, + "actualText": "1304", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "四川省", + "1304", ], - "originalText": "四川省", - "width": 96, + "originalText": 1304, + "width": 103, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 5`] = ` -Array [ Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 99, + "actualText": "1145", + "actualTextHeight": 15, + "actualTextWidth": 26, "height": 30, "multiLineActualTexts": Array [ - "23672367236", - "1111", + "1145", ], - "originalText": 236723672361111, - "width": 96, + "originalText": 1145, + "width": 103, }, Object { - "actualText": "3877", + "actualText": "1432", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "3877", + "1432", ], - "originalText": 3877, - "width": 96, + "originalText": 1432, + "width": 103, }, Object { - "actualText": "4342", + "actualText": "945", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "4342", + "945", ], - "originalText": 4342, - "width": 96, + "originalText": 945, + "width": 103, + }, + Object { + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, + "height": 64, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, }, Object { "actualText": "-", "actualTextHeight": 15, "actualTextWidth": 4, - "height": 30, + "height": 64, "multiLineActualTexts": Array [ "-", ], "originalText": "-", - "width": 96, + "width": 103, + }, + Object { + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, + "height": 64, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, }, Object { "actualText": "-", "actualTextHeight": 15, "actualTextWidth": 4, - "height": 48, + "height": 64, "multiLineActualTexts": Array [ "-", ], "originalText": "-", - "width": 96, + "width": 103, }, Object { - "actualText": "1723", - "actualTextHeight": 15, - "actualTextWidth": 27, + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, "height": 30, - "multiLineActualTexts": Array [ - "1723", - ], - "originalText": 1723, - "width": 96, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, }, Object { - "actualText": "1822", + "actualText": "1354", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "1822", + "1354", ], - "originalText": 1822, - "width": 96, + "originalText": 1354, + "width": 103, }, Object { - "actualText": "1943", + "actualText": "1523", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "1943", - ], - "originalText": 1943, - "width": 96, - }, - Object { - "actualText": "632", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, - "multiLineActualTexts": Array [ - "632", + "1523", ], - "originalText": 632, - "width": 96, + "originalText": 1523, + "width": 103, }, Object { - "actualText": "7234", + "actualText": "1634", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "7234", + "1634", ], - "originalText": 7234, - "width": 96, + "originalText": 1634, + "width": 103, }, Object { - "actualText": "834", + "actualText": "1343", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "834", + "1343", ], - "originalText": 834, - "width": 96, + "originalText": 1343, + "width": 103, }, Object { - "actualText": "5343", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "5343", - ], - "originalText": 5343, - "width": 96, + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, + "height": 64, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, }, Object { "actualText": "-", "actualTextHeight": 15, "actualTextWidth": 4, - "height": 48, + "height": 64, "multiLineActualTexts": Array [ "-", ], "originalText": "-", - "width": 96, - }, - Object { - "actualText": "2451", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "2451", - ], - "originalText": 2451, - "width": 96, - }, - Object { - "actualText": "2244", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "2244", - ], - "originalText": 2244, - "width": 96, - }, - Object { - "actualText": "2333", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "2333", - ], - "originalText": 2333, - "width": 96, + "width": 103, }, ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 1`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 76, + "height": 46, "multiLineActualTexts": Array [ "序号", ], @@ -9904,53 +9825,51 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 76, + "height": 46, "multiLineActualTexts": Array [ "省份", ], "originalText": "省份", - "width": 102.57, + "width": 96, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "actualTextHeight": 64, - "actualTextWidth": 292, - "height": 76, + "actualText": "城市城市城市城市城市城...", + "actualTextHeight": 32, + "actualTextWidth": 144, + "height": 46, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市城", - "市城市", + "城市城市城市", + "城市城市城...", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "width": 102.57, + "width": 96, }, Object { "actualText": "类别类别类别类别类别类别类别类别类别类别", "actualTextHeight": 16, "actualTextWidth": 241, - "height": 80, + "height": 48, "multiLineActualTexts": Array [ "类别类别类别类别类别类别类别类别类别类别", ], "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 285.14, + "width": 272, }, Object { "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 96, + "height": 48, "multiLineActualTexts": Array [ "子类别", ], "originalText": "子类别", - "width": 285.14, + "width": 272, }, ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 2`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 2`] = ` Array [ Object { "actualText": "1", @@ -9967,7 +9886,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 96, + "height": 48, "multiLineActualTexts": Array [ "2", ], @@ -9988,1565 +9907,4650 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 3`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 3`] = ` Array [ Object { "actualText": "家具", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 80, + "height": 48, "multiLineActualTexts": Array [ "家具", ], "originalText": "家具", - "width": 205.14, + "width": 192, }, Object { "actualText": "桌子", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 96, + "height": 48, "multiLineActualTexts": Array [ "桌子", ], "originalText": "桌子", - "width": 102.57, + "width": 96, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 60, - "actualTextWidth": 268, - "height": 76, + "actualText": "数量数量数量数量数量数...", + "actualTextHeight": 30, + "actualTextWidth": 144, + "height": 46, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量数", - "量", + "数量数量数量", + "数量数量数...", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 102.57, + "width": 96, }, Object { "actualText": "沙发", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 96, + "height": 48, "multiLineActualTexts": Array [ "沙发", ], "originalText": "沙发", - "width": 102.57, + "width": 96, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 60, - "actualTextWidth": 268, - "height": 76, + "actualText": "数量数量数量数量数量数...", + "actualTextHeight": 30, + "actualTextWidth": 144, + "height": 46, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量数", - "量", + "数量数量数量", + "数量数量数...", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 102.57, + "width": 96, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 4`] = ` +Array [ Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "actualTextHeight": 64, - "actualTextWidth": 340, - "height": 80, + "actualText": "浙江省", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 120, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具家", - "具家具家具家具", + "浙江省", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 102.57, + "originalText": "浙江省", + "width": 96, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "actualTextHeight": 80, - "actualTextWidth": 365, - "height": 96, + "actualText": "浙江省浙江省浙江省浙江...", + "actualTextHeight": 32, + "actualTextWidth": 144, + "height": 48, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子", + "浙江省浙江省", + "浙江省浙江...", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "width": 102.57, + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 96, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 60, - "actualTextWidth": 268, - "height": 76, + "actualText": "四川省", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 120, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量数", - "量", + "四川省", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 102.57, + "originalText": "四川省", + "width": 96, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 5`] = ` +Array [ Object { - "actualText": "办公用品", - "actualTextHeight": 16, - "actualTextWidth": 49, - "height": 80, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 99, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "23672367236", + "1111", ], - "originalText": "办公用品", - "width": 205.14, + "originalText": 236723672361111, + "width": 96, }, Object { - "actualText": "笔", - "actualTextHeight": 16, - "actualTextWidth": 13, - "height": 96, + "actualText": "3877", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "笔", + "3877", ], - "originalText": "笔", - "width": 102.57, + "originalText": 3877, + "width": 96, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 60, - "actualTextWidth": 268, - "height": 76, + "actualText": "4342", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量数", - "量", + "4342", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 102.57, + "originalText": 4342, + "width": 96, }, Object { - "actualText": "纸张", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 96, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, "multiLineActualTexts": Array [ - "纸张", + "-", ], - "originalText": "纸张", - "width": 102.57, + "originalText": "-", + "width": 96, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 60, - "actualTextWidth": 268, - "height": 76, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 48, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量数", - "量", + "-", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 102.57, + "originalText": "-", + "width": 96, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 4`] = ` -Array [ Object { - "actualText": "浙江省", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 120, + "actualText": "1723", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "1723", ], - "originalText": "浙江省", - "width": 102.57, + "originalText": 1723, + "width": 96, }, Object { - "actualText": "绍兴市", + "actualText": "1822", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "1822", ], - "originalText": "绍兴市", - "width": 102.57, + "originalText": 1822, + "width": 96, }, Object { - "actualText": "宁波市", + "actualText": "1943", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "1943", ], - "originalText": "宁波市", - "width": 102.57, + "originalText": 1943, + "width": 96, }, Object { - "actualText": "舟山市", + "actualText": "632", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "舟山市", + "632", ], - "originalText": "舟山市", - "width": 102.57, + "originalText": 632, + "width": 96, }, Object { - "actualText": "杭州市", + "actualText": "7234", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "杭州市", + "7234", ], - "originalText": "杭州市", - "width": 102.57, + "originalText": 7234, + "width": 96, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "actualTextHeight": 80, - "actualTextWidth": 365, - "height": 96, - "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", + "actualText": "834", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "834", + ], + "originalText": 834, + "width": 96, + }, + Object { + "actualText": "5343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "5343", + ], + "originalText": 5343, + "width": 96, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 48, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 96, + }, + Object { + "actualText": "2451", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2451", + ], + "originalText": 2451, + "width": 96, + }, + Object { + "actualText": "2244", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2244", + ], + "originalText": 2244, + "width": 96, + }, + Object { + "actualText": "2333", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2333", + ], + "originalText": 2333, + "width": 96, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 1`] = ` +Array [ + Object { + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 76, + "multiLineActualTexts": Array [ + "序号", + ], + "originalText": "序号", + "width": 80, + }, + Object { + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 76, + "multiLineActualTexts": Array [ + "省份", + ], + "originalText": "省份", + "width": 102.57, + }, + Object { + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 64, + "actualTextWidth": 292, + "height": 76, + "multiLineActualTexts": Array [ + "城市城市城市城", + "市城市城市城市", + "城市城市城市城", + "市城市", + ], + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 102.57, + }, + Object { + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 16, + "actualTextWidth": 241, + "height": 80, + "multiLineActualTexts": Array [ + "类别类别类别类别类别类别类别类别类别类别", + ], + "originalText": "类别类别类别类别类别类别类别类别类别类别", + "width": 285.14, + }, + Object { + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 96, + "multiLineActualTexts": Array [ + "子类别", + ], + "originalText": "子类别", + "width": 285.14, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 2`] = ` +Array [ + Object { + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 120, + "multiLineActualTexts": Array [ + "1", + ], + "originalText": "1", + "width": 80, + }, + Object { + "actualText": "2", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 96, + "multiLineActualTexts": Array [ + "2", + ], + "originalText": "2", + "width": 80, + }, + Object { + "actualText": "3", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 120, + "multiLineActualTexts": Array [ + "3", + ], + "originalText": "3", + "width": 80, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 3`] = ` +Array [ + Object { + "actualText": "家具", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 205.14, + }, + Object { + "actualText": "桌子", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 96, + "multiLineActualTexts": Array [ + "桌子", + ], + "originalText": "桌子", + "width": 102.57, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 60, + "actualTextWidth": 268, + "height": 76, + "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 102.57, + }, + Object { + "actualText": "沙发", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 96, + "multiLineActualTexts": Array [ + "沙发", + ], + "originalText": "沙发", + "width": 102.57, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 60, + "actualTextWidth": 268, + "height": 76, + "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 102.57, + }, + Object { + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualTextHeight": 64, + "actualTextWidth": 340, + "height": 80, + "multiLineActualTexts": Array [ + "家具家具家具家", + "具家具家具家具", + "家具家具家具家", + "具家具家具家具", + ], + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 102.57, + }, + Object { + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "actualTextHeight": 80, + "actualTextWidth": 365, + "height": 96, + "multiLineActualTexts": Array [ + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子", + ], + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 102.57, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 60, + "actualTextWidth": 268, + "height": 76, + "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 102.57, + }, + Object { + "actualText": "办公用品", + "actualTextHeight": 16, + "actualTextWidth": 49, + "height": 80, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 205.14, + }, + Object { + "actualText": "笔", + "actualTextHeight": 16, + "actualTextWidth": 13, + "height": 96, + "multiLineActualTexts": Array [ + "笔", + ], + "originalText": "笔", + "width": 102.57, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 60, + "actualTextWidth": 268, + "height": 76, + "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 102.57, + }, + Object { + "actualText": "纸张", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 96, + "multiLineActualTexts": Array [ + "纸张", + ], + "originalText": "纸张", + "width": 102.57, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 60, + "actualTextWidth": 268, + "height": 76, + "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 102.57, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 4`] = ` +Array [ + Object { + "actualText": "浙江省", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 120, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 102.57, + }, + Object { + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "绍兴市", + ], + "originalText": "绍兴市", + "width": 102.57, + }, + Object { + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "宁波市", + ], + "originalText": "宁波市", + "width": 102.57, + }, + Object { + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "舟山市", + ], + "originalText": "舟山市", + "width": 102.57, + }, + Object { + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "杭州市", + ], + "originalText": "杭州市", + "width": 102.57, + }, + Object { + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "actualTextHeight": 80, + "actualTextWidth": 365, + "height": 96, + "multiLineActualTexts": Array [ + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江省", + "浙江省浙江省浙", + "江省", + ], + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 102.57, + }, + Object { + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 96, + "multiLineActualTexts": Array [ + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州市", + "杭州市杭州市杭", + "州市", + ], + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 102.57, + }, + Object { + "actualText": "四川省", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 120, + "multiLineActualTexts": Array [ + "四川省", + ], + "originalText": "四川省", + "width": 102.57, + }, + Object { + "actualText": "成都市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "成都市", + ], + "originalText": "成都市", + "width": 102.57, + }, + Object { + "actualText": "绵阳市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "绵阳市", + ], + "originalText": "绵阳市", + "width": 102.57, + }, + Object { + "actualText": "南充市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "南充市", + ], + "originalText": "南充市", + "width": 102.57, + }, + Object { + "actualText": "乐山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "乐山市", + ], + "originalText": "乐山市", + "width": 102.57, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 5`] = ` +Array [ + Object { + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 30, + "multiLineActualTexts": Array [ + "236723672361", + "111", + ], + "originalText": 236723672361111, + "width": 102.57, + }, + Object { + "actualText": "3877", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "3877", + ], + "originalText": 3877, + "width": 102.57, + }, + Object { + "actualText": "4342", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "4342", + ], + "originalText": 4342, + "width": 102.57, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 102.57, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 96, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 102.57, + }, + Object { + "actualText": "1723", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1723", + ], + "originalText": 1723, + "width": 102.57, + }, + Object { + "actualText": "1822", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1822", + ], + "originalText": 1822, + "width": 102.57, + }, + Object { + "actualText": "1943", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1943", + ], + "originalText": 1943, + "width": 102.57, + }, + Object { + "actualText": "2330", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2330", + ], + "originalText": 2330, + "width": 102.57, + }, + Object { + "actualText": "632", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "632", + ], + "originalText": 632, + "width": 102.57, + }, + Object { + "actualText": "7234", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "7234", + ], + "originalText": 7234, + "width": 102.57, + }, + Object { + "actualText": "834", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "834", + ], + "originalText": 834, + "width": 102.57, + }, + Object { + "actualText": "5343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "5343", + ], + "originalText": 5343, + "width": 102.57, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 96, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 102.57, + }, + Object { + "actualText": "2451", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2451", + ], + "originalText": 2451, + "width": 102.57, + }, + Object { + "actualText": "2244", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2244", + ], + "originalText": 2244, + "width": 102.57, + }, + Object { + "actualText": "2333", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2333", + ], + "originalText": 2333, + "width": 102.57, + }, + Object { + "actualText": "2445", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2445", + ], + "originalText": 2445, + "width": 102.57, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 102.57, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 102.57, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 102.57, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 102.57, + }, + Object { + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 96, + "multiLineActualTexts": Array [ + "778977897789", + "778977897789", + "7789", + ], + "originalText": "7789778977897789778977897789", + "width": 102.57, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 102.57, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 102.57, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 102.57, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 102.57, + }, + Object { + "actualText": "1304", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1304", + ], + "originalText": 1304, + "width": 102.57, + }, + Object { + "actualText": "1145", + "actualTextHeight": 15, + "actualTextWidth": 26, + "height": 30, + "multiLineActualTexts": Array [ + "1145", + ], + "originalText": 1145, + "width": 102.57, + }, + Object { + "actualText": "1432", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1432", + ], + "originalText": 1432, + "width": 102.57, + }, + Object { + "actualText": "945", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "945", + ], + "originalText": 945, + "width": 102.57, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 96, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 102.57, + }, + Object { + "actualText": "2335", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2335", + ], + "originalText": 2335, + "width": 102.57, + }, + Object { + "actualText": "245", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "245", + ], + "originalText": 245, + "width": 102.57, + }, + Object { + "actualText": "2457", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2457", + ], + "originalText": 2457, + "width": 102.57, + }, + Object { + "actualText": "2458", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2458", + ], + "originalText": 2458, + "width": 102.57, + }, + Object { + "actualText": "1354", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1354", + ], + "originalText": 1354, + "width": 102.57, + }, + Object { + "actualText": "1523", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1523", + ], + "originalText": 1523, + "width": 102.57, + }, + Object { + "actualText": "1634", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1634", + ], + "originalText": 1634, + "width": 102.57, + }, + Object { + "actualText": "1343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1343", + ], + "originalText": 1343, + "width": 102.57, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 96, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 102.57, + }, + Object { + "actualText": "4004", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "4004", + ], + "originalText": 4004, + "width": 102.57, + }, + Object { + "actualText": "3077", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "3077", + ], + "originalText": 3077, + "width": 102.57, + }, + Object { + "actualText": "3551", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "3551", + ], + "originalText": 3551, + "width": 102.57, + }, + Object { + "actualText": "352", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "352", + ], + "originalText": 352, + "width": 102.57, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 1`] = ` +Array [ + Object { + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, + "multiLineActualTexts": Array [ + "序号", + ], + "originalText": "序号", + "width": 80, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 2`] = ` +Array [ + Object { + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 46, + "multiLineActualTexts": Array [ + "1", + ], + "originalText": 1, + "width": 80, + }, + Object { + "actualText": "2", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 76, + "multiLineActualTexts": Array [ + "2", + ], + "originalText": 2, + "width": 80, + }, + Object { + "actualText": "3", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 46, + "multiLineActualTexts": Array [ + "3", + ], + "originalText": 3, + "width": 80, + }, + Object { + "actualText": "4", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "4", + ], + "originalText": 4, + "width": 80, + }, + Object { + "actualText": "5", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "5", + ], + "originalText": 5, + "width": 80, + }, + Object { + "actualText": "6", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "6", + ], + "originalText": 6, + "width": 80, + }, + Object { + "actualText": "7", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "7", + ], + "originalText": 7, + "width": 80, + }, + Object { + "actualText": "8", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "8", + ], + "originalText": 8, + "width": 80, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 3`] = ` +Array [ + Object { + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, + "multiLineActualTexts": Array [ + "序号", + ], + "originalText": "序号", + "width": 80, + }, + Object { + "actualText": "省份省份省份省份省份省份省份省份省份省份省份省份省份省...", + "actualTextHeight": 64, + "actualTextWidth": 338, + "height": 80, + "multiLineActualTexts": Array [ + "省份省份省份省", + "份省份省份省份", + "省份省份省份省", + "份省份省份省...", + ], + "originalText": "省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份", + "width": 103.8, + }, + Object { + "actualText": "city", + "actualTextHeight": 16, + "actualTextWidth": 21, + "height": 80, + "multiLineActualTexts": Array [ + "city", + ], + "originalText": "city", + "width": 103.8, + }, + Object { + "actualText": "type", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, + "multiLineActualTexts": Array [ + "type", + ], + "originalText": "type", + "width": 103.8, + }, + Object { + "actualText": "sub_type", + "actualTextHeight": 16, + "actualTextWidth": 53, + "height": 80, + "multiLineActualTexts": Array [ + "sub_type", + ], + "originalText": "sub_type", + "width": 103.8, + }, + Object { + "actualText": "number", + "actualTextHeight": 16, + "actualTextWidth": 45, + "height": 80, + "multiLineActualTexts": Array [ + "number", + ], + "originalText": "number", + "width": 103.8, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 5`] = ` +Array [ + Object { + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 46, + "multiLineActualTexts": Array [ + "1", + ], + "originalText": 1, + "width": 80, + }, + Object { + "actualText": "2", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 76, + "multiLineActualTexts": Array [ + "2", + ], + "originalText": 2, + "width": 80, + }, + Object { + "actualText": "3", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 46, + "multiLineActualTexts": Array [ + "3", + ], + "originalText": 3, + "width": 80, + }, + Object { + "actualText": "4", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "4", + ], + "originalText": 4, + "width": 80, + }, + Object { + "actualText": "5", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "5", + ], + "originalText": 5, + "width": 80, + }, + Object { + "actualText": "6", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "6", + ], + "originalText": 6, + "width": 80, + }, + Object { + "actualText": "7", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "7", + ], + "originalText": 7, + "width": 80, + }, + Object { + "actualText": "8", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "8", + ], + "originalText": 8, + "width": 80, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 46, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, + "multiLineActualTexts": Array [ + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江省", + "浙江省浙江省...", + ], + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 46, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 46, + "multiLineActualTexts": Array [ + "绍兴市", + ], + "originalText": "绍兴市", + "width": 103.8, + }, + Object { + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, + "multiLineActualTexts": Array [ + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州市", + "杭州市杭州市...", + ], + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 103.8, + }, + Object { + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 46, + "multiLineActualTexts": Array [ + "绍兴市", + ], + "originalText": "绍兴市", + "width": 103.8, + }, + Object { + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "宁波市", + ], + "originalText": "宁波市", + "width": 103.8, + }, + Object { + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "舟山市", + ], + "originalText": "舟山市", + "width": 103.8, + }, + Object { + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "杭州市", + ], + "originalText": "杭州市", + "width": 103.8, + }, + Object { + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "绍兴市", + ], + "originalText": "绍兴市", + "width": 103.8, + }, + Object { + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "宁波市", + ], + "originalText": "宁波市", + "width": 103.8, + }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 46, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, + Object { + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualTextHeight": 60, + "actualTextWidth": 340, + "height": 76, + "multiLineActualTexts": Array [ + "家具家具家具家", + "具家具家具家具", + "家具家具家具家", + "具家具家具家具", + ], + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 103.8, + }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 46, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, + Object { + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 46, + "multiLineActualTexts": Array [ + "桌子", + ], + "originalText": "桌子", + "width": 103.8, + }, + Object { + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, + "multiLineActualTexts": Array [ + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子桌", + "子桌子桌子桌...", + ], + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 103.8, + }, + Object { + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 46, + "multiLineActualTexts": Array [ + "桌子", + ], + "originalText": "桌子", + "width": 103.8, + }, + Object { + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "桌子", + ], + "originalText": "桌子", + "width": 103.8, + }, + Object { + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "桌子", + ], + "originalText": "桌子", + "width": 103.8, + }, + Object { + "actualText": "沙发", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "沙发", + ], + "originalText": "沙发", + "width": 103.8, + }, + Object { + "actualText": "沙发", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "沙发", + ], + "originalText": "沙发", + "width": 103.8, + }, + Object { + "actualText": "沙发", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "沙发", + ], + "originalText": "沙发", + "width": 103.8, + }, + Object { + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, + "multiLineActualTexts": Array [ + "2367236723611", + "11", + ], + "originalText": 236723672361111, + "width": 103.8, + }, + Object { + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 76, + "multiLineActualTexts": Array [ + "7789778977897", + "7897789778977", + "89", + ], + "originalText": "7789778977897789778977897789", + "width": 103.8, + }, + Object { + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, + "multiLineActualTexts": Array [ + "2367236723611", + "11", + ], + "originalText": 236723672361111, + "width": 103.8, + }, + Object { + "actualText": "3877", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "3877", + ], + "originalText": 3877, + "width": 103.8, + }, + Object { + "actualText": "4342", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "4342", + ], + "originalText": 4342, + "width": 103.8, + }, + Object { + "actualText": "5343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "5343", + ], + "originalText": 5343, + "width": 103.8, + }, + Object { + "actualText": "632", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "632", + ], + "originalText": 632, + "width": 103.8, + }, + Object { + "actualText": "7234", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "7234", + ], + "originalText": 7234, + "width": 103.8, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 1`] = ` +Array [ + Object { + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, + "multiLineActualTexts": Array [ + "序号", + ], + "originalText": "序号", + "width": 80, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 2`] = ` +Array [ + Object { + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 46, + "multiLineActualTexts": Array [ + "1", + ], + "originalText": 1, + "width": 80, + }, + Object { + "actualText": "2", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 76, + "multiLineActualTexts": Array [ + "2", + ], + "originalText": 2, + "width": 80, + }, + Object { + "actualText": "3", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 46, + "multiLineActualTexts": Array [ + "3", + ], + "originalText": 3, + "width": 80, + }, + Object { + "actualText": "4", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "4", + ], + "originalText": 4, + "width": 80, + }, + Object { + "actualText": "5", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "5", + ], + "originalText": 5, + "width": 80, + }, + Object { + "actualText": "6", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "6", + ], + "originalText": 6, + "width": 80, + }, + Object { + "actualText": "7", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "7", + ], + "originalText": 7, + "width": 80, + }, + Object { + "actualText": "8", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "8", + ], + "originalText": 8, + "width": 80, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 3`] = ` +Array [ + Object { + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, + "multiLineActualTexts": Array [ + "序号", + ], + "originalText": "序号", + "width": 80, + }, + Object { + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, + "multiLineActualTexts": Array [ + "省份", + ], + "originalText": "省份", + "width": 103.8, + }, + Object { + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 64, + "actualTextWidth": 292, + "height": 80, + "multiLineActualTexts": Array [ + "城市城市城市城", + "市城市城市城市", + "城市城市城市城", + "市城市", + ], + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 103.8, + }, + Object { + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 80, + "multiLineActualTexts": Array [ + "类别类别类别类", + "别类别类别类别", + "类别类别类别", + ], + "originalText": "类别类别类别类别类别类别类别类别类别类别", + "width": 103.8, + }, + Object { + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 80, + "multiLineActualTexts": Array [ + "子类别", + ], + "originalText": "子类别", + "width": 103.8, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 64, + "actualTextWidth": 268, + "height": 80, + "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 103.8, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 5`] = ` +Array [ + Object { + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 46, + "multiLineActualTexts": Array [ + "1", + ], + "originalText": 1, + "width": 80, + }, + Object { + "actualText": "2", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 76, + "multiLineActualTexts": Array [ + "2", + ], + "originalText": 2, + "width": 80, + }, + Object { + "actualText": "3", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 46, + "multiLineActualTexts": Array [ + "3", + ], + "originalText": 3, + "width": 80, + }, + Object { + "actualText": "4", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "4", + ], + "originalText": 4, + "width": 80, + }, + Object { + "actualText": "5", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "5", + ], + "originalText": 5, + "width": 80, + }, + Object { + "actualText": "6", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "6", + ], + "originalText": 6, + "width": 80, + }, + Object { + "actualText": "7", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "7", + ], + "originalText": 7, + "width": 80, + }, + Object { + "actualText": "8", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "8", + ], + "originalText": 8, + "width": 80, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 46, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, + "multiLineActualTexts": Array [ + "浙江省浙江省浙", + "江省浙江省浙江", "省浙江省浙江省", + "浙江省浙江省...", + ], + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 46, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 46, + "multiLineActualTexts": Array [ + "绍兴市", + ], + "originalText": "绍兴市", + "width": 103.8, + }, + Object { + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, + "multiLineActualTexts": Array [ + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州市", + "杭州市杭州市...", + ], + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 103.8, + }, + Object { + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 46, + "multiLineActualTexts": Array [ + "绍兴市", + ], + "originalText": "绍兴市", + "width": 103.8, + }, + Object { + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "宁波市", + ], + "originalText": "宁波市", + "width": 103.8, + }, + Object { + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "舟山市", + ], + "originalText": "舟山市", + "width": 103.8, + }, + Object { + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "杭州市", + ], + "originalText": "杭州市", + "width": 103.8, + }, + Object { + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "绍兴市", + ], + "originalText": "绍兴市", + "width": 103.8, + }, + Object { + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "宁波市", + ], + "originalText": "宁波市", + "width": 103.8, + }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 46, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, + Object { + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualTextHeight": 60, + "actualTextWidth": 340, + "height": 76, + "multiLineActualTexts": Array [ + "家具家具家具家", + "具家具家具家具", + "家具家具家具家", + "具家具家具家具", + ], + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 103.8, + }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 46, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, + Object { + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 46, + "multiLineActualTexts": Array [ + "桌子", + ], + "originalText": "桌子", + "width": 103.8, + }, + Object { + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, + "multiLineActualTexts": Array [ + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子桌", + "子桌子桌子桌...", + ], + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 103.8, + }, + Object { + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 46, + "multiLineActualTexts": Array [ + "桌子", + ], + "originalText": "桌子", + "width": 103.8, + }, + Object { + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "桌子", + ], + "originalText": "桌子", + "width": 103.8, + }, + Object { + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "桌子", + ], + "originalText": "桌子", + "width": 103.8, + }, + Object { + "actualText": "沙发", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "沙发", + ], + "originalText": "沙发", + "width": 103.8, + }, + Object { + "actualText": "沙发", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "沙发", + ], + "originalText": "沙发", + "width": 103.8, + }, + Object { + "actualText": "沙发", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "沙发", + ], + "originalText": "沙发", + "width": 103.8, + }, + Object { + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, + "multiLineActualTexts": Array [ + "2367236723611", + "11", + ], + "originalText": 236723672361111, + "width": 103.8, + }, + Object { + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 76, + "multiLineActualTexts": Array [ + "7789778977897", + "7897789778977", + "89", + ], + "originalText": "7789778977897789778977897789", + "width": 103.8, + }, + Object { + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, + "multiLineActualTexts": Array [ + "2367236723611", + "11", + ], + "originalText": 236723672361111, + "width": 103.8, + }, + Object { + "actualText": "3877", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "3877", + ], + "originalText": 3877, + "width": 103.8, + }, + Object { + "actualText": "4342", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "4342", + ], + "originalText": 4342, + "width": 103.8, + }, + Object { + "actualText": "5343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "5343", + ], + "originalText": 5343, + "width": 103.8, + }, + Object { + "actualText": "632", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "632", + ], + "originalText": 632, + "width": 103.8, + }, + Object { + "actualText": "7234", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "7234", + ], + "originalText": 7234, + "width": 103.8, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 1`] = ` +Array [ + Object { + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, + "multiLineActualTexts": Array [ + "序号", + ], + "originalText": "序号", + "width": 80, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 2`] = ` +Array [ + Object { + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 360, + "multiLineActualTexts": Array [ + "1", + ], + "originalText": 1, + "width": 80, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 3`] = ` +Array [ + Object { + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, + "multiLineActualTexts": Array [ + "序号", + ], + "originalText": "序号", + "width": 80, + }, + Object { + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, + "multiLineActualTexts": Array [ + "省份", + ], + "originalText": "省份", + "width": 103.8, + }, + Object { + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 64, + "actualTextWidth": 292, + "height": 80, + "multiLineActualTexts": Array [ + "城市城市城市城", + "市城市城市城市", + "城市城市城市城", + "市城市", + ], + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 103.8, + }, + Object { + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 80, + "multiLineActualTexts": Array [ + "类别类别类别类", + "别类别类别类别", + "类别类别类别", + ], + "originalText": "类别类别类别类别类别类别类别类别类别类别", + "width": 103.8, + }, + Object { + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 80, + "multiLineActualTexts": Array [ + "子类别", + ], + "originalText": "子类别", + "width": 103.8, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 64, + "actualTextWidth": 268, + "height": 80, + "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 103.8, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 5`] = ` +Array [ + Object { + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 360, + "multiLineActualTexts": Array [ + "1", + ], + "originalText": 1, + "width": 80, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 360, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 360, + "multiLineActualTexts": Array [ + "绍兴市", + ], + "originalText": "绍兴市", + "width": 103.8, + }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 360, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, + Object { + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 360, + "multiLineActualTexts": Array [ + "桌子", + ], + "originalText": "桌子", + "width": 103.8, + }, + Object { + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 360, + "multiLineActualTexts": Array [ + "2367236723611", + "11", + ], + "originalText": 236723672361111, + "width": 103.8, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 6`] = ` +Array [ + 0, + 360, + 436, + 482, + 512, + 542, + 572, + 602, + 632, + 662, + 692, + 722, + 752, + 782, + 812, + 842, + 872, + 902, + 932, + 962, + 992, + 1022, + 1052, + 1082, + 1112, + 1142, + 1172, + 1202, + 1232, + 1262, + 1292, + 1322, + 1352, + 1382, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 1`] = ` +Array [ + Object { + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, + "multiLineActualTexts": Array [ + "序号", + ], + "originalText": "序号", + "width": 80, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 2`] = ` +Array [ + Object { + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 300, + "multiLineActualTexts": Array [ + "1", + ], + "originalText": 1, + "width": 80, + }, + Object { + "actualText": "2", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 76, + "multiLineActualTexts": Array [ + "2", + ], + "originalText": 2, + "width": 80, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 3`] = ` +Array [ + Object { + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, + "multiLineActualTexts": Array [ + "序号", + ], + "originalText": "序号", + "width": 80, + }, + Object { + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, + "multiLineActualTexts": Array [ + "省份", + ], + "originalText": "省份", + "width": 103.8, + }, + Object { + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 64, + "actualTextWidth": 292, + "height": 80, + "multiLineActualTexts": Array [ + "城市城市城市城", + "市城市城市城市", + "城市城市城市城", + "市城市", + ], + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 103.8, + }, + Object { + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 80, + "multiLineActualTexts": Array [ + "类别类别类别类", + "别类别类别类别", + "类别类别类别", + ], + "originalText": "类别类别类别类别类别类别类别类别类别类别", + "width": 103.8, + }, + Object { + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 80, + "multiLineActualTexts": Array [ + "子类别", + ], + "originalText": "子类别", + "width": 103.8, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 64, + "actualTextWidth": 268, + "height": 80, + "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 103.8, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 5`] = ` +Array [ + Object { + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 300, + "multiLineActualTexts": Array [ + "1", + ], + "originalText": 1, + "width": 80, + }, + Object { + "actualText": "2", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 76, + "multiLineActualTexts": Array [ + "2", + ], + "originalText": 2, + "width": 80, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 300, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, + "multiLineActualTexts": Array [ "浙江省浙江省浙", - "江省", + "江省浙江省浙江", + "省浙江省浙江省", + "浙江省浙江省...", ], "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 102.57, + "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "actualTextHeight": 75, - "actualTextWidth": 365, - "height": 96, + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 300, + "multiLineActualTexts": Array [ + "绍兴市", + ], + "originalText": "绍兴市", + "width": 103.8, + }, + Object { + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, "multiLineActualTexts": Array [ "杭州市杭州市杭", "州市杭州市杭州", "市杭州市杭州市", - "杭州市杭州市杭", - "州市", + "杭州市杭州市...", ], "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "width": 102.57, + "width": 103.8, }, Object { - "actualText": "四川省", + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 300, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, + Object { + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualTextHeight": 60, + "actualTextWidth": 340, + "height": 76, + "multiLineActualTexts": Array [ + "家具家具家具家", + "具家具家具家具", + "家具家具家具家", + "具家具家具家具", + ], + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 103.8, + }, + Object { + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 300, + "multiLineActualTexts": Array [ + "桌子", + ], + "originalText": "桌子", + "width": 103.8, + }, + Object { + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, + "multiLineActualTexts": Array [ + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子桌", + "子桌子桌子桌...", + ], + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 103.8, + }, + Object { + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 300, + "multiLineActualTexts": Array [ + "2367236723611", + "11", + ], + "originalText": 236723672361111, + "width": 103.8, + }, + Object { + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 76, + "multiLineActualTexts": Array [ + "7789778977897", + "7897789778977", + "89", + ], + "originalText": "7789778977897789778977897789", + "width": 103.8, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 6`] = ` +Array [ + 0, + 300, + 376, + 422, + 452, + 482, + 512, + 542, + 572, + 602, + 632, + 662, + 692, + 722, + 752, + 782, + 812, + 842, + 872, + 902, + 932, + 962, + 992, + 1022, + 1052, + 1082, + 1112, + 1142, + 1172, + 1202, + 1232, + 1262, + 1292, + 1322, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 1`] = ` +Array [ + Object { + "actualText": "序号", "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 120, + "actualTextWidth": 25, + "height": 64, + "multiLineActualTexts": Array [ + "序号", + ], + "originalText": "序号", + "width": 80, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 2`] = ` +Array [ + Object { + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 46, + "multiLineActualTexts": Array [ + "1", + ], + "originalText": 1, + "width": 80, + }, + Object { + "actualText": "2", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "2", + ], + "originalText": 2, + "width": 80, + }, + Object { + "actualText": "3", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 61, + "multiLineActualTexts": Array [ + "3", + ], + "originalText": 3, + "width": 80, + }, + Object { + "actualText": "4", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "4", + ], + "originalText": 4, + "width": 80, + }, + Object { + "actualText": "5", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "5", + ], + "originalText": 5, + "width": 80, + }, + Object { + "actualText": "6", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "6", + ], + "originalText": 6, + "width": 80, + }, + Object { + "actualText": "7", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "7", + ], + "originalText": 7, + "width": 80, + }, + Object { + "actualText": "8", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "8", + ], + "originalText": 8, + "width": 80, + }, + Object { + "actualText": "9", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "四川省", + "9", ], - "originalText": "四川省", - "width": 102.57, + "originalText": 9, + "width": 80, }, Object { - "actualText": "成都市", + "actualText": "10", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "成都市", + "10", ], - "originalText": "成都市", - "width": 102.57, + "originalText": 10, + "width": 80, }, Object { - "actualText": "绵阳市", + "actualText": "11", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 13, "height": 30, "multiLineActualTexts": Array [ - "绵阳市", + "11", ], - "originalText": "绵阳市", - "width": 102.57, + "originalText": 11, + "width": 80, }, Object { - "actualText": "南充市", + "actualText": "12", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "南充市", + "12", ], - "originalText": "南充市", - "width": 102.57, + "originalText": 12, + "width": 80, }, Object { - "actualText": "乐山市", + "actualText": "13", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "乐山市", + "13", ], - "originalText": "乐山市", - "width": 102.57, + "originalText": 13, + "width": 80, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 5`] = ` -Array [ Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, + "actualText": "14", + "actualTextHeight": 15, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "236723672361", - "111", + "14", ], - "originalText": 236723672361111, - "width": 102.57, + "originalText": 14, + "width": 80, }, Object { - "actualText": "3877", + "actualText": "15", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "3877", + "15", ], - "originalText": 3877, - "width": 102.57, + "originalText": 15, + "width": 80, }, Object { - "actualText": "4342", + "actualText": "16", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "4342", + "16", ], - "originalText": 4342, - "width": 102.57, + "originalText": 16, + "width": 80, }, Object { - "actualText": "-", + "actualText": "17", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "-", + "17", ], - "originalText": "-", - "width": 102.57, + "originalText": 17, + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 3`] = ` +Array [ Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 96, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, "multiLineActualTexts": Array [ - "-", + "序号", ], - "originalText": "-", - "width": 102.57, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "1723", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, "multiLineActualTexts": Array [ - "1723", + "省份", ], - "originalText": 1723, - "width": 102.57, + "originalText": "省份", + "width": 143.8, }, Object { - "actualText": "1822", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 48, + "actualTextWidth": 291, + "height": 64, "multiLineActualTexts": Array [ - "1822", + "城市城市城市城市城市", + "城市城市城市城市城市", + "城市城市", ], - "originalText": 1822, - "width": 102.57, + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 143.8, }, Object { - "actualText": "1943", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 32, + "actualTextWidth": 242, + "height": 64, "multiLineActualTexts": Array [ - "1943", + "类别类别类别类别类别", + "类别类别类别类别类别", ], - "originalText": 1943, - "width": 102.57, + "originalText": "类别类别类别类别类别类别类别类别类别类别", + "width": 143.8, }, Object { - "actualText": "2330", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 64, "multiLineActualTexts": Array [ - "2330", + "子类别", ], - "originalText": 2330, - "width": 102.57, + "originalText": "子类别", + "width": 143.8, }, Object { - "actualText": "632", + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 48, + "actualTextWidth": 267, + "height": 64, + "multiLineActualTexts": Array [ + "数量数量数量数量数量", + "数量数量数量数量数量", + "数量", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 143.8, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 5`] = ` +Array [ + Object { + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "632", + "1", ], - "originalText": 632, - "width": 102.57, + "originalText": 1, + "width": 80, }, Object { - "actualText": "7234", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "7234", + "2", ], - "originalText": 7234, - "width": 102.57, + "originalText": 2, + "width": 80, }, Object { - "actualText": "834", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualTextWidth": 7, + "height": 61, "multiLineActualTexts": Array [ - "834", + "3", ], - "originalText": 834, - "width": 102.57, + "originalText": 3, + "width": 80, }, Object { - "actualText": "5343", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "5343", + "4", ], - "originalText": 5343, - "width": 102.57, + "originalText": 4, + "width": 80, }, Object { - "actualText": "-", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 96, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "-", + "5", ], - "originalText": "-", - "width": 102.57, + "originalText": 5, + "width": 80, }, Object { - "actualText": "2451", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "2451", + "6", ], - "originalText": 2451, - "width": 102.57, + "originalText": 6, + "width": 80, }, Object { - "actualText": "2244", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "2244", + "7", ], - "originalText": 2244, - "width": 102.57, + "originalText": 7, + "width": 80, }, Object { - "actualText": "2333", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "2333", + "8", ], - "originalText": 2333, - "width": 102.57, + "originalText": 8, + "width": 80, }, Object { - "actualText": "2445", + "actualText": "9", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "2445", + "9", ], - "originalText": 2445, - "width": 102.57, + "originalText": 9, + "width": 80, }, Object { - "actualText": "-", + "actualText": "10", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "-", + "10", ], - "originalText": "-", - "width": 102.57, + "originalText": 10, + "width": 80, }, Object { - "actualText": "-", + "actualText": "11", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 13, "height": 30, "multiLineActualTexts": Array [ - "-", + "11", ], - "originalText": "-", - "width": 102.57, + "originalText": 11, + "width": 80, }, Object { - "actualText": "-", + "actualText": "12", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "-", + "12", ], - "originalText": "-", - "width": 102.57, + "originalText": 12, + "width": 80, }, Object { - "actualText": "-", + "actualText": "13", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "-", + "13", ], - "originalText": "-", - "width": 102.57, + "originalText": 13, + "width": 80, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 96, + "actualText": "14", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "778977897789", - "778977897789", - "7789", + "14", ], - "originalText": "7789778977897789778977897789", - "width": 102.57, + "originalText": 14, + "width": 80, }, Object { - "actualText": "-", + "actualText": "15", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "-", + "15", ], - "originalText": "-", - "width": 102.57, + "originalText": 15, + "width": 80, }, Object { - "actualText": "-", + "actualText": "16", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "-", + "16", ], - "originalText": "-", - "width": 102.57, + "originalText": 16, + "width": 80, }, Object { - "actualText": "-", + "actualText": "17", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "-", + "17", ], - "originalText": "-", - "width": 102.57, + "originalText": 17, + "width": 80, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 30, + "actualText": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江", + "actualTextHeight": 30, + "actualTextWidth": 242, + "height": 46, "multiLineActualTexts": Array [ - "-", + "浙江浙江浙江浙江浙江", + "浙江浙江浙江浙江浙江", ], - "originalText": "-", - "width": 102.57, + "originalText": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江", + "width": 143.8, }, Object { - "actualText": "1304", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "1304", + "浙江省", ], - "originalText": 1304, - "width": 102.57, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "1145", - "actualTextHeight": 15, - "actualTextWidth": 26, - "height": 30, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "actualTextHeight": 45, + "actualTextWidth": 363, + "height": 61, "multiLineActualTexts": Array [ - "1145", + "浙江省浙江省浙江省浙", + "江省浙江省浙江省浙江", + "省浙江省浙江省浙江省", ], - "originalText": 1145, - "width": 102.57, + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 143.8, }, Object { - "actualText": "1432", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "1432", + "浙江省", ], - "originalText": 1432, - "width": 102.57, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "945", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "945", + "浙江省", ], - "originalText": 945, - "width": 102.57, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "-", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 96, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "-", + "浙江省", ], - "originalText": "-", - "width": 102.57, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "2335", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "2335", + "浙江省", ], - "originalText": 2335, - "width": 102.57, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "245", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "245", + "浙江省", ], - "originalText": 245, - "width": 102.57, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "2457", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "2457", + "浙江省", ], - "originalText": 2457, - "width": 102.57, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "2458", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "2458", + "浙江省", ], - "originalText": 2458, - "width": 102.57, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "1354", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "1354", + "浙江省", ], - "originalText": 1354, - "width": 102.57, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "1523", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "1523", + "浙江省", ], - "originalText": 1523, - "width": 102.57, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "1634", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "1634", + "浙江省", ], - "originalText": 1634, - "width": 102.57, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "1343", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "1343", + "浙江省", ], - "originalText": 1343, - "width": 102.57, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "-", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 96, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "-", + "浙江省", ], - "originalText": "-", - "width": 102.57, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "4004", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "4004", + "浙江省", ], - "originalText": 4004, - "width": 102.57, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "3077", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "3077", + "浙江省", ], - "originalText": 3077, - "width": 102.57, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "3551", + "actualText": "杭州杭州杭州杭州", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 97, + "height": 46, "multiLineActualTexts": Array [ - "3551", + "杭州杭州杭州杭州", ], - "originalText": 3551, - "width": 102.57, + "originalText": "杭州杭州杭州杭州", + "width": 143.8, }, Object { - "actualText": "352", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "352", + "绍兴市", ], - "originalText": 352, - "width": 102.57, + "originalText": "绍兴市", + "width": 143.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 80, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "actualTextHeight": 45, + "actualTextWidth": 363, + "height": 61, "multiLineActualTexts": Array [ - "序号", + "杭州市杭州市杭州市杭", + "州市杭州市杭州市杭州", + "市杭州市杭州市杭州市", ], - "originalText": "序号", - "width": 80, + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 143.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "1", + "绍兴市", ], - "originalText": 1, - "width": 80, + "originalText": "绍兴市", + "width": 143.8, }, Object { - "actualText": "2", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 76, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "2", + "宁波市", ], - "originalText": 2, - "width": 80, + "originalText": "宁波市", + "width": 143.8, }, Object { - "actualText": "3", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "3", + "舟山市", ], - "originalText": 3, - "width": 80, + "originalText": "舟山市", + "width": 143.8, }, Object { - "actualText": "4", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "4", + "杭州市", ], - "originalText": 4, - "width": 80, + "originalText": "杭州市", + "width": 143.8, }, Object { - "actualText": "5", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "5", + "绍兴市", ], - "originalText": 5, - "width": 80, + "originalText": "绍兴市", + "width": 143.8, }, Object { - "actualText": "6", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "6", + "宁波市", ], - "originalText": 6, - "width": 80, + "originalText": "宁波市", + "width": 143.8, }, Object { - "actualText": "7", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "7", + "舟山市", ], - "originalText": 7, - "width": 80, + "originalText": "舟山市", + "width": 143.8, }, Object { - "actualText": "8", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "8", + "杭州市", ], - "originalText": 8, - "width": 80, + "originalText": "杭州市", + "width": 143.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 3`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 80, + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "绍兴市", ], - "originalText": "序号", - "width": 80, + "originalText": "绍兴市", + "width": 143.8, }, Object { - "actualText": "省份省份省份省份省份省份省份省份省份省份省份省份省份省...", - "actualTextHeight": 64, - "actualTextWidth": 338, - "height": 80, + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "省份省份省份省", - "份省份省份省份", - "省份省份省份省", - "份省份省份省...", + "宁波市", ], - "originalText": "省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份", - "width": 103.8, + "originalText": "宁波市", + "width": 143.8, }, Object { - "actualText": "city", - "actualTextHeight": 16, - "actualTextWidth": 21, - "height": 80, + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "city", + "舟山市", ], - "originalText": "city", - "width": 103.8, + "originalText": "舟山市", + "width": 143.8, }, Object { - "actualText": "type", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 80, + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "type", + "杭州市", ], - "originalText": "type", - "width": 103.8, + "originalText": "杭州市", + "width": 143.8, }, Object { - "actualText": "sub_type", - "actualTextHeight": 16, - "actualTextWidth": 53, - "height": 80, + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "sub_type", + "绍兴市", ], - "originalText": "sub_type", - "width": 103.8, + "originalText": "绍兴市", + "width": 143.8, }, Object { - "actualText": "number", - "actualTextHeight": 16, - "actualTextWidth": 45, - "height": 80, + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "number", + "宁波市", ], - "originalText": "number", - "width": 103.8, + "originalText": "宁波市", + "width": 143.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 4`] = `Array []`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 5`] = ` -Array [ Object { - "actualText": "1", + "actualText": "纸张纸张纸张纸张纸张", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 121, "height": 46, "multiLineActualTexts": Array [ - "1", + "纸张纸张纸张纸张纸张", ], - "originalText": 1, - "width": 80, + "originalText": "纸张纸张纸张纸张纸张", + "width": 143.8, }, Object { - "actualText": "2", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 76, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "2", + "家具", ], - "originalText": 2, - "width": 80, + "originalText": "家具", + "width": 143.8, }, Object { - "actualText": "3", + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualTextHeight": 45, + "actualTextWidth": 339, + "height": 61, + "multiLineActualTexts": Array [ + "家具家具家具家具家具", + "家具家具家具家具家具", + "家具家具家具家具", + ], + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 143.8, + }, + Object { + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "3", + "家具", ], - "originalText": 3, - "width": 80, + "originalText": "家具", + "width": 143.8, }, Object { - "actualText": "4", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "4", + "家具", ], - "originalText": 4, - "width": 80, + "originalText": "家具", + "width": 143.8, }, Object { - "actualText": "5", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "5", + "家具", ], - "originalText": 5, - "width": 80, + "originalText": "家具", + "width": 143.8, }, Object { - "actualText": "6", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "6", + "家具", ], - "originalText": 6, - "width": 80, + "originalText": "家具", + "width": 143.8, }, Object { - "actualText": "7", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "7", + "家具", ], - "originalText": 7, - "width": 80, + "originalText": "家具", + "width": 143.8, }, Object { - "actualText": "8", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "8", + "家具", ], - "originalText": 8, - "width": 80, + "originalText": "家具", + "width": 143.8, }, Object { - "actualText": "浙江省", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "家具", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": "家具", + "width": 143.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江省", - "浙江省浙江省...", + "办公用品", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 103.8, + "originalText": "办公用品", + "width": 143.8, }, Object { - "actualText": "浙江省", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "办公用品", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": "办公用品", + "width": 143.8, }, Object { - "actualText": "浙江省", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 49, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "办公用品", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": "办公用品", + "width": 143.8, }, Object { - "actualText": "浙江省", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 49, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "办公用品", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": "办公用品", + "width": 143.8, }, Object { - "actualText": "浙江省", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 49, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "办公用品", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": "办公用品", + "width": 143.8, }, Object { - "actualText": "浙江省", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 49, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "办公用品", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": "办公用品", + "width": 143.8, }, Object { - "actualText": "浙江省", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 49, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "办公用品", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": "办公用品", + "width": 143.8, }, Object { - "actualText": "绍兴市", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 4, "height": 46, "multiLineActualTexts": Array [ - "绍兴市", + "-", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": "-", + "width": 143.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭州", - "市杭州市杭州市", - "杭州市杭州市...", + "桌子", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "width": 103.8, + "originalText": "桌子", + "width": 143.8, }, Object { - "actualText": "绍兴市", + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "actualTextHeight": 45, + "actualTextWidth": 363, + "height": 61, + "multiLineActualTexts": Array [ + "桌子桌子桌子桌子桌子", + "桌子桌子桌子桌子桌子", + "桌子桌子桌子桌子桌子", + ], + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 143.8, + }, + Object { + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "桌子", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": "桌子", + "width": 143.8, }, Object { - "actualText": "宁波市", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "桌子", ], - "originalText": "宁波市", - "width": 103.8, + "originalText": "桌子", + "width": 143.8, }, Object { - "actualText": "舟山市", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "舟山市", + "桌子", ], - "originalText": "舟山市", - "width": 103.8, + "originalText": "桌子", + "width": 143.8, }, Object { - "actualText": "杭州市", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "杭州市", + "沙发", ], - "originalText": "杭州市", - "width": 103.8, + "originalText": "沙发", + "width": 143.8, }, Object { - "actualText": "绍兴市", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "沙发", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": "沙发", + "width": 143.8, }, Object { - "actualText": "宁波市", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "沙发", ], - "originalText": "宁波市", - "width": 103.8, + "originalText": "沙发", + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "沙发", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "沙发", ], - "originalText": "家具", - "width": 103.8, + "originalText": "沙发", + "width": 143.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "actualTextHeight": 60, - "actualTextWidth": 340, - "height": 76, + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具家", - "具家具家具家具", + "笔", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 103.8, + "originalText": "笔", + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "笔", ], - "originalText": "家具", - "width": 103.8, + "originalText": "笔", + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 13, "height": 30, "multiLineActualTexts": Array [ - "家具", + "笔", ], - "originalText": "家具", - "width": 103.8, + "originalText": "笔", + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 13, "height": 30, "multiLineActualTexts": Array [ - "家具", + "笔", ], - "originalText": "家具", - "width": 103.8, + "originalText": "笔", + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "纸张", "actualTextHeight": 15, "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "家具", + "纸张", ], - "originalText": "家具", - "width": 103.8, + "originalText": "纸张", + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "纸张", "actualTextHeight": 15, "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "家具", + "纸张", ], - "originalText": "家具", - "width": 103.8, + "originalText": "纸张", + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "纸张", "actualTextHeight": 15, "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "家具", + "纸张", ], - "originalText": "家具", - "width": 103.8, + "originalText": "纸张", + "width": 143.8, }, Object { - "actualText": "桌子", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 4, "height": 46, "multiLineActualTexts": Array [ - "桌子", + "-", ], - "originalText": "桌子", - "width": 103.8, + "originalText": "-", + "width": 143.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "actualText": "236723672361111", + "actualTextHeight": 15, + "actualTextWidth": 98, + "height": 30, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子桌", - "子桌子桌子桌...", + "236723672361111", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "width": 103.8, + "originalText": 236723672361111, + "width": 143.8, }, Object { - "actualText": "桌子", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 30, + "actualTextWidth": 188, + "height": 61, "multiLineActualTexts": Array [ - "桌子", + "7789778977897789778", + "977897789", ], - "originalText": "桌子", - "width": 103.8, + "originalText": "7789778977897789778977897789", + "width": 143.8, }, Object { - "actualText": "桌子", + "actualText": "236723672361111", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 98, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "236723672361111", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 236723672361111, + "width": 143.8, }, Object { - "actualText": "桌子", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "3877", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 3877, + "width": 143.8, }, Object { - "actualText": "沙发", + "actualText": "4342", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "4342", ], - "originalText": "沙发", - "width": 103.8, + "originalText": 4342, + "width": 143.8, }, Object { - "actualText": "沙发", + "actualText": "5343", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "5343", ], - "originalText": "沙发", - "width": 103.8, + "originalText": 5343, + "width": 143.8, }, Object { - "actualText": "沙发", + "actualText": "632", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "632", ], - "originalText": "沙发", - "width": 103.8, + "originalText": 632, + "width": 143.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "7234", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "7234", + ], + "originalText": 7234, + "width": 143.8, + }, + Object { + "actualText": "834", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "834", ], - "originalText": 236723672361111, - "width": 103.8, + "originalText": 834, + "width": 143.8, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 76, + "actualText": "945", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", + "945", ], - "originalText": "7789778977897789778977897789", - "width": 103.8, + "originalText": 945, + "width": 143.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "1304", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "1304", ], - "originalText": 236723672361111, - "width": 103.8, + "originalText": 1304, + "width": 143.8, }, Object { - "actualText": "3877", + "actualText": "1145", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 26, "height": 30, "multiLineActualTexts": Array [ - "3877", + "1145", ], - "originalText": 3877, - "width": 103.8, + "originalText": 1145, + "width": 143.8, }, Object { - "actualText": "4342", + "actualText": "1432", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "4342", + "1432", ], - "originalText": 4342, - "width": 103.8, + "originalText": 1432, + "width": 143.8, }, Object { - "actualText": "5343", + "actualText": "1343", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "5343", + "1343", ], - "originalText": 5343, - "width": 103.8, + "originalText": 1343, + "width": 143.8, }, Object { - "actualText": "632", + "actualText": "1354", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "632", + "1354", ], - "originalText": 632, - "width": 103.8, + "originalText": 1354, + "width": 143.8, }, Object { - "actualText": "7234", + "actualText": "1523", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "7234", + "1523", ], - "originalText": 7234, - "width": 103.8, + "originalText": 1523, + "width": 143.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 80, + "height": 30, "multiLineActualTexts": Array [ "序号", ], @@ -11556,13 +14560,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "1", ], @@ -11573,7 +14577,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 76, + "height": 30, "multiLineActualTexts": Array [ "2", ], @@ -11584,7 +14588,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "3", ], @@ -11646,16 +14650,71 @@ Array [ "originalText": 8, "width": 80, }, + Object { + "actualText": "9", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "9", + ], + "originalText": 9, + "width": 80, + }, + Object { + "actualText": "10", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, + "multiLineActualTexts": Array [ + "10", + ], + "originalText": 10, + "width": 80, + }, + Object { + "actualText": "11", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, + "multiLineActualTexts": Array [ + "11", + ], + "originalText": 11, + "width": 80, + }, + Object { + "actualText": "12", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, + "multiLineActualTexts": Array [ + "12", + ], + "originalText": 12, + "width": 80, + }, + Object { + "actualText": "13", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, + "multiLineActualTexts": Array [ + "13", + ], + "originalText": 13, + "width": 80, + }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 80, + "height": 30, "multiLineActualTexts": Array [ "序号", ], @@ -11666,7 +14725,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 80, + "height": 30, "multiLineActualTexts": Array [ "省份", ], @@ -11674,28 +14733,23 @@ Array [ "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "actualTextHeight": 64, - "actualTextWidth": 292, - "height": 80, + "actualText": "城市城市城市...", + "actualTextHeight": 16, + "actualTextWidth": 83, + "height": 30, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市城", - "市城市", + "城市城市城市...", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 80, + "actualText": "类别类别类别...", + "actualTextHeight": 16, + "actualTextWidth": 83, + "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "类别类别类别...", ], "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, @@ -11704,7 +14758,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 80, + "height": 30, "multiLineActualTexts": Array [ "子类别", ], @@ -11712,15 +14766,12 @@ Array [ "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 64, - "actualTextWidth": 268, - "height": 80, + "actualText": "数量数量数量...", + "actualTextHeight": 16, + "actualTextWidth": 83, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量数", - "量", + "数量数量数量...", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, @@ -11728,15 +14779,15 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "1", ], @@ -11747,7 +14798,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 76, + "height": 30, "multiLineActualTexts": Array [ "2", ], @@ -11755,76 +14806,131 @@ Array [ "width": 80, }, Object { - "actualText": "3", + "actualText": "3", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "3", + ], + "originalText": 3, + "width": 80, + }, + Object { + "actualText": "4", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "4", + ], + "originalText": 4, + "width": 80, + }, + Object { + "actualText": "5", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "5", + ], + "originalText": 5, + "width": 80, + }, + Object { + "actualText": "6", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "6", + ], + "originalText": 6, + "width": 80, + }, + Object { + "actualText": "7", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "7", + ], + "originalText": 7, + "width": 80, + }, + Object { + "actualText": "8", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ - "3", + "8", ], - "originalText": 3, + "originalText": 8, "width": 80, }, Object { - "actualText": "4", + "actualText": "9", "actualTextHeight": 15, "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "4", + "9", ], - "originalText": 4, + "originalText": 9, "width": 80, }, Object { - "actualText": "5", + "actualText": "10", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "5", + "10", ], - "originalText": 5, + "originalText": 10, "width": 80, }, Object { - "actualText": "6", + "actualText": "11", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 13, "height": 30, "multiLineActualTexts": Array [ - "6", + "11", ], - "originalText": 6, + "originalText": 11, "width": 80, }, Object { - "actualText": "7", + "actualText": "12", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "7", + "12", ], - "originalText": 7, + "originalText": 12, "width": 80, }, Object { - "actualText": "8", + "actualText": "13", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "8", + "13", ], - "originalText": 8, + "originalText": 13, "width": 80, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -11832,14 +14938,11 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "actualText": "浙江省浙江省...", + "actualTextHeight": 15, + "actualTextWidth": 83, + "height": 30, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江省", "浙江省浙江省...", ], "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", @@ -11849,7 +14952,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -11912,72 +15015,58 @@ Array [ "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, - "multiLineActualTexts": Array [ - "绍兴市", - ], - "originalText": "绍兴市", - "width": 103.8, - }, - Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "height": 30, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭州", - "市杭州市杭州市", - "杭州市杭州市...", + "浙江省", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "浙江省", ], - "originalText": "绍兴市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "宁波市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "浙江省", ], - "originalText": "宁波市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "舟山市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "舟山市", + "浙江省", ], - "originalText": "舟山市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "杭州市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "杭州市", + "浙江省", ], - "originalText": "杭州市", + "originalText": "浙江省", "width": 103.8, }, Object { @@ -11992,457 +15081,329 @@ Array [ "width": 103.8, }, Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "宁波市", - ], - "originalText": "宁波市", - "width": 103.8, - }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, - Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "actualTextHeight": 60, - "actualTextWidth": 340, - "height": 76, - "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具家", - "具家具家具家具", - ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 103.8, - }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, - Object { - "actualText": "家具", + "actualText": "杭州市杭州市...", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 83, "height": 30, "multiLineActualTexts": Array [ - "家具", + "杭州市杭州市...", ], - "originalText": "家具", + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "家具", + "绍兴市", ], - "originalText": "家具", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "家具", + "宁波市", ], - "originalText": "家具", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, - Object { - "actualText": "桌子", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, - "multiLineActualTexts": Array [ - "桌子", - ], - "originalText": "桌子", - "width": 103.8, - }, - Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, - "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子桌", - "子桌子桌子桌...", - ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "width": 103.8, - }, - Object { - "actualText": "桌子", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, - "multiLineActualTexts": Array [ - "桌子", + "舟山市", ], - "originalText": "桌子", + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "杭州市", ], - "originalText": "桌子", + "originalText": "杭州市", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "绍兴市", ], - "originalText": "桌子", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "宁波市", ], - "originalText": "沙发", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "舟山市", ], - "originalText": "沙发", + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "杭州市", ], - "originalText": "沙发", + "originalText": "杭州市", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "绍兴市", ], - "originalText": 236723672361111, + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 76, + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", + "宁波市", ], - "originalText": "7789778977897789778977897789", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "舟山市", ], - "originalText": 236723672361111, + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "3877", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "3877", + "家具", ], - "originalText": 3877, + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "4342", + "actualText": "家具家具家具...", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 83, "height": 30, "multiLineActualTexts": Array [ - "4342", + "家具家具家具...", ], - "originalText": 4342, + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103.8, }, Object { - "actualText": "5343", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "5343", + "家具", ], - "originalText": 5343, + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "632", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "632", + "家具", ], - "originalText": 632, + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "7234", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "7234", + "家具", ], - "originalText": 7234, + "originalText": "家具", "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, + "actualText": "家具", + "actualTextHeight": 15, "actualTextWidth": 25, - "height": 80, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "家具", ], - "originalText": "序号", - "width": 80, + "originalText": "家具", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 360, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "1", + "家具", ], - "originalText": 1, - "width": 80, + "originalText": "家具", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 3`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, + "actualText": "家具", + "actualTextHeight": 15, "actualTextWidth": 25, - "height": 80, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "家具", ], - "originalText": "序号", - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "省份", - "actualTextHeight": 16, + "actualText": "家具", + "actualTextHeight": 15, "actualTextWidth": 25, - "height": 80, + "height": 30, "multiLineActualTexts": Array [ - "省份", + "家具", ], - "originalText": "省份", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "actualTextHeight": 64, - "actualTextWidth": 292, - "height": 80, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市城", - "市城市", + "办公用品", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 80, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "办公用品", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 80, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "子类别", + "办公用品", ], - "originalText": "子类别", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 64, - "actualTextWidth": 268, - "height": 80, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量数", - "量", + "办公用品", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "originalText": "办公用品", "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 4`] = `Array []`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 5`] = ` -Array [ Object { - "actualText": "1", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 360, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "1", + "桌子", ], - "originalText": 1, - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "桌子桌子桌子...", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 360, + "actualTextWidth": 83, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "桌子桌子桌子...", ], - "originalText": "浙江省", + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 360, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "桌子", ], - "originalText": "绍兴市", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 360, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "桌子", ], - "originalText": "家具", + "originalText": "桌子", "width": 103.8, }, Object { "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 360, + "height": 30, "multiLineActualTexts": Array [ "桌子", ], @@ -12450,375 +15411,240 @@ Array [ "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 360, + "actualText": "沙发", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "沙发", ], - "originalText": 236723672361111, + "originalText": "沙发", "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 6`] = ` -Array [ - 0, - 360, - 436, - 482, - 512, - 542, - 572, - 602, - 632, - 662, - 692, - 722, - 752, - 782, - 812, - 842, - 872, - 902, - 932, - 962, - 992, - 1022, - 1052, - 1082, - 1112, - 1142, - 1172, - 1202, - 1232, - 1262, - 1292, - 1322, - 1352, - 1382, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, + "actualText": "沙发", + "actualTextHeight": 15, "actualTextWidth": 25, - "height": 80, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "沙发", ], - "originalText": "序号", - "width": 80, + "originalText": "沙发", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 300, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "1", + "沙发", ], - "originalText": 1, - "width": 80, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 76, - "multiLineActualTexts": Array [ - "2", - ], - "originalText": 2, - "width": 80, - }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 3`] = ` -Array [ - Object { - "actualText": "序号", - "actualTextHeight": 16, "actualTextWidth": 25, - "height": 80, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "沙发", ], - "originalText": "序号", - "width": 80, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "省份", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 80, + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "省份", + "笔", ], - "originalText": "省份", + "originalText": "笔", "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "actualTextHeight": 64, - "actualTextWidth": 292, - "height": 80, + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市城", - "市城市", + "笔", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "originalText": "笔", "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 80, + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "笔", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", + "originalText": "笔", "width": 103.8, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 80, + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "子类别", + "笔", ], - "originalText": "子类别", + "originalText": "笔", "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 64, - "actualTextWidth": 268, - "height": 80, + "actualText": "23672367236...", + "actualTextHeight": 15, + "actualTextWidth": 84, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量数", - "量", + "23672367236...", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "originalText": 236723672361111, "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 4`] = `Array []`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 5`] = ` -Array [ Object { - "actualText": "1", + "actualText": "77897789778...", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 300, + "actualTextWidth": 84, + "height": 30, "multiLineActualTexts": Array [ - "1", + "77897789778...", ], - "originalText": 1, - "width": 80, + "originalText": "7789778977897789778977897789", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "23672367236...", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 76, + "actualTextWidth": 84, + "height": 30, "multiLineActualTexts": Array [ - "2", + "23672367236...", ], - "originalText": 2, - "width": 80, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 300, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "3877", ], - "originalText": "浙江省", + "originalText": 3877, "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "actualText": "4342", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江省", - "浙江省浙江省...", + "4342", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "originalText": 4342, "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "5343", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 300, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "5343", ], - "originalText": "绍兴市", + "originalText": 5343, "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "actualText": "632", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭州", - "市杭州市杭州市", - "杭州市杭州市...", + "632", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "originalText": 632, "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "7234", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 300, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "7234", ], - "originalText": "家具", + "originalText": 7234, "width": 103.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "actualTextHeight": 60, - "actualTextWidth": 340, - "height": 76, + "actualText": "834", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具家", - "具家具家具家具", + "834", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "originalText": 834, "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "945", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 300, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "945", ], - "originalText": "桌子", + "originalText": 945, "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "actualText": "1304", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子桌", - "子桌子桌子桌...", + "1304", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "originalText": 1304, "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 300, + "actualText": "1145", + "actualTextHeight": 15, + "actualTextWidth": 26, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "1145", ], - "originalText": 236723672361111, + "originalText": 1145, "width": 103.8, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 76, + "actualText": "1432", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", + "1432", ], - "originalText": "7789778977897789778977897789", + "originalText": 1432, "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 6`] = ` -Array [ - 0, - 300, - 376, - 422, - 452, - 482, - 512, - 542, - 572, - 602, - 632, - 662, - 692, - 722, - 752, - 782, - 812, - 842, - 872, - 902, - 932, - 962, - 992, - 1022, - 1052, - 1082, - 1112, - 1142, - 1172, - 1202, - 1232, - 1262, - 1292, - 1322, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 1`] = ` Array [ Object { "actualText": "序号", @@ -12834,7 +15660,7 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 2`] = ` Array [ Object { "actualText": "1", @@ -12851,7 +15677,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 61, "multiLineActualTexts": Array [ "2", ], @@ -12862,7 +15688,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 61, + "height": 46, "multiLineActualTexts": Array [ "3", ], @@ -12935,98 +15761,10 @@ Array [ "originalText": 9, "width": 80, }, - Object { - "actualText": "10", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "10", - ], - "originalText": 10, - "width": 80, - }, - Object { - "actualText": "11", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "11", - ], - "originalText": 11, - "width": 80, - }, - Object { - "actualText": "12", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "12", - ], - "originalText": 12, - "width": 80, - }, - Object { - "actualText": "13", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "13", - ], - "originalText": 13, - "width": 80, - }, - Object { - "actualText": "14", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "14", - ], - "originalText": 14, - "width": 80, - }, - Object { - "actualText": "15", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "15", - ], - "originalText": 15, - "width": 80, - }, - Object { - "actualText": "16", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "16", - ], - "originalText": 16, - "width": 80, - }, - Object { - "actualText": "17", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "17", - ], - "originalText": 17, - "width": 80, - }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 3`] = ` Array [ Object { "actualText": "序号", @@ -13048,32 +15786,33 @@ Array [ "省份", ], "originalText": "省份", - "width": 143.8, + "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualText": "城市城市城市城市城市城市城市城市城市城市...", "actualTextHeight": 48, - "actualTextWidth": 291, + "actualTextWidth": 253, "height": 64, "multiLineActualTexts": Array [ - "城市城市城市城市城市", - "城市城市城市城市城市", - "城市城市", + "城市城市城市城", + "市城市城市城市", + "城市城市城市...", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 32, - "actualTextWidth": 242, + "actualTextHeight": 48, + "actualTextWidth": 243, "height": 64, "multiLineActualTexts": Array [ - "类别类别类别类别类别", - "类别类别类别类别类别", + "类别类别类别类", + "别类别类别类别", + "类别类别类别", ], "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "子类别", @@ -13084,27 +15823,27 @@ Array [ "子类别", ], "originalText": "子类别", - "width": 143.8, + "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualText": "数量数量数量数量数量数量数量数量数量数量...", "actualTextHeight": 48, - "actualTextWidth": 267, + "actualTextWidth": 253, "height": 64, "multiLineActualTexts": Array [ - "数量数量数量数量数量", - "数量数量数量数量数量", - "数量", + "数量数量数量数", + "量数量数量数量", + "数量数量数量...", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 143.8, + "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 5`] = ` Array [ Object { "actualText": "1", @@ -13121,7 +15860,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 61, "multiLineActualTexts": Array [ "2", ], @@ -13132,7 +15871,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 61, + "height": 46, "multiLineActualTexts": Array [ "3", ], @@ -13195,1059 +15934,1343 @@ Array [ "width": 80, }, Object { - "actualText": "9", + "actualText": "9", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "9", + ], + "originalText": 9, + "width": 80, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 46, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, + "multiLineActualTexts": Array [ + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江...", + ], + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 46, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 46, + "multiLineActualTexts": Array [ + "绍兴市", + ], + "originalText": "绍兴市", + "width": 103.8, + }, + Object { + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, + "multiLineActualTexts": Array [ + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州...", + ], + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 103.8, + }, + Object { + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 46, + "multiLineActualTexts": Array [ + "绍兴市", + ], + "originalText": "绍兴市", + "width": 103.8, + }, + Object { + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "宁波市", + ], + "originalText": "宁波市", + "width": 103.8, + }, + Object { + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "舟山市", + ], + "originalText": "舟山市", + "width": 103.8, + }, + Object { + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "杭州市", + ], + "originalText": "杭州市", + "width": 103.8, + }, + Object { + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "绍兴市", + ], + "originalText": "绍兴市", + "width": 103.8, + }, + Object { + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "宁波市", + ], + "originalText": "宁波市", + "width": 103.8, + }, + Object { + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "舟山市", + ], + "originalText": "舟山市", + "width": 103.8, + }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 46, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, + Object { + "actualText": "家具家具家具家具家具家具家具家具家具家具...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, + "multiLineActualTexts": Array [ + "家具家具家具家", + "具家具家具家具", + "家具家具家具...", + ], + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 103.8, + }, + Object { + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "9", + "家具", ], - "originalText": 9, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "10", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "10", + "家具", ], - "originalText": 10, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "11", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 13, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "11", + "家具", ], - "originalText": 11, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "12", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "12", + "家具", ], - "originalText": 12, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "13", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "13", + "家具", ], - "originalText": 13, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "14", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "14", + "家具", ], - "originalText": 14, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "15", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "15", + "家具", ], - "originalText": 15, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "16", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "16", + "桌子", ], - "originalText": 16, - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "17", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, "multiLineActualTexts": Array [ - "17", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子...", ], - "originalText": 17, - "width": 80, + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 103.8, }, Object { - "actualText": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江", - "actualTextHeight": 30, - "actualTextWidth": 242, + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, "height": 46, "multiLineActualTexts": Array [ - "浙江浙江浙江浙江浙江", - "浙江浙江浙江浙江浙江", + "桌子", ], - "originalText": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江", - "width": 143.8, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "桌子", ], - "originalText": "浙江省", - "width": 143.8, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "actualTextHeight": 45, - "actualTextWidth": 363, - "height": 61, + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "浙江省浙江省浙江省浙", - "江省浙江省浙江省浙江", - "省浙江省浙江省浙江省", + "桌子", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 143.8, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "沙发", ], - "originalText": "浙江省", - "width": 143.8, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "沙发", ], - "originalText": "浙江省", - "width": 143.8, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "沙发", ], - "originalText": "浙江省", - "width": 143.8, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "沙发", ], - "originalText": "浙江省", - "width": 143.8, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "浙江省", + "2367236723611", + "11", ], - "originalText": "浙江省", - "width": 143.8, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 61, "multiLineActualTexts": Array [ - "浙江省", + "7789778977897", + "7897789778977", + "89", ], - "originalText": "浙江省", - "width": 143.8, + "originalText": "7789778977897789778977897789", + "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "浙江省", + "2367236723611", + "11", ], - "originalText": "浙江省", - "width": 143.8, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "3877", ], - "originalText": "浙江省", - "width": 143.8, + "originalText": 3877, + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "4342", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "4342", ], - "originalText": "浙江省", - "width": 143.8, + "originalText": 4342, + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "5343", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "5343", ], - "originalText": "浙江省", - "width": 143.8, + "originalText": 5343, + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "632", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "632", ], - "originalText": "浙江省", - "width": 143.8, + "originalText": 632, + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "7234", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "7234", ], - "originalText": "浙江省", - "width": 143.8, + "originalText": 7234, + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "834", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "834", ], - "originalText": "浙江省", - "width": 143.8, + "originalText": 834, + "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 1`] = ` +Array [ Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, "multiLineActualTexts": Array [ - "浙江省", + "序号", ], - "originalText": "浙江省", - "width": 143.8, + "originalText": "序号", + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 2`] = ` +Array [ Object { - "actualText": "杭州杭州杭州杭州", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 97, + "actualTextWidth": 7, "height": 46, "multiLineActualTexts": Array [ - "杭州杭州杭州杭州", + "1", ], - "originalText": "杭州杭州杭州杭州", - "width": 143.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "绍兴市", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 61, "multiLineActualTexts": Array [ - "绍兴市", + "2", ], - "originalText": "绍兴市", - "width": 143.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "actualTextHeight": 45, - "actualTextWidth": 363, - "height": 61, + "actualText": "3", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "杭州市杭州市杭州市杭", - "州市杭州市杭州市杭州", - "市杭州市杭州市杭州市", + "3", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "width": 143.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "绍兴市", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "4", ], - "originalText": "绍兴市", - "width": 143.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "宁波市", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "5", ], - "originalText": "宁波市", - "width": 143.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "舟山市", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "舟山市", + "6", ], - "originalText": "舟山市", - "width": 143.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "杭州市", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "杭州市", + "7", ], - "originalText": "杭州市", - "width": 143.8, + "originalText": 7, + "width": 80, }, Object { - "actualText": "绍兴市", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "8", ], - "originalText": "绍兴市", - "width": 143.8, + "originalText": 8, + "width": 80, }, Object { - "actualText": "宁波市", + "actualText": "9", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "9", ], - "originalText": "宁波市", - "width": 143.8, + "originalText": 9, + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 3`] = ` +Array [ Object { - "actualText": "舟山市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, "multiLineActualTexts": Array [ - "舟山市", + "序号", ], - "originalText": "舟山市", - "width": 143.8, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "杭州市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, "multiLineActualTexts": Array [ - "杭州市", + "省份", ], - "originalText": "杭州市", - "width": 143.8, + "originalText": "省份", + "width": 103.8, }, Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "城市城市城市城市城市城市城市城市城市城市...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, "multiLineActualTexts": Array [ - "绍兴市", + "城市城市城市城", + "市城市城市城市", + "城市城市城市...", ], - "originalText": "绍兴市", - "width": 143.8, + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 103.8, }, Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 64, "multiLineActualTexts": Array [ - "宁波市", + "类别类别类别类", + "别类别类别类别", + "类别类别类别", ], - "originalText": "宁波市", - "width": 143.8, + "originalText": "类别类别类别类别类别类别类别类别类别类别", + "width": 103.8, }, Object { - "actualText": "舟山市", - "actualTextHeight": 15, + "actualText": "子类别", + "actualTextHeight": 16, "actualTextWidth": 37, - "height": 30, + "height": 64, "multiLineActualTexts": Array [ - "舟山市", + "子类别", ], - "originalText": "舟山市", - "width": 143.8, + "originalText": "子类别", + "width": 103.8, }, Object { - "actualText": "杭州市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, "multiLineActualTexts": Array [ - "杭州市", + "数量数量数量数", + "量数量数量数量", + "数量数量数量...", ], - "originalText": "杭州市", - "width": 143.8, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 5`] = ` +Array [ Object { - "actualText": "绍兴市", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "绍兴市", + "1", ], - "originalText": "绍兴市", - "width": 143.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "宁波市", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 61, "multiLineActualTexts": Array [ - "宁波市", + "2", ], - "originalText": "宁波市", - "width": 143.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "纸张纸张纸张纸张纸张", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 121, + "actualTextWidth": 7, "height": 46, "multiLineActualTexts": Array [ - "纸张纸张纸张纸张纸张", + "3", ], - "originalText": "纸张纸张纸张纸张纸张", - "width": 143.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "家具", + "4", ], - "originalText": "家具", - "width": 143.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "actualTextHeight": 45, - "actualTextWidth": 339, - "height": 61, + "actualText": "5", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "家具家具家具家具家具", - "家具家具家具家具家具", - "家具家具家具家具", + "5", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 143.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "家具", + "6", ], - "originalText": "家具", - "width": 143.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "家具", + "7", ], - "originalText": "家具", - "width": 143.8, + "originalText": 7, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "家具", + "8", ], - "originalText": "家具", - "width": 143.8, + "originalText": 8, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "9", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "家具", + "9", ], - "originalText": "家具", - "width": 143.8, + "originalText": 9, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "家具", + "浙江省", ], - "originalText": "家具", - "width": 143.8, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, "multiLineActualTexts": Array [ - "家具", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江...", ], - "originalText": "家具", - "width": 143.8, + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "家具", + "浙江省", ], - "originalText": "家具", - "width": 143.8, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 49, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "浙江省", ], - "originalText": "办公用品", - "width": 143.8, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 49, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "浙江省", ], - "originalText": "办公用品", - "width": 143.8, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 49, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "浙江省", ], - "originalText": "办公用品", - "width": 143.8, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 49, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "浙江省", ], - "originalText": "办公用品", - "width": 143.8, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 49, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "浙江省", ], - "originalText": "办公用品", - "width": 143.8, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 49, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "浙江省", ], - "originalText": "办公用品", - "width": 143.8, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "办公用品", + "绍兴市", ], - "originalText": "办公用品", - "width": 143.8, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 46, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, "multiLineActualTexts": Array [ - "-", + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州...", ], - "originalText": "-", - "width": 143.8, + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "桌子", + "绍兴市", ], - "originalText": "桌子", - "width": 143.8, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "actualTextHeight": 45, - "actualTextWidth": 363, - "height": 61, + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "桌子桌子桌子桌子桌子", - "桌子桌子桌子桌子桌子", - "桌子桌子桌子桌子桌子", + "宁波市", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "width": 143.8, + "originalText": "宁波市", + "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "舟山市", ], - "originalText": "桌子", - "width": 143.8, + "originalText": "舟山市", + "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "杭州市", ], - "originalText": "桌子", - "width": 143.8, + "originalText": "杭州市", + "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "绍兴市", ], - "originalText": "桌子", - "width": 143.8, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "宁波市", ], - "originalText": "沙发", - "width": 143.8, + "originalText": "宁波市", + "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "舟山市", ], - "originalText": "沙发", - "width": 143.8, + "originalText": "舟山市", + "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ - "沙发", + "家具", ], - "originalText": "沙发", - "width": 143.8, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualText": "家具家具家具家具家具家具家具家具家具家具...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, "multiLineActualTexts": Array [ - "沙发", + "家具家具家具家", + "具家具家具家具", + "家具家具家具...", ], - "originalText": "沙发", - "width": 143.8, + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "笔", + "家具", ], - "originalText": "笔", - "width": 143.8, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 13, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "笔", + "家具", ], - "originalText": "笔", - "width": 143.8, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 13, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "笔", + "家具", ], - "originalText": "笔", - "width": 143.8, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 13, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "笔", + "家具", ], - "originalText": "笔", - "width": 143.8, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "纸张", + "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "纸张", + "家具", ], - "originalText": "纸张", - "width": 143.8, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "纸张", + "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "纸张", + "家具", ], - "originalText": "纸张", - "width": 143.8, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "纸张", + "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "纸张", + "家具", ], - "originalText": "纸张", - "width": 143.8, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "-", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 25, "height": 46, "multiLineActualTexts": Array [ - "-", + "桌子", ], - "originalText": "-", - "width": 143.8, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 15, - "actualTextWidth": 98, - "height": 30, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, "multiLineActualTexts": Array [ - "236723672361111", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子...", ], - "originalText": 236723672361111, - "width": 143.8, + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 103.8, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 30, - "actualTextWidth": 188, - "height": 61, + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "7789778977897789778", - "977897789", + "桌子", ], - "originalText": "7789778977897789778977897789", - "width": 143.8, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "236723672361111", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 98, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "236723672361111", + "桌子", ], - "originalText": 236723672361111, - "width": 143.8, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "3877", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "3877", + "桌子", ], - "originalText": 3877, - "width": 143.8, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "4342", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "4342", + "沙发", ], - "originalText": 4342, - "width": 143.8, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "5343", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "5343", + "沙发", ], - "originalText": 5343, - "width": 143.8, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "632", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "632", + "沙发", ], - "originalText": 632, - "width": 143.8, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "7234", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "7234", + "沙发", ], - "originalText": 7234, - "width": 143.8, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "834", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, + "multiLineActualTexts": Array [ + "2367236723611", + "11", + ], + "originalText": 236723672361111, + "width": 103.8, + }, + Object { + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 61, "multiLineActualTexts": Array [ - "834", + "7789778977897", + "7897789778977", + "89", ], - "originalText": 834, - "width": 143.8, + "originalText": "7789778977897789778977897789", + "width": 103.8, }, Object { - "actualText": "945", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "945", + "2367236723611", + "11", ], - "originalText": 945, - "width": 143.8, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "1304", + "actualText": "3877", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "1304", + "3877", ], - "originalText": 1304, - "width": 143.8, + "originalText": 3877, + "width": 103.8, }, Object { - "actualText": "1145", + "actualText": "4342", "actualTextHeight": 15, - "actualTextWidth": 26, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "1145", + "4342", ], - "originalText": 1145, - "width": 143.8, + "originalText": 4342, + "width": 103.8, }, Object { - "actualText": "1432", + "actualText": "5343", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "1432", + "5343", ], - "originalText": 1432, - "width": 143.8, + "originalText": 5343, + "width": 103.8, }, Object { - "actualText": "1343", + "actualText": "632", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "1343", + "632", ], - "originalText": 1343, - "width": 143.8, + "originalText": 632, + "width": 103.8, }, Object { - "actualText": "1354", + "actualText": "7234", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "1354", + "7234", ], - "originalText": 1354, - "width": 143.8, + "originalText": 7234, + "width": 103.8, }, Object { - "actualText": "1523", + "actualText": "834", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "1523", + "834", ], - "originalText": 1523, - "width": 143.8, + "originalText": 834, + "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "序号", ], @@ -14257,7 +17280,7 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 2`] = ` Array [ Object { "actualText": "1", @@ -14274,7 +17297,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "2", ], @@ -14307,7 +17330,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "5", ], @@ -14380,38 +17403,16 @@ Array [ "originalText": 11, "width": 80, }, - Object { - "actualText": "12", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "12", - ], - "originalText": 12, - "width": 80, - }, - Object { - "actualText": "13", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "13", - ], - "originalText": 13, - "width": 80, - }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "序号", ], @@ -14419,66 +17420,66 @@ Array [ "width": 80, }, Object { - "actualText": "省份", + "actualText": "province", "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 51, + "height": 20, "multiLineActualTexts": Array [ - "省份", + "province", ], - "originalText": "省份", + "originalText": "province", "width": 103.8, }, Object { - "actualText": "城市城市城市...", + "actualText": "city", "actualTextHeight": 16, - "actualTextWidth": 83, - "height": 30, + "actualTextWidth": 21, + "height": 20, "multiLineActualTexts": Array [ - "城市城市城市...", + "city", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "originalText": "city", "width": 103.8, }, Object { - "actualText": "类别类别类别...", + "actualText": "type", "actualTextHeight": 16, - "actualTextWidth": 83, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "类别类别类别...", + "type", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", + "originalText": "type", "width": 103.8, }, Object { - "actualText": "子类别", + "actualText": "sub_type", "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 53, + "height": 20, "multiLineActualTexts": Array [ - "子类别", + "sub_type", ], - "originalText": "子类别", + "originalText": "sub_type", "width": 103.8, }, Object { - "actualText": "数量数量数量...", + "actualText": "number", "actualTextHeight": 16, - "actualTextWidth": 83, - "height": 30, + "actualTextWidth": 45, + "height": 20, "multiLineActualTexts": Array [ - "数量数量数量...", + "number", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "originalText": "number", "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 5`] = ` Array [ Object { "actualText": "1", @@ -14495,7 +17496,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "2", ], @@ -14528,7 +17529,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "5", ], @@ -14601,61 +17602,6 @@ Array [ "originalText": 11, "width": 80, }, - Object { - "actualText": "12", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "12", - ], - "originalText": 12, - "width": 80, - }, - Object { - "actualText": "13", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "13", - ], - "originalText": 13, - "width": 80, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省浙江省...", - "actualTextHeight": 15, - "actualTextWidth": 83, - "height": 30, - "multiLineActualTexts": Array [ - "浙江省浙江省...", - ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, Object { "actualText": "浙江省", "actualTextHeight": 15, @@ -14671,7 +17617,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -14704,7 +17650,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "浙江省", ], @@ -14758,45 +17704,23 @@ Array [ Object { "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "绍兴市", - ], - "originalText": "绍兴市", - "width": 103.8, - }, - Object { - "actualText": "杭州市杭州市...", - "actualTextHeight": 15, - "actualTextWidth": 83, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "杭州市杭州市...", + "浙江省", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "浙江省", ], - "originalText": "绍兴市", + "originalText": "浙江省", "width": 103.8, }, Object { @@ -14814,7 +17738,7 @@ Array [ "actualText": "舟山市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "舟山市", ], @@ -14847,7 +17771,7 @@ Array [ "actualText": "宁波市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "宁波市", ], @@ -14910,36 +17834,14 @@ Array [ "width": 103.8, }, Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, - Object { - "actualText": "家具家具家具...", - "actualTextHeight": 15, - "actualTextWidth": 83, - "height": 30, - "multiLineActualTexts": Array [ - "家具家具家具...", - ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 103.8, - }, - Object { - "actualText": "家具", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "家具", + "杭州市", ], - "originalText": "家具", + "originalText": "杭州市", "width": 103.8, }, Object { @@ -14957,7 +17859,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "家具", ], @@ -14990,7 +17892,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "家具", ], @@ -15053,36 +17955,14 @@ Array [ "width": 103.8, }, Object { - "actualText": "桌子", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "桌子", - ], - "originalText": "桌子", - "width": 103.8, - }, - Object { - "actualText": "桌子桌子桌子...", - "actualTextHeight": 15, - "actualTextWidth": 83, - "height": 30, - "multiLineActualTexts": Array [ - "桌子桌子桌子...", - ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "width": 103.8, - }, - Object { - "actualText": "桌子", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 49, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "办公用品", ], - "originalText": "桌子", + "originalText": "办公用品", "width": 103.8, }, Object { @@ -15100,7 +17980,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "桌子", ], @@ -15133,7 +18013,7 @@ Array [ "actualText": "沙发", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "沙发", ], @@ -15196,36 +18076,14 @@ Array [ "width": 103.8, }, Object { - "actualText": "23672367236...", - "actualTextHeight": 15, - "actualTextWidth": 84, - "height": 30, - "multiLineActualTexts": Array [ - "23672367236...", - ], - "originalText": 236723672361111, - "width": 103.8, - }, - Object { - "actualText": "77897789778...", - "actualTextHeight": 15, - "actualTextWidth": 84, - "height": 30, - "multiLineActualTexts": Array [ - "77897789778...", - ], - "originalText": "7789778977897789778977897789", - "width": 103.8, - }, - Object { - "actualText": "23672367236...", + "actualText": "纸张", "actualTextHeight": 15, - "actualTextWidth": 84, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "23672367236...", + "纸张", ], - "originalText": 236723672361111, + "originalText": "纸张", "width": 103.8, }, Object { @@ -15243,7 +18101,7 @@ Array [ "actualText": "4342", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "4342", ], @@ -15276,7 +18134,7 @@ Array [ "actualText": "7234", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "7234", ], @@ -15338,16 +18196,27 @@ Array [ "originalText": 1432, "width": 103.8, }, + Object { + "actualText": "1343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1343", + ], + "originalText": 1343, + "width": 103.8, + }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 70, "multiLineActualTexts": Array [ "序号", ], @@ -15357,13 +18226,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 70, "multiLineActualTexts": Array [ "1", ], @@ -15374,7 +18243,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 61, + "height": 100, "multiLineActualTexts": Array [ "2", ], @@ -15436,38 +18305,16 @@ Array [ "originalText": 7, "width": 80, }, - Object { - "actualText": "8", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "8", - ], - "originalText": 8, - "width": 80, - }, - Object { - "actualText": "9", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "9", - ], - "originalText": 9, - "width": 80, - }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 70, "multiLineActualTexts": Array [ "序号", ], @@ -15478,7 +18325,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 70, "multiLineActualTexts": Array [ "省份", ], @@ -15489,7 +18336,7 @@ Array [ "actualText": "城市城市城市城市城市城市城市城市城市城市...", "actualTextHeight": 48, "actualTextWidth": 253, - "height": 64, + "height": 70, "multiLineActualTexts": Array [ "城市城市城市城", "市城市城市城市", @@ -15502,7 +18349,7 @@ Array [ "actualText": "类别类别类别类别类别类别类别类别类别类别", "actualTextHeight": 48, "actualTextWidth": 243, - "height": 64, + "height": 70, "multiLineActualTexts": Array [ "类别类别类别类", "别类别类别类别", @@ -15515,7 +18362,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 64, + "height": 70, "multiLineActualTexts": Array [ "子类别", ], @@ -15526,7 +18373,7 @@ Array [ "actualText": "数量数量数量数量数量数量数量数量数量数量...", "actualTextHeight": 48, "actualTextWidth": 253, - "height": 64, + "height": 70, "multiLineActualTexts": Array [ "数量数量数量数", "量数量数量数量", @@ -15538,15 +18385,15 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 70, "multiLineActualTexts": Array [ "1", ], @@ -15557,7 +18404,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 61, + "height": 100, "multiLineActualTexts": Array [ "2", ], @@ -15619,33 +18466,11 @@ Array [ "originalText": 7, "width": 80, }, - Object { - "actualText": "8", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "8", - ], - "originalText": 8, - "width": 80, - }, - Object { - "actualText": "9", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "9", - ], - "originalText": 9, - "width": 80, - }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 70, "multiLineActualTexts": Array [ "浙江省", ], @@ -15656,7 +18481,7 @@ Array [ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", "actualTextHeight": 45, "actualTextWidth": 253, - "height": 61, + "height": 100, "multiLineActualTexts": Array [ "浙江省浙江省浙", "江省浙江省浙江", @@ -15720,33 +18545,11 @@ Array [ "originalText": "浙江省", "width": 103.8, }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, Object { "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 70, "multiLineActualTexts": Array [ "绍兴市", ], @@ -15757,7 +18560,7 @@ Array [ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", "actualTextHeight": 45, "actualTextWidth": 253, - "height": 61, + "height": 100, "multiLineActualTexts": Array [ "杭州市杭州市杭", "州市杭州市杭州", @@ -15800,54 +18603,32 @@ Array [ "width": 103.8, }, Object { - "actualText": "杭州市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "杭州市", - ], - "originalText": "杭州市", - "width": 103.8, - }, - Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "绍兴市", - ], - "originalText": "绍兴市", - "width": 103.8, - }, - Object { - "actualText": "宁波市", + "actualText": "杭州市", "actualTextHeight": 15, "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "杭州市", ], - "originalText": "宁波市", + "originalText": "杭州市", "width": 103.8, }, Object { - "actualText": "舟山市", + "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "舟山市", + "绍兴市", ], - "originalText": "舟山市", + "originalText": "绍兴市", "width": 103.8, }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 70, "multiLineActualTexts": Array [ "家具", ], @@ -15858,7 +18639,7 @@ Array [ "actualText": "家具家具家具家具家具家具家具家具家具家具...", "actualTextHeight": 45, "actualTextWidth": 253, - "height": 61, + "height": 100, "multiLineActualTexts": Array [ "家具家具家具家", "具家具家具家具", @@ -15922,33 +18703,11 @@ Array [ "originalText": "家具", "width": 103.8, }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, Object { "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 70, "multiLineActualTexts": Array [ "桌子", ], @@ -15959,7 +18718,7 @@ Array [ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", "actualTextHeight": 45, "actualTextWidth": 253, - "height": 61, + "height": 100, "multiLineActualTexts": Array [ "桌子桌子桌子桌", "子桌子桌子桌子", @@ -16023,33 +18782,11 @@ Array [ "originalText": "沙发", "width": 103.8, }, - Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "沙发", - ], - "originalText": "沙发", - "width": 103.8, - }, - Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "沙发", - ], - "originalText": "沙发", - "width": 103.8, - }, Object { "actualText": "236723672361111", "actualTextHeight": 30, "actualTextWidth": 100, - "height": 46, + "height": 70, "multiLineActualTexts": Array [ "2367236723611", "11", @@ -16061,7 +18798,7 @@ Array [ "actualText": "7789778977897789778977897789", "actualTextHeight": 45, "actualTextWidth": 189, - "height": 61, + "height": 100, "multiLineActualTexts": Array [ "7789778977897", "7897789778977", @@ -16126,38 +18863,90 @@ Array [ "originalText": 632, "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height 1`] = ` +Array [ Object { - "actualText": "7234", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 70, "multiLineActualTexts": Array [ - "7234", + "序号", ], - "originalText": 7234, + "originalText": "序号", + "width": 80, + }, + Object { + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 70, + "multiLineActualTexts": Array [ + "省份", + ], + "originalText": "省份", "width": 103.8, }, Object { - "actualText": "834", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualText": "城市城市城市城市城市城市城...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 70, "multiLineActualTexts": Array [ - "834", + "城市城市城市城", + "市城市城市城...", ], - "originalText": 834, + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 103.8, + }, + Object { + "actualText": "类别类别类别类别类别类别类...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 70, + "multiLineActualTexts": Array [ + "类别类别类别类", + "别类别类别类...", + ], + "originalText": "类别类别类别类别类别类别类别类别类别类别", + "width": 103.8, + }, + Object { + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 70, + "multiLineActualTexts": Array [ + "子类别", + ], + "originalText": "子类别", + "width": 103.8, + }, + Object { + "actualText": "数量数量数量数量数量数量数...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 70, + "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数...", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 100, "multiLineActualTexts": Array [ "序号", ], @@ -16167,7 +18956,7 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 2`] = ` Array [ Object { "actualText": "1", @@ -16184,7 +18973,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 61, + "height": 76, "multiLineActualTexts": Array [ "2", ], @@ -16257,27 +19046,16 @@ Array [ "originalText": 8, "width": 80, }, - Object { - "actualText": "9", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "9", - ], - "originalText": 9, - "width": 80, - }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 100, "multiLineActualTexts": Array [ "序号", ], @@ -16288,7 +19066,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 100, "multiLineActualTexts": Array [ "省份", ], @@ -16296,14 +19074,15 @@ Array [ "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 64, + "actualTextWidth": 292, + "height": 100, "multiLineActualTexts": Array [ "城市城市城市城", "市城市城市城市", - "城市城市城市...", + "城市城市城市城", + "市城市", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, @@ -16312,7 +19091,7 @@ Array [ "actualText": "类别类别类别类别类别类别类别类别类别类别", "actualTextHeight": 48, "actualTextWidth": 243, - "height": 64, + "height": 50, "multiLineActualTexts": Array [ "类别类别类别类", "别类别类别类别", @@ -16325,7 +19104,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 64, + "height": 100, "multiLineActualTexts": Array [ "子类别", ], @@ -16333,14 +19112,15 @@ Array [ "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 64, + "actualTextWidth": 268, + "height": 100, "multiLineActualTexts": Array [ "数量数量数量数", "量数量数量数量", - "数量数量数量...", + "数量数量数量数", + "量", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, @@ -16348,9 +19128,9 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 5`] = ` Array [ Object { "actualText": "1", @@ -16367,7 +19147,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 61, + "height": 76, "multiLineActualTexts": Array [ "2", ], @@ -16440,17 +19220,6 @@ Array [ "originalText": 8, "width": 80, }, - Object { - "actualText": "9", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "9", - ], - "originalText": 9, - "width": 80, - }, Object { "actualText": "浙江省", "actualTextHeight": 15, @@ -16463,14 +19232,15 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, "multiLineActualTexts": Array [ "浙江省浙江省浙", "江省浙江省浙江", - "省浙江省浙江...", + "省浙江省浙江省", + "浙江省浙江省...", ], "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, @@ -16541,17 +19311,6 @@ Array [ "originalText": "浙江省", "width": 103.8, }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, Object { "actualText": "绍兴市", "actualTextHeight": 15, @@ -16564,14 +19323,15 @@ Array [ "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, "multiLineActualTexts": Array [ "杭州市杭州市杭", "州市杭州市杭州", - "市杭州市杭州...", + "市杭州市杭州市", + "杭州市杭州市...", ], "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, @@ -16642,17 +19402,6 @@ Array [ "originalText": "宁波市", "width": 103.8, }, - Object { - "actualText": "舟山市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "舟山市", - ], - "originalText": "舟山市", - "width": 103.8, - }, Object { "actualText": "家具", "actualTextHeight": 15, @@ -16665,14 +19414,15 @@ Array [ "width": 103.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualTextHeight": 60, + "actualTextWidth": 340, + "height": 76, "multiLineActualTexts": Array [ "家具家具家具家", "具家具家具家具", - "家具家具家具...", + "家具家具家具家", + "具家具家具家具", ], "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103.8, @@ -16743,17 +19493,6 @@ Array [ "originalText": "家具", "width": 103.8, }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, Object { "actualText": "桌子", "actualTextHeight": 15, @@ -16766,14 +19505,15 @@ Array [ "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, "multiLineActualTexts": Array [ "桌子桌子桌子桌", "子桌子桌子桌子", - "桌子桌子桌子...", + "桌子桌子桌子桌", + "子桌子桌子桌...", ], "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, @@ -16844,17 +19584,6 @@ Array [ "originalText": "沙发", "width": 103.8, }, - Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "沙发", - ], - "originalText": "沙发", - "width": 103.8, - }, Object { "actualText": "236723672361111", "actualTextHeight": 30, @@ -16871,7 +19600,7 @@ Array [ "actualText": "7789778977897789778977897789", "actualTextHeight": 45, "actualTextWidth": 189, - "height": 61, + "height": 76, "multiLineActualTexts": Array [ "7789778977897", "7897789778977", @@ -16884,305 +19613,95 @@ Array [ "actualText": "236723672361111", "actualTextHeight": 30, "actualTextWidth": 100, - "height": 46, - "multiLineActualTexts": Array [ - "2367236723611", - "11", - ], - "originalText": 236723672361111, - "width": 103.8, - }, - Object { - "actualText": "3877", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "3877", - ], - "originalText": 3877, - "width": 103.8, - }, - Object { - "actualText": "4342", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "4342", - ], - "originalText": 4342, - "width": 103.8, - }, - Object { - "actualText": "5343", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "5343", - ], - "originalText": 5343, - "width": 103.8, - }, - Object { - "actualText": "632", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, - "multiLineActualTexts": Array [ - "632", - ], - "originalText": 632, - "width": 103.8, - }, - Object { - "actualText": "7234", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "7234", - ], - "originalText": 7234, - "width": 103.8, - }, - Object { - "actualText": "834", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, - "multiLineActualTexts": Array [ - "834", - ], - "originalText": 834, - "width": 103.8, - }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 1`] = ` -Array [ - Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 20, - "multiLineActualTexts": Array [ - "序号", - ], - "originalText": "序号", - "width": 80, - }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 2`] = ` -Array [ - Object { - "actualText": "1", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "1", - ], - "originalText": 1, - "width": 80, - }, - Object { - "actualText": "2", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, - "multiLineActualTexts": Array [ - "2", - ], - "originalText": 2, - "width": 80, - }, - Object { - "actualText": "3", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "3", - ], - "originalText": 3, - "width": 80, - }, - Object { - "actualText": "4", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "4", - ], - "originalText": 4, - "width": 80, - }, - Object { - "actualText": "5", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, - "multiLineActualTexts": Array [ - "5", - ], - "originalText": 5, - "width": 80, - }, - Object { - "actualText": "6", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "6", - ], - "originalText": 6, - "width": 80, - }, - Object { - "actualText": "7", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "7", - ], - "originalText": 7, - "width": 80, - }, - Object { - "actualText": "8", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "8", - ], - "originalText": 8, - "width": 80, - }, - Object { - "actualText": "9", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "9", - ], - "originalText": 9, - "width": 80, - }, - Object { - "actualText": "10", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "10", - ], - "originalText": 10, - "width": 80, - }, - Object { - "actualText": "11", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ + "2367236723611", "11", ], - "originalText": 11, - "width": 80, + "originalText": 236723672361111, + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 3`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 20, + "actualText": "3877", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "3877", ], - "originalText": "序号", - "width": 80, + "originalText": 3877, + "width": 103.8, }, Object { - "actualText": "province", - "actualTextHeight": 16, - "actualTextWidth": 51, - "height": 20, + "actualText": "4342", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "province", + "4342", ], - "originalText": "province", + "originalText": 4342, "width": 103.8, }, Object { - "actualText": "city", - "actualTextHeight": 16, - "actualTextWidth": 21, - "height": 20, + "actualText": "5343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "city", + "5343", ], - "originalText": "city", + "originalText": 5343, "width": 103.8, }, Object { - "actualText": "type", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 20, + "actualText": "632", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "type", + "632", ], - "originalText": "type", + "originalText": 632, "width": 103.8, }, Object { - "actualText": "sub_type", - "actualTextHeight": 16, - "actualTextWidth": 53, - "height": 20, + "actualText": "7234", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "sub_type", + "7234", ], - "originalText": "sub_type", + "originalText": 7234, "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style less than actual text height by dataCell.height 1`] = ` +Array [ Object { - "actualText": "number", + "actualText": "序号", "actualTextHeight": 16, - "actualTextWidth": 45, - "height": 20, + "actualTextWidth": 25, + "height": 48, "multiLineActualTexts": Array [ - "number", + "序号", ], - "originalText": "number", - "width": 103.8, + "originalText": "序号", + "width": 80, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 4`] = `Array []`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style less than actual text height by dataCell.height 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "1", ], @@ -17204,7 +19723,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "3", ], @@ -17215,7 +19734,7 @@ Array [ "actualText": "4", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "4", ], @@ -17226,7 +19745,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ "5", ], @@ -17237,7 +19756,7 @@ Array [ "actualText": "6", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "6", ], @@ -17248,7 +19767,7 @@ Array [ "actualText": "7", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "7", ], @@ -17259,7 +19778,7 @@ Array [ "actualText": "8", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "8", ], @@ -17270,7 +19789,7 @@ Array [ "actualText": "9", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "9", ], @@ -17281,7 +19800,7 @@ Array [ "actualText": "10", "actualTextHeight": 15, "actualTextWidth": 14, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "10", ], @@ -17292,7 +19811,7 @@ Array [ "actualText": "11", "actualTextHeight": 15, "actualTextWidth": 13, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "11", ], @@ -17300,1190 +19819,1162 @@ Array [ "width": 80, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省", + "actualText": "12", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 14, "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "12", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 12, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "13", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "13", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 13, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "14", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "14", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 14, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "15", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "15", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 15, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "16", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "16", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 16, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "17", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "17", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 17, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "18", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "18", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 18, + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style less than actual text height by dataCell.height 3`] = ` +Array [ Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 48, "multiLineActualTexts": Array [ - "浙江省", + "序号", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 48, "multiLineActualTexts": Array [ - "浙江省", + "省份", ], - "originalText": "浙江省", + "originalText": "省份", "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "城市城市城市城市城市城市城...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 48, "multiLineActualTexts": Array [ - "浙江省", + "城市城市城市城", + "市城市城市城...", ], - "originalText": "浙江省", + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "类别类别类别类别类别类别类...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 48, "multiLineActualTexts": Array [ - "宁波市", + "类别类别类别类", + "别类别类别类...", ], - "originalText": "宁波市", + "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, }, Object { - "actualText": "舟山市", - "actualTextHeight": 15, + "actualText": "子类别", + "actualTextHeight": 16, "actualTextWidth": 37, - "height": 20, + "height": 48, "multiLineActualTexts": Array [ - "舟山市", + "子类别", ], - "originalText": "舟山市", + "originalText": "子类别", "width": 103.8, }, Object { - "actualText": "杭州市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "数量数量数量数量数量数量数...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 48, "multiLineActualTexts": Array [ - "杭州市", + "数量数量数量数", + "量数量数量数...", ], - "originalText": "杭州市", + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style less than actual text height by dataCell.height 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style less than actual text height by dataCell.height 5`] = ` +Array [ Object { - "actualText": "绍兴市", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "绍兴市", + "1", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "宁波市", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "宁波市", + "2", ], - "originalText": "宁波市", - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "舟山市", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "舟山市", + "3", ], - "originalText": "舟山市", - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "杭州市", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "杭州市", + "4", ], - "originalText": "杭州市", - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "绍兴市", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "绍兴市", + "5", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "宁波市", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "宁波市", + "6", ], - "originalText": "宁波市", - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "舟山市", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "舟山市", + "7", ], - "originalText": "舟山市", - "width": 103.8, + "originalText": 7, + "width": 80, }, Object { - "actualText": "杭州市", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "杭州市", + "8", ], - "originalText": "杭州市", - "width": 103.8, + "originalText": 8, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "9", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "9", ], - "originalText": "家具", - "width": 103.8, + "originalText": 9, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "10", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 14, "height": 20, "multiLineActualTexts": Array [ - "家具", + "10", ], - "originalText": "家具", - "width": 103.8, + "originalText": 10, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "11", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 13, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "11", ], - "originalText": "家具", - "width": 103.8, + "originalText": 11, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "12", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "12", ], - "originalText": "家具", - "width": 103.8, + "originalText": 12, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "13", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "13", ], - "originalText": "家具", - "width": 103.8, + "originalText": 13, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "14", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "14", ], - "originalText": "家具", - "width": 103.8, + "originalText": 14, + "width": 80, }, Object { - "actualText": "办公用品", + "actualText": "15", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "办公用品", + "15", ], - "originalText": "办公用品", - "width": 103.8, + "originalText": 15, + "width": 80, }, Object { - "actualText": "办公用品", + "actualText": "16", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "办公用品", + "16", ], - "originalText": "办公用品", - "width": 103.8, + "originalText": 16, + "width": 80, }, Object { - "actualText": "办公用品", + "actualText": "17", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "办公用品", + "17", ], - "originalText": "办公用品", - "width": 103.8, + "originalText": 17, + "width": 80, }, Object { - "actualText": "办公用品", + "actualText": "18", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "办公用品", + "18", ], - "originalText": "办公用品", - "width": 103.8, + "originalText": 18, + "width": 80, }, Object { - "actualText": "办公用品", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "办公用品", + "浙江省", ], - "originalText": "办公用品", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "桌子", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualText": "浙江省浙江省浙江省浙江省浙...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "height": 20, "multiLineActualTexts": Array [ - "桌子", + "浙江省浙江省浙", + "江省浙江省浙...", ], - "originalText": "桌子", + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 20, "multiLineActualTexts": Array [ - "桌子", + "浙江省", ], - "originalText": "桌子", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "沙发", + "浙江省", ], - "originalText": "沙发", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "沙发", + "浙江省", ], - "originalText": "沙发", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "沙发", + "浙江省", ], - "originalText": "沙发", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "沙发", + "浙江省", ], - "originalText": "沙发", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "笔", + "浙江省", ], - "originalText": "笔", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "笔", + "浙江省", ], - "originalText": "笔", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "笔", + "浙江省", ], - "originalText": "笔", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "笔", + "浙江省", ], - "originalText": "笔", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "纸张", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "纸张", + "浙江省", ], - "originalText": "纸张", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "3877", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "3877", + "浙江省", ], - "originalText": 3877, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "4342", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 20, "multiLineActualTexts": Array [ - "4342", + "浙江省", ], - "originalText": 4342, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "5343", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "5343", + "浙江省", ], - "originalText": 5343, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "632", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "632", + "浙江省", ], - "originalText": 632, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "7234", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 100, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "7234", + "浙江省", ], - "originalText": 7234, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "834", + "actualText": "四川省", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "834", + "四川省", ], - "originalText": 834, + "originalText": "四川省", "width": 103.8, }, Object { - "actualText": "945", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "945", + "绍兴市", ], - "originalText": 945, + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "1304", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "杭州市杭州市杭州市杭州市杭...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "height": 20, "multiLineActualTexts": Array [ - "1304", + "杭州市杭州市杭", + "州市杭州市杭...", ], - "originalText": 1304, + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, }, Object { - "actualText": "1145", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 26, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "1145", + "绍兴市", ], - "originalText": 1145, + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "1432", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "1432", + "宁波市", ], - "originalText": 1432, + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "1343", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "1343", + "舟山市", ], - "originalText": 1343, + "originalText": "舟山市", "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 70, + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "序号", + "杭州市", ], - "originalText": "序号", - "width": 80, + "originalText": "杭州市", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 70, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "1", + "绍兴市", ], - "originalText": 1, - "width": 80, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "2", + "宁波市", ], - "originalText": 2, - "width": 80, + "originalText": "宁波市", + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "3", + "舟山市", ], - "originalText": 3, - "width": 80, + "originalText": "舟山市", + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "4", + "杭州市", ], - "originalText": 4, - "width": 80, + "originalText": "杭州市", + "width": 103.8, }, Object { - "actualText": "5", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "5", + "绍兴市", ], - "originalText": 5, - "width": 80, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "6", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "6", + "宁波市", ], - "originalText": 6, - "width": 80, + "originalText": "宁波市", + "width": 103.8, }, Object { - "actualText": "7", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "7", + "舟山市", ], - "originalText": 7, - "width": 80, + "originalText": "舟山市", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 3`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 70, + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "序号", + "杭州市", ], - "originalText": "序号", - "width": 80, + "originalText": "杭州市", + "width": 103.8, }, Object { - "actualText": "省份", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 70, + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "省份", + "绍兴市", ], - "originalText": "省份", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 70, + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市...", + "宁波市", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 70, + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "舟山市", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, + "actualText": "成都市", + "actualTextHeight": 15, "actualTextWidth": 37, - "height": 70, + "height": 20, "multiLineActualTexts": Array [ - "子类别", + "成都市", ], - "originalText": "子类别", + "originalText": "成都市", "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 70, + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", + "家具", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "originalText": "家具", "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 4`] = `Array []`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 5`] = ` -Array [ Object { - "actualText": "1", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 70, + "actualText": "家具家具家具家具家具家具家...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "height": 20, "multiLineActualTexts": Array [ - "1", + "家具家具家具家", + "具家具家具家...", ], - "originalText": 1, - "width": 80, + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "2", + "家具", ], - "originalText": 2, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "3", + "家具", ], - "originalText": 3, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "4", + "家具", ], - "originalText": 4, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "5", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "5", + "家具", ], - "originalText": 5, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "6", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "6", + "家具", ], - "originalText": 6, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "7", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "7", - ], - "originalText": 7, - "width": 80, + "家具", + ], + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 70, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "家具", ], - "originalText": "浙江省", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 100, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江...", + "办公用品", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "办公用品", ], - "originalText": "浙江省", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "办公用品", ], - "originalText": "浙江省", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "办公用品", ], - "originalText": "浙江省", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "办公用品", ], - "originalText": "浙江省", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "办公用品", ], - "originalText": "浙江省", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 70, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ - "绍兴市", + "办公用品", ], - "originalText": "绍兴市", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 100, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭州", - "市杭州市杭州...", + "办公用品", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "绍兴市", + "家具", ], - "originalText": "绍兴市", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "宁波市", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "宁波市", + "桌子", ], - "originalText": "宁波市", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "舟山市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "桌子桌子桌子桌子桌子桌子桌...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "height": 20, "multiLineActualTexts": Array [ - "舟山市", + "桌子桌子桌子桌", + "子桌子桌子桌...", ], - "originalText": "舟山市", + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, }, Object { - "actualText": "杭州市", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "杭州市", + "桌子", ], - "originalText": "杭州市", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "绍兴市", + "桌子", ], - "originalText": "绍兴市", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 70, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "桌子", ], - "originalText": "家具", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 100, + "actualText": "沙发", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具...", + "沙发", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "沙发", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "沙发", ], - "originalText": "家具", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "沙发", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "沙发", ], - "originalText": "家具", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "沙发", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "沙发", ], - "originalText": "家具", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 13, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "笔", ], - "originalText": "家具", + "originalText": "笔", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 13, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "笔", ], - "originalText": "家具", + "originalText": "笔", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 70, + "actualTextWidth": 13, + "height": 20, "multiLineActualTexts": Array [ - "桌子", + "笔", ], - "originalText": "桌子", + "originalText": "笔", "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 100, + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 20, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子...", + "笔", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "originalText": "笔", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "纸张", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ - "桌子", + "纸张", ], - "originalText": "桌子", + "originalText": "纸张", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "纸张", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ - "桌子", + "纸张", ], - "originalText": "桌子", + "originalText": "纸张", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "纸张", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ - "桌子", + "纸张", ], - "originalText": "桌子", + "originalText": "纸张", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "纸张", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ - "沙发", + "纸张", ], - "originalText": "沙发", + "originalText": "纸张", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ - "沙发", + "桌子", ], - "originalText": "沙发", + "originalText": "桌子", "width": 103.8, }, Object { "actualText": "236723672361111", "actualTextHeight": 30, "actualTextWidth": 100, - "height": 70, + "height": 20, "multiLineActualTexts": Array [ "2367236723611", "11", @@ -18492,14 +20983,13 @@ Array [ "width": 103.8, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 100, + "actualText": "778977897789778977897789...", + "actualTextHeight": 30, + "actualTextWidth": 172, + "height": 20, "multiLineActualTexts": Array [ "7789778977897", - "7897789778977", - "89", + "78977897789...", ], "originalText": "7789778977897789778977897789", "width": 103.8, @@ -18508,7 +20998,7 @@ Array [ "actualText": "236723672361111", "actualTextHeight": 30, "actualTextWidth": 100, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "2367236723611", "11", @@ -18520,7 +21010,7 @@ Array [ "actualText": "3877", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "3877", ], @@ -18531,7 +21021,7 @@ Array [ "actualText": "4342", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "4342", ], @@ -18542,7 +21032,7 @@ Array [ "actualText": "5343", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "5343", ], @@ -18553,97 +21043,144 @@ Array [ "actualText": "632", "actualTextHeight": 15, "actualTextWidth": 21, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "632", ], "originalText": 632, "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 70, + "actualText": "7234", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "序号", + "7234", ], - "originalText": "序号", - "width": 80, + "originalText": 7234, + "width": 103.8, }, Object { - "actualText": "省份", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 70, + "actualText": "834", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 20, "multiLineActualTexts": Array [ - "省份", + "834", ], - "originalText": "省份", + "originalText": 834, "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "height": 70, + "actualText": "945", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 20, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城...", + "945", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "originalText": 945, "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "height": 70, + "actualText": "1304", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类...", + "1304", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", + "originalText": 1304, "width": 103.8, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 70, + "actualText": "1145", + "actualTextHeight": 15, + "actualTextWidth": 26, + "height": 20, "multiLineActualTexts": Array [ - "子类别", + "1145", ], - "originalText": "子类别", + "originalText": 1145, "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "height": 70, + "actualText": "1432", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数...", + "1432", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "originalText": 1432, + "width": 103.8, + }, + Object { + "actualText": "1343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 20, + "multiLineActualTexts": Array [ + "1343", + ], + "originalText": 1343, + "width": 103.8, + }, + Object { + "actualText": "1354", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 20, + "multiLineActualTexts": Array [ + "1354", + ], + "originalText": 1354, + "width": 103.8, + }, + Object { + "actualText": "1523", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 20, + "multiLineActualTexts": Array [ + "1523", + ], + "originalText": 1523, + "width": 103.8, + }, + Object { + "actualText": "1634", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 20, + "multiLineActualTexts": Array [ + "1634", + ], + "originalText": 1634, + "width": 103.8, + }, + Object { + "actualText": "1723", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 20, + "multiLineActualTexts": Array [ + "1723", + ], + "originalText": 1723, "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style more than actual text height by dataCell.height 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 100, + "height": 48, "multiLineActualTexts": Array [ "序号", ], @@ -18653,13 +21190,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style more than actual text height by dataCell.height 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 100, "multiLineActualTexts": Array [ "1", ], @@ -18670,7 +21207,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 76, + "height": 100, "multiLineActualTexts": Array [ "2", ], @@ -18681,7 +21218,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 100, "multiLineActualTexts": Array [ "3", ], @@ -18692,67 +21229,23 @@ Array [ "actualText": "4", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "4", ], "originalText": 4, "width": 80, }, - Object { - "actualText": "5", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "5", - ], - "originalText": 5, - "width": 80, - }, - Object { - "actualText": "6", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "6", - ], - "originalText": 6, - "width": 80, - }, - Object { - "actualText": "7", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "7", - ], - "originalText": 7, - "width": 80, - }, - Object { - "actualText": "8", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "8", - ], - "originalText": 8, - "width": 80, - }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style more than actual text height by dataCell.height 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 100, + "height": 48, "multiLineActualTexts": Array [ "序号", ], @@ -18763,7 +21256,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 100, + "height": 48, "multiLineActualTexts": Array [ "省份", ], @@ -18771,28 +21264,25 @@ Array [ "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "actualTextHeight": 64, - "actualTextWidth": 292, - "height": 100, + "actualText": "城市城市城市城市城市城市城...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 48, "multiLineActualTexts": Array [ "城市城市城市城", - "市城市城市城市", - "城市城市城市城", - "市城市", + "市城市城市城...", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 50, + "actualText": "类别类别类别类别类别类别类...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 48, "multiLineActualTexts": Array [ "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "别类别类别类...", ], "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, @@ -18801,7 +21291,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 100, + "height": 48, "multiLineActualTexts": Array [ "子类别", ], @@ -18809,15 +21299,13 @@ Array [ "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 64, - "actualTextWidth": 268, - "height": 100, + "actualText": "数量数量数量数量数量数量数...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 48, "multiLineActualTexts": Array [ "数量数量数量数", - "量数量数量数量", - "数量数量数量数", - "量", + "量数量数量数...", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, @@ -18825,15 +21313,15 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style more than actual text height by dataCell.height 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style more than actual text height by dataCell.height 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 100, "multiLineActualTexts": Array [ "1", ], @@ -18844,7 +21332,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 76, + "height": 100, "multiLineActualTexts": Array [ "2", ], @@ -18855,7 +21343,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 100, "multiLineActualTexts": Array [ "3", ], @@ -18866,62 +21354,18 @@ Array [ "actualText": "4", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "4", ], "originalText": 4, "width": 80, }, - Object { - "actualText": "5", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "5", - ], - "originalText": 5, - "width": 80, - }, - Object { - "actualText": "6", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "6", - ], - "originalText": 6, - "width": 80, - }, - Object { - "actualText": "7", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "7", - ], - "originalText": 7, - "width": 80, - }, - Object { - "actualText": "8", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "8", - ], - "originalText": 8, - "width": 80, - }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 100, "multiLineActualTexts": Array [ "浙江省", ], @@ -18929,15 +21373,13 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "actualText": "浙江省浙江省浙江省浙江省浙...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "height": 100, "multiLineActualTexts": Array [ "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江省", - "浙江省浙江省...", + "江省浙江省浙...", ], "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, @@ -18946,51 +21388,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "浙江省", ], @@ -19001,7 +21399,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "浙江省", ], @@ -19012,76 +21410,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, - "multiLineActualTexts": Array [ - "绍兴市", - ], - "originalText": "绍兴市", - "width": 103.8, - }, - Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, - "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭州", - "市杭州市杭州市", - "杭州市杭州市...", - ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "width": 103.8, - }, - Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, - "multiLineActualTexts": Array [ - "绍兴市", - ], - "originalText": "绍兴市", - "width": 103.8, - }, - Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "宁波市", - ], - "originalText": "宁波市", - "width": 103.8, - }, - Object { - "actualText": "舟山市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "舟山市", - ], - "originalText": "舟山市", - "width": 103.8, - }, - Object { - "actualText": "杭州市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "杭州市", - ], - "originalText": "杭州市", - "width": 103.8, - }, - Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "绍兴市", ], @@ -19089,68 +21418,44 @@ Array [ "width": 103.8, }, Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "宁波市", - ], - "originalText": "宁波市", - "width": 103.8, - }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, - Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "actualTextHeight": 60, - "actualTextWidth": 340, - "height": 76, + "actualText": "杭州市杭州市杭州市杭州市杭...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "height": 100, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具家", - "具家具家具家具", + "杭州市杭州市杭", + "州市杭州市杭...", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "家具", + "绍兴市", ], - "originalText": "家具", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "家具", + "宁波市", ], - "originalText": "家具", + "originalText": "宁波市", "width": 103.8, }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "家具", ], @@ -19158,21 +21463,22 @@ Array [ "width": 103.8, }, Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualText": "家具家具家具家具家具家具家...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "height": 100, "multiLineActualTexts": Array [ - "家具", + "家具家具家具家", + "具家具家具家...", ], - "originalText": "家具", + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103.8, }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "家具", ], @@ -19183,7 +21489,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "家具", ], @@ -19194,7 +21500,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 100, "multiLineActualTexts": Array [ "桌子", ], @@ -19202,13 +21508,11 @@ Array [ "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "actualText": "桌子桌子桌子桌子桌子桌子桌...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "height": 100, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", "桌子桌子桌子桌", "子桌子桌子桌...", ], @@ -19219,18 +21523,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, - "multiLineActualTexts": Array [ - "桌子", - ], - "originalText": "桌子", - "width": 103.8, - }, - Object { - "actualText": "桌子", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "桌子", ], @@ -19241,51 +21534,18 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "桌子", ], "originalText": "桌子", "width": 103.8, }, - Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "沙发", - ], - "originalText": "沙发", - "width": 103.8, - }, - Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "沙发", - ], - "originalText": "沙发", - "width": 103.8, - }, - Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "沙发", - ], - "originalText": "沙发", - "width": 103.8, - }, Object { "actualText": "236723672361111", "actualTextHeight": 30, "actualTextWidth": 100, - "height": 46, + "height": 100, "multiLineActualTexts": Array [ "2367236723611", "11", @@ -19294,14 +21554,13 @@ Array [ "width": 103.8, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 76, + "actualText": "778977897789778977897789...", + "actualTextHeight": 30, + "actualTextWidth": 172, + "height": 100, "multiLineActualTexts": Array [ "7789778977897", - "7897789778977", - "89", + "78977897789...", ], "originalText": "7789778977897789778977897789", "width": 103.8, @@ -19310,7 +21569,7 @@ Array [ "actualText": "236723672361111", "actualTextHeight": 30, "actualTextWidth": 100, - "height": 46, + "height": 100, "multiLineActualTexts": Array [ "2367236723611", "11", @@ -19322,67 +21581,23 @@ Array [ "actualText": "3877", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "3877", ], "originalText": 3877, "width": 103.8, }, - Object { - "actualText": "4342", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "4342", - ], - "originalText": 4342, - "width": 103.8, - }, - Object { - "actualText": "5343", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "5343", - ], - "originalText": 5343, - "width": 103.8, - }, - Object { - "actualText": "632", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, - "multiLineActualTexts": Array [ - "632", - ], - "originalText": 632, - "width": 103.8, - }, - Object { - "actualText": "7234", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "7234", - ], - "originalText": 7234, - "width": 103.8, - }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style less than actual text height by dataCell.height 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height if custom cell style less than actual text height by colCell.height 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 48, + "height": 20, "multiLineActualTexts": Array [ "序号", ], @@ -19392,13 +21607,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style less than actual text height by dataCell.height 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height if custom cell style less than actual text height by colCell.height 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "1", ], @@ -19409,7 +21624,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "2", ], @@ -19420,7 +21635,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "3", ], @@ -19429,179 +21644,102 @@ Array [ }, Object { "actualText": "4", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, - "multiLineActualTexts": Array [ - "4", - ], - "originalText": 4, - "width": 80, - }, - Object { - "actualText": "5", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, - "multiLineActualTexts": Array [ - "5", - ], - "originalText": 5, - "width": 80, - }, - Object { - "actualText": "6", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, - "multiLineActualTexts": Array [ - "6", - ], - "originalText": 6, - "width": 80, - }, - Object { - "actualText": "7", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, - "multiLineActualTexts": Array [ - "7", - ], - "originalText": 7, - "width": 80, - }, - Object { - "actualText": "8", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, - "multiLineActualTexts": Array [ - "8", - ], - "originalText": 8, - "width": 80, - }, - Object { - "actualText": "9", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, - "multiLineActualTexts": Array [ - "9", - ], - "originalText": 9, - "width": 80, - }, - Object { - "actualText": "10", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, - "multiLineActualTexts": Array [ - "10", - ], - "originalText": 10, - "width": 80, - }, - Object { - "actualText": "11", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "11", + "4", ], - "originalText": 11, + "originalText": 4, "width": 80, }, Object { - "actualText": "12", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "12", + "5", ], - "originalText": 12, + "originalText": 5, "width": 80, }, Object { - "actualText": "13", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "13", + "6", ], - "originalText": 13, + "originalText": 6, "width": 80, }, Object { - "actualText": "14", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "14", + "7", ], - "originalText": 14, + "originalText": 7, "width": 80, }, Object { - "actualText": "15", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "15", + "8", ], - "originalText": 15, + "originalText": 8, "width": 80, }, Object { - "actualText": "16", + "actualText": "9", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "16", + "9", ], - "originalText": 16, + "originalText": 9, "width": 80, }, Object { - "actualText": "17", + "actualText": "10", "actualTextHeight": 15, "actualTextWidth": 14, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ - "17", + "10", ], - "originalText": 17, + "originalText": 10, "width": 80, }, Object { - "actualText": "18", + "actualText": "11", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "18", + "11", ], - "originalText": 18, + "originalText": 11, "width": 80, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style less than actual text height by dataCell.height 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height if custom cell style less than actual text height by colCell.height 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 48, + "height": 20, "multiLineActualTexts": Array [ "序号", ], @@ -19612,7 +21750,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 48, + "height": 20, "multiLineActualTexts": Array [ "省份", ], @@ -19623,7 +21761,7 @@ Array [ "actualText": "城市城市城市城市城市城市城...", "actualTextHeight": 32, "actualTextWidth": 168, - "height": 48, + "height": 20, "multiLineActualTexts": Array [ "城市城市城市城", "市城市城市城...", @@ -19635,7 +21773,7 @@ Array [ "actualText": "类别类别类别类别类别类别类...", "actualTextHeight": 32, "actualTextWidth": 168, - "height": 48, + "height": 20, "multiLineActualTexts": Array [ "类别类别类别类", "别类别类别类...", @@ -19647,7 +21785,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 48, + "height": 20, "multiLineActualTexts": Array [ "子类别", ], @@ -19658,7 +21796,7 @@ Array [ "actualText": "数量数量数量数量数量数量数...", "actualTextHeight": 32, "actualTextWidth": 168, - "height": 48, + "height": 20, "multiLineActualTexts": Array [ "数量数量数量数", "量数量数量数...", @@ -19669,15 +21807,15 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style less than actual text height by dataCell.height 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height if custom cell style less than actual text height by colCell.height 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style less than actual text height by dataCell.height 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height if custom cell style less than actual text height by colCell.height 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "1", ], @@ -19688,7 +21826,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "2", ], @@ -19699,7 +21837,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "3", ], @@ -19710,7 +21848,7 @@ Array [ "actualText": "4", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "4", ], @@ -19721,7 +21859,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "5", ], @@ -19732,7 +21870,7 @@ Array [ "actualText": "6", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "6", ], @@ -19743,7 +21881,7 @@ Array [ "actualText": "7", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "7", ], @@ -19754,195 +21892,51 @@ Array [ "actualText": "8", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "8", - ], - "originalText": 8, - "width": 80, - }, - Object { - "actualText": "9", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, - "multiLineActualTexts": Array [ - "9", - ], - "originalText": 9, - "width": 80, - }, - Object { - "actualText": "10", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, - "multiLineActualTexts": Array [ - "10", - ], - "originalText": 10, - "width": 80, - }, - Object { - "actualText": "11", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, - "multiLineActualTexts": Array [ - "11", - ], - "originalText": 11, - "width": 80, - }, - Object { - "actualText": "12", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, - "multiLineActualTexts": Array [ - "12", - ], - "originalText": 12, - "width": 80, - }, - Object { - "actualText": "13", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, - "multiLineActualTexts": Array [ - "13", - ], - "originalText": 13, - "width": 80, - }, - Object { - "actualText": "14", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, - "multiLineActualTexts": Array [ - "14", - ], - "originalText": 14, - "width": 80, - }, - Object { - "actualText": "15", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, - "multiLineActualTexts": Array [ - "15", - ], - "originalText": 15, - "width": 80, - }, - Object { - "actualText": "16", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, - "multiLineActualTexts": Array [ - "16", - ], - "originalText": 16, - "width": 80, - }, - Object { - "actualText": "17", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, - "multiLineActualTexts": Array [ - "17", - ], - "originalText": 17, - "width": 80, - }, - Object { - "actualText": "18", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, - "multiLineActualTexts": Array [ - "18", - ], - "originalText": 18, - "width": 80, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省浙江省浙江省浙江省浙...", - "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 20, - "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙...", - ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, + ], + "originalText": 8, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "9", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "9", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 9, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "10", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "10", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 10, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "11", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "11", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 11, + "width": 80, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], @@ -19950,21 +21944,22 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "浙江省浙江省浙江省浙江省浙...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "height": 46, "multiLineActualTexts": Array [ - "浙江省", + "浙江省浙江省浙", + "江省浙江省浙...", ], - "originalText": "浙江省", + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], @@ -19975,7 +21970,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -19986,7 +21981,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -19997,7 +21992,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -20008,7 +22003,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -20019,7 +22014,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -20030,7 +22025,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -20041,7 +22036,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -20052,29 +22047,18 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], "originalText": "浙江省", "width": 103.8, }, - Object { - "actualText": "四川省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, - "multiLineActualTexts": Array [ - "四川省", - ], - "originalText": "四川省", - "width": 103.8, - }, Object { "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "绍兴市", ], @@ -20085,7 +22069,7 @@ Array [ "actualText": "杭州市杭州市杭州市杭州市杭...", "actualTextHeight": 30, "actualTextWidth": 168, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "杭州市杭州市杭", "州市杭州市杭...", @@ -20097,7 +22081,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "绍兴市", ], @@ -20108,7 +22092,7 @@ Array [ "actualText": "宁波市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "宁波市", ], @@ -20119,7 +22103,7 @@ Array [ "actualText": "舟山市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "舟山市", ], @@ -20130,7 +22114,7 @@ Array [ "actualText": "杭州市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "杭州市", ], @@ -20141,7 +22125,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "绍兴市", ], @@ -20152,7 +22136,7 @@ Array [ "actualText": "宁波市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "宁波市", ], @@ -20163,7 +22147,7 @@ Array [ "actualText": "舟山市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "舟山市", ], @@ -20174,7 +22158,7 @@ Array [ "actualText": "杭州市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "杭州市", ], @@ -20185,7 +22169,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "绍兴市", ], @@ -20193,876 +22177,1002 @@ Array [ "width": 103.8, }, Object { - "actualText": "宁波市", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "宁波市", + "家具", ], - "originalText": "宁波市", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "舟山市", + "actualText": "家具家具家具家具家具家具家...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "height": 46, + "multiLineActualTexts": Array [ + "家具家具家具家", + "具家具家具家...", + ], + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 103.8, + }, + Object { + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "舟山市", + "家具", ], - "originalText": "舟山市", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "杭州市", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "杭州市", + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, + Object { + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 30, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 103.8, + }, + Object { + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 30, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 103.8, + }, + Object { + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 46, + "multiLineActualTexts": Array [ + "桌子", + ], + "originalText": "桌子", + "width": 103.8, + }, + Object { + "actualText": "桌子桌子桌子桌子桌子桌子桌...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "height": 46, + "multiLineActualTexts": Array [ + "桌子桌子桌子桌", + "子桌子桌子桌...", + ], + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 103.8, + }, + Object { + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 46, + "multiLineActualTexts": Array [ + "桌子", ], - "originalText": "杭州市", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "桌子", ], - "originalText": "绍兴市", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "宁波市", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "桌子", ], - "originalText": "宁波市", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "舟山市", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "舟山市", + "沙发", ], - "originalText": "舟山市", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "成都市", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "成都市", + "沙发", ], - "originalText": "成都市", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "沙发", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "沙发", ], - "originalText": "家具", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "家具家具家具家具家具家具家...", - "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 20, + "actualText": "沙发", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家...", + "沙发", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "笔", ], - "originalText": "家具", + "originalText": "笔", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "笔", ], - "originalText": "家具", + "originalText": "笔", "width": 103.8, }, Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "家具", + "2367236723611", + "11", ], - "originalText": "家具", + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualText": "778977897789778977897789...", + "actualTextHeight": 30, + "actualTextWidth": 172, + "height": 46, "multiLineActualTexts": Array [ - "家具", + "7789778977897", + "78977897789...", ], - "originalText": "家具", + "originalText": "7789778977897789778977897789", "width": 103.8, }, Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "家具", + "2367236723611", + "11", ], - "originalText": "家具", + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "3877", ], - "originalText": "家具", + "originalText": 3877, "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "4342", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "4342", ], - "originalText": "家具", + "originalText": 4342, "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "5343", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "5343", ], - "originalText": "办公用品", + "originalText": 5343, "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "632", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "632", ], - "originalText": "办公用品", + "originalText": 632, "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "7234", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "7234", ], - "originalText": "办公用品", + "originalText": 7234, "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "834", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "834", ], - "originalText": "办公用品", + "originalText": 834, "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "945", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "945", ], - "originalText": "办公用品", + "originalText": 945, "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "1304", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "1304", ], - "originalText": "办公用品", + "originalText": 1304, "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 1`] = ` +Array [ Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, "multiLineActualTexts": Array [ - "办公用品", + "序号", ], - "originalText": "办公用品", - "width": 103.8, + "originalText": "序号", + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 2`] = ` +Array [ Object { - "actualText": "办公用品", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 49, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "办公用品", + "1", ], - "originalText": "办公用品", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "家具", + "2", ], - "originalText": "家具", - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "桌子", + "3", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌...", - "actualTextHeight": 30, - "actualTextWidth": 168, + "actualText": "4", + "actualTextHeight": 15, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌...", + "4", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "桌子", + "5", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "桌子", + "6", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "桌子", + "7", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 7, + "width": 80, }, Object { - "actualText": "沙发", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "沙发", + "8", ], - "originalText": "沙发", - "width": 103.8, + "originalText": 8, + "width": 80, }, Object { - "actualText": "沙发", + "actualText": "9", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "沙发", + "9", ], - "originalText": "沙发", - "width": 103.8, + "originalText": 9, + "width": 80, }, Object { - "actualText": "沙发", + "actualText": "10", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 14, "height": 20, "multiLineActualTexts": Array [ - "沙发", + "10", ], - "originalText": "沙发", - "width": 103.8, + "originalText": 10, + "width": 80, }, Object { - "actualText": "沙发", + "actualText": "11", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 13, "height": 20, "multiLineActualTexts": Array [ - "沙发", + "11", ], - "originalText": "沙发", - "width": 103.8, + "originalText": 11, + "width": 80, }, Object { - "actualText": "笔", + "actualText": "12", "actualTextHeight": 15, - "actualTextWidth": 13, + "actualTextWidth": 14, "height": 20, "multiLineActualTexts": Array [ - "笔", + "12", ], - "originalText": "笔", - "width": 103.8, + "originalText": 12, + "width": 80, }, Object { - "actualText": "笔", + "actualText": "13", "actualTextHeight": 15, - "actualTextWidth": 13, + "actualTextWidth": 14, "height": 20, "multiLineActualTexts": Array [ - "笔", + "13", ], - "originalText": "笔", - "width": 103.8, + "originalText": 13, + "width": 80, }, Object { - "actualText": "笔", + "actualText": "14", "actualTextHeight": 15, - "actualTextWidth": 13, + "actualTextWidth": 14, "height": 20, "multiLineActualTexts": Array [ - "笔", + "14", ], - "originalText": "笔", - "width": 103.8, + "originalText": 14, + "width": 80, }, Object { - "actualText": "笔", + "actualText": "15", "actualTextHeight": 15, - "actualTextWidth": 13, + "actualTextWidth": 14, "height": 20, "multiLineActualTexts": Array [ - "笔", + "15", ], - "originalText": "笔", - "width": 103.8, + "originalText": 15, + "width": 80, }, Object { - "actualText": "纸张", + "actualText": "16", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 14, "height": 20, "multiLineActualTexts": Array [ - "纸张", + "16", ], - "originalText": "纸张", - "width": 103.8, + "originalText": 16, + "width": 80, }, Object { - "actualText": "纸张", + "actualText": "17", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 14, "height": 20, "multiLineActualTexts": Array [ - "纸张", + "17", ], - "originalText": "纸张", - "width": 103.8, + "originalText": 17, + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 3`] = ` +Array [ Object { - "actualText": "纸张", - "actualTextHeight": 15, + "actualText": "序号", + "actualTextHeight": 16, "actualTextWidth": 25, - "height": 20, + "height": 64, "multiLineActualTexts": Array [ - "纸张", + "序号", ], - "originalText": "纸张", - "width": 103.8, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "纸张", - "actualTextHeight": 15, + "actualText": "省份", + "actualTextHeight": 16, "actualTextWidth": 25, - "height": 20, + "height": 64, "multiLineActualTexts": Array [ - "纸张", + "省份", ], - "originalText": "纸张", + "originalText": "省份", "width": 103.8, }, Object { - "actualText": "桌子", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualText": "城市城市城市城市城市城市城市城市城市城市...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, "multiLineActualTexts": Array [ - "桌子", + "城市城市城市城", + "市城市城市城市", + "城市城市城市...", ], - "originalText": "桌子", + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 20, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 64, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "类别类别类别类", + "别类别类别类别", + "类别类别类别", ], - "originalText": 236723672361111, + "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, }, Object { - "actualText": "778977897789778977897789...", - "actualTextHeight": 30, - "actualTextWidth": 172, - "height": 20, + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 64, "multiLineActualTexts": Array [ - "7789778977897", - "78977897789...", + "子类别", ], - "originalText": "7789778977897789778977897789", + "originalText": "子类别", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 20, + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "数量数量数量数", + "量数量数量数量", + "数量数量数量...", ], - "originalText": 236723672361111, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 5`] = ` +Array [ Object { - "actualText": "3877", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "3877", + "1", ], - "originalText": 3877, - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "4342", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "4342", + "2", ], - "originalText": 4342, - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "5343", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "5343", + "3", ], - "originalText": 5343, - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "632", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "632", + "4", ], - "originalText": 632, - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "7234", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "7234", + "5", ], - "originalText": 7234, - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "834", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "834", + "6", ], - "originalText": 834, - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "945", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "945", + "7", ], - "originalText": 945, - "width": 103.8, + "originalText": 7, + "width": 80, }, Object { - "actualText": "1304", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "1304", + "8", ], - "originalText": 1304, - "width": 103.8, + "originalText": 8, + "width": 80, }, Object { - "actualText": "1145", + "actualText": "9", "actualTextHeight": 15, - "actualTextWidth": 26, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "1145", + "9", ], - "originalText": 1145, - "width": 103.8, + "originalText": 9, + "width": 80, }, Object { - "actualText": "1432", + "actualText": "10", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 14, "height": 20, "multiLineActualTexts": Array [ - "1432", + "10", ], - "originalText": 1432, - "width": 103.8, + "originalText": 10, + "width": 80, }, Object { - "actualText": "1343", + "actualText": "11", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 13, "height": 20, "multiLineActualTexts": Array [ - "1343", + "11", ], - "originalText": 1343, - "width": 103.8, + "originalText": 11, + "width": 80, }, Object { - "actualText": "1354", + "actualText": "12", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 14, "height": 20, "multiLineActualTexts": Array [ - "1354", + "12", ], - "originalText": 1354, - "width": 103.8, + "originalText": 12, + "width": 80, }, Object { - "actualText": "1523", + "actualText": "13", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 14, "height": 20, "multiLineActualTexts": Array [ - "1523", + "13", ], - "originalText": 1523, - "width": 103.8, + "originalText": 13, + "width": 80, }, Object { - "actualText": "1634", + "actualText": "14", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 14, "height": 20, "multiLineActualTexts": Array [ - "1634", + "14", ], - "originalText": 1634, - "width": 103.8, + "originalText": 14, + "width": 80, }, Object { - "actualText": "1723", + "actualText": "15", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 14, "height": 20, "multiLineActualTexts": Array [ - "1723", + "15", ], - "originalText": 1723, - "width": 103.8, + "originalText": 15, + "width": 80, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style more than actual text height by dataCell.height 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 48, + "actualText": "16", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "序号", + "16", ], - "originalText": "序号", + "originalText": 16, "width": 80, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style more than actual text height by dataCell.height 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "17", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "1", + "17", ], - "originalText": 1, + "originalText": 17, "width": 80, }, Object { - "actualText": "2", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "2", + "浙江省", ], - "originalText": 2, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "3", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 20, "multiLineActualTexts": Array [ - "3", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江...", ], - "originalText": 3, - "width": 80, + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "4", + "浙江省", ], - "originalText": 4, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style more than actual text height by dataCell.height 3`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 48, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "序号", + "浙江省", ], - "originalText": "序号", - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "省份", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 48, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "省份", + "浙江省", ], - "originalText": "省份", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "height": 48, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城...", + "浙江省", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "height": 48, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类...", + "浙江省", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, + "actualText": "浙江省", + "actualTextHeight": 15, "actualTextWidth": 37, - "height": 48, + "height": 20, "multiLineActualTexts": Array [ - "子类别", + "浙江省", ], - "originalText": "子类别", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "height": 48, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数...", + "浙江省", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "originalText": "浙江省", "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style more than actual text height by dataCell.height 4`] = `Array []`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style more than actual text height by dataCell.height 5`] = ` -Array [ Object { - "actualText": "1", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "1", + "浙江省", ], - "originalText": 1, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "2", + "浙江省", ], - "originalText": 2, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "3", + "浙江省", ], - "originalText": 3, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "4", + "浙江省", ], - "originalText": 4, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -21070,22 +23180,21 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙...", - "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 100, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙...", + "浙江省", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "originalText": "浙江省", "width": 103.8, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -21096,7 +23205,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -21107,7 +23216,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ "绍兴市", ], @@ -21115,13 +23224,14 @@ Array [ "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭...", - "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 100, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 20, "multiLineActualTexts": Array [ "杭州市杭州市杭", - "州市杭州市杭...", + "州市杭州市杭州", + "市杭州市杭州...", ], "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, @@ -21130,7 +23240,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ "绍兴市", ], @@ -21141,7 +23251,7 @@ Array [ "actualText": "宁波市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ "宁波市", ], @@ -21149,1661 +23259,1648 @@ Array [ "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, - Object { - "actualText": "家具家具家具家具家具家具家...", - "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 100, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家...", + "舟山市", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "杭州市", ], - "originalText": "家具", + "originalText": "杭州市", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "绍兴市", ], - "originalText": "家具", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, - "multiLineActualTexts": Array [ - "桌子", - ], - "originalText": "桌子", - "width": 103.8, - }, - Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌...", - "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 100, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌...", + "宁波市", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "桌子", + "舟山市", ], - "originalText": "桌子", + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, - "multiLineActualTexts": Array [ - "桌子", - ], - "originalText": "桌子", - "width": 103.8, - }, - Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 100, - "multiLineActualTexts": Array [ - "2367236723611", - "11", - ], - "originalText": 236723672361111, - "width": 103.8, - }, - Object { - "actualText": "778977897789778977897789...", - "actualTextHeight": 30, - "actualTextWidth": 172, - "height": 100, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "7789778977897", - "78977897789...", + "杭州市", ], - "originalText": "7789778977897789778977897789", + "originalText": "杭州市", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 100, + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "绍兴市", ], - "originalText": 236723672361111, + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "3877", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 100, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "3877", + "宁波市", ], - "originalText": 3877, + "originalText": "宁波市", "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height if custom cell style less than actual text height by colCell.height 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, "height": 20, "multiLineActualTexts": Array [ - "序号", + "舟山市", ], - "originalText": "序号", - "width": 80, + "originalText": "舟山市", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height if custom cell style less than actual text height by colCell.height 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "1", + "杭州市", ], - "originalText": 1, - "width": 80, + "originalText": "杭州市", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "2", + "绍兴市", ], - "originalText": 2, - "width": 80, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "3", + "宁波市", ], - "originalText": 3, - "width": 80, + "originalText": "宁波市", + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "4", + "舟山市", ], - "originalText": 4, - "width": 80, + "originalText": "舟山市", + "width": 103.8, }, Object { - "actualText": "5", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "5", + "家具", ], - "originalText": 5, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "6", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualText": "家具家具家具家具家具家具家具家具家具家具...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 20, "multiLineActualTexts": Array [ - "6", + "家具家具家具家", + "具家具家具家具", + "家具家具家具...", ], - "originalText": 6, - "width": 80, + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 103.8, }, Object { - "actualText": "7", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "7", + "家具", ], - "originalText": 7, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "8", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "8", + "家具", ], - "originalText": 8, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "9", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "9", + "家具", ], - "originalText": 9, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "10", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "10", + "家具", ], - "originalText": 10, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "11", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "11", + "家具", ], - "originalText": 11, - "width": 80, + "originalText": "家具", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height if custom cell style less than actual text height by colCell.height 3`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, + "actualText": "家具", + "actualTextHeight": 15, "actualTextWidth": 25, "height": 20, "multiLineActualTexts": Array [ - "序号", + "家具", ], - "originalText": "序号", - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "省份", - "actualTextHeight": 16, + "actualText": "家具", + "actualTextHeight": 15, "actualTextWidth": 25, "height": 20, "multiLineActualTexts": Array [ - "省份", + "家具", ], - "originalText": "省份", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城...", - "actualTextHeight": 32, - "actualTextWidth": 168, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, "height": 20, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城...", + "办公用品", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类...", - "actualTextHeight": 32, - "actualTextWidth": 168, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, "height": 20, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类...", + "办公用品", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, "height": 20, "multiLineActualTexts": Array [ - "子类别", + "办公用品", ], - "originalText": "子类别", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数...", - "actualTextHeight": 32, - "actualTextWidth": 168, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, "height": 20, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数...", + "办公用品", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "originalText": "办公用品", "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height if custom cell style less than actual text height by colCell.height 4`] = `Array []`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height if custom cell style less than actual text height by colCell.height 5`] = ` -Array [ Object { - "actualText": "1", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ - "1", + "办公用品", ], - "originalText": 1, - "width": 80, + "originalText": "办公用品", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ - "2", + "办公用品", ], - "originalText": 2, - "width": 80, + "originalText": "办公用品", + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ - "3", + "办公用品", ], - "originalText": 3, - "width": 80, + "originalText": "办公用品", + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ - "4", + "办公用品", ], - "originalText": 4, - "width": 80, + "originalText": "办公用品", + "width": 103.8, }, Object { - "actualText": "5", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "5", + "桌子", ], - "originalText": 5, - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "6", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 20, "multiLineActualTexts": Array [ - "6", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子...", ], - "originalText": 6, - "width": 80, + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 103.8, }, Object { - "actualText": "7", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "7", + "桌子", ], - "originalText": 7, - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "8", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "8", + "桌子", ], - "originalText": 8, - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "9", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "9", + "桌子", ], - "originalText": 9, - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "10", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "10", + "沙发", ], - "originalText": 10, - "width": 80, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "11", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "11", + "沙发", ], - "originalText": 11, - "width": 80, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "沙发", ], - "originalText": "浙江省", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙...", - "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 46, + "actualText": "沙发", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙...", + "沙发", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 13, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "笔", ], - "originalText": "浙江省", + "originalText": "笔", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 13, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "笔", ], - "originalText": "浙江省", + "originalText": "笔", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 13, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "笔", ], - "originalText": "浙江省", + "originalText": "笔", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 13, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "笔", ], - "originalText": "浙江省", + "originalText": "笔", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "纸张", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "纸张", ], - "originalText": "浙江省", + "originalText": "纸张", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "纸张", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "纸张", ], - "originalText": "浙江省", + "originalText": "纸张", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "纸张", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "纸张", ], - "originalText": "浙江省", + "originalText": "纸张", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "纸张", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "纸张", ], - "originalText": "浙江省", + "originalText": "纸张", "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "2367236723611", + "11", ], - "originalText": "浙江省", + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 20, "multiLineActualTexts": Array [ - "绍兴市", + "7789778977897", + "7897789778977", + "89", ], - "originalText": "绍兴市", + "originalText": "7789778977897789778977897789", "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭...", + "actualText": "236723672361111", "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 46, + "actualTextWidth": 100, + "height": 20, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭...", + "2367236723611", + "11", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "3877", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 20, + "multiLineActualTexts": Array [ + "3877", + ], + "originalText": 3877, + "width": 103.8, + }, + Object { + "actualText": "4342", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "绍兴市", + "4342", ], - "originalText": "绍兴市", + "originalText": 4342, "width": 103.8, }, Object { - "actualText": "宁波市", + "actualText": "5343", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "宁波市", + "5343", ], - "originalText": "宁波市", + "originalText": 5343, "width": 103.8, }, Object { - "actualText": "舟山市", + "actualText": "632", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 21, + "height": 20, "multiLineActualTexts": Array [ - "舟山市", + "632", ], - "originalText": "舟山市", + "originalText": 632, "width": 103.8, }, Object { - "actualText": "杭州市", + "actualText": "7234", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "杭州市", + "7234", ], - "originalText": "杭州市", + "originalText": 7234, "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "834", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 21, + "height": 20, "multiLineActualTexts": Array [ - "绍兴市", + "834", ], - "originalText": "绍兴市", + "originalText": 834, "width": 103.8, }, Object { - "actualText": "宁波市", + "actualText": "945", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 21, + "height": 20, "multiLineActualTexts": Array [ - "宁波市", + "945", ], - "originalText": "宁波市", + "originalText": 945, "width": 103.8, }, Object { - "actualText": "舟山市", + "actualText": "1304", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "舟山市", + "1304", ], - "originalText": "舟山市", + "originalText": 1304, "width": 103.8, }, Object { - "actualText": "杭州市", + "actualText": "1145", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 26, + "height": 20, "multiLineActualTexts": Array [ - "杭州市", + "1145", ], - "originalText": "杭州市", + "originalText": 1145, "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "1432", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "绍兴市", + "1432", ], - "originalText": "绍兴市", + "originalText": 1432, "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "1343", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "1343", ], - "originalText": "家具", + "originalText": 1343, "width": 103.8, }, Object { - "actualText": "家具家具家具家具家具家具家...", - "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 46, + "actualText": "1354", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家...", + "1354", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "originalText": 1354, "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "1523", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "1523", ], - "originalText": "家具", + "originalText": 1523, "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "1634", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "1634", ], - "originalText": "家具", + "originalText": 1634, "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 1`] = ` +Array [ Object { - "actualText": "家具", - "actualTextHeight": 15, + "actualText": "序号", + "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 64, "multiLineActualTexts": Array [ - "家具", + "序号", ], - "originalText": "家具", - "width": 103.8, + "originalText": "序号", + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 2`] = ` +Array [ Object { - "actualText": "家具", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "家具", + "1", ], - "originalText": "家具", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "2", ], - "originalText": "家具", - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "家具", + "3", ], - "originalText": "家具", - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "家具", + "4", ], - "originalText": "家具", - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "办公用品", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "办公用品", + "5", ], - "originalText": "办公用品", - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "办公用品", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 49, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "6", ], - "originalText": "办公用品", - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "7", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 7, + "width": 80, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌...", - "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 46, + "actualText": "8", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌...", + "8", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "width": 103.8, + "originalText": 8, + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 3`] = ` +Array [ Object { - "actualText": "桌子", - "actualTextHeight": 15, + "actualText": "序号", + "actualTextHeight": 16, "actualTextWidth": 25, - "height": 46, + "height": 64, "multiLineActualTexts": Array [ - "桌子", + "序号", ], - "originalText": "桌子", - "width": 103.8, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "桌子", - "actualTextHeight": 15, + "actualText": "省份", + "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 64, "multiLineActualTexts": Array [ - "桌子", + "省份", ], - "originalText": "桌子", + "originalText": "省份", "width": 103.8, }, Object { - "actualText": "桌子", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualText": "城市城市城市城市城市城市城市城市城市城市...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, "multiLineActualTexts": Array [ - "桌子", + "城市城市城市城", + "市城市城市城市", + "城市城市城市...", ], - "originalText": "桌子", + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 64, "multiLineActualTexts": Array [ - "沙发", + "类别类别类别类", + "别类别类别类别", + "类别类别类别", ], - "originalText": "沙发", + "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, }, Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 64, "multiLineActualTexts": Array [ - "沙发", + "子类别", ], - "originalText": "沙发", + "originalText": "子类别", "width": 103.8, }, Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, "multiLineActualTexts": Array [ - "沙发", + "数量数量数量数", + "量数量数量数量", + "数量数量数量...", ], - "originalText": "沙发", + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 5`] = ` +Array [ Object { - "actualText": "沙发", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "沙发", + "1", ], - "originalText": "沙发", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "笔", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "笔", + "2", ], - "originalText": "笔", - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "笔", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "笔", + "3", ], - "originalText": "笔", - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "4", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "4", ], - "originalText": 236723672361111, - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "778977897789778977897789...", - "actualTextHeight": 30, - "actualTextWidth": 172, - "height": 46, + "actualText": "5", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "7789778977897", - "78977897789...", + "5", ], - "originalText": "7789778977897789778977897789", - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "6", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "6", ], - "originalText": 236723672361111, - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "3877", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "3877", + "7", ], - "originalText": 3877, - "width": 103.8, + "originalText": 7, + "width": 80, }, Object { - "actualText": "4342", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "4342", + "8", ], - "originalText": 4342, - "width": 103.8, + "originalText": 8, + "width": 80, }, Object { - "actualText": "5343", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "5343", + "浙江省", ], - "originalText": 5343, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "632", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 20, "multiLineActualTexts": Array [ - "632", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江...", ], - "originalText": 632, + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, }, Object { - "actualText": "7234", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "7234", + "浙江省", ], - "originalText": 7234, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "834", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "834", + "浙江省", ], - "originalText": 834, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "945", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "945", + "浙江省", ], - "originalText": 945, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "1304", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "1304", + "浙江省", ], - "originalText": 1304, + "originalText": "浙江省", "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 64, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "浙江省", ], - "originalText": "序号", - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "1", + "浙江省", ], - "originalText": 1, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "2", + "绍兴市", ], - "originalText": 2, - "width": 80, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "3", - "actualTextHeight": 15, - "actualTextWidth": 7, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", + "actualTextHeight": 45, + "actualTextWidth": 253, "height": 20, "multiLineActualTexts": Array [ - "3", + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州...", ], - "originalText": 3, - "width": 80, + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "4", + "绍兴市", ], - "originalText": 4, - "width": 80, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "5", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "5", + "宁波市", ], - "originalText": 5, - "width": 80, + "originalText": "宁波市", + "width": 103.8, }, Object { - "actualText": "6", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "6", + "舟山市", ], - "originalText": 6, - "width": 80, + "originalText": "舟山市", + "width": 103.8, }, Object { - "actualText": "7", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "7", + "杭州市", ], - "originalText": 7, - "width": 80, + "originalText": "杭州市", + "width": 103.8, }, Object { - "actualText": "8", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "8", + "绍兴市", ], - "originalText": 8, - "width": 80, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "9", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "9", + "宁波市", ], - "originalText": 9, - "width": 80, + "originalText": "宁波市", + "width": 103.8, }, Object { - "actualText": "10", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "10", + "家具", ], - "originalText": 10, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "11", - "actualTextHeight": 15, - "actualTextWidth": 13, + "actualText": "家具家具家具家具家具家具家具家具家具家具...", + "actualTextHeight": 45, + "actualTextWidth": 253, "height": 20, "multiLineActualTexts": Array [ - "11", + "家具家具家具家", + "具家具家具家具", + "家具家具家具...", ], - "originalText": 11, - "width": 80, + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 103.8, }, Object { - "actualText": "12", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "12", + "家具", ], - "originalText": 12, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "13", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "13", + "家具", ], - "originalText": 13, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "14", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "14", + "家具", ], - "originalText": 14, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "15", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "15", + "家具", ], - "originalText": 15, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "16", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "16", + "家具", ], - "originalText": 16, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "17", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "17", + "家具", ], - "originalText": 17, - "width": 80, + "originalText": "家具", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 3`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, + "actualText": "桌子", + "actualTextHeight": 15, "actualTextWidth": 25, - "height": 64, + "height": 46, "multiLineActualTexts": Array [ - "序号", + "桌子", ], - "originalText": "序号", - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "省份", - "actualTextHeight": 16, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 20, + "multiLineActualTexts": Array [ + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子...", + ], + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 103.8, + }, + Object { + "actualText": "桌子", + "actualTextHeight": 15, "actualTextWidth": 25, - "height": 64, + "height": 46, "multiLineActualTexts": Array [ - "省份", + "桌子", ], - "originalText": "省份", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市...", + "桌子", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 64, + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "桌子", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 64, + "actualText": "沙发", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "子类别", + "沙发", ], - "originalText": "子类别", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "沙发", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", + "沙发", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "originalText": "沙发", "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 4`] = `Array []`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 5`] = ` -Array [ Object { - "actualText": "1", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "1", + "沙发", ], - "originalText": 1, - "width": 80, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "2", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "2", + "2367236723611", + "11", ], - "originalText": 2, - "width": 80, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "3", - "actualTextHeight": 15, - "actualTextWidth": 7, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, "height": 20, "multiLineActualTexts": Array [ - "3", + "7789778977897", + "7897789778977", + "89", ], - "originalText": 3, - "width": 80, + "originalText": "7789778977897789778977897789", + "width": 103.8, }, Object { - "actualText": "4", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "4", + "2367236723611", + "11", ], - "originalText": 4, - "width": 80, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "5", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "5", + "3877", ], - "originalText": 5, - "width": 80, + "originalText": 3877, + "width": 103.8, }, Object { - "actualText": "6", + "actualText": "4342", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 27, + "height": 100, "multiLineActualTexts": Array [ - "6", + "4342", ], - "originalText": 6, - "width": 80, + "originalText": 4342, + "width": 103.8, }, Object { - "actualText": "7", + "actualText": "5343", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "7", + "5343", ], - "originalText": 7, - "width": 80, + "originalText": 5343, + "width": 103.8, }, Object { - "actualText": "8", + "actualText": "632", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "8", + "632", ], - "originalText": 8, - "width": 80, + "originalText": 632, + "width": 103.8, }, Object { - "actualText": "9", + "actualText": "7234", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "9", + "7234", ], - "originalText": 9, - "width": 80, + "originalText": 7234, + "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 1`] = ` +Array [ Object { - "actualText": "10", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, "multiLineActualTexts": Array [ - "10", + "序号", ], - "originalText": 10, + "originalText": "序号", "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 2`] = ` +Array [ Object { - "actualText": "11", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "11", + "1", ], - "originalText": 11, + "originalText": 1, "width": 80, }, Object { - "actualText": "12", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "12", + "2", ], - "originalText": 12, + "originalText": 2, "width": 80, }, Object { - "actualText": "13", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "13", + "3", ], - "originalText": 13, + "originalText": 3, "width": 80, }, Object { - "actualText": "14", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "14", + "4", ], - "originalText": 14, + "originalText": 4, "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 3`] = ` +Array [ Object { - "actualText": "15", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, "multiLineActualTexts": Array [ - "15", + "序号", ], - "originalText": 15, + "originalText": "序号", "width": 80, }, Object { - "actualText": "16", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, "multiLineActualTexts": Array [ - "16", + "省份", ], - "originalText": 16, - "width": 80, + "originalText": "省份", + "width": 103.8, }, Object { - "actualText": "17", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualText": "城市城市城市城市城市城市城市城市城市城市...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, "multiLineActualTexts": Array [ - "17", + "城市城市城市城", + "市城市城市城市", + "城市城市城市...", ], - "originalText": 17, - "width": 80, + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 64, "multiLineActualTexts": Array [ - "浙江省", + "类别类别类别类", + "别类别类别类别", + "类别类别类别", ], - "originalText": "浙江省", + "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 20, + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 64, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江...", + "子类别", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "originalText": "子类别", "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, "multiLineActualTexts": Array [ - "浙江省", + "数量数量数量数", + "量数量数量数量", + "数量数量数量...", ], - "originalText": "浙江省", + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 5`] = ` +Array [ Object { - "actualText": "浙江省", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "1", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "2", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "3", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "4", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "浙江省", ], @@ -22811,21 +24908,23 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江...", ], - "originalText": "浙江省", + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "浙江省", ], @@ -22836,7 +24935,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "浙江省", ], @@ -22844,643 +24943,705 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "绍兴市", ], - "originalText": "浙江省", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州...", ], - "originalText": "浙江省", + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "绍兴市", ], - "originalText": "浙江省", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "宁波市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "宁波市", ], - "originalText": "浙江省", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "家具", ], - "originalText": "浙江省", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "家具家具家具家具家具家具家具家具家具家具...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "家具家具家具家", + "具家具家具家具", + "家具家具家具...", ], - "originalText": "浙江省", + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "绍兴市", + "家具", ], - "originalText": "绍兴市", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 20, + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭州", - "市杭州市杭州...", + "家具", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "绍兴市", + "桌子", ], - "originalText": "绍兴市", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 100, "multiLineActualTexts": Array [ - "宁波市", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子...", ], - "originalText": "宁波市", + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, }, Object { - "actualText": "舟山市", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "舟山市", + "桌子", ], - "originalText": "舟山市", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "杭州市", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "杭州市", + "桌子", ], - "originalText": "杭州市", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 100, "multiLineActualTexts": Array [ - "绍兴市", + "2367236723611", + "11", ], - "originalText": "绍兴市", + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 100, "multiLineActualTexts": Array [ - "宁波市", + "7789778977897", + "7897789778977", + "89", ], - "originalText": "宁波市", + "originalText": "7789778977897789778977897789", "width": 103.8, }, Object { - "actualText": "舟山市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 100, "multiLineActualTexts": Array [ - "舟山市", + "2367236723611", + "11", ], - "originalText": "舟山市", + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "杭州市", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 27, + "height": 100, "multiLineActualTexts": Array [ - "杭州市", + "3877", ], - "originalText": "杭州市", + "originalText": 3877, "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 1`] = ` +Array [ Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, "multiLineActualTexts": Array [ - "绍兴市", + "序号", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": "序号", + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 2`] = ` +Array [ Object { - "actualText": "宁波市", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "宁波市", + "1", ], - "originalText": "宁波市", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "舟山市", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "舟山市", + "2", ], - "originalText": "舟山市", - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "杭州市", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "杭州市", + "3", ], - "originalText": "杭州市", - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "绍兴市", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "4", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "宁波市", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "5", ], - "originalText": "宁波市", - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "舟山市", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "舟山市", + "6", ], - "originalText": "舟山市", - "width": 103.8, + "originalText": 6, + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 3`] = ` +Array [ Object { - "actualText": "家具", - "actualTextHeight": 15, + "actualText": "序号", + "actualTextHeight": 16, "actualTextWidth": 25, - "height": 20, + "height": 64, "multiLineActualTexts": Array [ - "家具", + "序号", ], - "originalText": "家具", + "originalText": "序号", + "width": 80, + }, + Object { + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, + "multiLineActualTexts": Array [ + "省份", + ], + "originalText": "省份", "width": 103.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具...", - "actualTextHeight": 45, + "actualText": "城市城市城市城市城市城市城市城市城市城市...", + "actualTextHeight": 48, "actualTextWidth": 253, - "height": 20, + "height": 64, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具...", + "城市城市城市城", + "市城市城市城市", + "城市城市城市...", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 64, "multiLineActualTexts": Array [ - "家具", + "类别类别类别类", + "别类别类别类别", + "类别类别类别", ], - "originalText": "家具", + "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, }, Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 64, "multiLineActualTexts": Array [ - "家具", + "子类别", ], - "originalText": "家具", + "originalText": "子类别", "width": 103.8, }, Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, "multiLineActualTexts": Array [ - "家具", + "数量数量数量数", + "量数量数量数量", + "数量数量数量...", ], - "originalText": "家具", + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 5`] = ` +Array [ Object { - "actualText": "家具", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "家具", + "1", ], - "originalText": "家具", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "家具", + "2", ], - "originalText": "家具", - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "家具", + "3", ], - "originalText": "家具", - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "4", ], - "originalText": "家具", - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "办公用品", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "5", ], - "originalText": "办公用品", - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "办公用品", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "6", ], - "originalText": "办公用品", - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "办公用品", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "办公用品", + "浙江省", ], - "originalText": "办公用品", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 100, "multiLineActualTexts": Array [ - "办公用品", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江...", ], - "originalText": "办公用品", + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "办公用品", + "浙江省", ], - "originalText": "办公用品", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "浙江省", ], - "originalText": "办公用品", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "浙江省", ], - "originalText": "办公用品", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "浙江省", ], - "originalText": "办公用品", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "桌子", + "绍兴市", ], - "originalText": "桌子", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", "actualTextHeight": 45, "actualTextWidth": 253, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子...", + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州...", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "桌子", + "绍兴市", ], - "originalText": "桌子", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "宁波市", ], - "originalText": "桌子", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "舟山市", ], - "originalText": "桌子", + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "沙发", + "杭州市", ], - "originalText": "沙发", + "originalText": "杭州市", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ - "沙发", + "家具", ], - "originalText": "沙发", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "家具家具家具家具家具家具家具家具家具家具...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 100, + "multiLineActualTexts": Array [ + "家具家具家具家", + "具家具家具家具", + "家具家具家具...", + ], + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 103.8, + }, + Object { + "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ - "沙发", + "家具", ], - "originalText": "沙发", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ - "沙发", + "家具", ], - "originalText": "沙发", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "笔", + "家具", ], - "originalText": "笔", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "笔", + "家具", ], - "originalText": "笔", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "笔", + "桌子", ], - "originalText": "笔", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 100, "multiLineActualTexts": Array [ - "笔", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子...", ], - "originalText": "笔", + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, }, Object { - "actualText": "纸张", + "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ - "纸张", + "桌子", ], - "originalText": "纸张", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "纸张", + "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ - "纸张", + "桌子", ], - "originalText": "纸张", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "纸张", + "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ - "纸张", + "桌子", ], - "originalText": "纸张", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "纸张", + "actualText": "沙发", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ - "纸张", + "沙发", ], - "originalText": "纸张", + "originalText": "沙发", "width": 103.8, }, Object { "actualText": "236723672361111", "actualTextHeight": 30, "actualTextWidth": 100, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "2367236723611", "11", @@ -23492,7 +25653,7 @@ Array [ "actualText": "7789778977897789778977897789", "actualTextHeight": 45, "actualTextWidth": 189, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "7789778977897", "7897789778977", @@ -23505,7 +25666,7 @@ Array [ "actualText": "236723672361111", "actualTextHeight": 30, "actualTextWidth": 100, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "2367236723611", "11", @@ -23517,7 +25678,7 @@ Array [ "actualText": "3877", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "3877", ], @@ -23528,7 +25689,7 @@ Array [ "actualText": "4342", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "4342", ], @@ -23539,144 +25700,23 @@ Array [ "actualText": "5343", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "5343", ], "originalText": 5343, "width": 103.8, }, - Object { - "actualText": "632", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 20, - "multiLineActualTexts": Array [ - "632", - ], - "originalText": 632, - "width": 103.8, - }, - Object { - "actualText": "7234", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, - "multiLineActualTexts": Array [ - "7234", - ], - "originalText": 7234, - "width": 103.8, - }, - Object { - "actualText": "834", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 20, - "multiLineActualTexts": Array [ - "834", - ], - "originalText": 834, - "width": 103.8, - }, - Object { - "actualText": "945", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 20, - "multiLineActualTexts": Array [ - "945", - ], - "originalText": 945, - "width": 103.8, - }, - Object { - "actualText": "1304", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, - "multiLineActualTexts": Array [ - "1304", - ], - "originalText": 1304, - "width": 103.8, - }, - Object { - "actualText": "1145", - "actualTextHeight": 15, - "actualTextWidth": 26, - "height": 20, - "multiLineActualTexts": Array [ - "1145", - ], - "originalText": 1145, - "width": 103.8, - }, - Object { - "actualText": "1432", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, - "multiLineActualTexts": Array [ - "1432", - ], - "originalText": 1432, - "width": 103.8, - }, - Object { - "actualText": "1343", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, - "multiLineActualTexts": Array [ - "1343", - ], - "originalText": 1343, - "width": 103.8, - }, - Object { - "actualText": "1354", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, - "multiLineActualTexts": Array [ - "1354", - ], - "originalText": 1354, - "width": 103.8, - }, - Object { - "actualText": "1523", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, - "multiLineActualTexts": Array [ - "1523", - ], - "originalText": 1523, - "width": 103.8, - }, - Object { - "actualText": "1634", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, - "multiLineActualTexts": Array [ - "1634", - ], - "originalText": 1634, - "width": 103.8, - }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "序号", ], @@ -23686,13 +25726,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "1", ], @@ -23703,7 +25743,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "2", ], @@ -23714,7 +25754,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "3", ], @@ -23736,7 +25776,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "5", ], @@ -23744,48 +25784,103 @@ Array [ "width": 80, }, Object { - "actualText": "6", + "actualText": "6", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "6", + ], + "originalText": 6, + "width": 80, + }, + Object { + "actualText": "7", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "7", + ], + "originalText": 7, + "width": 80, + }, + Object { + "actualText": "8", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "8", + ], + "originalText": 8, + "width": 80, + }, + Object { + "actualText": "9", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "9", + ], + "originalText": 9, + "width": 80, + }, + Object { + "actualText": "10", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, + "multiLineActualTexts": Array [ + "10", + ], + "originalText": 10, + "width": 80, + }, + Object { + "actualText": "11", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 13, "height": 30, "multiLineActualTexts": Array [ - "6", + "11", ], - "originalText": 6, + "originalText": 11, "width": 80, }, Object { - "actualText": "7", + "actualText": "12", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "7", + "12", ], - "originalText": 7, + "originalText": 12, "width": 80, }, Object { - "actualText": "8", + "actualText": "13", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "8", + "13", ], - "originalText": 8, + "originalText": 13, "width": 80, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "序号", ], @@ -23796,7 +25891,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "省份", ], @@ -23804,27 +25899,23 @@ Array [ "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 16, + "actualTextWidth": 289, + "height": 30, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市...", + "城市城市城市城市城市城市城市城市城市城市城市城市", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 64, + "actualTextHeight": 16, + "actualTextWidth": 241, + "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "类别类别类别类别类别类别类别类别类别类别", ], "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, @@ -23833,7 +25924,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "子类别", ], @@ -23841,14 +25932,12 @@ Array [ "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 16, + "actualTextWidth": 265, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", + "数量数量数量数量数量数量数量数量数量数量数量", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, @@ -23856,15 +25945,15 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "1", ], @@ -23875,7 +25964,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "2", ], @@ -23886,7 +25975,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "3", ], @@ -23908,7 +25997,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "5", ], @@ -23948,11 +26037,66 @@ Array [ "originalText": 8, "width": 80, }, + Object { + "actualText": "9", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "9", + ], + "originalText": 9, + "width": 80, + }, + Object { + "actualText": "10", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, + "multiLineActualTexts": Array [ + "10", + ], + "originalText": 10, + "width": 80, + }, + Object { + "actualText": "11", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, + "multiLineActualTexts": Array [ + "11", + ], + "originalText": 11, + "width": 80, + }, + Object { + "actualText": "12", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, + "multiLineActualTexts": Array [ + "12", + ], + "originalText": 12, + "width": 80, + }, + Object { + "actualText": "13", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, + "multiLineActualTexts": Array [ + "13", + ], + "originalText": 13, + "width": 80, + }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -23960,14 +26104,12 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 20, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "actualTextHeight": 15, + "actualTextWidth": 361, + "height": 30, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江...", + "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", ], "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, @@ -23976,7 +26118,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -23998,7 +26140,62 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -24042,7 +26239,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "绍兴市", ], @@ -24050,23 +26247,65 @@ Array [ "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 20, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "actualTextHeight": 15, + "actualTextWidth": 361, + "height": 30, + "multiLineActualTexts": Array [ + "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + ], + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 103.8, + }, + Object { + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "绍兴市", + ], + "originalText": "绍兴市", + "width": 103.8, + }, + Object { + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "宁波市", + ], + "originalText": "宁波市", + "width": 103.8, + }, + Object { + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "舟山市", + ], + "originalText": "舟山市", + "width": 103.8, + }, + Object { + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭州", - "市杭州市杭州...", + "杭州市", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "originalText": "杭州市", "width": 103.8, }, Object { "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "绍兴市", ], @@ -24088,7 +26327,7 @@ Array [ "actualText": "舟山市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "舟山市", ], @@ -24128,11 +26367,22 @@ Array [ "originalText": "宁波市", "width": 103.8, }, + Object { + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "舟山市", + ], + "originalText": "舟山市", + "width": 103.8, + }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "家具", ], @@ -24140,14 +26390,12 @@ Array [ "width": 103.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 20, + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualTextHeight": 15, + "actualTextWidth": 337, + "height": 30, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具...", + "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", ], "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103.8, @@ -24156,7 +26404,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "家具", ], @@ -24178,7 +26426,18 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 100, + "height": 30, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ "家具", ], @@ -24218,11 +26477,55 @@ Array [ "originalText": "家具", "width": 103.8, }, + Object { + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 30, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 103.8, + }, + Object { + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 30, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 103.8, + }, + Object { + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 30, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 103.8, + }, + Object { + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 30, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 103.8, + }, Object { "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "桌子", ], @@ -24230,14 +26533,12 @@ Array [ "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 20, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "actualTextHeight": 15, + "actualTextWidth": 361, + "height": 30, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子...", + "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", ], "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, @@ -24246,7 +26547,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "桌子", ], @@ -24268,7 +26569,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "桌子", ], @@ -24308,39 +26609,90 @@ Array [ "originalText": "沙发", "width": 103.8, }, + Object { + "actualText": "沙发", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "沙发", + ], + "originalText": "沙发", + "width": 103.8, + }, + Object { + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, + "multiLineActualTexts": Array [ + "笔", + ], + "originalText": "笔", + "width": 103.8, + }, + Object { + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, + "multiLineActualTexts": Array [ + "笔", + ], + "originalText": "笔", + "width": 103.8, + }, + Object { + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, + "multiLineActualTexts": Array [ + "笔", + ], + "originalText": "笔", + "width": 103.8, + }, + Object { + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, + "multiLineActualTexts": Array [ + "笔", + ], + "originalText": "笔", + "width": 103.8, + }, Object { "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualTextHeight": 15, + "actualTextWidth": 98, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "236723672361111", ], "originalText": 236723672361111, "width": 103.8, }, Object { "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 20, + "actualTextHeight": 15, + "actualTextWidth": 187, + "height": 30, "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", + "7789778977897789778977897789", ], "originalText": "7789778977897789778977897789", "width": 103.8, }, Object { "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualTextHeight": 15, + "actualTextWidth": 98, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "236723672361111", ], "originalText": 236723672361111, "width": 103.8, @@ -24360,7 +26712,7 @@ Array [ "actualText": "4342", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "4342", ], @@ -24381,35 +26733,90 @@ Array [ Object { "actualText": "632", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "632", + ], + "originalText": 632, + "width": 103.8, + }, + Object { + "actualText": "7234", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "7234", + ], + "originalText": 7234, + "width": 103.8, + }, + Object { + "actualText": "834", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "834", + ], + "originalText": 834, + "width": 103.8, + }, + Object { + "actualText": "945", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "945", + ], + "originalText": 945, + "width": 103.8, + }, + Object { + "actualText": "1304", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1304", + ], + "originalText": 1304, + "width": 103.8, + }, + Object { + "actualText": "1145", + "actualTextHeight": 15, + "actualTextWidth": 26, "height": 30, "multiLineActualTexts": Array [ - "632", + "1145", ], - "originalText": 632, + "originalText": 1145, "width": 103.8, }, Object { - "actualText": "7234", + "actualText": "1432", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "7234", + "1432", ], - "originalText": 7234, + "originalText": 1432, "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by Infinity maxLines if actual text contains "\\n" 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 80, "multiLineActualTexts": Array [ "序号", ], @@ -24419,13 +26826,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by Infinity maxLines if actual text contains "\\n" 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 61, "multiLineActualTexts": Array [ "1", ], @@ -24436,7 +26843,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "2", ], @@ -24447,7 +26854,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 91, "multiLineActualTexts": Array [ "3", ], @@ -24458,23 +26865,56 @@ Array [ "actualText": "4", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "4", ], "originalText": 4, "width": 80, }, + Object { + "actualText": "5", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "5", + ], + "originalText": 5, + "width": 80, + }, + Object { + "actualText": "6", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "6", + ], + "originalText": 6, + "width": 80, + }, + Object { + "actualText": "7", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "7", + ], + "originalText": 7, + "width": 80, + }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by Infinity maxLines if actual text contains "\\n" 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 80, "multiLineActualTexts": Array [ "序号", ], @@ -24485,7 +26925,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 80, "multiLineActualTexts": Array [ "省份", ], @@ -24493,14 +26933,15 @@ Array [ "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 64, + "actualTextWidth": 292, + "height": 80, "multiLineActualTexts": Array [ "城市城市城市城", "市城市城市城市", - "城市城市城市...", + "城市城市城市城", + "市城市", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, @@ -24509,7 +26950,7 @@ Array [ "actualText": "类别类别类别类别类别类别类别类别类别类别", "actualTextHeight": 48, "actualTextWidth": 243, - "height": 64, + "height": 80, "multiLineActualTexts": Array [ "类别类别类别类", "别类别类别类别", @@ -24522,7 +26963,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 64, + "height": 80, "multiLineActualTexts": Array [ "子类别", ], @@ -24530,14 +26971,15 @@ Array [ "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 64, + "actualTextWidth": 268, + "height": 80, "multiLineActualTexts": Array [ "数量数量数量数", "量数量数量数量", - "数量数量数量...", + "数量数量数量数", + "量", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, @@ -24545,15 +26987,15 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by Infinity maxLines if actual text contains "\\n" 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by Infinity maxLines if actual text contains "\\n" 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 61, "multiLineActualTexts": Array [ "1", ], @@ -24564,7 +27006,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "2", ], @@ -24575,7 +27017,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 91, "multiLineActualTexts": Array [ "3", ], @@ -24586,18 +27028,64 @@ Array [ "actualText": "4", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "4", ], "originalText": 4, "width": 80, }, + Object { + "actualText": "5", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "5", + ], + "originalText": 5, + "width": 80, + }, + Object { + "actualText": "6", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "6", + ], + "originalText": 6, + "width": 80, + }, + Object { + "actualText": "7", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "7", + ], + "originalText": 7, + "width": 80, + }, + Object { + "actualText": "浙江浙江", + "actualTextHeight": 30, + "actualTextWidth": 50, + "height": 61, + "multiLineActualTexts": Array [ + "浙江", + "浙江", + ], + "originalText": "浙江 +浙江", + "width": 103.8, + }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], @@ -24605,14 +27093,16 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 100, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 91, "multiLineActualTexts": Array [ "浙江省浙江省浙", "江省浙江省浙江", - "省浙江省浙江...", + "省浙江省浙江省", + "浙江省浙江省浙", + "江省", ], "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, @@ -24621,7 +27111,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], @@ -24632,18 +27122,55 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], "originalText": "浙江省", "width": 103.8, }, + Object { + "actualText": "杭州杭州杭州", + "actualTextHeight": 45, + "actualTextWidth": 75, + "height": 61, + "multiLineActualTexts": Array [ + "杭州", + "杭州", + "杭州", + ], + "originalText": "杭州 +杭州 +杭州", + "width": 103.8, + }, Object { "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "绍兴市", ], @@ -24651,45 +27178,107 @@ Array [ "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 100, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 91, "multiLineActualTexts": Array [ "杭州市杭州市杭", "州市杭州市杭州", - "市杭州市杭州...", + "市杭州市杭州市", + "杭州市杭州市杭", + "州市", + ], + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 103.8, + }, + Object { + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 46, + "multiLineActualTexts": Array [ + "绍兴市", + ], + "originalText": "绍兴市", + "width": 103.8, + }, + Object { + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "宁波市", + ], + "originalText": "宁波市", + "width": 103.8, + }, + Object { + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "舟山市", + ], + "originalText": "舟山市", + "width": 103.8, + }, + Object { + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "杭州市", + ], + "originalText": "杭州市", + "width": 103.8, + }, + Object { + "actualText": "纸张纸张", + "actualTextHeight": 30, + "actualTextWidth": 50, + "height": 61, + "multiLineActualTexts": Array [ + "纸张", + "纸张", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "originalText": "纸张 +纸张", "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "绍兴市", + "家具", ], - "originalText": "绍兴市", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualTextHeight": 60, + "actualTextWidth": 340, + "height": 91, "multiLineActualTexts": Array [ - "宁波市", + "家具家具家具家", + "具家具家具家具", + "家具家具家具家", + "具家具家具家具", ], - "originalText": "宁波市", + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103.8, }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "家具", ], @@ -24697,23 +27286,21 @@ Array [ "width": 103.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 100, + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具...", + "家具", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "originalText": "家具", "width": 103.8, }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "家具", ], @@ -24724,18 +27311,29 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "家具", ], "originalText": "家具", "width": 103.8, }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 61, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 103.8, + }, Object { "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "桌子", ], @@ -24743,14 +27341,16 @@ Array [ "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 100, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 91, "multiLineActualTexts": Array [ "桌子桌子桌子桌", "子桌子桌子桌子", - "桌子桌子桌子...", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子", ], "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, @@ -24759,7 +27359,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "桌子", ], @@ -24770,18 +27370,51 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 100, + "height": 30, + "multiLineActualTexts": Array [ + "桌子", + ], + "originalText": "桌子", + "width": 103.8, + }, + Object { + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ "桌子", ], "originalText": "桌子", "width": 103.8, }, + Object { + "actualText": "沙发", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "沙发", + ], + "originalText": "沙发", + "width": 103.8, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 61, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 103.8, + }, Object { "actualText": "236723672361111", "actualTextHeight": 30, "actualTextWidth": 100, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "2367236723611", "11", @@ -24793,7 +27426,7 @@ Array [ "actualText": "7789778977897789778977897789", "actualTextHeight": 45, "actualTextWidth": 189, - "height": 100, + "height": 91, "multiLineActualTexts": Array [ "7789778977897", "7897789778977", @@ -24806,7 +27439,7 @@ Array [ "actualText": "236723672361111", "actualTextHeight": 30, "actualTextWidth": 100, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "2367236723611", "11", @@ -24818,23 +27451,45 @@ Array [ "actualText": "3877", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "3877", ], "originalText": 3877, "width": 103.8, }, + Object { + "actualText": "4342", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "4342", + ], + "originalText": 4342, + "width": 103.8, + }, + Object { + "actualText": "5343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "5343", + ], + "originalText": 5343, + "width": 103.8, + }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 80, "multiLineActualTexts": Array [ "序号", ], @@ -24844,13 +27499,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "1", ], @@ -24861,7 +27516,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 91, "multiLineActualTexts": Array [ "2", ], @@ -24912,16 +27567,38 @@ Array [ "originalText": 6, "width": 80, }, + Object { + "actualText": "7", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "7", + ], + "originalText": 7, + "width": 80, + }, + Object { + "actualText": "8", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "8", + ], + "originalText": 8, + "width": 80, + }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 80, "multiLineActualTexts": Array [ "序号", ], @@ -24932,7 +27609,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 80, "multiLineActualTexts": Array [ "省份", ], @@ -24940,14 +27617,15 @@ Array [ "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 64, + "actualTextWidth": 292, + "height": 80, "multiLineActualTexts": Array [ "城市城市城市城", "市城市城市城市", - "城市城市城市...", + "城市城市城市城", + "市城市", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, @@ -24956,7 +27634,7 @@ Array [ "actualText": "类别类别类别类别类别类别类别类别类别类别", "actualTextHeight": 48, "actualTextWidth": 243, - "height": 64, + "height": 80, "multiLineActualTexts": Array [ "类别类别类别类", "别类别类别类别", @@ -24969,7 +27647,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 64, + "height": 80, "multiLineActualTexts": Array [ "子类别", ], @@ -24977,14 +27655,15 @@ Array [ "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 64, + "actualTextWidth": 268, + "height": 80, "multiLineActualTexts": Array [ "数量数量数量数", "量数量数量数量", - "数量数量数量...", + "数量数量数量数", + "量", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, @@ -24992,15 +27671,15 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "1", ], @@ -25011,7 +27690,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 91, "multiLineActualTexts": Array [ "2", ], @@ -25062,11 +27741,33 @@ Array [ "originalText": 6, "width": 80, }, + Object { + "actualText": "7", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "7", + ], + "originalText": 7, + "width": 80, + }, + Object { + "actualText": "8", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "8", + ], + "originalText": 8, + "width": 80, + }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], @@ -25074,23 +27775,47 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 100, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 91, + "multiLineActualTexts": Array [ + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江省", + "浙江省浙江省浙", + "江省", + ], + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 46, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江...", + "浙江省", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "originalText": "浙江省", "width": 103.8, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -25134,7 +27859,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "绍兴市", ], @@ -25142,14 +27867,16 @@ Array [ "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 100, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 91, "multiLineActualTexts": Array [ "杭州市杭州市杭", "州市杭州市杭州", - "市杭州市杭州...", + "市杭州市杭州市", + "杭州市杭州市杭", + "州市", ], "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, @@ -25198,11 +27925,33 @@ Array [ "originalText": "杭州市", "width": 103.8, }, + Object { + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "绍兴市", + ], + "originalText": "绍兴市", + "width": 103.8, + }, + Object { + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "宁波市", + ], + "originalText": "宁波市", + "width": 103.8, + }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "家具", ], @@ -25210,14 +27959,15 @@ Array [ "width": 103.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 100, + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualTextHeight": 60, + "actualTextWidth": 340, + "height": 91, "multiLineActualTexts": Array [ "家具家具家具家", "具家具家具家具", - "家具家具家具...", + "家具家具家具家", + "具家具家具家具", ], "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103.8, @@ -25267,27 +28017,25 @@ Array [ "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "家具", ], - "originalText": "桌子", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 100, + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子...", + "家具", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "originalText": "家具", "width": 103.8, }, Object { @@ -25302,21 +28050,25 @@ Array [ "width": 103.8, }, Object { - "actualText": "桌子", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 91, "multiLineActualTexts": Array [ + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子桌", + "子桌子桌子桌子", "桌子", ], - "originalText": "桌子", + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, }, Object { "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "桌子", ], @@ -25324,333 +28076,178 @@ Array [ "width": 103.8, }, Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "沙发", - ], - "originalText": "沙发", - "width": 103.8, - }, - Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 100, - "multiLineActualTexts": Array [ - "2367236723611", - "11", - ], - "originalText": 236723672361111, - "width": 103.8, - }, - Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 100, - "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", - ], - "originalText": "7789778977897789778977897789", - "width": 103.8, - }, - Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, - "multiLineActualTexts": Array [ - "2367236723611", - "11", - ], - "originalText": 236723672361111, - "width": 103.8, - }, - Object { - "actualText": "3877", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "3877", - ], - "originalText": 3877, - "width": 103.8, - }, - Object { - "actualText": "4342", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "4342", - ], - "originalText": 4342, - "width": 103.8, - }, - Object { - "actualText": "5343", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "5343", - ], - "originalText": 5343, - "width": 103.8, - }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 1`] = ` -Array [ - Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "序号", - ], - "originalText": "序号", - "width": 80, - }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 2`] = ` -Array [ - Object { - "actualText": "1", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "1", - ], - "originalText": 1, - "width": 80, - }, - Object { - "actualText": "2", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "2", - ], - "originalText": 2, - "width": 80, - }, - Object { - "actualText": "3", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "3", - ], - "originalText": 3, - "width": 80, - }, - Object { - "actualText": "4", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "4", - ], - "originalText": 4, - "width": 80, - }, - Object { - "actualText": "5", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "5", - ], - "originalText": 5, - "width": 80, - }, - Object { - "actualText": "6", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "6", + "桌子", ], - "originalText": 6, - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "7", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "7", + "桌子", ], - "originalText": 7, - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "8", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "8", + "沙发", ], - "originalText": 8, - "width": 80, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "9", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "9", + "沙发", ], - "originalText": 9, - "width": 80, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "10", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "10", + "沙发", ], - "originalText": 10, - "width": 80, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "11", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ + "2367236723611", "11", ], - "originalText": 11, - "width": 80, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "12", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 91, "multiLineActualTexts": Array [ - "12", + "7789778977897", + "7897789778977", + "89", ], - "originalText": 12, - "width": 80, + "originalText": "7789778977897789778977897789", + "width": 103.8, }, Object { - "actualText": "13", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "13", + "2367236723611", + "11", ], - "originalText": 13, - "width": 80, + "originalText": 236723672361111, + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 3`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, + "actualText": "3877", + "actualTextHeight": 15, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "序号", + "3877", ], - "originalText": "序号", - "width": 80, + "originalText": 3877, + "width": 103.8, }, Object { - "actualText": "省份", - "actualTextHeight": 16, - "actualTextWidth": 25, + "actualText": "4342", + "actualTextHeight": 15, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "省份", + "4342", ], - "originalText": "省份", + "originalText": 4342, "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "actualTextHeight": 16, - "actualTextWidth": 289, + "actualText": "5343", + "actualTextHeight": 15, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "城市城市城市城市城市城市城市城市城市城市城市城市", + "5343", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "originalText": 5343, "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 16, - "actualTextWidth": 241, + "actualText": "632", + "actualTextHeight": 15, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类别类别类别类别类别类别类别", + "632", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", + "originalText": 632, "width": 103.8, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, + "actualText": "7234", + "actualTextHeight": 15, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "子类别", + "7234", ], - "originalText": "子类别", + "originalText": 7234, "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 1`] = ` +Array [ Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualText": "序号", "actualTextHeight": 16, - "actualTextWidth": 265, - "height": 30, + "actualTextWidth": 25, + "height": 80, "multiLineActualTexts": Array [ - "数量数量数量数量数量数量数量数量数量数量数量", + "序号", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103.8, + "originalText": "序号", + "width": 80, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 4`] = `Array []`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 61, "multiLineActualTexts": Array [ "1", ], @@ -25661,7 +28258,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "2", ], @@ -25672,7 +28269,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 91, "multiLineActualTexts": Array [ "3", ], @@ -25683,7 +28280,7 @@ Array [ "actualText": "4", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "4", ], @@ -25723,143 +28320,187 @@ Array [ "originalText": 7, "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 3`] = ` +Array [ Object { - "actualText": "8", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, "multiLineActualTexts": Array [ - "8", + "序号", ], - "originalText": 8, + "originalText": "序号", "width": 80, }, Object { - "actualText": "9", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, "multiLineActualTexts": Array [ - "9", + "省份", ], - "originalText": 9, - "width": 80, + "originalText": "省份", + "width": 103.8, }, Object { - "actualText": "10", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 64, + "actualTextWidth": 292, + "height": 80, "multiLineActualTexts": Array [ - "10", + "城市城市城市城", + "市城市城市城市", + "城市城市城市城", + "市城市", ], - "originalText": 10, - "width": 80, + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 103.8, }, Object { - "actualText": "11", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 80, "multiLineActualTexts": Array [ - "11", + "类别类别类别类", + "别类别类别类别", + "类别类别类别", + ], + "originalText": "类别类别类别类别类别类别类别类别类别类别", + "width": 103.8, + }, + Object { + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 80, + "multiLineActualTexts": Array [ + "子类别", + ], + "originalText": "子类别", + "width": 103.8, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 64, + "actualTextWidth": 268, + "height": 80, + "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", ], - "originalText": 11, - "width": 80, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 5`] = ` +Array [ Object { - "actualText": "12", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, + "actualTextWidth": 7, + "height": 61, "multiLineActualTexts": Array [ - "12", + "1", ], - "originalText": 12, + "originalText": 1, "width": 80, }, Object { - "actualText": "13", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "13", + "2", ], - "originalText": 13, + "originalText": 2, "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 91, "multiLineActualTexts": Array [ - "浙江省", + "3", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 361, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "4", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "5", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "6", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "7", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 7, + "width": 80, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "浙江浙江", + "actualTextHeight": 30, + "actualTextWidth": 50, + "height": 61, "multiLineActualTexts": Array [ - "浙江省", + "浙江", + "浙江", ], - "originalText": "浙江省", + "originalText": "浙江 +浙江", "width": 103.8, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], @@ -25867,21 +28508,25 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 91, "multiLineActualTexts": Array [ - "浙江省", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江省", + "浙江省浙江省浙", + "江省", ], - "originalText": "浙江省", + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], @@ -25922,21 +28567,25 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "杭州杭州杭州", + "actualTextHeight": 45, + "actualTextWidth": 75, + "height": 61, "multiLineActualTexts": Array [ - "浙江省", + "杭州", + "杭州", + "杭州", ], - "originalText": "浙江省", + "originalText": "杭州 +杭州 +杭州", "width": 103.8, }, Object { "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "绍兴市", ], @@ -25945,11 +28594,15 @@ Array [ }, Object { "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "actualTextHeight": 15, - "actualTextWidth": 361, - "height": 30, + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 91, "multiLineActualTexts": Array [ - "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州市", + "杭州市杭州市杭", + "州市", ], "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, @@ -25958,51 +28611,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "绍兴市", - ], - "originalText": "绍兴市", - "width": 103.8, - }, - Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "宁波市", - ], - "originalText": "宁波市", - "width": 103.8, - }, - Object { - "actualText": "舟山市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "舟山市", - ], - "originalText": "舟山市", - "width": 103.8, - }, - Object { - "actualText": "杭州市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "杭州市", - ], - "originalText": "杭州市", - "width": 103.8, - }, - Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "绍兴市", ], @@ -26043,76 +28652,23 @@ Array [ "width": 103.8, }, Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "绍兴市", - ], - "originalText": "绍兴市", - "width": 103.8, - }, - Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "宁波市", - ], - "originalText": "宁波市", - "width": 103.8, - }, - Object { - "actualText": "舟山市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "舟山市", - ], - "originalText": "舟山市", - "width": 103.8, - }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, - Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "actualTextHeight": 15, - "actualTextWidth": 337, - "height": 30, - "multiLineActualTexts": Array [ - "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 103.8, - }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualText": "纸张纸张", + "actualTextHeight": 30, + "actualTextWidth": 50, + "height": 61, "multiLineActualTexts": Array [ - "家具", + "纸张", + "纸张", ], - "originalText": "家具", + "originalText": "纸张 +纸张", "width": 103.8, }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "家具", ], @@ -26120,21 +28676,24 @@ Array [ "width": 103.8, }, Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualTextHeight": 60, + "actualTextWidth": 340, + "height": 91, "multiLineActualTexts": Array [ - "家具", + "家具家具家具家", + "具家具家具家具", + "家具家具家具家", + "具家具家具家具", ], - "originalText": "家具", + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103.8, }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "家具", ], @@ -26175,54 +28734,21 @@ Array [ "width": 103.8, }, Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, - "multiLineActualTexts": Array [ - "办公用品", - ], - "originalText": "办公用品", - "width": 103.8, - }, - Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, - "multiLineActualTexts": Array [ - "办公用品", - ], - "originalText": "办公用品", - "width": 103.8, - }, - Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, - "multiLineActualTexts": Array [ - "办公用品", - ], - "originalText": "办公用品", - "width": 103.8, - }, - Object { - "actualText": "办公用品", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, + "actualTextWidth": 4, + "height": 61, "multiLineActualTexts": Array [ - "办公用品", + "-", ], - "originalText": "办公用品", + "originalText": "-", "width": 103.8, }, Object { "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "桌子", ], @@ -26231,11 +28757,15 @@ Array [ }, Object { "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "actualTextHeight": 15, - "actualTextWidth": 361, - "height": 30, + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 91, "multiLineActualTexts": Array [ - "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子", ], "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, @@ -26244,7 +28774,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "桌子", ], @@ -26285,111 +28815,49 @@ Array [ "width": 103.8, }, Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "沙发", - ], - "originalText": "沙发", - "width": 103.8, - }, - Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "沙发", - ], - "originalText": "沙发", - "width": 103.8, - }, - Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "沙发", - ], - "originalText": "沙发", - "width": 103.8, - }, - Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "笔", - ], - "originalText": "笔", - "width": 103.8, - }, - Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "笔", - ], - "originalText": "笔", - "width": 103.8, - }, - Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "笔", - ], - "originalText": "笔", - "width": 103.8, - }, - Object { - "actualText": "笔", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualTextWidth": 4, + "height": 61, "multiLineActualTexts": Array [ - "笔", + "-", ], - "originalText": "笔", + "originalText": "-", "width": 103.8, }, Object { "actualText": "236723672361111", - "actualTextHeight": 15, - "actualTextWidth": 98, - "height": 30, + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "236723672361111", + "2367236723611", + "11", ], "originalText": 236723672361111, "width": 103.8, }, Object { "actualText": "7789778977897789778977897789", - "actualTextHeight": 15, - "actualTextWidth": 187, - "height": 30, + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 91, "multiLineActualTexts": Array [ - "7789778977897789778977897789", + "7789778977897", + "7897789778977", + "89", ], "originalText": "7789778977897789778977897789", "width": 103.8, }, Object { "actualText": "236723672361111", - "actualTextHeight": 15, - "actualTextWidth": 98, - "height": 30, + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "236723672361111", + "2367236723611", + "11", ], "originalText": 236723672361111, "width": 103.8, @@ -26427,83 +28895,6 @@ Array [ "originalText": 5343, "width": 103.8, }, - Object { - "actualText": "632", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, - "multiLineActualTexts": Array [ - "632", - ], - "originalText": 632, - "width": 103.8, - }, - Object { - "actualText": "7234", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "7234", - ], - "originalText": 7234, - "width": 103.8, - }, - Object { - "actualText": "834", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, - "multiLineActualTexts": Array [ - "834", - ], - "originalText": 834, - "width": 103.8, - }, - Object { - "actualText": "945", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, - "multiLineActualTexts": Array [ - "945", - ], - "originalText": 945, - "width": 103.8, - }, - Object { - "actualText": "1304", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "1304", - ], - "originalText": 1304, - "width": 103.8, - }, - Object { - "actualText": "1145", - "actualTextHeight": 15, - "actualTextWidth": 26, - "height": 30, - "multiLineActualTexts": Array [ - "1145", - ], - "originalText": 1145, - "width": 103.8, - }, - Object { - "actualText": "1432", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "1432", - ], - "originalText": 1432, - "width": 103.8, - }, ] `; diff --git a/packages/s2-core/__tests__/spreadsheet/multi-line-text-spec.ts b/packages/s2-core/__tests__/spreadsheet/multi-line-text-spec.ts index 2d7b38670f..f6e2e5f457 100644 --- a/packages/s2-core/__tests__/spreadsheet/multi-line-text-spec.ts +++ b/packages/s2-core/__tests__/spreadsheet/multi-line-text-spec.ts @@ -548,6 +548,13 @@ describe('SpreadSheet Multi Line Text Tests', () => { }, ); + test('should render by infinity maxLines', async () => { + updateStyle(Infinity); + await s2.render(false); + + matchCellStyleSnapshot(); + }); + test('should render by maxLines if actual text contains "\\n"', async () => { updateStyle(1); s2.changeSheetSize(800, 600); @@ -1063,5 +1070,33 @@ describe('SpreadSheet Multi Line Text Tests', () => { matchCellStyleSnapshot(); }); + + test('should render by infinity maxLines', async () => { + updateStyle(Infinity); + await s2.render(false); + + matchCellStyleSnapshot(); + }); + + test('should render by infinity maxLines if actual text contains "\\n"', async () => { + updateStyle(Infinity); + + s2.setDataCfg({ + data: [ + { + province: '浙江\n浙江', + city: '杭州\n杭州\n杭州', + type: '纸张\n纸张', + price: 12, + cost: 20, + }, + ...s2.dataCfg.data, + ], + }); + + await s2.render(); + + matchCellStyleSnapshot(); + }); }); }); diff --git a/packages/s2-core/__tests__/unit/interaction/__snapshots__/row-column-resize-spec.ts.snap b/packages/s2-core/__tests__/unit/interaction/__snapshots__/row-column-resize-spec.ts.snap index f836cf3c9f..5df0287818 100644 --- a/packages/s2-core/__tests__/unit/interaction/__snapshots__/row-column-resize-spec.ts.snap +++ b/packages/s2-core/__tests__/unit/interaction/__snapshots__/row-column-resize-spec.ts.snap @@ -122,6 +122,33 @@ Object { } `; +exports[`Interaction Row Column Resize Tests should get vertical custom filed resize style 1`] = ` +Object { + "height": 30, + "heightByField": Object { + "test-a": 2, + "test-b": 2, + }, + "maxLines": 1, + "textOverflow": "ellipsis", + "widthByField": null, + "wordWrap": true, +} +`; + +exports[`Interaction Row Column Resize Tests should get vertical filed resize style 1`] = ` +Object { + "height": 30, + "heightByField": Object { + "testField": 2, + }, + "maxLines": 1, + "textOverflow": "ellipsis", + "widthByField": null, + "wordWrap": true, +} +`; + exports[`Interaction Row Column Resize Tests should get vertical filed resize style by field for current resize type 1`] = ` Object { "height": undefined, diff --git a/packages/s2-core/__tests__/unit/interaction/row-column-resize-spec.ts b/packages/s2-core/__tests__/unit/interaction/row-column-resize-spec.ts index d07288ceea..45e6f57255 100644 --- a/packages/s2-core/__tests__/unit/interaction/row-column-resize-spec.ts +++ b/packages/s2-core/__tests__/unit/interaction/row-column-resize-spec.ts @@ -41,6 +41,8 @@ const MockRootInteraction = RootInteraction as unknown as jest.Mock; describe('Interaction Row Column Resize Tests', () => { + const mockCell = createMockCellInfo('test').mockCell; + let rowColumnResizeInstance: RowColumnResize; let s2: SpreadSheet; let mockRootInteraction: RootInteraction; @@ -92,8 +94,16 @@ describe('Interaction Row Column Resize Tests', () => { const emitResize = ( directionType: ResizeDirectionType, effect: ResizeAreaEffect, - meta?: Partial, + defaultMeta?: Partial, ) => { + const meta = { + ...defaultMeta, + rowId: '0', + rowIndex: 0, + field: 'testField', + id: 'testFieldId', + } as ResizeInfo['meta']; + const resizeInfo: ResizeInfo = { theme: {}, type: directionType, @@ -104,13 +114,8 @@ describe('Interaction Row Column Resize Tests', () => { isResizeArea: true, effect, size: 3, - meta: { - ...meta, - rowId: '0', - rowIndex: 0, - field: 'testField', - id: 'testFieldId', - } as ResizeInfo['meta'], + meta, + cell: mockCell, }; emitResizeEvent( @@ -243,6 +248,7 @@ describe('Interaction Row Column Resize Tests', () => { isResizeArea: true, effect: ResizeAreaEffect.Cell, size: 3, + cell: mockCell, } as ResizeInfo; emitResizeEvent( @@ -294,6 +300,7 @@ describe('Interaction Row Column Resize Tests', () => { field: 'testField', id: 'testFieldId', } as ResizeInfo['meta'], + cell: mockCell, }; emitResizeEvent( @@ -369,6 +376,7 @@ describe('Interaction Row Column Resize Tests', () => { isResizeArea: true, effect: ResizeAreaEffect.Cell, size: 3, + cell: mockCell, } as ResizeInfo; emitResizeEvent( @@ -400,6 +408,14 @@ describe('Interaction Row Column Resize Tests', () => { const resize = jest.fn(); const rowWidthResize = jest.fn(); + s2.setOptions({ + rowCell: { + maxLines: 3, + }, + dataCell: { + maxLines: Infinity, + }, + }); s2.on(S2Event.LAYOUT_RESIZE, resize); s2.on(S2Event.LAYOUT_RESIZE_ROW_HEIGHT, rowWidthResize); @@ -418,6 +434,7 @@ describe('Interaction Row Column Resize Tests', () => { meta: { field: 'testField', } as Node, + cell: mockCell, }; emitResizeEvent( @@ -445,11 +462,15 @@ describe('Interaction Row Column Resize Tests', () => { const resizeDetail: ResizeParams = { info: resizeInfo, style: { + dataCell: { + maxLines: 1, + }, rowCell: { height: 2, heightByField: { [resizeInfo.meta.field!]: 2, }, + maxLines: 1, }, }, }; @@ -592,17 +613,24 @@ describe('Interaction Row Column Resize Tests', () => { }); test('should get vertical filed resize style', () => { - const resizeInfo = emitResize( - ResizeDirectionType.Vertical, - ResizeAreaEffect.Field, - ); - - expect(s2.options.style!.colCell!.heightByField).toEqual({ - [resizeInfo.meta.field!]: resizeInfo.height, + s2.setOptions({ + colCell: { + maxLines: 3, + }, }); + + emitResize(ResizeDirectionType.Vertical, ResizeAreaEffect.Field); + + expect(s2.options.style!.colCell).toMatchSnapshot(); }); test('should get vertical custom filed resize style', () => { + s2.setOptions({ + colCell: { + maxLines: Infinity, + }, + }); + jest.spyOn(s2, 'isCustomColumnFields').mockImplementationOnce(() => true); jest .spyOn(s2.facet, 'getColNodes') @@ -612,17 +640,12 @@ describe('Interaction Row Column Resize Tests', () => { createMockCellInfo('test-c', { level: 1 }).getNode(), ]); - const resizeInfo = emitResize( - ResizeDirectionType.Vertical, - ResizeAreaEffect.Field, - { level: 0 }, - ); + emitResize(ResizeDirectionType.Vertical, ResizeAreaEffect.Field, { + level: 0, + }); // 获取同 level 的 style - expect(s2.options.style!.colCell!.heightByField).toEqual({ - 'test-a': resizeInfo.height, - 'test-b': resizeInfo.height, - }); + expect(s2.options.style!.colCell).toMatchSnapshot(); }); test('should not reset interaction and hidden tooltip when resize start', () => { @@ -720,6 +743,7 @@ describe('Interaction Row Column Resize Tests', () => { resizedHeight: 0, resizedWidth: 0, size: 3, + cell: mockCell, } as ResizeInfo; emitResizeEvent( diff --git a/packages/s2-core/__tests__/util/helpers.ts b/packages/s2-core/__tests__/util/helpers.ts index bca47a2757..b66bb26d5b 100644 --- a/packages/s2-core/__tests__/util/helpers.ts +++ b/packages/s2-core/__tests__/util/helpers.ts @@ -23,6 +23,7 @@ import * as dataConfig from 'tests/data/mock-dataset.json'; import * as simpleDataConfig from 'tests/data/simple-data.json'; import { assembleDataCfg, assembleOptions } from '.'; import { + CELL_PADDING, DEFAULT_FROZEN_COUNTS, EventController, FrozenGroupArea, @@ -312,10 +313,20 @@ export const createMockCellInfo = ( getActualText: jest.fn(), getFieldValue: jest.fn(), getBBoxByType: jest.fn(() => {}), - getStyle: jest.fn(() => {}), + getStyle: jest.fn(() => ({ + cell: { + padding: { + top: CELL_PADDING, + right: CELL_PADDING, + bottom: CELL_PADDING, + left: CELL_PADDING, + }, + }, + })), hideInteractionShape: jest.fn(), updateByState: jest.fn(), isTextOverflowing: jest.fn(), + getTextLineHeight: jest.fn(() => 16), } as unknown as S2CellType; const getNode = () => mockCellViewMeta as unknown as Node; diff --git a/packages/s2-core/src/cell/base-cell.ts b/packages/s2-core/src/cell/base-cell.ts index 64c4992e16..bb428bacc7 100644 --- a/packages/s2-core/src/cell/base-cell.ts +++ b/packages/s2-core/src/cell/base-cell.ts @@ -299,6 +299,13 @@ export abstract class BaseCell extends Group { return this.textShape?.getLineBoundingRects() || []; } + /** + * 获取文本包围盒 + */ + public getTextLineHeight() { + return this.textShape?.parsedStyle?.metrics?.lineHeight; + } + /** * 获取单元格空值占位符 */ diff --git a/packages/s2-core/src/cell/col-cell.ts b/packages/s2-core/src/cell/col-cell.ts index 58bc79dca4..720263d19b 100644 --- a/packages/s2-core/src/cell/col-cell.ts +++ b/packages/s2-core/src/cell/col-cell.ts @@ -294,6 +294,7 @@ export class ColCell extends HeaderCell { width: resizeAreaWidth, height, meta: this.meta, + cell: this, }); resizeArea.appendChild( @@ -395,6 +396,7 @@ export class ColCell extends HeaderCell { width, height, meta: this.meta, + cell: this, }); resizeArea.appendChild( diff --git a/packages/s2-core/src/cell/corner-cell.ts b/packages/s2-core/src/cell/corner-cell.ts index c994183c85..abdb0ca85e 100644 --- a/packages/s2-core/src/cell/corner-cell.ts +++ b/packages/s2-core/src/cell/corner-cell.ts @@ -181,6 +181,7 @@ export class CornerCell extends HeaderCell { width, height, meta: this.meta, + cell: this, }); resizeArea.appendChild( diff --git a/packages/s2-core/src/cell/row-cell.ts b/packages/s2-core/src/cell/row-cell.ts index 026824986b..2c890e54d5 100644 --- a/packages/s2-core/src/cell/row-cell.ts +++ b/packages/s2-core/src/cell/row-cell.ts @@ -288,6 +288,7 @@ export class RowCell extends HeaderCell { width, height, meta: this.meta, + cell: this, }); resizeArea.appendChild( diff --git a/packages/s2-core/src/cell/table-data-cell.ts b/packages/s2-core/src/cell/table-data-cell.ts index fc47f8f640..3ad235f2bc 100644 --- a/packages/s2-core/src/cell/table-data-cell.ts +++ b/packages/s2-core/src/cell/table-data-cell.ts @@ -134,6 +134,7 @@ export class TableDataCell extends DataCell { width, height, meta: this.meta, + cell: this, }); resizeArea.appendChild( diff --git a/packages/s2-core/src/common/interface/resize.ts b/packages/s2-core/src/common/interface/resize.ts index 55e468756e..f11f67b9cd 100644 --- a/packages/s2-core/src/common/interface/resize.ts +++ b/packages/s2-core/src/common/interface/resize.ts @@ -66,6 +66,7 @@ export interface ResizeInfo { /** 当前拖拽热区对应的节点信息 */ meta: Node | ViewMeta; + cell: S2CellType; /** 拖拽后的宽度 */ resizedWidth?: number; diff --git a/packages/s2-core/src/interaction/row-column-resize.ts b/packages/s2-core/src/interaction/row-column-resize.ts index c0f0bbf8bc..e39b8086cd 100644 --- a/packages/s2-core/src/interaction/row-column-resize.ts +++ b/packages/s2-core/src/interaction/row-column-resize.ts @@ -7,6 +7,7 @@ import { } from '@antv/g'; import { clone, isEmpty, throttle } from 'lodash'; import type { + DefaultCellTheme, ResizeInteractionOptions, ResizeParams, RowCellStyle, @@ -254,6 +255,23 @@ export class RowColumnResize extends BaseEvent implements BaseEventImplement { const displayWidth = isDisabled ? originalWidth : resizedWidth; const displayHeight = isDisabled ? originalHeight : resizedHeight; + // 高度调整时, 根据行高计算最大可展示的文本行数, 覆盖原本的 maxLines 配置 + if (resizeInfo.type === ResizeDirectionType.Vertical) { + const { cell } = resizeInfo?.cell?.getStyle() as DefaultCellTheme; + const padding = cell!.padding!.top! + cell!.padding!.bottom!; + const lineHeight = resizeInfo?.cell?.getTextLineHeight()!; + const maxLines = !isDisabled + ? Math.max(1, Math.floor((displayHeight - padding) / lineHeight)) + : undefined; + + return { + displayWidth, + displayHeight, + isDisabled, + maxLines, + }; + } + return { displayWidth, displayHeight, @@ -381,14 +399,16 @@ export class RowColumnResize extends BaseEvent implements BaseEventImplement { private getResizeHeightDetail(): ResizeDetail | null { const resizeInfo = this.getResizeInfo(); - const { displayHeight } = this.getDisAllowResizeInfo(); + const { displayHeight, maxLines } = this.getDisAllowResizeInfo(); switch (resizeInfo.effect) { case ResizeAreaEffect.Field: return { eventType: S2Event.LAYOUT_RESIZE_COL_HEIGHT, style: { + cornerCell: { maxLines }, colCell: { + maxLines, heightByField: this.getHeightByField(resizeInfo, displayHeight!), }, }, @@ -398,7 +418,9 @@ export class RowColumnResize extends BaseEvent implements BaseEventImplement { return { eventType: S2Event.LAYOUT_RESIZE_ROW_HEIGHT, style: { + dataCell: { maxLines }, rowCell: { + maxLines, height: !this.isEffectRowOf(ResizeType.ALL) ? undefined : displayHeight, diff --git a/packages/s2-react/playground/index.tsx b/packages/s2-react/playground/index.tsx index 150fb792eb..731a7c1c30 100644 --- a/packages/s2-react/playground/index.tsx +++ b/packages/s2-react/playground/index.tsx @@ -195,10 +195,6 @@ function MainLayout() { }); }; - const onSheetTypeChange = (e: RadioChangeEvent) => { - setSheetType(e.target.value); - }; - const logHandler = (name: string, callback?: (...args: any[]) => void) => (...args: any[]) => { @@ -235,10 +231,12 @@ function MainLayout() { [dataCfg.fields?.columns], ); - // ================== Hooks ======================== + const onSheetTypeChange = (e: RadioChangeEvent) => { + const selectedSheetType = e.target.value; - useUpdateEffect(() => { - switch (sheetType) { + setSheetType(e.target.value); + + switch (selectedSheetType) { case 'table': setDataCfg(tableSheetDataCfg); updateOptions(defaultOptions); @@ -249,8 +247,9 @@ function MainLayout() { break; } setColumnOptions(getColumnOptions(sheetType)); - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [sheetType]); + }; + + // ================== Hooks ======================== React.useEffect(() => { console.log('env:', process.env); diff --git a/packages/s2-react/src/hooks/useSpreadSheet.ts b/packages/s2-react/src/hooks/useSpreadSheet.ts index fe4bcd732e..c65ab64fa4 100644 --- a/packages/s2-react/src/hooks/useSpreadSheet.ts +++ b/packages/s2-react/src/hooks/useSpreadSheet.ts @@ -128,7 +128,7 @@ export function useSpreadSheet(props: SheetComponentProps) { prevDataCfg?.fields?.columns?.length !== dataCfg?.fields?.columns?.length ) { - s2Ref.current?.facet.clearInitColLeafNodes(); + s2Ref.current?.facet?.clearInitColLeafNodes(); } reloadData = true; diff --git a/packages/s2-vue/src/hooks/useSheetUpdate.ts b/packages/s2-vue/src/hooks/useSheetUpdate.ts index 309237321c..3db790d007 100644 --- a/packages/s2-vue/src/hooks/useSheetUpdate.ts +++ b/packages/s2-vue/src/hooks/useSheetUpdate.ts @@ -42,7 +42,7 @@ export const useSheetUpdate = ( prevDataCfg?.fields?.columns?.length !== dataCfg?.fields?.columns?.length ) { - s2Ref.value?.facet.clearInitColLeafNodes(); + s2Ref.value?.facet?.clearInitColLeafNodes(); } updateFlag.rerender = true; diff --git a/s2-site/docs/api/basic-class/base-cell.zh.md b/s2-site/docs/api/basic-class/base-cell.zh.md index d92c0d86f5..0e470b1916 100644 --- a/s2-site/docs/api/basic-class/base-cell.zh.md +++ b/s2-site/docs/api/basic-class/base-cell.zh.md @@ -47,6 +47,7 @@ cell.getActualText() | isMultiLineText | 是否是多行文本 | `() => boolean` | | getEmptyPlaceholder | 获取单元格空值占位符 | `() => string` | | getTextLineBoundingRects | 获取文本包围盒 | `() => string` | +| getTextLineHeight | 获取文本行高 | `() => number` | | getFieldValue | 获取单元格展示的数值 | `() => string` | diff --git a/s2-site/docs/api/components/sheet-component.zh.md b/s2-site/docs/api/components/sheet-component.zh.md index c229b26dd4..2c64ff64f1 100644 --- a/s2-site/docs/api/components/sheet-component.zh.md +++ b/s2-site/docs/api/components/sheet-component.zh.md @@ -346,7 +346,8 @@ type SheetComponentOptions = S2Options< | effect | 拖拽更改影响的区域 | `Field` \| `Cell` \| `Tree` \| `Series` | | | | isResizeArea | 是否属于 resize 热区 | `boolean` | | | | id | 字段 id | `string` | | | -| meta | resize 热区对应单元格节点信息 | [Node](/api/basic-class/node) | | | +| cell | resize 热区对应单元格信息 | [Node](/api/basic-class/base-cell) | | | +| meta | resize 热区对应单元格元数据 | [Node](/api/basic-class/node) | | | | resizedWidth | 拖拽后的宽度 | `number` | | | | resizedHeight | 拖拽后的高度 | `number` | | | diff --git a/s2-site/docs/common/style.zh.md b/s2-site/docs/common/style.zh.md index ecbac52838..84077d59c4 100644 --- a/s2-site/docs/common/style.zh.md +++ b/s2-site/docs/common/style.zh.md @@ -75,5 +75,5 @@ order: 3 | 参数 | 说明 | 类型 | 默认值 | 必选 | | ------- | ------------ | ------ | ------ | ---- | | wordWrap | 文本是否自动换行(数值单元格不建议换行)。[了解更多](https://g.antv.antgroup.com/api/basic/text#wordwrap) | `boolean` | `true` | | -| maxLines | 最大行数,文本超出后将被截断(数值单元格不建议换行),需要配合 `wordWrap` 和 `textOverflow` 一起使用。[了解更多](https://g.antv.antgroup.com/api/basic/text#maxlines) | `number` | `1` | | +| maxLines | 最大行数,文本超出后将被截断,支持配置为 `Infinity`(数值单元格不建议换行),需要配合 `wordWrap` 和 `textOverflow` 一起使用。[了解更多](https://g.antv.antgroup.com/api/basic/text#maxlines) | `number` | `1` | | | textOverflow | 自定义隐藏的文本溢出内容,例如直接裁剪、追加省略号或一个自定义字符串,需要配合 `wordWrap` 和 `maxLines` 一起使用。[了解更多](https://g.antv.antgroup.com/api/basic/text#textoverflow) | `string` | `ellipsis` | | diff --git a/s2-site/docs/manual/basic/multi-line-text.zh.md b/s2-site/docs/manual/basic/multi-line-text.zh.md index 460d48ef74..474a48f8c6 100644 --- a/s2-site/docs/manual/basic/multi-line-text.zh.md +++ b/s2-site/docs/manual/basic/multi-line-text.zh.md @@ -22,7 +22,7 @@ S2 内部适配了 `AntV/G 6.0` 的 [多行布局能力](https://g.antv.antgroup 具体参数请跳转 `AntV/G` [官网查看](https://g.antv.antgroup.com/api/basic/text#%E5%A4%9A%E8%A1%8C%E5%B8%83%E5%B1%80). -- `maxLines`: 最大行数,一个具体的正整数,文本超出后将被截断 (默认值为 `1`)。 +- `maxLines`: 最大行数,一个具体的正整数 (支持配置为 `Infinity`), 文本超出后将被截断 (默认值为 `1`)。 - `wordWrap`: 是否开启自动折行,(默认值为 `false`). - `textOverflow`: - 'clip': 直接截断文本。 @@ -60,14 +60,6 @@ const s2Options = { ``` -## 高度优先级 - -:::info{title="提示"} - -开启文本自动换行后,默认会根据**文本实际的高度**调整对应单元格的高度。如果配置了 [自定义单元格宽高](/manual/advanced/custom/cell-size), 则高度自适应失效,以自定义的宽高为准。 - -::: - ## 效果 ### 透视表 @@ -82,9 +74,49 @@ const s2Options = { [查看示例](/examples/layout/multi-line-text/#table) +## 根据换行符换行 + +除了根据文本长度换行外,S2 还支持根据换行符 `\n` 换行。[查看示例](/examples/layout/multi-line-text/#line-break) + +```json +{ + province: '浙江\n浙江', + city: '杭州\n杭州\n杭州', + type: '纸张\n纸张\n纸张', + price: 2, + cost: 20, +} +``` + +以上诉数据为例,可以根据文本中换行符的数量,指定 `maxLines` 的值. +如果文本是动态的,则可以指定为一个**较大**的数值,如 `maxLines: 99` 或者 `maxLines: Infinity`, 从而实现高度自适应的效果。 + +```ts +const s2Options = { + style: { + rowCell: { + maxLines: Infinity, + }, + }, +}; +``` + + + +## 高度优先级 + +:::info{title="提示"} + +开启文本自动换行后,默认会根据**文本实际的高度**调整对应单元格的高度。 + +1. 如果配置了 [自定义单元格宽高](/manual/advanced/custom/cell-size), 则高度自适应失效,以自定义的宽高为准。 +2. 默认根据 `maxLines` 来计算单元格高度,当**手动拖拽调整高度**后, 为保证展示合理性,会根据当前文本行高计算出能展示的最大行数,**覆盖**默认的 `maxLines` 配置。 + +::: + ## 获取单元格文本状态 -如果想获取一些特定状态,如 `文本最大宽度`, `文本是否换行`, `文本是否溢出`, 可以在拿到 [单元格信息后](/manual/advanced/get-cell-data) 后,调用单元格基类的方法,具体请 [查看 API](/api/basic-class/base-cell)。 +如果想获取一些特定状态,如 `文本最大宽度`, `文本是否换行`, `文本是否溢出`, 可以在拿到 [单元格信息](/manual/advanced/get-cell-data) 后,调用单元格基类的方法,具体请 [查看 API](/api/basic-class/base-cell)。 ```ts cell.getActualText() diff --git a/s2-site/examples/layout/multi-line-text/demo/line-break.ts b/s2-site/examples/layout/multi-line-text/demo/line-break.ts new file mode 100644 index 0000000000..4c2e5b6849 --- /dev/null +++ b/s2-site/examples/layout/multi-line-text/demo/line-break.ts @@ -0,0 +1,81 @@ +import { + CellTextWordWrapStyle, + PivotSheet, + S2DataConfig, + S2Options, +} from '@antv/s2'; +import '@antv/s2/dist/s2.min.css'; + +fetch('https://assets.antv.antgroup.com/s2/basic.json') + .then((res) => res.json()) + .then(async (data) => { + const container = document.getElementById('container'); + const s2DataConfig: S2DataConfig = { + fields: { + rows: ['province', 'city'], + columns: ['type'], + values: ['price', 'cost'], + }, + meta: [ + { + field: 'province', + name: '省份', + }, + { + field: 'city', + name: '城市', + }, + { + field: 'type', + name: '商品类别', + }, + { + field: 'price', + name: '价格\n价格', + }, + { + field: 'cost', + name: '成本', + }, + ], + data: [ + { + province: '浙江\n浙江', + city: '杭州\n杭州\n杭州', + type: '纸张\n纸张\n纸张', + price: 2, + cost: 20, + }, + ...data, + ], + }; + + const cellTextWordWrapStyle: CellTextWordWrapStyle = { + // 最大行数,文本超出后将被截断 + maxLines: Infinity, + // 文本是否换行 + wordWrap: true, + // 可选项见:https://g.antv.antgroup.com/api/basic/text#textoverflow + textOverflow: 'ellipsis', + }; + + const s2Options: S2Options = { + width: 600, + height: 480, + style: { + seriesNumberCell: cellTextWordWrapStyle, + colCell: cellTextWordWrapStyle, + cornerCell: cellTextWordWrapStyle, + rowCell: { + ...cellTextWordWrapStyle, + height: 50, + }, + // 数值不建议换行, 容易产生歧义 + // dataCell: cellTextWordWrapStyle, + }, + }; + + const s2 = new PivotSheet(container, s2DataConfig, s2Options); + + await s2.render(); + }); diff --git a/s2-site/examples/layout/multi-line-text/demo/meta.json b/s2-site/examples/layout/multi-line-text/demo/meta.json index 7b994ad951..78d89d3e14 100644 --- a/s2-site/examples/layout/multi-line-text/demo/meta.json +++ b/s2-site/examples/layout/multi-line-text/demo/meta.json @@ -21,6 +21,15 @@ }, "screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*psedTKQWiWUAAAAAAAAAAAAADmJ7AQ/original", "new": true + }, + { + "filename": "line-break.ts", + "title": { + "zh": "根据换行符换行", + "en": "Line Break Multi Line Text" + }, + "screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*G8cwQ7BC3VAAAAAAAAAAAAAADmJ7AQ/original", + "new": true } ] } diff --git a/s2-site/examples/layout/multi-line-text/demo/pivot.ts b/s2-site/examples/layout/multi-line-text/demo/pivot.ts index dfa7342637..b65850b1f1 100644 --- a/s2-site/examples/layout/multi-line-text/demo/pivot.ts +++ b/s2-site/examples/layout/multi-line-text/demo/pivot.ts @@ -43,8 +43,8 @@ fetch('https://assets.antv.antgroup.com/s2/basic.json') province: '浙江浙江浙江浙江浙江浙江', city: '杭州杭州杭州杭州杭州杭州', type: '纸张纸张纸张纸张纸张', - price: '2', - cost: '20', + price: 2, + cost: 20, }, ...data, ], diff --git a/s2-site/examples/layout/multi-line-text/demo/table.ts b/s2-site/examples/layout/multi-line-text/demo/table.ts index 03762ba288..099b7a616b 100644 --- a/s2-site/examples/layout/multi-line-text/demo/table.ts +++ b/s2-site/examples/layout/multi-line-text/demo/table.ts @@ -41,8 +41,8 @@ fetch('https://assets.antv.antgroup.com/s2/basic.json') province: '浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江', city: '杭州杭州杭州杭州杭州杭州', type: '纸张纸张纸张纸张纸张', - price: '2', - cost: '20', + price: 2, + cost: 20, }, ...data, ], diff --git a/s2-site/package.json b/s2-site/package.json index 5d1044e563..86d06251ee 100644 --- a/s2-site/package.json +++ b/s2-site/package.json @@ -27,19 +27,19 @@ "start": "dumi dev" }, "dependencies": { - "@ant-design/icons": "^5.3.7", - "@antv/dumi-theme-antv": "^0.5.2", - "@antv/g": "^6.1.8", - "@antv/g-canvas": "^2.0.26", - "@antv/g-plugin-a11y": "^1.1.8", - "@antv/g-plugin-rough-canvas-renderer": "^2.0.26", + "@ant-design/icons": "^5.5.1", + "@antv/dumi-theme-antv": "^0.5.3", + "@antv/g": "^6.1.9", + "@antv/g-canvas": "^2.0.27", + "@antv/g-plugin-a11y": "^1.1.9", + "@antv/g-plugin-rough-canvas-renderer": "^2.0.27", "@antv/g2": "^5.1.19", "@antv/s2": "workspace:*", "@antv/s2-react": "workspace:*", "@antv/s2-react-components": "workspace:*", - "antd": "^5.17.0", + "antd": "^5.22.1", "copy-to-clipboard": "^3.3.3", - "dumi": "^2.4.7", + "dumi": "^2.4.13", "gh-pages": "^6.1.1", "lodash": "^4.17.21", "react": "^18.2.0", From 062c6db22d7538c30ed4ab6f3f176109b4a07c13 Mon Sep 17 00:00:00 2001 From: lijinke666 Date: Mon, 18 Nov 2024 17:09:09 +0800 Subject: [PATCH 2/7] =?UTF-8?q?docs:=20=E8=BF=98=E5=8E=9F=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E5=8C=85=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- s2-site/package.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/s2-site/package.json b/s2-site/package.json index 86d06251ee..5d1044e563 100644 --- a/s2-site/package.json +++ b/s2-site/package.json @@ -27,19 +27,19 @@ "start": "dumi dev" }, "dependencies": { - "@ant-design/icons": "^5.5.1", - "@antv/dumi-theme-antv": "^0.5.3", - "@antv/g": "^6.1.9", - "@antv/g-canvas": "^2.0.27", - "@antv/g-plugin-a11y": "^1.1.9", - "@antv/g-plugin-rough-canvas-renderer": "^2.0.27", + "@ant-design/icons": "^5.3.7", + "@antv/dumi-theme-antv": "^0.5.2", + "@antv/g": "^6.1.8", + "@antv/g-canvas": "^2.0.26", + "@antv/g-plugin-a11y": "^1.1.8", + "@antv/g-plugin-rough-canvas-renderer": "^2.0.26", "@antv/g2": "^5.1.19", "@antv/s2": "workspace:*", "@antv/s2-react": "workspace:*", "@antv/s2-react-components": "workspace:*", - "antd": "^5.22.1", + "antd": "^5.17.0", "copy-to-clipboard": "^3.3.3", - "dumi": "^2.4.13", + "dumi": "^2.4.7", "gh-pages": "^6.1.1", "lodash": "^4.17.21", "react": "^18.2.0", From e2001430082221bf08d603e57060226a800cda00 Mon Sep 17 00:00:00 2001 From: lijinke666 Date: Tue, 19 Nov 2024 17:04:20 +0800 Subject: [PATCH 3/7] =?UTF-8?q?fix:=20=E6=94=AF=E6=8C=81=E5=8D=95=E8=A1=8C?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../multi-line-text-spec.ts.snap | 18940 +++++++++------- .../spreadsheet/multi-line-text-spec.ts | 54 + .../row-column-resize-spec.ts.snap | 27 + .../interaction/row-column-resize-spec.ts | 7 +- packages/s2-core/src/cell/base-cell.ts | 6 +- packages/s2-core/src/cell/col-cell.ts | 9 + packages/s2-core/src/cell/corner-cell.ts | 10 + packages/s2-core/src/cell/data-cell.ts | 10 + packages/s2-core/src/cell/row-cell.ts | 9 + .../s2-core/src/common/interface/style.ts | 7 +- .../src/interaction/row-column-resize.ts | 85 +- 11 files changed, 10588 insertions(+), 8576 deletions(-) diff --git a/packages/s2-core/__tests__/spreadsheet/__snapshots__/multi-line-text-spec.ts.snap b/packages/s2-core/__tests__/spreadsheet/__snapshots__/multi-line-text-spec.ts.snap index 4afcc6ce9e..6f60ae9134 100644 --- a/packages/s2-core/__tests__/spreadsheet/__snapshots__/multi-line-text-spec.ts.snap +++ b/packages/s2-core/__tests__/spreadsheet/__snapshots__/multi-line-text-spec.ts.snap @@ -8102,13 +8102,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 1`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by maxLinesByField 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 76, "multiLineActualTexts": Array [ "序号", ], @@ -8119,50 +8119,53 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 76, "multiLineActualTexts": Array [ "省份", ], "originalText": "省份", - "width": 96, + "width": 102.57, }, Object { - "actualText": "城市城@@@", - "actualTextHeight": 16, - "actualTextWidth": 72, - "height": 30, + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 64, + "actualTextWidth": 292, + "height": 76, "multiLineActualTexts": Array [ - "城市城@@@", + "城市城市城市城", + "市城市城市城市", + "城市城市城市城", + "市城市", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "width": 96, + "width": 102.57, }, Object { "actualText": "类别类别类别类别类别类别类别类别类别类别", "actualTextHeight": 16, "actualTextWidth": 241, - "height": 30, + "height": 48, "multiLineActualTexts": Array [ "类别类别类别类别类别类别类别类别类别类别", ], "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 272, + "width": 285.14, }, Object { "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 30, + "height": 96, "multiLineActualTexts": Array [ "子类别", ], "originalText": "子类别", - "width": 272, + "width": 285.14, }, ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 2`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by maxLinesByField 2`] = ` Array [ Object { "actualText": "1", @@ -8179,7 +8182,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 96, "multiLineActualTexts": Array [ "2", ], @@ -8200,204 +8203,416 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 3`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by maxLinesByField 3`] = ` Array [ Object { "actualText": "家具", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 48, "multiLineActualTexts": Array [ "家具", ], "originalText": "家具", - "width": 192, + "width": 205.14, }, Object { "actualText": "桌子", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 96, "multiLineActualTexts": Array [ "桌子", ], "originalText": "桌子", - "width": 96, + "width": 102.57, }, Object { - "actualText": "数量数@@@", - "actualTextHeight": 15, - "actualTextWidth": 73, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 60, + "actualTextWidth": 268, + "height": 76, "multiLineActualTexts": Array [ - "数量数@@@", + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 96, + "width": 102.57, }, Object { "actualText": "沙发", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 96, "multiLineActualTexts": Array [ "沙发", ], "originalText": "沙发", - "width": 96, + "width": 102.57, }, Object { - "actualText": "数量数@@@", - "actualTextHeight": 15, - "actualTextWidth": 73, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 60, + "actualTextWidth": 268, + "height": 76, "multiLineActualTexts": Array [ - "数量数@@@", + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 96, + "width": 102.57, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 4`] = ` -Array [ Object { - "actualText": "浙江省", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 120, + "actualText": "家具家具家具家具家具家具家...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 48, "multiLineActualTexts": Array [ - "浙江省", + "家具家具家具家", + "具家具家具家...", ], - "originalText": "浙江省", - "width": 96, + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 102.57, }, Object { - "actualText": "浙江省@@@", - "actualTextHeight": 16, - "actualTextWidth": 72, - "height": 30, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 96, "multiLineActualTexts": Array [ - "浙江省@@@", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子...", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 96, + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 102.57, }, Object { - "actualText": "四川省", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 120, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 60, + "actualTextWidth": 268, + "height": 76, "multiLineActualTexts": Array [ - "四川省", + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", ], - "originalText": "四川省", - "width": 96, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 102.57, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 5`] = ` -Array [ Object { - "actualText": "236723@@@", - "actualTextHeight": 15, - "actualTextWidth": 77, - "height": 30, + "actualText": "办公用品", + "actualTextHeight": 16, + "actualTextWidth": 49, + "height": 48, "multiLineActualTexts": Array [ - "236723@@@", + "办公用品", ], - "originalText": 236723672361111, - "width": 96, + "originalText": "办公用品", + "width": 205.14, }, Object { - "actualText": "3877", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "笔", + "actualTextHeight": 16, + "actualTextWidth": 13, + "height": 96, "multiLineActualTexts": Array [ - "3877", + "笔", ], - "originalText": 3877, - "width": 96, + "originalText": "笔", + "width": 102.57, }, Object { - "actualText": "4342", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 60, + "actualTextWidth": 268, + "height": 76, "multiLineActualTexts": Array [ - "4342", + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", ], - "originalText": 4342, - "width": 96, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 102.57, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 30, + "actualText": "纸张", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 96, "multiLineActualTexts": Array [ - "-", + "纸张", ], - "originalText": "-", - "width": 96, + "originalText": "纸张", + "width": 102.57, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 60, + "actualTextWidth": 268, + "height": 76, "multiLineActualTexts": Array [ - "-", + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", ], - "originalText": "-", - "width": 96, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 102.57, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by maxLinesByField 4`] = ` +Array [ Object { - "actualText": "1723", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "浙江省", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 120, "multiLineActualTexts": Array [ - "1723", + "浙江省", ], - "originalText": 1723, - "width": 96, + "originalText": "浙江省", + "width": 102.57, }, Object { - "actualText": "1822", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "1822", + "绍兴市", ], - "originalText": 1822, - "width": 96, + "originalText": "绍兴市", + "width": 102.57, }, Object { - "actualText": "1943", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "1943", + "宁波市", ], - "originalText": 1943, - "width": 96, + "originalText": "宁波市", + "width": 102.57, }, Object { - "actualText": "2330", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "2330", + "舟山市", ], - "originalText": 2330, - "width": 96, + "originalText": "舟山市", + "width": 102.57, + }, + Object { + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "杭州市", + ], + "originalText": "杭州市", + "width": 102.57, + }, + Object { + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "actualTextHeight": 80, + "actualTextWidth": 365, + "height": 96, + "multiLineActualTexts": Array [ + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江省", + "浙江省浙江省浙", + "江省", + ], + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 102.57, + }, + Object { + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 96, + "multiLineActualTexts": Array [ + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州...", + ], + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 102.57, + }, + Object { + "actualText": "四川省", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 120, + "multiLineActualTexts": Array [ + "四川省", + ], + "originalText": "四川省", + "width": 102.57, + }, + Object { + "actualText": "成都市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "成都市", + ], + "originalText": "成都市", + "width": 102.57, + }, + Object { + "actualText": "绵阳市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "绵阳市", + ], + "originalText": "绵阳市", + "width": 102.57, + }, + Object { + "actualText": "南充市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "南充市", + ], + "originalText": "南充市", + "width": 102.57, + }, + Object { + "actualText": "乐山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "乐山市", + ], + "originalText": "乐山市", + "width": 102.57, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by maxLinesByField 5`] = ` +Array [ + Object { + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 30, + "multiLineActualTexts": Array [ + "236723672361", + "111", + ], + "originalText": 236723672361111, + "width": 102.57, + }, + Object { + "actualText": "3877", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "3877", + ], + "originalText": 3877, + "width": 102.57, + }, + Object { + "actualText": "4342", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "4342", + ], + "originalText": 4342, + "width": 102.57, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 102.57, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 96, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 102.57, + }, + Object { + "actualText": "1723", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1723", + ], + "originalText": 1723, + "width": 102.57, + }, + Object { + "actualText": "1822", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1822", + ], + "originalText": 1822, + "width": 102.57, + }, + Object { + "actualText": "1943", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1943", + ], + "originalText": 1943, + "width": 102.57, + }, + Object { + "actualText": "2330", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2330", + ], + "originalText": 2330, + "width": 102.57, }, Object { "actualText": "632", @@ -8408,7 +8623,7 @@ Array [ "632", ], "originalText": 632, - "width": 96, + "width": 102.57, }, Object { "actualText": "7234", @@ -8419,7 +8634,7 @@ Array [ "7234", ], "originalText": 7234, - "width": 96, + "width": 102.57, }, Object { "actualText": "834", @@ -8430,7 +8645,7 @@ Array [ "834", ], "originalText": 834, - "width": 96, + "width": 102.57, }, Object { "actualText": "5343", @@ -8441,18 +8656,18 @@ Array [ "5343", ], "originalText": 5343, - "width": 96, + "width": 102.57, }, Object { "actualText": "-", "actualTextHeight": 15, "actualTextWidth": 4, - "height": 30, + "height": 96, "multiLineActualTexts": Array [ "-", ], "originalText": "-", - "width": 96, + "width": 102.57, }, Object { "actualText": "2451", @@ -8463,7 +8678,7 @@ Array [ "2451", ], "originalText": 2451, - "width": 96, + "width": 102.57, }, Object { "actualText": "2244", @@ -8474,7 +8689,7 @@ Array [ "2244", ], "originalText": 2244, - "width": 96, + "width": 102.57, }, Object { "actualText": "2333", @@ -8485,7 +8700,7 @@ Array [ "2333", ], "originalText": 2333, - "width": 96, + "width": 102.57, }, Object { "actualText": "2445", @@ -8496,360 +8711,317 @@ Array [ "2445", ], "originalText": 2445, - "width": 96, + "width": 102.57, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 61, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "-", ], - "originalText": "序号", - "width": 80, + "originalText": "-", + "width": 102.57, }, Object { - "actualText": "省份", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 61, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, "multiLineActualTexts": Array [ - "省份", + "-", ], - "originalText": "省份", - "width": 96, + "originalText": "-", + "width": 102.57, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城...", - "actualTextHeight": 48, - "actualTextWidth": 217, - "height": 61, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, "multiLineActualTexts": Array [ - "城市城市城市", - "城市城市城市", - "城市城市城...", + "-", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "width": 96, + "originalText": "-", + "width": 102.57, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 16, - "actualTextWidth": 241, - "height": 64, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类别类别类别类别类别类别类别", + "-", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 272, + "originalText": "-", + "width": 102.57, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 64, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 96, "multiLineActualTexts": Array [ - "子类别", + "778977897789", + "778977897789", + "7789", ], - "originalText": "子类别", - "width": 272, + "originalText": "7789778977897789778977897789", + "width": 102.57, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 120, + "actualTextWidth": 4, + "height": 30, "multiLineActualTexts": Array [ - "1", + "-", ], - "originalText": "1", - "width": 80, + "originalText": "-", + "width": 102.57, }, Object { - "actualText": "2", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 64, + "actualTextWidth": 4, + "height": 30, "multiLineActualTexts": Array [ - "2", + "-", ], - "originalText": "2", - "width": 80, + "originalText": "-", + "width": 102.57, }, Object { - "actualText": "3", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 120, + "actualTextWidth": 4, + "height": 30, "multiLineActualTexts": Array [ - "3", + "-", ], - "originalText": "3", - "width": 80, + "originalText": "-", + "width": 102.57, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 3`] = ` -Array [ Object { - "actualText": "家具", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 64, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "-", ], - "originalText": "家具", - "width": 192, + "originalText": "-", + "width": 102.57, }, Object { - "actualText": "桌子", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 64, + "actualText": "1304", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "1304", ], - "originalText": "桌子", - "width": 96, + "originalText": 1304, + "width": 102.57, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数...", - "actualTextHeight": 45, - "actualTextWidth": 217, - "height": 61, + "actualText": "1145", + "actualTextHeight": 15, + "actualTextWidth": 26, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量", - "数量数量数量", - "数量数量数...", + "1145", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 96, + "originalText": 1145, + "width": 102.57, }, Object { - "actualText": "沙发", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 64, + "actualText": "1432", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "沙发", + "1432", ], - "originalText": "沙发", - "width": 96, + "originalText": 1432, + "width": 102.57, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数...", - "actualTextHeight": 45, - "actualTextWidth": 217, - "height": 61, + "actualText": "945", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量", - "数量数量数量", - "数量数量数...", + "945", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 96, + "originalText": 945, + "width": 102.57, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 4`] = ` -Array [ Object { - "actualText": "浙江省", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 120, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 96, "multiLineActualTexts": Array [ - "浙江省", + "-", ], - "originalText": "浙江省", - "width": 96, + "originalText": "-", + "width": 102.57, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江...", - "actualTextHeight": 48, - "actualTextWidth": 217, - "height": 64, + "actualText": "2335", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "浙江省浙江省", - "浙江省浙江省", - "浙江省浙江...", + "2335", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 96, + "originalText": 2335, + "width": 102.57, }, Object { - "actualText": "四川省", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 120, + "actualText": "245", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "四川省", + "245", ], - "originalText": "四川省", - "width": 96, + "originalText": 245, + "width": 102.57, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 5`] = ` -Array [ Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 99, + "actualText": "2457", + "actualTextHeight": 15, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "23672367236", - "1111", + "2457", ], - "originalText": 236723672361111, - "width": 96, + "originalText": 2457, + "width": 102.57, }, Object { - "actualText": "3877", + "actualText": "2458", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "3877", + "2458", ], - "originalText": 3877, - "width": 96, + "originalText": 2458, + "width": 102.57, }, Object { - "actualText": "4342", + "actualText": "1354", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "4342", + "1354", ], - "originalText": 4342, - "width": 96, + "originalText": 1354, + "width": 102.57, }, Object { - "actualText": "-", + "actualText": "1523", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "-", + "1523", ], - "originalText": "-", - "width": 96, + "originalText": 1523, + "width": 102.57, }, Object { - "actualText": "-", + "actualText": "1634", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 64, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "-", + "1634", ], - "originalText": "-", - "width": 96, + "originalText": 1634, + "width": 102.57, }, Object { - "actualText": "1723", + "actualText": "1343", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "1723", + "1343", ], - "originalText": 1723, - "width": 96, + "originalText": 1343, + "width": 102.57, }, Object { - "actualText": "632", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualTextWidth": 4, + "height": 96, "multiLineActualTexts": Array [ - "632", + "-", ], - "originalText": 632, - "width": 96, + "originalText": "-", + "width": 102.57, }, Object { - "actualText": "7234", + "actualText": "4004", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "7234", + "4004", ], - "originalText": 7234, - "width": 96, + "originalText": 4004, + "width": 102.57, }, Object { - "actualText": "834", + "actualText": "3077", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "834", + "3077", ], - "originalText": 834, - "width": 96, + "originalText": 3077, + "width": 102.57, }, Object { - "actualText": "5343", + "actualText": "3551", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "5343", - ], - "originalText": 5343, - "width": 96, - }, - Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 64, - "multiLineActualTexts": Array [ - "-", + "3551", ], - "originalText": "-", - "width": 96, + "originalText": 3551, + "width": 102.57, }, Object { - "actualText": "2451", + "actualText": "352", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "2451", + "352", ], - "originalText": 2451, - "width": 96, + "originalText": 352, + "width": 102.57, }, ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 1`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 61, + "height": 30, "multiLineActualTexts": Array [ "序号", ], @@ -8857,51 +9029,59 @@ Array [ "width": 80, }, Object { - "actualText": "省份/城市城市城市城市城市城市...", - "actualTextHeight": 48, - "actualTextWidth": 184, - "height": 61, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "省份/城市城", - "市城市城市", - "城市城市...", + "省份", ], - "originalText": "省份/城市城市城市城市城市城市城市城市城市城市城市城市", - "width": 100, + "originalText": "省份", + "width": 96, + }, + Object { + "actualText": "城市城@@@", + "actualTextHeight": 16, + "actualTextWidth": 72, + "height": 30, + "multiLineActualTexts": Array [ + "城市城@@@", + ], + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 96, }, Object { "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 32, - "actualTextWidth": 242, - "height": 64, + "actualTextHeight": 16, + "actualTextWidth": 241, + "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类别类别类别", - "类别类别类别类别", + "类别类别类别类别类别类别类别类别类别类别", ], "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 180, + "width": 272, }, Object { "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "子类别", ], "originalText": "子类别", - "width": 180, + "width": 272, }, ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 2`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 128, + "height": 120, "multiLineActualTexts": Array [ "1", ], @@ -8912,7 +9092,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 150, + "height": 30, "multiLineActualTexts": Array [ "2", ], @@ -8923,7 +9103,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 128, + "height": 120, "multiLineActualTexts": Array [ "3", ], @@ -8933,367 +9113,248 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 3`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 3`] = ` Array [ - Object { - "actualText": "纸张纸张纸张纸张纸张", - "actualTextHeight": 32, - "actualTextWidth": 122, - "height": 64, - "multiLineActualTexts": Array [ - "纸张纸张纸张纸", - "张纸张", - ], - "originalText": "纸张纸张纸张纸张纸张", - "width": 103, - }, - Object { - "actualText": "-", - "actualTextHeight": 16, - "actualTextWidth": 4, - "height": 64, - "multiLineActualTexts": Array [ - "-", - ], - "originalText": "-", - "width": 103, - }, - Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, - "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", - ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103, - }, Object { "actualText": "家具", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "家具", ], "originalText": "家具", - "width": 206, + "width": 192, }, Object { "actualText": "桌子", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "桌子", ], "originalText": "桌子", - "width": 103, + "width": 96, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, + "actualText": "数量数@@@", + "actualTextHeight": 15, + "actualTextWidth": 73, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", + "数量数@@@", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103, + "width": 96, }, Object { "actualText": "沙发", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "沙发", ], "originalText": "沙发", - "width": 103, + "width": 96, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, + "actualText": "数量数@@@", + "actualTextHeight": 15, + "actualTextWidth": 73, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", + "数量数@@@", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103, + "width": 96, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 4`] = ` +Array [ Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "浙江省", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 120, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具...", + "浙江省", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 103, + "originalText": "浙江省", + "width": 96, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "浙江省@@@", + "actualTextHeight": 16, + "actualTextWidth": 72, + "height": 30, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子...", + "浙江省@@@", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "width": 103, + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 96, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, + "actualText": "四川省", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 120, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", - ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103, - }, - Object { - "actualText": "办公用品", - "actualTextHeight": 16, - "actualTextWidth": 49, - "height": 64, - "multiLineActualTexts": Array [ - "办公用品", - ], - "originalText": "办公用品", - "width": 206, - }, - Object { - "actualText": "笔", - "actualTextHeight": 16, - "actualTextWidth": 13, - "height": 64, - "multiLineActualTexts": Array [ - "笔", - ], - "originalText": "笔", - "width": 103, - }, - Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, - "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", - ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103, - }, - Object { - "actualText": "纸张", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 64, - "multiLineActualTexts": Array [ - "纸张", - ], - "originalText": "纸张", - "width": 103, - }, - Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, - "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", + "四川省", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103, + "originalText": "四川省", + "width": 96, }, ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 4`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 5`] = ` Array [ Object { - "actualText": "浙江浙江浙江浙江浙江浙江浙江...", - "actualTextHeight": 48, - "actualTextWidth": 181, - "height": 64, + "actualText": "236723@@@", + "actualTextHeight": 15, + "actualTextWidth": 77, + "height": 30, "multiLineActualTexts": Array [ - "浙江浙江浙", - "江浙江浙江", - "浙江浙江...", + "236723@@@", ], - "originalText": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江", - "width": 100, + "originalText": 236723672361111, + "width": 96, }, Object { - "actualText": "杭州杭州杭州杭州", - "actualTextHeight": 30, - "actualTextWidth": 98, - "height": 64, + "actualText": "3877", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "杭州杭州杭", - "州杭州", + "3877", ], - "originalText": "杭州杭州杭州杭州", - "width": 100, + "originalText": 3877, + "width": 96, }, Object { - "actualText": "浙江省", - "actualTextHeight": 16, - "actualTextWidth": 37, + "actualText": "4342", + "actualTextHeight": 15, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "4342", ], - "originalText": "浙江省", - "width": 100, + "originalText": 4342, + "width": 96, }, Object { - "actualText": "绍兴市", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 4, "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "-", ], - "originalText": "绍兴市", - "width": 100, + "originalText": "-", + "width": 96, }, Object { - "actualText": "宁波市", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 4, "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "-", ], - "originalText": "宁波市", - "width": 100, + "originalText": "-", + "width": 96, }, Object { - "actualText": "舟山市", + "actualText": "1723", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "舟山市", + "1723", ], - "originalText": "舟山市", - "width": 100, + "originalText": 1723, + "width": 96, }, Object { - "actualText": "杭州市", + "actualText": "1822", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "杭州市", + "1822", ], - "originalText": "杭州市", - "width": 100, + "originalText": 1822, + "width": 96, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江...", - "actualTextHeight": 48, - "actualTextWidth": 181, - "height": 64, + "actualText": "1943", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "浙江省浙江", - "省浙江省浙", - "江省浙江...", + "1943", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 100, + "originalText": 1943, + "width": 96, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州...", - "actualTextHeight": 45, - "actualTextWidth": 181, - "height": 64, + "actualText": "2330", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "杭州市杭州", - "市杭州市杭", - "州市杭州...", + "2330", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "width": 100, - }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 5`] = ` -Array [ - Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 64, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "originalText": 2330, + "width": 96, }, Object { - "actualText": "-", + "actualText": "632", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 64, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "-", + "632", ], - "originalText": "-", - "width": 103, + "originalText": 632, + "width": 96, }, Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, + "actualText": "7234", + "actualTextHeight": 15, + "actualTextWidth": 27, "height": 30, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "multiLineActualTexts": Array [ + "7234", + ], + "originalText": 7234, + "width": 96, }, Object { - "actualText": "-", + "actualText": "834", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "-", + "834", ], - "originalText": "-", - "width": 103, + "originalText": 834, + "width": 96, }, Object { - "actualText": "-", + "actualText": "5343", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "-", + "5343", ], - "originalText": "-", - "width": 103, + "originalText": 5343, + "width": 96, }, Object { "actualText": "-", @@ -9304,101 +9365,2617 @@ Array [ "-", ], "originalText": "-", - "width": 103, + "width": 96, }, Object { - "actualText": "-", + "actualText": "2451", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "-", + "2451", ], - "originalText": "-", - "width": 103, + "originalText": 2451, + "width": 96, }, Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, + "actualText": "2244", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2244", + ], + "originalText": 2244, + "width": 96, + }, + Object { + "actualText": "2333", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2333", + ], + "originalText": 2333, + "width": 96, + }, + Object { + "actualText": "2445", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2445", + ], + "originalText": 2445, + "width": 96, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 1`] = ` +Array [ + Object { + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 61, + "multiLineActualTexts": Array [ + "序号", + ], + "originalText": "序号", + "width": 80, + }, + Object { + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 61, + "multiLineActualTexts": Array [ + "省份", + ], + "originalText": "省份", + "width": 96, + }, + Object { + "actualText": "城市城市城市城市城市城市城市城市城...", + "actualTextHeight": 48, + "actualTextWidth": 217, + "height": 61, + "multiLineActualTexts": Array [ + "城市城市城市", + "城市城市城市", + "城市城市城...", + ], + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 96, + }, + Object { + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 16, + "actualTextWidth": 241, "height": 64, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "multiLineActualTexts": Array [ + "类别类别类别类别类别类别类别类别类别类别", + ], + "originalText": "类别类别类别类别类别类别类别类别类别类别", + "width": 272, + }, + Object { + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 64, + "multiLineActualTexts": Array [ + "子类别", + ], + "originalText": "子类别", + "width": 272, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 2`] = ` +Array [ + Object { + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 120, + "multiLineActualTexts": Array [ + "1", + ], + "originalText": "1", + "width": 80, + }, + Object { + "actualText": "2", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 64, + "multiLineActualTexts": Array [ + "2", + ], + "originalText": "2", + "width": 80, + }, + Object { + "actualText": "3", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 120, + "multiLineActualTexts": Array [ + "3", + ], + "originalText": "3", + "width": 80, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 3`] = ` +Array [ + Object { + "actualText": "家具", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 192, + }, + Object { + "actualText": "桌子", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, + "multiLineActualTexts": Array [ + "桌子", + ], + "originalText": "桌子", + "width": 96, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数...", + "actualTextHeight": 45, + "actualTextWidth": 217, + "height": 61, + "multiLineActualTexts": Array [ + "数量数量数量", + "数量数量数量", + "数量数量数...", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 96, + }, + Object { + "actualText": "沙发", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, + "multiLineActualTexts": Array [ + "沙发", + ], + "originalText": "沙发", + "width": 96, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数...", + "actualTextHeight": 45, + "actualTextWidth": 217, + "height": 61, + "multiLineActualTexts": Array [ + "数量数量数量", + "数量数量数量", + "数量数量数...", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 96, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 4`] = ` +Array [ + Object { + "actualText": "浙江省", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 120, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 96, + }, + Object { + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江...", + "actualTextHeight": 48, + "actualTextWidth": 217, + "height": 64, + "multiLineActualTexts": Array [ + "浙江省浙江省", + "浙江省浙江省", + "浙江省浙江...", + ], + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 96, + }, + Object { + "actualText": "四川省", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 120, + "multiLineActualTexts": Array [ + "四川省", + ], + "originalText": "四川省", + "width": 96, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 5`] = ` +Array [ + Object { + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 99, + "height": 30, + "multiLineActualTexts": Array [ + "23672367236", + "1111", + ], + "originalText": 236723672361111, + "width": 96, + }, + Object { + "actualText": "3877", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "3877", + ], + "originalText": 3877, + "width": 96, + }, + Object { + "actualText": "4342", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "4342", + ], + "originalText": 4342, + "width": 96, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 96, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 64, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 96, + }, + Object { + "actualText": "1723", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1723", + ], + "originalText": 1723, + "width": 96, + }, + Object { + "actualText": "632", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "632", + ], + "originalText": 632, + "width": 96, + }, + Object { + "actualText": "7234", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "7234", + ], + "originalText": 7234, + "width": 96, + }, + Object { + "actualText": "834", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "834", + ], + "originalText": 834, + "width": 96, + }, + Object { + "actualText": "5343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "5343", + ], + "originalText": 5343, + "width": 96, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 64, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 96, + }, + Object { + "actualText": "2451", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2451", + ], + "originalText": 2451, + "width": 96, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 1`] = ` +Array [ + Object { + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 61, + "multiLineActualTexts": Array [ + "序号", + ], + "originalText": "序号", + "width": 80, + }, + Object { + "actualText": "省份/城市城市城市城市城市城市...", + "actualTextHeight": 48, + "actualTextWidth": 184, + "height": 61, + "multiLineActualTexts": Array [ + "省份/城市城", + "市城市城市", + "城市城市...", + ], + "originalText": "省份/城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 100, + }, + Object { + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 32, + "actualTextWidth": 242, + "height": 64, + "multiLineActualTexts": Array [ + "类别类别类别类别类别类别", + "类别类别类别类别", + ], + "originalText": "类别类别类别类别类别类别类别类别类别类别", + "width": 180, + }, + Object { + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 64, + "multiLineActualTexts": Array [ + "子类别", + ], + "originalText": "子类别", + "width": 180, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 2`] = ` +Array [ + Object { + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 128, + "multiLineActualTexts": Array [ + "1", + ], + "originalText": "1", + "width": 80, + }, + Object { + "actualText": "2", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 150, + "multiLineActualTexts": Array [ + "2", + ], + "originalText": "2", + "width": 80, + }, + Object { + "actualText": "3", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 128, + "multiLineActualTexts": Array [ + "3", + ], + "originalText": "3", + "width": 80, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 3`] = ` +Array [ + Object { + "actualText": "纸张纸张纸张纸张纸张", + "actualTextHeight": 32, + "actualTextWidth": 122, + "height": 64, + "multiLineActualTexts": Array [ + "纸张纸张纸张纸", + "张纸张", + ], + "originalText": "纸张纸张纸张纸张纸张", + "width": 103, + }, + Object { + "actualText": "-", + "actualTextHeight": 16, + "actualTextWidth": 4, + "height": 64, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 103, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, + "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数量", + "数量数量数量...", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 103, + }, + Object { + "actualText": "家具", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 206, + }, + Object { + "actualText": "桌子", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, + "multiLineActualTexts": Array [ + "桌子", + ], + "originalText": "桌子", + "width": 103, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, + "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数量", + "数量数量数量...", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 103, + }, + Object { + "actualText": "沙发", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, + "multiLineActualTexts": Array [ + "沙发", + ], + "originalText": "沙发", + "width": 103, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, + "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数量", + "数量数量数量...", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 103, + }, + Object { + "actualText": "家具家具家具家具家具家具家具家具家具家具...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, + "multiLineActualTexts": Array [ + "家具家具家具家", + "具家具家具家具", + "家具家具家具...", + ], + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 103, + }, + Object { + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, + "multiLineActualTexts": Array [ + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子...", + ], + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 103, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, + "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数量", + "数量数量数量...", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 103, + }, + Object { + "actualText": "办公用品", + "actualTextHeight": 16, + "actualTextWidth": 49, + "height": 64, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 206, + }, + Object { + "actualText": "笔", + "actualTextHeight": 16, + "actualTextWidth": 13, + "height": 64, + "multiLineActualTexts": Array [ + "笔", + ], + "originalText": "笔", + "width": 103, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, + "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数量", + "数量数量数量...", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 103, + }, + Object { + "actualText": "纸张", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, + "multiLineActualTexts": Array [ + "纸张", + ], + "originalText": "纸张", + "width": 103, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, + "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数量", + "数量数量数量...", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 103, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 4`] = ` +Array [ + Object { + "actualText": "浙江浙江浙江浙江浙江浙江浙江...", + "actualTextHeight": 48, + "actualTextWidth": 181, + "height": 64, + "multiLineActualTexts": Array [ + "浙江浙江浙", + "江浙江浙江", + "浙江浙江...", + ], + "originalText": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江", + "width": 100, + }, + Object { + "actualText": "杭州杭州杭州杭州", + "actualTextHeight": 30, + "actualTextWidth": 98, + "height": 64, + "multiLineActualTexts": Array [ + "杭州杭州杭", + "州杭州", + ], + "originalText": "杭州杭州杭州杭州", + "width": 100, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 100, + }, + Object { + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "绍兴市", + ], + "originalText": "绍兴市", + "width": 100, + }, + Object { + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "宁波市", + ], + "originalText": "宁波市", + "width": 100, + }, + Object { + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "舟山市", + ], + "originalText": "舟山市", + "width": 100, + }, + Object { + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "杭州市", + ], + "originalText": "杭州市", + "width": 100, + }, + Object { + "actualText": "浙江省浙江省浙江省浙江省浙江...", + "actualTextHeight": 48, + "actualTextWidth": 181, + "height": 64, + "multiLineActualTexts": Array [ + "浙江省浙江", + "省浙江省浙", + "江省浙江...", + ], + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 100, + }, + Object { + "actualText": "杭州市杭州市杭州市杭州市杭州...", + "actualTextHeight": 45, + "actualTextWidth": 181, + "height": 64, + "multiLineActualTexts": Array [ + "杭州市杭州", + "市杭州市杭", + "州市杭州...", + ], + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 100, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 5`] = ` +Array [ + Object { + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, + "height": 64, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 64, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 103, + }, + Object { + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, + "height": 30, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 103, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 103, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 103, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 103, + }, + Object { + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, + "height": 64, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 64, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 103, + }, + Object { + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, + "height": 64, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 64, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 103, + }, + Object { + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, + "height": 30, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, + }, + Object { + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 30, + "multiLineActualTexts": Array [ + "2367236723611", + "11", + ], + "originalText": 236723672361111, + "width": 103, + }, + Object { + "actualText": "3877", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "3877", + ], + "originalText": 3877, + "width": 103, + }, + Object { + "actualText": "4342", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "4342", + ], + "originalText": 4342, + "width": 103, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 103, + }, + Object { + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, + "height": 64, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 64, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 103, + }, + Object { + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, + "height": 64, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 64, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 103, + }, + Object { + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, + "height": 30, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, + }, + Object { + "actualText": "632", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "632", + ], + "originalText": 632, + "width": 103, + }, + Object { + "actualText": "7234", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "7234", + ], + "originalText": 7234, + "width": 103, + }, + Object { + "actualText": "834", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "834", + ], + "originalText": 834, + "width": 103, + }, + Object { + "actualText": "5343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "5343", + ], + "originalText": 5343, + "width": 103, + }, + Object { + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, + "height": 64, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 64, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 103, + }, + Object { + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, + "height": 64, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 64, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 103, + }, + Object { + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, + "height": 30, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 103, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 103, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 103, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 103, + }, + Object { + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, + "height": 64, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, + }, + Object { + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 64, + "multiLineActualTexts": Array [ + "7789778977897", + "7897789778977", + "89", + ], + "originalText": "7789778977897789778977897789", + "width": 103, + }, + Object { + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, + "height": 64, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 64, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 103, + }, + Object { + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, + "height": 30, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, + }, + Object { + "actualText": "1304", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1304", + ], + "originalText": 1304, + "width": 103, + }, + Object { + "actualText": "1145", + "actualTextHeight": 15, + "actualTextWidth": 26, + "height": 30, + "multiLineActualTexts": Array [ + "1145", + ], + "originalText": 1145, + "width": 103, + }, + Object { + "actualText": "1432", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1432", + ], + "originalText": 1432, + "width": 103, + }, + Object { + "actualText": "945", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "945", + ], + "originalText": 945, + "width": 103, + }, + Object { + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, + "height": 64, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 64, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 103, + }, + Object { + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, + "height": 64, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 64, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 103, + }, + Object { + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, + "height": 30, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, + }, + Object { + "actualText": "1354", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1354", + ], + "originalText": 1354, + "width": 103, + }, + Object { + "actualText": "1523", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1523", + ], + "originalText": 1523, + "width": 103, + }, + Object { + "actualText": "1634", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1634", + ], + "originalText": 1634, + "width": 103, + }, + Object { + "actualText": "1343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1343", + ], + "originalText": 1343, + "width": 103, + }, + Object { + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, + "height": 64, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 64, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 103, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 1`] = ` +Array [ + Object { + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 46, + "multiLineActualTexts": Array [ + "序号", + ], + "originalText": "序号", + "width": 80, + }, + Object { + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 46, + "multiLineActualTexts": Array [ + "省份", + ], + "originalText": "省份", + "width": 96, + }, + Object { + "actualText": "城市城市城市城市城市城...", + "actualTextHeight": 32, + "actualTextWidth": 144, + "height": 46, + "multiLineActualTexts": Array [ + "城市城市城市", + "城市城市城...", + ], + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 96, + }, + Object { + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 16, + "actualTextWidth": 241, + "height": 48, + "multiLineActualTexts": Array [ + "类别类别类别类别类别类别类别类别类别类别", + ], + "originalText": "类别类别类别类别类别类别类别类别类别类别", + "width": 272, + }, + Object { + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 48, + "multiLineActualTexts": Array [ + "子类别", + ], + "originalText": "子类别", + "width": 272, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 2`] = ` +Array [ + Object { + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 120, + "multiLineActualTexts": Array [ + "1", + ], + "originalText": "1", + "width": 80, + }, + Object { + "actualText": "2", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 48, + "multiLineActualTexts": Array [ + "2", + ], + "originalText": "2", + "width": 80, + }, + Object { + "actualText": "3", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 120, + "multiLineActualTexts": Array [ + "3", + ], + "originalText": "3", + "width": 80, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 3`] = ` +Array [ + Object { + "actualText": "家具", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 48, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 192, + }, + Object { + "actualText": "桌子", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 48, + "multiLineActualTexts": Array [ + "桌子", + ], + "originalText": "桌子", + "width": 96, + }, + Object { + "actualText": "数量数量数量数量数量数...", + "actualTextHeight": 30, + "actualTextWidth": 144, + "height": 46, + "multiLineActualTexts": Array [ + "数量数量数量", + "数量数量数...", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 96, + }, + Object { + "actualText": "沙发", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 48, + "multiLineActualTexts": Array [ + "沙发", + ], + "originalText": "沙发", + "width": 96, + }, + Object { + "actualText": "数量数量数量数量数量数...", + "actualTextHeight": 30, + "actualTextWidth": 144, + "height": 46, + "multiLineActualTexts": Array [ + "数量数量数量", + "数量数量数...", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 96, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 4`] = ` +Array [ + Object { + "actualText": "浙江省", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 120, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 96, + }, + Object { + "actualText": "浙江省浙江省浙江省浙江...", + "actualTextHeight": 32, + "actualTextWidth": 144, + "height": 48, + "multiLineActualTexts": Array [ + "浙江省浙江省", + "浙江省浙江...", + ], + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 96, + }, + Object { + "actualText": "四川省", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 120, + "multiLineActualTexts": Array [ + "四川省", + ], + "originalText": "四川省", + "width": 96, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 5`] = ` +Array [ + Object { + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 99, + "height": 30, + "multiLineActualTexts": Array [ + "23672367236", + "1111", + ], + "originalText": 236723672361111, + "width": 96, + }, + Object { + "actualText": "3877", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "3877", + ], + "originalText": 3877, + "width": 96, + }, + Object { + "actualText": "4342", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "4342", + ], + "originalText": 4342, + "width": 96, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 96, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 48, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 96, + }, + Object { + "actualText": "1723", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1723", + ], + "originalText": 1723, + "width": 96, + }, + Object { + "actualText": "1822", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1822", + ], + "originalText": 1822, + "width": 96, + }, + Object { + "actualText": "1943", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1943", + ], + "originalText": 1943, + "width": 96, + }, + Object { + "actualText": "632", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "632", + ], + "originalText": 632, + "width": 96, + }, + Object { + "actualText": "7234", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "7234", + ], + "originalText": 7234, + "width": 96, + }, + Object { + "actualText": "834", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "834", + ], + "originalText": 834, + "width": 96, + }, + Object { + "actualText": "5343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "5343", + ], + "originalText": 5343, + "width": 96, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 48, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 96, + }, + Object { + "actualText": "2451", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2451", + ], + "originalText": 2451, + "width": 96, + }, + Object { + "actualText": "2244", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2244", + ], + "originalText": 2244, + "width": 96, + }, + Object { + "actualText": "2333", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2333", + ], + "originalText": 2333, + "width": 96, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should update col height if corner header have more lines of text than column header 1`] = ` +Array [ + Object { + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "序号", + ], + "originalText": "序号", + "width": 80, + }, + Object { + "actualText": "province", + "actualTextHeight": 16, + "actualTextWidth": 51, + "height": 30, + "multiLineActualTexts": Array [ + "province", + ], + "originalText": "province", + "width": 179.5, + }, + Object { + "actualText": "城市城市城市", + "actualTextHeight": 48, + "actualTextWidth": 75, + "height": 30, + "multiLineActualTexts": Array [ + "城市", + "城市", + "城市", + ], + "originalText": "城市 +城市 +城市", + "width": 179.5, + }, + Object { + "actualText": "类型类型类型类型", + "actualTextHeight": 64, + "actualTextWidth": 100, + "height": 30, + "multiLineActualTexts": Array [ + "类型", + "类型", + "类型", + "类型", + ], + "originalText": "类型 +类型 +类型 +类型", + "width": 439, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should update col height if corner header have more lines of text than column header 2`] = ` +Array [ + Object { + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 60, + "multiLineActualTexts": Array [ + "1", + ], + "originalText": "1", + "width": 80, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should update col height if corner header have more lines of text than column header 3`] = ` +Array [ + Object { + "actualText": "笔", + "actualTextHeight": 16, + "actualTextWidth": 13, + "height": 30, + "multiLineActualTexts": Array [ + "笔", + ], + "originalText": "笔", + "width": 359, + }, + Object { + "actualText": "price", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "price", + ], + "originalText": "price", + "width": 179.5, + }, + Object { + "actualText": "cost", + "actualTextHeight": 15, + "actualTextWidth": 23, + "height": 30, + "multiLineActualTexts": Array [ + "cost", + ], + "originalText": "cost", + "width": 179.5, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should update col height if corner header have more lines of text than column header 4`] = ` +Array [ + Object { + "actualText": "浙江", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 60, + "multiLineActualTexts": Array [ + "浙江", + ], + "originalText": "浙江", + "width": 179.5, + }, + Object { + "actualText": "义乌", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "义乌", + ], + "originalText": "义乌", + "width": 179.5, + }, + Object { + "actualText": "杭州", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "杭州", + ], + "originalText": "杭州", + "width": 179.5, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should update col height if corner header have more lines of text than column header 5`] = ` +Array [ + Object { + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "1", + ], + "originalText": 1, + "width": 179.5, + }, + Object { + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "1", + ], + "originalText": 1, + "width": 179.5, + }, + Object { + "actualText": "2", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "2", + ], + "originalText": 2, + "width": 179.5, + }, + Object { + "actualText": "2", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "2", + ], + "originalText": 2, + "width": 179.5, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 1`] = ` +Array [ + Object { + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 76, + "multiLineActualTexts": Array [ + "序号", + ], + "originalText": "序号", + "width": 80, + }, + Object { + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 76, + "multiLineActualTexts": Array [ + "省份", + ], + "originalText": "省份", + "width": 102.57, + }, + Object { + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 64, + "actualTextWidth": 292, + "height": 76, + "multiLineActualTexts": Array [ + "城市城市城市城", + "市城市城市城市", + "城市城市城市城", + "市城市", + ], + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 102.57, + }, + Object { + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 16, + "actualTextWidth": 241, + "height": 80, + "multiLineActualTexts": Array [ + "类别类别类别类别类别类别类别类别类别类别", + ], + "originalText": "类别类别类别类别类别类别类别类别类别类别", + "width": 285.14, + }, + Object { + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 96, + "multiLineActualTexts": Array [ + "子类别", + ], + "originalText": "子类别", + "width": 285.14, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 2`] = ` +Array [ + Object { + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 120, + "multiLineActualTexts": Array [ + "1", + ], + "originalText": "1", + "width": 80, + }, + Object { + "actualText": "2", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 96, + "multiLineActualTexts": Array [ + "2", + ], + "originalText": "2", + "width": 80, + }, + Object { + "actualText": "3", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 120, + "multiLineActualTexts": Array [ + "3", + ], + "originalText": "3", + "width": 80, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 3`] = ` +Array [ + Object { + "actualText": "家具", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 205.14, + }, + Object { + "actualText": "桌子", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 96, + "multiLineActualTexts": Array [ + "桌子", + ], + "originalText": "桌子", + "width": 102.57, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 60, + "actualTextWidth": 268, + "height": 76, + "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 102.57, + }, + Object { + "actualText": "沙发", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 96, + "multiLineActualTexts": Array [ + "沙发", + ], + "originalText": "沙发", + "width": 102.57, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 60, + "actualTextWidth": 268, + "height": 76, + "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 102.57, + }, + Object { + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualTextHeight": 64, + "actualTextWidth": 340, + "height": 80, + "multiLineActualTexts": Array [ + "家具家具家具家", + "具家具家具家具", + "家具家具家具家", + "具家具家具家具", + ], + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 102.57, + }, + Object { + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "actualTextHeight": 80, + "actualTextWidth": 365, + "height": 96, + "multiLineActualTexts": Array [ + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子", + ], + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 102.57, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 60, + "actualTextWidth": 268, + "height": 76, + "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 102.57, + }, + Object { + "actualText": "办公用品", + "actualTextHeight": 16, + "actualTextWidth": 49, + "height": 80, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 205.14, + }, + Object { + "actualText": "笔", + "actualTextHeight": 16, + "actualTextWidth": 13, + "height": 96, + "multiLineActualTexts": Array [ + "笔", + ], + "originalText": "笔", + "width": 102.57, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 60, + "actualTextWidth": 268, + "height": 76, + "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 102.57, + }, + Object { + "actualText": "纸张", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 96, + "multiLineActualTexts": Array [ + "纸张", + ], + "originalText": "纸张", + "width": 102.57, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 60, + "actualTextWidth": 268, + "height": 76, + "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", + ], + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 102.57, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 4`] = ` +Array [ + Object { + "actualText": "浙江省", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 120, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 102.57, + }, + Object { + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "绍兴市", + ], + "originalText": "绍兴市", + "width": 102.57, + }, + Object { + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "宁波市", + ], + "originalText": "宁波市", + "width": 102.57, + }, + Object { + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "舟山市", + ], + "originalText": "舟山市", + "width": 102.57, + }, + Object { + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "杭州市", + ], + "originalText": "杭州市", + "width": 102.57, + }, + Object { + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "actualTextHeight": 80, + "actualTextWidth": 365, + "height": 96, + "multiLineActualTexts": Array [ + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江省", + "浙江省浙江省浙", + "江省", + ], + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 102.57, + }, + Object { + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 96, + "multiLineActualTexts": Array [ + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州市", + "杭州市杭州市杭", + "州市", + ], + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 102.57, + }, + Object { + "actualText": "四川省", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 120, + "multiLineActualTexts": Array [ + "四川省", + ], + "originalText": "四川省", + "width": 102.57, + }, + Object { + "actualText": "成都市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "成都市", + ], + "originalText": "成都市", + "width": 102.57, + }, + Object { + "actualText": "绵阳市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "绵阳市", + ], + "originalText": "绵阳市", + "width": 102.57, + }, + Object { + "actualText": "南充市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "南充市", + ], + "originalText": "南充市", + "width": 102.57, + }, + Object { + "actualText": "乐山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "乐山市", + ], + "originalText": "乐山市", + "width": 102.57, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 5`] = ` +Array [ + Object { + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 30, + "multiLineActualTexts": Array [ + "236723672361", + "111", + ], + "originalText": 236723672361111, + "width": 102.57, + }, + Object { + "actualText": "3877", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "3877", + ], + "originalText": 3877, + "width": 102.57, + }, + Object { + "actualText": "4342", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "4342", + ], + "originalText": 4342, + "width": 102.57, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 102.57, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 96, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 102.57, + }, + Object { + "actualText": "1723", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1723", + ], + "originalText": 1723, + "width": 102.57, + }, + Object { + "actualText": "1822", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1822", + ], + "originalText": 1822, + "width": 102.57, + }, + Object { + "actualText": "1943", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1943", + ], + "originalText": 1943, + "width": 102.57, + }, + Object { + "actualText": "2330", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2330", + ], + "originalText": 2330, + "width": 102.57, + }, + Object { + "actualText": "632", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "632", + ], + "originalText": 632, + "width": 102.57, + }, + Object { + "actualText": "7234", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "7234", + ], + "originalText": 7234, + "width": 102.57, + }, + Object { + "actualText": "834", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "834", + ], + "originalText": 834, + "width": 102.57, + }, + Object { + "actualText": "5343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "5343", + ], + "originalText": 5343, + "width": 102.57, + }, + Object { + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 96, + "multiLineActualTexts": Array [ + "-", + ], + "originalText": "-", + "width": 102.57, + }, + Object { + "actualText": "2451", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2451", + ], + "originalText": 2451, + "width": 102.57, + }, + Object { + "actualText": "2244", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2244", + ], + "originalText": 2244, + "width": 102.57, + }, + Object { + "actualText": "2333", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2333", + ], + "originalText": 2333, + "width": 102.57, + }, + Object { + "actualText": "2445", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2445", + ], + "originalText": 2445, + "width": 102.57, }, Object { "actualText": "-", "actualTextHeight": 15, "actualTextWidth": 4, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "-", ], "originalText": "-", - "width": 103, - }, - Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 64, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "width": 102.57, }, Object { "actualText": "-", "actualTextHeight": 15, "actualTextWidth": 4, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "-", ], "originalText": "-", - "width": 103, - }, - Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 30, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "width": 102.57, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "-", ], - "originalText": 236723672361111, - "width": 103, + "originalText": "-", + "width": 102.57, }, Object { - "actualText": "3877", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 4, "height": 30, "multiLineActualTexts": Array [ - "3877", + "-", ], - "originalText": 3877, - "width": 103, + "originalText": "-", + "width": 102.57, }, Object { - "actualText": "4342", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 96, "multiLineActualTexts": Array [ - "4342", + "778977897789", + "778977897789", + "7789", ], - "originalText": 4342, - "width": 103, + "originalText": "7789778977897789778977897789", + "width": 102.57, }, Object { "actualText": "-", @@ -9409,412 +11986,358 @@ Array [ "-", ], "originalText": "-", - "width": 103, - }, - Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 64, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "width": 102.57, }, Object { "actualText": "-", "actualTextHeight": 15, "actualTextWidth": 4, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "-", ], "originalText": "-", - "width": 103, - }, - Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 64, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "width": 102.57, }, Object { "actualText": "-", "actualTextHeight": 15, "actualTextWidth": 4, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "-", ], "originalText": "-", - "width": 103, - }, - Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 30, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "width": 102.57, }, Object { - "actualText": "632", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 4, "height": 30, "multiLineActualTexts": Array [ - "632", + "-", ], - "originalText": 632, - "width": 103, + "originalText": "-", + "width": 102.57, }, Object { - "actualText": "7234", + "actualText": "1304", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "7234", + "1304", ], - "originalText": 7234, - "width": 103, + "originalText": 1304, + "width": 102.57, }, Object { - "actualText": "834", + "actualText": "1145", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 26, "height": 30, "multiLineActualTexts": Array [ - "834", + "1145", ], - "originalText": 834, - "width": 103, + "originalText": 1145, + "width": 102.57, }, Object { - "actualText": "5343", + "actualText": "1432", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "5343", + "1432", ], - "originalText": 5343, - "width": 103, - }, - Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 64, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "originalText": 1432, + "width": 102.57, }, Object { - "actualText": "-", + "actualText": "945", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 64, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "-", + "945", ], - "originalText": "-", - "width": 103, - }, - Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 64, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "originalText": 945, + "width": 102.57, }, Object { "actualText": "-", "actualTextHeight": 15, "actualTextWidth": 4, - "height": 64, + "height": 96, "multiLineActualTexts": Array [ "-", ], "originalText": "-", - "width": 103, + "width": 102.57, }, Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, + "actualText": "2335", + "actualTextHeight": 15, + "actualTextWidth": 27, "height": 30, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "multiLineActualTexts": Array [ + "2335", + ], + "originalText": 2335, + "width": 102.57, }, Object { - "actualText": "-", + "actualText": "245", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "-", + "245", ], - "originalText": "-", - "width": 103, + "originalText": 245, + "width": 102.57, }, Object { - "actualText": "-", + "actualText": "2457", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "-", + "2457", ], - "originalText": "-", - "width": 103, + "originalText": 2457, + "width": 102.57, }, Object { - "actualText": "-", + "actualText": "2458", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "-", + "2458", ], - "originalText": "-", - "width": 103, + "originalText": 2458, + "width": 102.57, }, Object { - "actualText": "-", + "actualText": "1354", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "-", + "1354", ], - "originalText": "-", - "width": 103, + "originalText": 1354, + "width": 102.57, }, Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 64, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "actualText": "1523", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1523", + ], + "originalText": 1523, + "width": 102.57, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 64, + "actualText": "1634", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", + "1634", ], - "originalText": "7789778977897789778977897789", - "width": 103, + "originalText": 1634, + "width": 102.57, }, Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 64, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "actualText": "1343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1343", + ], + "originalText": 1343, + "width": 102.57, }, Object { "actualText": "-", "actualTextHeight": 15, "actualTextWidth": 4, - "height": 64, + "height": 96, "multiLineActualTexts": Array [ "-", ], "originalText": "-", - "width": 103, - }, - Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 30, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "width": 102.57, }, Object { - "actualText": "1304", + "actualText": "4004", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "1304", + "4004", ], - "originalText": 1304, - "width": 103, + "originalText": 4004, + "width": 102.57, }, Object { - "actualText": "1145", + "actualText": "3077", "actualTextHeight": 15, - "actualTextWidth": 26, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "1145", + "3077", ], - "originalText": 1145, - "width": 103, + "originalText": 3077, + "width": 102.57, }, Object { - "actualText": "1432", + "actualText": "3551", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "1432", + "3551", ], - "originalText": 1432, - "width": 103, + "originalText": 3551, + "width": 102.57, }, Object { - "actualText": "945", + "actualText": "352", "actualTextHeight": 15, "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "945", + "352", ], - "originalText": 945, - "width": 103, + "originalText": 352, + "width": 102.57, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 1`] = ` +Array [ Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 64, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, + "multiLineActualTexts": Array [ + "序号", + ], + "originalText": "序号", + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 2`] = ` +Array [ Object { - "actualText": "-", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 64, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "-", + "1", ], - "originalText": "-", - "width": 103, - }, - Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 64, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "originalText": 1, + "width": 80, }, Object { - "actualText": "-", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 64, + "actualTextWidth": 7, + "height": 76, "multiLineActualTexts": Array [ - "-", + "2", ], - "originalText": "-", - "width": 103, + "originalText": 2, + "width": 80, }, Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 30, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "actualText": "3", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 46, + "multiLineActualTexts": Array [ + "3", + ], + "originalText": 3, + "width": 80, }, Object { - "actualText": "1354", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "1354", + "4", ], - "originalText": 1354, - "width": 103, + "originalText": 4, + "width": 80, }, Object { - "actualText": "1523", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "1523", + "5", ], - "originalText": 1523, - "width": 103, + "originalText": 5, + "width": 80, }, Object { - "actualText": "1634", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "1634", + "6", ], - "originalText": 1634, - "width": 103, + "originalText": 6, + "width": 80, }, Object { - "actualText": "1343", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "1343", + "7", ], - "originalText": 1343, - "width": 103, - }, - Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 64, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "originalText": 7, + "width": 80, }, Object { - "actualText": "-", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 64, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "-", + "8", ], - "originalText": "-", - "width": 103, + "originalText": 8, + "width": 80, }, ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 46, + "height": 80, "multiLineActualTexts": Array [ "序号", ], @@ -9822,1294 +12345,1357 @@ Array [ "width": 80, }, Object { - "actualText": "省份", + "actualText": "省份省份省份省份省份省份省份省份省份省份省份省份省份省...", + "actualTextHeight": 64, + "actualTextWidth": 338, + "height": 80, + "multiLineActualTexts": Array [ + "省份省份省份省", + "份省份省份省份", + "省份省份省份省", + "份省份省份省...", + ], + "originalText": "省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份", + "width": 103.8, + }, + Object { + "actualText": "city", "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 21, + "height": 80, "multiLineActualTexts": Array [ - "省份", + "city", ], - "originalText": "省份", - "width": 96, + "originalText": "city", + "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城...", - "actualTextHeight": 32, - "actualTextWidth": 144, - "height": 46, + "actualText": "type", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, "multiLineActualTexts": Array [ - "城市城市城市", - "城市城市城...", + "type", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "width": 96, + "originalText": "type", + "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualText": "sub_type", "actualTextHeight": 16, - "actualTextWidth": 241, - "height": 48, + "actualTextWidth": 53, + "height": 80, "multiLineActualTexts": Array [ - "类别类别类别类别类别类别类别类别类别类别", + "sub_type", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 272, + "originalText": "sub_type", + "width": 103.8, }, Object { - "actualText": "子类别", + "actualText": "number", "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 48, + "actualTextWidth": 45, + "height": 80, "multiLineActualTexts": Array [ - "子类别", + "number", ], - "originalText": "子类别", - "width": 272, + "originalText": "number", + "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 120, + "height": 46, "multiLineActualTexts": Array [ "1", ], - "originalText": "1", + "originalText": 1, "width": 80, }, Object { "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 48, + "height": 76, "multiLineActualTexts": Array [ "2", ], - "originalText": "2", + "originalText": 2, "width": 80, }, Object { "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 120, + "height": 46, "multiLineActualTexts": Array [ "3", ], - "originalText": "3", + "originalText": 3, "width": 80, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 3`] = ` -Array [ Object { - "actualText": "家具", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 48, + "actualText": "4", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "4", ], - "originalText": "家具", - "width": 192, + "originalText": 4, + "width": 80, }, Object { - "actualText": "桌子", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 48, + "actualText": "5", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "5", ], - "originalText": "桌子", - "width": 96, + "originalText": 5, + "width": 80, }, Object { - "actualText": "数量数量数量数量数量数...", - "actualTextHeight": 30, - "actualTextWidth": 144, - "height": 46, + "actualText": "6", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量", - "数量数量数...", + "6", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 96, + "originalText": 6, + "width": 80, }, Object { - "actualText": "沙发", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 48, + "actualText": "7", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "沙发", + "7", ], - "originalText": "沙发", - "width": 96, + "originalText": 7, + "width": 80, }, Object { - "actualText": "数量数量数量数量数量数...", - "actualTextHeight": 30, - "actualTextWidth": 144, - "height": 46, + "actualText": "8", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量", - "数量数量数...", + "8", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 96, + "originalText": 8, + "width": 80, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 4`] = ` -Array [ Object { "actualText": "浙江省", - "actualTextHeight": 16, + "actualTextHeight": 15, "actualTextWidth": 37, - "height": 120, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], "originalText": "浙江省", - "width": 96, + "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江...", - "actualTextHeight": 32, - "actualTextWidth": 144, - "height": 48, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, "multiLineActualTexts": Array [ - "浙江省浙江省", - "浙江省浙江...", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江省", + "浙江省浙江省...", ], "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 96, + "width": 103.8, }, Object { - "actualText": "四川省", - "actualTextHeight": 16, + "actualText": "浙江省", + "actualTextHeight": 15, "actualTextWidth": 37, - "height": 120, + "height": 46, "multiLineActualTexts": Array [ - "四川省", + "浙江省", ], - "originalText": "四川省", - "width": 96, + "originalText": "浙江省", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 5`] = ` -Array [ Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 99, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "23672367236", - "1111", + "浙江省", ], - "originalText": 236723672361111, - "width": 96, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "3877", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "3877", + "浙江省", ], - "originalText": 3877, - "width": 96, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "4342", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "4342", + "浙江省", ], - "originalText": 4342, - "width": 96, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "-", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "-", + "浙江省", ], - "originalText": "-", - "width": 96, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "-", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 48, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "-", + "浙江省", ], - "originalText": "-", - "width": 96, + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 46, + "multiLineActualTexts": Array [ + "绍兴市", + ], + "originalText": "绍兴市", + "width": 103.8, + }, + Object { + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, + "multiLineActualTexts": Array [ + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州市", + "杭州市杭州市...", + ], + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 103.8, + }, + Object { + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 46, + "multiLineActualTexts": Array [ + "绍兴市", + ], + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "1723", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "1723", + "宁波市", ], - "originalText": 1723, - "width": 96, + "originalText": "宁波市", + "width": 103.8, }, Object { - "actualText": "1822", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "1822", + "舟山市", ], - "originalText": 1822, - "width": 96, + "originalText": "舟山市", + "width": 103.8, }, Object { - "actualText": "1943", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "1943", + "杭州市", ], - "originalText": 1943, - "width": 96, + "originalText": "杭州市", + "width": 103.8, }, Object { - "actualText": "632", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "632", + "绍兴市", ], - "originalText": 632, - "width": 96, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "7234", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "7234", + "宁波市", ], - "originalText": 7234, - "width": 96, + "originalText": "宁波市", + "width": 103.8, }, Object { - "actualText": "834", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "834", + "家具", ], - "originalText": 834, - "width": 96, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "5343", + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualTextHeight": 60, + "actualTextWidth": 340, + "height": 76, + "multiLineActualTexts": Array [ + "家具家具家具家", + "具家具家具家具", + "家具家具家具家", + "具家具家具家具", + ], + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 103.8, + }, + Object { + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "5343", + "家具", ], - "originalText": 5343, - "width": 96, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "-", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 48, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "-", + "家具", ], - "originalText": "-", - "width": 96, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "2451", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "2451", + "家具", ], - "originalText": 2451, - "width": 96, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "2244", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "2244", + "家具", ], - "originalText": 2244, - "width": 96, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "2333", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "2333", + "家具", ], - "originalText": 2333, - "width": 96, + "originalText": "家具", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, + "actualText": "家具", + "actualTextHeight": 15, "actualTextWidth": 25, - "height": 76, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "家具", ], - "originalText": "序号", - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "省份", - "actualTextHeight": 16, + "actualText": "桌子", + "actualTextHeight": 15, "actualTextWidth": 25, - "height": 76, + "height": 46, "multiLineActualTexts": Array [ - "省份", + "桌子", ], - "originalText": "省份", - "width": 102.57, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "actualTextHeight": 64, - "actualTextWidth": 292, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...", + "actualTextHeight": 60, + "actualTextWidth": 338, "height": 76, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市城", - "市城市", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子桌", + "子桌子桌子桌...", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "width": 102.57, + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 16, - "actualTextWidth": 241, - "height": 80, + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "类别类别类别类别类别类别类别类别类别类别", + "桌子", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 285.14, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 96, + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "子类别", + "桌子", ], - "originalText": "子类别", - "width": 285.14, + "originalText": "桌子", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 120, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "1", + "桌子", ], - "originalText": "1", - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 96, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "2", + "沙发", ], - "originalText": "2", - "width": 80, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 120, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "3", + "沙发", ], - "originalText": "3", - "width": 80, + "originalText": "沙发", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 3`] = ` -Array [ Object { - "actualText": "家具", - "actualTextHeight": 16, + "actualText": "沙发", + "actualTextHeight": 15, "actualTextWidth": 25, - "height": 80, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "沙发", ], - "originalText": "家具", - "width": 205.14, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "桌子", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 96, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "桌子", + "2367236723611", + "11", ], - "originalText": "桌子", - "width": 102.57, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 60, - "actualTextWidth": 268, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, "height": 76, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量数", - "量", + "7789778977897", + "7897789778977", + "89", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 102.57, + "originalText": "7789778977897789778977897789", + "width": 103.8, }, Object { - "actualText": "沙发", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 96, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "沙发", + "2367236723611", + "11", ], - "originalText": "沙发", - "width": 102.57, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 60, - "actualTextWidth": 268, - "height": 76, + "actualText": "3877", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量数", - "量", + "3877", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 102.57, + "originalText": 3877, + "width": 103.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "actualTextHeight": 64, - "actualTextWidth": 340, - "height": 80, + "actualText": "4342", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具家", - "具家具家具家具", + "4342", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 102.57, + "originalText": 4342, + "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "actualTextHeight": 80, - "actualTextWidth": 365, - "height": 96, + "actualText": "5343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子", + "5343", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "width": 102.57, + "originalText": 5343, + "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 60, - "actualTextWidth": 268, - "height": 76, + "actualText": "632", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量数", - "量", + "632", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 102.57, + "originalText": 632, + "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "7234", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "7234", + ], + "originalText": 7234, + "width": 103.8, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 1`] = ` +Array [ + Object { + "actualText": "序号", "actualTextHeight": 16, - "actualTextWidth": 49, + "actualTextWidth": 25, "height": 80, "multiLineActualTexts": Array [ - "办公用品", + "序号", ], - "originalText": "办公用品", - "width": 205.14, + "originalText": "序号", + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 2`] = ` +Array [ Object { - "actualText": "笔", - "actualTextHeight": 16, - "actualTextWidth": 13, - "height": 96, + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "笔", + "1", ], - "originalText": "笔", - "width": 102.57, + "originalText": 1, + "width": 80, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 60, - "actualTextWidth": 268, + "actualText": "2", + "actualTextHeight": 15, + "actualTextWidth": 7, "height": 76, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量数", - "量", + "2", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 102.57, + "originalText": 2, + "width": 80, }, Object { - "actualText": "纸张", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 96, + "actualText": "3", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "纸张", + "3", ], - "originalText": "纸张", - "width": 102.57, + "originalText": 3, + "width": 80, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 60, - "actualTextWidth": 268, - "height": 76, + "actualText": "4", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量数", - "量", + "4", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 102.57, + "originalText": 4, + "width": 80, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 4`] = ` -Array [ Object { - "actualText": "浙江省", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 120, + "actualText": "5", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "5", ], - "originalText": "浙江省", - "width": 102.57, + "originalText": 5, + "width": 80, }, Object { - "actualText": "绍兴市", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "6", ], - "originalText": "绍兴市", - "width": 102.57, + "originalText": 6, + "width": 80, }, Object { - "actualText": "宁波市", + "actualText": "7", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "7", + ], + "originalText": 7, + "width": 80, + }, + Object { + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "8", ], - "originalText": "宁波市", - "width": 102.57, + "originalText": 8, + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 3`] = ` +Array [ Object { - "actualText": "舟山市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, "multiLineActualTexts": Array [ - "舟山市", + "序号", ], - "originalText": "舟山市", - "width": 102.57, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "杭州市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, "multiLineActualTexts": Array [ - "杭州市", + "省份", ], - "originalText": "杭州市", - "width": 102.57, + "originalText": "省份", + "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "actualTextHeight": 80, - "actualTextWidth": 365, - "height": 96, + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 64, + "actualTextWidth": 292, + "height": 80, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江省", - "浙江省浙江省浙", - "江省", + "城市城市城市城", + "市城市城市城市", + "城市城市城市城", + "市城市", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 102.57, + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "actualTextHeight": 75, - "actualTextWidth": 365, - "height": 96, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 80, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭州", - "市杭州市杭州市", - "杭州市杭州市杭", - "州市", + "类别类别类别类", + "别类别类别类别", + "类别类别类别", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "width": 102.57, + "originalText": "类别类别类别类别类别类别类别类别类别类别", + "width": 103.8, }, Object { - "actualText": "四川省", + "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 120, + "height": 80, "multiLineActualTexts": Array [ - "四川省", + "子类别", ], - "originalText": "四川省", - "width": 102.57, + "originalText": "子类别", + "width": 103.8, }, Object { - "actualText": "成都市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 64, + "actualTextWidth": 268, + "height": 80, "multiLineActualTexts": Array [ - "成都市", + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", ], - "originalText": "成都市", - "width": 102.57, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 5`] = ` +Array [ Object { - "actualText": "绵阳市", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "绵阳市", + "1", ], - "originalText": "绵阳市", - "width": 102.57, + "originalText": 1, + "width": 80, }, Object { - "actualText": "南充市", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 76, "multiLineActualTexts": Array [ - "南充市", + "2", ], - "originalText": "南充市", - "width": 102.57, + "originalText": 2, + "width": 80, }, Object { - "actualText": "乐山市", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "乐山市", + "3", ], - "originalText": "乐山市", - "width": 102.57, + "originalText": 3, + "width": 80, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 5`] = ` -Array [ Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, + "actualText": "4", + "actualTextHeight": 15, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "236723672361", - "111", + "4", ], - "originalText": 236723672361111, - "width": 102.57, + "originalText": 4, + "width": 80, }, Object { - "actualText": "3877", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "3877", + "5", ], - "originalText": 3877, - "width": 102.57, + "originalText": 5, + "width": 80, }, Object { - "actualText": "4342", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "4342", + "6", ], - "originalText": 4342, - "width": 102.57, + "originalText": 6, + "width": 80, }, Object { - "actualText": "-", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "-", + "7", ], - "originalText": "-", - "width": 102.57, + "originalText": 7, + "width": 80, }, Object { - "actualText": "-", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 96, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "-", + "8", ], - "originalText": "-", - "width": 102.57, + "originalText": 8, + "width": 80, }, Object { - "actualText": "1723", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "1723", + "浙江省", ], - "originalText": 1723, - "width": 102.57, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "1822", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, "multiLineActualTexts": Array [ - "1822", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江省", + "浙江省浙江省...", ], - "originalText": 1822, - "width": 102.57, + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 103.8, }, Object { - "actualText": "1943", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "1943", + "浙江省", ], - "originalText": 1943, - "width": 102.57, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "2330", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "2330", + "浙江省", ], - "originalText": 2330, - "width": 102.57, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "632", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "632", + "浙江省", ], - "originalText": 632, - "width": 102.57, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "7234", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "7234", + "浙江省", ], - "originalText": 7234, - "width": 102.57, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "834", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "834", + "浙江省", ], - "originalText": 834, - "width": 102.57, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "5343", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "5343", + "浙江省", ], - "originalText": 5343, - "width": 102.57, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "-", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 96, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "-", + "绍兴市", ], - "originalText": "-", - "width": 102.57, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "2451", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, "multiLineActualTexts": Array [ - "2451", + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州市", + "杭州市杭州市...", ], - "originalText": 2451, - "width": 102.57, + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 103.8, }, Object { - "actualText": "2244", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "2244", + "绍兴市", ], - "originalText": 2244, - "width": 102.57, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "2333", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "2333", + "宁波市", ], - "originalText": 2333, - "width": 102.57, + "originalText": "宁波市", + "width": 103.8, }, Object { - "actualText": "2445", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "2445", + "舟山市", ], - "originalText": 2445, - "width": 102.57, + "originalText": "舟山市", + "width": 103.8, }, Object { - "actualText": "-", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "-", + "杭州市", ], - "originalText": "-", - "width": 102.57, + "originalText": "杭州市", + "width": 103.8, }, Object { - "actualText": "-", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "-", + "绍兴市", ], - "originalText": "-", - "width": 102.57, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "-", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "-", + "宁波市", ], - "originalText": "-", - "width": 102.57, + "originalText": "宁波市", + "width": 103.8, }, Object { - "actualText": "-", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 30, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "-", + "家具", ], - "originalText": "-", - "width": 102.57, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 96, + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualTextHeight": 60, + "actualTextWidth": 340, + "height": 76, "multiLineActualTexts": Array [ - "778977897789", - "778977897789", - "7789", + "家具家具家具家", + "具家具家具家具", + "家具家具家具家", + "具家具家具家具", ], - "originalText": "7789778977897789778977897789", - "width": 102.57, + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 103.8, }, Object { - "actualText": "-", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 30, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "-", + "家具", ], - "originalText": "-", - "width": 102.57, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "-", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "-", + "家具", ], - "originalText": "-", - "width": 102.57, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "-", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "-", + "家具", ], - "originalText": "-", - "width": 102.57, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "-", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "-", + "家具", ], - "originalText": "-", - "width": 102.57, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "1304", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "1304", + "家具", ], - "originalText": 1304, - "width": 102.57, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "1145", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 26, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "1145", + "家具", ], - "originalText": 1145, - "width": 102.57, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "1432", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "1432", + "桌子", ], - "originalText": 1432, - "width": 102.57, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "945", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, "multiLineActualTexts": Array [ - "945", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子桌", + "子桌子桌子桌...", ], - "originalText": 945, - "width": 102.57, + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 103.8, }, Object { - "actualText": "-", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 96, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "-", + "桌子", ], - "originalText": "-", - "width": 102.57, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "2335", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "2335", + "桌子", ], - "originalText": 2335, - "width": 102.57, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "245", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "245", + "桌子", ], - "originalText": 245, - "width": 102.57, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "2457", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "2457", + "沙发", ], - "originalText": 2457, - "width": 102.57, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "2458", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "2458", + "沙发", ], - "originalText": 2458, - "width": 102.57, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "1354", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "1354", + "沙发", ], - "originalText": 1354, - "width": 102.57, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "1523", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "1523", + "2367236723611", + "11", ], - "originalText": 1523, - "width": 102.57, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "1634", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 76, "multiLineActualTexts": Array [ - "1634", + "7789778977897", + "7897789778977", + "89", ], - "originalText": 1634, - "width": 102.57, + "originalText": "7789778977897789778977897789", + "width": 103.8, }, Object { - "actualText": "1343", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "1343", + "2367236723611", + "11", ], - "originalText": 1343, - "width": 102.57, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "-", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 96, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "-", + "3877", ], - "originalText": "-", - "width": 102.57, + "originalText": 3877, + "width": 103.8, }, Object { - "actualText": "4004", + "actualText": "4342", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "4004", + "4342", ], - "originalText": 4004, - "width": 102.57, + "originalText": 4342, + "width": 103.8, }, Object { - "actualText": "3077", + "actualText": "5343", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "3077", + "5343", ], - "originalText": 3077, - "width": 102.57, + "originalText": 5343, + "width": 103.8, }, Object { - "actualText": "3551", + "actualText": "632", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "3551", + "632", ], - "originalText": 3551, - "width": 102.57, + "originalText": 632, + "width": 103.8, }, Object { - "actualText": "352", + "actualText": "7234", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "352", + "7234", ], - "originalText": 352, - "width": 102.57, + "originalText": 7234, + "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 1`] = ` Array [ Object { "actualText": "序号", @@ -11125,100 +13711,23 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 360, "multiLineActualTexts": Array [ "1", ], "originalText": 1, "width": 80, }, - Object { - "actualText": "2", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 76, - "multiLineActualTexts": Array [ - "2", - ], - "originalText": 2, - "width": 80, - }, - Object { - "actualText": "3", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, - "multiLineActualTexts": Array [ - "3", - ], - "originalText": 3, - "width": 80, - }, - Object { - "actualText": "4", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "4", - ], - "originalText": 4, - "width": 80, - }, - Object { - "actualText": "5", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "5", - ], - "originalText": 5, - "width": 80, - }, - Object { - "actualText": "6", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "6", - ], - "originalText": 6, - "width": 80, - }, - Object { - "actualText": "7", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "7", - ], - "originalText": 7, - "width": 80, - }, - Object { - "actualText": "8", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "8", - ], - "originalText": 8, - "width": 80, - }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 3`] = ` Array [ Object { "actualText": "序号", @@ -11232,75 +13741,80 @@ Array [ "width": 80, }, Object { - "actualText": "省份省份省份省份省份省份省份省份省份省份省份省份省份省...", - "actualTextHeight": 64, - "actualTextWidth": 338, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, "height": 80, "multiLineActualTexts": Array [ - "省份省份省份省", - "份省份省份省份", - "省份省份省份省", - "份省份省份省...", + "省份", ], - "originalText": "省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份", + "originalText": "省份", "width": 103.8, }, Object { - "actualText": "city", - "actualTextHeight": 16, - "actualTextWidth": 21, + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 64, + "actualTextWidth": 292, "height": 80, "multiLineActualTexts": Array [ - "city", + "城市城市城市城", + "市城市城市城市", + "城市城市城市城", + "市城市", ], - "originalText": "city", + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "type", - "actualTextHeight": 16, - "actualTextWidth": 25, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, "height": 80, "multiLineActualTexts": Array [ - "type", + "类别类别类别类", + "别类别类别类别", + "类别类别类别", ], - "originalText": "type", + "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, }, Object { - "actualText": "sub_type", + "actualText": "子类别", "actualTextHeight": 16, - "actualTextWidth": 53, + "actualTextWidth": 37, "height": 80, "multiLineActualTexts": Array [ - "sub_type", + "子类别", ], - "originalText": "sub_type", + "originalText": "子类别", "width": 103.8, }, Object { - "actualText": "number", - "actualTextHeight": 16, - "actualTextWidth": 45, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 64, + "actualTextWidth": 268, "height": 80, "multiLineActualTexts": Array [ - "number", + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", ], - "originalText": "number", + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 360, "multiLineActualTexts": Array [ "1", ], @@ -11308,247 +13822,281 @@ Array [ "width": 80, }, Object { - "actualText": "2", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 76, + "actualTextWidth": 37, + "height": 360, "multiLineActualTexts": Array [ - "2", + "浙江省", ], - "originalText": 2, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 37, + "height": 360, "multiLineActualTexts": Array [ - "3", + "绍兴市", ], - "originalText": 3, - "width": 80, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 25, + "height": 360, "multiLineActualTexts": Array [ - "4", + "家具", ], - "originalText": 4, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "5", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 25, + "height": 360, "multiLineActualTexts": Array [ - "5", + "桌子", ], - "originalText": 5, - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "6", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 360, "multiLineActualTexts": Array [ - "6", + "2367236723611", + "11", ], - "originalText": 6, - "width": 80, + "originalText": 236723672361111, + "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 6`] = ` +Array [ + 0, + 360, + 436, + 482, + 512, + 542, + 572, + 602, + 632, + 662, + 692, + 722, + 752, + 782, + 812, + 842, + 872, + 902, + 932, + 962, + 992, + 1022, + 1052, + 1082, + 1112, + 1142, + 1172, + 1202, + 1232, + 1262, + 1292, + 1322, + 1352, + 1382, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 1`] = ` +Array [ Object { - "actualText": "7", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, "multiLineActualTexts": Array [ - "7", + "序号", ], - "originalText": 7, + "originalText": "序号", "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 2`] = ` +Array [ Object { - "actualText": "8", + "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 300, "multiLineActualTexts": Array [ - "8", + "1", ], - "originalText": 8, + "originalText": 1, "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...", - "actualTextHeight": 60, - "actualTextWidth": 338, + "actualTextWidth": 7, "height": 76, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江省", - "浙江省浙江省...", - ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "浙江省", + "2", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 2, + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 3`] = ` +Array [ Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, "multiLineActualTexts": Array [ - "浙江省", + "序号", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, "multiLineActualTexts": Array [ - "浙江省", + "省份", ], - "originalText": "浙江省", + "originalText": "省份", "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 64, + "actualTextWidth": 292, + "height": 80, "multiLineActualTexts": Array [ - "浙江省", + "城市城市城市城", + "市城市城市城市", + "城市城市城市城", + "市城市", ], - "originalText": "浙江省", + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 80, "multiLineActualTexts": Array [ - "浙江省", + "类别类别类别类", + "别类别类别类别", + "类别类别类别", ], - "originalText": "浙江省", + "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, }, Object { - "actualText": "绍兴市", - "actualTextHeight": 15, + "actualText": "子类别", + "actualTextHeight": 16, "actualTextWidth": 37, - "height": 46, + "height": 80, "multiLineActualTexts": Array [ - "绍兴市", + "子类别", ], - "originalText": "绍兴市", + "originalText": "子类别", "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 64, + "actualTextWidth": 268, + "height": 80, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭州", - "市杭州市杭州市", - "杭州市杭州市...", + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 5`] = ` +Array [ Object { - "actualText": "绍兴市", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 7, + "height": 300, "multiLineActualTexts": Array [ - "绍兴市", + "1", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "宁波市", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 7, + "height": 76, "multiLineActualTexts": Array [ - "宁波市", + "2", ], - "originalText": "宁波市", - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "舟山市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 300, "multiLineActualTexts": Array [ - "舟山市", + "浙江省", ], - "originalText": "舟山市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "杭州市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, "multiLineActualTexts": Array [ - "杭州市", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江省", + "浙江省浙江省...", ], - "originalText": "杭州市", + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, }, Object { "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 300, "multiLineActualTexts": Array [ "绍兴市", ], @@ -11556,21 +14104,24 @@ Array [ "width": 103.8, }, Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, "multiLineActualTexts": Array [ - "宁波市", + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州市", + "杭州市杭州市...", ], - "originalText": "宁波市", + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 300, "multiLineActualTexts": Array [ "家具", ], @@ -11592,274 +14143,384 @@ Array [ "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 300, "multiLineActualTexts": Array [ - "家具", + "桌子", ], - "originalText": "家具", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, "multiLineActualTexts": Array [ - "家具", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子桌", + "子桌子桌子桌...", ], - "originalText": "家具", + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, }, Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 300, "multiLineActualTexts": Array [ - "家具", + "2367236723611", + "11", ], - "originalText": "家具", + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 76, "multiLineActualTexts": Array [ - "家具", + "7789778977897", + "7897789778977", + "89", ], - "originalText": "家具", + "originalText": "7789778977897789778977897789", "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 6`] = ` +Array [ + 0, + 300, + 376, + 422, + 452, + 482, + 512, + 542, + 572, + 602, + 632, + 662, + 692, + 722, + 752, + 782, + 812, + 842, + 872, + 902, + 932, + 962, + 992, + 1022, + 1052, + 1082, + 1112, + 1142, + 1172, + 1202, + 1232, + 1262, + 1292, + 1322, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 1`] = ` +Array [ Object { - "actualText": "家具", - "actualTextHeight": 15, + "actualText": "序号", + "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 64, "multiLineActualTexts": Array [ - "家具", + "序号", ], - "originalText": "家具", - "width": 103.8, + "originalText": "序号", + "width": 80, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 2`] = ` +Array [ + Object { + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 46, + "multiLineActualTexts": Array [ + "1", + ], + "originalText": 1, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "家具", + "2", ], - "originalText": "家具", - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 7, + "height": 61, "multiLineActualTexts": Array [ - "桌子", + "3", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "actualText": "4", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子桌", - "子桌子桌子桌...", + "4", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "5", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "6", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "7", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 7, + "width": 80, }, Object { - "actualText": "沙发", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "8", ], - "originalText": "沙发", - "width": 103.8, + "originalText": 8, + "width": 80, }, Object { - "actualText": "沙发", + "actualText": "9", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "9", ], - "originalText": "沙发", - "width": 103.8, + "originalText": 9, + "width": 80, }, Object { - "actualText": "沙发", + "actualText": "10", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "10", ], - "originalText": "沙发", - "width": 103.8, + "originalText": 10, + "width": 80, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "11", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", "11", ], - "originalText": 236723672361111, - "width": 103.8, - }, - Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 76, - "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", - ], - "originalText": "7789778977897789778977897789", - "width": 103.8, + "originalText": 11, + "width": 80, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "12", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "12", ], - "originalText": 236723672361111, - "width": 103.8, + "originalText": 12, + "width": 80, }, Object { - "actualText": "3877", + "actualText": "13", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "3877", + "13", ], - "originalText": 3877, - "width": 103.8, + "originalText": 13, + "width": 80, }, Object { - "actualText": "4342", + "actualText": "14", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "4342", + "14", ], - "originalText": 4342, - "width": 103.8, + "originalText": 14, + "width": 80, }, Object { - "actualText": "5343", + "actualText": "15", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "5343", + "15", ], - "originalText": 5343, - "width": 103.8, + "originalText": 15, + "width": 80, }, Object { - "actualText": "632", + "actualText": "16", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "632", + "16", ], - "originalText": 632, - "width": 103.8, + "originalText": 16, + "width": 80, }, Object { - "actualText": "7234", + "actualText": "17", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "7234", + "17", ], - "originalText": 7234, - "width": 103.8, + "originalText": 17, + "width": 80, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 80, + "height": 64, + "multiLineActualTexts": Array [ + "序号", + ], + "originalText": "序号", + "width": 80, + }, + Object { + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, + "multiLineActualTexts": Array [ + "省份", + ], + "originalText": "省份", + "width": 143.8, + }, + Object { + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 48, + "actualTextWidth": 291, + "height": 64, + "multiLineActualTexts": Array [ + "城市城市城市城市城市", + "城市城市城市城市城市", + "城市城市", + ], + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 143.8, + }, + Object { + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 32, + "actualTextWidth": 242, + "height": 64, + "multiLineActualTexts": Array [ + "类别类别类别类别类别", + "类别类别类别类别类别", + ], + "originalText": "类别类别类别类别类别类别类别类别类别类别", + "width": 143.8, + }, + Object { + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 64, + "multiLineActualTexts": Array [ + "子类别", + ], + "originalText": "子类别", + "width": 143.8, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 48, + "actualTextWidth": 267, + "height": 64, "multiLineActualTexts": Array [ - "序号", + "数量数量数量数量数量", + "数量数量数量数量数量", + "数量", ], - "originalText": "序号", - "width": 80, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 143.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 5`] = ` Array [ Object { "actualText": "1", @@ -11876,7 +14537,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 76, + "height": 30, "multiLineActualTexts": Array [ "2", ], @@ -11887,7 +14548,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 61, "multiLineActualTexts": Array [ "3", ], @@ -11949,215 +14610,239 @@ Array [ "originalText": 8, "width": 80, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 3`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 80, + "actualText": "9", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "9", ], - "originalText": "序号", + "originalText": 9, "width": 80, }, Object { - "actualText": "省份", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 80, + "actualText": "10", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "省份", + "10", ], - "originalText": "省份", - "width": 103.8, + "originalText": 10, + "width": 80, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "actualTextHeight": 64, - "actualTextWidth": 292, - "height": 80, + "actualText": "11", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市城", - "市城市", + "11", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "width": 103.8, + "originalText": 11, + "width": 80, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 80, + "actualText": "12", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "12", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 103.8, + "originalText": 12, + "width": 80, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 80, + "actualText": "13", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "子类别", + "13", ], - "originalText": "子类别", - "width": 103.8, + "originalText": 13, + "width": 80, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 64, - "actualTextWidth": 268, - "height": 80, + "actualText": "14", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量数", - "量", + "14", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103.8, + "originalText": 14, + "width": 80, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 4`] = `Array []`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 5`] = ` -Array [ Object { - "actualText": "1", + "actualText": "15", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "1", + "15", ], - "originalText": 1, + "originalText": 15, "width": 80, }, Object { - "actualText": "2", + "actualText": "16", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 76, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "2", + "16", ], - "originalText": 2, + "originalText": 16, "width": 80, }, Object { - "actualText": "3", + "actualText": "17", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "3", + "17", ], - "originalText": 3, + "originalText": 17, "width": 80, }, Object { - "actualText": "4", + "actualText": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江", + "actualTextHeight": 30, + "actualTextWidth": 242, + "height": 46, + "multiLineActualTexts": Array [ + "浙江浙江浙江浙江浙江", + "浙江浙江浙江浙江浙江", + ], + "originalText": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江", + "width": 143.8, + }, + Object { + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "4", + "浙江省", ], - "originalText": 4, - "width": 80, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "5", + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "actualTextHeight": 45, + "actualTextWidth": 363, + "height": 61, + "multiLineActualTexts": Array [ + "浙江省浙江省浙江省浙", + "江省浙江省浙江省浙江", + "省浙江省浙江省浙江省", + ], + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 143.8, + }, + Object { + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "5", + "浙江省", ], - "originalText": 5, - "width": 80, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "6", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "6", + "浙江省", ], - "originalText": 6, - "width": 80, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "7", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "7", + "浙江省", ], - "originalText": 7, - "width": 80, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "8", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "8", + "浙江省", ], - "originalText": 8, - "width": 80, + "originalText": "浙江省", + "width": 143.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 143.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 143.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 143.8, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, - "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江省", - "浙江省浙江省...", - ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "浙江省", @@ -12168,7 +14853,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "浙江省", @@ -12179,7 +14864,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "浙江省", @@ -12190,7 +14875,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "浙江省", @@ -12201,7 +14886,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "浙江省", @@ -12212,43 +14897,53 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, + "width": 143.8, + }, + Object { + "actualText": "杭州杭州杭州杭州", + "actualTextHeight": 15, + "actualTextWidth": 97, + "height": 46, + "multiLineActualTexts": Array [ + "杭州杭州杭州杭州", + ], + "originalText": "杭州杭州杭州杭州", + "width": 143.8, }, Object { "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "绍兴市", ], "originalText": "绍兴市", - "width": 103.8, + "width": 143.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "actualTextHeight": 45, + "actualTextWidth": 363, + "height": 61, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭州", - "市杭州市杭州市", - "杭州市杭州市...", + "杭州市杭州市杭州市杭", + "州市杭州市杭州市杭州", + "市杭州市杭州市杭州市", ], "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "绍兴市", ], "originalText": "绍兴市", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "宁波市", @@ -12259,7 +14954,7 @@ Array [ "宁波市", ], "originalText": "宁波市", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "舟山市", @@ -12270,7 +14965,7 @@ Array [ "舟山市", ], "originalText": "舟山市", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "杭州市", @@ -12281,7 +14976,7 @@ Array [ "杭州市", ], "originalText": "杭州市", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "绍兴市", @@ -12292,7 +14987,7 @@ Array [ "绍兴市", ], "originalText": "绍兴市", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "宁波市", @@ -12303,831 +14998,672 @@ Array [ "宁波市", ], "originalText": "宁波市", - "width": 103.8, + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "舟山市", ], - "originalText": "家具", - "width": 103.8, + "originalText": "舟山市", + "width": 143.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "actualTextHeight": 60, - "actualTextWidth": 340, - "height": 76, + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具家", - "具家具家具家具", + "杭州市", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 103.8, + "originalText": "杭州市", + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "绍兴市", ], - "originalText": "家具", - "width": 103.8, + "originalText": "绍兴市", + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "家具", + "宁波市", ], - "originalText": "家具", - "width": 103.8, + "originalText": "宁波市", + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "家具", + "舟山市", ], - "originalText": "家具", - "width": 103.8, + "originalText": "舟山市", + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "家具", + "杭州市", ], - "originalText": "家具", - "width": 103.8, + "originalText": "杭州市", + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "家具", + "绍兴市", ], - "originalText": "家具", - "width": 103.8, + "originalText": "绍兴市", + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "家具", + "宁波市", ], - "originalText": "家具", - "width": 103.8, + "originalText": "宁波市", + "width": 143.8, }, Object { - "actualText": "桌子", + "actualText": "纸张纸张纸张纸张纸张", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 121, "height": 46, "multiLineActualTexts": Array [ - "桌子", - ], - "originalText": "桌子", - "width": 103.8, - }, - Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, - "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子桌", - "子桌子桌子桌...", + "纸张纸张纸张纸张纸张", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "width": 103.8, + "originalText": "纸张纸张纸张纸张纸张", + "width": 143.8, }, Object { - "actualText": "桌子", + "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "家具", ], - "originalText": "桌子", - "width": 103.8, + "originalText": "家具", + "width": 143.8, }, Object { - "actualText": "桌子", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualTextHeight": 45, + "actualTextWidth": 339, + "height": 61, "multiLineActualTexts": Array [ - "桌子", + "家具家具家具家具家具", + "家具家具家具家具家具", + "家具家具家具家具", ], - "originalText": "桌子", - "width": 103.8, + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 143.8, }, Object { - "actualText": "桌子", + "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "家具", ], - "originalText": "桌子", - "width": 103.8, + "originalText": "家具", + "width": 143.8, }, Object { - "actualText": "沙发", + "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "家具", ], - "originalText": "沙发", - "width": 103.8, + "originalText": "家具", + "width": 143.8, }, Object { - "actualText": "沙发", + "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "家具", ], - "originalText": "沙发", - "width": 103.8, + "originalText": "家具", + "width": 143.8, }, Object { - "actualText": "沙发", + "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "家具", ], - "originalText": "沙发", - "width": 103.8, + "originalText": "家具", + "width": 143.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "家具", ], - "originalText": 236723672361111, - "width": 103.8, + "originalText": "家具", + "width": 143.8, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 76, + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", + "家具", ], - "originalText": "7789778977897789778977897789", - "width": 103.8, + "originalText": "家具", + "width": 143.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "家具", ], - "originalText": 236723672361111, - "width": 103.8, + "originalText": "家具", + "width": 143.8, }, Object { - "actualText": "3877", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 49, "height": 30, "multiLineActualTexts": Array [ - "3877", + "办公用品", ], - "originalText": 3877, - "width": 103.8, + "originalText": "办公用品", + "width": 143.8, }, Object { - "actualText": "4342", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 49, "height": 30, "multiLineActualTexts": Array [ - "4342", + "办公用品", ], - "originalText": 4342, - "width": 103.8, + "originalText": "办公用品", + "width": 143.8, }, Object { - "actualText": "5343", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 49, "height": 30, "multiLineActualTexts": Array [ - "5343", + "办公用品", ], - "originalText": 5343, - "width": 103.8, + "originalText": "办公用品", + "width": 143.8, }, Object { - "actualText": "632", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 49, "height": 30, "multiLineActualTexts": Array [ - "632", + "办公用品", ], - "originalText": 632, - "width": 103.8, + "originalText": "办公用品", + "width": 143.8, }, Object { - "actualText": "7234", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 49, "height": 30, "multiLineActualTexts": Array [ - "7234", + "办公用品", ], - "originalText": 7234, - "width": 103.8, + "originalText": "办公用品", + "width": 143.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 80, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "办公用品", ], - "originalText": "序号", - "width": 80, + "originalText": "办公用品", + "width": 143.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 360, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "1", + "办公用品", ], - "originalText": 1, - "width": 80, + "originalText": "办公用品", + "width": 143.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 3`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 80, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 46, "multiLineActualTexts": Array [ - "序号", + "-", ], - "originalText": "序号", - "width": 80, + "originalText": "-", + "width": 143.8, }, Object { - "actualText": "省份", - "actualTextHeight": 16, + "actualText": "桌子", + "actualTextHeight": 15, "actualTextWidth": 25, - "height": 80, + "height": 30, "multiLineActualTexts": Array [ - "省份", + "桌子", ], - "originalText": "省份", - "width": 103.8, + "originalText": "桌子", + "width": 143.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "actualTextHeight": 64, - "actualTextWidth": 292, - "height": 80, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "actualTextHeight": 45, + "actualTextWidth": 363, + "height": 61, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市城", - "市城市", + "桌子桌子桌子桌子桌子", + "桌子桌子桌子桌子桌子", + "桌子桌子桌子桌子桌子", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "width": 103.8, + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 143.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 80, + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "桌子", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 103.8, + "originalText": "桌子", + "width": 143.8, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 80, + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "子类别", + "桌子", ], - "originalText": "子类别", - "width": 103.8, + "originalText": "桌子", + "width": 143.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 64, - "actualTextWidth": 268, - "height": 80, + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量数", - "量", + "桌子", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103.8, + "originalText": "桌子", + "width": 143.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 4`] = `Array []`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 5`] = ` -Array [ Object { - "actualText": "1", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 360, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "1", + "沙发", ], - "originalText": 1, - "width": 80, + "originalText": "沙发", + "width": 143.8, }, Object { - "actualText": "浙江省", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 360, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "沙发", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": "沙发", + "width": 143.8, }, Object { - "actualText": "绍兴市", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 360, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "沙发", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": "沙发", + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "沙发", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 360, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "沙发", ], - "originalText": "家具", - "width": 103.8, + "originalText": "沙发", + "width": 143.8, }, Object { - "actualText": "桌子", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 360, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "笔", ], - "originalText": "桌子", - "width": 103.8, + "originalText": "笔", + "width": 143.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 360, + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "笔", ], - "originalText": 236723672361111, - "width": 103.8, + "originalText": "笔", + "width": 143.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 6`] = ` -Array [ - 0, - 360, - 436, - 482, - 512, - 542, - 572, - 602, - 632, - 662, - 692, - 722, - 752, - 782, - 812, - 842, - 872, - 902, - 932, - 962, - 992, - 1022, - 1052, - 1082, - 1112, - 1142, - 1172, - 1202, - 1232, - 1262, - 1292, - 1322, - 1352, - 1382, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 80, + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "笔", ], - "originalText": "序号", - "width": 80, + "originalText": "笔", + "width": 143.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 300, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "1", + "笔", ], - "originalText": 1, - "width": 80, + "originalText": "笔", + "width": 143.8, }, Object { - "actualText": "2", + "actualText": "纸张", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 76, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "2", + "纸张", ], - "originalText": 2, - "width": 80, + "originalText": "纸张", + "width": 143.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 3`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, + "actualText": "纸张", + "actualTextHeight": 15, "actualTextWidth": 25, - "height": 80, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "纸张", ], - "originalText": "序号", - "width": 80, + "originalText": "纸张", + "width": 143.8, }, Object { - "actualText": "省份", - "actualTextHeight": 16, + "actualText": "纸张", + "actualTextHeight": 15, "actualTextWidth": 25, - "height": 80, + "height": 30, "multiLineActualTexts": Array [ - "省份", + "纸张", ], - "originalText": "省份", - "width": 103.8, + "originalText": "纸张", + "width": 143.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "actualTextHeight": 64, - "actualTextWidth": 292, - "height": 80, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 46, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市城", - "市城市", + "-", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "width": 103.8, + "originalText": "-", + "width": 143.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 80, + "actualText": "236723672361111", + "actualTextHeight": 15, + "actualTextWidth": 98, + "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "236723672361111", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 103.8, + "originalText": 236723672361111, + "width": 143.8, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 80, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 30, + "actualTextWidth": 188, + "height": 61, "multiLineActualTexts": Array [ - "子类别", + "7789778977897789778", + "977897789", ], - "originalText": "子类别", - "width": 103.8, + "originalText": "7789778977897789778977897789", + "width": 143.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 64, - "actualTextWidth": 268, - "height": 80, + "actualText": "236723672361111", + "actualTextHeight": 15, + "actualTextWidth": 98, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量数", - "量", + "236723672361111", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103.8, + "originalText": 236723672361111, + "width": 143.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 4`] = `Array []`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 5`] = ` -Array [ Object { - "actualText": "1", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 300, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "1", + "3877", + ], + "originalText": 3877, + "width": 143.8, + }, + Object { + "actualText": "4342", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "4342", ], - "originalText": 1, - "width": 80, + "originalText": 4342, + "width": 143.8, }, Object { - "actualText": "2", + "actualText": "5343", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 76, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "2", + "5343", ], - "originalText": 2, - "width": 80, + "originalText": 5343, + "width": 143.8, }, Object { - "actualText": "浙江省", + "actualText": "632", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 300, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "632", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 632, + "width": 143.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "actualText": "7234", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江省", - "浙江省浙江省...", + "7234", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 103.8, + "originalText": 7234, + "width": 143.8, }, Object { - "actualText": "绍兴市", + "actualText": "834", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 300, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "834", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": 834, + "width": 143.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "actualText": "945", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭州", - "市杭州市杭州市", - "杭州市杭州市...", + "945", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "width": 103.8, + "originalText": 945, + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "1304", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 300, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "1304", ], - "originalText": "家具", - "width": 103.8, + "originalText": 1304, + "width": 143.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "actualTextHeight": 60, - "actualTextWidth": 340, - "height": 76, + "actualText": "1145", + "actualTextHeight": 15, + "actualTextWidth": 26, + "height": 30, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具家", - "具家具家具家具", + "1145", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 103.8, + "originalText": 1145, + "width": 143.8, }, Object { - "actualText": "桌子", + "actualText": "1432", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 300, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "1432", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 1432, + "width": 143.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "actualText": "1343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子桌", - "子桌子桌子桌...", + "1343", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "width": 103.8, + "originalText": 1343, + "width": 143.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 300, + "actualText": "1354", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "1354", ], - "originalText": 236723672361111, - "width": 103.8, + "originalText": 1354, + "width": 143.8, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 76, + "actualText": "1523", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", + "1523", ], - "originalText": "7789778977897789778977897789", - "width": 103.8, + "originalText": 1523, + "width": 143.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 6`] = ` -Array [ - 0, - 300, - 376, - 422, - 452, - 482, - 512, - 542, - 572, - 602, - 632, - 662, - 692, - 722, - 752, - 782, - 812, - 842, - 872, - 902, - 932, - 962, - 992, - 1022, - 1052, - 1082, - 1112, - 1142, - 1172, - 1202, - 1232, - 1262, - 1292, - 1322, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "序号", ], @@ -13137,13 +15673,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "1", ], @@ -13165,7 +15701,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 61, + "height": 30, "multiLineActualTexts": Array [ "3", ], @@ -13255,87 +15791,43 @@ Array [ "actualTextWidth": 13, "height": 30, "multiLineActualTexts": Array [ - "11", - ], - "originalText": 11, - "width": 80, - }, - Object { - "actualText": "12", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "12", - ], - "originalText": 12, - "width": 80, - }, - Object { - "actualText": "13", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "13", - ], - "originalText": 13, - "width": 80, - }, - Object { - "actualText": "14", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "14", - ], - "originalText": 14, - "width": 80, - }, - Object { - "actualText": "15", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "15", + "11", ], - "originalText": 15, + "originalText": 11, "width": 80, }, Object { - "actualText": "16", + "actualText": "12", "actualTextHeight": 15, "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "16", + "12", ], - "originalText": 16, + "originalText": 12, "width": 80, }, Object { - "actualText": "17", + "actualText": "13", "actualTextHeight": 15, "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "17", + "13", ], - "originalText": 17, + "originalText": 13, "width": 80, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "序号", ], @@ -13346,74 +15838,69 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "省份", ], "originalText": "省份", - "width": 143.8, + "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "actualTextHeight": 48, - "actualTextWidth": 291, - "height": 64, + "actualText": "城市城市城市...", + "actualTextHeight": 16, + "actualTextWidth": 83, + "height": 30, "multiLineActualTexts": Array [ - "城市城市城市城市城市", - "城市城市城市城市城市", - "城市城市", + "城市城市城市...", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "width": 143.8, + "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 32, - "actualTextWidth": 242, - "height": 64, + "actualText": "类别类别类别...", + "actualTextHeight": 16, + "actualTextWidth": 83, + "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类别类别", - "类别类别类别类别类别", + "类别类别类别...", ], "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "子类别", ], "originalText": "子类别", - "width": 143.8, + "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 48, - "actualTextWidth": 267, - "height": 64, + "actualText": "数量数量数量...", + "actualTextHeight": 16, + "actualTextWidth": 83, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数量数量", - "数量数量数量数量数量", - "数量", + "数量数量数量...", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 143.8, + "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "1", ], @@ -13435,7 +15922,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 61, + "height": 30, "multiLineActualTexts": Array [ "3", ], @@ -13552,119 +16039,6 @@ Array [ "originalText": 13, "width": 80, }, - Object { - "actualText": "14", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "14", - ], - "originalText": 14, - "width": 80, - }, - Object { - "actualText": "15", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "15", - ], - "originalText": 15, - "width": 80, - }, - Object { - "actualText": "16", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "16", - ], - "originalText": 16, - "width": 80, - }, - Object { - "actualText": "17", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "17", - ], - "originalText": 17, - "width": 80, - }, - Object { - "actualText": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江", - "actualTextHeight": 30, - "actualTextWidth": 242, - "height": 46, - "multiLineActualTexts": Array [ - "浙江浙江浙江浙江浙江", - "浙江浙江浙江浙江浙江", - ], - "originalText": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江", - "width": 143.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 143.8, - }, - Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "actualTextHeight": 45, - "actualTextWidth": 363, - "height": 61, - "multiLineActualTexts": Array [ - "浙江省浙江省浙江省浙", - "江省浙江省浙江省浙江", - "省浙江省浙江省浙江省", - ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 143.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 143.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 143.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 143.8, - }, Object { "actualText": "浙江省", "actualTextHeight": 15, @@ -13674,18 +16048,18 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 143.8, + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "浙江省浙江省...", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 83, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "浙江省浙江省...", ], - "originalText": "浙江省", - "width": 143.8, + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 103.8, }, Object { "actualText": "浙江省", @@ -13696,7 +16070,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "浙江省", @@ -13707,7 +16081,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "浙江省", @@ -13718,7 +16092,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "浙江省", @@ -13729,7 +16103,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "浙江省", @@ -13740,7 +16114,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "浙江省", @@ -13751,7 +16125,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "浙江省", @@ -13762,7 +16136,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "浙江省", @@ -13773,97 +16147,62 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 143.8, - }, - Object { - "actualText": "杭州杭州杭州杭州", - "actualTextHeight": 15, - "actualTextWidth": 97, - "height": 46, - "multiLineActualTexts": Array [ - "杭州杭州杭州杭州", - ], - "originalText": "杭州杭州杭州杭州", - "width": 143.8, - }, - Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "绍兴市", - ], - "originalText": "绍兴市", - "width": 143.8, - }, - Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "actualTextHeight": 45, - "actualTextWidth": 363, - "height": 61, - "multiLineActualTexts": Array [ - "杭州市杭州市杭州市杭", - "州市杭州市杭州市杭州", - "市杭州市杭州市杭州市", + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "width": 143.8, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "浙江省", ], - "originalText": "绍兴市", - "width": 143.8, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "宁波市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "浙江省", ], - "originalText": "宁波市", - "width": 143.8, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "舟山市", + "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "舟山市", + "绍兴市", ], - "originalText": "舟山市", - "width": 143.8, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "杭州市", + "actualText": "杭州市杭州市...", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 83, "height": 30, "multiLineActualTexts": Array [ - "杭州市", + "杭州市杭州市...", ], - "originalText": "杭州市", - "width": 143.8, + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 103.8, }, Object { "actualText": "绍兴市", @@ -13874,7 +16213,7 @@ Array [ "绍兴市", ], "originalText": "绍兴市", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "宁波市", @@ -13885,7 +16224,7 @@ Array [ "宁波市", ], "originalText": "宁波市", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "舟山市", @@ -13896,7 +16235,7 @@ Array [ "舟山市", ], "originalText": "舟山市", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "杭州市", @@ -13907,7 +16246,7 @@ Array [ "杭州市", ], "originalText": "杭州市", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "绍兴市", @@ -13918,7 +16257,7 @@ Array [ "绍兴市", ], "originalText": "绍兴市", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "宁波市", @@ -13929,7 +16268,7 @@ Array [ "宁波市", ], "originalText": "宁波市", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "舟山市", @@ -13940,7 +16279,7 @@ Array [ "舟山市", ], "originalText": "舟山市", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "杭州市", @@ -13951,7 +16290,7 @@ Array [ "杭州市", ], "originalText": "杭州市", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "绍兴市", @@ -13962,7 +16301,7 @@ Array [ "绍兴市", ], "originalText": "绍兴市", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "宁波市", @@ -13973,18 +16312,18 @@ Array [ "宁波市", ], "originalText": "宁波市", - "width": 143.8, + "width": 103.8, }, Object { - "actualText": "纸张纸张纸张纸张纸张", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 121, - "height": 46, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "纸张纸张纸张纸张纸张", + "舟山市", ], - "originalText": "纸张纸张纸张纸张纸张", - "width": 143.8, + "originalText": "舟山市", + "width": 103.8, }, Object { "actualText": "家具", @@ -13995,20 +16334,18 @@ Array [ "家具", ], "originalText": "家具", - "width": 143.8, + "width": 103.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "actualTextHeight": 45, - "actualTextWidth": 339, - "height": 61, + "actualText": "家具家具家具...", + "actualTextHeight": 15, + "actualTextWidth": 83, + "height": 30, "multiLineActualTexts": Array [ - "家具家具家具家具家具", - "家具家具家具家具家具", - "家具家具家具家具", + "家具家具家具...", ], "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "家具", @@ -14019,7 +16356,7 @@ Array [ "家具", ], "originalText": "家具", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "家具", @@ -14030,7 +16367,7 @@ Array [ "家具", ], "originalText": "家具", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "家具", @@ -14041,7 +16378,7 @@ Array [ "家具", ], "originalText": "家具", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "家具", @@ -14052,7 +16389,7 @@ Array [ "家具", ], "originalText": "家具", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "家具", @@ -14063,7 +16400,7 @@ Array [ "家具", ], "originalText": "家具", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "家具", @@ -14074,7 +16411,7 @@ Array [ "家具", ], "originalText": "家具", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "家具", @@ -14085,40 +16422,7 @@ Array [ "家具", ], "originalText": "家具", - "width": 143.8, - }, - Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, - "multiLineActualTexts": Array [ - "办公用品", - ], - "originalText": "办公用品", - "width": 143.8, - }, - Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, - "multiLineActualTexts": Array [ - "办公用品", - ], - "originalText": "办公用品", - "width": 143.8, - }, - Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, - "multiLineActualTexts": Array [ - "办公用品", - ], - "originalText": "办公用品", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "办公用品", @@ -14129,7 +16433,7 @@ Array [ "办公用品", ], "originalText": "办公用品", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "办公用品", @@ -14140,7 +16444,7 @@ Array [ "办公用品", ], "originalText": "办公用品", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "办公用品", @@ -14151,7 +16455,7 @@ Array [ "办公用品", ], "originalText": "办公用品", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "办公用品", @@ -14162,18 +16466,7 @@ Array [ "办公用品", ], "originalText": "办公用品", - "width": 143.8, - }, - Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 46, - "multiLineActualTexts": Array [ - "-", - ], - "originalText": "-", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "桌子", @@ -14184,20 +16477,18 @@ Array [ "桌子", ], "originalText": "桌子", - "width": 143.8, + "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "actualTextHeight": 45, - "actualTextWidth": 363, - "height": 61, + "actualText": "桌子桌子桌子...", + "actualTextHeight": 15, + "actualTextWidth": 83, + "height": 30, "multiLineActualTexts": Array [ - "桌子桌子桌子桌子桌子", - "桌子桌子桌子桌子桌子", - "桌子桌子桌子桌子桌子", + "桌子桌子桌子...", ], "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "桌子", @@ -14208,7 +16499,7 @@ Array [ "桌子", ], "originalText": "桌子", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "桌子", @@ -14219,7 +16510,7 @@ Array [ "桌子", ], "originalText": "桌子", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "桌子", @@ -14230,7 +16521,7 @@ Array [ "桌子", ], "originalText": "桌子", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "沙发", @@ -14241,7 +16532,7 @@ Array [ "沙发", ], "originalText": "沙发", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "沙发", @@ -14252,7 +16543,7 @@ Array [ "沙发", ], "originalText": "沙发", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "沙发", @@ -14263,7 +16554,7 @@ Array [ "沙发", ], "originalText": "沙发", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "沙发", @@ -14274,7 +16565,7 @@ Array [ "沙发", ], "originalText": "沙发", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "笔", @@ -14285,7 +16576,7 @@ Array [ "笔", ], "originalText": "笔", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "笔", @@ -14296,7 +16587,7 @@ Array [ "笔", ], "originalText": "笔", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "笔", @@ -14307,7 +16598,7 @@ Array [ "笔", ], "originalText": "笔", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "笔", @@ -14318,85 +16609,40 @@ Array [ "笔", ], "originalText": "笔", - "width": 143.8, - }, - Object { - "actualText": "纸张", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "纸张", - ], - "originalText": "纸张", - "width": 143.8, - }, - Object { - "actualText": "纸张", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "纸张", - ], - "originalText": "纸张", - "width": 143.8, + "width": 103.8, }, Object { - "actualText": "纸张", + "actualText": "23672367236...", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 84, "height": 30, "multiLineActualTexts": Array [ - "纸张", - ], - "originalText": "纸张", - "width": 143.8, - }, - Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 46, - "multiLineActualTexts": Array [ - "-", + "23672367236...", ], - "originalText": "-", - "width": 143.8, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "236723672361111", + "actualText": "77897789778...", "actualTextHeight": 15, - "actualTextWidth": 98, + "actualTextWidth": 84, "height": 30, "multiLineActualTexts": Array [ - "236723672361111", - ], - "originalText": 236723672361111, - "width": 143.8, - }, - Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 30, - "actualTextWidth": 188, - "height": 61, - "multiLineActualTexts": Array [ - "7789778977897789778", - "977897789", + "77897789778...", ], "originalText": "7789778977897789778977897789", - "width": 143.8, + "width": 103.8, }, Object { - "actualText": "236723672361111", + "actualText": "23672367236...", "actualTextHeight": 15, - "actualTextWidth": 98, + "actualTextWidth": 84, "height": 30, "multiLineActualTexts": Array [ - "236723672361111", + "23672367236...", ], "originalText": 236723672361111, - "width": 143.8, + "width": 103.8, }, Object { "actualText": "3877", @@ -14407,7 +16653,7 @@ Array [ "3877", ], "originalText": 3877, - "width": 143.8, + "width": 103.8, }, Object { "actualText": "4342", @@ -14418,7 +16664,7 @@ Array [ "4342", ], "originalText": 4342, - "width": 143.8, + "width": 103.8, }, Object { "actualText": "5343", @@ -14429,7 +16675,7 @@ Array [ "5343", ], "originalText": 5343, - "width": 143.8, + "width": 103.8, }, Object { "actualText": "632", @@ -14440,7 +16686,7 @@ Array [ "632", ], "originalText": 632, - "width": 143.8, + "width": 103.8, }, Object { "actualText": "7234", @@ -14451,7 +16697,7 @@ Array [ "7234", ], "originalText": 7234, - "width": 143.8, + "width": 103.8, }, Object { "actualText": "834", @@ -14462,7 +16708,7 @@ Array [ "834", ], "originalText": 834, - "width": 143.8, + "width": 103.8, }, Object { "actualText": "945", @@ -14473,7 +16719,7 @@ Array [ "945", ], "originalText": 945, - "width": 143.8, + "width": 103.8, }, Object { "actualText": "1304", @@ -14484,7 +16730,7 @@ Array [ "1304", ], "originalText": 1304, - "width": 143.8, + "width": 103.8, }, Object { "actualText": "1145", @@ -14495,7 +16741,7 @@ Array [ "1145", ], "originalText": 1145, - "width": 143.8, + "width": 103.8, }, Object { "actualText": "1432", @@ -14506,51 +16752,18 @@ Array [ "1432", ], "originalText": 1432, - "width": 143.8, - }, - Object { - "actualText": "1343", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "1343", - ], - "originalText": 1343, - "width": 143.8, - }, - Object { - "actualText": "1354", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "1354", - ], - "originalText": 1354, - "width": 143.8, - }, - Object { - "actualText": "1523", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "1523", - ], - "originalText": 1523, - "width": 143.8, + "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 64, "multiLineActualTexts": Array [ "序号", ], @@ -14560,13 +16773,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "1", ], @@ -14577,7 +16790,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 61, "multiLineActualTexts": Array [ "2", ], @@ -14588,7 +16801,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "3", ], @@ -14661,60 +16874,16 @@ Array [ "originalText": 9, "width": 80, }, - Object { - "actualText": "10", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "10", - ], - "originalText": 10, - "width": 80, - }, - Object { - "actualText": "11", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "11", - ], - "originalText": 11, - "width": 80, - }, - Object { - "actualText": "12", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "12", - ], - "originalText": 12, - "width": 80, - }, - Object { - "actualText": "13", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "13", - ], - "originalText": 13, - "width": 80, - }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 64, "multiLineActualTexts": Array [ "序号", ], @@ -14725,7 +16894,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 64, "multiLineActualTexts": Array [ "省份", ], @@ -14733,23 +16902,27 @@ Array [ "width": 103.8, }, Object { - "actualText": "城市城市城市...", - "actualTextHeight": 16, - "actualTextWidth": 83, - "height": 30, + "actualText": "城市城市城市城市城市城市城市城市城市城市...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, "multiLineActualTexts": Array [ + "城市城市城市城", + "市城市城市城市", "城市城市城市...", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "类别类别类别...", - "actualTextHeight": 16, - "actualTextWidth": 83, - "height": 30, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 64, "multiLineActualTexts": Array [ - "类别类别类别...", + "类别类别类别类", + "别类别类别类别", + "类别类别类别", ], "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, @@ -14758,7 +16931,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 30, + "height": 64, "multiLineActualTexts": Array [ "子类别", ], @@ -14766,11 +16939,13 @@ Array [ "width": 103.8, }, Object { - "actualText": "数量数量数量...", - "actualTextHeight": 16, - "actualTextWidth": 83, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数量", "数量数量数量...", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", @@ -14779,15 +16954,15 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "1", ], @@ -14798,7 +16973,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 61, "multiLineActualTexts": Array [ "2", ], @@ -14809,7 +16984,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "3", ], @@ -14817,164 +16992,76 @@ Array [ "width": 80, }, Object { - "actualText": "4", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "4", - ], - "originalText": 4, - "width": 80, - }, - Object { - "actualText": "5", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "5", - ], - "originalText": 5, - "width": 80, - }, - Object { - "actualText": "6", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "6", - ], - "originalText": 6, - "width": 80, - }, - Object { - "actualText": "7", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "7", - ], - "originalText": 7, - "width": 80, - }, - Object { - "actualText": "8", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "8", - ], - "originalText": 8, - "width": 80, - }, - Object { - "actualText": "9", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "9", - ], - "originalText": 9, - "width": 80, - }, - Object { - "actualText": "10", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "10", - ], - "originalText": 10, - "width": 80, - }, - Object { - "actualText": "11", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "11", - ], - "originalText": 11, - "width": 80, - }, - Object { - "actualText": "12", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "12", + "4", ], - "originalText": 12, + "originalText": 4, "width": 80, }, Object { - "actualText": "13", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "13", + "5", ], - "originalText": 13, + "originalText": 5, "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "6", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "浙江省浙江省...", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 83, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "浙江省浙江省...", + "7", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 103.8, + "originalText": 7, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "8", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 8, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "9", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "9", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 9, + "width": 80, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], @@ -14982,21 +17069,23 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, "multiLineActualTexts": Array [ - "浙江省", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江...", ], - "originalText": "浙江省", + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], @@ -15073,7 +17162,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "绍兴市", ], @@ -15081,12 +17170,14 @@ Array [ "width": 103.8, }, Object { - "actualText": "杭州市杭州市...", - "actualTextHeight": 15, - "actualTextWidth": 83, - "height": 30, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, "multiLineActualTexts": Array [ - "杭州市杭州市...", + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州...", ], "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, @@ -15095,51 +17186,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "绍兴市", - ], - "originalText": "绍兴市", - "width": 103.8, - }, - Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "宁波市", - ], - "originalText": "宁波市", - "width": 103.8, - }, - Object { - "actualText": "舟山市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "舟山市", - ], - "originalText": "舟山市", - "width": 103.8, - }, - Object { - "actualText": "杭州市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "杭州市", - ], - "originalText": "杭州市", - "width": 103.8, - }, - Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "绍兴市", ], @@ -15216,7 +17263,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "家具", ], @@ -15224,11 +17271,13 @@ Array [ "width": 103.8, }, Object { - "actualText": "家具家具家具...", - "actualTextHeight": 15, - "actualTextWidth": 83, - "height": 30, + "actualText": "家具家具家具家具家具家具家具家具家具家具...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, "multiLineActualTexts": Array [ + "家具家具家具家", + "具家具家具家具", "家具家具家具...", ], "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", @@ -15238,7 +17287,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "家具", ], @@ -15311,55 +17360,11 @@ Array [ "originalText": "家具", "width": 103.8, }, - Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, - "multiLineActualTexts": Array [ - "办公用品", - ], - "originalText": "办公用品", - "width": 103.8, - }, - Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, - "multiLineActualTexts": Array [ - "办公用品", - ], - "originalText": "办公用品", - "width": 103.8, - }, - Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, - "multiLineActualTexts": Array [ - "办公用品", - ], - "originalText": "办公用品", - "width": 103.8, - }, - Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, - "multiLineActualTexts": Array [ - "办公用品", - ], - "originalText": "办公用品", - "width": 103.8, - }, Object { "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "桌子", ], @@ -15367,11 +17372,13 @@ Array [ "width": 103.8, }, Object { - "actualText": "桌子桌子桌子...", - "actualTextHeight": 15, - "actualTextWidth": 83, - "height": 30, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, "multiLineActualTexts": Array [ + "桌子桌子桌子桌", + "子桌子桌子桌子", "桌子桌子桌子...", ], "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", @@ -15381,7 +17388,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "桌子", ], @@ -15452,81 +17459,41 @@ Array [ "沙发", ], "originalText": "沙发", - "width": 103.8, - }, - Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "笔", - ], - "originalText": "笔", - "width": 103.8, - }, - Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "笔", - ], - "originalText": "笔", - "width": 103.8, - }, - Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "笔", - ], - "originalText": "笔", - "width": 103.8, - }, - Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "笔", - ], - "originalText": "笔", - "width": 103.8, - }, - Object { - "actualText": "23672367236...", - "actualTextHeight": 15, - "actualTextWidth": 84, - "height": 30, + "width": 103.8, + }, + Object { + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "23672367236...", + "2367236723611", + "11", ], "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "77897789778...", - "actualTextHeight": 15, - "actualTextWidth": 84, - "height": 30, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 61, "multiLineActualTexts": Array [ - "77897789778...", + "7789778977897", + "7897789778977", + "89", ], "originalText": "7789778977897789778977897789", "width": 103.8, }, Object { - "actualText": "23672367236...", - "actualTextHeight": 15, - "actualTextWidth": 84, - "height": 30, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "23672367236...", + "2367236723611", + "11", ], "originalText": 236723672361111, "width": 103.8, @@ -15597,54 +17564,10 @@ Array [ "originalText": 834, "width": 103.8, }, - Object { - "actualText": "945", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, - "multiLineActualTexts": Array [ - "945", - ], - "originalText": 945, - "width": 103.8, - }, - Object { - "actualText": "1304", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "1304", - ], - "originalText": 1304, - "width": 103.8, - }, - Object { - "actualText": "1145", - "actualTextHeight": 15, - "actualTextWidth": 26, - "height": 30, - "multiLineActualTexts": Array [ - "1145", - ], - "originalText": 1145, - "width": 103.8, - }, - Object { - "actualText": "1432", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "1432", - ], - "originalText": 1432, - "width": 103.8, - }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 1`] = ` Array [ Object { "actualText": "序号", @@ -15660,7 +17583,7 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 2`] = ` Array [ Object { "actualText": "1", @@ -15764,7 +17687,7 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 3`] = ` Array [ Object { "actualText": "序号", @@ -15841,9 +17764,9 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 5`] = ` Array [ Object { "actualText": "1", @@ -16454,13 +18377,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 20, "multiLineActualTexts": Array [ "序号", ], @@ -16470,13 +18393,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "1", ], @@ -16487,7 +18410,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 61, + "height": 20, "multiLineActualTexts": Array [ "2", ], @@ -16498,7 +18421,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "3", ], @@ -16520,7 +18443,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "5", ], @@ -16571,16 +18494,38 @@ Array [ "originalText": 9, "width": 80, }, + Object { + "actualText": "10", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, + "multiLineActualTexts": Array [ + "10", + ], + "originalText": 10, + "width": 80, + }, + Object { + "actualText": "11", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, + "multiLineActualTexts": Array [ + "11", + ], + "originalText": 11, + "width": 80, + }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 20, "multiLineActualTexts": Array [ "序号", ], @@ -16588,78 +18533,72 @@ Array [ "width": 80, }, Object { - "actualText": "省份", + "actualText": "province", "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 64, + "actualTextWidth": 51, + "height": 20, "multiLineActualTexts": Array [ - "省份", + "province", ], - "originalText": "省份", + "originalText": "province", "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "city", + "actualTextHeight": 16, + "actualTextWidth": 21, + "height": 20, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市...", + "city", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "originalText": "city", "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 64, + "actualText": "type", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "type", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", + "originalText": "type", "width": 103.8, }, Object { - "actualText": "子类别", + "actualText": "sub_type", "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 64, + "actualTextWidth": 53, + "height": 20, "multiLineActualTexts": Array [ - "子类别", + "sub_type", ], - "originalText": "子类别", + "originalText": "sub_type", "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "number", + "actualTextHeight": 16, + "actualTextWidth": 45, + "height": 20, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", + "number", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "originalText": "number", "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "1", ], @@ -16670,7 +18609,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 61, + "height": 20, "multiLineActualTexts": Array [ "2", ], @@ -16681,7 +18620,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "3", ], @@ -16703,7 +18642,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "5", ], @@ -16746,19 +18685,74 @@ Array [ Object { "actualText": "9", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "9", + ], + "originalText": 9, + "width": 80, + }, + Object { + "actualText": "10", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, + "multiLineActualTexts": Array [ + "10", + ], + "originalText": 10, + "width": 80, + }, + Object { + "actualText": "11", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, + "multiLineActualTexts": Array [ + "11", + ], + "originalText": 11, + "width": 80, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "9", + "浙江省", ], - "originalText": 9, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -16766,23 +18760,21 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江...", + "浙江省", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "originalText": "浙江省", "width": 103.8, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -16845,45 +18837,43 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "宁波市", "actualTextHeight": 15, "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "宁波市", ], - "originalText": "浙江省", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "舟山市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ - "绍兴市", + "舟山市", ], - "originalText": "绍兴市", + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭州", - "市杭州市杭州...", + "杭州市", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "originalText": "杭州市", "width": 103.8, }, Object { "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "绍兴市", ], @@ -16894,7 +18884,7 @@ Array [ "actualText": "宁波市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "宁波市", ], @@ -16957,34 +18947,32 @@ Array [ "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "杭州市", ], - "originalText": "家具", + "originalText": "杭州市", "width": 103.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具...", + "家具", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "originalText": "家具", "width": 103.8, }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "家具", ], @@ -17017,7 +19005,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "家具", ], @@ -17036,60 +19024,58 @@ Array [ "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 49, "height": 30, "multiLineActualTexts": Array [ - "家具", + "办公用品", ], - "originalText": "家具", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 49, "height": 30, "multiLineActualTexts": Array [ - "家具", + "办公用品", ], - "originalText": "家具", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "办公用品", ], - "originalText": "桌子", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子...", + "办公用品", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "办公用品", ], - "originalText": "桌子", + "originalText": "办公用品", "width": 103.8, }, Object { @@ -17107,7 +19093,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "桌子", ], @@ -17140,7 +19126,7 @@ Array [ "actualText": "沙发", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "沙发", ], @@ -17159,40 +19145,58 @@ Array [ "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "笔", ], - "originalText": 236723672361111, + "originalText": "笔", "width": 103.8, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 61, + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", + "笔", ], - "originalText": "7789778977897789778977897789", + "originalText": "笔", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "笔", ], - "originalText": 236723672361111, + "originalText": "笔", + "width": 103.8, + }, + Object { + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, + "multiLineActualTexts": Array [ + "笔", + ], + "originalText": "笔", + "width": 103.8, + }, + Object { + "actualText": "纸张", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "纸张", + ], + "originalText": "纸张", "width": 103.8, }, Object { @@ -17210,67 +19214,122 @@ Array [ "actualText": "4342", "actualTextHeight": 15, "actualTextWidth": 27, + "height": 20, + "multiLineActualTexts": Array [ + "4342", + ], + "originalText": 4342, + "width": 103.8, + }, + Object { + "actualText": "5343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "5343", + ], + "originalText": 5343, + "width": 103.8, + }, + Object { + "actualText": "632", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "632", + ], + "originalText": 632, + "width": 103.8, + }, + Object { + "actualText": "7234", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 100, + "multiLineActualTexts": Array [ + "7234", + ], + "originalText": 7234, + "width": 103.8, + }, + Object { + "actualText": "834", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "834", + ], + "originalText": 834, + "width": 103.8, + }, + Object { + "actualText": "945", + "actualTextHeight": 15, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "4342", + "945", ], - "originalText": 4342, + "originalText": 945, "width": 103.8, }, Object { - "actualText": "5343", + "actualText": "1304", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "5343", + "1304", ], - "originalText": 5343, + "originalText": 1304, "width": 103.8, }, Object { - "actualText": "632", + "actualText": "1145", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 26, "height": 30, "multiLineActualTexts": Array [ - "632", + "1145", ], - "originalText": 632, + "originalText": 1145, "width": 103.8, }, Object { - "actualText": "7234", + "actualText": "1432", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "7234", + "1432", ], - "originalText": 7234, + "originalText": 1432, "width": 103.8, }, Object { - "actualText": "834", + "actualText": "1343", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "834", + "1343", ], - "originalText": 834, + "originalText": 1343, "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 20, + "height": 70, "multiLineActualTexts": Array [ "序号", ], @@ -17280,13 +19339,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 70, "multiLineActualTexts": Array [ "1", ], @@ -17297,7 +19356,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "2", ], @@ -17308,7 +19367,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "3", ], @@ -17330,7 +19389,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "5", ], @@ -17359,60 +19418,16 @@ Array [ "originalText": 7, "width": 80, }, - Object { - "actualText": "8", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "8", - ], - "originalText": 8, - "width": 80, - }, - Object { - "actualText": "9", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "9", - ], - "originalText": 9, - "width": 80, - }, - Object { - "actualText": "10", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "10", - ], - "originalText": 10, - "width": 80, - }, - Object { - "actualText": "11", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "11", - ], - "originalText": 11, - "width": 80, - }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 20, + "height": 70, "multiLineActualTexts": Array [ "序号", ], @@ -17420,72 +19435,78 @@ Array [ "width": 80, }, Object { - "actualText": "province", + "actualText": "省份", "actualTextHeight": 16, - "actualTextWidth": 51, - "height": 20, + "actualTextWidth": 25, + "height": 70, "multiLineActualTexts": Array [ - "province", + "省份", ], - "originalText": "province", + "originalText": "省份", "width": 103.8, }, Object { - "actualText": "city", - "actualTextHeight": 16, - "actualTextWidth": 21, - "height": 20, + "actualText": "城市城市城市城市城市城市城市城市城市城市...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 70, "multiLineActualTexts": Array [ - "city", + "城市城市城市城", + "市城市城市城市", + "城市城市城市...", ], - "originalText": "city", + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "type", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 20, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 70, "multiLineActualTexts": Array [ - "type", + "类别类别类别类", + "别类别类别类别", + "类别类别类别", ], - "originalText": "type", + "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, }, Object { - "actualText": "sub_type", + "actualText": "子类别", "actualTextHeight": 16, - "actualTextWidth": 53, - "height": 20, + "actualTextWidth": 37, + "height": 70, "multiLineActualTexts": Array [ - "sub_type", + "子类别", ], - "originalText": "sub_type", + "originalText": "子类别", "width": 103.8, }, Object { - "actualText": "number", - "actualTextHeight": 16, - "actualTextWidth": 45, - "height": 20, + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 70, "multiLineActualTexts": Array [ - "number", + "数量数量数量数", + "量数量数量数量", + "数量数量数量...", ], - "originalText": "number", + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 70, "multiLineActualTexts": Array [ "1", ], @@ -17496,7 +19517,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "2", ], @@ -17507,150 +19528,62 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "3", ], - "originalText": 3, - "width": 80, - }, - Object { - "actualText": "4", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "4", - ], - "originalText": 4, - "width": 80, - }, - Object { - "actualText": "5", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, - "multiLineActualTexts": Array [ - "5", - ], - "originalText": 5, - "width": 80, - }, - Object { - "actualText": "6", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "6", - ], - "originalText": 6, - "width": 80, - }, - Object { - "actualText": "7", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "7", - ], - "originalText": 7, - "width": 80, - }, - Object { - "actualText": "8", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "8", - ], - "originalText": 8, - "width": 80, - }, - Object { - "actualText": "9", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "9", - ], - "originalText": 9, - "width": 80, - }, - Object { - "actualText": "10", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "10", - ], - "originalText": 10, - "width": 80, - }, - Object { - "actualText": "11", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "11", - ], - "originalText": 11, + "originalText": 3, "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "4", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "5", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "6", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "7", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 7, + "width": 80, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 70, "multiLineActualTexts": Array [ "浙江省", ], @@ -17658,21 +19591,23 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江...", ], - "originalText": "浙江省", + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], @@ -17724,43 +19659,34 @@ Array [ "width": 103.8, }, Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "宁波市", - ], - "originalText": "宁波市", - "width": 103.8, - }, - Object { - "actualText": "舟山市", + "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 70, "multiLineActualTexts": Array [ - "舟山市", + "绍兴市", ], - "originalText": "舟山市", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "杭州市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 100, "multiLineActualTexts": Array [ - "杭州市", + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州...", ], - "originalText": "杭州市", + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, }, Object { "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "绍兴市", ], @@ -17771,7 +19697,7 @@ Array [ "actualText": "宁波市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "宁波市", ], @@ -17811,44 +19737,11 @@ Array [ "originalText": "绍兴市", "width": 103.8, }, - Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "宁波市", - ], - "originalText": "宁波市", - "width": 103.8, - }, - Object { - "actualText": "舟山市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "舟山市", - ], - "originalText": "舟山市", - "width": 103.8, - }, - Object { - "actualText": "杭州市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "杭州市", - ], - "originalText": "杭州市", - "width": 103.8, - }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 70, "multiLineActualTexts": Array [ "家具", ], @@ -17856,21 +19749,23 @@ Array [ "width": 103.8, }, Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualText": "家具家具家具家具家具家具家具家具家具家具...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 100, "multiLineActualTexts": Array [ - "家具", + "家具家具家具家", + "具家具家具家具", + "家具家具家具...", ], - "originalText": "家具", + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103.8, }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "家具", ], @@ -17892,7 +19787,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "家具", ], @@ -17911,65 +19806,45 @@ Array [ "width": 103.8, }, Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, - "multiLineActualTexts": Array [ - "办公用品", - ], - "originalText": "办公用品", - "width": 103.8, - }, - Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, - "multiLineActualTexts": Array [ - "办公用品", - ], - "originalText": "办公用品", - "width": 103.8, - }, - Object { - "actualText": "办公用品", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 49, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "家具", ], - "originalText": "办公用品", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, + "actualTextWidth": 25, + "height": 70, "multiLineActualTexts": Array [ - "办公用品", + "桌子", ], - "originalText": "办公用品", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 100, "multiLineActualTexts": Array [ - "办公用品", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子...", ], - "originalText": "办公用品", + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, }, Object { "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "桌子", ], @@ -17980,7 +19855,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "桌子", ], @@ -17988,14 +19863,14 @@ Array [ "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "桌子", ], - "originalText": "沙发", + "originalText": "桌子", "width": 103.8, }, Object { @@ -18009,17 +19884,6 @@ Array [ "originalText": "沙发", "width": 103.8, }, - Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, - "multiLineActualTexts": Array [ - "沙发", - ], - "originalText": "沙发", - "width": 103.8, - }, Object { "actualText": "沙发", "actualTextHeight": 15, @@ -18032,58 +19896,40 @@ Array [ "width": 103.8, }, Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "笔", - ], - "originalText": "笔", - "width": 103.8, - }, - Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "笔", - ], - "originalText": "笔", - "width": 103.8, - }, - Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 70, "multiLineActualTexts": Array [ - "笔", + "2367236723611", + "11", ], - "originalText": "笔", + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 100, "multiLineActualTexts": Array [ - "笔", + "7789778977897", + "7897789778977", + "89", ], - "originalText": "笔", + "originalText": "7789778977897789778977897789", "width": 103.8, }, Object { - "actualText": "纸张", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "纸张", + "2367236723611", + "11", ], - "originalText": "纸张", + "originalText": 236723672361111, "width": 103.8, }, Object { @@ -18101,7 +19947,7 @@ Array [ "actualText": "4342", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "4342", ], @@ -18130,93 +19976,90 @@ Array [ "originalText": 632, "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height 1`] = ` +Array [ Object { - "actualText": "7234", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 100, - "multiLineActualTexts": Array [ - "7234", - ], - "originalText": 7234, - "width": 103.8, - }, - Object { - "actualText": "834", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 70, "multiLineActualTexts": Array [ - "834", + "序号", ], - "originalText": 834, - "width": 103.8, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "945", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 70, "multiLineActualTexts": Array [ - "945", + "省份", ], - "originalText": 945, + "originalText": "省份", "width": 103.8, }, Object { - "actualText": "1304", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "城市城市城市城市城市城市城...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 70, "multiLineActualTexts": Array [ - "1304", + "城市城市城市城", + "市城市城市城...", ], - "originalText": 1304, + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "1145", - "actualTextHeight": 15, - "actualTextWidth": 26, - "height": 30, + "actualText": "类别类别类别类别类别类别类...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 70, "multiLineActualTexts": Array [ - "1145", + "类别类别类别类", + "别类别类别类...", ], - "originalText": 1145, + "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, }, Object { - "actualText": "1432", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 70, "multiLineActualTexts": Array [ - "1432", + "子类别", ], - "originalText": 1432, + "originalText": "子类别", "width": 103.8, }, Object { - "actualText": "1343", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "数量数量数量数量数量数量数...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 70, "multiLineActualTexts": Array [ - "1343", + "数量数量数量数", + "量数量数量数...", ], - "originalText": 1343, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 70, + "height": 100, "multiLineActualTexts": Array [ "序号", ], @@ -18226,13 +20069,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 70, + "height": 46, "multiLineActualTexts": Array [ "1", ], @@ -18243,7 +20086,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 76, "multiLineActualTexts": Array [ "2", ], @@ -18305,16 +20148,27 @@ Array [ "originalText": 7, "width": 80, }, + Object { + "actualText": "8", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "8", + ], + "originalText": 8, + "width": 80, + }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 70, + "height": 100, "multiLineActualTexts": Array [ "序号", ], @@ -18325,7 +20179,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 70, + "height": 100, "multiLineActualTexts": Array [ "省份", ], @@ -18333,14 +20187,15 @@ Array [ "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 70, + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 64, + "actualTextWidth": 292, + "height": 100, "multiLineActualTexts": Array [ "城市城市城市城", "市城市城市城市", - "城市城市城市...", + "城市城市城市城", + "市城市", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, @@ -18349,7 +20204,7 @@ Array [ "actualText": "类别类别类别类别类别类别类别类别类别类别", "actualTextHeight": 48, "actualTextWidth": 243, - "height": 70, + "height": 50, "multiLineActualTexts": Array [ "类别类别类别类", "别类别类别类别", @@ -18362,7 +20217,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 70, + "height": 100, "multiLineActualTexts": Array [ "子类别", ], @@ -18370,14 +20225,15 @@ Array [ "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 70, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 64, + "actualTextWidth": 268, + "height": 100, "multiLineActualTexts": Array [ "数量数量数量数", "量数量数量数量", - "数量数量数量...", + "数量数量数量数", + "量", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, @@ -18385,15 +20241,15 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 70, + "height": 46, "multiLineActualTexts": Array [ "1", ], @@ -18404,7 +20260,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 76, "multiLineActualTexts": Array [ "2", ], @@ -18466,11 +20322,22 @@ Array [ "originalText": 7, "width": 80, }, + Object { + "actualText": "8", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "8", + ], + "originalText": 8, + "width": 80, + }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 70, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], @@ -18478,14 +20345,15 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 100, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, "multiLineActualTexts": Array [ "浙江省浙江省浙", "江省浙江省浙江", - "省浙江省浙江...", + "省浙江省浙江省", + "浙江省浙江省...", ], "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, @@ -18545,11 +20413,22 @@ Array [ "originalText": "浙江省", "width": 103.8, }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, Object { "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 70, + "height": 46, "multiLineActualTexts": Array [ "绍兴市", ], @@ -18557,14 +20436,15 @@ Array [ "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 100, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, "multiLineActualTexts": Array [ "杭州市杭州市杭", "州市杭州市杭州", - "市杭州市杭州...", + "市杭州市杭州市", + "杭州市杭州市...", ], "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, @@ -18624,11 +20504,22 @@ Array [ "originalText": "绍兴市", "width": 103.8, }, + Object { + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "宁波市", + ], + "originalText": "宁波市", + "width": 103.8, + }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 70, + "height": 46, "multiLineActualTexts": Array [ "家具", ], @@ -18636,14 +20527,15 @@ Array [ "width": 103.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 100, + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualTextHeight": 60, + "actualTextWidth": 340, + "height": 76, "multiLineActualTexts": Array [ "家具家具家具家", "具家具家具家具", - "家具家具家具...", + "家具家具家具家", + "具家具家具家具", ], "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103.8, @@ -18703,11 +20595,22 @@ Array [ "originalText": "家具", "width": 103.8, }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, Object { "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 70, + "height": 46, "multiLineActualTexts": Array [ "桌子", ], @@ -18715,14 +20618,15 @@ Array [ "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 100, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, "multiLineActualTexts": Array [ "桌子桌子桌子桌", "子桌子桌子桌子", - "桌子桌子桌子...", + "桌子桌子桌子桌", + "子桌子桌子桌...", ], "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, @@ -18782,11 +20686,22 @@ Array [ "originalText": "沙发", "width": 103.8, }, + Object { + "actualText": "沙发", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "沙发", + ], + "originalText": "沙发", + "width": 103.8, + }, Object { "actualText": "236723672361111", "actualTextHeight": 30, "actualTextWidth": 100, - "height": 70, + "height": 46, "multiLineActualTexts": Array [ "2367236723611", "11", @@ -18798,7 +20713,7 @@ Array [ "actualText": "7789778977897789778977897789", "actualTextHeight": 45, "actualTextWidth": 189, - "height": 100, + "height": 76, "multiLineActualTexts": Array [ "7789778977897", "7897789778977", @@ -18863,90 +20778,27 @@ Array [ "originalText": 632, "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height 1`] = ` -Array [ - Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 70, - "multiLineActualTexts": Array [ - "序号", - ], - "originalText": "序号", - "width": 80, - }, - Object { - "actualText": "省份", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 70, - "multiLineActualTexts": Array [ - "省份", - ], - "originalText": "省份", - "width": 103.8, - }, - Object { - "actualText": "城市城市城市城市城市城市城...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "height": 70, - "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城...", - ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "width": 103.8, - }, - Object { - "actualText": "类别类别类别类别类别类别类...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "height": 70, - "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类...", - ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 103.8, - }, - Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 70, - "multiLineActualTexts": Array [ - "子类别", - ], - "originalText": "子类别", - "width": 103.8, - }, Object { - "actualText": "数量数量数量数量数量数量数...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "height": 70, + "actualText": "7234", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数...", + "7234", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "originalText": 7234, "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style less than actual text height by dataCell.height 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 100, + "height": 48, "multiLineActualTexts": Array [ "序号", ], @@ -18956,13 +20808,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style less than actual text height by dataCell.height 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "1", ], @@ -18973,7 +20825,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 76, + "height": 20, "multiLineActualTexts": Array [ "2", ], @@ -18984,7 +20836,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "3", ], @@ -18995,7 +20847,7 @@ Array [ "actualText": "4", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "4", ], @@ -19006,7 +20858,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "5", ], @@ -19017,7 +20869,7 @@ Array [ "actualText": "6", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "6", ], @@ -19028,7 +20880,7 @@ Array [ "actualText": "7", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "7", ], @@ -19039,23 +20891,133 @@ Array [ "actualText": "8", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "8", ], "originalText": 8, "width": 80, }, + Object { + "actualText": "9", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 20, + "multiLineActualTexts": Array [ + "9", + ], + "originalText": 9, + "width": 80, + }, + Object { + "actualText": "10", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, + "multiLineActualTexts": Array [ + "10", + ], + "originalText": 10, + "width": 80, + }, + Object { + "actualText": "11", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 20, + "multiLineActualTexts": Array [ + "11", + ], + "originalText": 11, + "width": 80, + }, + Object { + "actualText": "12", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, + "multiLineActualTexts": Array [ + "12", + ], + "originalText": 12, + "width": 80, + }, + Object { + "actualText": "13", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, + "multiLineActualTexts": Array [ + "13", + ], + "originalText": 13, + "width": 80, + }, + Object { + "actualText": "14", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, + "multiLineActualTexts": Array [ + "14", + ], + "originalText": 14, + "width": 80, + }, + Object { + "actualText": "15", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, + "multiLineActualTexts": Array [ + "15", + ], + "originalText": 15, + "width": 80, + }, + Object { + "actualText": "16", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, + "multiLineActualTexts": Array [ + "16", + ], + "originalText": 16, + "width": 80, + }, + Object { + "actualText": "17", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, + "multiLineActualTexts": Array [ + "17", + ], + "originalText": 17, + "width": 80, + }, + Object { + "actualText": "18", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, + "multiLineActualTexts": Array [ + "18", + ], + "originalText": 18, + "width": 80, + }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style less than actual text height by dataCell.height 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 100, + "height": 48, "multiLineActualTexts": Array [ "序号", ], @@ -19066,7 +21028,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 100, + "height": 48, "multiLineActualTexts": Array [ "省份", ], @@ -19074,28 +21036,25 @@ Array [ "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "actualTextHeight": 64, - "actualTextWidth": 292, - "height": 100, + "actualText": "城市城市城市城市城市城市城...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 48, "multiLineActualTexts": Array [ "城市城市城市城", - "市城市城市城市", - "城市城市城市城", - "市城市", + "市城市城市城...", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 50, + "actualText": "类别类别类别类别类别类别类...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 48, "multiLineActualTexts": Array [ "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "别类别类别类...", ], "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, @@ -19104,7 +21063,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 100, + "height": 48, "multiLineActualTexts": Array [ "子类别", ], @@ -19112,15 +21071,13 @@ Array [ "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 64, - "actualTextWidth": 268, - "height": 100, + "actualText": "数量数量数量数量数量数量数...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 48, "multiLineActualTexts": Array [ "数量数量数量数", - "量数量数量数量", - "数量数量数量数", - "量", + "量数量数量数...", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, @@ -19128,15 +21085,15 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style less than actual text height by dataCell.height 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style less than actual text height by dataCell.height 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "1", ], @@ -19147,7 +21104,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 76, + "height": 20, "multiLineActualTexts": Array [ "2", ], @@ -19158,7 +21115,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "3", ], @@ -19169,7 +21126,7 @@ Array [ "actualText": "4", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "4", ], @@ -19180,7 +21137,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "5", ], @@ -19191,7 +21148,7 @@ Array [ "actualText": "6", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "6", ], @@ -19202,7 +21159,7 @@ Array [ "actualText": "7", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "7", ], @@ -19213,7 +21170,7 @@ Array [ "actualText": "8", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "8", ], @@ -19221,90 +21178,120 @@ Array [ "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "9", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "9", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 9, + "width": 80, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "actualText": "10", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江省", - "浙江省浙江省...", + "10", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 103.8, + "originalText": 10, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "11", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 13, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "11", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 11, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "12", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "12", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 12, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "13", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "13", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 13, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "14", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "14", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 14, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "15", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "15", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 15, + "width": 80, + }, + Object { + "actualText": "16", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, + "multiLineActualTexts": Array [ + "16", + ], + "originalText": 16, + "width": 80, + }, + Object { + "actualText": "17", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, + "multiLineActualTexts": Array [ + "17", + ], + "originalText": 17, + "width": 80, + }, + Object { + "actualText": "18", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, + "multiLineActualTexts": Array [ + "18", + ], + "originalText": 18, + "width": 80, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -19312,1227 +21299,1231 @@ Array [ "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "浙江省浙江省浙江省浙江省浙...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "height": 20, + "multiLineActualTexts": Array [ + "浙江省浙江省浙", + "江省浙江省浙...", + ], + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ - "绍兴市", + "浙江省", ], - "originalText": "绍兴市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭州", - "市杭州市杭州市", - "杭州市杭州市...", + "浙江省", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ - "绍兴市", + "浙江省", ], - "originalText": "绍兴市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "宁波市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ - "宁波市", + "浙江省", ], - "originalText": "宁波市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "舟山市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ - "舟山市", + "浙江省", ], - "originalText": "舟山市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "杭州市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ - "杭州市", + "浙江省", ], - "originalText": "杭州市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ - "绍兴市", + "浙江省", ], - "originalText": "绍兴市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "宁波市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ - "宁波市", + "浙江省", ], - "originalText": "宁波市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "浙江省", ], - "originalText": "家具", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "actualTextHeight": 60, - "actualTextWidth": 340, - "height": 76, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具家", - "具家具家具家具", + "浙江省", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "浙江省", ], - "originalText": "家具", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "浙江省", ], - "originalText": "家具", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "浙江省", ], - "originalText": "家具", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "浙江省", ], - "originalText": "家具", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "浙江省", ], - "originalText": "家具", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "四川省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "四川省", ], - "originalText": "家具", + "originalText": "四川省", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "桌子", + "绍兴市", ], - "originalText": "桌子", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "actualText": "杭州市杭州市杭州市杭州市杭...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "height": 20, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子桌", - "子桌子桌子桌...", + "杭州市杭州市杭", + "州市杭州市杭...", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "桌子", + "绍兴市", ], - "originalText": "桌子", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "桌子", + "宁波市", ], - "originalText": "桌子", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "桌子", + "舟山市", ], - "originalText": "桌子", + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "沙发", + "杭州市", ], - "originalText": "沙发", + "originalText": "杭州市", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "沙发", + "绍兴市", ], - "originalText": "沙发", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "沙发", + "宁波市", ], - "originalText": "沙发", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "舟山市", ], - "originalText": 236723672361111, + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 76, + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", + "杭州市", ], - "originalText": "7789778977897789778977897789", + "originalText": "杭州市", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "绍兴市", ], - "originalText": 236723672361111, + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "3877", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "3877", + "宁波市", ], - "originalText": 3877, + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "4342", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "4342", + "舟山市", ], - "originalText": 4342, + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "5343", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "5343", + "杭州市", ], - "originalText": 5343, + "originalText": "杭州市", "width": 103.8, }, Object { - "actualText": "632", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "632", + "绍兴市", ], - "originalText": 632, + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "7234", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "7234", + "宁波市", ], - "originalText": 7234, + "originalText": "宁波市", "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style less than actual text height by dataCell.height 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 48, + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "序号", + "舟山市", ], - "originalText": "序号", - "width": 80, + "originalText": "舟山市", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style less than actual text height by dataCell.height 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "成都市", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 37, "height": 20, "multiLineActualTexts": Array [ - "1", + "成都市", ], - "originalText": 1, - "width": 80, + "originalText": "成都市", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 20, "multiLineActualTexts": Array [ - "2", + "家具", ], - "originalText": 2, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "3", - "actualTextHeight": 15, - "actualTextWidth": 7, + "actualText": "家具家具家具家具家具家具家...", + "actualTextHeight": 30, + "actualTextWidth": 168, "height": 20, "multiLineActualTexts": Array [ - "3", + "家具家具家具家", + "具家具家具家...", ], - "originalText": 3, - "width": 80, + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 20, "multiLineActualTexts": Array [ - "4", + "家具", ], - "originalText": 4, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "5", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 20, "multiLineActualTexts": Array [ - "5", + "家具", ], - "originalText": 5, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "6", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 20, "multiLineActualTexts": Array [ - "6", + "家具", ], - "originalText": 6, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "7", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 20, "multiLineActualTexts": Array [ - "7", + "家具", ], - "originalText": 7, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "8", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 20, "multiLineActualTexts": Array [ - "8", + "家具", ], - "originalText": 8, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "9", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 20, "multiLineActualTexts": Array [ - "9", + "家具", ], - "originalText": 9, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "10", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 25, "height": 20, "multiLineActualTexts": Array [ - "10", + "家具", ], - "originalText": 10, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "11", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 13, + "actualTextWidth": 49, "height": 20, "multiLineActualTexts": Array [ - "11", + "办公用品", ], - "originalText": 11, - "width": 80, + "originalText": "办公用品", + "width": 103.8, }, Object { - "actualText": "12", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 49, "height": 20, "multiLineActualTexts": Array [ - "12", + "办公用品", ], - "originalText": 12, - "width": 80, + "originalText": "办公用品", + "width": 103.8, }, Object { - "actualText": "13", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 49, "height": 20, "multiLineActualTexts": Array [ - "13", + "办公用品", ], - "originalText": 13, - "width": 80, + "originalText": "办公用品", + "width": 103.8, }, Object { - "actualText": "14", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 49, "height": 20, "multiLineActualTexts": Array [ - "14", + "办公用品", ], - "originalText": 14, - "width": 80, + "originalText": "办公用品", + "width": 103.8, }, Object { - "actualText": "15", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 49, "height": 20, "multiLineActualTexts": Array [ - "15", + "办公用品", ], - "originalText": 15, - "width": 80, + "originalText": "办公用品", + "width": 103.8, }, Object { - "actualText": "16", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 49, "height": 20, "multiLineActualTexts": Array [ - "16", + "办公用品", ], - "originalText": 16, - "width": 80, + "originalText": "办公用品", + "width": 103.8, }, Object { - "actualText": "17", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 49, "height": 20, "multiLineActualTexts": Array [ - "17", + "办公用品", ], - "originalText": 17, - "width": 80, + "originalText": "办公用品", + "width": 103.8, }, Object { - "actualText": "18", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 49, "height": 20, "multiLineActualTexts": Array [ - "18", + "办公用品", ], - "originalText": 18, - "width": 80, + "originalText": "办公用品", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style less than actual text height by dataCell.height 3`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, + "actualText": "家具", + "actualTextHeight": 15, "actualTextWidth": 25, - "height": 48, + "height": 20, "multiLineActualTexts": Array [ - "序号", + "家具", ], - "originalText": "序号", - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "省份", - "actualTextHeight": 16, + "actualText": "桌子", + "actualTextHeight": 15, "actualTextWidth": 25, - "height": 48, + "height": 20, "multiLineActualTexts": Array [ - "省份", + "桌子", ], - "originalText": "省份", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城...", - "actualTextHeight": 32, + "actualText": "桌子桌子桌子桌子桌子桌子桌...", + "actualTextHeight": 30, "actualTextWidth": 168, - "height": 48, + "height": 20, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城...", + "桌子桌子桌子桌", + "子桌子桌子桌...", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "height": 48, + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类...", + "桌子", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 48, + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "子类别", + "桌子", ], - "originalText": "子类别", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "height": 48, + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数...", + "桌子", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "originalText": "桌子", "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style less than actual text height by dataCell.height 4`] = `Array []`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style less than actual text height by dataCell.height 5`] = ` -Array [ Object { - "actualText": "1", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 20, "multiLineActualTexts": Array [ - "1", + "沙发", ], - "originalText": 1, - "width": 80, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 20, "multiLineActualTexts": Array [ - "2", + "沙发", ], - "originalText": 2, - "width": 80, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 20, "multiLineActualTexts": Array [ - "3", + "沙发", ], - "originalText": 3, - "width": 80, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 20, "multiLineActualTexts": Array [ - "4", + "沙发", ], - "originalText": 4, - "width": 80, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "5", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 13, "height": 20, "multiLineActualTexts": Array [ - "5", + "笔", ], - "originalText": 5, - "width": 80, + "originalText": "笔", + "width": 103.8, }, Object { - "actualText": "6", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 13, "height": 20, "multiLineActualTexts": Array [ - "6", + "笔", ], - "originalText": 6, - "width": 80, + "originalText": "笔", + "width": 103.8, }, Object { - "actualText": "7", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 13, "height": 20, "multiLineActualTexts": Array [ - "7", + "笔", ], - "originalText": 7, - "width": 80, + "originalText": "笔", + "width": 103.8, }, Object { - "actualText": "8", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 13, "height": 20, "multiLineActualTexts": Array [ - "8", + "笔", ], - "originalText": 8, - "width": 80, + "originalText": "笔", + "width": 103.8, }, Object { - "actualText": "9", + "actualText": "纸张", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 20, "multiLineActualTexts": Array [ - "9", + "纸张", ], - "originalText": 9, - "width": 80, + "originalText": "纸张", + "width": 103.8, }, Object { - "actualText": "10", + "actualText": "纸张", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 25, "height": 20, "multiLineActualTexts": Array [ - "10", + "纸张", ], - "originalText": 10, - "width": 80, + "originalText": "纸张", + "width": 103.8, }, Object { - "actualText": "11", + "actualText": "纸张", "actualTextHeight": 15, - "actualTextWidth": 13, + "actualTextWidth": 25, "height": 20, "multiLineActualTexts": Array [ - "11", + "纸张", ], - "originalText": 11, - "width": 80, + "originalText": "纸张", + "width": 103.8, }, Object { - "actualText": "12", + "actualText": "纸张", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 25, "height": 20, "multiLineActualTexts": Array [ - "12", + "纸张", ], - "originalText": 12, - "width": 80, + "originalText": "纸张", + "width": 103.8, }, Object { - "actualText": "13", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 25, "height": 20, "multiLineActualTexts": Array [ - "13", + "桌子", ], - "originalText": 13, - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "14", - "actualTextHeight": 15, - "actualTextWidth": 14, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, "height": 20, "multiLineActualTexts": Array [ - "14", + "2367236723611", + "11", ], - "originalText": 14, - "width": 80, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "15", - "actualTextHeight": 15, - "actualTextWidth": 14, + "actualText": "778977897789778977897789...", + "actualTextHeight": 30, + "actualTextWidth": 172, "height": 20, "multiLineActualTexts": Array [ - "15", + "7789778977897", + "78977897789...", ], - "originalText": 15, - "width": 80, + "originalText": "7789778977897789778977897789", + "width": 103.8, }, Object { - "actualText": "16", - "actualTextHeight": 15, - "actualTextWidth": 14, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, "height": 20, "multiLineActualTexts": Array [ - "16", + "2367236723611", + "11", ], - "originalText": 16, - "width": 80, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "17", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 27, "height": 20, "multiLineActualTexts": Array [ - "17", + "3877", ], - "originalText": 17, - "width": 80, + "originalText": 3877, + "width": 103.8, }, Object { - "actualText": "18", + "actualText": "4342", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 27, "height": 20, "multiLineActualTexts": Array [ - "18", + "4342", ], - "originalText": 18, - "width": 80, + "originalText": 4342, + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "5343", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "5343", ], - "originalText": "浙江省", + "originalText": 5343, "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙...", - "actualTextHeight": 30, - "actualTextWidth": 168, + "actualText": "632", + "actualTextHeight": 15, + "actualTextWidth": 21, "height": 20, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙...", + "632", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "originalText": 632, "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "7234", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "7234", ], - "originalText": "浙江省", + "originalText": 7234, "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "834", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 21, "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "834", ], - "originalText": "浙江省", + "originalText": 834, "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "945", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 21, "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "945", ], - "originalText": "浙江省", + "originalText": 945, "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "1304", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "1304", ], - "originalText": "浙江省", + "originalText": 1304, "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "1145", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 26, "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "1145", ], - "originalText": "浙江省", + "originalText": 1145, "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "1432", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "1432", ], - "originalText": "浙江省", + "originalText": 1432, "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "1343", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "1343", ], - "originalText": "浙江省", + "originalText": 1343, "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "1354", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "1354", ], - "originalText": "浙江省", + "originalText": 1354, "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "1523", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "1523", ], - "originalText": "浙江省", + "originalText": 1523, "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "1634", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "1634", ], - "originalText": "浙江省", + "originalText": 1634, "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "1723", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "1723", ], - "originalText": "浙江省", + "originalText": 1723, "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style more than actual text height by dataCell.height 1`] = ` +Array [ Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 48, "multiLineActualTexts": Array [ - "浙江省", + "序号", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": "序号", + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style more than actual text height by dataCell.height 2`] = ` +Array [ Object { - "actualText": "浙江省", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "1", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "2", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "3", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "四川省", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "四川省", + "4", ], - "originalText": "四川省", - "width": 103.8, + "originalText": 4, + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style more than actual text height by dataCell.height 3`] = ` +Array [ Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 48, "multiLineActualTexts": Array [ - "绍兴市", + "序号", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭...", - "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 20, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 48, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭...", + "省份", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "originalText": "省份", "width": 103.8, }, Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "城市城市城市城市城市城市城...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 48, "multiLineActualTexts": Array [ - "绍兴市", + "城市城市城市城", + "市城市城市城...", ], - "originalText": "绍兴市", + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "类别类别类别类别类别类别类...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 48, "multiLineActualTexts": Array [ - "宁波市", + "类别类别类别类", + "别类别类别类...", ], - "originalText": "宁波市", + "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, }, Object { - "actualText": "舟山市", - "actualTextHeight": 15, + "actualText": "子类别", + "actualTextHeight": 16, "actualTextWidth": 37, - "height": 20, + "height": 48, "multiLineActualTexts": Array [ - "舟山市", + "子类别", ], - "originalText": "舟山市", + "originalText": "子类别", "width": 103.8, }, Object { - "actualText": "杭州市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "数量数量数量数量数量数量数...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 48, "multiLineActualTexts": Array [ - "杭州市", + "数量数量数量数", + "量数量数量数...", ], - "originalText": "杭州市", + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style more than actual text height by dataCell.height 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style more than actual text height by dataCell.height 5`] = ` +Array [ Object { - "actualText": "绍兴市", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "绍兴市", + "1", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "宁波市", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "宁波市", + "2", ], - "originalText": "宁波市", - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "舟山市", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "舟山市", + "3", ], - "originalText": "舟山市", - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "杭州市", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "杭州市", + "4", ], - "originalText": "杭州市", - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "绍兴市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ - "绍兴市", + "浙江省", ], - "originalText": "绍兴市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "浙江省浙江省浙江省浙江省浙...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "height": 100, "multiLineActualTexts": Array [ - "宁波市", + "浙江省浙江省浙", + "江省浙江省浙...", ], - "originalText": "宁波市", + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, }, Object { - "actualText": "舟山市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ - "舟山市", + "浙江省", ], - "originalText": "舟山市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "杭州市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ - "杭州市", + "浙江省", ], - "originalText": "杭州市", + "originalText": "浙江省", "width": 103.8, }, Object { "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "绍兴市", ], @@ -20540,43 +22531,44 @@ Array [ "width": 103.8, }, Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "杭州市杭州市杭州市杭州市杭...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "height": 100, "multiLineActualTexts": Array [ - "宁波市", + "杭州市杭州市杭", + "州市杭州市杭...", ], - "originalText": "宁波市", + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, }, Object { - "actualText": "舟山市", + "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ - "舟山市", + "绍兴市", ], - "originalText": "舟山市", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "成都市", + "actualText": "宁波市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ - "成都市", + "宁波市", ], - "originalText": "成都市", + "originalText": "宁波市", "width": 103.8, }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "家具", ], @@ -20587,7 +22579,7 @@ Array [ "actualText": "家具家具家具家具家具家具家...", "actualTextHeight": 30, "actualTextWidth": 168, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "家具家具家具家", "具家具家具家...", @@ -20599,7 +22591,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "家具", ], @@ -20610,7 +22602,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "家具", ], @@ -20618,934 +22610,934 @@ Array [ "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ - "家具", + "桌子", ], - "originalText": "家具", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualText": "桌子桌子桌子桌子桌子桌子桌...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "height": 100, "multiLineActualTexts": Array [ - "家具", + "桌子桌子桌子桌", + "子桌子桌子桌...", ], - "originalText": "家具", + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ - "家具", + "桌子", ], - "originalText": "家具", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ - "家具", + "桌子", ], - "originalText": "家具", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 100, "multiLineActualTexts": Array [ - "家具", + "2367236723611", + "11", ], - "originalText": "家具", + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualText": "778977897789778977897789...", + "actualTextHeight": 30, + "actualTextWidth": 172, + "height": 100, "multiLineActualTexts": Array [ - "办公用品", + "7789778977897", + "78977897789...", ], - "originalText": "办公用品", + "originalText": "7789778977897789778977897789", "width": 103.8, }, Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 100, "multiLineActualTexts": Array [ - "办公用品", + "2367236723611", + "11", ], - "originalText": "办公用品", + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 27, + "height": 100, "multiLineActualTexts": Array [ - "办公用品", + "3877", ], - "originalText": "办公用品", + "originalText": 3877, "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height if custom cell style less than actual text height by colCell.height 1`] = ` +Array [ Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, "height": 20, "multiLineActualTexts": Array [ - "办公用品", + "序号", ], - "originalText": "办公用品", - "width": 103.8, + "originalText": "序号", + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height if custom cell style less than actual text height by colCell.height 2`] = ` +Array [ Object { - "actualText": "办公用品", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "办公用品", + "1", ], - "originalText": "办公用品", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "办公用品", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "办公用品", + "2", ], - "originalText": "办公用品", - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "办公用品", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "办公用品", + "3", ], - "originalText": "办公用品", - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "办公用品", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "4", ], - "originalText": "办公用品", - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "5", ], - "originalText": "家具", - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "6", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌...", - "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 20, + "actualText": "7", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌...", + "7", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "width": 103.8, + "originalText": 7, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "8", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 8, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "9", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "9", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 9, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "10", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "10", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 10, + "width": 80, }, Object { - "actualText": "沙发", + "actualText": "11", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "沙发", + "11", ], - "originalText": "沙发", - "width": 103.8, + "originalText": 11, + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height if custom cell style less than actual text height by colCell.height 3`] = ` +Array [ Object { - "actualText": "沙发", - "actualTextHeight": 15, + "actualText": "序号", + "actualTextHeight": 16, "actualTextWidth": 25, "height": 20, "multiLineActualTexts": Array [ - "沙发", + "序号", ], - "originalText": "沙发", - "width": 103.8, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "沙发", - "actualTextHeight": 15, + "actualText": "省份", + "actualTextHeight": 16, "actualTextWidth": 25, "height": 20, "multiLineActualTexts": Array [ - "沙发", + "省份", ], - "originalText": "沙发", + "originalText": "省份", "width": 103.8, }, Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, + "actualText": "城市城市城市城市城市城市城...", + "actualTextHeight": 32, + "actualTextWidth": 168, "height": 20, "multiLineActualTexts": Array [ - "沙发", + "城市城市城市城", + "市城市城市城...", ], - "originalText": "沙发", + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, + "actualText": "类别类别类别类别类别类别类...", + "actualTextHeight": 32, + "actualTextWidth": 168, "height": 20, "multiLineActualTexts": Array [ - "笔", + "类别类别类别类", + "别类别类别类...", ], - "originalText": "笔", + "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, }, Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, "height": 20, "multiLineActualTexts": Array [ - "笔", + "子类别", ], - "originalText": "笔", + "originalText": "子类别", "width": 103.8, }, Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, + "actualText": "数量数量数量数量数量数量数...", + "actualTextHeight": 32, + "actualTextWidth": 168, "height": 20, "multiLineActualTexts": Array [ - "笔", + "数量数量数量数", + "量数量数量数...", ], - "originalText": "笔", + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height if custom cell style less than actual text height by colCell.height 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height if custom cell style less than actual text height by colCell.height 5`] = ` +Array [ Object { - "actualText": "笔", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "笔", + "1", ], - "originalText": "笔", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "纸张", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "纸张", + "2", ], - "originalText": "纸张", - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "纸张", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "纸张", + "3", ], - "originalText": "纸张", - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "纸张", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "纸张", + "4", ], - "originalText": "纸张", - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "纸张", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "纸张", + "5", ], - "originalText": "纸张", - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "6", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 20, + "actualText": "7", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "7", ], - "originalText": 236723672361111, - "width": 103.8, + "originalText": 7, + "width": 80, }, Object { - "actualText": "778977897789778977897789...", - "actualTextHeight": 30, - "actualTextWidth": 172, - "height": 20, + "actualText": "8", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "7789778977897", - "78977897789...", + "8", ], - "originalText": "7789778977897789778977897789", - "width": 103.8, + "originalText": 8, + "width": 80, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 20, + "actualText": "9", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "9", ], - "originalText": 236723672361111, - "width": 103.8, + "originalText": 9, + "width": 80, }, Object { - "actualText": "3877", + "actualText": "10", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "3877", + "10", ], - "originalText": 3877, - "width": 103.8, + "originalText": 10, + "width": 80, }, Object { - "actualText": "4342", + "actualText": "11", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "4342", + "11", ], - "originalText": 4342, - "width": 103.8, + "originalText": 11, + "width": 80, }, Object { - "actualText": "5343", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "5343", + "浙江省", ], - "originalText": 5343, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "632", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 20, + "actualText": "浙江省浙江省浙江省浙江省浙...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "height": 46, "multiLineActualTexts": Array [ - "632", + "浙江省浙江省浙", + "江省浙江省浙...", ], - "originalText": 632, + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, }, Object { - "actualText": "7234", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "7234", + "浙江省", ], - "originalText": 7234, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "834", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "834", + "浙江省", ], - "originalText": 834, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "945", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "945", + "浙江省", ], - "originalText": 945, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "1304", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "1304", + "浙江省", ], - "originalText": 1304, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "1145", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 26, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "1145", + "浙江省", ], - "originalText": 1145, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "1432", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "1432", + "浙江省", ], - "originalText": 1432, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "1343", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "1343", + "浙江省", ], - "originalText": 1343, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "1354", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "1354", + "浙江省", ], - "originalText": 1354, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "1523", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "1523", + "浙江省", ], - "originalText": 1523, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "1634", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "1634", + "绍兴市", ], - "originalText": 1634, + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "1723", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualText": "杭州市杭州市杭州市杭州市杭...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "height": 46, "multiLineActualTexts": Array [ - "1723", + "杭州市杭州市杭", + "州市杭州市杭...", ], - "originalText": 1723, + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style more than actual text height by dataCell.height 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 48, + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "序号", + "绍兴市", ], - "originalText": "序号", - "width": 80, + "originalText": "绍兴市", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style more than actual text height by dataCell.height 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "1", + "宁波市", ], - "originalText": 1, - "width": 80, + "originalText": "宁波市", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "2", + "舟山市", ], - "originalText": 2, - "width": 80, + "originalText": "舟山市", + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "3", - ], - "originalText": 3, - "width": 80, + "杭州市", + ], + "originalText": "杭州市", + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "4", + "绍兴市", ], - "originalText": 4, - "width": 80, + "originalText": "绍兴市", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style more than actual text height by dataCell.height 3`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 48, + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "宁波市", ], - "originalText": "序号", - "width": 80, + "originalText": "宁波市", + "width": 103.8, }, Object { - "actualText": "省份", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 48, + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "省份", + "舟山市", ], - "originalText": "省份", + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "height": 48, + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城...", + "杭州市", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "originalText": "杭州市", "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "height": 48, + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类...", + "绍兴市", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 48, + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "子类别", + "家具", ], - "originalText": "子类别", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数...", - "actualTextHeight": 32, + "actualText": "家具家具家具家具家具家具家...", + "actualTextHeight": 30, "actualTextWidth": 168, - "height": 48, + "height": 46, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数...", + "家具家具家具家", + "具家具家具家...", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style more than actual text height by dataCell.height 4`] = `Array []`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style more than actual text height by dataCell.height 5`] = ` -Array [ Object { - "actualText": "1", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "1", + "家具", ], - "originalText": 1, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "2", + "家具", ], - "originalText": 2, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "3", + "家具", ], - "originalText": 3, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "4", + "家具", ], - "originalText": 4, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "家具", ], - "originalText": "浙江省", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙...", - "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 100, + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙...", + "家具", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "家具", ], - "originalText": "浙江省", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "办公用品", ], - "originalText": "浙江省", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "办公用品", ], - "originalText": "绍兴市", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭...", - "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 100, + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭...", + "桌子", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualText": "桌子桌子桌子桌子桌子桌子桌...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "height": 46, "multiLineActualTexts": Array [ - "绍兴市", + "桌子桌子桌子桌", + "子桌子桌子桌...", ], - "originalText": "绍兴市", + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, }, Object { - "actualText": "宁波市", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "宁波市", + "桌子", ], - "originalText": "宁波市", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "桌子", ], - "originalText": "家具", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "家具家具家具家具家具家具家...", - "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 100, + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家...", + "桌子", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "沙发", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "沙发", ], - "originalText": "家具", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "沙发", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "沙发", ], - "originalText": "家具", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "沙发", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "沙发", ], - "originalText": "桌子", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌...", - "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 100, + "actualText": "沙发", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌...", + "沙发", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "笔", ], - "originalText": "桌子", + "originalText": "笔", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "笔", ], - "originalText": "桌子", + "originalText": "笔", "width": 103.8, }, Object { "actualText": "236723672361111", "actualTextHeight": 30, "actualTextWidth": 100, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "2367236723611", "11", @@ -21557,7 +23549,7 @@ Array [ "actualText": "778977897789778977897789...", "actualTextHeight": 30, "actualTextWidth": 172, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "7789778977897", "78977897789...", @@ -21569,7 +23561,7 @@ Array [ "actualText": "236723672361111", "actualTextHeight": 30, "actualTextWidth": 100, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "2367236723611", "11", @@ -21581,23 +23573,100 @@ Array [ "actualText": "3877", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "3877", ], "originalText": 3877, "width": 103.8, }, + Object { + "actualText": "4342", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "4342", + ], + "originalText": 4342, + "width": 103.8, + }, + Object { + "actualText": "5343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "5343", + ], + "originalText": 5343, + "width": 103.8, + }, + Object { + "actualText": "632", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "632", + ], + "originalText": 632, + "width": 103.8, + }, + Object { + "actualText": "7234", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "7234", + ], + "originalText": 7234, + "width": 103.8, + }, + Object { + "actualText": "834", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "834", + ], + "originalText": 834, + "width": 103.8, + }, + Object { + "actualText": "945", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "945", + ], + "originalText": 945, + "width": 103.8, + }, + Object { + "actualText": "1304", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1304", + ], + "originalText": 1304, + "width": 103.8, + }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height if custom cell style less than actual text height by colCell.height 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 20, + "height": 64, "multiLineActualTexts": Array [ "序号", ], @@ -21607,13 +23676,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height if custom cell style less than actual text height by colCell.height 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "1", ], @@ -21624,7 +23693,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "2", ], @@ -21635,7 +23704,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "3", ], @@ -21646,7 +23715,7 @@ Array [ "actualText": "4", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "4", ], @@ -21657,7 +23726,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "5", ], @@ -21668,7 +23737,7 @@ Array [ "actualText": "6", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "6", ], @@ -21679,7 +23748,7 @@ Array [ "actualText": "7", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "7", ], @@ -21690,7 +23759,7 @@ Array [ "actualText": "8", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "8", ], @@ -21701,7 +23770,7 @@ Array [ "actualText": "9", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "9", ], @@ -21712,7 +23781,7 @@ Array [ "actualText": "10", "actualTextHeight": 15, "actualTextWidth": 14, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "10", ], @@ -21723,23 +23792,89 @@ Array [ "actualText": "11", "actualTextHeight": 15, "actualTextWidth": 13, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "11", ], "originalText": 11, "width": 80, }, + Object { + "actualText": "12", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, + "multiLineActualTexts": Array [ + "12", + ], + "originalText": 12, + "width": 80, + }, + Object { + "actualText": "13", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, + "multiLineActualTexts": Array [ + "13", + ], + "originalText": 13, + "width": 80, + }, + Object { + "actualText": "14", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, + "multiLineActualTexts": Array [ + "14", + ], + "originalText": 14, + "width": 80, + }, + Object { + "actualText": "15", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, + "multiLineActualTexts": Array [ + "15", + ], + "originalText": 15, + "width": 80, + }, + Object { + "actualText": "16", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, + "multiLineActualTexts": Array [ + "16", + ], + "originalText": 16, + "width": 80, + }, + Object { + "actualText": "17", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, + "multiLineActualTexts": Array [ + "17", + ], + "originalText": 17, + "width": 80, + }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height if custom cell style less than actual text height by colCell.height 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 20, + "height": 64, "multiLineActualTexts": Array [ "序号", ], @@ -21750,7 +23885,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 20, + "height": 64, "multiLineActualTexts": Array [ "省份", ], @@ -21758,25 +23893,27 @@ Array [ "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "height": 20, + "actualText": "城市城市城市城市城市城市城市城市城市城市...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, "multiLineActualTexts": Array [ "城市城市城市城", - "市城市城市城...", + "市城市城市城市", + "城市城市城市...", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "height": 20, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 64, "multiLineActualTexts": Array [ "类别类别类别类", - "别类别类别类...", + "别类别类别类别", + "类别类别类别", ], "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, @@ -21785,7 +23922,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 20, + "height": 64, "multiLineActualTexts": Array [ "子类别", ], @@ -21793,13 +23930,14 @@ Array [ "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "height": 20, + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, "multiLineActualTexts": Array [ "数量数量数量数", - "量数量数量数...", + "量数量数量数量", + "数量数量数量...", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, @@ -21807,15 +23945,15 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height if custom cell style less than actual text height by colCell.height 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height if custom cell style less than actual text height by colCell.height 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "1", ], @@ -21826,7 +23964,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "2", ], @@ -21837,7 +23975,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "3", ], @@ -21848,7 +23986,7 @@ Array [ "actualText": "4", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "4", ], @@ -21859,7 +23997,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "5", ], @@ -21870,7 +24008,7 @@ Array [ "actualText": "6", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "6", ], @@ -21881,7 +24019,7 @@ Array [ "actualText": "7", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "7", ], @@ -21892,7 +24030,7 @@ Array [ "actualText": "8", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "8", ], @@ -21903,7 +24041,7 @@ Array [ "actualText": "9", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "9", ], @@ -21914,7 +24052,7 @@ Array [ "actualText": "10", "actualTextHeight": 15, "actualTextWidth": 14, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "10", ], @@ -21925,18 +24063,84 @@ Array [ "actualText": "11", "actualTextHeight": 15, "actualTextWidth": 13, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "11", ], "originalText": 11, "width": 80, }, + Object { + "actualText": "12", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, + "multiLineActualTexts": Array [ + "12", + ], + "originalText": 12, + "width": 80, + }, + Object { + "actualText": "13", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, + "multiLineActualTexts": Array [ + "13", + ], + "originalText": 13, + "width": 80, + }, + Object { + "actualText": "14", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, + "multiLineActualTexts": Array [ + "14", + ], + "originalText": 14, + "width": 80, + }, + Object { + "actualText": "15", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, + "multiLineActualTexts": Array [ + "15", + ], + "originalText": 15, + "width": 80, + }, + Object { + "actualText": "16", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, + "multiLineActualTexts": Array [ + "16", + ], + "originalText": 16, + "width": 80, + }, + Object { + "actualText": "17", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, + "multiLineActualTexts": Array [ + "17", + ], + "originalText": 17, + "width": 80, + }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -21944,13 +24148,14 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙...", - "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 46, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 20, "multiLineActualTexts": Array [ "浙江省浙江省浙", - "江省浙江省浙...", + "江省浙江省浙江", + "省浙江省浙江...", ], "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, @@ -21959,7 +24164,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -21970,7 +24175,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -21981,7 +24186,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -21992,7 +24197,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -22003,7 +24208,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -22014,7 +24219,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -22025,7 +24230,84 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -22036,52 +24318,86 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, + "multiLineActualTexts": Array [ + "绍兴市", + ], + "originalText": "绍兴市", + "width": 103.8, + }, + Object { + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 20, + "multiLineActualTexts": Array [ + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州...", + ], + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 103.8, + }, + Object { + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "绍兴市", ], - "originalText": "浙江省", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "宁波市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "宁波市", ], - "originalText": "浙江省", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "舟山市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ - "绍兴市", + "舟山市", ], - "originalText": "绍兴市", + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭...", - "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 46, + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭...", + "杭州市", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "originalText": "杭州市", "width": 103.8, }, Object { "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "绍兴市", ], @@ -22092,7 +24408,7 @@ Array [ "actualText": "宁波市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "宁波市", ], @@ -22103,7 +24419,7 @@ Array [ "actualText": "舟山市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "舟山市", ], @@ -22114,7 +24430,7 @@ Array [ "actualText": "杭州市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "杭州市", ], @@ -22125,7 +24441,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "绍兴市", ], @@ -22136,7 +24452,7 @@ Array [ "actualText": "宁波市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "宁波市", ], @@ -22147,7 +24463,7 @@ Array [ "actualText": "舟山市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "舟山市", ], @@ -22158,7 +24474,7 @@ Array [ "actualText": "杭州市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "杭州市", ], @@ -22169,18 +24485,40 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "绍兴市", ], "originalText": "绍兴市", "width": 103.8, }, + Object { + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, + "multiLineActualTexts": Array [ + "宁波市", + ], + "originalText": "宁波市", + "width": 103.8, + }, + Object { + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, + "multiLineActualTexts": Array [ + "舟山市", + ], + "originalText": "舟山市", + "width": 103.8, + }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "家具", ], @@ -22188,13 +24526,14 @@ Array [ "width": 103.8, }, Object { - "actualText": "家具家具家具家具家具家具家...", - "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 46, + "actualText": "家具家具家具家具家具家具家具家具家具家具...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 20, "multiLineActualTexts": Array [ "家具家具家具家", - "具家具家具家...", + "具家具家具家具", + "家具家具家具...", ], "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103.8, @@ -22203,7 +24542,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "家具", ], @@ -22214,7 +24553,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "家具", ], @@ -22225,7 +24564,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "家具", ], @@ -22236,7 +24575,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "家具", ], @@ -22247,7 +24586,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "家具", ], @@ -22258,7 +24597,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "家具", ], @@ -22269,7 +24608,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "家具", ], @@ -22280,7 +24619,7 @@ Array [ "actualText": "办公用品", "actualTextHeight": 15, "actualTextWidth": 49, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "办公用品", ], @@ -22291,7 +24630,73 @@ Array [ "actualText": "办公用品", "actualTextHeight": 15, "actualTextWidth": 49, - "height": 30, + "height": 20, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 103.8, + }, + Object { + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 20, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 103.8, + }, + Object { + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 20, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 103.8, + }, + Object { + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 20, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 103.8, + }, + Object { + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 20, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 103.8, + }, + Object { + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 20, + "multiLineActualTexts": Array [ + "办公用品", + ], + "originalText": "办公用品", + "width": 103.8, + }, + Object { + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ "办公用品", ], @@ -22302,7 +24707,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "桌子", ], @@ -22310,13 +24715,14 @@ Array [ "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌...", - "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 46, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 20, "multiLineActualTexts": Array [ "桌子桌子桌子桌", - "子桌子桌子桌...", + "子桌子桌子桌子", + "桌子桌子桌子...", ], "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, @@ -22325,7 +24731,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "桌子", ], @@ -22336,7 +24742,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "桌子", ], @@ -22347,84 +24753,150 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, + "multiLineActualTexts": Array [ + "桌子", + ], + "originalText": "桌子", + "width": 103.8, + }, + Object { + "actualText": "沙发", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 20, + "multiLineActualTexts": Array [ + "沙发", + ], + "originalText": "沙发", + "width": 103.8, + }, + Object { + "actualText": "沙发", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 20, + "multiLineActualTexts": Array [ + "沙发", + ], + "originalText": "沙发", + "width": 103.8, + }, + Object { + "actualText": "沙发", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 20, + "multiLineActualTexts": Array [ + "沙发", + ], + "originalText": "沙发", + "width": 103.8, + }, + Object { + "actualText": "沙发", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 20, + "multiLineActualTexts": Array [ + "沙发", + ], + "originalText": "沙发", + "width": 103.8, + }, + Object { + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 20, + "multiLineActualTexts": Array [ + "笔", + ], + "originalText": "笔", + "width": 103.8, + }, + Object { + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 20, "multiLineActualTexts": Array [ - "桌子", + "笔", ], - "originalText": "桌子", + "originalText": "笔", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 13, + "height": 20, "multiLineActualTexts": Array [ - "沙发", + "笔", ], - "originalText": "沙发", + "originalText": "笔", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 13, + "height": 20, "multiLineActualTexts": Array [ - "沙发", + "笔", ], - "originalText": "沙发", + "originalText": "笔", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "纸张", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ - "沙发", + "纸张", ], - "originalText": "沙发", + "originalText": "纸张", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "纸张", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ - "沙发", + "纸张", ], - "originalText": "沙发", + "originalText": "纸张", "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "纸张", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "笔", + "纸张", ], - "originalText": "笔", + "originalText": "纸张", "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "纸张", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "笔", + "纸张", ], - "originalText": "笔", + "originalText": "纸张", "width": 103.8, }, Object { "actualText": "236723672361111", "actualTextHeight": 30, "actualTextWidth": 100, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "2367236723611", "11", @@ -22433,13 +24905,14 @@ Array [ "width": 103.8, }, Object { - "actualText": "778977897789778977897789...", - "actualTextHeight": 30, - "actualTextWidth": 172, - "height": 46, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 20, "multiLineActualTexts": Array [ "7789778977897", - "78977897789...", + "7897789778977", + "89", ], "originalText": "7789778977897789778977897789", "width": 103.8, @@ -22448,7 +24921,7 @@ Array [ "actualText": "236723672361111", "actualTextHeight": 30, "actualTextWidth": 100, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "2367236723611", "11", @@ -22460,7 +24933,7 @@ Array [ "actualText": "3877", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "3877", ], @@ -22471,7 +24944,7 @@ Array [ "actualText": "4342", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "4342", ], @@ -22482,7 +24955,7 @@ Array [ "actualText": "5343", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "5343", ], @@ -22493,7 +24966,7 @@ Array [ "actualText": "632", "actualTextHeight": 15, "actualTextWidth": 21, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "632", ], @@ -22504,7 +24977,7 @@ Array [ "actualText": "7234", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "7234", ], @@ -22515,7 +24988,7 @@ Array [ "actualText": "834", "actualTextHeight": 15, "actualTextWidth": 21, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "834", ], @@ -22526,7 +24999,7 @@ Array [ "actualText": "945", "actualTextHeight": 15, "actualTextWidth": 21, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "945", ], @@ -22537,225 +25010,192 @@ Array [ "actualText": "1304", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "1304", ], "originalText": 1304, "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 1`] = ` -Array [ - Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 64, - "multiLineActualTexts": Array [ - "序号", - ], - "originalText": "序号", - "width": 80, - }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "1145", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 26, "height": 20, "multiLineActualTexts": Array [ - "1", + "1145", ], - "originalText": 1, - "width": 80, + "originalText": 1145, + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "1432", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 27, "height": 20, "multiLineActualTexts": Array [ - "2", + "1432", ], - "originalText": 2, - "width": 80, + "originalText": 1432, + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "1343", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 27, "height": 20, "multiLineActualTexts": Array [ - "3", + "1343", ], - "originalText": 3, - "width": 80, + "originalText": 1343, + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "1354", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 27, "height": 20, "multiLineActualTexts": Array [ - "4", + "1354", ], - "originalText": 4, - "width": 80, + "originalText": 1354, + "width": 103.8, }, Object { - "actualText": "5", + "actualText": "1523", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 27, "height": 20, "multiLineActualTexts": Array [ - "5", + "1523", ], - "originalText": 5, - "width": 80, + "originalText": 1523, + "width": 103.8, }, Object { - "actualText": "6", + "actualText": "1634", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 27, "height": 20, "multiLineActualTexts": Array [ - "6", + "1634", ], - "originalText": 6, - "width": 80, + "originalText": 1634, + "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 1`] = ` +Array [ Object { - "actualText": "7", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, "multiLineActualTexts": Array [ - "7", + "序号", ], - "originalText": 7, + "originalText": "序号", "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 2`] = ` +Array [ Object { - "actualText": "8", + "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ - "8", + "1", ], - "originalText": 8, + "originalText": 1, "width": 80, }, Object { - "actualText": "9", + "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "9", - ], - "originalText": 9, - "width": 80, - }, - Object { - "actualText": "10", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, - "multiLineActualTexts": Array [ - "10", - ], - "originalText": 10, - "width": 80, - }, - Object { - "actualText": "11", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, - "multiLineActualTexts": Array [ - "11", + "2", ], - "originalText": 11, + "originalText": 2, "width": 80, }, Object { - "actualText": "12", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "12", + "3", ], - "originalText": 12, + "originalText": 3, "width": 80, }, Object { - "actualText": "13", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "13", + "4", ], - "originalText": 13, + "originalText": 4, "width": 80, }, Object { - "actualText": "14", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "14", + "5", ], - "originalText": 14, + "originalText": 5, "width": 80, }, Object { - "actualText": "15", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "15", + "6", ], - "originalText": 15, + "originalText": 6, "width": 80, }, Object { - "actualText": "16", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "16", + "7", ], - "originalText": 16, + "originalText": 7, "width": 80, }, Object { - "actualText": "17", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "17", + "8", ], - "originalText": 17, + "originalText": 8, "width": 80, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 3`] = ` Array [ Object { "actualText": "序号", @@ -22832,15 +25272,15 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "1", ], @@ -22862,7 +25302,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "3", ], @@ -22873,7 +25313,7 @@ Array [ "actualText": "4", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "4", ], @@ -22884,7 +25324,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "5", ], @@ -22895,7 +25335,7 @@ Array [ "actualText": "6", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "6", ], @@ -22906,7 +25346,7 @@ Array [ "actualText": "7", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "7", ], @@ -22917,218 +25357,18 @@ Array [ "actualText": "8", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "8", ], "originalText": 8, "width": 80, }, - Object { - "actualText": "9", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, - "multiLineActualTexts": Array [ - "9", - ], - "originalText": 9, - "width": 80, - }, - Object { - "actualText": "10", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, - "multiLineActualTexts": Array [ - "10", - ], - "originalText": 10, - "width": 80, - }, - Object { - "actualText": "11", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, - "multiLineActualTexts": Array [ - "11", - ], - "originalText": 11, - "width": 80, - }, - Object { - "actualText": "12", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, - "multiLineActualTexts": Array [ - "12", - ], - "originalText": 12, - "width": 80, - }, - Object { - "actualText": "13", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, - "multiLineActualTexts": Array [ - "13", - ], - "originalText": 13, - "width": 80, - }, - Object { - "actualText": "14", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, - "multiLineActualTexts": Array [ - "14", - ], - "originalText": 14, - "width": 80, - }, - Object { - "actualText": "15", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, - "multiLineActualTexts": Array [ - "15", - ], - "originalText": 15, - "width": 80, - }, - Object { - "actualText": "16", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, - "multiLineActualTexts": Array [ - "16", - ], - "originalText": 16, - "width": 80, - }, - Object { - "actualText": "17", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, - "multiLineActualTexts": Array [ - "17", - ], - "originalText": 17, - "width": 80, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 20, - "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江...", - ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], @@ -23136,21 +25376,23 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", + "actualTextHeight": 45, + "actualTextWidth": 253, "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江...", ], - "originalText": "浙江省", + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], @@ -23161,7 +25403,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -23172,7 +25414,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "浙江省", ], @@ -23183,7 +25425,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -23194,7 +25436,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -23205,7 +25447,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -23216,7 +25458,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "绍兴市", ], @@ -23240,7 +25482,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "绍兴市", ], @@ -23251,7 +25493,7 @@ Array [ "actualText": "宁波市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "宁波市", ], @@ -23262,7 +25504,7 @@ Array [ "actualText": "舟山市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "舟山市", ], @@ -23273,7 +25515,7 @@ Array [ "actualText": "杭州市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "杭州市", ], @@ -23284,7 +25526,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "绍兴市", ], @@ -23295,7 +25537,7 @@ Array [ "actualText": "宁波市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "宁波市", ], @@ -23303,109 +25545,89 @@ Array [ "width": 103.8, }, Object { - "actualText": "舟山市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, - "multiLineActualTexts": Array [ - "舟山市", - ], - "originalText": "舟山市", - "width": 103.8, - }, - Object { - "actualText": "杭州市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, - "multiLineActualTexts": Array [ - "杭州市", - ], - "originalText": "杭州市", - "width": 103.8, - }, - Object { - "actualText": "绍兴市", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "绍兴市", + "家具", ], - "originalText": "绍兴市", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, + "actualText": "家具家具家具家具家具家具家具家具家具家具...", + "actualTextHeight": 45, + "actualTextWidth": 253, "height": 20, "multiLineActualTexts": Array [ - "宁波市", + "家具家具家具家", + "具家具家具家具", + "家具家具家具...", ], - "originalText": "宁波市", + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103.8, }, Object { - "actualText": "舟山市", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "舟山市", + "家具", ], - "originalText": "舟山市", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "杭州市", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "杭州市", + "家具", ], - "originalText": "杭州市", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "绍兴市", + "家具", ], - "originalText": "绍兴市", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "宁波市", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "家具", ], - "originalText": "宁波市", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "舟山市", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "舟山市", + "家具", ], - "originalText": "舟山市", + "originalText": "家具", "width": 103.8, }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "家具", ], @@ -23413,567 +25635,616 @@ Array [ "width": 103.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 20, + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具...", + "桌子", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", + "actualTextHeight": 45, + "actualTextWidth": 253, "height": 20, "multiLineActualTexts": Array [ - "家具", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子...", ], - "originalText": "家具", + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ - "家具", + "桌子", ], - "originalText": "家具", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "桌子", ], - "originalText": "家具", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ - "家具", + "桌子", ], - "originalText": "家具", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "沙发", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "沙发", ], - "originalText": "家具", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "沙发", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "沙发", ], - "originalText": "家具", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "沙发", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "沙发", ], - "originalText": "家具", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "办公用品", + "2367236723611", + "11", ], - "originalText": "办公用品", + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, "height": 20, "multiLineActualTexts": Array [ - "办公用品", + "7789778977897", + "7897789778977", + "89", ], - "originalText": "办公用品", + "originalText": "7789778977897789778977897789", "width": 103.8, }, Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "办公用品", + "2367236723611", + "11", ], - "originalText": "办公用品", + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "3877", ], - "originalText": "办公用品", + "originalText": 3877, "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "4342", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 27, + "height": 100, "multiLineActualTexts": Array [ - "办公用品", + "4342", ], - "originalText": "办公用品", + "originalText": 4342, "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "5343", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "5343", ], - "originalText": "办公用品", + "originalText": 5343, "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "632", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "632", ], - "originalText": "办公用品", + "originalText": 632, "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "7234", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "7234", ], - "originalText": "办公用品", + "originalText": 7234, "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 1`] = ` +Array [ Object { - "actualText": "桌子", - "actualTextHeight": 15, + "actualText": "序号", + "actualTextHeight": 16, "actualTextWidth": 25, - "height": 20, + "height": 64, "multiLineActualTexts": Array [ - "桌子", + "序号", ], - "originalText": "桌子", - "width": 103.8, + "originalText": "序号", + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 2`] = ` +Array [ Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 20, + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子...", + "1", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "桌子", + "2", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "桌子", + "3", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "4", "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 100, + "multiLineActualTexts": Array [ + "4", + ], + "originalText": 4, + "width": 80, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 3`] = ` +Array [ + Object { + "actualText": "序号", + "actualTextHeight": 16, "actualTextWidth": 25, - "height": 20, + "height": 64, "multiLineActualTexts": Array [ - "桌子", + "序号", ], - "originalText": "桌子", - "width": 103.8, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "沙发", - "actualTextHeight": 15, + "actualText": "省份", + "actualTextHeight": 16, "actualTextWidth": 25, - "height": 20, + "height": 64, "multiLineActualTexts": Array [ - "沙发", + "省份", ], - "originalText": "沙发", + "originalText": "省份", "width": 103.8, }, Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualText": "城市城市城市城市城市城市城市城市城市城市...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, "multiLineActualTexts": Array [ - "沙发", + "城市城市城市城", + "市城市城市城市", + "城市城市城市...", ], - "originalText": "沙发", + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 64, "multiLineActualTexts": Array [ - "沙发", + "类别类别类别类", + "别类别类别类别", + "类别类别类别", ], - "originalText": "沙发", + "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, }, Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 64, "multiLineActualTexts": Array [ - "沙发", + "子类别", ], - "originalText": "沙发", + "originalText": "子类别", "width": 103.8, }, Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, "multiLineActualTexts": Array [ - "笔", + "数量数量数量数", + "量数量数量数量", + "数量数量数量...", ], - "originalText": "笔", + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 5`] = ` +Array [ Object { - "actualText": "笔", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "笔", + "1", ], - "originalText": "笔", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "笔", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "笔", + "2", ], - "originalText": "笔", - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "笔", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "笔", + "3", ], - "originalText": "笔", - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "纸张", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "纸张", + "4", ], - "originalText": "纸张", - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "纸张", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "纸张", + "浙江省", ], - "originalText": "纸张", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "纸张", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 100, "multiLineActualTexts": Array [ - "纸张", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江...", ], - "originalText": "纸张", + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, }, Object { - "actualText": "纸张", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "纸张", + "浙江省", ], - "originalText": "纸张", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 20, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "浙江省", ], - "originalText": 236723672361111, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 20, + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", + "绍兴市", ], - "originalText": "7789778977897789778977897789", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 20, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 100, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州...", ], - "originalText": 236723672361111, + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, }, Object { - "actualText": "3877", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "3877", + "绍兴市", ], - "originalText": 3877, + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "4342", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "4342", + "宁波市", ], - "originalText": 4342, + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "5343", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "5343", + "家具", ], - "originalText": 5343, + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "632", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 20, + "actualText": "家具家具家具家具家具家具家具家具家具家具...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 100, "multiLineActualTexts": Array [ - "632", + "家具家具家具家", + "具家具家具家具", + "家具家具家具...", ], - "originalText": 632, + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103.8, }, Object { - "actualText": "7234", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "7234", + "家具", ], - "originalText": 7234, + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "834", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 20, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "834", + "家具", ], - "originalText": 834, + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "945", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 20, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "945", + "桌子", ], - "originalText": 945, + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "1304", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 100, "multiLineActualTexts": Array [ - "1304", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子...", ], - "originalText": 1304, + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, }, Object { - "actualText": "1145", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 26, - "height": 20, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "1145", + "桌子", ], - "originalText": 1145, + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "1432", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "1432", + "桌子", ], - "originalText": 1432, + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "1343", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 100, "multiLineActualTexts": Array [ - "1343", + "2367236723611", + "11", ], - "originalText": 1343, + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "1354", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 100, "multiLineActualTexts": Array [ - "1354", + "7789778977897", + "7897789778977", + "89", ], - "originalText": 1354, + "originalText": "7789778977897789778977897789", "width": 103.8, }, Object { - "actualText": "1523", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 100, "multiLineActualTexts": Array [ - "1523", + "2367236723611", + "11", ], - "originalText": 1523, + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "1634", + "actualText": "3877", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ - "1634", + "3877", ], - "originalText": 1634, + "originalText": 3877, "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 1`] = ` Array [ Object { "actualText": "序号", @@ -23989,13 +26260,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 100, "multiLineActualTexts": Array [ "1", ], @@ -24006,7 +26277,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "2", ], @@ -24017,72 +26288,50 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, - "multiLineActualTexts": Array [ - "3", - ], - "originalText": 3, - "width": 80, - }, - Object { - "actualText": "4", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "4", - ], - "originalText": 4, - "width": 80, - }, - Object { - "actualText": "5", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ - "5", + "3", ], - "originalText": 5, + "originalText": 3, "width": 80, }, Object { - "actualText": "6", + "actualText": "4", "actualTextHeight": 15, "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "6", + "4", ], - "originalText": 6, + "originalText": 4, "width": 80, }, Object { - "actualText": "7", + "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "7", + "5", ], - "originalText": 7, + "originalText": 5, "width": 80, }, Object { - "actualText": "8", + "actualText": "6", "actualTextHeight": 15, "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "8", + "6", ], - "originalText": 8, + "originalText": 6, "width": 80, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 3`] = ` Array [ Object { "actualText": "序号", @@ -24159,15 +26408,15 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 100, "multiLineActualTexts": Array [ "1", ], @@ -24178,7 +26427,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "2", ], @@ -24211,7 +26460,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "5", ], @@ -24229,33 +26478,11 @@ Array [ "originalText": 6, "width": 80, }, - Object { - "actualText": "7", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "7", - ], - "originalText": 7, - "width": 80, - }, - Object { - "actualText": "8", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "8", - ], - "originalText": 8, - "width": 80, - }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 100, "multiLineActualTexts": Array [ "浙江省", ], @@ -24266,7 +26493,7 @@ Array [ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", "actualTextHeight": 45, "actualTextWidth": 253, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "浙江省浙江省浙", "江省浙江省浙江", @@ -24297,28 +26524,6 @@ Array [ "originalText": "浙江省", "width": 103.8, }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, Object { "actualText": "浙江省", "actualTextHeight": 15, @@ -24345,7 +26550,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 100, "multiLineActualTexts": Array [ "绍兴市", ], @@ -24356,7 +26561,7 @@ Array [ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", "actualTextHeight": 45, "actualTextWidth": 253, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "杭州市杭州市杭", "州市杭州市杭州", @@ -24391,7 +26596,7 @@ Array [ "actualText": "舟山市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "舟山市", ], @@ -24409,33 +26614,11 @@ Array [ "originalText": "杭州市", "width": 103.8, }, - Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "绍兴市", - ], - "originalText": "绍兴市", - "width": 103.8, - }, - Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "宁波市", - ], - "originalText": "宁波市", - "width": 103.8, - }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 100, "multiLineActualTexts": Array [ "家具", ], @@ -24446,7 +26629,7 @@ Array [ "actualText": "家具家具家具家具家具家具家具家具家具家具...", "actualTextHeight": 45, "actualTextWidth": 253, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "家具家具家具家", "具家具家具家具", @@ -24477,28 +26660,6 @@ Array [ "originalText": "家具", "width": 103.8, }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, Object { "actualText": "家具", "actualTextHeight": 15, @@ -24525,7 +26686,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 100, "multiLineActualTexts": Array [ "桌子", ], @@ -24536,7 +26697,7 @@ Array [ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", "actualTextHeight": 45, "actualTextWidth": 253, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "桌子桌子桌子桌", "子桌子桌子桌子", @@ -24571,7 +26732,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "桌子", ], @@ -24589,33 +26750,11 @@ Array [ "originalText": "沙发", "width": 103.8, }, - Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "沙发", - ], - "originalText": "沙发", - "width": 103.8, - }, - Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "沙发", - ], - "originalText": "沙发", - "width": 103.8, - }, Object { "actualText": "236723672361111", "actualTextHeight": 30, "actualTextWidth": 100, - "height": 46, + "height": 100, "multiLineActualTexts": Array [ "2367236723611", "11", @@ -24627,7 +26766,7 @@ Array [ "actualText": "7789778977897789778977897789", "actualTextHeight": 45, "actualTextWidth": 189, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "7789778977897", "7897789778977", @@ -24662,122 +26801,199 @@ Array [ Object { "actualText": "4342", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 100, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "4342", + ], + "originalText": 4342, + "width": 103.8, + }, + Object { + "actualText": "5343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "5343", + ], + "originalText": 5343, + "width": 103.8, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 1`] = ` +Array [ + Object { + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "序号", + ], + "originalText": "序号", + "width": 80, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 2`] = ` +Array [ + Object { + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "1", + ], + "originalText": 1, + "width": 80, + }, + Object { + "actualText": "2", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "2", + ], + "originalText": 2, + "width": 80, + }, + Object { + "actualText": "3", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "3", + ], + "originalText": 3, + "width": 80, + }, + Object { + "actualText": "4", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "4", + ], + "originalText": 4, + "width": 80, + }, + Object { + "actualText": "5", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "4342", + "5", ], - "originalText": 4342, - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "5343", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "5343", + "6", ], - "originalText": 5343, - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "632", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "632", + "7", ], - "originalText": 632, - "width": 103.8, + "originalText": 7, + "width": 80, }, Object { - "actualText": "7234", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "7234", + "8", ], - "originalText": 7234, - "width": 103.8, + "originalText": 8, + "width": 80, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 64, + "actualText": "9", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "9", ], - "originalText": "序号", + "originalText": 9, "width": 80, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "10", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "1", + "10", ], - "originalText": 1, + "originalText": 10, "width": 80, }, Object { - "actualText": "2", + "actualText": "11", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "2", + "11", ], - "originalText": 2, + "originalText": 11, "width": 80, }, Object { - "actualText": "3", + "actualText": "12", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "3", + "12", ], - "originalText": 3, + "originalText": 12, "width": 80, }, Object { - "actualText": "4", + "actualText": "13", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "4", + "13", ], - "originalText": 4, + "originalText": 13, "width": 80, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "序号", ], @@ -24788,7 +27004,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "省份", ], @@ -24796,27 +27012,23 @@ Array [ "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 16, + "actualTextWidth": 289, + "height": 30, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市...", + "城市城市城市城市城市城市城市城市城市城市城市城市", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 64, + "actualTextHeight": 16, + "actualTextWidth": 241, + "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "类别类别类别类别类别类别类别类别类别类别", ], "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, @@ -24825,7 +27037,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "子类别", ], @@ -24833,14 +27045,12 @@ Array [ "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 16, + "actualTextWidth": 265, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", + "数量数量数量数量数量数量数量数量数量数量数量", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, @@ -24848,15 +27058,15 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "1", ], @@ -24867,7 +27077,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "2", ], @@ -24878,7 +27088,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "3", ], @@ -24889,7 +27099,7 @@ Array [ "actualText": "4", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "4", ], @@ -24897,779 +27107,705 @@ Array [ "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 100, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江...", + "5", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "6", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "7", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 7, + "width": 80, }, Object { - "actualText": "绍兴市", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, - "multiLineActualTexts": Array [ - "绍兴市", - ], - "originalText": "绍兴市", - "width": 103.8, - }, - Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 100, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭州", - "市杭州市杭州...", + "8", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "width": 103.8, + "originalText": 8, + "width": 80, }, Object { - "actualText": "绍兴市", + "actualText": "9", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "9", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": 9, + "width": 80, }, Object { - "actualText": "宁波市", + "actualText": "10", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "10", ], - "originalText": "宁波市", - "width": 103.8, + "originalText": 10, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "11", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "11", ], - "originalText": "家具", - "width": 103.8, + "originalText": 11, + "width": 80, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 100, + "actualText": "12", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具...", + "12", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 103.8, + "originalText": 12, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "13", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "13", ], - "originalText": "家具", - "width": 103.8, + "originalText": 13, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "浙江省", ], - "originalText": "家具", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "actualTextWidth": 361, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", ], - "originalText": "桌子", + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 100, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子...", + "浙江省", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "浙江省", ], - "originalText": "桌子", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "浙江省", ], - "originalText": "桌子", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 100, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "浙江省", ], - "originalText": 236723672361111, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 100, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", + "浙江省", ], - "originalText": "7789778977897789778977897789", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 100, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "浙江省", ], - "originalText": 236723672361111, + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "3877", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 100, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "3877", + "浙江省", ], - "originalText": 3877, + "originalText": "浙江省", "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 64, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "浙江省", ], - "originalText": "序号", - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "1", + "浙江省", ], - "originalText": 1, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "2", + "浙江省", ], - "originalText": 2, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "3", + "浙江省", ], - "originalText": 3, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "4", + "绍兴市", ], - "originalText": 4, - "width": 80, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "5", + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 361, "height": 30, "multiLineActualTexts": Array [ - "5", + "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", ], - "originalText": 5, - "width": 80, + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 103.8, }, Object { - "actualText": "6", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "6", + "绍兴市", ], - "originalText": 6, - "width": 80, + "originalText": "绍兴市", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 3`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 64, + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "宁波市", ], - "originalText": "序号", - "width": 80, + "originalText": "宁波市", + "width": 103.8, }, Object { - "actualText": "省份", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 64, + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "省份", + "舟山市", ], - "originalText": "省份", + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市...", + "杭州市", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "originalText": "杭州市", "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 64, + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "绍兴市", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, + "actualText": "宁波市", + "actualTextHeight": 15, "actualTextWidth": 37, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ - "子类别", + "宁波市", ], - "originalText": "子类别", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", + "舟山市", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "originalText": "舟山市", "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 4`] = `Array []`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 5`] = ` -Array [ Object { - "actualText": "1", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "1", + "杭州市", ], - "originalText": 1, - "width": 80, + "originalText": "杭州市", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "2", + "绍兴市", ], - "originalText": 2, - "width": 80, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "3", + "宁波市", ], - "originalText": 3, - "width": 80, + "originalText": "宁波市", + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "4", + "舟山市", ], - "originalText": 4, - "width": 80, + "originalText": "舟山市", + "width": 103.8, }, Object { - "actualText": "5", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "5", + "家具", ], - "originalText": 5, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "6", + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 337, "height": 30, "multiLineActualTexts": Array [ - "6", + "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", ], - "originalText": 6, - "width": 80, + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "家具", ], - "originalText": "浙江省", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 100, + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江...", + "家具", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "家具", ], - "originalText": "浙江省", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "家具", ], - "originalText": "浙江省", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "家具", ], - "originalText": "浙江省", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "家具", ], - "originalText": "浙江省", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 100, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "家具", ], - "originalText": "绍兴市", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 100, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭州", - "市杭州市杭州...", + "办公用品", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "办公用品", ], - "originalText": "绍兴市", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "宁波市", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 49, "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "办公用品", ], - "originalText": "宁波市", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "舟山市", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 49, "height": 30, "multiLineActualTexts": Array [ - "舟山市", + "办公用品", ], - "originalText": "舟山市", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "杭州市", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "杭州市", + "桌子", ], - "originalText": "杭州市", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "actualTextWidth": 361, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", ], - "originalText": "家具", + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 100, + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具...", + "桌子", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "桌子", ], - "originalText": "家具", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "家具", + "桌子", ], - "originalText": "家具", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "沙发", "actualTextHeight": 15, "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "家具", + "沙发", ], - "originalText": "家具", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "沙发", "actualTextHeight": 15, "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "家具", + "沙发", ], - "originalText": "家具", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "沙发", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "沙发", ], - "originalText": "桌子", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 100, + "actualText": "沙发", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子...", + "沙发", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "笔", ], - "originalText": "桌子", + "originalText": "笔", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 13, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "笔", ], - "originalText": "桌子", + "originalText": "笔", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 13, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "笔", ], - "originalText": "桌子", + "originalText": "笔", "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 13, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "笔", ], - "originalText": "沙发", + "originalText": "笔", "width": 103.8, }, Object { "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 100, + "actualTextHeight": 15, + "actualTextWidth": 98, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "236723672361111", ], "originalText": 236723672361111, "width": 103.8, }, Object { "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 100, + "actualTextHeight": 15, + "actualTextWidth": 187, + "height": 30, "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", + "7789778977897789778977897789", ], "originalText": "7789778977897789778977897789", "width": 103.8, }, Object { "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualTextHeight": 15, + "actualTextWidth": 98, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "236723672361111", ], "originalText": 236723672361111, "width": 103.8, @@ -25707,180 +27843,202 @@ Array [ "originalText": 5343, "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, + "actualText": "632", + "actualTextHeight": 15, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "序号", + "632", ], - "originalText": "序号", - "width": 80, + "originalText": 632, + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "7234", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "1", + "7234", ], - "originalText": 1, - "width": 80, + "originalText": 7234, + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "834", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "2", + "834", ], - "originalText": 2, - "width": 80, + "originalText": 834, + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "945", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "3", + "945", ], - "originalText": 3, - "width": 80, + "originalText": 945, + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "1304", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "4", + "1304", ], - "originalText": 4, - "width": 80, + "originalText": 1304, + "width": 103.8, }, Object { - "actualText": "5", + "actualText": "1145", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 26, "height": 30, "multiLineActualTexts": Array [ - "5", + "1145", ], - "originalText": 5, + "originalText": 1145, + "width": 103.8, + }, + Object { + "actualText": "1432", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1432", + ], + "originalText": 1432, + "width": 103.8, + }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 1`] = ` +Array [ + Object { + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, + "multiLineActualTexts": Array [ + "序号", + ], + "originalText": "序号", "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 2`] = ` +Array [ Object { - "actualText": "6", + "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ - "6", + "1", ], - "originalText": 6, + "originalText": 1, "width": 80, }, Object { - "actualText": "7", + "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 91, "multiLineActualTexts": Array [ - "7", + "2", ], - "originalText": 7, + "originalText": 2, "width": 80, }, Object { - "actualText": "8", + "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ - "8", + "3", ], - "originalText": 8, + "originalText": 3, "width": 80, }, Object { - "actualText": "9", + "actualText": "4", "actualTextHeight": 15, "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "9", + "4", ], - "originalText": 9, + "originalText": 4, "width": 80, }, Object { - "actualText": "10", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "10", + "5", ], - "originalText": 10, + "originalText": 5, "width": 80, }, Object { - "actualText": "11", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 13, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "11", + "6", ], - "originalText": 11, + "originalText": 6, "width": 80, }, Object { - "actualText": "12", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "12", + "7", ], - "originalText": 12, + "originalText": 7, "width": 80, }, Object { - "actualText": "13", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "13", + "8", ], - "originalText": 13, + "originalText": 8, "width": 80, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 80, "multiLineActualTexts": Array [ "序号", ], @@ -25891,7 +28049,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 80, "multiLineActualTexts": Array [ "省份", ], @@ -25900,22 +28058,27 @@ Array [ }, Object { "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "actualTextHeight": 16, - "actualTextWidth": 289, - "height": 30, + "actualTextHeight": 64, + "actualTextWidth": 292, + "height": 80, "multiLineActualTexts": Array [ - "城市城市城市城市城市城市城市城市城市城市城市城市", + "城市城市城市城", + "市城市城市城市", + "城市城市城市城", + "市城市", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 16, - "actualTextWidth": 241, - "height": 30, + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 80, "multiLineActualTexts": Array [ - "类别类别类别类别类别类别类别类别类别类别", + "类别类别类别类", + "别类别类别类别", + "类别类别类别", ], "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, @@ -25924,7 +28087,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 30, + "height": 80, "multiLineActualTexts": Array [ "子类别", ], @@ -25933,11 +28096,14 @@ Array [ }, Object { "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 16, - "actualTextWidth": 265, - "height": 30, + "actualTextHeight": 64, + "actualTextWidth": 268, + "height": 80, "multiLineActualTexts": Array [ - "数量数量数量数量数量数量数量数量数量数量数量", + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 103.8, @@ -25945,15 +28111,15 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "1", ], @@ -25964,7 +28130,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 91, "multiLineActualTexts": Array [ "2", ], @@ -25975,7 +28141,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "3", ], @@ -26037,66 +28203,11 @@ Array [ "originalText": 8, "width": 80, }, - Object { - "actualText": "9", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "9", - ], - "originalText": 9, - "width": 80, - }, - Object { - "actualText": "10", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "10", - ], - "originalText": 10, - "width": 80, - }, - Object { - "actualText": "11", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "11", - ], - "originalText": 11, - "width": 80, - }, - Object { - "actualText": "12", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "12", - ], - "originalText": 12, - "width": 80, - }, - Object { - "actualText": "13", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "13", - ], - "originalText": 13, - "width": 80, - }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], @@ -26105,11 +28216,15 @@ Array [ }, Object { "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "actualTextHeight": 15, - "actualTextWidth": 361, - "height": 30, + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 91, "multiLineActualTexts": Array [ - "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江省", + "浙江省浙江省浙", + "江省", ], "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, @@ -26118,62 +28233,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], @@ -26239,73 +28299,33 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "绍兴市", - ], - "originalText": "绍兴市", - "width": 103.8, - }, - Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "actualTextHeight": 15, - "actualTextWidth": 361, - "height": 30, - "multiLineActualTexts": Array [ - "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "width": 103.8, - }, - Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "绍兴市", ], - "originalText": "绍兴市", - "width": 103.8, - }, - Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "宁波市", - ], - "originalText": "宁波市", - "width": 103.8, - }, - Object { - "actualText": "舟山市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "舟山市", - ], - "originalText": "舟山市", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "杭州市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 91, "multiLineActualTexts": Array [ - "杭州市", + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州市", + "杭州市杭州市杭", + "州市", ], - "originalText": "杭州市", + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, }, Object { "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "绍兴市", ], @@ -26367,22 +28387,11 @@ Array [ "originalText": "宁波市", "width": 103.8, }, - Object { - "actualText": "舟山市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "舟山市", - ], - "originalText": "舟山市", - "width": 103.8, - }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "家具", ], @@ -26391,11 +28400,14 @@ Array [ }, Object { "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "actualTextHeight": 15, - "actualTextWidth": 337, - "height": 30, + "actualTextHeight": 60, + "actualTextWidth": 340, + "height": 91, "multiLineActualTexts": Array [ - "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "家具家具家具家", + "具家具家具家具", + "家具家具家具家", + "具家具家具家具", ], "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103.8, @@ -26404,18 +28416,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "家具", ], @@ -26477,55 +28478,11 @@ Array [ "originalText": "家具", "width": 103.8, }, - Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, - "multiLineActualTexts": Array [ - "办公用品", - ], - "originalText": "办公用品", - "width": 103.8, - }, - Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, - "multiLineActualTexts": Array [ - "办公用品", - ], - "originalText": "办公用品", - "width": 103.8, - }, - Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, - "multiLineActualTexts": Array [ - "办公用品", - ], - "originalText": "办公用品", - "width": 103.8, - }, - Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, - "multiLineActualTexts": Array [ - "办公用品", - ], - "originalText": "办公用品", - "width": 103.8, - }, Object { "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "桌子", ], @@ -26534,11 +28491,15 @@ Array [ }, Object { "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "actualTextHeight": 15, - "actualTextWidth": 361, - "height": 30, + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 91, "multiLineActualTexts": Array [ - "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子", ], "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, @@ -26547,7 +28508,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "桌子", ], @@ -26609,90 +28570,39 @@ Array [ "originalText": "沙发", "width": 103.8, }, - Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "沙发", - ], - "originalText": "沙发", - "width": 103.8, - }, - Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "笔", - ], - "originalText": "笔", - "width": 103.8, - }, - Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "笔", - ], - "originalText": "笔", - "width": 103.8, - }, - Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "笔", - ], - "originalText": "笔", - "width": 103.8, - }, - Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "笔", - ], - "originalText": "笔", - "width": 103.8, - }, Object { "actualText": "236723672361111", - "actualTextHeight": 15, - "actualTextWidth": 98, - "height": 30, + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "236723672361111", + "2367236723611", + "11", ], "originalText": 236723672361111, "width": 103.8, }, Object { "actualText": "7789778977897789778977897789", - "actualTextHeight": 15, - "actualTextWidth": 187, - "height": 30, + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 91, "multiLineActualTexts": Array [ - "7789778977897789778977897789", + "7789778977897", + "7897789778977", + "89", ], "originalText": "7789778977897789778977897789", "width": 103.8, }, Object { "actualText": "236723672361111", - "actualTextHeight": 15, - "actualTextWidth": 98, - "height": 30, + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "236723672361111", + "2367236723611", + "11", ], "originalText": 236723672361111, "width": 103.8, @@ -26749,68 +28659,13 @@ Array [ "multiLineActualTexts": Array [ "7234", ], - "originalText": 7234, - "width": 103.8, - }, - Object { - "actualText": "834", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, - "multiLineActualTexts": Array [ - "834", - ], - "originalText": 834, - "width": 103.8, - }, - Object { - "actualText": "945", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, - "multiLineActualTexts": Array [ - "945", - ], - "originalText": 945, - "width": 103.8, - }, - Object { - "actualText": "1304", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "1304", - ], - "originalText": 1304, - "width": 103.8, - }, - Object { - "actualText": "1145", - "actualTextHeight": 15, - "actualTextWidth": 26, - "height": 30, - "multiLineActualTexts": Array [ - "1145", - ], - "originalText": 1145, - "width": 103.8, - }, - Object { - "actualText": "1432", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "1432", - ], - "originalText": 1432, + "originalText": 7234, "width": 103.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by Infinity maxLines if actual text contains "\\n" 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 1`] = ` Array [ Object { "actualText": "序号", @@ -26826,7 +28681,7 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by Infinity maxLines if actual text contains "\\n" 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 2`] = ` Array [ Object { "actualText": "1", @@ -26908,7 +28763,7 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by Infinity maxLines if actual text contains "\\n" 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 3`] = ` Array [ Object { "actualText": "序号", @@ -26987,9 +28842,9 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by Infinity maxLines if actual text contains "\\n" 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by Infinity maxLines if actual text contains "\\n" 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 5`] = ` Array [ Object { "actualText": "1", @@ -27030,482 +28885,769 @@ Array [ "actualTextWidth": 7, "height": 46, "multiLineActualTexts": Array [ - "4", + "4", + ], + "originalText": 4, + "width": 80, + }, + Object { + "actualText": "5", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "5", + ], + "originalText": 5, + "width": 80, + }, + Object { + "actualText": "6", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "6", + ], + "originalText": 6, + "width": 80, + }, + Object { + "actualText": "7", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "7", + ], + "originalText": 7, + "width": 80, + }, + Object { + "actualText": "浙江浙江", + "actualTextHeight": 30, + "actualTextWidth": 50, + "height": 61, + "multiLineActualTexts": Array [ + "浙江", + "浙江", + ], + "originalText": "浙江 +浙江", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 46, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 91, + "multiLineActualTexts": Array [ + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江省", + "浙江省浙江省浙", + "江省", + ], + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 46, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "杭州杭州杭州", + "actualTextHeight": 45, + "actualTextWidth": 75, + "height": 61, + "multiLineActualTexts": Array [ + "杭州", + "杭州", + "杭州", + ], + "originalText": "杭州 +杭州 +杭州", + "width": 103.8, + }, + Object { + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 46, + "multiLineActualTexts": Array [ + "绍兴市", + ], + "originalText": "绍兴市", + "width": 103.8, + }, + Object { + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "actualTextHeight": 75, + "actualTextWidth": 365, + "height": 91, + "multiLineActualTexts": Array [ + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州市", + "杭州市杭州市杭", + "州市", + ], + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 103.8, + }, + Object { + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 46, + "multiLineActualTexts": Array [ + "绍兴市", + ], + "originalText": "绍兴市", + "width": 103.8, + }, + Object { + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "宁波市", + ], + "originalText": "宁波市", + "width": 103.8, + }, + Object { + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "舟山市", + ], + "originalText": "舟山市", + "width": 103.8, + }, + Object { + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, + "multiLineActualTexts": Array [ + "杭州市", + ], + "originalText": "杭州市", + "width": 103.8, + }, + Object { + "actualText": "纸张纸张", + "actualTextHeight": 30, + "actualTextWidth": 50, + "height": 61, + "multiLineActualTexts": Array [ + "纸张", + "纸张", + ], + "originalText": "纸张 +纸张", + "width": 103.8, + }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 46, + "multiLineActualTexts": Array [ + "家具", + ], + "originalText": "家具", + "width": 103.8, + }, + Object { + "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualTextHeight": 60, + "actualTextWidth": 340, + "height": 91, + "multiLineActualTexts": Array [ + "家具家具家具家", + "具家具家具家具", + "家具家具家具家", + "具家具家具家具", + ], + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 103.8, + }, + Object { + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 46, + "multiLineActualTexts": Array [ + "家具", ], - "originalText": 4, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "5", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "5", + "家具", ], - "originalText": 5, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "6", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "6", + "家具", ], - "originalText": 6, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "7", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "7", + "家具", ], - "originalText": 7, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "浙江浙江", - "actualTextHeight": 30, - "actualTextWidth": 50, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, "height": 61, "multiLineActualTexts": Array [ - "浙江", - "浙江", + "-", ], - "originalText": "浙江 -浙江", + "originalText": "-", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 46, "multiLineActualTexts": Array [ - "浙江省", + "桌子", ], - "originalText": "浙江省", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "actualTextHeight": 75, "actualTextWidth": 365, "height": 91, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江省", - "浙江省浙江省浙", - "江省", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 46, "multiLineActualTexts": Array [ - "浙江省", + "桌子", ], - "originalText": "浙江省", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "桌子", ], - "originalText": "浙江省", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "桌子", ], - "originalText": "浙江省", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "沙发", ], - "originalText": "浙江省", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "杭州杭州杭州", - "actualTextHeight": 45, - "actualTextWidth": 75, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, "height": 61, "multiLineActualTexts": Array [ - "杭州", - "杭州", - "杭州", + "-", ], - "originalText": "杭州 -杭州 -杭州", + "originalText": "-", "width": 103.8, }, Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, "height": 46, "multiLineActualTexts": Array [ - "绍兴市", + "2367236723611", + "11", ], - "originalText": "绍兴市", + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "actualTextHeight": 75, - "actualTextWidth": 365, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, "height": 91, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭州", - "市杭州市杭州市", - "杭州市杭州市杭", - "州市", + "7789778977897", + "7897789778977", + "89", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "originalText": "7789778977897789778977897789", "width": 103.8, }, Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, "height": 46, "multiLineActualTexts": Array [ - "绍兴市", + "2367236723611", + "11", ], - "originalText": "绍兴市", + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "宁波市", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "3877", ], - "originalText": "宁波市", + "originalText": 3877, "width": 103.8, }, Object { - "actualText": "舟山市", + "actualText": "4342", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "舟山市", + "4342", ], - "originalText": "舟山市", + "originalText": 4342, "width": 103.8, }, Object { - "actualText": "杭州市", + "actualText": "5343", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "杭州市", + "5343", ], - "originalText": "杭州市", + "originalText": 5343, "width": 103.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLines if actual text contains "\\n" 1`] = ` +Array [ Object { - "actualText": "纸张纸张", - "actualTextHeight": 30, - "actualTextWidth": 50, - "height": 61, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "纸张", - "纸张", + "序号", ], - "originalText": "纸张 -纸张", - "width": 103.8, + "originalText": "序号", + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLines if actual text contains "\\n" 2`] = ` +Array [ Object { - "actualText": "家具", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "1", + ], + "originalText": 1, + "width": 80, + }, + Object { + "actualText": "2", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "2", + ], + "originalText": 2, + "width": 80, + }, + Object { + "actualText": "3", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "3", + ], + "originalText": 3, + "width": 80, + }, + Object { + "actualText": "4", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "4", + ], + "originalText": 4, + "width": 80, + }, + Object { + "actualText": "5", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, + "multiLineActualTexts": Array [ + "5", ], - "originalText": "家具", - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "actualTextHeight": 60, - "actualTextWidth": 340, - "height": 91, + "actualText": "6", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具家", - "具家具家具家具", + "6", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "7", ], - "originalText": "家具", - "width": 103.8, + "originalText": 7, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "家具", + "8", ], - "originalText": "家具", - "width": 103.8, + "originalText": 8, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "9", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "家具", + "9", ], - "originalText": "家具", - "width": 103.8, + "originalText": 9, + "width": 80, }, Object { - "actualText": "家具", + "actualText": "10", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "家具", + "10", ], - "originalText": "家具", - "width": 103.8, + "originalText": 10, + "width": 80, }, Object { - "actualText": "-", + "actualText": "11", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 61, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "-", + "11", ], - "originalText": "-", - "width": 103.8, + "originalText": 11, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "12", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "12", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 12, + "width": 80, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "actualTextHeight": 75, - "actualTextWidth": 365, - "height": 91, + "actualText": "13", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子", + "13", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "width": 103.8, + "originalText": 13, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "14", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "14", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 14, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "15", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "15", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 15, + "width": 80, }, Object { - "actualText": "桌子", + "actualText": "16", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "16", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 16, + "width": 80, }, Object { - "actualText": "沙发", + "actualText": "17", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "17", ], - "originalText": "沙发", - "width": 103.8, + "originalText": 17, + "width": 80, }, Object { - "actualText": "-", + "actualText": "18", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 61, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "-", + "18", ], - "originalText": "-", - "width": 103.8, + "originalText": 18, + "width": 80, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "19", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "19", ], - "originalText": 236723672361111, - "width": 103.8, + "originalText": 19, + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLines if actual text contains "\\n" 3`] = ` +Array [ Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 91, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", + "序号", ], - "originalText": "7789778977897789778977897789", - "width": 103.8, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "省份", ], - "originalText": 236723672361111, - "width": 103.8, + "originalText": "省份", + "width": 143.8, }, Object { - "actualText": "3877", - "actualTextHeight": 15, - "actualTextWidth": 27, + "actualText": "城市城市城市城市城...", + "actualTextHeight": 16, + "actualTextWidth": 119, "height": 30, "multiLineActualTexts": Array [ - "3877", + "城市城市城市城市城...", ], - "originalText": 3877, - "width": 103.8, + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 143.8, }, Object { - "actualText": "4342", - "actualTextHeight": 15, - "actualTextWidth": 27, + "actualText": "类别类别类别类别类...", + "actualTextHeight": 16, + "actualTextWidth": 119, "height": 30, "multiLineActualTexts": Array [ - "4342", + "类别类别类别类别类...", ], - "originalText": 4342, - "width": 103.8, + "originalText": "类别类别类别类别类别类别类别类别类别类别", + "width": 143.8, }, Object { - "actualText": "5343", - "actualTextHeight": 15, - "actualTextWidth": 27, + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "5343", + "子类别", ], - "originalText": 5343, - "width": 103.8, + "originalText": "子类别", + "width": 143.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 1`] = ` -Array [ Object { - "actualText": "序号", + "actualText": "数量数量数量数量数...", "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 80, + "actualTextWidth": 119, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "数量数量数量数量数...", ], - "originalText": "序号", - "width": 80, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 143.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLines if actual text contains "\\n" 4`] = `Array []`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLines if actual text contains "\\n" 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "1", ], @@ -27516,7 +29658,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 91, + "height": 30, "multiLineActualTexts": Array [ "2", ], @@ -27527,7 +29669,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "3", ], @@ -27589,216 +29731,171 @@ Array [ "originalText": 8, "width": 80, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 3`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 80, + "actualText": "9", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "9", ], - "originalText": "序号", + "originalText": 9, "width": 80, }, Object { - "actualText": "省份", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 80, - "multiLineActualTexts": Array [ - "省份", - ], - "originalText": "省份", - "width": 103.8, - }, - Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "actualTextHeight": 64, - "actualTextWidth": 292, - "height": 80, - "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市城", - "市城市", - ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "width": 103.8, - }, - Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 80, + "actualText": "10", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "10", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 103.8, + "originalText": 10, + "width": 80, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 80, + "actualText": "11", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "子类别", + "11", ], - "originalText": "子类别", - "width": 103.8, + "originalText": 11, + "width": 80, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 64, - "actualTextWidth": 268, - "height": 80, + "actualText": "12", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量数", - "量", + "12", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103.8, + "originalText": 12, + "width": 80, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 4`] = `Array []`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 5`] = ` -Array [ Object { - "actualText": "1", + "actualText": "13", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "1", + "13", ], - "originalText": 1, + "originalText": 13, "width": 80, }, Object { - "actualText": "2", + "actualText": "14", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 91, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "2", + "14", ], - "originalText": 2, + "originalText": 14, "width": 80, }, Object { - "actualText": "3", + "actualText": "15", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "3", + "15", ], - "originalText": 3, + "originalText": 15, "width": 80, }, Object { - "actualText": "4", + "actualText": "16", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "4", + "16", ], - "originalText": 4, + "originalText": 16, "width": 80, }, Object { - "actualText": "5", + "actualText": "17", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "5", + "17", ], - "originalText": 5, + "originalText": 17, "width": 80, }, Object { - "actualText": "6", + "actualText": "18", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "6", + "18", ], - "originalText": 6, + "originalText": 18, "width": 80, }, Object { - "actualText": "7", + "actualText": "19", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "7", + "19", ], - "originalText": 7, + "originalText": 19, "width": 80, }, Object { - "actualText": "8", + "actualText": "浙江...", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 35, "height": 30, "multiLineActualTexts": Array [ - "8", + "浙江...", ], - "originalText": 8, - "width": 80, + "originalText": "浙江 +浙江", + "width": 143.8, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, + "width": 143.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "actualTextHeight": 75, - "actualTextWidth": 365, - "height": 91, + "actualText": "浙江省浙江省浙江省...", + "actualTextHeight": 15, + "actualTextWidth": 119, + "height": 30, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江省", - "浙江省浙江省浙", - "江省", + "浙江省浙江省浙江省...", ], "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "浙江省", @@ -27809,7 +29906,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "浙江省", @@ -27820,7 +29917,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "浙江省", @@ -27831,7 +29928,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "浙江省", @@ -27842,7 +29939,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "浙江省", @@ -27853,1058 +29950,967 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "绍兴市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, - "multiLineActualTexts": Array [ - "绍兴市", - ], - "originalText": "绍兴市", - "width": 103.8, - }, - Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "actualTextHeight": 75, - "actualTextWidth": 365, - "height": 91, - "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭州", - "市杭州市杭州市", - "杭州市杭州市杭", - "州市", - ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "width": 103.8, + "width": 143.8, }, Object { - "actualText": "绍兴市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "浙江省", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "宁波市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "浙江省", ], - "originalText": "宁波市", - "width": 103.8, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "舟山市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "舟山市", + "浙江省", ], - "originalText": "舟山市", - "width": 103.8, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "杭州市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "杭州市", + "浙江省", ], - "originalText": "杭州市", - "width": 103.8, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "绍兴市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "浙江省", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "宁波市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "浙江省", ], - "originalText": "宁波市", - "width": 103.8, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "浙江省", ], - "originalText": "家具", - "width": 103.8, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "actualTextHeight": 60, - "actualTextWidth": 340, - "height": 91, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具家", - "具家具家具家具", + "浙江省", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 103.8, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "浙江省", ], - "originalText": "家具", - "width": 103.8, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "四川省", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "家具", + "四川省", ], - "originalText": "家具", - "width": 103.8, + "originalText": "四川省", + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "杭州...", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 35, "height": 30, "multiLineActualTexts": Array [ - "家具", + "杭州...", ], - "originalText": "家具", - "width": 103.8, + "originalText": "杭州 +杭州 +杭州", + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "家具", + "绍兴市", ], - "originalText": "家具", - "width": 103.8, + "originalText": "绍兴市", + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "杭州市杭州市杭州市...", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 119, "height": 30, "multiLineActualTexts": Array [ - "家具", + "杭州市杭州市杭州市...", ], - "originalText": "家具", - "width": 103.8, + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "家具", + "绍兴市", ], - "originalText": "家具", - "width": 103.8, + "originalText": "绍兴市", + "width": 143.8, }, Object { - "actualText": "桌子", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "宁波市", ], - "originalText": "桌子", - "width": 103.8, + "originalText": "宁波市", + "width": 143.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "actualTextHeight": 75, - "actualTextWidth": 365, - "height": 91, + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子", + "舟山市", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "width": 103.8, + "originalText": "舟山市", + "width": 143.8, }, Object { - "actualText": "桌子", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "杭州市", ], - "originalText": "桌子", - "width": 103.8, + "originalText": "杭州市", + "width": 143.8, }, Object { - "actualText": "桌子", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "绍兴市", ], - "originalText": "桌子", - "width": 103.8, + "originalText": "绍兴市", + "width": 143.8, }, Object { - "actualText": "桌子", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "宁波市", ], - "originalText": "桌子", - "width": 103.8, + "originalText": "宁波市", + "width": 143.8, }, Object { - "actualText": "沙发", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "舟山市", ], - "originalText": "沙发", - "width": 103.8, + "originalText": "舟山市", + "width": 143.8, }, Object { - "actualText": "沙发", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "杭州市", ], - "originalText": "沙发", - "width": 103.8, + "originalText": "杭州市", + "width": 143.8, }, Object { - "actualText": "沙发", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "绍兴市", ], - "originalText": "沙发", - "width": 103.8, + "originalText": "绍兴市", + "width": 143.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "宁波市", ], - "originalText": 236723672361111, - "width": 103.8, + "originalText": "宁波市", + "width": 143.8, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 91, + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", + "舟山市", ], - "originalText": "7789778977897789778977897789", - "width": 103.8, + "originalText": "舟山市", + "width": 143.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "杭州市", ], - "originalText": 236723672361111, - "width": 103.8, + "originalText": "杭州市", + "width": 143.8, }, Object { - "actualText": "3877", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "3877", + "绍兴市", ], - "originalText": 3877, - "width": 103.8, + "originalText": "绍兴市", + "width": 143.8, }, Object { - "actualText": "4342", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "4342", + "宁波市", ], - "originalText": 4342, - "width": 103.8, + "originalText": "宁波市", + "width": 143.8, }, Object { - "actualText": "5343", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "5343", + "舟山市", ], - "originalText": 5343, - "width": 103.8, + "originalText": "舟山市", + "width": 143.8, }, Object { - "actualText": "632", + "actualText": "成都市", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "632", + "成都市", ], - "originalText": 632, - "width": 103.8, + "originalText": "成都市", + "width": 143.8, }, Object { - "actualText": "7234", + "actualText": "纸张...", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 35, "height": 30, "multiLineActualTexts": Array [ - "7234", + "纸张...", ], - "originalText": 7234, - "width": 103.8, + "originalText": "纸张 +纸张", + "width": 143.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, + "actualText": "家具", + "actualTextHeight": 15, "actualTextWidth": 25, - "height": 80, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "家具", ], - "originalText": "序号", - "width": 80, + "originalText": "家具", + "width": 143.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "家具家具家具家具家...", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 61, + "actualTextWidth": 119, + "height": 30, "multiLineActualTexts": Array [ - "1", + "家具家具家具家具家...", ], - "originalText": 1, - "width": 80, + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 143.8, }, Object { - "actualText": "2", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "2", + "家具", ], - "originalText": 2, - "width": 80, + "originalText": "家具", + "width": 143.8, }, Object { - "actualText": "3", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 91, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "3", + "家具", ], - "originalText": 3, - "width": 80, + "originalText": "家具", + "width": 143.8, }, Object { - "actualText": "4", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "4", + "家具", ], - "originalText": 4, - "width": 80, + "originalText": "家具", + "width": 143.8, }, Object { - "actualText": "5", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "5", + "家具", ], - "originalText": 5, - "width": 80, + "originalText": "家具", + "width": 143.8, }, Object { - "actualText": "6", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "6", + "家具", ], - "originalText": 6, - "width": 80, + "originalText": "家具", + "width": 143.8, }, Object { - "actualText": "7", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "7", + "家具", ], - "originalText": 7, - "width": 80, + "originalText": "家具", + "width": 143.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 3`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, + "actualText": "家具", + "actualTextHeight": 15, "actualTextWidth": 25, - "height": 80, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "家具", ], - "originalText": "序号", - "width": 80, + "originalText": "家具", + "width": 143.8, }, Object { - "actualText": "省份", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 80, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "省份", + "办公用品", ], - "originalText": "省份", - "width": 103.8, + "originalText": "办公用品", + "width": 143.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "actualTextHeight": 64, - "actualTextWidth": 292, - "height": 80, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市城", - "市城市", + "办公用品", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "width": 103.8, + "originalText": "办公用品", + "width": 143.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 80, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "办公用品", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 103.8, + "originalText": "办公用品", + "width": 143.8, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 80, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "子类别", + "办公用品", ], - "originalText": "子类别", - "width": 103.8, + "originalText": "办公用品", + "width": 143.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 64, - "actualTextWidth": 268, - "height": 80, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量数", - "量", + "办公用品", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103.8, + "originalText": "办公用品", + "width": 143.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 4`] = `Array []`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 5`] = ` -Array [ Object { - "actualText": "1", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 61, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "1", + "办公用品", ], - "originalText": 1, - "width": 80, + "originalText": "办公用品", + "width": 143.8, }, Object { - "actualText": "2", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "2", + "办公用品", ], - "originalText": 2, - "width": 80, + "originalText": "办公用品", + "width": 143.8, }, Object { - "actualText": "3", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 91, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "3", + "办公用品", ], - "originalText": 3, - "width": 80, + "originalText": "办公用品", + "width": 143.8, }, Object { - "actualText": "4", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "4", + "家具", ], - "originalText": 4, - "width": 80, + "originalText": "家具", + "width": 143.8, }, Object { - "actualText": "5", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 4, "height": 30, "multiLineActualTexts": Array [ - "5", + "-", ], - "originalText": 5, - "width": 80, + "originalText": "-", + "width": 143.8, }, Object { - "actualText": "6", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "6", + "桌子", ], - "originalText": 6, - "width": 80, + "originalText": "桌子", + "width": 143.8, }, Object { - "actualText": "7", + "actualText": "桌子桌子桌子桌子桌...", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 119, "height": 30, "multiLineActualTexts": Array [ - "7", + "桌子桌子桌子桌子桌...", ], - "originalText": 7, - "width": 80, + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 143.8, }, Object { - "actualText": "浙江浙江", - "actualTextHeight": 30, - "actualTextWidth": 50, - "height": 61, + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "浙江", - "浙江", + "桌子", ], - "originalText": "浙江 -浙江", - "width": 103.8, + "originalText": "桌子", + "width": 143.8, }, Object { - "actualText": "浙江省", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "桌子", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": "桌子", + "width": 143.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "actualTextHeight": 75, - "actualTextWidth": 365, - "height": 91, + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江省", - "浙江省浙江省浙", - "江省", + "桌子", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 103.8, + "originalText": "桌子", + "width": 143.8, }, Object { - "actualText": "浙江省", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "沙发", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": "沙发", + "width": 143.8, }, Object { - "actualText": "浙江省", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "沙发", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": "沙发", + "width": 143.8, }, Object { - "actualText": "浙江省", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "沙发", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": "沙发", + "width": 143.8, }, Object { - "actualText": "浙江省", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "沙发", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": "沙发", + "width": 143.8, }, Object { - "actualText": "杭州杭州杭州", - "actualTextHeight": 45, - "actualTextWidth": 75, - "height": 61, + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "杭州", - "杭州", - "杭州", + "笔", ], - "originalText": "杭州 -杭州 -杭州", - "width": 103.8, + "originalText": "笔", + "width": 143.8, }, Object { - "actualText": "绍兴市", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "笔", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": "笔", + "width": 143.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "actualTextHeight": 75, - "actualTextWidth": 365, - "height": 91, + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭州", - "市杭州市杭州市", - "杭州市杭州市杭", - "州市", + "笔", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "width": 103.8, + "originalText": "笔", + "width": 143.8, }, Object { - "actualText": "绍兴市", + "actualText": "笔", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "笔", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": "笔", + "width": 143.8, }, Object { - "actualText": "宁波市", + "actualText": "纸张", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "纸张", ], - "originalText": "宁波市", - "width": 103.8, + "originalText": "纸张", + "width": 143.8, }, Object { - "actualText": "舟山市", + "actualText": "纸张", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "舟山市", + "纸张", ], - "originalText": "舟山市", - "width": 103.8, + "originalText": "纸张", + "width": 143.8, }, Object { - "actualText": "杭州市", + "actualText": "纸张", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "杭州市", + "纸张", ], - "originalText": "杭州市", - "width": 103.8, + "originalText": "纸张", + "width": 143.8, }, Object { - "actualText": "纸张纸张", - "actualTextHeight": 30, - "actualTextWidth": 50, - "height": 61, + "actualText": "纸张", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ "纸张", - "纸张", ], - "originalText": "纸张 -纸张", - "width": 103.8, + "originalText": "纸张", + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "桌子", ], - "originalText": "家具", - "width": 103.8, + "originalText": "桌子", + "width": 143.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "actualTextHeight": 60, - "actualTextWidth": 340, - "height": 91, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具家", - "具家具家具家具", + "-", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 103.8, + "originalText": "-", + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "236723672361111", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 98, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "236723672361111", ], - "originalText": "家具", - "width": 103.8, + "originalText": 236723672361111, + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "77897789778977897...", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 124, "height": 30, "multiLineActualTexts": Array [ - "家具", + "77897789778977897...", ], - "originalText": "家具", - "width": 103.8, + "originalText": "7789778977897789778977897789", + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "236723672361111", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 98, "height": 30, "multiLineActualTexts": Array [ - "家具", + "236723672361111", ], - "originalText": "家具", - "width": 103.8, + "originalText": 236723672361111, + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "家具", + "3877", ], - "originalText": "家具", - "width": 103.8, + "originalText": 3877, + "width": 143.8, }, Object { - "actualText": "-", + "actualText": "4342", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 61, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "-", + "4342", ], - "originalText": "-", - "width": 103.8, + "originalText": 4342, + "width": 143.8, }, Object { - "actualText": "桌子", + "actualText": "5343", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "5343", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 5343, + "width": 143.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "actualTextHeight": 75, - "actualTextWidth": 365, - "height": 91, + "actualText": "632", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子", + "632", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "width": 103.8, + "originalText": 632, + "width": 143.8, }, Object { - "actualText": "桌子", + "actualText": "7234", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "7234", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 7234, + "width": 143.8, }, Object { - "actualText": "桌子", + "actualText": "834", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "834", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 834, + "width": 143.8, }, Object { - "actualText": "桌子", + "actualText": "945", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "945", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 945, + "width": 143.8, }, Object { - "actualText": "沙发", + "actualText": "1304", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "1304", ], - "originalText": "沙发", - "width": 103.8, + "originalText": 1304, + "width": 143.8, }, Object { - "actualText": "-", + "actualText": "1145", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 61, + "actualTextWidth": 26, + "height": 30, "multiLineActualTexts": Array [ - "-", + "1145", ], - "originalText": "-", - "width": 103.8, + "originalText": 1145, + "width": 143.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "1432", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "1432", ], - "originalText": 236723672361111, - "width": 103.8, + "originalText": 1432, + "width": 143.8, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 91, + "actualText": "1343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", + "1343", ], - "originalText": "7789778977897789778977897789", - "width": 103.8, + "originalText": 1343, + "width": 143.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "1354", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "1354", ], - "originalText": 236723672361111, - "width": 103.8, + "originalText": 1354, + "width": 143.8, }, Object { - "actualText": "3877", + "actualText": "1523", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "3877", + "1523", ], - "originalText": 3877, - "width": 103.8, + "originalText": 1523, + "width": 143.8, }, Object { - "actualText": "4342", + "actualText": "1634", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "4342", + "1634", ], - "originalText": 4342, - "width": 103.8, + "originalText": 1634, + "width": 143.8, }, Object { - "actualText": "5343", + "actualText": "1723", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "5343", + "1723", ], - "originalText": 5343, - "width": 103.8, + "originalText": 1723, + "width": 143.8, }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLines if actual text contains "\\n" 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLinesByField 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 64, "multiLineActualTexts": Array [ "序号", ], @@ -28914,7 +30920,7 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLines if actual text contains "\\n" 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLinesByField 2`] = ` Array [ Object { "actualText": "1", @@ -28931,7 +30937,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 61, "multiLineActualTexts": Array [ "2", ], @@ -29103,38 +31109,16 @@ Array [ "originalText": 17, "width": 80, }, - Object { - "actualText": "18", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "18", - ], - "originalText": 18, - "width": 80, - }, - Object { - "actualText": "19", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "19", - ], - "originalText": 19, - "width": 80, - }, ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLines if actual text contains "\\n" 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLinesByField 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 64, "multiLineActualTexts": Array [ "序号", ], @@ -29145,7 +31129,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 64, "multiLineActualTexts": Array [ "省份", ], @@ -29153,23 +31137,26 @@ Array [ "width": 143.8, }, Object { - "actualText": "城市城市城市城市城...", - "actualTextHeight": 16, - "actualTextWidth": 119, - "height": 30, + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 48, + "actualTextWidth": 291, + "height": 64, "multiLineActualTexts": Array [ - "城市城市城市城市城...", + "城市城市城市城市城市", + "城市城市城市城市城市", + "城市城市", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 143.8, }, Object { - "actualText": "类别类别类别类别类...", - "actualTextHeight": 16, - "actualTextWidth": 119, - "height": 30, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 32, + "actualTextWidth": 242, + "height": 64, "multiLineActualTexts": Array [ - "类别类别类别类别类...", + "类别类别类别类别类别", + "类别类别类别类别类别", ], "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 143.8, @@ -29178,7 +31165,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 30, + "height": 64, "multiLineActualTexts": Array [ "子类别", ], @@ -29186,12 +31173,14 @@ Array [ "width": 143.8, }, Object { - "actualText": "数量数量数量数量数...", - "actualTextHeight": 16, - "actualTextWidth": 119, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 48, + "actualTextWidth": 267, + "height": 64, "multiLineActualTexts": Array [ - "数量数量数量数量数...", + "数量数量数量数量数量", + "数量数量数量数量数量", + "数量", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "width": 143.8, @@ -29199,9 +31188,9 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLines if actual text contains "\\n" 4`] = `Array []`; +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLinesByField 4`] = `Array []`; -exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLines if actual text contains "\\n" 5`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLinesByField 5`] = ` Array [ Object { "actualText": "1", @@ -29218,7 +31207,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 61, "multiLineActualTexts": Array [ "2", ], @@ -29390,40 +31379,6 @@ Array [ "originalText": 17, "width": 80, }, - Object { - "actualText": "18", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "18", - ], - "originalText": 18, - "width": 80, - }, - Object { - "actualText": "19", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, - "multiLineActualTexts": Array [ - "19", - ], - "originalText": 19, - "width": 80, - }, - Object { - "actualText": "浙江...", - "actualTextHeight": 15, - "actualTextWidth": 35, - "height": 30, - "multiLineActualTexts": Array [ - "浙江...", - ], - "originalText": "浙江 -浙江", - "width": 143.8, - }, Object { "actualText": "浙江省", "actualTextHeight": 15, @@ -29436,12 +31391,13 @@ Array [ "width": 143.8, }, Object { - "actualText": "浙江省浙江省浙江省...", - "actualTextHeight": 15, - "actualTextWidth": 119, - "height": 30, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙...", + "actualTextHeight": 30, + "actualTextWidth": 240, + "height": 61, "multiLineActualTexts": Array [ - "浙江省浙江省浙江省...", + "浙江省浙江省浙江省浙", + "江省浙江省浙江省浙...", ], "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 143.8, @@ -29611,30 +31567,6 @@ Array [ "originalText": "浙江省", "width": 143.8, }, - Object { - "actualText": "四川省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "四川省", - ], - "originalText": "四川省", - "width": 143.8, - }, - Object { - "actualText": "杭州...", - "actualTextHeight": 15, - "actualTextWidth": 35, - "height": 30, - "multiLineActualTexts": Array [ - "杭州...", - ], - "originalText": "杭州 -杭州 -杭州", - "width": 143.8, - }, Object { "actualText": "绍兴市", "actualTextHeight": 15, @@ -29647,12 +31579,13 @@ Array [ "width": 143.8, }, Object { - "actualText": "杭州市杭州市杭州市...", - "actualTextHeight": 15, - "actualTextWidth": 119, - "height": 30, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭...", + "actualTextHeight": 30, + "actualTextWidth": 240, + "height": 61, "multiLineActualTexts": Array [ - "杭州市杭州市杭州市...", + "杭州市杭州市杭州市杭", + "州市杭州市杭州市杭...", ], "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 143.8, @@ -29822,29 +31755,6 @@ Array [ "originalText": "舟山市", "width": 143.8, }, - Object { - "actualText": "成都市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "成都市", - ], - "originalText": "成都市", - "width": 143.8, - }, - Object { - "actualText": "纸张...", - "actualTextHeight": 15, - "actualTextWidth": 35, - "height": 30, - "multiLineActualTexts": Array [ - "纸张...", - ], - "originalText": "纸张 -纸张", - "width": 143.8, - }, Object { "actualText": "家具", "actualTextHeight": 15, @@ -29857,11 +31767,12 @@ Array [ "width": 143.8, }, Object { - "actualText": "家具家具家具家具家...", - "actualTextHeight": 15, - "actualTextWidth": 119, - "height": 30, + "actualText": "家具家具家具家具家具家具家具家具家具家...", + "actualTextHeight": 30, + "actualTextWidth": 240, + "height": 61, "multiLineActualTexts": Array [ + "家具家具家具家具家具", "家具家具家具家具家...", ], "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", @@ -30032,28 +31943,6 @@ Array [ "originalText": "办公用品", "width": 143.8, }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 143.8, - }, - Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 30, - "multiLineActualTexts": Array [ - "-", - ], - "originalText": "-", - "width": 143.8, - }, Object { "actualText": "桌子", "actualTextHeight": 15, @@ -30066,11 +31955,12 @@ Array [ "width": 143.8, }, Object { - "actualText": "桌子桌子桌子桌子桌...", - "actualTextHeight": 15, - "actualTextWidth": 119, - "height": 30, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...", + "actualTextHeight": 30, + "actualTextWidth": 240, + "height": 61, "multiLineActualTexts": Array [ + "桌子桌子桌子桌子桌子", "桌子桌子桌子桌子桌...", ], "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", @@ -30241,28 +32131,6 @@ Array [ "originalText": "纸张", "width": 143.8, }, - Object { - "actualText": "桌子", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "桌子", - ], - "originalText": "桌子", - "width": 143.8, - }, - Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 30, - "multiLineActualTexts": Array [ - "-", - ], - "originalText": "-", - "width": 143.8, - }, Object { "actualText": "236723672361111", "actualTextHeight": 15, @@ -30275,12 +32143,13 @@ Array [ "width": 143.8, }, Object { - "actualText": "77897789778977897...", - "actualTextHeight": 15, - "actualTextWidth": 124, - "height": 30, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 30, + "actualTextWidth": 188, + "height": 61, "multiLineActualTexts": Array [ - "77897789778977897...", + "7789778977897789778", + "977897789", ], "originalText": "7789778977897789778977897789", "width": 143.8, @@ -30450,17 +32319,6 @@ Array [ "originalText": 1634, "width": 143.8, }, - Object { - "actualText": "1723", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "1723", - ], - "originalText": 1723, - "width": 143.8, - }, ] `; diff --git a/packages/s2-core/__tests__/spreadsheet/multi-line-text-spec.ts b/packages/s2-core/__tests__/spreadsheet/multi-line-text-spec.ts index f6e2e5f457..7e6b1aa366 100644 --- a/packages/s2-core/__tests__/spreadsheet/multi-line-text-spec.ts +++ b/packages/s2-core/__tests__/spreadsheet/multi-line-text-spec.ts @@ -575,6 +575,33 @@ describe('SpreadSheet Multi Line Text Tests', () => { matchCellStyleSnapshot(); }); + + test('should render by maxLinesByField', async () => { + s2.changeSheetSize(800, 600); + + updateStyle(Infinity); + await s2.render(false); + + s2.setOptions({ + style: { + rowCell: { + maxLinesByField: { + city: 3, + }, + }, + colCell: { + maxLinesByField: { + type: 2, + sub_type: 3, + [EXTRA_FIELD]: 4, + }, + }, + }, + }); + await s2.render(false); + + matchCellStyleSnapshot(); + }); }); describe('TableSheet', () => { @@ -1098,5 +1125,32 @@ describe('SpreadSheet Multi Line Text Tests', () => { matchCellStyleSnapshot(); }); + + test('should render by maxLinesByField', async () => { + s2.changeSheetSize(800, 600); + + updateStyle(Infinity); + await s2.render(false); + + s2.setOptions({ + style: { + rowCell: { + maxLinesByField: { + // 行索引 + '1': 2, + }, + }, + colCell: { + maxLinesByField: { + type: 2, + sub_type: 3, + }, + }, + }, + }); + await s2.render(false); + + matchCellStyleSnapshot(); + }); }); }); diff --git a/packages/s2-core/__tests__/unit/interaction/__snapshots__/row-column-resize-spec.ts.snap b/packages/s2-core/__tests__/unit/interaction/__snapshots__/row-column-resize-spec.ts.snap index 5df0287818..4c0438575e 100644 --- a/packages/s2-core/__tests__/unit/interaction/__snapshots__/row-column-resize-spec.ts.snap +++ b/packages/s2-core/__tests__/unit/interaction/__snapshots__/row-column-resize-spec.ts.snap @@ -80,6 +80,10 @@ Object { "test-cell-b": 2, }, "maxLines": 1, + "maxLinesByField": Object { + "test-cell-a": 1, + "test-cell-b": 1, + }, "showTreeLeafNodeAlignDot": false, "textOverflow": "ellipsis", "widthByField": null, @@ -94,6 +98,9 @@ Object { "testField": 2, }, "maxLines": 1, + "maxLinesByField": Object { + "testField": 1, + }, "showTreeLeafNodeAlignDot": false, "textOverflow": "ellipsis", "widthByField": null, @@ -130,6 +137,10 @@ Object { "test-b": 2, }, "maxLines": 1, + "maxLinesByField": Object { + "test-a": 1, + "test-b": 1, + }, "textOverflow": "ellipsis", "widthByField": null, "wordWrap": true, @@ -143,6 +154,9 @@ Object { "testField": 2, }, "maxLines": 1, + "maxLinesByField": Object { + "testField": 1, + }, "textOverflow": "ellipsis", "widthByField": null, "wordWrap": true, @@ -156,6 +170,9 @@ Object { "testFieldId": 2, }, "maxLines": 1, + "maxLinesByField": Object { + "testFieldId": 1, + }, "showTreeLeafNodeAlignDot": false, "textOverflow": "ellipsis", "widthByField": null, @@ -171,6 +188,10 @@ Object { "test-cell-b": 2, }, "maxLines": 1, + "maxLinesByField": Object { + "test-cell-a": 1, + "test-cell-b": 1, + }, "showTreeLeafNodeAlignDot": false, "textOverflow": "ellipsis", "widthByField": null, @@ -185,6 +206,9 @@ Object { "0": 2, }, "maxLines": 1, + "maxLinesByField": Object { + "0": 1, + }, "showTreeLeafNodeAlignDot": false, "textOverflow": "ellipsis", "widthByField": null, @@ -227,6 +251,9 @@ Object { "testField": 2, }, "maxLines": 1, + "maxLinesByField": Object { + "testField": 1, + }, "showTreeLeafNodeAlignDot": false, "textOverflow": "ellipsis", "widthByField": null, diff --git a/packages/s2-core/__tests__/unit/interaction/row-column-resize-spec.ts b/packages/s2-core/__tests__/unit/interaction/row-column-resize-spec.ts index 45e6f57255..5cdc3b7d08 100644 --- a/packages/s2-core/__tests__/unit/interaction/row-column-resize-spec.ts +++ b/packages/s2-core/__tests__/unit/interaction/row-column-resize-spec.ts @@ -462,15 +462,14 @@ describe('Interaction Row Column Resize Tests', () => { const resizeDetail: ResizeParams = { info: resizeInfo, style: { - dataCell: { - maxLines: 1, - }, rowCell: { height: 2, heightByField: { [resizeInfo.meta.field!]: 2, }, - maxLines: 1, + maxLinesByField: { + [resizeInfo.meta.field!]: 1, + }, }, }, }; diff --git a/packages/s2-core/src/cell/base-cell.ts b/packages/s2-core/src/cell/base-cell.ts index bb428bacc7..530a869b98 100644 --- a/packages/s2-core/src/cell/base-cell.ts +++ b/packages/s2-core/src/cell/base-cell.ts @@ -141,7 +141,7 @@ export abstract class BaseCell extends Group { protected abstract getBorderPositions(): CellBorderPosition[]; - protected abstract getTextStyle(): TextTheme; + protected abstract getTextStyle(): TextTheme & CellTextWordWrapStyle; protected abstract getFormattedFieldValue(): FormatResult; @@ -189,6 +189,8 @@ export abstract class BaseCell extends Group { // eslint-disable-next-line @typescript-eslint/no-unused-vars protected handleRestOptions(...options: unknown[]) {} + protected getTextDraggedMaxLines(): number | void {} + /* -------------------------------------------------------------------------- */ /* common functions that will be used in subtype */ /* -------------------------------------------------------------------------- */ @@ -484,6 +486,7 @@ export abstract class BaseCell extends Group { // G 遵循浏览器的规范, 空间不足以展示省略号时, 会裁剪文字, 而不是展示省略号: https://developer.mozilla.org/en-US/docs/Web/CSS/text-overflow#ellipsis const maxTextWidth = Math.max(this.getMaxTextWidth(), 0) + EXTRA_PIXEL; const textStyle = this.getTextStyle(); + const maxLines = this.getTextDraggedMaxLines() || textStyle?.maxLines; // 在坐标计算 (getTextPosition) 之前, 预渲染一次, 提前生成 textShape, 获得文字宽度, 用于计算 icon 绘制坐标 this.renderTextShape({ @@ -492,6 +495,7 @@ export abstract class BaseCell extends Group { y: 0, text: this.getFieldValue()!, wordWrapWidth: maxTextWidth, + maxLines, }); if (this.isShallowRender()) { diff --git a/packages/s2-core/src/cell/col-cell.ts b/packages/s2-core/src/cell/col-cell.ts index 720263d19b..fe3a0d529b 100644 --- a/packages/s2-core/src/cell/col-cell.ts +++ b/packages/s2-core/src/cell/col-cell.ts @@ -534,4 +534,13 @@ export class ColCell extends HeaderCell { return isNextSiblingNodeHidden && isPrevSiblingNodeHidden; } + + protected getTextDraggedMaxLines() { + const { colCell } = this.spreadsheet.options.style!; + + return ( + colCell?.maxLinesByField?.[this.meta.id] ?? + colCell?.maxLinesByField?.[this.meta.field] + ); + } } diff --git a/packages/s2-core/src/cell/corner-cell.ts b/packages/s2-core/src/cell/corner-cell.ts index abdb0ca85e..19e5a168a7 100644 --- a/packages/s2-core/src/cell/corner-cell.ts +++ b/packages/s2-core/src/cell/corner-cell.ts @@ -272,4 +272,14 @@ export class CornerCell extends HeaderCell { this.spreadsheet.dataSet.getFieldName(this.meta.field), ); } + + protected getTextDraggedMaxLines() { + // 角头和列头高度一致 + const { colCell } = this.spreadsheet.options.style!; + + return ( + colCell?.maxLinesByField?.[this.meta.id] ?? + colCell?.maxLinesByField?.[this.meta.field] + ); + } } diff --git a/packages/s2-core/src/cell/data-cell.ts b/packages/s2-core/src/cell/data-cell.ts index 8a800de508..c787ad2cfa 100644 --- a/packages/s2-core/src/cell/data-cell.ts +++ b/packages/s2-core/src/cell/data-cell.ts @@ -548,4 +548,14 @@ export class DataCell extends BaseCell { updateShapeAttr(this.conditionIconShapes, SHAPE_STYLE_MAP.opacity, opacity); } + + protected getTextDraggedMaxLines() { + const { rowCell } = this.spreadsheet.options.style!; + + // 数值和行高保持一致, 同时兼容明细表 + return ( + rowCell?.maxLinesByField?.[this.meta.id] ?? + rowCell?.maxLinesByField?.[this.meta.rowId!] + ); + } } diff --git a/packages/s2-core/src/cell/row-cell.ts b/packages/s2-core/src/cell/row-cell.ts index 2c890e54d5..0909949ad5 100644 --- a/packages/s2-core/src/cell/row-cell.ts +++ b/packages/s2-core/src/cell/row-cell.ts @@ -486,4 +486,13 @@ export class RowCell extends HeaderCell { return { x: textX, y: textStart }; } + + protected getTextDraggedMaxLines() { + const { rowCell } = this.spreadsheet.options.style!; + + return ( + rowCell?.maxLinesByField?.[this.meta.id] ?? + rowCell?.maxLinesByField?.[this.meta.field] + ); + } } diff --git a/packages/s2-core/src/common/interface/style.ts b/packages/s2-core/src/common/interface/style.ts index 03812c0733..5bfae42052 100644 --- a/packages/s2-core/src/common/interface/style.ts +++ b/packages/s2-core/src/common/interface/style.ts @@ -39,7 +39,12 @@ export interface BaseCellStyle { } export interface CellTextWordWrapStyle - extends Pick {} + extends Pick { + /** + * @private 内部使用 + */ + maxLinesByField?: Record | null; +} export interface DataCellStyle extends CellTextWordWrapStyle { /** diff --git a/packages/s2-core/src/interaction/row-column-resize.ts b/packages/s2-core/src/interaction/row-column-resize.ts index e39b8086cd..5e7e869a58 100644 --- a/packages/s2-core/src/interaction/row-column-resize.ts +++ b/packages/s2-core/src/interaction/row-column-resize.ts @@ -10,7 +10,6 @@ import type { DefaultCellTheme, ResizeInteractionOptions, ResizeParams, - RowCellStyle, } from '../common'; import { InterceptType, @@ -255,22 +254,22 @@ export class RowColumnResize extends BaseEvent implements BaseEventImplement { const displayWidth = isDisabled ? originalWidth : resizedWidth; const displayHeight = isDisabled ? originalHeight : resizedHeight; - // 高度调整时, 根据行高计算最大可展示的文本行数, 覆盖原本的 maxLines 配置 - if (resizeInfo.type === ResizeDirectionType.Vertical) { - const { cell } = resizeInfo?.cell?.getStyle() as DefaultCellTheme; - const padding = cell!.padding!.top! + cell!.padding!.bottom!; - const lineHeight = resizeInfo?.cell?.getTextLineHeight()!; - const maxLines = !isDisabled - ? Math.max(1, Math.floor((displayHeight - padding) / lineHeight)) - : undefined; - - return { - displayWidth, - displayHeight, - isDisabled, - maxLines, - }; - } + // // 高度调整时, 根据行高计算最大可展示的文本行数, 覆盖原本的 maxLines 配置 + // if (resizeInfo.type === ResizeDirectionType.Vertical) { + // const { cell } = resizeInfo?.cell?.getStyle() as DefaultCellTheme; + // const padding = cell!.padding!.top! + cell!.padding!.bottom!; + // const lineHeight = resizeInfo?.cell?.getTextLineHeight()!; + // const maxLines = !isDisabled + // ? Math.max(1, Math.floor((displayHeight - padding) / lineHeight)) + // : undefined; + + // return { + // displayWidth, + // displayHeight, + // isDisabled, + // maxLines, + // }; + // } return { displayWidth, @@ -399,18 +398,17 @@ export class RowColumnResize extends BaseEvent implements BaseEventImplement { private getResizeHeightDetail(): ResizeDetail | null { const resizeInfo = this.getResizeInfo(); - const { displayHeight, maxLines } = this.getDisAllowResizeInfo(); + const { displayHeight } = this.getDisAllowResizeInfo(); switch (resizeInfo.effect) { case ResizeAreaEffect.Field: return { eventType: S2Event.LAYOUT_RESIZE_COL_HEIGHT, style: { - cornerCell: { maxLines }, - colCell: { - maxLines, - heightByField: this.getHeightByField(resizeInfo, displayHeight!), - }, + colCell: this.transform( + this.getColCellHeightByField(resizeInfo, displayHeight!), + displayHeight, + ), }, }; @@ -418,13 +416,14 @@ export class RowColumnResize extends BaseEvent implements BaseEventImplement { return { eventType: S2Event.LAYOUT_RESIZE_ROW_HEIGHT, style: { - dataCell: { maxLines }, rowCell: { - maxLines, + ...this.transform( + this.getCellStyleByField(displayHeight), + displayHeight, + ), height: !this.isEffectRowOf(ResizeType.ALL) ? undefined : displayHeight, - heightByField: this.getCellStyleByField(displayHeight), }, }, }; @@ -434,10 +433,38 @@ export class RowColumnResize extends BaseEvent implements BaseEventImplement { } } - private getHeightByField( + private transform( + heightByField: Record, + displayHeight: number, + ) { + const { cell } = this.getResizeInfo(); + const { cell: cellStyle } = cell?.getStyle() as DefaultCellTheme; + const padding = cellStyle!.padding!.top! + cellStyle!.padding!.bottom!; + const lineHeight = cell?.getTextLineHeight()!; + + const maxLines = Math.max( + 1, + Math.floor((displayHeight - padding) / lineHeight), + ); + + const maxLinesByField = Object.keys(heightByField).reduce< + Record + >((result, field) => { + result![field] = maxLines; + + return result; + }, {}); + + return { + heightByField, + maxLinesByField, + }; + } + + private getColCellHeightByField( resizeInfo: ResizeInfo, displayHeight: number, - ): RowCellStyle['heightByField'] { + ): Record { // 1. 自定义列头: 给同一层级且同高度的单元格设置高度. 2. 明细表: 列高一致 if ( this.spreadsheet.isCustomColumnFields() || @@ -450,7 +477,7 @@ export class RowColumnResize extends BaseEvent implements BaseEventImplement { node.level === resizeInfo.meta?.level && node.height === resizeInfo.meta?.height, ) - .reduce((result, node) => { + .reduce>((result, node) => { result![node.field] = displayHeight; return result; From a9ab0b86866a60c3c0850cb48c86008adca68506 Mon Sep 17 00:00:00 2001 From: lijinke666 Date: Tue, 19 Nov 2024 18:04:57 +0800 Subject: [PATCH 4/7] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cell/__snapshots__/data-cell-spec.ts.snap | 57 ------------------- .../row-column-resize-spec.ts.snap | 2 - packages/s2-core/src/cell/base-cell.ts | 4 +- packages/s2-core/src/cell/col-cell.ts | 2 +- packages/s2-core/src/cell/corner-cell.ts | 2 +- packages/s2-core/src/cell/data-cell.ts | 2 +- packages/s2-core/src/cell/row-cell.ts | 2 +- .../s2-core/src/common/interface/resize.ts | 2 +- .../src/interaction/row-column-resize.ts | 42 +++++++------- 9 files changed, 27 insertions(+), 88 deletions(-) delete mode 100644 packages/s2-core/__tests__/unit/cell/__snapshots__/data-cell-spec.ts.snap diff --git a/packages/s2-core/__tests__/unit/cell/__snapshots__/data-cell-spec.ts.snap b/packages/s2-core/__tests__/unit/cell/__snapshots__/data-cell-spec.ts.snap deleted file mode 100644 index 1c3989532b..0000000000 --- a/packages/s2-core/__tests__/unit/cell/__snapshots__/data-cell-spec.ts.snap +++ /dev/null @@ -1,57 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Data Cell Tests Data Cell Formatter & Method Tests should get empty chart data and default options 1`] = ` -Object { - "autoFit": true, - "height": 83, - "theme": Object { - "type": "light", - }, - "width": 83, - "x": NaN, - "y": NaN, -} -`; - -exports[`Data Cell Tests Data Cell Formatter & Method Tests should get multiple chart data and all options 1`] = ` -Object { - "autoFit": true, - "data": Array [ - Object { - "genre": "Sports", - "sold": 275, - }, - ], - "encode": Object { - "color": "genre", - "x": "genre", - "y": "sold", - }, - "type": "interval", -} -`; - -exports[`Data Cell Tests Data Cell Formatter & Method Tests should get multiple chart data and all options 2`] = ` -Object { - "autoFit": true, - "data": Array [ - Object { - "genre": "Sports", - "sold": 275, - }, - ], - "encode": Object { - "color": "genre", - "x": "genre", - "y": "sold", - }, - "height": 83, - "theme": Object { - "type": "dark", - }, - "type": "interval", - "width": 83, - "x": 8, - "y": 208, -} -`; diff --git a/packages/s2-core/__tests__/unit/interaction/__snapshots__/row-column-resize-spec.ts.snap b/packages/s2-core/__tests__/unit/interaction/__snapshots__/row-column-resize-spec.ts.snap index a8d74ad060..278f845a9e 100644 --- a/packages/s2-core/__tests__/unit/interaction/__snapshots__/row-column-resize-spec.ts.snap +++ b/packages/s2-core/__tests__/unit/interaction/__snapshots__/row-column-resize-spec.ts.snap @@ -133,7 +133,6 @@ Object { "test-b": 1, }, "textOverflow": "ellipsis", - "widthByField": null, "wordWrap": true, } `; @@ -149,7 +148,6 @@ Object { "testField": 1, }, "textOverflow": "ellipsis", - "widthByField": null, "wordWrap": true, } `; diff --git a/packages/s2-core/src/cell/base-cell.ts b/packages/s2-core/src/cell/base-cell.ts index 530a869b98..7749941daf 100644 --- a/packages/s2-core/src/cell/base-cell.ts +++ b/packages/s2-core/src/cell/base-cell.ts @@ -189,7 +189,7 @@ export abstract class BaseCell extends Group { // eslint-disable-next-line @typescript-eslint/no-unused-vars protected handleRestOptions(...options: unknown[]) {} - protected getTextDraggedMaxLines(): number | void {} + protected getResizedTextMaxLines(): number | void {} /* -------------------------------------------------------------------------- */ /* common functions that will be used in subtype */ @@ -486,7 +486,7 @@ export abstract class BaseCell extends Group { // G 遵循浏览器的规范, 空间不足以展示省略号时, 会裁剪文字, 而不是展示省略号: https://developer.mozilla.org/en-US/docs/Web/CSS/text-overflow#ellipsis const maxTextWidth = Math.max(this.getMaxTextWidth(), 0) + EXTRA_PIXEL; const textStyle = this.getTextStyle(); - const maxLines = this.getTextDraggedMaxLines() || textStyle?.maxLines; + const maxLines = this.getResizedTextMaxLines() || textStyle?.maxLines; // 在坐标计算 (getTextPosition) 之前, 预渲染一次, 提前生成 textShape, 获得文字宽度, 用于计算 icon 绘制坐标 this.renderTextShape({ diff --git a/packages/s2-core/src/cell/col-cell.ts b/packages/s2-core/src/cell/col-cell.ts index 0e8a73e828..16e4f09f48 100644 --- a/packages/s2-core/src/cell/col-cell.ts +++ b/packages/s2-core/src/cell/col-cell.ts @@ -583,7 +583,7 @@ export class ColCell extends HeaderCell { return isNextSiblingNodeHidden && isPrevSiblingNodeHidden; } - protected getTextDraggedMaxLines() { + protected getResizedTextMaxLines() { const { colCell } = this.spreadsheet.options.style!; return ( diff --git a/packages/s2-core/src/cell/corner-cell.ts b/packages/s2-core/src/cell/corner-cell.ts index 19e5a168a7..bfc193d61c 100644 --- a/packages/s2-core/src/cell/corner-cell.ts +++ b/packages/s2-core/src/cell/corner-cell.ts @@ -273,7 +273,7 @@ export class CornerCell extends HeaderCell { ); } - protected getTextDraggedMaxLines() { + protected getResizedTextMaxLines() { // 角头和列头高度一致 const { colCell } = this.spreadsheet.options.style!; diff --git a/packages/s2-core/src/cell/data-cell.ts b/packages/s2-core/src/cell/data-cell.ts index c146c26eb6..7db9a1fcae 100644 --- a/packages/s2-core/src/cell/data-cell.ts +++ b/packages/s2-core/src/cell/data-cell.ts @@ -509,7 +509,7 @@ export class DataCell extends BaseCell { updateShapeAttr(this.conditionIconShapes, SHAPE_STYLE_MAP.opacity, opacity); } - protected getTextDraggedMaxLines() { + protected getResizedTextMaxLines() { const { rowCell } = this.spreadsheet.options.style!; // 数值和行高保持一致, 同时兼容明细表 diff --git a/packages/s2-core/src/cell/row-cell.ts b/packages/s2-core/src/cell/row-cell.ts index 65fbeb9981..03840d442b 100644 --- a/packages/s2-core/src/cell/row-cell.ts +++ b/packages/s2-core/src/cell/row-cell.ts @@ -492,7 +492,7 @@ export class RowCell extends HeaderCell { return { x: textX, y: textStart }; } - protected getTextDraggedMaxLines() { + protected getResizedTextMaxLines() { const { rowCell } = this.spreadsheet.options.style!; return ( diff --git a/packages/s2-core/src/common/interface/resize.ts b/packages/s2-core/src/common/interface/resize.ts index f11f67b9cd..a69d4ceb87 100644 --- a/packages/s2-core/src/common/interface/resize.ts +++ b/packages/s2-core/src/common/interface/resize.ts @@ -64,7 +64,7 @@ export interface ResizeInfo { isResizeArea?: boolean; isResizeMask?: boolean; - /** 当前拖拽热区对应的节点信息 */ + /** 当前拖拽热区对应的单元格/节点信息 */ meta: Node | ViewMeta; cell: S2CellType; diff --git a/packages/s2-core/src/interaction/row-column-resize.ts b/packages/s2-core/src/interaction/row-column-resize.ts index 5e7e869a58..86d57d43e8 100644 --- a/packages/s2-core/src/interaction/row-column-resize.ts +++ b/packages/s2-core/src/interaction/row-column-resize.ts @@ -7,6 +7,7 @@ import { } from '@antv/g'; import { clone, isEmpty, throttle } from 'lodash'; import type { + CellTextWordWrapStyle, DefaultCellTheme, ResizeInteractionOptions, ResizeParams, @@ -254,23 +255,6 @@ export class RowColumnResize extends BaseEvent implements BaseEventImplement { const displayWidth = isDisabled ? originalWidth : resizedWidth; const displayHeight = isDisabled ? originalHeight : resizedHeight; - // // 高度调整时, 根据行高计算最大可展示的文本行数, 覆盖原本的 maxLines 配置 - // if (resizeInfo.type === ResizeDirectionType.Vertical) { - // const { cell } = resizeInfo?.cell?.getStyle() as DefaultCellTheme; - // const padding = cell!.padding!.top! + cell!.padding!.bottom!; - // const lineHeight = resizeInfo?.cell?.getTextLineHeight()!; - // const maxLines = !isDisabled - // ? Math.max(1, Math.floor((displayHeight - padding) / lineHeight)) - // : undefined; - - // return { - // displayWidth, - // displayHeight, - // isDisabled, - // maxLines, - // }; - // } - return { displayWidth, displayHeight, @@ -397,6 +381,7 @@ export class RowColumnResize extends BaseEvent implements BaseEventImplement { } private getResizeHeightDetail(): ResizeDetail | null { + const { style } = this.spreadsheet.options; const resizeInfo = this.getResizeInfo(); const { displayHeight } = this.getDisAllowResizeInfo(); @@ -405,8 +390,9 @@ export class RowColumnResize extends BaseEvent implements BaseEventImplement { return { eventType: S2Event.LAYOUT_RESIZE_COL_HEIGHT, style: { - colCell: this.transform( + colCell: this.getResizedCellStyleByField( this.getColCellHeightByField(resizeInfo, displayHeight!), + style?.colCell!, displayHeight, ), }, @@ -417,8 +403,9 @@ export class RowColumnResize extends BaseEvent implements BaseEventImplement { eventType: S2Event.LAYOUT_RESIZE_ROW_HEIGHT, style: { rowCell: { - ...this.transform( + ...this.getResizedCellStyleByField( this.getCellStyleByField(displayHeight), + style?.rowCell!, displayHeight, ), height: !this.isEffectRowOf(ResizeType.ALL) @@ -433,13 +420,24 @@ export class RowColumnResize extends BaseEvent implements BaseEventImplement { } } - private transform( + private getResizedCellStyleByField( heightByField: Record, + cellStyle: CellTextWordWrapStyle, displayHeight: number, ) { + const isEnableHeightAdaptive = + cellStyle?.maxLines! > 1 && cellStyle?.wordWrap; + + if (isEnableHeightAdaptive) { + return { + heightByField, + }; + } + + // 如果开启了换行, 高度拖拽后动态计算 maxLines 的值, 已保证展示合理性. const { cell } = this.getResizeInfo(); - const { cell: cellStyle } = cell?.getStyle() as DefaultCellTheme; - const padding = cellStyle!.padding!.top! + cellStyle!.padding!.bottom!; + const { cell: cellTheme } = cell?.getStyle() as DefaultCellTheme; + const padding = cellTheme!.padding!.top! + cellTheme!.padding!.bottom!; const lineHeight = cell?.getTextLineHeight()!; const maxLines = Math.max( From 173ffb5e4890cba78b2a419802f560c726acc99e Mon Sep 17 00:00:00 2001 From: lijinke666 Date: Wed, 20 Nov 2024 10:52:22 +0800 Subject: [PATCH 5/7] =?UTF-8?q?test:=20=E4=BC=98=E5=8C=96=E5=8D=95?= =?UTF-8?q?=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../s2-core/__tests__/bugs/issue-2528-spec.ts | 8 +- .../multi-line-text-spec.ts.snap | 200 ------------------ .../spreadsheet/empty-string-values-spec.ts | 4 +- .../__tests__/spreadsheet/scroll-spec.ts | 39 ++-- .../spreadsheet/spread-sheet-spec.ts | 12 +- .../__snapshots__/formatter-spec.ts.snap | 1 + .../__tests__/unit/utils/sort-action-spec.ts | 5 +- .../__tests__/unit/utils/tooltip-spec.ts | 4 +- .../__tests__/unit/hooks/useResize-spec.ts | 4 +- 9 files changed, 45 insertions(+), 232 deletions(-) diff --git a/packages/s2-core/__tests__/bugs/issue-2528-spec.ts b/packages/s2-core/__tests__/bugs/issue-2528-spec.ts index a8d116a4f1..04e60fa9fc 100644 --- a/packages/s2-core/__tests__/bugs/issue-2528-spec.ts +++ b/packages/s2-core/__tests__/bugs/issue-2528-spec.ts @@ -21,10 +21,10 @@ const s2Options: S2Options = { describe('Table Sheet Editable Formatter Tests', () => { let s2: SpreadSheet; - beforeEach(() => { + beforeEach(async () => { s2 = new TableSheet(getContainer(), s2DataConfig, s2Options); - s2.render(); + await s2.render(); }); test('should get formatted data', () => { @@ -36,7 +36,7 @@ describe('Table Sheet Editable Formatter Tests', () => { expect(costValues).toEqual(['2-@', '2-@', '2-@']); }); - test('should only format data once after data edited', () => { + test('should only format data once after data edited', async () => { const id = '0-root[&]cost'; const inputValue = 'test'; @@ -46,7 +46,7 @@ describe('Table Sheet Editable Formatter Tests', () => { displayData[0]['cost'] = inputValue; s2.dataSet.displayFormattedValueMap?.set(id, inputValue); - s2.render(); + await s2.render(); const costValues = s2.facet .getDataCells() diff --git a/packages/s2-core/__tests__/spreadsheet/__snapshots__/multi-line-text-spec.ts.snap b/packages/s2-core/__tests__/spreadsheet/__snapshots__/multi-line-text-spec.ts.snap index 6f60ae9134..8e0d395141 100644 --- a/packages/s2-core/__tests__/spreadsheet/__snapshots__/multi-line-text-spec.ts.snap +++ b/packages/s2-core/__tests__/spreadsheet/__snapshots__/multi-line-text-spec.ts.snap @@ -11103,206 +11103,6 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should update col height if corner header have more lines of text than column header 1`] = ` -Array [ - Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "序号", - ], - "originalText": "序号", - "width": 80, - }, - Object { - "actualText": "province", - "actualTextHeight": 16, - "actualTextWidth": 51, - "height": 30, - "multiLineActualTexts": Array [ - "province", - ], - "originalText": "province", - "width": 179.5, - }, - Object { - "actualText": "城市城市城市", - "actualTextHeight": 48, - "actualTextWidth": 75, - "height": 30, - "multiLineActualTexts": Array [ - "城市", - "城市", - "城市", - ], - "originalText": "城市 -城市 -城市", - "width": 179.5, - }, - Object { - "actualText": "类型类型类型类型", - "actualTextHeight": 64, - "actualTextWidth": 100, - "height": 30, - "multiLineActualTexts": Array [ - "类型", - "类型", - "类型", - "类型", - ], - "originalText": "类型 -类型 -类型 -类型", - "width": 439, - }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should update col height if corner header have more lines of text than column header 2`] = ` -Array [ - Object { - "actualText": "1", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 60, - "multiLineActualTexts": Array [ - "1", - ], - "originalText": "1", - "width": 80, - }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should update col height if corner header have more lines of text than column header 3`] = ` -Array [ - Object { - "actualText": "笔", - "actualTextHeight": 16, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "笔", - ], - "originalText": "笔", - "width": 359, - }, - Object { - "actualText": "price", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "price", - ], - "originalText": "price", - "width": 179.5, - }, - Object { - "actualText": "cost", - "actualTextHeight": 15, - "actualTextWidth": 23, - "height": 30, - "multiLineActualTexts": Array [ - "cost", - ], - "originalText": "cost", - "width": 179.5, - }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should update col height if corner header have more lines of text than column header 4`] = ` -Array [ - Object { - "actualText": "浙江", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 60, - "multiLineActualTexts": Array [ - "浙江", - ], - "originalText": "浙江", - "width": 179.5, - }, - Object { - "actualText": "义乌", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "义乌", - ], - "originalText": "义乌", - "width": 179.5, - }, - Object { - "actualText": "杭州", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "杭州", - ], - "originalText": "杭州", - "width": 179.5, - }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should update col height if corner header have more lines of text than column header 5`] = ` -Array [ - Object { - "actualText": "1", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "1", - ], - "originalText": 1, - "width": 179.5, - }, - Object { - "actualText": "1", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "1", - ], - "originalText": 1, - "width": 179.5, - }, - Object { - "actualText": "2", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "2", - ], - "originalText": 2, - "width": 179.5, - }, - Object { - "actualText": "2", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, - "multiLineActualTexts": Array [ - "2", - ], - "originalText": 2, - "width": 179.5, - }, -] -`; - exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 1`] = ` Array [ Object { diff --git a/packages/s2-core/__tests__/spreadsheet/empty-string-values-spec.ts b/packages/s2-core/__tests__/spreadsheet/empty-string-values-spec.ts index 928f494f6a..5e52b72415 100644 --- a/packages/s2-core/__tests__/spreadsheet/empty-string-values-spec.ts +++ b/packages/s2-core/__tests__/spreadsheet/empty-string-values-spec.ts @@ -73,9 +73,9 @@ const testDataCfg: S2DataConfig = { describe('Empty String Values Tests', () => { let s2: SpreadSheet; - beforeEach(() => { + beforeEach(async () => { s2 = new PivotSheet(getContainer(), testDataCfg, s2Options); - s2.render(); + await s2.render(); }); test('should get correctly first dimension values', () => { diff --git a/packages/s2-core/__tests__/spreadsheet/scroll-spec.ts b/packages/s2-core/__tests__/spreadsheet/scroll-spec.ts index 8671d61c67..5502548bcd 100644 --- a/packages/s2-core/__tests__/spreadsheet/scroll-spec.ts +++ b/packages/s2-core/__tests__/spreadsheet/scroll-spec.ts @@ -536,9 +536,11 @@ describe('Scroll Tests', () => { s2.interaction.scrollTo({ offsetX: { value: 999, + animate: false, }, offsetY: { value: 999, + animate: false, }, }); @@ -977,7 +979,9 @@ describe('Scroll Tests', () => { }); test('should scroll to cell by id', async () => { - s2.interaction.scrollToCellById('root[&]浙江[&]杭州-root[&]笔[&]price'); + s2.interaction.scrollToCellById('root[&]浙江[&]杭州-root[&]笔[&]price', { + animate: false, + }); await sleep(500); @@ -986,7 +990,7 @@ describe('Scroll Tests', () => { }); test('should scroll to cell by id when cell outside of viewport', async () => { - s2.interaction.scrollToCellById('root[&]浙江[&]杭州'); + s2.interaction.scrollToCellById('root[&]浙江[&]杭州', { animate: false }); await sleep(500); @@ -996,7 +1000,7 @@ describe('Scroll Tests', () => { test('should scroll to cell', async () => { const dataCell = last(s2.facet.getDataCells()); - s2.interaction.scrollToCell(dataCell!); + s2.interaction.scrollToCell(dataCell!, { animate: false }); await sleep(500); @@ -1007,7 +1011,7 @@ describe('Scroll Tests', () => { test('should scroll to node', async () => { const rowNode = last(s2.facet.getRowNodes()); - s2.interaction.scrollToNode(rowNode!); + s2.interaction.scrollToNode(rowNode!, { animate: false }); await sleep(500); @@ -1016,27 +1020,27 @@ describe('Scroll Tests', () => { }); test('should scroll to top', async () => { - s2.interaction.scrollTo({ offsetY: { value: 10 } }); + s2.interaction.scrollTo({ offsetY: { value: 10, animate: false } }); await sleep(100); - s2.interaction.scrollToTop(); + s2.interaction.scrollToTop({ animate: false }); await sleep(500); expect(s2.facet.hScrollBar.thumbOffset).toBeCloseTo(0); expect(s2.facet.vScrollBar.thumbOffset).toBeCloseTo(0); }); test('should scroll to left', async () => { - s2.interaction.scrollTo({ offsetX: { value: 10 } }); + s2.interaction.scrollTo({ offsetX: { value: 10, animate: false } }); await sleep(100); - s2.interaction.scrollToLeft(); + s2.interaction.scrollToLeft({ animate: false }); await sleep(500); expect(s2.facet.hScrollBar.thumbOffset).toBeCloseTo(0); expect(s2.facet.vScrollBar.thumbOffset).toBeCloseTo(0); }); test('should scroll to bottom', async () => { - s2.interaction.scrollToBottom(false); + s2.interaction.scrollToBottom({ animate: false }); await sleep(500); @@ -1045,7 +1049,7 @@ describe('Scroll Tests', () => { }); test('should scroll to right', async () => { - s2.interaction.scrollToRight(false); + s2.interaction.scrollToRight({ animate: false }); await sleep(500); @@ -1059,22 +1063,22 @@ describe('Scroll Tests', () => { expectScroll(); }); - test('should not trigger scroll event when options changed', () => { + test('should not trigger scroll event when options changed', async () => { const expectScroll = getScrollExpect(); s2.setOptions({ hierarchyType: 'tree', }); - s2.render(); + await s2.render(false); expectScroll(); }); - test('should not trigger scroll event when data config changed', () => { + test('should not trigger scroll event when data config changed', async () => { const expectScroll = getScrollExpect(); s2.setDataCfg(cloneDeep(mockDataConfig)); - s2.render(); + await s2.render(false); expectScroll(); }); @@ -1092,26 +1096,33 @@ describe('Scroll Tests', () => { skipScrollEvent: true, rowHeaderOffsetX: { value: 999, + animate: false, }, offsetX: { value: 999, + animate: false, }, offsetY: { value: 999, + animate: false, }, }); s2.interaction.scrollToLeft({ skipScrollEvent: true, + animate: false, }); s2.interaction.scrollToTop({ skipScrollEvent: true, + animate: false, }); s2.interaction.scrollToRight({ skipScrollEvent: true, + animate: false, }); s2.interaction.scrollToBottom({ skipScrollEvent: true, + animate: false, }); await sleep(500); diff --git a/packages/s2-core/__tests__/spreadsheet/spread-sheet-spec.ts b/packages/s2-core/__tests__/spreadsheet/spread-sheet-spec.ts index d72405af4c..903adf6fce 100644 --- a/packages/s2-core/__tests__/spreadsheet/spread-sheet-spec.ts +++ b/packages/s2-core/__tests__/spreadsheet/spread-sheet-spec.ts @@ -155,7 +155,7 @@ describe('SpreadSheet Tests', () => { expect(s2.facet.hScrollBar.current()).toEqual(0); s2.interaction.scrollTo({ - offsetX: { value: 30 }, + offsetX: { value: 30, animate: false }, }); await sleep(500); @@ -182,7 +182,7 @@ describe('SpreadSheet Tests', () => { await s2.render(); s2.interaction.scrollTo({ - offsetY: { value: 20 }, + offsetY: { value: 20, animate: false }, }); await sleep(500); @@ -219,7 +219,7 @@ describe('SpreadSheet Tests', () => { `); s2.interaction.scrollTo({ - rowHeaderOffsetX: { value: 30 }, + rowHeaderOffsetX: { value: 30, animate: false }, }); await sleep(500); @@ -249,9 +249,9 @@ describe('SpreadSheet Tests', () => { await s2.render(); s2.interaction.scrollTo({ - offsetY: { value: 20 }, - offsetX: { value: 30 }, - rowHeaderOffsetX: { value: 40 }, + offsetY: { value: 20, animate: false }, + offsetX: { value: 30, animate: false }, + rowHeaderOffsetX: { value: 40, animate: false }, }); await sleep(500); diff --git a/packages/s2-core/__tests__/unit/utils/interaction/__snapshots__/formatter-spec.ts.snap b/packages/s2-core/__tests__/unit/utils/interaction/__snapshots__/formatter-spec.ts.snap index cfabafa96b..ea7481eb04 100644 --- a/packages/s2-core/__tests__/unit/utils/interaction/__snapshots__/formatter-spec.ts.snap +++ b/packages/s2-core/__tests__/unit/utils/interaction/__snapshots__/formatter-spec.ts.snap @@ -14,6 +14,7 @@ Object { "getFieldValue": [MockFunction], "getMeta": [Function], "getStyle": [MockFunction], + "getTextLineHeight": [MockFunction], "hideInteractionShape": [MockFunction], "id": "test-a", "isLeaf": false, diff --git a/packages/s2-core/__tests__/unit/utils/sort-action-spec.ts b/packages/s2-core/__tests__/unit/utils/sort-action-spec.ts index 70b1d525af..ca1afcb811 100644 --- a/packages/s2-core/__tests__/unit/utils/sort-action-spec.ts +++ b/packages/s2-core/__tests__/unit/utils/sort-action-spec.ts @@ -772,7 +772,7 @@ describe('GetSortByMeasureValues Total Fallback Tests', () => { describe('total group dimension sort test', () => { let sheet: SpreadSheet; - beforeEach(() => { + beforeEach(async () => { const currentOptions = { totals: { col: { @@ -805,12 +805,13 @@ describe('total group dimension sort test', () => { }; sheet = new PivotSheet(getContainer(), dataConfig, currentOptions); - sheet.render(); + await sheet.render(); }); afterEach(() => { sheet.destroy(); }); + test('should sort by col total with group', () => { // 根据列(类别)的总和排序 const sortParam: SortParam = { diff --git a/packages/s2-core/__tests__/unit/utils/tooltip-spec.ts b/packages/s2-core/__tests__/unit/utils/tooltip-spec.ts index b830e2c50f..062823c0e5 100644 --- a/packages/s2-core/__tests__/unit/utils/tooltip-spec.ts +++ b/packages/s2-core/__tests__/unit/utils/tooltip-spec.ts @@ -972,7 +972,7 @@ describe('Tooltip Utils Tests', () => { }); describe('Tooltip Get Data Tests For TableSheet', () => { - beforeEach(() => { + beforeEach(async () => { s2 = createTableSheet( { seriesNumber: { @@ -981,7 +981,7 @@ describe('Tooltip Utils Tests', () => { }, { useSimpleData: false }, ); - s2.render(); + await s2.render(); }); afterEach(() => { diff --git a/packages/s2-react/__tests__/unit/hooks/useResize-spec.ts b/packages/s2-react/__tests__/unit/hooks/useResize-spec.ts index 25fdc5e88e..63aac43483 100644 --- a/packages/s2-react/__tests__/unit/hooks/useResize-spec.ts +++ b/packages/s2-react/__tests__/unit/hooks/useResize-spec.ts @@ -15,11 +15,11 @@ describe('useResize tests', () => { let container: HTMLDivElement; let wrapper: HTMLDivElement; - beforeEach(() => { + beforeEach(async () => { container = getContainer(); wrapper = getContainer(); s2 = new PivotSheet(container, mockDataConfig, s2Options); - s2.render(); + await s2.render(); jest.spyOn(s2, 'buildFacet' as any).mockImplementation(() => {}); }); From 2d7c2c4b188d0c3b5d88fe59e96ad53ea408def8 Mon Sep 17 00:00:00 2001 From: lijinke666 Date: Wed, 20 Nov 2024 11:09:12 +0800 Subject: [PATCH 6/7] =?UTF-8?q?docs:=20=E4=BC=98=E5=8C=96=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- s2-site/docs/api/basic-class/base-cell.zh.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s2-site/docs/api/basic-class/base-cell.zh.md b/s2-site/docs/api/basic-class/base-cell.zh.md index 0e470b1916..cb4d435fc6 100644 --- a/s2-site/docs/api/basic-class/base-cell.zh.md +++ b/s2-site/docs/api/basic-class/base-cell.zh.md @@ -20,7 +20,7 @@ cell.getActualText() | cellType | 单元格类型 | [`CellType`](#celltype) | | initCell | 初始化单元格 | `() => void` | | update | 更新单元格 | `() => void` | -| getTextStyle | 获取文本样式 | `() => void` | +| getTextStyle | 获取文本样式 | () => [TextTheme](/api/general/s2-theme#s2theme) & [CellTextWordWrapStyle](/api/general/s2-options#celltextwordwrapstyle) | | getCellTextWordWrapStyle | 获取文本换行配置 | `() => { wordWrap: boolean, maxLines: number, textOverflow: string \| boolean }` | | getFormattedFieldValue | 获取格式化后的字段值 | `() => { formattedValue: string, value: string }` | | getMaxTextWidth | 获取文本最大宽度 | `() => number` | From 075142f05df7dd4471795b29d347b4569f076d1c Mon Sep 17 00:00:00 2001 From: lijinke666 Date: Wed, 20 Nov 2024 11:52:47 +0800 Subject: [PATCH 7/7] =?UTF-8?q?test:=20=E4=BC=98=E5=8C=96=E5=8D=95?= =?UTF-8?q?=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../row-column-resize-spec.ts.snap | 39 ++++++++----------- .../interaction/row-column-resize-spec.ts | 30 +++++++++----- .../src/interaction/row-column-resize.ts | 2 +- 3 files changed, 39 insertions(+), 32 deletions(-) diff --git a/packages/s2-core/__tests__/unit/interaction/__snapshots__/row-column-resize-spec.ts.snap b/packages/s2-core/__tests__/unit/interaction/__snapshots__/row-column-resize-spec.ts.snap index 278f845a9e..2a0c9930ef 100644 --- a/packages/s2-core/__tests__/unit/interaction/__snapshots__/row-column-resize-spec.ts.snap +++ b/packages/s2-core/__tests__/unit/interaction/__snapshots__/row-column-resize-spec.ts.snap @@ -75,10 +75,6 @@ Object { "test-cell-b": 2, }, "maxLines": 1, - "maxLinesByField": Object { - "test-cell-a": 1, - "test-cell-b": 1, - }, "showTreeLeafNodeAlignDot": false, "textOverflow": "ellipsis", "wordWrap": true, @@ -92,9 +88,6 @@ Object { "testField": 2, }, "maxLines": 1, - "maxLinesByField": Object { - "testField": 1, - }, "showTreeLeafNodeAlignDot": false, "textOverflow": "ellipsis", "wordWrap": true, @@ -127,7 +120,7 @@ Object { "test-a": 2, "test-b": 2, }, - "maxLines": 1, + "maxLines": Infinity, "maxLinesByField": Object { "test-a": 1, "test-b": 1, @@ -144,9 +137,6 @@ Object { "testField": 2, }, "maxLines": 1, - "maxLinesByField": Object { - "testField": 1, - }, "textOverflow": "ellipsis", "wordWrap": true, } @@ -159,9 +149,6 @@ Object { "testFieldId": 2, }, "maxLines": 1, - "maxLinesByField": Object { - "testFieldId": 1, - }, "showTreeLeafNodeAlignDot": false, "textOverflow": "ellipsis", "wordWrap": true, @@ -176,10 +163,6 @@ Object { "test-cell-b": 2, }, "maxLines": 1, - "maxLinesByField": Object { - "test-cell-a": 1, - "test-cell-b": 1, - }, "showTreeLeafNodeAlignDot": false, "textOverflow": "ellipsis", "wordWrap": true, @@ -193,10 +176,22 @@ Object { "0": 2, }, "maxLines": 1, + "showTreeLeafNodeAlignDot": false, + "textOverflow": "ellipsis", + "wordWrap": true, +} +`; + +exports[`Interaction Row Column Resize Tests should get vertical filed resize style for height adaptive 1`] = ` +Object { + "height": 30, + "heightByField": Object { + "testField": 2, + }, + "maxLines": 3, "maxLinesByField": Object { - "0": 1, + "testField": 1, }, - "showTreeLeafNodeAlignDot": false, "textOverflow": "ellipsis", "wordWrap": true, } @@ -234,7 +229,7 @@ Object { "heightByField": Object { "testField": 2, }, - "maxLines": 1, + "maxLines": 3, "maxLinesByField": Object { "testField": 1, }, @@ -247,7 +242,7 @@ Object { exports[`Interaction Row Column Resize Tests should rerender by resize row cell 2`] = ` Object { "height": 30, - "maxLines": 1, + "maxLines": Infinity, "textOverflow": "ellipsis", "width": 96, "wordWrap": true, diff --git a/packages/s2-core/__tests__/unit/interaction/row-column-resize-spec.ts b/packages/s2-core/__tests__/unit/interaction/row-column-resize-spec.ts index 5cdc3b7d08..d674efcfb3 100644 --- a/packages/s2-core/__tests__/unit/interaction/row-column-resize-spec.ts +++ b/packages/s2-core/__tests__/unit/interaction/row-column-resize-spec.ts @@ -409,11 +409,13 @@ describe('Interaction Row Column Resize Tests', () => { const rowWidthResize = jest.fn(); s2.setOptions({ - rowCell: { - maxLines: 3, - }, - dataCell: { - maxLines: Infinity, + style: { + rowCell: { + maxLines: 3, + }, + dataCell: { + maxLines: Infinity, + }, }, }); s2.on(S2Event.LAYOUT_RESIZE, resize); @@ -612,9 +614,17 @@ describe('Interaction Row Column Resize Tests', () => { }); test('should get vertical filed resize style', () => { + emitResize(ResizeDirectionType.Vertical, ResizeAreaEffect.Field); + + expect(s2.options.style!.colCell).toMatchSnapshot(); + }); + + test('should get vertical filed resize style for height adaptive', () => { s2.setOptions({ - colCell: { - maxLines: 3, + style: { + colCell: { + maxLines: 3, + }, }, }); @@ -625,8 +635,10 @@ describe('Interaction Row Column Resize Tests', () => { test('should get vertical custom filed resize style', () => { s2.setOptions({ - colCell: { - maxLines: Infinity, + style: { + colCell: { + maxLines: Infinity, + }, }, }); diff --git a/packages/s2-core/src/interaction/row-column-resize.ts b/packages/s2-core/src/interaction/row-column-resize.ts index 86d57d43e8..a1e2aa53eb 100644 --- a/packages/s2-core/src/interaction/row-column-resize.ts +++ b/packages/s2-core/src/interaction/row-column-resize.ts @@ -428,7 +428,7 @@ export class RowColumnResize extends BaseEvent implements BaseEventImplement { const isEnableHeightAdaptive = cellStyle?.maxLines! > 1 && cellStyle?.wordWrap; - if (isEnableHeightAdaptive) { + if (!isEnableHeightAdaptive) { return { heightByField, };