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 8401e9abf6..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 @@ -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 by maxLinesByField 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 61, + "height": 76, "multiLineActualTexts": Array [ "序号", ], @@ -8215,52 +8119,53 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 61, + "height": 76, "multiLineActualTexts": Array [ "省份", ], "originalText": "省份", - "width": 96, + "width": 102.57, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城...", - "actualTextHeight": 48, - "actualTextWidth": 217, - "height": 61, + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 64, + "actualTextWidth": 292, + "height": 76, "multiLineActualTexts": Array [ - "城市城市城市", - "城市城市城市", - "城市城市城...", + "城市城市城市城", + "市城市城市城市", + "城市城市城市城", + "市城市", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "width": 96, + "width": 102.57, }, Object { "actualText": "类别类别类别类别类别类别类别类别类别类别", "actualTextHeight": 16, "actualTextWidth": 241, - "height": 64, + "height": 48, "multiLineActualTexts": Array [ "类别类别类别类别类别类别类别类别类别类别", ], "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 272, + "width": 285.14, }, Object { "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 64, + "height": 96, "multiLineActualTexts": Array [ "子类别", ], "originalText": "子类别", - "width": 272, + "width": 285.14, }, ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 2`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by maxLinesByField 2`] = ` Array [ Object { "actualText": "1", @@ -8277,7 +8182,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 64, + "height": 96, "multiLineActualTexts": Array [ "2", ], @@ -8298,677 +8203,605 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 3`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by maxLinesByField 3`] = ` Array [ Object { "actualText": "家具", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 48, "multiLineActualTexts": Array [ "家具", ], "originalText": "家具", - "width": 192, + "width": 205.14, }, Object { "actualText": "桌子", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 96, "multiLineActualTexts": Array [ "桌子", ], "originalText": "桌子", - "width": 96, + "width": 102.57, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数...", - "actualTextHeight": 45, - "actualTextWidth": 217, - "height": 61, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 60, + "actualTextWidth": 268, + "height": 76, "multiLineActualTexts": Array [ - "数量数量数量", - "数量数量数量", - "数量数量数...", + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 96, + "width": 102.57, }, Object { "actualText": "沙发", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 96, "multiLineActualTexts": Array [ "沙发", ], "originalText": "沙发", - "width": 96, + "width": 102.57, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数...", - "actualTextHeight": 45, - "actualTextWidth": 217, - "height": 61, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 60, + "actualTextWidth": 268, + "height": 76, "multiLineActualTexts": Array [ - "数量数量数量", - "数量数量数量", - "数量数量数...", + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 96, + "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": 32, + "actualTextWidth": 168, + "height": 48, "multiLineActualTexts": Array [ - "浙江省", + "家具家具家具家", + "具家具家具家...", ], - "originalText": "浙江省", - "width": 96, + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 102.57, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江...", + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", "actualTextHeight": 48, - "actualTextWidth": 217, - "height": 64, + "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 three max text lines 5`] = ` -Array [ Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 99, - "height": 30, + "actualText": "办公用品", + "actualTextHeight": 16, + "actualTextWidth": 49, + "height": 48, "multiLineActualTexts": Array [ - "23672367236", - "1111", + "办公用品", ], - "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": 64, + "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": "632", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "632", + "绍兴市", ], - "originalText": 632, - "width": 96, + "originalText": "绍兴市", + "width": 102.57, }, Object { - "actualText": "7234", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "7234", + "宁波市", ], - "originalText": 7234, - "width": 96, + "originalText": "宁波市", + "width": 102.57, }, Object { - "actualText": "834", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "834", + "舟山市", ], - "originalText": 834, - "width": 96, + "originalText": "舟山市", + "width": 102.57, }, Object { - "actualText": "5343", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "5343", + "杭州市", ], - "originalText": 5343, - "width": 96, + "originalText": "杭州市", + "width": 102.57, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 64, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "actualTextHeight": 80, + "actualTextWidth": 365, + "height": 96, "multiLineActualTexts": Array [ - "-", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江省", + "浙江省浙江省浙", + "江省", ], - "originalText": "-", - "width": 96, + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 102.57, }, Object { - "actualText": "2451", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 96, "multiLineActualTexts": Array [ - "2451", + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州...", ], - "originalText": 2451, - "width": 96, + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 102.57, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 1`] = ` -Array [ Object { - "actualText": "序号", + "actualText": "四川省", "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 61, + "actualTextWidth": 37, + "height": 120, "multiLineActualTexts": Array [ - "序号", + "四川省", ], - "originalText": "序号", - "width": 80, + "originalText": "四川省", + "width": 102.57, }, Object { - "actualText": "省份/城市城市城市城市城市城市...", - "actualTextHeight": 48, - "actualTextWidth": 184, - "height": 61, + "actualText": "成都市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "省份/城市城", - "市城市城市", - "城市城市...", + "成都市", ], - "originalText": "省份/城市城市城市城市城市城市城市城市城市城市城市城市", - "width": 100, + "originalText": "成都市", + "width": 102.57, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 32, - "actualTextWidth": 242, - "height": 64, + "actualText": "绵阳市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类别类别类别", - "类别类别类别类别", + "绵阳市", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 180, + "originalText": "绵阳市", + "width": 102.57, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, + "actualText": "南充市", + "actualTextHeight": 15, "actualTextWidth": 37, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ - "子类别", + "南充市", ], - "originalText": "子类别", - "width": 180, + "originalText": "南充市", + "width": 102.57, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "乐山市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 128, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "1", + "乐山市", ], - "originalText": "1", - "width": 80, + "originalText": "乐山市", + "width": 102.57, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by maxLinesByField 5`] = ` +Array [ Object { - "actualText": "2", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 150, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 30, "multiLineActualTexts": Array [ - "2", + "236723672361", + "111", ], - "originalText": "2", - "width": 80, + "originalText": 236723672361111, + "width": 102.57, }, Object { - "actualText": "3", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 128, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "3", + "3877", ], - "originalText": "3", - "width": 80, + "originalText": 3877, + "width": 102.57, }, -] -`; - -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, + "actualText": "4342", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "纸张纸张纸张纸", - "张纸张", + "4342", ], - "originalText": "纸张纸张纸张纸张纸张", - "width": 103, + "originalText": 4342, + "width": 102.57, }, Object { "actualText": "-", - "actualTextHeight": 16, + "actualTextHeight": 15, "actualTextWidth": 4, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "-", ], "originalText": "-", - "width": 103, + "width": 102.57, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 96, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", + "-", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103, + "originalText": "-", + "width": 102.57, }, Object { - "actualText": "家具", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 64, + "actualText": "1723", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "1723", ], - "originalText": "家具", - "width": 206, + "originalText": 1723, + "width": 102.57, }, Object { - "actualText": "桌子", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 64, + "actualText": "1822", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "1822", ], - "originalText": "桌子", - "width": 103, + "originalText": 1822, + "width": 102.57, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, + "actualText": "1943", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", + "1943", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103, + "originalText": 1943, + "width": 102.57, }, Object { - "actualText": "沙发", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 64, + "actualText": "2330", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "沙发", + "2330", ], - "originalText": "沙发", - "width": 103, + "originalText": 2330, + "width": 102.57, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, + "actualText": "632", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", + "632", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103, + "originalText": 632, + "width": 102.57, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "7234", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具...", + "7234", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 103, + "originalText": 7234, + "width": 102.57, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 64, + "actualText": "834", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子...", + "834", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "width": 103, + "originalText": 834, + "width": 102.57, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, + "actualText": "5343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", + "5343", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103, + "originalText": 5343, + "width": 102.57, }, Object { - "actualText": "办公用品", - "actualTextHeight": 16, - "actualTextWidth": 49, - "height": 64, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 96, "multiLineActualTexts": Array [ - "办公用品", + "-", ], - "originalText": "办公用品", - "width": 206, + "originalText": "-", + "width": 102.57, }, Object { - "actualText": "笔", - "actualTextHeight": 16, - "actualTextWidth": 13, - "height": 64, + "actualText": "2451", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "笔", + "2451", ], - "originalText": "笔", - "width": 103, + "originalText": 2451, + "width": 102.57, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, + "actualText": "2244", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", + "2244", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103, + "originalText": 2244, + "width": 102.57, }, Object { - "actualText": "纸张", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 64, + "actualText": "2333", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "纸张", + "2333", ], - "originalText": "纸张", - "width": 103, + "originalText": 2333, + "width": 102.57, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, + "actualText": "2445", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", + "2445", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103, + "originalText": 2445, + "width": 102.57, }, -] -`; - -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, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, "multiLineActualTexts": Array [ - "浙江浙江浙", - "江浙江浙江", - "浙江浙江...", + "-", ], - "originalText": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江", - "width": 100, + "originalText": "-", + "width": 102.57, }, Object { - "actualText": "杭州杭州杭州杭州", - "actualTextHeight": 30, - "actualTextWidth": 98, - "height": 64, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, + "height": 30, "multiLineActualTexts": Array [ - "杭州杭州杭", - "州杭州", + "-", ], - "originalText": "杭州杭州杭州杭州", - "width": 100, + "originalText": "-", + "width": 102.57, }, Object { - "actualText": "浙江省", - "actualTextHeight": 16, - "actualTextWidth": 37, + "actualText": "-", + "actualTextHeight": 15, + "actualTextWidth": 4, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "-", ], - "originalText": "浙江省", - "width": 100, + "originalText": "-", + "width": 102.57, }, Object { - "actualText": "绍兴市", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 4, "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "-", ], - "originalText": "绍兴市", - "width": 100, + "originalText": "-", + "width": 102.57, }, Object { - "actualText": "宁波市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 96, "multiLineActualTexts": Array [ - "宁波市", + "778977897789", + "778977897789", + "7789", ], - "originalText": "宁波市", - "width": 100, + "originalText": "7789778977897789778977897789", + "width": 102.57, }, Object { - "actualText": "舟山市", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 4, "height": 30, "multiLineActualTexts": Array [ - "舟山市", + "-", ], - "originalText": "舟山市", - "width": 100, + "originalText": "-", + "width": 102.57, }, Object { - "actualText": "杭州市", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 4, "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, + "originalText": "-", + "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": "-", @@ -8979,539 +8812,615 @@ Array [ "-", ], "originalText": "-", - "width": 103, + "width": 102.57, }, Object { - "actualText": "-", + "actualText": "1304", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "-", + "1304", ], - "originalText": "-", - "width": 103, + "originalText": 1304, + "width": 102.57, }, Object { - "actualText": "-", + "actualText": "1145", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 26, "height": 30, "multiLineActualTexts": Array [ - "-", + "1145", ], - "originalText": "-", - "width": 103, + "originalText": 1145, + "width": 102.57, }, Object { - "actualText": "-", + "actualText": "1432", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "-", + "1432", ], - "originalText": "-", - "width": 103, + "originalText": 1432, + "width": 102.57, }, Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 64, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "actualText": "945", + "actualTextHeight": 15, + "actualTextWidth": 21, + "height": 30, + "multiLineActualTexts": Array [ + "945", + ], + "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, - "height": 64, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "actualText": "2335", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "2335", + ], + "originalText": 2335, + "width": 102.57, }, Object { - "actualText": "-", + "actualText": "245", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 64, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "-", + "245", ], - "originalText": "-", - "width": 103, + "originalText": 245, + "width": 102.57, }, Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, + "actualText": "2457", + "actualTextHeight": 15, + "actualTextWidth": 27, "height": 30, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "multiLineActualTexts": Array [ + "2457", + ], + "originalText": 2457, + "width": 102.57, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, + "actualText": "2458", + "actualTextHeight": 15, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "2458", ], - "originalText": 236723672361111, - "width": 103, + "originalText": 2458, + "width": 102.57, }, Object { - "actualText": "3877", + "actualText": "1354", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "3877", + "1354", ], - "originalText": 3877, - "width": 103, + "originalText": 1354, + "width": 102.57, }, Object { - "actualText": "4342", + "actualText": "1523", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "4342", + "1523", ], - "originalText": 4342, - "width": 103, + "originalText": 1523, + "width": 102.57, }, Object { - "actualText": "-", + "actualText": "1634", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "-", + "1634", ], - "originalText": "-", - "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, + "width": 102.57, }, Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 64, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, - }, - Object { - "actualText": "-", + "actualText": "4004", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 64, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "-", + "4004", ], - "originalText": "-", - "width": 103, - }, - Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 30, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "originalText": 4004, + "width": 102.57, }, Object { - "actualText": "632", + "actualText": "3077", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "632", + "3077", ], - "originalText": 632, - "width": 103, + "originalText": 3077, + "width": 102.57, }, Object { - "actualText": "7234", + "actualText": "3551", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "7234", + "3551", ], - "originalText": 7234, - "width": 103, + "originalText": 3551, + "width": 102.57, }, Object { - "actualText": "834", + "actualText": "352", "actualTextHeight": 15, "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "834", + "352", ], - "originalText": 834, - "width": 103, + "originalText": 352, + "width": 102.57, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 1`] = ` +Array [ Object { - "actualText": "5343", - "actualTextHeight": 15, - "actualTextWidth": 27, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "5343", + "序号", ], - "originalText": 5343, - "width": 103, - }, - Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 64, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 64, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "-", + "省份", ], - "originalText": "-", - "width": 103, - }, - Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 64, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "originalText": "省份", + "width": 96, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 64, + "actualText": "城市城@@@", + "actualTextHeight": 16, + "actualTextWidth": 72, + "height": 30, "multiLineActualTexts": Array [ - "-", + "城市城@@@", ], - "originalText": "-", - "width": 103, - }, - Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 30, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 96, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 16, + "actualTextWidth": 241, "height": 30, "multiLineActualTexts": Array [ - "-", + "类别类别类别类别类别类别类别类别类别类别", ], - "originalText": "-", - "width": 103, + "originalText": "类别类别类别类别类别类别类别类别类别类别", + "width": 272, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "-", + "子类别", ], - "originalText": "-", - "width": 103, + "originalText": "子类别", + "width": 272, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 2`] = ` +Array [ Object { - "actualText": "-", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 30, + "actualTextWidth": 7, + "height": 120, "multiLineActualTexts": Array [ - "-", + "1", ], - "originalText": "-", - "width": 103, + "originalText": "1", + "width": 80, }, Object { - "actualText": "-", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 4, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "-", + "2", ], - "originalText": "-", - "width": 103, - }, - Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 64, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "originalText": "2", + "width": 80, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 64, + "actualText": "3", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 120, "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", + "3", ], - "originalText": "7789778977897789778977897789", - "width": 103, - }, - Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 64, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "originalText": "3", + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 3`] = ` +Array [ Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 64, + "actualText": "家具", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "-", + "家具", ], - "originalText": "-", - "width": 103, + "originalText": "家具", + "width": 192, }, Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, + "actualText": "桌子", + "actualTextHeight": 16, + "actualTextWidth": 25, "height": 30, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "multiLineActualTexts": Array [ + "桌子", + ], + "originalText": "桌子", + "width": 96, }, Object { - "actualText": "1304", + "actualText": "数量数@@@", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 73, "height": 30, "multiLineActualTexts": Array [ - "1304", + "数量数@@@", ], - "originalText": 1304, - "width": 103, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 96, }, Object { - "actualText": "1145", + "actualText": "沙发", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "沙发", + ], + "originalText": "沙发", + "width": 96, + }, + Object { + "actualText": "数量数@@@", "actualTextHeight": 15, - "actualTextWidth": 26, + "actualTextWidth": 73, "height": 30, "multiLineActualTexts": Array [ - "1145", + "数量数@@@", ], - "originalText": 1145, - "width": 103, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "width": 96, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 4`] = ` +Array [ Object { - "actualText": "1432", + "actualText": "浙江省", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 120, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 96, + }, + Object { + "actualText": "浙江省@@@", + "actualTextHeight": 16, + "actualTextWidth": 72, + "height": 30, + "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 custom text overflow text 5`] = ` +Array [ + Object { + "actualText": "236723@@@", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 77, "height": 30, "multiLineActualTexts": Array [ - "1432", + "236723@@@", ], - "originalText": 1432, - "width": 103, + "originalText": 236723672361111, + "width": 96, }, Object { - "actualText": "945", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "945", + "3877", ], - "originalText": 945, - "width": 103, + "originalText": 3877, + "width": 96, }, Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 64, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "actualText": "4342", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "4342", + ], + "originalText": 4342, + "width": 96, }, 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": 96, }, Object { "actualText": "-", "actualTextHeight": 15, "actualTextWidth": 4, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "-", ], "originalText": "-", - "width": 103, + "width": 96, }, Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, + "actualText": "1723", + "actualTextHeight": 15, + "actualTextWidth": 27, "height": 30, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "multiLineActualTexts": Array [ + "1723", + ], + "originalText": 1723, + "width": 96, }, Object { - "actualText": "1354", + "actualText": "1822", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "1354", + "1822", ], - "originalText": 1354, - "width": 103, + "originalText": 1822, + "width": 96, }, Object { - "actualText": "1523", + "actualText": "1943", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "1523", + "1943", ], - "originalText": 1523, - "width": 103, + "originalText": 1943, + "width": 96, }, Object { - "actualText": "1634", + "actualText": "2330", "actualTextHeight": 15, "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "1634", + "2330", ], - "originalText": 1634, - "width": 103, + "originalText": 2330, + "width": 96, }, Object { - "actualText": "1343", + "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 [ - "1343", + "7234", ], - "originalText": 1343, - "width": 103, + "originalText": 7234, + "width": 96, }, Object { - "actualText": undefined, - "actualTextHeight": 0, - "actualTextWidth": 0, - "height": 64, - "multiLineActualTexts": Array [], - "originalText": undefined, - "width": 103, + "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, + "height": 30, "multiLineActualTexts": Array [ "-", ], "originalText": "-", - "width": 103, + "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, + }, + 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 two max text lines 1`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 46, + "height": 61, "multiLineActualTexts": Array [ "序号", ], @@ -9522,7 +9431,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 46, + "height": 61, "multiLineActualTexts": Array [ "省份", ], @@ -9530,11 +9439,12 @@ Array [ "width": 96, }, Object { - "actualText": "城市城市城市城市城市城...", - "actualTextHeight": 32, - "actualTextWidth": 144, - "height": 46, + "actualText": "城市城市城市城市城市城市城市城市城...", + "actualTextHeight": 48, + "actualTextWidth": 217, + "height": 61, "multiLineActualTexts": Array [ + "城市城市城市", "城市城市城市", "城市城市城...", ], @@ -9545,7 +9455,7 @@ Array [ "actualText": "类别类别类别类别类别类别类别类别类别类别", "actualTextHeight": 16, "actualTextWidth": 241, - "height": 48, + "height": 64, "multiLineActualTexts": Array [ "类别类别类别类别类别类别类别类别类别类别", ], @@ -9556,7 +9466,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 48, + "height": 64, "multiLineActualTexts": Array [ "子类别", ], @@ -9566,7 +9476,7 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 2`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 2`] = ` Array [ Object { "actualText": "1", @@ -9583,7 +9493,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 48, + "height": 64, "multiLineActualTexts": Array [ "2", ], @@ -9604,13 +9514,13 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 3`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 3`] = ` Array [ Object { "actualText": "家具", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 48, + "height": 64, "multiLineActualTexts": Array [ "家具", ], @@ -9621,7 +9531,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 48, + "height": 64, "multiLineActualTexts": Array [ "桌子", ], @@ -9629,11 +9539,12 @@ Array [ "width": 96, }, Object { - "actualText": "数量数量数量数量数量数...", - "actualTextHeight": 30, - "actualTextWidth": 144, - "height": 46, + "actualText": "数量数量数量数量数量数量数量数量数...", + "actualTextHeight": 45, + "actualTextWidth": 217, + "height": 61, "multiLineActualTexts": Array [ + "数量数量数量", "数量数量数量", "数量数量数...", ], @@ -9644,7 +9555,7 @@ Array [ "actualText": "沙发", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 48, + "height": 64, "multiLineActualTexts": Array [ "沙发", ], @@ -9652,11 +9563,12 @@ Array [ "width": 96, }, Object { - "actualText": "数量数量数量数量数量数...", - "actualTextHeight": 30, - "actualTextWidth": 144, - "height": 46, + "actualText": "数量数量数量数量数量数量数量数量数...", + "actualTextHeight": 45, + "actualTextWidth": 217, + "height": 61, "multiLineActualTexts": Array [ + "数量数量数量", "数量数量数量", "数量数量数...", ], @@ -9666,7 +9578,7 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 4`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 4`] = ` Array [ Object { "actualText": "浙江省", @@ -9680,11 +9592,12 @@ Array [ "width": 96, }, Object { - "actualText": "浙江省浙江省浙江省浙江...", - "actualTextHeight": 32, - "actualTextWidth": 144, - "height": 48, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江...", + "actualTextHeight": 48, + "actualTextWidth": 217, + "height": 64, "multiLineActualTexts": Array [ + "浙江省浙江省", "浙江省浙江省", "浙江省浙江...", ], @@ -9705,7 +9618,7 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 5`] = ` +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 5`] = ` Array [ Object { "actualText": "236723672361111", @@ -9756,7 +9669,7 @@ Array [ "actualText": "-", "actualTextHeight": 15, "actualTextWidth": 4, - "height": 48, + "height": 64, "multiLineActualTexts": Array [ "-", ], @@ -9774,28 +9687,6 @@ 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": "632", "actualTextHeight": 15, @@ -9844,7 +9735,7 @@ Array [ "actualText": "-", "actualTextHeight": 15, "actualTextWidth": 4, - "height": 48, + "height": 64, "multiLineActualTexts": Array [ "-", ], @@ -9862,38 +9753,16 @@ 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, - }, ] `; -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 three max text lines for tree mode 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 76, + "height": 61, "multiLineActualTexts": Array [ "序号", ], @@ -9901,62 +9770,51 @@ Array [ "width": 80, }, Object { - "actualText": "省份", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 76, - "multiLineActualTexts": Array [ - "省份", - ], - "originalText": "省份", - "width": 102.57, - }, - Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "actualTextHeight": 64, - "actualTextWidth": 292, - "height": 76, + "actualText": "省份/城市城市城市城市城市城市...", + "actualTextHeight": 48, + "actualTextWidth": 184, + "height": 61, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市城", - "市城市", + "省份/城市城", + "市城市城市", + "城市城市...", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "width": 102.57, + "originalText": "省份/城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 100, }, Object { "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 16, - "actualTextWidth": 241, - "height": 80, + "actualTextHeight": 32, + "actualTextWidth": 242, + "height": 64, "multiLineActualTexts": Array [ - "类别类别类别类别类别类别类别类别类别类别", + "类别类别类别类别类别类别", + "类别类别类别类别", ], "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 285.14, + "width": 180, }, Object { "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 96, + "height": 64, "multiLineActualTexts": Array [ "子类别", ], "originalText": "子类别", - "width": 285.14, + "width": 180, }, ] `; -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 three max text lines for tree mode 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 120, + "height": 128, "multiLineActualTexts": Array [ "1", ], @@ -9967,7 +9825,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 96, + "height": 150, "multiLineActualTexts": Array [ "2", ], @@ -9978,7 +9836,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 120, + "height": 128, "multiLineActualTexts": Array [ "3", ], @@ -9988,188 +9846,241 @@ 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 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": 80, + "height": 64, "multiLineActualTexts": Array [ "家具", ], "originalText": "家具", - "width": 205.14, + "width": 206, }, Object { "actualText": "桌子", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 96, + "height": 64, "multiLineActualTexts": Array [ "桌子", ], "originalText": "桌子", - "width": 102.57, + "width": 103, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 60, - "actualTextWidth": 268, - "height": 76, + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, "multiLineActualTexts": Array [ "数量数量数量数", "量数量数量数量", - "数量数量数量数", - "量", + "数量数量数量...", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 102.57, + "width": 103, }, Object { "actualText": "沙发", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 96, + "height": 64, "multiLineActualTexts": Array [ "沙发", ], "originalText": "沙发", - "width": 102.57, + "width": 103, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 60, - "actualTextWidth": 268, - "height": 76, + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, "multiLineActualTexts": Array [ "数量数量数量数", "量数量数量数量", - "数量数量数量数", - "量", + "数量数量数量...", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 102.57, + "width": 103, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "actualTextHeight": 64, - "actualTextWidth": 340, - "height": 80, + "actualText": "家具家具家具家具家具家具家具家具家具家具...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, "multiLineActualTexts": Array [ "家具家具家具家", "具家具家具家具", - "家具家具家具家", - "具家具家具家具", + "家具家具家具...", ], "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 102.57, + "width": 103, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "actualTextHeight": 80, - "actualTextWidth": 365, - "height": 96, - "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, + "multiLineActualTexts": Array [ "桌子桌子桌子桌", "子桌子桌子桌子", - "桌子", + "桌子桌子桌子...", ], "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "width": 102.57, + "width": 103, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 60, - "actualTextWidth": 268, - "height": 76, + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, "multiLineActualTexts": Array [ "数量数量数量数", "量数量数量数量", - "数量数量数量数", - "量", + "数量数量数量...", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 102.57, + "width": 103, }, Object { "actualText": "办公用品", "actualTextHeight": 16, "actualTextWidth": 49, - "height": 80, + "height": 64, "multiLineActualTexts": Array [ "办公用品", ], "originalText": "办公用品", - "width": 205.14, + "width": 206, }, Object { "actualText": "笔", "actualTextHeight": 16, "actualTextWidth": 13, - "height": 96, + "height": 64, "multiLineActualTexts": Array [ "笔", ], "originalText": "笔", - "width": 102.57, + "width": 103, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 60, - "actualTextWidth": 268, - "height": 76, + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, "multiLineActualTexts": Array [ "数量数量数量数", "量数量数量数量", - "数量数量数量数", - "量", + "数量数量数量...", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 102.57, + "width": 103, }, Object { "actualText": "纸张", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 96, + "height": 64, "multiLineActualTexts": Array [ "纸张", ], "originalText": "纸张", - "width": 102.57, + "width": 103, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 60, - "actualTextWidth": 268, - "height": 76, + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, "multiLineActualTexts": Array [ "数量数量数量数", "量数量数量数量", - "数量数量数量数", - "量", + "数量数量数量...", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 102.57, + "width": 103, }, ] `; -exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 4`] = ` +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": 120, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], "originalText": "浙江省", - "width": 102.57, + "width": 100, }, Object { "actualText": "绍兴市", @@ -10180,7 +10091,7 @@ Array [ "绍兴市", ], "originalText": "绍兴市", - "width": 102.57, + "width": 100, }, Object { "actualText": "宁波市", @@ -10191,7 +10102,7 @@ Array [ "宁波市", ], "originalText": "宁波市", - "width": 102.57, + "width": 100, }, Object { "actualText": "舟山市", @@ -10202,7 +10113,7 @@ Array [ "舟山市", ], "originalText": "舟山市", - "width": 102.57, + "width": 100, }, Object { "actualText": "杭州市", @@ -10213,131 +10124,100 @@ Array [ "杭州市", ], "originalText": "杭州市", - "width": 102.57, + "width": 100, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "actualTextHeight": 80, - "actualTextWidth": 365, - "height": 96, + "actualText": "浙江省浙江省浙江省浙江省浙江...", + "actualTextHeight": 48, + "actualTextWidth": 181, + "height": 64, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江省", - "浙江省浙江省浙", - "江省", + "浙江省浙江", + "省浙江省浙", + "江省浙江...", ], "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 102.57, + "width": 100, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "actualTextHeight": 75, - "actualTextWidth": 365, - "height": 96, + "actualText": "杭州市杭州市杭州市杭州市杭州...", + "actualTextHeight": 45, + "actualTextWidth": 181, + "height": 64, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭州", - "市杭州市杭州市", - "杭州市杭州市杭", - "州市", + "杭州市杭州", + "市杭州市杭", + "州市杭州...", ], "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "width": 102.57, - }, - Object { - "actualText": "四川省", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 120, - "multiLineActualTexts": Array [ - "四川省", - ], - "originalText": "四川省", - "width": 102.57, + "width": 100, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 5`] = ` +Array [ Object { - "actualText": "成都市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, - "multiLineActualTexts": Array [ - "成都市", - ], - "originalText": "成都市", - "width": 102.57, + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, + "height": 64, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, }, Object { - "actualText": "绵阳市", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 4, + "height": 64, "multiLineActualTexts": Array [ - "绵阳市", + "-", ], - "originalText": "绵阳市", - "width": 102.57, + "originalText": "-", + "width": 103, }, Object { - "actualText": "南充市", - "actualTextHeight": 15, - "actualTextWidth": 37, + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, "height": 30, - "multiLineActualTexts": Array [ - "南充市", - ], - "originalText": "南充市", - "width": 102.57, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, }, Object { - "actualText": "乐山市", + "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, + "actualTextWidth": 4, "height": 30, "multiLineActualTexts": Array [ - "236723672361", - "111", + "-", ], - "originalText": 236723672361111, - "width": 102.57, + "originalText": "-", + "width": 103, }, Object { - "actualText": "3877", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 4, "height": 30, "multiLineActualTexts": Array [ - "3877", + "-", ], - "originalText": 3877, - "width": 102.57, + "originalText": "-", + "width": 103, }, Object { - "actualText": "4342", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 4, "height": 30, "multiLineActualTexts": Array [ - "4342", + "-", ], - "originalText": 4342, - "width": 102.57, + "originalText": "-", + "width": 103, }, Object { "actualText": "-", @@ -10348,481 +10228,4099 @@ Array [ "-", ], "originalText": "-", - "width": 102.57, + "width": 103, + }, + Object { + "actualText": undefined, + "actualTextHeight": 0, + "actualTextWidth": 0, + "height": 64, + "multiLineActualTexts": Array [], + "originalText": undefined, + "width": 103, }, Object { "actualText": "-", "actualTextHeight": 15, "actualTextWidth": 4, - "height": 96, + "height": 64, "multiLineActualTexts": Array [ "-", ], "originalText": "-", - "width": 102.57, + "width": 103, }, Object { - "actualText": "1723", + "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 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 [ - "1723", + "5343", ], - "originalText": 1723, - "width": 102.57, + "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": "1822", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, "multiLineActualTexts": Array [ - "1822", + "序号", ], - "originalText": 1822, - "width": 102.57, + "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": "1943", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 7, + "height": 300, "multiLineActualTexts": Array [ - "1943", + "1", ], - "originalText": 1943, - "width": 102.57, + "originalText": 1, + "width": 80, }, Object { - "actualText": "2330", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 7, + "height": 76, "multiLineActualTexts": Array [ - "2330", + "2", ], - "originalText": 2330, - "width": 102.57, + "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": "632", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, "multiLineActualTexts": Array [ - "632", + "序号", ], - "originalText": 632, - "width": 102.57, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "7234", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 80, "multiLineActualTexts": Array [ - "7234", + "省份", ], - "originalText": 7234, - "width": 102.57, + "originalText": "省份", + "width": 103.8, }, Object { - "actualText": "834", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 64, + "actualTextWidth": 292, + "height": 80, "multiLineActualTexts": Array [ - "834", + "城市城市城市城", + "市城市城市城市", + "城市城市城市城", + "市城市", ], - "originalText": 834, - "width": 102.57, + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 103.8, }, Object { - "actualText": "5343", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 80, "multiLineActualTexts": Array [ - "5343", + "类别类别类别类", + "别类别类别类别", + "类别类别类别", ], - "originalText": 5343, - "width": 102.57, + "originalText": "类别类别类别类别类别类别类别类别类别类别", + "width": 103.8, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 96, + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 80, "multiLineActualTexts": Array [ - "-", + "子类别", ], - "originalText": "-", - "width": 102.57, + "originalText": "子类别", + "width": 103.8, }, Object { - "actualText": "2451", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 64, + "actualTextWidth": 268, + "height": 80, "multiLineActualTexts": Array [ - "2451", + "数量数量数量数", + "量数量数量数量", + "数量数量数量数", + "量", ], - "originalText": 2451, - "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 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": "2244", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 7, + "height": 300, "multiLineActualTexts": Array [ - "2244", + "1", ], - "originalText": 2244, - "width": 102.57, + "originalText": 1, + "width": 80, }, Object { - "actualText": "2333", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 7, + "height": 76, "multiLineActualTexts": Array [ - "2333", + "2", ], - "originalText": 2333, - "width": 102.57, + "originalText": 2, + "width": 80, }, Object { - "actualText": "2445", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 37, + "height": 300, "multiLineActualTexts": Array [ - "2445", + "浙江省", ], - "originalText": 2445, - "width": 102.57, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 30, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, "multiLineActualTexts": Array [ - "-", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江省", + "浙江省浙江省...", ], - "originalText": "-", - "width": 102.57, + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 103.8, }, Object { - "actualText": "-", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 30, + "actualTextWidth": 37, + "height": 300, "multiLineActualTexts": Array [ - "-", + "绍兴市", ], - "originalText": "-", - "width": 102.57, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 30, + "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, "multiLineActualTexts": Array [ - "-", + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州市", + "杭州市杭州市...", ], - "originalText": "-", - "width": 102.57, + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 103.8, }, Object { - "actualText": "-", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 30, + "actualTextWidth": 25, + "height": 300, "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": 300, "multiLineActualTexts": Array [ - "-", + "桌子", ], - "originalText": "-", - "width": 102.57, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 30, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, "multiLineActualTexts": Array [ - "-", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子桌", + "子桌子桌子桌...", ], - "originalText": "-", - "width": 102.57, + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 103.8, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 30, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 300, "multiLineActualTexts": Array [ - "-", + "2367236723611", + "11", ], - "originalText": "-", - "width": 102.57, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 30, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 76, "multiLineActualTexts": Array [ - "-", + "7789778977897", + "7897789778977", + "89", ], - "originalText": "-", - "width": 102.57, + "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": "1304", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, "multiLineActualTexts": Array [ - "1304", + "序号", ], - "originalText": 1304, - "width": 102.57, + "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": "1145", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 26, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "1145", + "1", ], - "originalText": 1145, - "width": 102.57, + "originalText": 1, + "width": 80, }, Object { - "actualText": "1432", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "1432", + "2", ], - "originalText": 1432, - "width": 102.57, + "originalText": 2, + "width": 80, }, Object { - "actualText": "945", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualTextWidth": 7, + "height": 61, "multiLineActualTexts": Array [ - "945", + "3", ], - "originalText": 945, - "width": 102.57, + "originalText": 3, + "width": 80, }, Object { - "actualText": "-", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 96, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "-", + "4", ], - "originalText": "-", - "width": 102.57, + "originalText": 4, + "width": 80, }, Object { - "actualText": "2335", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "2335", + "5", ], - "originalText": 2335, - "width": 102.57, + "originalText": 5, + "width": 80, }, Object { - "actualText": "245", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "245", + "6", ], - "originalText": 245, - "width": 102.57, + "originalText": 6, + "width": 80, }, Object { - "actualText": "2457", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "2457", + "7", ], - "originalText": 2457, - "width": 102.57, + "originalText": 7, + "width": 80, }, Object { - "actualText": "2458", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "2458", + "8", ], - "originalText": 2458, - "width": 102.57, + "originalText": 8, + "width": 80, }, Object { - "actualText": "1354", + "actualText": "9", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "1354", + "9", ], - "originalText": 1354, - "width": 102.57, + "originalText": 9, + "width": 80, }, Object { - "actualText": "1523", + "actualText": "10", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "1523", + "10", ], - "originalText": 1523, - "width": 102.57, + "originalText": 10, + "width": 80, }, Object { - "actualText": "1634", + "actualText": "11", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 13, "height": 30, "multiLineActualTexts": Array [ - "1634", + "11", ], - "originalText": 1634, - "width": 102.57, + "originalText": 11, + "width": 80, }, Object { - "actualText": "1343", + "actualText": "12", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "1343", + "12", ], - "originalText": 1343, - "width": 102.57, + "originalText": 12, + "width": 80, }, Object { - "actualText": "-", + "actualText": "13", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 96, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "-", + "13", ], - "originalText": "-", - "width": 102.57, + "originalText": 13, + "width": 80, }, Object { - "actualText": "4004", + "actualText": "14", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "4004", + "14", ], - "originalText": 4004, - "width": 102.57, + "originalText": 14, + "width": 80, }, Object { - "actualText": "3077", + "actualText": "15", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "3077", + "15", ], - "originalText": 3077, - "width": 102.57, + "originalText": 15, + "width": 80, }, Object { - "actualText": "3551", + "actualText": "16", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "3551", + "16", ], - "originalText": 3551, - "width": 102.57, + "originalText": 16, + "width": 80, }, Object { - "actualText": "352", + "actualText": "17", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 14, "height": 30, "multiLineActualTexts": Array [ - "352", + "17", ], - "originalText": 352, - "width": 102.57, + "originalText": 17, + "width": 80, }, ] `; -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 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": 143.8, + }, ] `; -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 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", @@ -10839,7 +14337,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 76, + "height": 30, "multiLineActualTexts": Array [ "2", ], @@ -10850,7 +14348,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 61, "multiLineActualTexts": Array [ "3", ], @@ -10912,210 +14410,239 @@ Array [ "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, + "actualText": "9", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "9", ], - "originalText": "序号", + "originalText": 9, "width": 80, }, Object { - "actualText": "省份省份省份省份省份省份省份省份省份省份省份省份省份省...", - "actualTextHeight": 64, - "actualTextWidth": 338, - "height": 80, + "actualText": "10", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "省份省份省份省", - "份省份省份省份", - "省份省份省份省", - "份省份省份省...", + "10", ], - "originalText": "省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份", - "width": 103.8, + "originalText": 10, + "width": 80, }, Object { - "actualText": "city", - "actualTextHeight": 16, - "actualTextWidth": 21, - "height": 80, + "actualText": "11", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "city", + "11", ], - "originalText": "city", - "width": 103.8, + "originalText": 11, + "width": 80, }, Object { - "actualText": "type", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 80, + "actualText": "12", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "type", + "12", ], - "originalText": "type", - "width": 103.8, + "originalText": 12, + "width": 80, }, Object { - "actualText": "sub_type", - "actualTextHeight": 16, - "actualTextWidth": 53, - "height": 80, + "actualText": "13", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "sub_type", + "13", ], - "originalText": "sub_type", - "width": 103.8, + "originalText": 13, + "width": 80, }, Object { - "actualText": "number", - "actualTextHeight": 16, - "actualTextWidth": 45, - "height": 80, + "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 [ - "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, - "height": 46, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "1", + "浙江省", ], - "originalText": 1, - "width": 80, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "2", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 76, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "actualTextHeight": 45, + "actualTextWidth": 363, + "height": 61, "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, }, 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": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江省", - "浙江省浙江省...", + "浙江省", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 103.8, + "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": "浙江省", @@ -11126,7 +14653,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "浙江省", @@ -11137,7 +14664,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "浙江省", @@ -11148,7 +14675,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "浙江省", @@ -11159,7 +14686,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "浙江省", @@ -11170,43 +14697,141 @@ 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": 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": 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": 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, + "width": 143.8, }, Object { "actualText": "宁波市", @@ -11217,7 +14842,7 @@ Array [ "宁波市", ], "originalText": "宁波市", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "舟山市", @@ -11228,7 +14853,7 @@ Array [ "舟山市", ], "originalText": "舟山市", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "杭州市", @@ -11239,7 +14864,7 @@ Array [ "杭州市", ], "originalText": "杭州市", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "绍兴市", @@ -11250,7 +14875,7 @@ Array [ "绍兴市", ], "originalText": "绍兴市", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "宁波市", @@ -11261,43 +14886,53 @@ Array [ "宁波市", ], "originalText": "宁波市", - "width": 103.8, + "width": 143.8, + }, + Object { + "actualText": "纸张纸张纸张纸张纸张", + "actualTextHeight": 15, + "actualTextWidth": 121, + "height": 46, + "multiLineActualTexts": Array [ + "纸张纸张纸张纸张纸张", + ], + "originalText": "纸张纸张纸张纸张纸张", + "width": 143.8, }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "家具", ], "originalText": "家具", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "actualTextHeight": 60, - "actualTextWidth": 340, - "height": 76, + "actualTextHeight": 45, + "actualTextWidth": 339, + "height": 61, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具家", - "具家具家具家具", + "家具家具家具家具家具", + "家具家具家具家具家具", + "家具家具家具家具", ], "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "家具", ], "originalText": "家具", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "家具", @@ -11308,7 +14943,7 @@ Array [ "家具", ], "originalText": "家具", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "家具", @@ -11319,7 +14954,7 @@ Array [ "家具", ], "originalText": "家具", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "家具", @@ -11330,7 +14965,7 @@ Array [ "家具", ], "originalText": "家具", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "家具", @@ -11341,7 +14976,7 @@ Array [ "家具", ], "originalText": "家具", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "家具", @@ -11352,1064 +14987,896 @@ 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, + "width": 143.8, }, Object { - "actualText": "沙发", + "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, + "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, - }, -] -`; - -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 [ + "originalText": "办公用品", + "width": 143.8, + }, Object { - "actualText": "1", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "1", + "办公用品", ], - "originalText": 1, - "width": 80, + "originalText": "办公用品", + "width": 143.8, }, Object { - "actualText": "2", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 76, + "actualTextWidth": 49, + "height": 30, "multiLineActualTexts": Array [ - "2", + "办公用品", ], - "originalText": 2, - "width": 80, + "originalText": "办公用品", + "width": 143.8, }, Object { - "actualText": "3", + "actualText": "-", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 4, "height": 46, "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": 45, + "actualTextWidth": 363, + "height": 61, + "multiLineActualTexts": Array [ + "桌子桌子桌子桌子桌子", + "桌子桌子桌子桌子桌子", + "桌子桌子桌子桌子桌子", + ], + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 143.8, + }, + Object { + "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, }, -] -`; - -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, + "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": 25, + "height": 30, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市城", - "市城市", + "沙发", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "width": 103.8, + "originalText": "沙发", + "width": 143.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 80, + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "笔", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 103.8, + "originalText": "笔", + "width": 143.8, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 80, + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "子类别", + "笔", ], - "originalText": "子类别", - "width": 103.8, + "originalText": "笔", + "width": 143.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 64, - "actualTextWidth": 268, - "height": 80, + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "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 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": "笔", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "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, }, Object { - "actualText": "3", + "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, - "height": 30, + "actualTextWidth": 4, + "height": 46, "multiLineActualTexts": Array [ - "5", + "-", ], - "originalText": 5, - "width": 80, + "originalText": "-", + "width": 143.8, }, Object { - "actualText": "6", + "actualText": "236723672361111", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 98, "height": 30, "multiLineActualTexts": Array [ - "6", + "236723672361111", ], - "originalText": 6, - "width": 80, + "originalText": 236723672361111, + "width": 143.8, }, Object { - "actualText": "7", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 30, + "actualTextWidth": 188, + "height": 61, "multiLineActualTexts": Array [ - "7", + "7789778977897789778", + "977897789", ], - "originalText": 7, - "width": 80, + "originalText": "7789778977897789778977897789", + "width": 143.8, }, Object { - "actualText": "8", + "actualText": "236723672361111", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 98, "height": 30, "multiLineActualTexts": Array [ - "8", + "236723672361111", ], - "originalText": 8, - "width": 80, + "originalText": 236723672361111, + "width": 143.8, }, Object { - "actualText": "浙江省", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "3877", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 3877, + "width": 143.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "actualText": "4342", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江省", - "浙江省浙江省...", + "4342", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 103.8, + "originalText": 4342, + "width": 143.8, }, Object { - "actualText": "浙江省", + "actualText": "5343", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "5343", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 5343, + "width": 143.8, }, Object { - "actualText": "浙江省", + "actualText": "632", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "632", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 632, + "width": 143.8, }, Object { - "actualText": "浙江省", + "actualText": "7234", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "7234", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 7234, + "width": 143.8, }, Object { - "actualText": "浙江省", + "actualText": "834", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "834", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 834, + "width": 143.8, }, Object { - "actualText": "浙江省", + "actualText": "945", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "945", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 945, + "width": 143.8, }, Object { - "actualText": "浙江省", + "actualText": "1304", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "1304", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 1304, + "width": 143.8, }, Object { - "actualText": "绍兴市", + "actualText": "1145", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 26, + "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "1145", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": 1145, + "width": 143.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "actualText": "1432", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭州", - "市杭州市杭州市", - "杭州市杭州市...", + "1432", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "width": 103.8, + "originalText": 1432, + "width": 143.8, }, Object { - "actualText": "绍兴市", + "actualText": "1343", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "1343", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": 1343, + "width": 143.8, }, Object { - "actualText": "宁波市", + "actualText": "1354", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "宁波市", + "1354", ], - "originalText": "宁波市", - "width": 103.8, + "originalText": 1354, + "width": 143.8, }, Object { - "actualText": "舟山市", + "actualText": "1523", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "舟山市", + "1523", ], - "originalText": "舟山市", - "width": 103.8, + "originalText": 1523, + "width": 143.8, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 1`] = ` +Array [ Object { - "actualText": "杭州市", - "actualTextHeight": 15, - "actualTextWidth": 37, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "杭州市", + "序号", ], - "originalText": "杭州市", - "width": 103.8, + "originalText": "序号", + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 2`] = ` +Array [ Object { - "actualText": "绍兴市", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 37, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "1", ], - "originalText": "绍兴市", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "宁波市", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 37, + "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": 30, "multiLineActualTexts": Array [ - "家具", + "3", ], - "originalText": "家具", - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "actualTextHeight": 60, - "actualTextWidth": 340, - "height": 76, - "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具家", - "具家具家具家具", + "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": "桌子", + "actualText": "11", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "11", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 11, + "width": 80, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "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": 46, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "13", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 13, + "width": 80, }, +] +`; + +exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 3`] = ` +Array [ Object { - "actualText": "桌子", - "actualTextHeight": 15, + "actualText": "序号", + "actualTextHeight": 16, "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "序号", ], - "originalText": "桌子", - "width": 103.8, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "桌子", - "actualTextHeight": 15, + "actualText": "省份", + "actualTextHeight": 16, "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "桌子", + "省份", ], - "originalText": "桌子", + "originalText": "省份", "width": 103.8, }, Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, + "actualText": "城市城市城市...", + "actualTextHeight": 16, + "actualTextWidth": 83, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "城市城市城市...", ], - "originalText": "沙发", + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, + "actualText": "类别类别类别...", + "actualTextHeight": 16, + "actualTextWidth": 83, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "类别类别类别...", ], - "originalText": "沙发", + "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, }, Object { - "actualText": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "沙发", + "子类别", ], - "originalText": "沙发", + "originalText": "子类别", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "数量数量数量...", + "actualTextHeight": 16, + "actualTextWidth": 83, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "数量数量数量...", ], - "originalText": 236723672361111, + "originalText": "数量数量数量数量数量数量数量数量数量数量数量", "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 default render one line text 5`] = ` +Array [ Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 76, + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", + "1", ], - "originalText": "7789778977897789778977897789", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "2", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "2", ], - "originalText": 236723672361111, - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "3877", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "3877", + "3", ], - "originalText": 3877, - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "4342", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "4342", + "4", ], - "originalText": 4342, - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "5343", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "5343", + "5", ], - "originalText": 5343, - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "632", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "632", + "6", ], - "originalText": 632, - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "7234", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "7234", + "7", ], - "originalText": 7234, - "width": 103.8, + "originalText": 7, + "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 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 80, + "actualText": "8", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "8", ], - "originalText": "序号", + "originalText": 8, "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", + "actualText": "9", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 360, + "height": 30, "multiLineActualTexts": Array [ - "1", + "9", ], - "originalText": 1, + "originalText": 9, "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, + "actualText": "10", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "10", ], - "originalText": "序号", + "originalText": 10, "width": 80, }, Object { - "actualText": "省份", - "actualTextHeight": 16, - "actualTextWidth": 25, - "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": 292, - "height": 80, + "actualText": "12", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市城", - "市城市", + "12", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "width": 103.8, + "originalText": 12, + "width": 80, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 80, + "actualText": "13", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "13", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 103.8, + "originalText": 13, + "width": 80, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, + "actualText": "浙江省", + "actualTextHeight": 15, "actualTextWidth": 37, - "height": 80, + "height": 30, "multiLineActualTexts": Array [ - "子类别", + "浙江省", ], - "originalText": "子类别", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 64, - "actualTextWidth": 268, - "height": 80, + "actualText": "浙江省浙江省...", + "actualTextHeight": 15, + "actualTextWidth": 83, + "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": 37, + "height": 30, "multiLineActualTexts": Array [ - "1", + "浙江省", ], - "originalText": 1, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 360, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -12417,1205 +15884,1114 @@ Array [ "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 360, + "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "浙江省", ], - "originalText": "绍兴市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 360, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "浙江省", ], - "originalText": "家具", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 360, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "浙江省", ], - "originalText": "桌子", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 360, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "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, - "actualTextWidth": 25, - "height": 80, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "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": 37, + "height": 30, "multiLineActualTexts": Array [ - "1", + "浙江省", ], - "originalText": 1, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 76, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "2", + "浙江省", ], - "originalText": 2, - "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 3`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 80, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "浙江省", ], - "originalText": "序号", - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "省份", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 80, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "省份", + "浙江省", ], - "originalText": "省份", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "actualTextHeight": 64, - "actualTextWidth": 292, - "height": 80, + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市城", - "市城市", + "绍兴市", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 80, + "actualText": "杭州市杭州市...", + "actualTextHeight": 15, + "actualTextWidth": 83, + "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "杭州市杭州市...", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", "width": 103.8, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, + "actualText": "绍兴市", + "actualTextHeight": 15, "actualTextWidth": 37, - "height": 80, + "height": 30, "multiLineActualTexts": Array [ - "子类别", + "绍兴市", ], - "originalText": "子类别", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 64, - "actualTextWidth": 268, - "height": 80, + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "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 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": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 300, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "1", + "舟山市", ], - "originalText": 1, - "width": 80, + "originalText": "舟山市", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 76, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "2", + "杭州市", ], - "originalText": 2, - "width": 80, + "originalText": "杭州市", + "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 300, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "绍兴市", ], - "originalText": "浙江省", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江省", - "浙江省浙江省...", + "宁波市", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "舟山市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 300, + "height": 30, "multiLineActualTexts": Array [ - "绍兴市", + "舟山市", ], - "originalText": "绍兴市", + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭州", - "市杭州市杭州市", - "杭州市杭州市...", + "杭州市", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "originalText": "杭州市", "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 300, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "绍兴市", ], - "originalText": "家具", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "actualTextHeight": 60, - "actualTextWidth": 340, - "height": 76, + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具家", - "具家具家具家具", + "宁波市", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 300, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "舟山市", ], - "originalText": "桌子", + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子桌", - "子桌子桌子桌...", + "家具", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 300, + "actualText": "家具家具家具...", + "actualTextHeight": 15, + "actualTextWidth": 83, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "家具家具家具...", ], - "originalText": 236723672361111, + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", "width": 103.8, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 76, - "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, + "multiLineActualTexts": Array [ + "家具", ], - "originalText": "7789778977897789778977897789", + "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 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, + "actualText": "家具", + "actualTextHeight": 15, "actualTextWidth": 25, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "家具", ], - "originalText": "序号", - "width": 80, + "originalText": "家具", + "width": 103.8, }, -] -`; - -exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "1", + "家具", ], - "originalText": 1, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "2", + "家具", ], - "originalText": 2, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 61, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "3", + "家具", ], - "originalText": 3, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 25, "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": 49, "height": 30, "multiLineActualTexts": Array [ - "6", + "办公用品", ], - "originalText": 6, - "width": 80, + "originalText": "办公用品", + "width": 103.8, }, Object { - "actualText": "7", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 49, "height": 30, "multiLineActualTexts": Array [ - "7", + "办公用品", ], - "originalText": 7, - "width": 80, + "originalText": "办公用品", + "width": 103.8, }, Object { - "actualText": "8", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 49, "height": 30, "multiLineActualTexts": Array [ - "8", + "办公用品", ], - "originalText": 8, - "width": 80, + "originalText": "办公用品", + "width": 103.8, }, Object { - "actualText": "9", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 49, "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", + "actualText": "桌子桌子桌子...", "actualTextHeight": 15, - "actualTextWidth": 13, + "actualTextWidth": 83, "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, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "16", + "沙发", ], - "originalText": 16, - "width": 80, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "17", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "17", + "沙发", ], - "originalText": 17, - "width": 80, + "originalText": "沙发", + "width": 103.8, }, -] -`; - -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, + "actualText": "沙发", + "actualTextHeight": 15, "actualTextWidth": 25, - "height": 64, + "height": 30, + "multiLineActualTexts": Array [ + "沙发", + ], + "originalText": "沙发", + "width": 103.8, + }, + Object { + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "序号", + "笔", ], - "originalText": "序号", - "width": 80, + "originalText": "笔", + "width": 103.8, }, Object { - "actualText": "省份", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 64, + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "省份", + "笔", ], - "originalText": "省份", - "width": 143.8, + "originalText": "笔", + "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "actualTextHeight": 48, - "actualTextWidth": 291, - "height": 64, + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "城市城市城市城市城市", - "城市城市城市城市城市", - "城市城市", + "笔", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "width": 143.8, + "originalText": "笔", + "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 32, - "actualTextWidth": 242, - "height": 64, + "actualText": "笔", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类别类别", - "类别类别类别类别类别", + "笔", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 143.8, + "originalText": "笔", + "width": 103.8, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 64, + "actualText": "23672367236...", + "actualTextHeight": 15, + "actualTextWidth": 84, + "height": 30, "multiLineActualTexts": Array [ - "子类别", + "23672367236...", ], - "originalText": "子类别", - "width": 143.8, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 48, - "actualTextWidth": 267, - "height": 64, + "actualText": "77897789778...", + "actualTextHeight": 15, + "actualTextWidth": 84, + "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数量数量", - "数量数量数量数量数量", - "数量", + "77897789778...", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 143.8, + "originalText": "7789778977897789778977897789", + "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 calc correctly row cell height if actual text lines is difference 5`] = ` -Array [ Object { - "actualText": "1", + "actualText": "23672367236...", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 84, + "height": 30, "multiLineActualTexts": Array [ - "1", + "23672367236...", ], - "originalText": 1, - "width": 80, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "2", + "3877", ], - "originalText": 2, - "width": 80, + "originalText": 3877, + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "4342", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 61, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "3", + "4342", ], - "originalText": 3, - "width": 80, + "originalText": 4342, + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "5343", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "4", + "5343", ], - "originalText": 4, - "width": 80, + "originalText": 5343, + "width": 103.8, }, Object { - "actualText": "5", + "actualText": "632", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "5", + "632", ], - "originalText": 5, - "width": 80, + "originalText": 632, + "width": 103.8, }, Object { - "actualText": "6", + "actualText": "7234", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "6", + "7234", ], - "originalText": 6, - "width": 80, + "originalText": 7234, + "width": 103.8, }, Object { - "actualText": "7", + "actualText": "834", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "7", + "834", ], - "originalText": 7, - "width": 80, + "originalText": 834, + "width": 103.8, }, Object { - "actualText": "8", + "actualText": "945", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "8", + "945", ], - "originalText": 8, - "width": 80, + "originalText": 945, + "width": 103.8, }, Object { - "actualText": "9", + "actualText": "1304", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "9", + "1304", ], - "originalText": 9, - "width": 80, + "originalText": 1304, + "width": 103.8, }, Object { - "actualText": "10", + "actualText": "1145", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 26, "height": 30, "multiLineActualTexts": Array [ - "10", + "1145", ], - "originalText": 10, - "width": 80, + "originalText": 1145, + "width": 103.8, }, Object { - "actualText": "11", + "actualText": "1432", "actualTextHeight": 15, - "actualTextWidth": 13, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "11", + "1432", ], - "originalText": 11, + "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`] = ` +Array [ + Object { + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, + "multiLineActualTexts": Array [ + "序号", + ], + "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.height 2`] = ` +Array [ Object { - "actualText": "12", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "12", + "1", ], - "originalText": 12, + "originalText": 1, "width": 80, }, Object { - "actualText": "13", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, + "actualTextWidth": 7, + "height": 61, "multiLineActualTexts": Array [ - "13", + "2", ], - "originalText": 13, + "originalText": 2, "width": 80, }, Object { - "actualText": "14", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "14", + "3", ], - "originalText": 14, + "originalText": 3, "width": 80, }, Object { - "actualText": "15", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "15", + "4", ], - "originalText": 15, + "originalText": 4, "width": 80, }, Object { - "actualText": "16", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "16", + "5", ], - "originalText": 16, + "originalText": 5, "width": 80, }, Object { - "actualText": "17", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "17", + "6", ], - "originalText": 17, + "originalText": 6, "width": 80, }, Object { - "actualText": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江", - "actualTextHeight": 30, - "actualTextWidth": 242, - "height": 46, + "actualText": "7", + "actualTextHeight": 15, + "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": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "actualTextHeight": 45, - "actualTextWidth": 363, - "height": 61, + "actualText": "9", + "actualTextHeight": 15, + "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.height 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.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.height 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": 37, - "height": 30, + "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": "杭州杭州杭州杭州", - "actualTextHeight": 15, - "actualTextWidth": 97, - "height": 46, + "actualText": "9", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "杭州杭州杭州杭州", + "9", ], - "originalText": "杭州杭州杭州杭州", - "width": 143.8, + "originalText": 9, + "width": 80, }, Object { - "actualText": "绍兴市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ - "绍兴市", + "浙江省", ], - "originalText": "绍兴市", - "width": 143.8, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", "actualTextHeight": 45, - "actualTextWidth": 363, + "actualTextWidth": 253, "height": 61, "multiLineActualTexts": Array [ - "杭州市杭州市杭州市杭", - "州市杭州市杭州市杭州", - "市杭州市杭州市杭州市", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江...", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "width": 143.8, + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 46, "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, "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, + "height": 46, "multiLineActualTexts": Array [ - "杭州市", + "绍兴市", ], - "originalText": "杭州市", - "width": 143.8, + "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": 30, + "height": 46, "multiLineActualTexts": Array [ "绍兴市", ], "originalText": "绍兴市", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "宁波市", @@ -13626,7 +17002,7 @@ Array [ "宁波市", ], "originalText": "宁波市", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "舟山市", @@ -13637,7 +17013,7 @@ Array [ "舟山市", ], "originalText": "舟山市", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "杭州市", @@ -13648,7 +17024,7 @@ Array [ "杭州市", ], "originalText": "杭州市", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "绍兴市", @@ -13659,7 +17035,7 @@ Array [ "绍兴市", ], "originalText": "绍兴市", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "宁波市", @@ -13670,64 +17046,53 @@ 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": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "家具", ], "originalText": "家具", - "width": 143.8, + "width": 103.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualText": "家具家具家具家具家具家具家具家具家具家具...", "actualTextHeight": 45, - "actualTextWidth": 339, + "actualTextWidth": 253, "height": 61, "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": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "家具", ], "originalText": "家具", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "家具", @@ -13738,7 +17103,7 @@ Array [ "家具", ], "originalText": "家具", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "家具", @@ -13749,7 +17114,7 @@ Array [ "家具", ], "originalText": "家具", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "家具", @@ -13760,7 +17125,7 @@ Array [ "家具", ], "originalText": "家具", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "家具", @@ -13771,141 +17136,64 @@ Array [ "家具", ], "originalText": "家具", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 25, - "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, - }, - 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, - }, - Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, - "multiLineActualTexts": Array [ - "办公用品", - ], - "originalText": "办公用品", - "width": 143.8, - }, - Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, + "actualTextWidth": 25, "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "家具", ], - "originalText": "办公用品", - "width": 143.8, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "-", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 46, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "-", + "家具", ], - "originalText": "-", - "width": 143.8, + "originalText": "家具", + "width": 103.8, }, Object { "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "桌子", ], "originalText": "桌子", - "width": 143.8, + "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", "actualTextHeight": 45, - "actualTextWidth": 363, + "actualTextWidth": 253, "height": 61, "multiLineActualTexts": Array [ - "桌子桌子桌子桌子桌子", - "桌子桌子桌子桌子桌子", - "桌子桌子桌子桌子桌子", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子...", ], "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "桌子", ], "originalText": "桌子", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "桌子", @@ -13916,7 +17204,7 @@ Array [ "桌子", ], "originalText": "桌子", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "桌子", @@ -13927,7 +17215,7 @@ Array [ "桌子", ], "originalText": "桌子", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "沙发", @@ -13938,7 +17226,7 @@ Array [ "沙发", ], "originalText": "沙发", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "沙发", @@ -13949,7 +17237,7 @@ Array [ "沙发", ], "originalText": "沙发", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "沙发", @@ -13960,7 +17248,7 @@ Array [ "沙发", ], "originalText": "沙发", - "width": 143.8, + "width": 103.8, }, Object { "actualText": "沙发", @@ -13971,129 +17259,44 @@ Array [ "沙发", ], "originalText": "沙发", - "width": 143.8, - }, - Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "笔", - ], - "originalText": "笔", - "width": 143.8, - }, - Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "笔", - ], - "originalText": "笔", - "width": 143.8, - }, - Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": Array [ - "笔", - ], - "originalText": "笔", - "width": 143.8, - }, - Object { - "actualText": "笔", - "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, - "multiLineActualTexts": 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, - }, - Object { - "actualText": "纸张", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, - "multiLineActualTexts": Array [ - "纸张", - ], - "originalText": "纸张", - "width": 143.8, - }, - Object { - "actualText": "-", - "actualTextHeight": 15, - "actualTextWidth": 4, - "height": 46, - "multiLineActualTexts": Array [ - "-", - ], - "originalText": "-", - "width": 143.8, + "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": 143.8, + "width": 103.8, }, Object { "actualText": "7789778977897789778977897789", - "actualTextHeight": 30, - "actualTextWidth": 188, + "actualTextHeight": 45, + "actualTextWidth": 189, "height": 61, "multiLineActualTexts": Array [ - "7789778977897789778", - "977897789", + "7789778977897", + "7897789778977", + "89", ], "originalText": "7789778977897789778977897789", - "width": 143.8, + "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": 143.8, + "width": 103.8, }, Object { "actualText": "3877", @@ -14104,7 +17307,7 @@ Array [ "3877", ], "originalText": 3877, - "width": 143.8, + "width": 103.8, }, Object { "actualText": "4342", @@ -14115,7 +17318,7 @@ Array [ "4342", ], "originalText": 4342, - "width": 143.8, + "width": 103.8, }, Object { "actualText": "5343", @@ -14126,7 +17329,7 @@ Array [ "5343", ], "originalText": 5343, - "width": 143.8, + "width": 103.8, }, Object { "actualText": "632", @@ -14134,120 +17337,43 @@ Array [ "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "632", - ], - "originalText": 632, - "width": 143.8, - }, - Object { - "actualText": "7234", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "7234", - ], - "originalText": 7234, - "width": 143.8, - }, - Object { - "actualText": "834", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, - "multiLineActualTexts": Array [ - "834", - ], - "originalText": 834, - "width": 143.8, - }, - Object { - "actualText": "945", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, - "multiLineActualTexts": Array [ - "945", - ], - "originalText": 945, - "width": 143.8, - }, - Object { - "actualText": "1304", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "1304", - ], - "originalText": 1304, - "width": 143.8, - }, - Object { - "actualText": "1145", - "actualTextHeight": 15, - "actualTextWidth": 26, - "height": 30, - "multiLineActualTexts": Array [ - "1145", - ], - "originalText": 1145, - "width": 143.8, - }, - Object { - "actualText": "1432", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, - "multiLineActualTexts": Array [ - "1432", - ], - "originalText": 1432, - "width": 143.8, - }, - Object { - "actualText": "1343", - "actualTextHeight": 15, - "actualTextWidth": 27, - "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 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": 30, + "height": 64, "multiLineActualTexts": Array [ "序号", ], @@ -14257,13 +17383,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.heightByField 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "1", ], @@ -14274,7 +17400,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 61, "multiLineActualTexts": Array [ "2", ], @@ -14285,7 +17411,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "3", ], @@ -14358,60 +17484,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.heightByField 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 64, "multiLineActualTexts": Array [ "序号", ], @@ -14422,7 +17504,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 64, "multiLineActualTexts": Array [ "省份", ], @@ -14430,23 +17512,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, @@ -14455,7 +17541,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 30, + "height": 64, "multiLineActualTexts": Array [ "子类别", ], @@ -14463,11 +17549,13 @@ Array [ "width": 103.8, }, Object { - "actualText": "数量数量数量...", - "actualTextHeight": 16, - "actualTextWidth": 83, - "height": 30, + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数量", "数量数量数量...", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", @@ -14476,15 +17564,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.heightByField 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.heightByField 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "1", ], @@ -14495,7 +17583,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 61, "multiLineActualTexts": Array [ "2", ], @@ -14506,7 +17594,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "3", ], @@ -14579,55 +17667,11 @@ 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": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], @@ -14635,12 +17679,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, @@ -14649,73 +17695,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, - "multiLineActualTexts": Array [ - "浙江省", - ], - "originalText": "浙江省", - "width": 103.8, - }, - Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], @@ -14767,32 +17747,32 @@ 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": 83, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "杭州市杭州市...", + "浙江省", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "originalText": "浙江省", "width": 103.8, }, Object { "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "绍兴市", ], @@ -14800,43 +17780,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, + "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 [ "绍兴市", ], @@ -14913,7 +17873,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "家具", ], @@ -14921,11 +17881,13 @@ Array [ "width": 103.8, }, Object { - "actualText": "家具家具家具...", - "actualTextHeight": 15, - "actualTextWidth": 83, - "height": 30, + "actualText": "家具家具家具家具家具家具家具家具家具家具...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, "multiLineActualTexts": Array [ + "家具家具家具家", + "具家具家具家具", "家具家具家具...", ], "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", @@ -14935,7 +17897,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "家具", ], @@ -15008,55 +17970,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 [ "桌子", ], @@ -15064,11 +17982,13 @@ Array [ "width": 103.8, }, Object { - "actualText": "桌子桌子桌子...", - "actualTextHeight": 15, - "actualTextWidth": 83, - "height": 30, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "height": 61, "multiLineActualTexts": Array [ + "桌子桌子桌子桌", + "子桌子桌子桌子", "桌子桌子桌子...", ], "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", @@ -15078,7 +17998,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "桌子", ], @@ -15152,78 +18072,38 @@ 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, - "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, + "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, @@ -15294,60 +18174,16 @@ 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 get correctly cell height priority if actual text not wrap 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 20, "multiLineActualTexts": Array [ "序号", ], @@ -15357,13 +18193,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 not wrap 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "1", ], @@ -15374,7 +18210,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 61, + "height": 20, "multiLineActualTexts": Array [ "2", ], @@ -15385,7 +18221,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "3", ], @@ -15407,7 +18243,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "5", ], @@ -15458,16 +18294,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.height 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 [ "序号", ], @@ -15475,78 +18333,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.height 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.height 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", ], @@ -15557,7 +18409,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 61, + "height": 20, "multiLineActualTexts": Array [ "2", ], @@ -15568,7 +18420,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "3", ], @@ -15590,7 +18442,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "5", ], @@ -15641,11 +18493,33 @@ 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": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -15653,23 +18527,21 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 61, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江...", + "浙江省", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "originalText": "浙江省", "width": 103.8, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -15687,6 +18559,17 @@ Array [ "originalText": "浙江省", "width": 103.8, }, + Object { + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 100, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, Object { "actualText": "浙江省", "actualTextHeight": 15, @@ -15743,34 +18626,54 @@ Array [ "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "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": 20, + "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": 30, "multiLineActualTexts": Array [ "绍兴市", ], @@ -15781,7 +18684,7 @@ Array [ "actualText": "宁波市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "宁波市", ], @@ -15844,34 +18747,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 [ "家具", ], @@ -15904,7 +18805,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "家具", ], @@ -15923,60 +18824,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 { @@ -15994,7 +18893,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "桌子", ], @@ -16027,7 +18926,7 @@ Array [ "actualText": "沙发", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "沙发", ], @@ -16046,40 +18945,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 { @@ -16097,7 +19014,7 @@ Array [ "actualText": "4342", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "4342", ], @@ -16130,7 +19047,7 @@ Array [ "actualText": "7234", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 30, + "height": 100, "multiLineActualTexts": Array [ "7234", ], @@ -16148,16 +19065,71 @@ 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, + }, + 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.heightByField 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 [ "序号", ], @@ -16167,13 +19139,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 wrap 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 70, "multiLineActualTexts": Array [ "1", ], @@ -16184,7 +19156,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 61, + "height": 100, "multiLineActualTexts": Array [ "2", ], @@ -16246,38 +19218,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.heightByField 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 [ "序号", ], @@ -16288,7 +19238,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 70, "multiLineActualTexts": Array [ "省份", ], @@ -16299,7 +19249,7 @@ Array [ "actualText": "城市城市城市城市城市城市城市城市城市城市...", "actualTextHeight": 48, "actualTextWidth": 253, - "height": 64, + "height": 70, "multiLineActualTexts": Array [ "城市城市城市城", "市城市城市城市", @@ -16312,7 +19262,7 @@ Array [ "actualText": "类别类别类别类别类别类别类别类别类别类别", "actualTextHeight": 48, "actualTextWidth": 243, - "height": 64, + "height": 70, "multiLineActualTexts": Array [ "类别类别类别类", "别类别类别类别", @@ -16325,7 +19275,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 64, + "height": 70, "multiLineActualTexts": Array [ "子类别", ], @@ -16336,7 +19286,7 @@ Array [ "actualText": "数量数量数量数量数量数量数量数量数量数量...", "actualTextHeight": 48, "actualTextWidth": 253, - "height": 64, + "height": 70, "multiLineActualTexts": Array [ "数量数量数量数", "量数量数量数量", @@ -16348,15 +19298,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.heightByField 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.heightByField 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", ], @@ -16367,7 +19317,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 61, + "height": 100, "multiLineActualTexts": Array [ "2", ], @@ -16429,33 +19379,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 [ "浙江省", ], @@ -16465,43 +19393,21 @@ Array [ 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, + "actualTextWidth": 253, + "height": 100, "multiLineActualTexts": Array [ - "浙江省", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江...", ], - "originalText": "浙江省", + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], @@ -16556,7 +19462,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 70, "multiLineActualTexts": Array [ "绍兴市", ], @@ -16567,7 +19473,7 @@ Array [ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", "actualTextHeight": 45, "actualTextWidth": 253, - "height": 61, + "height": 100, "multiLineActualTexts": Array [ "杭州市杭州市杭", "州市杭州市杭州", @@ -16631,33 +19537,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": 70, "multiLineActualTexts": Array [ "家具", ], @@ -16668,7 +19552,7 @@ Array [ "actualText": "家具家具家具家具家具家具家具家具家具家具...", "actualTextHeight": 45, "actualTextWidth": 253, - "height": 61, + "height": 100, "multiLineActualTexts": Array [ "家具家具家具家", "具家具家具家具", @@ -16732,33 +19616,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 [ "桌子", ], @@ -16769,7 +19631,7 @@ Array [ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", "actualTextHeight": 45, "actualTextWidth": 253, - "height": 61, + "height": 100, "multiLineActualTexts": Array [ "桌子桌子桌子桌", "子桌子桌子桌子", @@ -16833,33 +19695,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", @@ -16871,7 +19711,7 @@ Array [ "actualText": "7789778977897789778977897789", "actualTextHeight": 45, "actualTextWidth": 189, - "height": 61, + "height": 100, "multiLineActualTexts": Array [ "7789778977897", "7897789778977", @@ -16936,38 +19776,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": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 70, + "multiLineActualTexts": Array [ + "序号", + ], + "originalText": "序号", + "width": 80, + }, Object { - "actualText": "7234", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 70, "multiLineActualTexts": Array [ - "7234", + "省份", ], - "originalText": 7234, + "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 get correctly cell height priority if actual text not 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": 20, + "height": 100, "multiLineActualTexts": Array [ "序号", ], @@ -16977,13 +19869,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 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": 30, + "height": 46, "multiLineActualTexts": Array [ "1", ], @@ -16994,7 +19886,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 76, "multiLineActualTexts": Array [ "2", ], @@ -17005,7 +19897,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "3", ], @@ -17027,7 +19919,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "5", ], @@ -17067,49 +19959,16 @@ 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, - }, ] `; -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 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": 20, + "height": 100, "multiLineActualTexts": Array [ "序号", ], @@ -17117,72 +19976,80 @@ Array [ "width": 80, }, Object { - "actualText": "province", + "actualText": "省份", "actualTextHeight": 16, - "actualTextWidth": 51, - "height": 20, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "province", + "省份", ], - "originalText": "province", + "originalText": "省份", "width": 103.8, }, Object { - "actualText": "city", - "actualTextHeight": 16, - "actualTextWidth": 21, - "height": 20, + "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualTextHeight": 64, + "actualTextWidth": 292, + "height": 100, "multiLineActualTexts": Array [ - "city", + "城市城市城市城", + "市城市城市城市", + "城市城市城市城", + "市城市", ], - "originalText": "city", + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "type", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 20, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 50, "multiLineActualTexts": Array [ - "type", + "类别类别类别类", + "别类别类别类别", + "类别类别类别", ], - "originalText": "type", + "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, }, Object { - "actualText": "sub_type", + "actualText": "子类别", "actualTextHeight": 16, - "actualTextWidth": 53, - "height": 20, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "sub_type", + "子类别", ], - "originalText": "sub_type", + "originalText": "子类别", "width": 103.8, }, Object { - "actualText": "number", - "actualTextHeight": 16, - "actualTextWidth": 45, - "height": 20, + "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualTextHeight": 64, + "actualTextWidth": 268, + "height": 100, "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 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 not 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": 30, + "height": 46, "multiLineActualTexts": Array [ "1", ], @@ -17193,7 +20060,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 76, "multiLineActualTexts": Array [ "2", ], @@ -17204,7 +20071,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "3", ], @@ -17226,7 +20093,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "5", ], @@ -17266,44 +20133,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": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], @@ -17311,21 +20145,24 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...", + "actualTextHeight": 60, + "actualTextWidth": 338, + "height": 76, "multiLineActualTexts": Array [ - "浙江省", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江省", + "浙江省浙江省...", ], - "originalText": "浙江省", + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], @@ -17347,7 +20184,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -17388,36 +20225,39 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省", + "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 46, "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": "浙江省", + "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ - "浙江省", + "绍兴市", ], - "originalText": "浙江省", + "originalText": "绍兴市", "width": 103.8, }, Object { @@ -17435,7 +20275,7 @@ Array [ "actualText": "舟山市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "舟山市", ], @@ -17468,7 +20308,7 @@ Array [ "actualText": "宁波市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "宁波市", ], @@ -17476,460 +20316,584 @@ Array [ "width": 103.8, }, Object { - "actualText": "舟山市", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 37, + "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": "舟山市", + "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": 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": 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": 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": 15, - "actualTextWidth": 25, - "height": 30, + "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": 30, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 76, "multiLineActualTexts": Array [ - "家具", + "7789778977897", + "7897789778977", + "89", ], - "originalText": "家具", + "originalText": "7789778977897789778977897789", "width": 103.8, }, Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "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, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "家具", + "3877", ], - "originalText": "家具", + "originalText": 3877, "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "4342", "actualTextHeight": 15, - "actualTextWidth": 49, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "4342", ], - "originalText": "办公用品", + "originalText": 4342, "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "5343", "actualTextHeight": 15, - "actualTextWidth": 49, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "5343", ], - "originalText": "办公用品", + "originalText": 5343, "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "632", "actualTextHeight": 15, - "actualTextWidth": 49, + "actualTextWidth": 21, "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "632", ], - "originalText": "办公用品", + "originalText": 632, "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "7234", "actualTextHeight": 15, - "actualTextWidth": 49, + "actualTextWidth": 27, "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "7234", ], - "originalText": "办公用品", + "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": "办公用品", + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 48, + "multiLineActualTexts": Array [ + "序号", + ], + "originalText": "序号", + "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 2`] = ` +Array [ + Object { + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, + "actualTextWidth": 7, + "height": 20, "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, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "桌子", + "3", ], - "originalText": "桌子", - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "沙发", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "沙发", + "4", ], - "originalText": "沙发", - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "沙发", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "沙发", + "5", ], - "originalText": "沙发", - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "沙发", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "沙发", + "6", ], - "originalText": "沙发", - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "沙发", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "沙发", + "7", ], - "originalText": "沙发", - "width": 103.8, + "originalText": 7, + "width": 80, }, Object { - "actualText": "笔", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "笔", + "8", ], - "originalText": "笔", - "width": 103.8, + "originalText": 8, + "width": 80, }, Object { - "actualText": "笔", + "actualText": "9", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "笔", + "9", ], - "originalText": "笔", - "width": 103.8, + "originalText": 9, + "width": 80, }, Object { - "actualText": "笔", + "actualText": "10", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "笔", + "10", ], - "originalText": "笔", - "width": 103.8, + "originalText": 10, + "width": 80, }, Object { - "actualText": "笔", + "actualText": "11", "actualTextHeight": 15, "actualTextWidth": 13, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ - "笔", - ], - "originalText": "笔", - "width": 103.8, + "11", + ], + "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": "3877", + "actualText": "13", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 14, + "height": 20, "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": 20, "multiLineActualTexts": Array [ - "4342", + "14", ], - "originalText": 4342, - "width": 103.8, + "originalText": 14, + "width": 80, }, Object { - "actualText": "5343", + "actualText": "15", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "5343", + "15", ], - "originalText": 5343, - "width": 103.8, + "originalText": 15, + "width": 80, }, Object { - "actualText": "632", + "actualText": "16", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "632", + "16", ], - "originalText": 632, - "width": 103.8, + "originalText": 16, + "width": 80, }, Object { - "actualText": "7234", + "actualText": "17", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 100, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "7234", + "17", ], - "originalText": 7234, - "width": 103.8, + "originalText": 17, + "width": 80, }, Object { - "actualText": "834", + "actualText": "18", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "834", + "18", ], - "originalText": 834, - "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": "945", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 48, "multiLineActualTexts": Array [ - "945", + "序号", ], - "originalText": 945, - "width": 103.8, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "1304", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 48, "multiLineActualTexts": Array [ - "1304", + "省份", ], - "originalText": 1304, + "originalText": "省份", "width": 103.8, }, Object { - "actualText": "1145", - "actualTextHeight": 15, - "actualTextWidth": 26, - "height": 30, + "actualText": "城市城市城市城市城市城市城...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 48, "multiLineActualTexts": Array [ - "1145", + "城市城市城市城", + "市城市城市城...", ], - "originalText": 1145, + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "1432", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "类别类别类别类别类别类别类...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 48, "multiLineActualTexts": Array [ - "1432", + "类别类别类别类", + "别类别类别类...", ], - "originalText": 1432, + "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, }, Object { - "actualText": "1343", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 48, "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": 32, + "actualTextWidth": 168, + "height": 48, "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`] = ` +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", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 70, + "height": 20, "multiLineActualTexts": Array [ "1", ], @@ -17940,7 +20904,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ "2", ], @@ -17951,7 +20915,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "3", ], @@ -17962,7 +20926,7 @@ Array [ "actualText": "4", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "4", ], @@ -17973,7 +20937,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "5", ], @@ -17984,7 +20948,7 @@ Array [ "actualText": "6", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "6", ], @@ -17995,179 +20959,139 @@ Array [ "actualText": "7", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "7", ], "originalText": 7, "width": 80, }, -] -`; - -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": "8", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "序号", + "8", ], - "originalText": "序号", + "originalText": 8, "width": 80, }, Object { - "actualText": "省份", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 70, - "multiLineActualTexts": Array [ - "省份", - ], - "originalText": "省份", - "width": 103.8, - }, - Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 70, - "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市...", - ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "width": 103.8, - }, - Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 70, + "actualText": "9", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "9", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 103.8, + "originalText": 9, + "width": 80, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 70, + "actualText": "10", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "子类别", + "10", ], - "originalText": "子类别", - "width": 103.8, + "originalText": 10, + "width": 80, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量...", - "actualTextHeight": 48, - "actualTextWidth": 253, - "height": 70, + "actualText": "11", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 20, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量...", + "11", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103.8, + "originalText": 11, + "width": 80, }, -] -`; - -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", + "actualText": "12", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 70, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "1", + "12", ], - "originalText": 1, + "originalText": 12, "width": 80, }, Object { - "actualText": "2", + "actualText": "13", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "2", + "13", ], - "originalText": 2, + "originalText": 13, "width": 80, }, Object { - "actualText": "3", + "actualText": "14", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "3", + "14", ], - "originalText": 3, + "originalText": 14, "width": 80, }, Object { - "actualText": "4", + "actualText": "15", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "4", + "15", ], - "originalText": 4, + "originalText": 15, "width": 80, }, Object { - "actualText": "5", + "actualText": "16", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "5", + "16", ], - "originalText": 5, + "originalText": 16, "width": 80, }, Object { - "actualText": "6", + "actualText": "17", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "6", + "17", ], - "originalText": 6, + "originalText": 17, "width": 80, }, Object { - "actualText": "7", + "actualText": "18", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "7", + "18", ], - "originalText": 7, + "originalText": 18, "width": 80, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 70, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -18175,14 +21099,13 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 100, + "actualText": "浙江省浙江省浙江省浙江省浙...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "height": 20, "multiLineActualTexts": Array [ "浙江省浙江省浙", - "江省浙江省浙江", - "省浙江省浙江...", + "江省浙江省浙...", ], "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", "width": 103.8, @@ -18191,7 +21114,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -18202,7 +21125,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -18213,7 +21136,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -18224,7 +21147,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -18235,7 +21158,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 30, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -18243,1162 +21166,1075 @@ Array [ "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 70, - "multiLineActualTexts": Array [ - "绍兴市", - ], - "originalText": "绍兴市", - "width": 103.8, - }, - Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 100, + "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, - "multiLineActualTexts": Array [ - "绍兴市", - ], - "originalText": "绍兴市", - "width": 103.8, - }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 70, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, - Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 100, - "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具...", - ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 103.8, - }, - Object { - "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, + "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": 70, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "桌子", + "四川省", ], - "originalText": "桌子", + "originalText": "四川省", "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 100, + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子...", + "绍兴市", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "桌子", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualText": "杭州市杭州市杭州市杭州市杭...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "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": 70, + "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": 100, + "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, }, -] -`; - -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": "杭州市", + "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": 32, - "actualTextWidth": 168, - "height": 70, + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城...", + "宁波市", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "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": 32, - "actualTextWidth": 168, - "height": 70, + "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 cell height if custom cell style more than actual text height by colCell.heightByField 1`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 100, + "actualText": "家具家具家具家具家具家具家...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "height": 20, "multiLineActualTexts": Array [ - "序号", + "家具家具家具家", + "具家具家具家...", ], - "originalText": "序号", - "width": 80, + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "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 2`] = ` -Array [ Object { - "actualText": "1", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "1", + "家具", ], - "originalText": 1, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 76, + "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": "8", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ - "8", + "办公用品", ], - "originalText": 8, - "width": 80, + "originalText": "办公用品", + "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 3`] = ` -Array [ Object { - "actualText": "序号", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 100, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ - "序号", + "办公用品", ], - "originalText": "序号", - "width": 80, + "originalText": "办公用品", + "width": 103.8, }, Object { - "actualText": "省份", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 100, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ - "省份", + "办公用品", ], - "originalText": "省份", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "actualTextHeight": 64, - "actualTextWidth": 292, - "height": 100, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城市", - "城市城市城市城", - "市城市", + "办公用品", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", - "actualTextHeight": 48, - "actualTextWidth": 243, - "height": 50, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类别", - "类别类别类别", + "办公用品", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 100, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ - "子类别", + "办公用品", ], - "originalText": "子类别", + "originalText": "办公用品", "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", - "actualTextHeight": 64, - "actualTextWidth": 268, - "height": 100, + "actualText": "办公用品", + "actualTextHeight": 15, + "actualTextWidth": 49, + "height": 20, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数量", - "数量数量数量数", - "量", + "办公用品", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", + "originalText": "办公用品", "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 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`] = ` -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": 76, + "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", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualText": "桌子桌子桌子桌子桌子桌子桌...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "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": "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": "浙江省", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 46, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "沙发", ], - "originalText": "浙江省", + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "actualText": "沙发", + "actualTextHeight": 15, + "actualTextWidth": 25, + "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": 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": 46, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "绍兴市", + "纸张", ], - "originalText": "绍兴市", + "originalText": "纸张", "width": 103.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "actualText": "纸张", + "actualTextHeight": 15, + "actualTextWidth": 25, + "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": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 20, "multiLineActualTexts": Array [ - "舟山市", + "2367236723611", + "11", ], - "originalText": "舟山市", + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "杭州市", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "778977897789778977897789...", + "actualTextHeight": 30, + "actualTextWidth": 172, + "height": 20, "multiLineActualTexts": Array [ - "杭州市", + "7789778977897", + "78977897789...", ], - "originalText": "杭州市", + "originalText": "7789778977897789778977897789", "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": "宁波市", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "宁波市", + "3877", ], - "originalText": "宁波市", + "originalText": 3877, "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "4342", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "4342", ], - "originalText": "家具", + "originalText": 4342, "width": 103.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "actualTextHeight": 60, - "actualTextWidth": 340, - "height": 76, + "actualText": "5343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家具", - "家具家具家具家", - "具家具家具家具", + "5343", ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "originalText": 5343, "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "632", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 21, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "632", ], - "originalText": "家具", + "originalText": 632, "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "7234", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "7234", ], - "originalText": "家具", + "originalText": 7234, "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "834", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 21, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "834", ], - "originalText": "家具", + "originalText": 834, "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "945", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 21, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "945", ], - "originalText": "家具", + "originalText": 945, "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "1304", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "1304", ], - "originalText": "家具", + "originalText": 1304, "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "1145", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 26, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "1145", ], - "originalText": "家具", + "originalText": 1145, "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "1432", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "桌子", + "1432", ], - "originalText": "桌子", + "originalText": 1432, "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...", - "actualTextHeight": 60, - "actualTextWidth": 338, - "height": 76, + "actualText": "1343", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌子", - "桌子桌子桌子桌", - "子桌子桌子桌...", + "1343", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "originalText": 1343, "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "1354", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "桌子", + "1354", ], - "originalText": "桌子", + "originalText": 1354, "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "1523", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "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, }, Object { - "actualText": "沙发", + "actualText": "1723", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "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, + "actualText": "序号", + "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "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": 25, - "height": 30, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "沙发", + "1", ], - "originalText": "沙发", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "2", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "2", ], - "originalText": 236723672361111, - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 76, + "actualText": "3", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", + "3", ], - "originalText": "7789778977897789778977897789", - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "4", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "4", ], - "originalText": 236723672361111, - "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": "3877", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 48, "multiLineActualTexts": Array [ - "3877", + "序号", ], - "originalText": 3877, - "width": 103.8, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "4342", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 48, "multiLineActualTexts": Array [ - "4342", + "省份", ], - "originalText": 4342, + "originalText": "省份", "width": 103.8, }, Object { - "actualText": "5343", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "城市城市城市城市城市城市城...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 48, "multiLineActualTexts": Array [ - "5343", + "城市城市城市城", + "市城市城市城...", ], - "originalText": 5343, + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "632", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualText": "类别类别类别类别类别类别类...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 48, "multiLineActualTexts": Array [ - "632", + "类别类别类别类", + "别类别类别类...", ], - "originalText": 632, + "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, }, Object { - "actualText": "7234", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 48, "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, + "actualText": "数量数量数量数量数量数量数...", + "actualTextHeight": 32, + "actualTextWidth": 168, "height": 48, "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`] = ` +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", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "1", ], @@ -19409,7 +22245,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "2", ], @@ -19420,7 +22256,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "3", ], @@ -19431,7 +22267,7 @@ Array [ "actualText": "4", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "4", ], @@ -19439,245 +22275,258 @@ Array [ "width": 80, }, Object { - "actualText": "5", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "5", + "浙江省", ], - "originalText": 5, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "6", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualText": "浙江省浙江省浙江省浙江省浙...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "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": 100, "multiLineActualTexts": Array [ - "7", + "浙江省", ], - "originalText": 7, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "8", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "8", + "浙江省", ], - "originalText": 8, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "9", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "9", + "绍兴市", ], - "originalText": 9, - "width": 80, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "10", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualText": "杭州市杭州市杭州市杭州市杭...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "height": 100, "multiLineActualTexts": Array [ - "10", + "杭州市杭州市杭", + "州市杭州市杭...", ], - "originalText": 10, - "width": 80, + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 103.8, }, Object { - "actualText": "11", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "11", + "绍兴市", ], - "originalText": 11, - "width": 80, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "12", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "12", + "宁波市", ], - "originalText": 12, - "width": 80, + "originalText": "宁波市", + "width": 103.8, }, Object { - "actualText": "13", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "13", + "家具", ], - "originalText": 13, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "14", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualText": "家具家具家具家具家具家具家...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "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": 100, "multiLineActualTexts": Array [ - "15", + "家具", ], - "originalText": 15, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "16", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "16", + "家具", ], - "originalText": 16, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "17", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "17", + "桌子", ], - "originalText": 17, - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "18", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualText": "桌子桌子桌子桌子桌子桌子桌...", + "actualTextHeight": 30, + "actualTextWidth": 168, + "height": 100, "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": 100, "multiLineActualTexts": Array [ - "序号", + "桌子", ], - "originalText": "序号", - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "省份", - "actualTextHeight": 16, + "actualText": "桌子", + "actualTextHeight": 15, "actualTextWidth": 25, - "height": 48, + "height": 100, "multiLineActualTexts": Array [ - "省份", + "桌子", ], - "originalText": "省份", + "originalText": "桌子", + "width": 103.8, + }, + Object { + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 100, + "multiLineActualTexts": Array [ + "2367236723611", + "11", + ], + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "height": 48, + "actualText": "778977897789778977897789...", + "actualTextHeight": 30, + "actualTextWidth": 172, + "height": 100, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城...", + "7789778977897", + "78977897789...", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "originalText": "7789778977897789778977897789", "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "height": 48, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 100, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类...", + "2367236723611", + "11", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 48, + "actualText": "3877", + "actualTextHeight": 15, + "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": 32, - "actualTextWidth": 168, - "height": 48, + "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 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`] = ` +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", ], @@ -19688,7 +22537,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "2", ], @@ -19699,7 +22548,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "3", ], @@ -19710,7 +22559,7 @@ Array [ "actualText": "4", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "4", ], @@ -19721,7 +22570,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "5", ], @@ -19732,7 +22581,7 @@ Array [ "actualText": "6", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "6", ], @@ -19743,7 +22592,7 @@ Array [ "actualText": "7", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "7", ], @@ -19754,7 +22603,7 @@ Array [ "actualText": "8", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "8", ], @@ -19765,7 +22614,7 @@ Array [ "actualText": "9", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "9", ], @@ -19776,7 +22625,7 @@ Array [ "actualText": "10", "actualTextHeight": 15, "actualTextWidth": 14, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "10", ], @@ -19787,173 +22636,220 @@ Array [ "actualText": "11", "actualTextHeight": 15, "actualTextWidth": 13, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "11", ], "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": "12", - "actualTextHeight": 15, - "actualTextWidth": 14, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, "height": 20, "multiLineActualTexts": Array [ - "12", + "序号", ], - "originalText": 12, + "originalText": "序号", "width": 80, }, Object { - "actualText": "13", - "actualTextHeight": 15, - "actualTextWidth": 14, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, "height": 20, "multiLineActualTexts": Array [ - "13", + "省份", ], - "originalText": 13, - "width": 80, + "originalText": "省份", + "width": 103.8, }, Object { - "actualText": "14", - "actualTextHeight": 15, - "actualTextWidth": 14, + "actualText": "城市城市城市城市城市城市城...", + "actualTextHeight": 32, + "actualTextWidth": 168, "height": 20, "multiLineActualTexts": Array [ - "14", + "城市城市城市城", + "市城市城市城...", ], - "originalText": 14, - "width": 80, + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 103.8, }, Object { - "actualText": "15", - "actualTextHeight": 15, - "actualTextWidth": 14, + "actualText": "类别类别类别类别类别类别类...", + "actualTextHeight": 32, + "actualTextWidth": 168, "height": 20, "multiLineActualTexts": Array [ - "15", + "类别类别类别类", + "别类别类别类...", ], - "originalText": 15, + "originalText": "类别类别类别类别类别类别类别类别类别类别", + "width": 103.8, + }, + Object { + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 20, + "multiLineActualTexts": Array [ + "子类别", + ], + "originalText": "子类别", + "width": 103.8, + }, + Object { + "actualText": "数量数量数量数量数量数量数...", + "actualTextHeight": 32, + "actualTextWidth": 168, + "height": 20, + "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数...", + ], + "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", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 46, + "multiLineActualTexts": Array [ + "1", + ], + "originalText": 1, "width": 80, }, Object { - "actualText": "16", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "16", + "2", ], - "originalText": 16, + "originalText": 2, "width": 80, }, Object { - "actualText": "17", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 7, + "height": 46, "multiLineActualTexts": Array [ - "17", + "3", ], - "originalText": 17, + "originalText": 3, "width": 80, }, Object { - "actualText": "18", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "18", + "4", ], - "originalText": 18, + "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": "浙江省浙江省浙江省浙江省浙...", - "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 20, + "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": 37, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "7", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": 7, + "width": 80, }, Object { - "actualText": "浙江省", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "8", ], - "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 [ "浙江省", ], @@ -19961,21 +22857,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 [ "浙江省", ], @@ -19986,7 +22883,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -19997,7 +22894,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -20008,7 +22905,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -20019,7 +22916,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -20030,7 +22927,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -20041,7 +22938,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -20052,7 +22949,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -20060,21 +22957,21 @@ Array [ "width": 103.8, }, Object { - "actualText": "四川省", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ - "四川省", + "浙江省", ], - "originalText": "四川省", + "originalText": "浙江省", "width": 103.8, }, Object { "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "绍兴市", ], @@ -20085,7 +22982,7 @@ Array [ "actualText": "杭州市杭州市杭州市杭州市杭...", "actualTextHeight": 30, "actualTextWidth": 168, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "杭州市杭州市杭", "州市杭州市杭...", @@ -20097,51 +22994,7 @@ Array [ "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 [ "绍兴市", ], @@ -20152,7 +23005,7 @@ Array [ "actualText": "宁波市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "宁波市", ], @@ -20163,7 +23016,7 @@ Array [ "actualText": "舟山市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "舟山市", ], @@ -20174,7 +23027,7 @@ Array [ "actualText": "杭州市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "杭州市", ], @@ -20185,7 +23038,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "绍兴市", ], @@ -20196,7 +23049,7 @@ Array [ "actualText": "宁波市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "宁波市", ], @@ -20207,7 +23060,7 @@ Array [ "actualText": "舟山市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "舟山市", ], @@ -20218,7 +23071,7 @@ Array [ "actualText": "杭州市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "杭州市", ], @@ -20229,51 +23082,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, - "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": 20, + "height": 46, "multiLineActualTexts": Array [ "家具", ], @@ -20284,7 +23104,7 @@ Array [ "actualText": "家具家具家具家具家具家具家...", "actualTextHeight": 30, "actualTextWidth": 168, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "家具家具家具家", "具家具家具家...", @@ -20296,40 +23116,7 @@ Array [ "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, + "height": 46, "multiLineActualTexts": Array [ "家具", ], @@ -20340,7 +23127,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "家具", ], @@ -20351,7 +23138,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "家具", ], @@ -20362,84 +23149,51 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 30, "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": "办公用品", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "家具", ], - "originalText": "办公用品", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "家具", ], - "originalText": "办公用品", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "办公用品", + "家具", ], - "originalText": "办公用品", + "originalText": "家具", "width": 103.8, }, Object { "actualText": "办公用品", "actualTextHeight": 15, "actualTextWidth": 49, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "办公用品", ], @@ -20450,29 +23204,18 @@ Array [ "actualText": "办公用品", "actualTextHeight": 15, "actualTextWidth": 49, - "height": 20, + "height": 30, "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, + "height": 46, "multiLineActualTexts": Array [ "桌子", ], @@ -20483,7 +23226,7 @@ Array [ "actualText": "桌子桌子桌子桌子桌子桌子桌...", "actualTextHeight": 30, "actualTextWidth": 168, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "桌子桌子桌子桌", "子桌子桌子桌...", @@ -20495,7 +23238,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "桌子", ], @@ -20506,7 +23249,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "桌子", ], @@ -20517,7 +23260,7 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "桌子", ], @@ -20528,7 +23271,7 @@ Array [ "actualText": "沙发", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "沙发", ], @@ -20539,7 +23282,7 @@ Array [ "actualText": "沙发", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "沙发", ], @@ -20550,7 +23293,7 @@ Array [ "actualText": "沙发", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "沙发", ], @@ -20561,7 +23304,7 @@ Array [ "actualText": "沙发", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "沙发", ], @@ -20572,7 +23315,7 @@ Array [ "actualText": "笔", "actualTextHeight": 15, "actualTextWidth": 13, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "笔", ], @@ -20583,7 +23326,7 @@ Array [ "actualText": "笔", "actualTextHeight": 15, "actualTextWidth": 13, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "笔", ], @@ -20591,309 +23334,426 @@ Array [ "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, + "multiLineActualTexts": Array [ + "2367236723611", + "11", + ], + "originalText": 236723672361111, + "width": 103.8, + }, + Object { + "actualText": "778977897789778977897789...", + "actualTextHeight": 30, + "actualTextWidth": 172, + "height": 46, + "multiLineActualTexts": Array [ + "7789778977897", + "78977897789...", + ], + "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": 13, - "height": 20, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "笔", + "3877", ], - "originalText": "笔", + "originalText": 3877, "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "4342", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "笔", + "4342", ], - "originalText": "笔", + "originalText": 4342, "width": 103.8, }, Object { - "actualText": "纸张", + "actualText": "5343", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "纸张", + "5343", ], - "originalText": "纸张", + "originalText": 5343, "width": 103.8, }, Object { - "actualText": "纸张", + "actualText": "632", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "纸张", + "632", ], - "originalText": "纸张", + "originalText": 632, "width": 103.8, }, Object { - "actualText": "纸张", + "actualText": "7234", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "纸张", + "7234", ], - "originalText": "纸张", + "originalText": 7234, "width": 103.8, }, Object { - "actualText": "纸张", + "actualText": "834", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "纸张", + "834", ], - "originalText": "纸张", + "originalText": 834, "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "945", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "桌子", + "945", ], - "originalText": "桌子", + "originalText": 945, "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 20, + "actualText": "1304", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "1304", ], - "originalText": 236723672361111, + "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": "778977897789778977897789...", - "actualTextHeight": 30, - "actualTextWidth": 172, + "actualText": "1", + "actualTextHeight": 15, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "7789778977897", - "78977897789...", + "1", ], - "originalText": "7789778977897789778977897789", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, + "actualText": "2", + "actualTextHeight": 15, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "2", ], - "originalText": 236723672361111, - "width": 103.8, + "originalText": 2, + "width": 80, }, Object { - "actualText": "3877", + "actualText": "3", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "3877", + "3", ], - "originalText": 3877, - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "4342", + "actualText": "4", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "4342", + "4", ], - "originalText": 4342, - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "5343", + "actualText": "5", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "5343", + "5", ], - "originalText": 5343, - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "632", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "632", + "6", ], - "originalText": 632, - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "7234", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "7234", + "7", ], - "originalText": 7234, - "width": 103.8, + "originalText": 7, + "width": 80, }, Object { - "actualText": "834", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "834", + "8", ], - "originalText": 834, - "width": 103.8, + "originalText": 8, + "width": 80, }, Object { - "actualText": "945", + "actualText": "9", "actualTextHeight": 15, - "actualTextWidth": 21, + "actualTextWidth": 7, "height": 20, "multiLineActualTexts": Array [ - "945", + "9", ], - "originalText": 945, - "width": 103.8, + "originalText": 9, + "width": 80, }, Object { - "actualText": "1304", + "actualText": "10", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 14, "height": 20, "multiLineActualTexts": Array [ - "1304", + "10", ], - "originalText": 1304, - "width": 103.8, + "originalText": 10, + "width": 80, }, Object { - "actualText": "1145", + "actualText": "11", "actualTextHeight": 15, - "actualTextWidth": 26, + "actualTextWidth": 13, "height": 20, "multiLineActualTexts": Array [ - "1145", + "11", ], - "originalText": 1145, - "width": 103.8, + "originalText": 11, + "width": 80, }, Object { - "actualText": "1432", + "actualText": "12", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 14, "height": 20, "multiLineActualTexts": Array [ - "1432", + "12", ], - "originalText": 1432, - "width": 103.8, + "originalText": 12, + "width": 80, }, Object { - "actualText": "1343", + "actualText": "13", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 14, "height": 20, "multiLineActualTexts": Array [ - "1343", + "13", ], - "originalText": 1343, - "width": 103.8, + "originalText": 13, + "width": 80, }, Object { - "actualText": "1354", + "actualText": "14", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 14, "height": 20, "multiLineActualTexts": Array [ - "1354", + "14", ], - "originalText": 1354, - "width": 103.8, + "originalText": 14, + "width": 80, }, Object { - "actualText": "1523", + "actualText": "15", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 14, "height": 20, "multiLineActualTexts": Array [ - "1523", + "15", ], - "originalText": 1523, - "width": 103.8, + "originalText": 15, + "width": 80, }, Object { - "actualText": "1634", + "actualText": "16", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 14, "height": 20, "multiLineActualTexts": Array [ - "1634", + "16", ], - "originalText": 1634, - "width": 103.8, + "originalText": 16, + "width": 80, }, Object { - "actualText": "1723", + "actualText": "17", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 14, "height": 20, "multiLineActualTexts": Array [ - "1723", + "17", ], - "originalText": 1723, - "width": 103.8, + "originalText": 17, + "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`] = ` +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": 48, + "height": 64, "multiLineActualTexts": Array [ "序号", ], "originalText": "序号", "width": 80, }, + Object { + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, + "multiLineActualTexts": Array [ + "省份", + ], + "originalText": "省份", + "width": 103.8, + }, + Object { + "actualText": "城市城市城市城市城市城市城市城市城市城市...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, + "multiLineActualTexts": Array [ + "城市城市城市城", + "市城市城市城市", + "城市城市城市...", + ], + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "width": 103.8, + }, + Object { + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 64, + "multiLineActualTexts": Array [ + "类别类别类别类", + "别类别类别类别", + "类别类别类别", + ], + "originalText": "类别类别类别类别类别类别类别类别类别类别", + "width": 103.8, + }, + Object { + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 64, + "multiLineActualTexts": Array [ + "子类别", + ], + "originalText": "子类别", + "width": 103.8, + }, + Object { + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, + "multiLineActualTexts": Array [ + "数量数量数量数", + "量数量数量数量", + "数量数量数量...", + ], + "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`] = ` +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", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ "1", ], @@ -20904,7 +23764,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ "2", ], @@ -20915,7 +23775,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ "3", ], @@ -20926,143 +23786,161 @@ Array [ "actualText": "4", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ "4", ], "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": 16, - "actualTextWidth": 25, - "height": 48, + "actualText": "5", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "序号", + "5", ], - "originalText": "序号", + "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": "省份", - "actualTextHeight": 16, - "actualTextWidth": 25, - "height": 48, + "actualText": "9", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 20, "multiLineActualTexts": Array [ - "省份", + "9", ], - "originalText": "省份", - "width": 103.8, + "originalText": 9, + "width": 80, }, Object { - "actualText": "城市城市城市城市城市城市城...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "height": 48, + "actualText": "10", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城...", + "10", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "width": 103.8, + "originalText": 10, + "width": 80, }, Object { - "actualText": "类别类别类别类别类别类别类...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "height": 48, + "actualText": "11", + "actualTextHeight": 15, + "actualTextWidth": 13, + "height": 20, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类...", + "11", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 103.8, + "originalText": 11, + "width": 80, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, - "actualTextWidth": 37, - "height": 48, + "actualText": "12", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "子类别", + "12", ], - "originalText": "子类别", - "width": 103.8, + "originalText": 12, + "width": 80, }, Object { - "actualText": "数量数量数量数量数量数量数...", - "actualTextHeight": 32, - "actualTextWidth": 168, - "height": 48, + "actualText": "13", + "actualTextHeight": 15, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "数量数量数量数", - "量数量数量数...", + "13", ], - "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103.8, + "originalText": 13, + "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 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": "14", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "1", + "14", ], - "originalText": 1, + "originalText": 14, "width": 80, }, Object { - "actualText": "2", + "actualText": "15", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "2", + "15", ], - "originalText": 2, + "originalText": 15, "width": 80, }, Object { - "actualText": "3", + "actualText": "16", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "3", + "16", ], - "originalText": 3, + "originalText": 16, "width": 80, }, Object { - "actualText": "4", + "actualText": "17", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 100, + "actualTextWidth": 14, + "height": 20, "multiLineActualTexts": Array [ - "4", + "17", ], - "originalText": 4, + "originalText": 17, "width": 80, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -21070,13 +23948,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, @@ -21085,7 +23964,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -21096,7 +23975,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ "浙江省", ], @@ -21104,1169 +23983,1104 @@ Array [ "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, - "multiLineActualTexts": Array [ - "绍兴市", - ], - "originalText": "绍兴市", - "width": 103.8, - }, - Object { - "actualText": "杭州市杭州市杭州市杭州市杭...", - "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ - "杭州市杭州市杭", - "州市杭州市杭...", + "浙江省", ], - "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "绍兴市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 20, "multiLineActualTexts": Array [ - "绍兴市", + "浙江省", ], - "originalText": "绍兴市", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "宁波市", + "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, - "multiLineActualTexts": Array [ - "宁波市", - ], - "originalText": "宁波市", - "width": 103.8, - }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, - Object { - "actualText": "家具家具家具家具家具家具家...", - "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 100, - "multiLineActualTexts": Array [ - "家具家具家具家", - "具家具家具家...", - ], - "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 103.8, - }, - Object { - "actualText": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 100, + "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, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "桌子", + "浙江省", ], - "originalText": "桌子", + "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": "778977897789778977897789...", - "actualTextHeight": 30, - "actualTextWidth": 172, - "height": 100, + "actualText": "浙江省", + "actualTextHeight": 15, + "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", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "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": 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, }, Object { - "actualText": "8", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "8", + "绍兴市", ], - "originalText": 8, - "width": 80, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "9", + "actualText": "宁波市", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "9", + "宁波市", ], - "originalText": 9, - "width": 80, + "originalText": "宁波市", + "width": 103.8, }, Object { - "actualText": "10", + "actualText": "舟山市", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 30, + "actualTextWidth": 37, + "height": 20, "multiLineActualTexts": Array [ - "10", + "舟山市", ], - "originalText": 10, - "width": 80, + "originalText": "舟山市", + "width": 103.8, }, Object { - "actualText": "11", + "actualText": "杭州市", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 30, + "actualTextWidth": 37, + "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, - "actualTextWidth": 25, + "actualText": "绍兴市", + "actualTextHeight": 15, + "actualTextWidth": 37, "height": 20, "multiLineActualTexts": Array [ - "序号", + "绍兴市", ], - "originalText": "序号", - "width": 80, + "originalText": "绍兴市", + "width": 103.8, }, Object { - "actualText": "省份", - "actualTextHeight": 16, - "actualTextWidth": 25, + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, "height": 20, "multiLineActualTexts": Array [ - "省份", + "宁波市", ], - "originalText": "省份", + "originalText": "宁波市", "width": 103.8, }, Object { - "actualText": "城市城市城市城市城市城市城...", - "actualTextHeight": 32, - "actualTextWidth": 168, + "actualText": "舟山市", + "actualTextHeight": 15, + "actualTextWidth": 37, "height": 20, "multiLineActualTexts": Array [ - "城市城市城市城", - "市城市城市城...", + "舟山市", ], - "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "originalText": "舟山市", "width": 103.8, }, Object { - "actualText": "类别类别类别类别类别类别类...", - "actualTextHeight": 32, - "actualTextWidth": 168, + "actualText": "杭州市", + "actualTextHeight": 15, + "actualTextWidth": 37, "height": 20, "multiLineActualTexts": Array [ - "类别类别类别类", - "别类别类别类...", + "杭州市", ], - "originalText": "类别类别类别类别类别类别类别类别类别类别", + "originalText": "杭州市", "width": 103.8, }, Object { - "actualText": "子类别", - "actualTextHeight": 16, + "actualText": "绍兴市", + "actualTextHeight": 15, "actualTextWidth": 37, "height": 20, "multiLineActualTexts": Array [ - "子类别", + "绍兴市", ], - "originalText": "子类别", + "originalText": "绍兴市", "width": 103.8, }, Object { - "actualText": "数量数量数量数量数量数量数...", - "actualTextHeight": 32, - "actualTextWidth": 168, + "actualText": "宁波市", + "actualTextHeight": 15, + "actualTextWidth": 37, "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": 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": 25, + "height": 20, "multiLineActualTexts": Array [ - "2", + "家具", ], - "originalText": 2, - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "3", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 46, + "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": 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": "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": 49, + "height": 20, "multiLineActualTexts": Array [ - "11", + "办公用品", ], - "originalText": 11, - "width": 80, + "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": "浙江省浙江省浙江省浙江省浙...", - "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 46, + "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": 30, + "actualTextWidth": 25, + "height": 20, "multiLineActualTexts": Array [ - "浙江省", + "桌子", ], - "originalText": "浙江省", + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 30, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", + "actualTextHeight": 45, + "actualTextWidth": 253, + "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": 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": 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": 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": 25, - "height": 46, + "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": "家具", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 20, "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": 20, "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": 20, "multiLineActualTexts": Array [ - "家具", + "2367236723611", + "11", ], - "originalText": "家具", + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "3877", ], - "originalText": "家具", + "originalText": 3877, "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "4342", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "4342", ], - "originalText": "家具", + "originalText": 4342, "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "5343", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "5343", ], - "originalText": "家具", + "originalText": 5343, "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "632", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 21, + "height": 20, "multiLineActualTexts": Array [ - "家具", + "632", ], - "originalText": "家具", + "originalText": 632, "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "7234", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "办公用品", + "7234", ], - "originalText": "办公用品", + "originalText": 7234, "width": 103.8, }, Object { - "actualText": "办公用品", + "actualText": "834", "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 30, + "actualTextWidth": 21, + "height": 20, "multiLineActualTexts": Array [ - "办公用品", + "834", ], - "originalText": "办公用品", + "originalText": 834, "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "945", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 21, + "height": 20, "multiLineActualTexts": Array [ - "桌子", + "945", ], - "originalText": "桌子", + "originalText": 945, "width": 103.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌...", - "actualTextHeight": 30, - "actualTextWidth": 168, - "height": 46, + "actualText": "1304", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "桌子桌子桌子桌", - "子桌子桌子桌...", + "1304", ], - "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "originalText": 1304, "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "1145", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 46, + "actualTextWidth": 26, + "height": 20, "multiLineActualTexts": Array [ - "桌子", + "1145", ], - "originalText": "桌子", + "originalText": 1145, "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "1432", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "桌子", + "1432", ], - "originalText": "桌子", + "originalText": 1432, "width": 103.8, }, Object { - "actualText": "桌子", + "actualText": "1343", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "桌子", + "1343", ], - "originalText": "桌子", + "originalText": 1343, "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "1354", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "actualTextWidth": 27, + "height": 20, "multiLineActualTexts": Array [ - "沙发", + "1354", ], - "originalText": "沙发", + "originalText": 1354, "width": 103.8, }, Object { - "actualText": "沙发", + "actualText": "1523", "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 30, + "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": 13, - "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": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, + "actualText": "3", + "actualTextHeight": 15, + "actualTextWidth": 7, "height": 46, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "3", ], - "originalText": 236723672361111, - "width": 103.8, + "originalText": 3, + "width": 80, }, Object { - "actualText": "778977897789778977897789...", - "actualTextHeight": 30, - "actualTextWidth": 172, - "height": 46, + "actualText": "4", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 30, "multiLineActualTexts": Array [ - "7789778977897", - "78977897789...", + "4", ], - "originalText": "7789778977897789778977897789", - "width": 103.8, + "originalText": 4, + "width": 80, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 46, + "actualText": "5", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "5", ], - "originalText": 236723672361111, - "width": 103.8, + "originalText": 5, + "width": 80, }, Object { - "actualText": "3877", + "actualText": "6", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "3877", + "6", ], - "originalText": 3877, - "width": 103.8, + "originalText": 6, + "width": 80, }, Object { - "actualText": "4342", + "actualText": "7", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "4342", + "7", ], - "originalText": 4342, - "width": 103.8, + "originalText": 7, + "width": 80, }, Object { - "actualText": "5343", + "actualText": "8", "actualTextHeight": 15, - "actualTextWidth": 27, + "actualTextWidth": 7, "height": 30, "multiLineActualTexts": Array [ - "5343", + "8", ], - "originalText": 5343, - "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": "632", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, "multiLineActualTexts": Array [ - "632", + "序号", ], - "originalText": 632, - "width": 103.8, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "7234", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, "multiLineActualTexts": Array [ - "7234", + "省份", ], - "originalText": 7234, + "originalText": "省份", "width": 103.8, }, Object { - "actualText": "834", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + "actualText": "城市城市城市城市城市城市城市城市城市城市...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, "multiLineActualTexts": Array [ - "834", + "城市城市城市城", + "市城市城市城市", + "城市城市城市...", ], - "originalText": 834, + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, - Object { - "actualText": "945", - "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 30, + Object { + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 64, "multiLineActualTexts": Array [ - "945", + "类别类别类别类", + "别类别类别类别", + "类别类别类别", ], - "originalText": 945, + "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, }, Object { - "actualText": "1304", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 30, + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 64, "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, + "actualText": "数量数量数量数量数量数量数量数量数量数量...", + "actualTextHeight": 48, + "actualTextWidth": 253, "height": 64, "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`] = ` +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": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "1", ], @@ -22288,7 +25102,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 46, "multiLineActualTexts": Array [ "3", ], @@ -22299,7 +25113,7 @@ Array [ "actualText": "4", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "4", ], @@ -22310,7 +25124,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "5", ], @@ -22321,7 +25135,7 @@ Array [ "actualText": "6", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "6", ], @@ -22332,7 +25146,7 @@ Array [ "actualText": "7", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "7", ], @@ -22343,7 +25157,7 @@ Array [ "actualText": "8", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "8", ], @@ -22351,525 +25165,655 @@ Array [ "width": 80, }, Object { - "actualText": "9", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 37, + "height": 46, + "multiLineActualTexts": Array [ + "浙江省", + ], + "originalText": "浙江省", + "width": 103.8, + }, + Object { + "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", + "actualTextHeight": 45, + "actualTextWidth": 253, "height": 20, "multiLineActualTexts": Array [ - "9", + "浙江省浙江省浙", + "江省浙江省浙江", + "省浙江省浙江...", ], - "originalText": 9, - "width": 80, + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 103.8, }, Object { - "actualText": "10", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 37, + "height": 46, "multiLineActualTexts": Array [ - "10", + "浙江省", ], - "originalText": 10, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "11", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "11", + "浙江省", ], - "originalText": 11, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "12", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 37, + "height": 100, "multiLineActualTexts": Array [ - "12", + "浙江省", ], - "originalText": 12, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "13", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "13", + "浙江省", ], - "originalText": 13, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "14", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "14", + "浙江省", ], - "originalText": 14, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "15", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 14, + "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": 20, "multiLineActualTexts": Array [ - "15", + "杭州市杭州市杭", + "州市杭州市杭州", + "市杭州市杭州...", ], - "originalText": 15, - "width": 80, + "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "width": 103.8, }, Object { - "actualText": "16", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 14, + "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": 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, + "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": 20, "multiLineActualTexts": Array [ - "16", + "家具家具家具家", + "具家具家具家具", + "家具家具家具...", ], - "originalText": 16, - "width": 80, + "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "width": 103.8, }, Object { - "actualText": "17", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 25, + "height": 46, "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": 30, "multiLineActualTexts": Array [ - "序号", + "家具", ], - "originalText": "序号", - "width": 80, + "originalText": "家具", + "width": 103.8, }, Object { - "actualText": "省份", - "actualTextHeight": 16, + "actualText": "家具", + "actualTextHeight": 15, "actualTextWidth": 25, - "height": 64, + "height": 100, "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": 30, "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": 46, "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", - "actualTextHeight": 15, - "actualTextWidth": 7, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", + "actualTextHeight": 45, + "actualTextWidth": 253, "height": 20, "multiLineActualTexts": Array [ - "1", + "桌子桌子桌子桌", + "子桌子桌子桌子", + "桌子桌子桌子...", ], - "originalText": 1, - "width": 80, + "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "width": 103.8, }, Object { - "actualText": "2", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "2", + "桌子", ], - "originalText": 2, - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "3", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "3", + "桌子", ], - "originalText": 3, - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "4", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 25, + "height": 100, "multiLineActualTexts": Array [ - "4", + "桌子", ], - "originalText": 4, - "width": 80, + "originalText": "桌子", + "width": 103.8, }, Object { - "actualText": "5", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "5", + "沙发", ], - "originalText": 5, - "width": 80, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "6", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "6", + "沙发", ], - "originalText": 6, - "width": 80, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "7", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "7", + "沙发", ], - "originalText": 7, - "width": 80, + "originalText": "沙发", + "width": 103.8, }, Object { - "actualText": "8", - "actualTextHeight": 15, - "actualTextWidth": 7, - "height": 20, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "8", + "2367236723611", + "11", ], - "originalText": 8, - "width": 80, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "9", - "actualTextHeight": 15, - "actualTextWidth": 7, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, "height": 20, "multiLineActualTexts": Array [ - "9", + "7789778977897", + "7897789778977", + "89", ], - "originalText": 9, - "width": 80, + "originalText": "7789778977897789778977897789", + "width": 103.8, }, Object { - "actualText": "10", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "10", + "2367236723611", + "11", ], - "originalText": 10, - "width": 80, + "originalText": 236723672361111, + "width": 103.8, }, Object { - "actualText": "11", + "actualText": "3877", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "11", + "3877", ], - "originalText": 11, - "width": 80, + "originalText": 3877, + "width": 103.8, }, Object { - "actualText": "12", + "actualText": "4342", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 27, + "height": 100, "multiLineActualTexts": Array [ - "12", + "4342", ], - "originalText": 12, - "width": 80, + "originalText": 4342, + "width": 103.8, }, Object { - "actualText": "13", + "actualText": "5343", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "13", + "5343", ], - "originalText": 13, - "width": 80, + "originalText": 5343, + "width": 103.8, }, Object { - "actualText": "14", + "actualText": "632", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 21, + "height": 30, "multiLineActualTexts": Array [ - "14", + "632", ], - "originalText": 14, - "width": 80, + "originalText": 632, + "width": 103.8, }, Object { - "actualText": "15", + "actualText": "7234", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 27, + "height": 30, "multiLineActualTexts": Array [ - "15", + "7234", ], - "originalText": 15, - "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": "16", - "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, "multiLineActualTexts": Array [ - "16", + "序号", ], - "originalText": 16, + "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": "17", + "actualText": "1", "actualTextHeight": 15, - "actualTextWidth": 14, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "17", + "1", ], - "originalText": 17, + "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": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 20, + "actualText": "3", + "actualTextHeight": 15, + "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 force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 3`] = ` +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, }, Object { - "actualText": "浙江省", - "actualTextHeight": 15, - "actualTextWidth": 37, - "height": 20, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "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, }, 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": 15, + "actualText": "子类别", + "actualTextHeight": 16, "actualTextWidth": 37, - "height": 20, + "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 [ "浙江省", ], @@ -22877,21 +25821,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 [ "浙江省", ], @@ -22902,7 +25848,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "浙江省", ], @@ -22913,7 +25859,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "绍兴市", ], @@ -22924,7 +25870,7 @@ Array [ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...", "actualTextHeight": 45, "actualTextWidth": 253, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "杭州市杭州市杭", "州市杭州市杭州", @@ -22937,7 +25883,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "绍兴市", ], @@ -22948,7 +25894,7 @@ Array [ "actualText": "宁波市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 20, + "height": 100, "multiLineActualTexts": Array [ "宁波市", ], @@ -22956,727 +25902,734 @@ 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": 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": "绍兴市", + "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": 25, - "height": 20, - "multiLineActualTexts": Array [ - "家具", - ], - "originalText": "家具", - "width": 103.8, - }, - Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "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, + "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.heightByField 2`] = ` +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 [ - "家具", - ], - "originalText": "家具", - "width": 103.8, + "3", + ], + "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, }, +] +`; + +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, - "actualTextWidth": 49, - "height": 20, + "actualText": "序号", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, "multiLineActualTexts": Array [ - "办公用品", + "序号", ], - "originalText": "办公用品", - "width": 103.8, + "originalText": "序号", + "width": 80, }, Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualText": "省份", + "actualTextHeight": 16, + "actualTextWidth": 25, + "height": 64, "multiLineActualTexts": Array [ - "办公用品", + "省份", ], - "originalText": "办公用品", + "originalText": "省份", "width": 103.8, }, Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualText": "城市城市城市城市城市城市城市城市城市城市...", + "actualTextHeight": 48, + "actualTextWidth": 253, + "height": 64, "multiLineActualTexts": Array [ - "办公用品", + "城市城市城市城", + "市城市城市城市", + "城市城市城市...", ], - "originalText": "办公用品", + "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", "width": 103.8, }, Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualTextHeight": 48, + "actualTextWidth": 243, + "height": 64, "multiLineActualTexts": Array [ - "办公用品", + "类别类别类别类", + "别类别类别类别", + "类别类别类别", ], - "originalText": "办公用品", + "originalText": "类别类别类别类别类别类别类别类别类别类别", "width": 103.8, }, Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "height": 20, + "actualText": "子类别", + "actualTextHeight": 16, + "actualTextWidth": 37, + "height": 64, "multiLineActualTexts": Array [ - "办公用品", + "子类别", ], - "originalText": "办公用品", + "originalText": "子类别", "width": 103.8, }, Object { - "actualText": "办公用品", - "actualTextHeight": 15, - "actualTextWidth": 49, - "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": 49, - "height": 20, + "actualTextWidth": 7, + "height": 100, "multiLineActualTexts": Array [ - "办公用品", + "1", ], - "originalText": "办公用品", - "width": 103.8, + "originalText": 1, + "width": 80, }, Object { - "actualText": "办公用品", + "actualText": "2", "actualTextHeight": 15, - "actualTextWidth": 49, - "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": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 20, + "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": 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": "桌子", + "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": 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": "沙发", - "actualTextHeight": 15, - "actualTextWidth": 25, - "height": 20, + "actualText": "浙江省", + "actualTextHeight": 15, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "沙发", + "浙江省", ], - "originalText": "沙发", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, + "actualTextWidth": 37, + "height": 30, "multiLineActualTexts": Array [ - "笔", + "浙江省", ], - "originalText": "笔", + "originalText": "浙江省", "width": 103.8, }, Object { - "actualText": "笔", + "actualText": "绍兴市", "actualTextHeight": 15, - "actualTextWidth": 13, - "height": 20, + "actualTextWidth": 37, + "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": 13, - "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": "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": "7789778977897789778977897789", - "actualTextHeight": 45, - "actualTextWidth": 189, - "height": 20, + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 46, "multiLineActualTexts": Array [ - "7789778977897", - "7897789778977", - "89", + "家具", ], - "originalText": "7789778977897789778977897789", + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "236723672361111", - "actualTextHeight": 30, - "actualTextWidth": 100, - "height": 20, + "actualText": "家具", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "2367236723611", - "11", + "家具", ], - "originalText": 236723672361111, + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "3877", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "3877", + "家具", ], - "originalText": 3877, + "originalText": "家具", "width": 103.8, }, Object { - "actualText": "4342", + "actualText": "家具", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 25, + "height": 30, "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": 46, "multiLineActualTexts": Array [ - "7234", + "桌子", ], - "originalText": 7234, + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "834", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "834", + "桌子", ], - "originalText": 834, + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "945", + "actualText": "桌子", "actualTextHeight": 15, - "actualTextWidth": 21, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "945", + "桌子", ], - "originalText": 945, + "originalText": "桌子", "width": 103.8, }, Object { - "actualText": "1304", + "actualText": "沙发", "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ - "1304", + "沙发", ], - "originalText": 1304, + "originalText": "沙发", "width": 103.8, }, Object { - "actualText": "1145", - "actualTextHeight": 15, - "actualTextWidth": 26, - "height": 20, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 100, "multiLineActualTexts": Array [ - "1145", + "2367236723611", + "11", ], - "originalText": 1145, + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "1432", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualText": "7789778977897789778977897789", + "actualTextHeight": 45, + "actualTextWidth": 189, + "height": 100, "multiLineActualTexts": Array [ - "1432", + "7789778977897", + "7897789778977", + "89", ], - "originalText": 1432, + "originalText": "7789778977897789778977897789", "width": 103.8, }, Object { - "actualText": "1343", - "actualTextHeight": 15, - "actualTextWidth": 27, - "height": 20, + "actualText": "236723672361111", + "actualTextHeight": 30, + "actualTextWidth": 100, + "height": 46, "multiLineActualTexts": Array [ - "1343", + "2367236723611", + "11", ], - "originalText": 1343, + "originalText": 236723672361111, "width": 103.8, }, Object { - "actualText": "1354", + "actualText": "3877", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ - "1354", + "3877", ], - "originalText": 1354, + "originalText": 3877, "width": 103.8, }, Object { - "actualText": "1523", + "actualText": "4342", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ - "1523", + "4342", ], - "originalText": 1523, + "originalText": 4342, "width": 103.8, }, Object { - "actualText": "1634", + "actualText": "5343", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ - "1634", + "5343", ], - "originalText": 1634, + "originalText": 5343, "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 +26639,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 +26656,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "2", ], @@ -23714,7 +26667,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "3", ], @@ -23736,7 +26689,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "5", ], @@ -23776,16 +26729,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 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 +26804,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "省份", ], @@ -23804,27 +26812,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 +26837,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 64, + "height": 30, "multiLineActualTexts": Array [ "子类别", ], @@ -23841,14 +26845,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 +26858,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 +26877,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 20, + "height": 30, "multiLineActualTexts": Array [ "2", ], @@ -23886,7 +26888,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "3", ], @@ -23908,7 +26910,7 @@ Array [ "actualText": "5", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "5", ], @@ -23927,32 +26929,142 @@ Array [ "width": 80, }, Object { - "actualText": "7", + "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", + "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": 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": 7, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "7", + "浙江省", ], - "originalText": 7, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { - "actualText": "8", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 7, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "8", + "浙江省", ], - "originalText": 8, - "width": 80, + "originalText": "浙江省", + "width": 103.8, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -23960,23 +27072,21 @@ Array [ "width": 103.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...", - "actualTextHeight": 45, - "actualTextWidth": 253, - "height": 20, + "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 [ "浙江省", ], @@ -23998,7 +27108,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "浙江省", ], @@ -24042,7 +27152,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "绍兴市", ], @@ -24050,14 +27160,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, @@ -24066,7 +27174,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "绍兴市", ], @@ -24088,7 +27196,51 @@ 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 [ "舟山市", ], @@ -24128,11 +27280,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 +27303,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 +27317,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 30, "multiLineActualTexts": Array [ "家具", ], @@ -24178,7 +27339,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 +27390,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 +27446,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 +27460,18 @@ Array [ "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 46, + "height": 30, + "multiLineActualTexts": Array [ + "桌子", + ], + "originalText": "桌子", + "width": 103.8, + }, + Object { + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "height": 30, "multiLineActualTexts": Array [ "桌子", ], @@ -24259,88 +27484,128 @@ Array [ "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": "桌子", + "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, + "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": 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 +27625,7 @@ Array [ "actualText": "4342", "actualTextHeight": 15, "actualTextWidth": 27, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "4342", ], @@ -24400,16 +27665,71 @@ Array [ "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, + }, ] `; -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 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 80, "multiLineActualTexts": Array [ "序号", ], @@ -24419,13 +27739,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 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "1", ], @@ -24436,7 +27756,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 91, "multiLineActualTexts": Array [ "2", ], @@ -24447,7 +27767,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "3", ], @@ -24458,23 +27778,67 @@ Array [ "actualText": "4", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "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 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 3`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 80, "multiLineActualTexts": Array [ "序号", ], @@ -24485,7 +27849,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 80, "multiLineActualTexts": Array [ "省份", ], @@ -24493,14 +27857,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 +27874,7 @@ Array [ "actualText": "类别类别类别类别类别类别类别类别类别类别", "actualTextHeight": 48, "actualTextWidth": 243, - "height": 64, + "height": 80, "multiLineActualTexts": Array [ "类别类别类别类", "别类别类别类别", @@ -24522,7 +27887,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 64, + "height": 80, "multiLineActualTexts": Array [ "子类别", ], @@ -24530,14 +27895,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,59 +27911,103 @@ 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 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 5`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 46, + "multiLineActualTexts": Array [ + "1", + ], + "originalText": 1, + "width": 80, + }, + Object { + "actualText": "2", + "actualTextHeight": 15, + "actualTextWidth": 7, + "height": 91, + "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 [ - "1", + "5", ], - "originalText": 1, + "originalText": 5, "width": 80, }, Object { - "actualText": "2", + "actualText": "6", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ - "2", + "6", ], - "originalText": 2, + "originalText": 6, "width": 80, }, Object { - "actualText": "3", + "actualText": "7", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ - "3", + "7", ], - "originalText": 3, + "originalText": 7, "width": 80, }, Object { - "actualText": "4", + "actualText": "8", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ - "4", + "8", ], - "originalText": 4, + "originalText": 8, "width": 80, }, Object { "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], @@ -24605,14 +28015,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 +28033,7 @@ Array [ "actualText": "浙江省", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "浙江省", ], @@ -24632,7 +28044,51 @@ 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 [ "浙江省", ], @@ -24643,7 +28099,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "绍兴市", ], @@ -24651,14 +28107,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, @@ -24667,7 +28125,7 @@ Array [ "actualText": "绍兴市", "actualTextHeight": 15, "actualTextWidth": 37, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "绍兴市", ], @@ -24678,7 +28136,51 @@ 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 [ "宁波市", ], @@ -24689,7 +28191,7 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "家具", ], @@ -24697,14 +28199,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, @@ -24713,7 +28216,62 @@ Array [ "actualText": "家具", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 100, + "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 [ "家具", ], @@ -24721,21 +28279,58 @@ Array [ "width": 103.8, }, Object { - "actualText": "家具", + "actualText": "桌子", + "actualTextHeight": 15, + "actualTextWidth": 25, + "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": 25, + "height": 46, + "multiLineActualTexts": Array [ + "桌子", + ], + "originalText": "桌子", + "width": 103.8, + }, + Object { + "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ - "家具", + "桌子", ], - "originalText": "家具", + "originalText": "桌子", "width": 103.8, }, Object { "actualText": "桌子", "actualTextHeight": 15, "actualTextWidth": 25, - "height": 100, + "height": 30, "multiLineActualTexts": Array [ "桌子", ], @@ -24743,45 +28338,43 @@ 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": "桌子", + "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": "236723672361111", "actualTextHeight": 30, "actualTextWidth": 100, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "2367236723611", "11", @@ -24793,7 +28386,7 @@ Array [ "actualText": "7789778977897789778977897789", "actualTextHeight": 45, "actualTextWidth": 189, - "height": 100, + "height": 91, "multiLineActualTexts": Array [ "7789778977897", "7897789778977", @@ -24806,7 +28399,7 @@ Array [ "actualText": "236723672361111", "actualTextHeight": 30, "actualTextWidth": 100, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "2367236723611", "11", @@ -24818,23 +28411,67 @@ 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, + }, ] `; -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 if actual text contains "\\n" 1`] = ` Array [ Object { "actualText": "序号", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 80, "multiLineActualTexts": Array [ "序号", ], @@ -24844,13 +28481,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 if actual text contains "\\n" 2`] = ` Array [ Object { "actualText": "1", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 61, "multiLineActualTexts": Array [ "1", ], @@ -24861,7 +28498,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "2", ], @@ -24872,7 +28509,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 91, "multiLineActualTexts": Array [ "3", ], @@ -24883,7 +28520,7 @@ Array [ "actualText": "4", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "4", ], @@ -24912,16 +28549,27 @@ Array [ "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.heightByField 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 [ "序号", ], @@ -24932,7 +28580,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 64, + "height": 80, "multiLineActualTexts": Array [ "省份", ], @@ -24940,14 +28588,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 +28605,7 @@ Array [ "actualText": "类别类别类别类别类别类别类别类别类别类别", "actualTextHeight": 48, "actualTextWidth": 243, - "height": 64, + "height": 80, "multiLineActualTexts": Array [ "类别类别类别类", "别类别类别类别", @@ -24969,7 +28618,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 64, + "height": 80, "multiLineActualTexts": Array [ "子类别", ], @@ -24977,14 +28626,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 +28642,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 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.heightByField 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", ], @@ -25011,7 +28661,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 100, + "height": 46, "multiLineActualTexts": Array [ "2", ], @@ -25022,7 +28672,7 @@ Array [ "actualText": "3", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 46, + "height": 91, "multiLineActualTexts": Array [ "3", ], @@ -25033,7 +28683,7 @@ Array [ "actualText": "4", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 46, "multiLineActualTexts": Array [ "4", ], @@ -25062,11 +28712,35 @@ Array [ "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 [ "浙江省", ], @@ -25074,14 +28748,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, @@ -25130,11 +28806,26 @@ 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 [ "绍兴市", ], @@ -25142,14 +28833,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 +28891,24 @@ 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": 100, + "height": 46, "multiLineActualTexts": Array [ "家具", ], @@ -25210,14 +28916,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, @@ -25266,11 +28973,22 @@ 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 [ "桌子", ], @@ -25278,14 +28996,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, @@ -25334,11 +29054,22 @@ 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", @@ -25350,7 +29081,7 @@ Array [ "actualText": "7789778977897789778977897789", "actualTextHeight": 45, "actualTextWidth": 189, - "height": 100, + "height": 91, "multiLineActualTexts": Array [ "7789778977897", "7897789778977", @@ -25407,7 +29138,7 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 1`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLines if actual text contains "\\n" 1`] = ` Array [ Object { "actualText": "序号", @@ -25423,7 +29154,7 @@ Array [ ] `; -exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 2`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLines if actual text contains "\\n" 2`] = ` Array [ Object { "actualText": "1", @@ -25568,10 +29299,76 @@ 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": "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 not render word wrap text 3`] = ` +exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLines if actual text contains "\\n" 3`] = ` Array [ Object { "actualText": "序号", @@ -25593,29 +29390,29 @@ Array [ "省份", ], "originalText": "省份", - "width": 103.8, + "width": 143.8, }, Object { - "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市", + "actualText": "城市城市城市城市城...", "actualTextHeight": 16, - "actualTextWidth": 289, + "actualTextWidth": 119, "height": 30, "multiLineActualTexts": Array [ - "城市城市城市城市城市城市城市城市城市城市城市城市", + "城市城市城市城市城...", ], "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市", - "width": 103.8, + "width": 143.8, }, Object { - "actualText": "类别类别类别类别类别类别类别类别类别类别", + "actualText": "类别类别类别类别类...", "actualTextHeight": 16, - "actualTextWidth": 241, + "actualTextWidth": 119, "height": 30, "multiLineActualTexts": Array [ - "类别类别类别类别类别类别类别类别类别类别", + "类别类别类别类别类...", ], "originalText": "类别类别类别类别类别类别类别类别类别类别", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "子类别", @@ -25626,25 +29423,25 @@ Array [ "子类别", ], "originalText": "子类别", - "width": 103.8, + "width": 143.8, }, Object { - "actualText": "数量数量数量数量数量数量数量数量数量数量数量", + "actualText": "数量数量数量数量数...", "actualTextHeight": 16, - "actualTextWidth": 265, + "actualTextWidth": 119, "height": 30, "multiLineActualTexts": Array [ - "数量数量数量数量数量数量数量数量数量数量数量", + "数量数量数量数量数...", ], "originalText": "数量数量数量数量数量数量数量数量数量数量数量", - "width": 103.8, + "width": 143.8, }, ] `; -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 maxLines if actual text contains "\\n" 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 maxLines if actual text contains "\\n" 5`] = ` Array [ Object { "actualText": "1", @@ -25737,57 +29534,190 @@ 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": "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, + }, + 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, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "9", + "浙江省", ], - "originalText": 9, - "width": 80, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "10", + "actualText": "浙江省浙江省浙江省...", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 119, "height": 30, "multiLineActualTexts": Array [ - "10", + "浙江省浙江省浙江省...", ], - "originalText": 10, - "width": 80, + "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "width": 143.8, }, Object { - "actualText": "11", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 13, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "11", + "浙江省", ], - "originalText": 11, - "width": 80, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "12", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "12", + "浙江省", ], - "originalText": 12, - "width": 80, + "originalText": "浙江省", + "width": 143.8, }, Object { - "actualText": "13", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 14, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "13", + "浙江省", ], - "originalText": 13, - "width": 80, + "originalText": "浙江省", + "width": 143.8, }, Object { "actualText": "浙江省", @@ -25798,18 +29728,18 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, + "width": 143.8, }, Object { - "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "actualText": "浙江省", "actualTextHeight": 15, - "actualTextWidth": 361, + "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", + "浙江省", ], - "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省", - "width": 103.8, + "originalText": "浙江省", + "width": 143.8, }, Object { "actualText": "浙江省", @@ -25820,7 +29750,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "浙江省", @@ -25831,7 +29761,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "浙江省", @@ -25842,7 +29772,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "浙江省", @@ -25853,7 +29783,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "浙江省", @@ -25864,7 +29794,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "浙江省", @@ -25875,7 +29805,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "浙江省", @@ -25886,7 +29816,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "浙江省", @@ -25897,7 +29827,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "浙江省", @@ -25908,7 +29838,7 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "浙江省", @@ -25919,18 +29849,31 @@ Array [ "浙江省", ], "originalText": "浙江省", - "width": 103.8, + "width": 143.8, }, Object { - "actualText": "浙江省", + "actualText": "四川省", "actualTextHeight": 15, "actualTextWidth": 37, "height": 30, "multiLineActualTexts": Array [ - "浙江省", + "四川省", ], - "originalText": "浙江省", - "width": 103.8, + "originalText": "四川省", + "width": 143.8, + }, + Object { + "actualText": "杭州...", + "actualTextHeight": 15, + "actualTextWidth": 35, + "height": 30, + "multiLineActualTexts": Array [ + "杭州...", + ], + "originalText": "杭州 +杭州 +杭州", + "width": 143.8, }, Object { "actualText": "绍兴市", @@ -25941,18 +29884,18 @@ Array [ "绍兴市", ], "originalText": "绍兴市", - "width": 103.8, + "width": 143.8, }, Object { - "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "actualText": "杭州市杭州市杭州市...", "actualTextHeight": 15, - "actualTextWidth": 361, + "actualTextWidth": 119, "height": 30, "multiLineActualTexts": Array [ - "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", + "杭州市杭州市杭州市...", ], "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "绍兴市", @@ -25963,7 +29906,7 @@ Array [ "绍兴市", ], "originalText": "绍兴市", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "宁波市", @@ -25974,7 +29917,7 @@ Array [ "宁波市", ], "originalText": "宁波市", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "舟山市", @@ -25985,7 +29928,7 @@ Array [ "舟山市", ], "originalText": "舟山市", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "杭州市", @@ -25996,7 +29939,7 @@ Array [ "杭州市", ], "originalText": "杭州市", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "绍兴市", @@ -26007,7 +29950,7 @@ Array [ "绍兴市", ], "originalText": "绍兴市", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "宁波市", @@ -26018,7 +29961,7 @@ Array [ "宁波市", ], "originalText": "宁波市", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "舟山市", @@ -26029,7 +29972,7 @@ Array [ "舟山市", ], "originalText": "舟山市", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "杭州市", @@ -26040,7 +29983,7 @@ Array [ "杭州市", ], "originalText": "杭州市", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "绍兴市", @@ -26051,7 +29994,7 @@ Array [ "绍兴市", ], "originalText": "绍兴市", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "宁波市", @@ -26062,7 +30005,7 @@ Array [ "宁波市", ], "originalText": "宁波市", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "舟山市", @@ -26073,7 +30016,74 @@ Array [ "舟山市", ], "originalText": "舟山市", - "width": 103.8, + "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": 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": 35, + "height": 30, + "multiLineActualTexts": Array [ + "纸张...", + ], + "originalText": "纸张 +纸张", + "width": 143.8, }, Object { "actualText": "家具", @@ -26084,18 +30094,18 @@ Array [ "家具", ], "originalText": "家具", - "width": 103.8, + "width": 143.8, }, Object { - "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "actualText": "家具家具家具家具家...", "actualTextHeight": 15, - "actualTextWidth": 337, + "actualTextWidth": 119, "height": 30, "multiLineActualTexts": Array [ - "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", + "家具家具家具家具家...", ], "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "家具", @@ -26106,7 +30116,51 @@ Array [ "家具", ], "originalText": "家具", - "width": 103.8, + "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, + }, + 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, }, Object { "actualText": "家具", @@ -26117,7 +30171,7 @@ Array [ "家具", ], "originalText": "家具", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "家具", @@ -26128,51 +30182,51 @@ Array [ "家具", ], "originalText": "家具", - "width": 103.8, + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 49, "height": 30, "multiLineActualTexts": Array [ - "家具", + "办公用品", ], - "originalText": "家具", - "width": 103.8, + "originalText": "办公用品", + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 49, "height": 30, "multiLineActualTexts": Array [ - "家具", + "办公用品", ], - "originalText": "家具", - "width": 103.8, + "originalText": "办公用品", + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 49, "height": 30, "multiLineActualTexts": Array [ - "家具", + "办公用品", ], - "originalText": "家具", - "width": 103.8, + "originalText": "办公用品", + "width": 143.8, }, Object { - "actualText": "家具", + "actualText": "办公用品", "actualTextHeight": 15, - "actualTextWidth": 25, + "actualTextWidth": 49, "height": 30, "multiLineActualTexts": Array [ - "家具", + "办公用品", ], - "originalText": "家具", - "width": 103.8, + "originalText": "办公用品", + "width": 143.8, }, Object { "actualText": "办公用品", @@ -26183,7 +30237,7 @@ Array [ "办公用品", ], "originalText": "办公用品", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "办公用品", @@ -26194,7 +30248,7 @@ Array [ "办公用品", ], "originalText": "办公用品", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "办公用品", @@ -26205,7 +30259,7 @@ Array [ "办公用品", ], "originalText": "办公用品", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "办公用品", @@ -26216,7 +30270,29 @@ Array [ "办公用品", ], "originalText": "办公用品", - "width": 103.8, + "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": "桌子", @@ -26227,18 +30303,18 @@ Array [ "桌子", ], "originalText": "桌子", - "width": 103.8, + "width": 143.8, }, Object { - "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "actualText": "桌子桌子桌子桌子桌...", "actualTextHeight": 15, - "actualTextWidth": 361, + "actualTextWidth": 119, "height": 30, "multiLineActualTexts": Array [ - "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", + "桌子桌子桌子桌子桌...", ], "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "桌子", @@ -26249,7 +30325,7 @@ Array [ "桌子", ], "originalText": "桌子", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "桌子", @@ -26260,7 +30336,7 @@ Array [ "桌子", ], "originalText": "桌子", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "桌子", @@ -26271,7 +30347,7 @@ Array [ "桌子", ], "originalText": "桌子", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "沙发", @@ -26282,7 +30358,7 @@ Array [ "沙发", ], "originalText": "沙发", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "沙发", @@ -26293,7 +30369,7 @@ Array [ "沙发", ], "originalText": "沙发", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "沙发", @@ -26304,7 +30380,7 @@ Array [ "沙发", ], "originalText": "沙发", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "沙发", @@ -26315,7 +30391,7 @@ Array [ "沙发", ], "originalText": "沙发", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "笔", @@ -26326,7 +30402,7 @@ Array [ "笔", ], "originalText": "笔", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "笔", @@ -26337,7 +30413,7 @@ Array [ "笔", ], "originalText": "笔", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "笔", @@ -26348,7 +30424,7 @@ Array [ "笔", ], "originalText": "笔", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "笔", @@ -26359,7 +30435,73 @@ Array [ "笔", ], "originalText": "笔", - "width": 103.8, + "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, + }, + 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, + }, + 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", @@ -26370,18 +30512,18 @@ Array [ "236723672361111", ], "originalText": 236723672361111, - "width": 103.8, + "width": 143.8, }, Object { - "actualText": "7789778977897789778977897789", + "actualText": "77897789778977897...", "actualTextHeight": 15, - "actualTextWidth": 187, + "actualTextWidth": 124, "height": 30, "multiLineActualTexts": Array [ - "7789778977897789778977897789", + "77897789778977897...", ], "originalText": "7789778977897789778977897789", - "width": 103.8, + "width": 143.8, }, Object { "actualText": "236723672361111", @@ -26392,7 +30534,7 @@ Array [ "236723672361111", ], "originalText": 236723672361111, - "width": 103.8, + "width": 143.8, }, Object { "actualText": "3877", @@ -26403,7 +30545,7 @@ Array [ "3877", ], "originalText": 3877, - "width": 103.8, + "width": 143.8, }, Object { "actualText": "4342", @@ -26414,7 +30556,7 @@ Array [ "4342", ], "originalText": 4342, - "width": 103.8, + "width": 143.8, }, Object { "actualText": "5343", @@ -26425,7 +30567,7 @@ Array [ "5343", ], "originalText": 5343, - "width": 103.8, + "width": 143.8, }, Object { "actualText": "632", @@ -26436,7 +30578,7 @@ Array [ "632", ], "originalText": 632, - "width": 103.8, + "width": 143.8, }, Object { "actualText": "7234", @@ -26447,7 +30589,7 @@ Array [ "7234", ], "originalText": 7234, - "width": 103.8, + "width": 143.8, }, Object { "actualText": "834", @@ -26458,7 +30600,7 @@ Array [ "834", ], "originalText": 834, - "width": 103.8, + "width": 143.8, }, Object { "actualText": "945", @@ -26469,7 +30611,7 @@ Array [ "945", ], "originalText": 945, - "width": 103.8, + "width": 143.8, }, Object { "actualText": "1304", @@ -26480,7 +30622,7 @@ Array [ "1304", ], "originalText": 1304, - "width": 103.8, + "width": 143.8, }, Object { "actualText": "1145", @@ -26491,7 +30633,7 @@ Array [ "1145", ], "originalText": 1145, - "width": 103.8, + "width": 143.8, }, Object { "actualText": "1432", @@ -26501,19 +30643,74 @@ Array [ "multiLineActualTexts": Array [ "1432", ], - "originalText": 1432, - "width": 103.8, + "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, + }, + Object { + "actualText": "1634", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1634", + ], + "originalText": 1634, + "width": 143.8, + }, + Object { + "actualText": "1723", + "actualTextHeight": 15, + "actualTextWidth": 27, + "height": 30, + "multiLineActualTexts": Array [ + "1723", + ], + "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 [ "序号", ], @@ -26523,7 +30720,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", @@ -26540,7 +30737,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 61, "multiLineActualTexts": Array [ "2", ], @@ -26712,38 +30909,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 [ "序号", ], @@ -26754,7 +30929,7 @@ Array [ "actualText": "省份", "actualTextHeight": 16, "actualTextWidth": 25, - "height": 30, + "height": 64, "multiLineActualTexts": Array [ "省份", ], @@ -26762,23 +30937,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, @@ -26787,7 +30965,7 @@ Array [ "actualText": "子类别", "actualTextHeight": 16, "actualTextWidth": 37, - "height": 30, + "height": 64, "multiLineActualTexts": Array [ "子类别", ], @@ -26795,12 +30973,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, @@ -26808,9 +30988,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", @@ -26827,7 +31007,7 @@ Array [ "actualText": "2", "actualTextHeight": 15, "actualTextWidth": 7, - "height": 30, + "height": 61, "multiLineActualTexts": Array [ "2", ], @@ -26999,40 +31179,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, @@ -27045,12 +31191,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, @@ -27220,30 +31367,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, @@ -27256,12 +31379,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, @@ -27431,29 +31555,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, @@ -27466,11 +31567,12 @@ Array [ "width": 143.8, }, Object { - "actualText": "家具家具家具家具家...", - "actualTextHeight": 15, - "actualTextWidth": 119, - "height": 30, + "actualText": "家具家具家具家具家具家具家具家具家具家...", + "actualTextHeight": 30, + "actualTextWidth": 240, + "height": 61, "multiLineActualTexts": Array [ + "家具家具家具家具家具", "家具家具家具家具家...", ], "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具", @@ -27641,28 +31743,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, @@ -27675,11 +31755,12 @@ Array [ "width": 143.8, }, Object { - "actualText": "桌子桌子桌子桌子桌...", - "actualTextHeight": 15, - "actualTextWidth": 119, - "height": 30, + "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...", + "actualTextHeight": 30, + "actualTextWidth": 240, + "height": 61, "multiLineActualTexts": Array [ + "桌子桌子桌子桌子桌子", "桌子桌子桌子桌子桌...", ], "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子", @@ -27850,28 +31931,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, @@ -27884,12 +31943,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, @@ -28059,17 +32119,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/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/multi-line-text-spec.ts b/packages/s2-core/__tests__/spreadsheet/multi-line-text-spec.ts index 2d7b38670f..7e6b1aa366 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); @@ -568,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', () => { @@ -1063,5 +1097,60 @@ 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(); + }); + + 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__/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/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 c4e218eb43..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 @@ -113,6 +113,35 @@ 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": Infinity, + "maxLinesByField": Object { + "test-a": 1, + "test-b": 1, + }, + "textOverflow": "ellipsis", + "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", + "wordWrap": true, +} +`; + exports[`Interaction Row Column Resize Tests should get vertical filed resize style by field for current resize type 1`] = ` Object { "height": undefined, @@ -153,6 +182,21 @@ Object { } `; +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 { + "testField": 1, + }, + "textOverflow": "ellipsis", + "wordWrap": true, +} +`; + exports[`Interaction Row Column Resize Tests should not effect default resize style by field for selected resize type 1`] = ` Object { "height": 30, @@ -185,7 +229,10 @@ Object { "heightByField": Object { "testField": 2, }, - "maxLines": 1, + "maxLines": 3, + "maxLinesByField": Object { + "testField": 1, + }, "showTreeLeafNodeAlignDot": false, "textOverflow": "ellipsis", "wordWrap": true, @@ -195,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 d07288ceea..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 @@ -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,16 @@ describe('Interaction Row Column Resize Tests', () => { const resize = jest.fn(); const rowWidthResize = jest.fn(); + s2.setOptions({ + style: { + rowCell: { + maxLines: 3, + }, + dataCell: { + maxLines: Infinity, + }, + }, + }); s2.on(S2Event.LAYOUT_RESIZE, resize); s2.on(S2Event.LAYOUT_RESIZE_ROW_HEIGHT, rowWidthResize); @@ -418,6 +436,7 @@ describe('Interaction Row Column Resize Tests', () => { meta: { field: 'testField', } as Node, + cell: mockCell, }; emitResizeEvent( @@ -450,6 +469,9 @@ describe('Interaction Row Column Resize Tests', () => { heightByField: { [resizeInfo.meta.field!]: 2, }, + maxLinesByField: { + [resizeInfo.meta.field!]: 1, + }, }, }, }; @@ -592,17 +614,34 @@ describe('Interaction Row Column Resize Tests', () => { }); test('should get vertical filed resize style', () => { - const resizeInfo = emitResize( - ResizeDirectionType.Vertical, - ResizeAreaEffect.Field, - ); + emitResize(ResizeDirectionType.Vertical, ResizeAreaEffect.Field); - expect(s2.options.style!.colCell!.heightByField).toEqual({ - [resizeInfo.meta.field!]: resizeInfo.height, + expect(s2.options.style!.colCell).toMatchSnapshot(); + }); + + test('should get vertical filed resize style for height adaptive', () => { + s2.setOptions({ + style: { + colCell: { + maxLines: 3, + }, + }, }); + + emitResize(ResizeDirectionType.Vertical, ResizeAreaEffect.Field); + + expect(s2.options.style!.colCell).toMatchSnapshot(); }); test('should get vertical custom filed resize style', () => { + s2.setOptions({ + style: { + colCell: { + maxLines: Infinity, + }, + }, + }); + jest.spyOn(s2, 'isCustomColumnFields').mockImplementationOnce(() => true); jest .spyOn(s2.facet, 'getColNodes') @@ -612,17 +651,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 +754,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__/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-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..7749941daf 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 getResizedTextMaxLines(): number | void {} + /* -------------------------------------------------------------------------- */ /* common functions that will be used in subtype */ /* -------------------------------------------------------------------------- */ @@ -299,6 +301,13 @@ export abstract class BaseCell extends Group { return this.textShape?.getLineBoundingRects() || []; } + /** + * 获取文本包围盒 + */ + public getTextLineHeight() { + return this.textShape?.parsedStyle?.metrics?.lineHeight; + } + /** * 获取单元格空值占位符 */ @@ -477,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.getResizedTextMaxLines() || textStyle?.maxLines; // 在坐标计算 (getTextPosition) 之前, 预渲染一次, 提前生成 textShape, 获得文字宽度, 用于计算 icon 绘制坐标 this.renderTextShape({ @@ -485,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 2dfe02f3e0..16e4f09f48 100644 --- a/packages/s2-core/src/cell/col-cell.ts +++ b/packages/s2-core/src/cell/col-cell.ts @@ -290,6 +290,7 @@ export class ColCell extends HeaderCell { width: resizeAreaWidth, height, meta: this.meta, + cell: this, }); resizeArea.appendChild( @@ -443,6 +444,7 @@ export class ColCell extends HeaderCell { width, height, meta: this.meta, + cell: this, }); resizeArea.appendChild( @@ -580,4 +582,13 @@ export class ColCell extends HeaderCell { return isNextSiblingNodeHidden && isPrevSiblingNodeHidden; } + + protected getResizedTextMaxLines() { + 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 c994183c85..bfc193d61c 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( @@ -271,4 +272,14 @@ export class CornerCell extends HeaderCell { this.spreadsheet.dataSet.getFieldName(this.meta.field), ); } + + protected getResizedTextMaxLines() { + // 角头和列头高度一致 + 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 87cfadc644..7db9a1fcae 100644 --- a/packages/s2-core/src/cell/data-cell.ts +++ b/packages/s2-core/src/cell/data-cell.ts @@ -508,4 +508,14 @@ export class DataCell extends BaseCell { updateShapeAttr(this.conditionIconShapes, SHAPE_STYLE_MAP.opacity, opacity); } + + protected getResizedTextMaxLines() { + 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 14e67847c1..03840d442b 100644 --- a/packages/s2-core/src/cell/row-cell.ts +++ b/packages/s2-core/src/cell/row-cell.ts @@ -293,6 +293,7 @@ export class RowCell extends HeaderCell { width, height, meta: this.meta, + cell: this, }); resizeArea.appendChild( @@ -490,4 +491,13 @@ export class RowCell extends HeaderCell { return { x: textX, y: textStart }; } + + protected getResizedTextMaxLines() { + const { rowCell } = this.spreadsheet.options.style!; + + return ( + rowCell?.maxLinesByField?.[this.meta.id] ?? + rowCell?.maxLinesByField?.[this.meta.field] + ); + } } 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..a69d4ceb87 100644 --- a/packages/s2-core/src/common/interface/resize.ts +++ b/packages/s2-core/src/common/interface/resize.ts @@ -64,8 +64,9 @@ export interface ResizeInfo { isResizeArea?: boolean; isResizeMask?: boolean; - /** 当前拖拽热区对应的节点信息 */ + /** 当前拖拽热区对应的单元格/节点信息 */ meta: Node | ViewMeta; + cell: S2CellType; /** 拖拽后的宽度 */ resizedWidth?: number; 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 c0f0bbf8bc..a1e2aa53eb 100644 --- a/packages/s2-core/src/interaction/row-column-resize.ts +++ b/packages/s2-core/src/interaction/row-column-resize.ts @@ -7,9 +7,10 @@ import { } from '@antv/g'; import { clone, isEmpty, throttle } from 'lodash'; import type { + CellTextWordWrapStyle, + DefaultCellTheme, ResizeInteractionOptions, ResizeParams, - RowCellStyle, } from '../common'; import { InterceptType, @@ -380,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(); @@ -388,9 +390,11 @@ export class RowColumnResize extends BaseEvent implements BaseEventImplement { return { eventType: S2Event.LAYOUT_RESIZE_COL_HEIGHT, style: { - colCell: { - heightByField: this.getHeightByField(resizeInfo, displayHeight!), - }, + colCell: this.getResizedCellStyleByField( + this.getColCellHeightByField(resizeInfo, displayHeight!), + style?.colCell!, + displayHeight, + ), }, }; @@ -399,10 +403,14 @@ export class RowColumnResize extends BaseEvent implements BaseEventImplement { eventType: S2Event.LAYOUT_RESIZE_ROW_HEIGHT, style: { rowCell: { + ...this.getResizedCellStyleByField( + this.getCellStyleByField(displayHeight), + style?.rowCell!, + displayHeight, + ), height: !this.isEffectRowOf(ResizeType.ALL) ? undefined : displayHeight, - heightByField: this.getCellStyleByField(displayHeight), }, }, }; @@ -412,10 +420,49 @@ export class RowColumnResize extends BaseEvent implements BaseEventImplement { } } - private getHeightByField( + 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: cellTheme } = cell?.getStyle() as DefaultCellTheme; + const padding = cellTheme!.padding!.top! + cellTheme!.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() || @@ -428,7 +475,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; 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(() => {}); }); diff --git a/packages/s2-react/playground/index.tsx b/packages/s2-react/playground/index.tsx index 1b603276ef..e6e82a73e7 100644 --- a/packages/s2-react/playground/index.tsx +++ b/packages/s2-react/playground/index.tsx @@ -196,10 +196,6 @@ function MainLayout() { }); }; - const onSheetTypeChange = (e: RadioChangeEvent) => { - setSheetType(e.target.value); - }; - const logHandler = (name: string, callback?: (...args: any[]) => void) => (...args: any[]) => { @@ -236,10 +232,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); @@ -250,8 +248,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 48af577530..661bdad5fe 100644 --- a/packages/s2-react/src/hooks/useSpreadSheet.ts +++ b/packages/s2-react/src/hooks/useSpreadSheet.ts @@ -133,7 +133,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..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` | @@ -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, ],