diff --git a/.eslintrc.js b/.eslintrc.js index d0205f56a7..a0d0701bbe 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -43,7 +43,12 @@ module.exports = { tabWidth: 2, trailingComma: 'all', printWidth: 80, + arrowParens: 'always', proseWrap: 'never', + htmlWhitespaceSensitivity: 'css', + embeddedLanguageFormatting: 'auto', + singleAttributePerLine: false, + bracketSpacing: true, overrides: [ { files: '.eslintrc', options: { parser: 'json' } }, { files: '.prettierrc', options: { parser: 'json' } }, @@ -57,7 +62,7 @@ module.exports = { ], 'import/no-duplicates': [2, { considerQueryString: true }], 'import/no-deprecated': 1, - 'import/no-cycle': 1, + 'import/no-cycle': 2, 'import/order': [ 2, { diff --git a/.github/ISSUE_TEMPLATE/ask-for-question.md b/.github/ISSUE_TEMPLATE/ask-for-question.md deleted file mode 100644 index 0f42cbc17d..0000000000 --- a/.github/ISSUE_TEMPLATE/ask-for-question.md +++ /dev/null @@ -1,48 +0,0 @@ ---- -name: 🤔 Ask for question -about: Look for some help or ask question -title: '🤔' -labels: ❔question ---- - - - - - - -### 🏷 Version - - - - - -| Package | Version | -| -------------- | ------- | -| @antv/s2 | | -| @antv/s2-react | | -| @antv/s2-vue | | - -### Sheet Type - - - - -- [ ] PivotSheet -- [ ] TableSheet -- [ ] GridAnalysisSheet -- [ ] StrategySheet -- [ ] EditableSheet - -### 🖋 Description - - - - -### 🔗 Reproduce Link - - - - -### 😊 Expected Behavior - -### 😅 Current Behavior diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md deleted file mode 100644 index 916dadda53..0000000000 --- a/.github/ISSUE_TEMPLATE/bug-report.md +++ /dev/null @@ -1,91 +0,0 @@ ---- -name: 🐛 Bug report -about: Let us know something is wrong. -title: '🐛' ---- - - - - -### 🏷 Version - - - - - - -| Package | Version | -| -------------- | ------- | -| @antv/s2 | | -| @antv/s2-react | | -| @antv/s2-vue | | - -### Sheet Type - - - - -- [ ] PivotSheet -- [ ] TableSheet -- [ ] GridAnalysisSheet -- [ ] StrategySheet -- [ ] EditableSheet - -### 🖋 Description - - - - -### ⌨️ Code Snapshots - - - - - - -### 🔗 Reproduce Link - - - - -### 🤔 Steps to Reproduce - - - - -### 😊 Expected Behavior - - - - -### 😅 Current Behavior - - - - -### 💻 System information - - - - -| Environment | Info | -| ------- | ------- | -| System | | -| Browser | | diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml new file mode 100644 index 0000000000..0bb233dc53 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -0,0 +1,152 @@ +name: '🐛 Bug report' +description: Create a report to help us improve, Ask questions in Discussions / 创建一个问题报告以帮助我们改进,提问请到 Discussions +title: '🐛' +body: + - type: markdown + attributes: + value: | + Report errors and exceptions found in S2. + + Before submitting a new bug/issue, please check the links below to see if there is a solution or question posted there already: + + --- + + ### 反馈在 S2 中发现的错误、异常 ([提 Issue 前必读](https://github.com/antvis/S2/issues/1904))。 + + ⚠️ 在提出问题前,请确保你已经仔细阅读👓/搜索🔍过 [官方文档](https://s2.antv.antgroup.com) 和 [常见问题](https://s2.antv.antgroup.com/manual/faq) 以及 [图表示例](https://s2.antv.antgroup.com/examples), 并且已经搜索查阅过相关 [Issues 列表](https://github.com/antvis/S2/issues?q=is%3Aissue+is%3Aclosed) 和 [Discussions 列表](https://github.com/antvis/S2/discussions). 当你确定自己的问题没有解决方案时,请提交 issue。 ⚠️ + + 如果是使用问题,不知道怎么用,请移步 [Discussions 讨论区](https://github.com/antvis/S2/discussions) 并提供 [有效信息](https://github.com/antvis/S2/issues/1904) 进行[提问](https://github.com/antvis/S2/discussions/new?category=q-a)。 + + ### 参与社区共建 + + **这是一个开源项目, 我们也有繁忙的业务要做, 是用自己的业余时间在维护, 为爱发电, 精力有限, 所以有时候 issue 响应速度不是那么及时, 如果你遇到了问题, 或者对 [Issues](https://github.com/antvis/S2/issues) 和 [Discussions](https://github.com/antvis/S2/discussions) 列表的问题感兴趣, 可以直接认领并尝试修复 ([贡献指南](https://s2.antv.antgroup.com/manual/contribution)),帮助 S2 变得更好, 而不是一味的埋怨和催促, 我们不是甲方乙方的关系.** + + - type: textarea + id: version + attributes: + label: 🏷 S2 Version / S2 版本 + description: | + 请填写你实际安装到 node_modules 中的具体版本号,请确保你已经尝试过安装最新版本解决问题,并且本地和官网都能复现该问题. + 请不要写 `latest`, `2.x` 这种没有意义的版本号, + placeholder: | + 复制下方的表格, 修改对应版本号即可: + + | Package | Version | + | -------------- | ------- | + | @antv/s2 | 2.0.0 | + | @antv/s2-react | 2.0.0 | + | @antv/s2-react-components | 2.0.0 | + value: | + | Package | Version | + | -------------- | ------- | + | @antv/s2 | | + | @antv/s2-react | | + | @antv/s2-react-components | | + + validations: + required: true + + - type: checkboxes + id: sheet-type + attributes: + label: 💻 Sheet Type / 表格类型 + description: | + 请选择你具体使用的表格,这能帮助我们更快的定位问题 + options: + - label: PivotSheet + - label: TableSheet + - label: GridAnalysisSheet + - label: StrategySheet + - label: EditableSheet + + - type: textarea + id: description + attributes: + label: 🖋 Describe the bug / 问题描述 + description: | + 1. 请填写你具体的问题描述,**请不要惜字如金,尽可能的多提供一些你能想到的有用信息**。 + 2. 请至少懂表格的基本概念,会基本的 JavaScript, 统一用语,不要将 `行头` 说成 `列头`, `列头` 说成 `表头`, 统一用语,可以减少我们的沟通成本。 + + validations: + required: true + + - type: textarea + id: code + attributes: + label: ⌨️ Code Snapshots / 代码片段 + description: | + 1. 请粘贴你的**核心代码片段**,包括但不限于 `报错信息`, `s2Options 配置信息`, `s2DataConfig 数据源信息`。 + 2. 请不要粘贴你自己的业务代码, 更不要无脑粘贴一大段没有格式化的 "乱码"。 + 3. 请不要**直接粘贴官网的在线示例链接, 然后告诉我们有问题, 官网不会保存你编辑后的代码**, 请粘贴 `你的代码片段`, 或者使用 [codesandbox](https://codesandbox.io/) + 4. 请尽量不要粘贴代码的截图,请使用文本. + placeholder: | + If there is a code block, please use Markdown syntax, such as: + 请注意使用 markdown code 标签: + + ```javascript + // Your code here + ``` + validations: + required: true + + - type: input + id: link + attributes: + label: 🔗 Reproduction link / 复现链接 + description: | + 1. 请提供一个精简的可复现链接,它可以让我们更快的帮你复现,定位问题,这很重要,尽量避免 gif, 视频等形式。 + 2. 推荐使用 [codesandbox](https://codesandbox.io/), 我们提供了各种版本的模板,方便你反馈问题。[查看所有模板](https://www.yuque.com/antv/vo4vyz/bam4vz)。 + 3. [官网在线示例](https://s2.antv.vision/zh/examples/gallery) 支持在线编写代码,你可以将代码转成 `codesandbox` 并将对应的链接发给我们,请不要将官网的代码原封不动的复制给我们,请不要 `这么麻烦, 还要复现链接? 赶紧给我修啊, 很急!`, 请不要 `打了一个压缩包给你, 代码都在这, 给我修吧`,更不要 `复现步骤,联系 xxx@qq.com`。 + 4. 请不要 `开局一张图,内容全靠猜`, 我们不是侦探 + validations: + required: false + + - type: textarea + id: steps + attributes: + label: 📋 Steps to Reproduce the Bug or Issue / 重现步骤 + description: | + 1. 请不要惜字如金,粘贴一个张图或者一句话就草草了事,我们需要你详细的复现步骤,这个问题需要怎么样的操作步骤才能复现。 + 2. 不同的问题有不同的复现步骤,只有你最清楚怎么复现这个问题,比如问题需要 **滚动表格到指定位置才能复现, 但是通篇都没有提到, 而你就贴一张图, 什么信息都不给**:所以请 `1. 拖动表格滚动条,滚动到 xx 位置 2. 停留 300ms, 3. tooltip 消失`。 + validations: + required: true + + - type: textarea + id: expected-behavior + attributes: + label: 😊 Expected Behavior / 期望行为 + description: | + 说明这个问题的预期行为,只有你才最了解自己的代码,所以请不要让我们猜,请说明预期,不如 `数据不对,正确应该是:xx`, `布局错误:正确应该是 A 节点在 B 位置`, 如有必要请使用截图工具标注一下, 让问题更醒目。 + validations: + required: true + + - type: textarea + id: current-behavior + attributes: + label: 😅 Current Behavior / 当前行为 + description: | + 说明这个问题当前行为, 如有必要请使用截图工具标注一下, 让问题更醒目。 + validations: + required: false + + - type: checkboxes + id: OS + attributes: + label: 💻 OS / 操作系统 + options: + - label: macOS + - label: Windows + - label: Linux + - label: Others / 其他 + + - type: checkboxes + id: Browser + attributes: + label: 🌏 Browser / 浏览器 + options: + - label: Chrome + - label: Edge + - label: Firefox + - label: Safari (Limited support / 有限支持) + - label: IE (Nonsupport / 不支持) + - label: Others / 其他 diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000000..a9145ba2b1 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,6 @@ +# Ref: https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#configuring-the-template-chooser +blank_issues_enabled: false +contact_links: + - name: 🤔 Question / 问题咨询 + url: https://github.com/antvis/S2/discussions/new?category=q-a + about: Discuss S2 usage / 讨论 S2 使用问题 diff --git a/.github/ISSUE_TEMPLATE/feature-request.md b/.github/ISSUE_TEMPLATE/feature-request.md deleted file mode 100644 index 518d3e947a..0000000000 --- a/.github/ISSUE_TEMPLATE/feature-request.md +++ /dev/null @@ -1,60 +0,0 @@ ---- -name: 🙏 Feature request -about: Suggest an idea for this project -title: '🙏' -labels: 🙏feature request ---- - - - - -### 🏷 Version - - - - - - -| Package | Version | -| -------------- | ------- | -| @antv/s2 | | -| @antv/s2-react | | -| @antv/s2-vue | | - -### Sheet Type - - - - -- [ ] PivotSheet -- [ ] TableSheet -- [ ] GridAnalysisSheet -- [ ] StrategySheet -- [ ] EditableSheet - -### 🖋 Description - - - - -### 🏞 What problem does this feature solve - - - - -### 🧐 Suggest the API - - - -| name | type | default | description | -| ---- | ---- | ------- | ----------- | -| - | - | - | - | diff --git a/.github/ISSUE_TEMPLATE/feature-request.yml b/.github/ISSUE_TEMPLATE/feature-request.yml new file mode 100644 index 0000000000..e13001974b --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature-request.yml @@ -0,0 +1,52 @@ +name: '🙏 Feature request' +description: I have a suggestion (and may want to implement it) / 我有一个建议(或者想参与贡献) +title: '🙏' +labels: ['🙏feature request'] +body: + - type: markdown + attributes: + value: | + 如果你遇到了问题,或者对 [Issues](https://github.com/antvis/S2/issues) 和 [Discussions](https://github.com/antvis/S2/discussions) 列表的问题感兴趣,**可以直接认领并尝试修复**,帮助 S2 变得更好,期待在 [贡献者列表](https://github.com/antvis/S2/graphs/contributors) 里看见你的头像。 + + S2 非常需要你的共建,请阅读 [贡献指南](https://s2.antv.antgroup.com/manual/contribution) 后提交 PR. + + - type: textarea + id: description + attributes: + label: Describe the feature / 功能描述 + placeholder: | + What problem does this feature solve? Where are the existing features not enough? + 这个功能能解决什么问题? 现有功能不满足的点在哪? + + validations: + required: true + + - type: textarea + id: api + attributes: + label: Design the API / API 设计 + placeholder: | + If you need to add an API, how do you want to design it? + 如果需要新增 API, 你希望怎么设计? + + | name | type | default | description | + | ---- | ---- | ------- | ----------- | + | - | - | - | - | + + value: | + | name | type | default | description | + | ---- | ---- | ------- | ----------- | + | - | - | - | - | + + validations: + required: true + + - type: dropdown + attributes: + label: Are you willing to contribute? / 是否愿意参与贡献? + options: + - Please select / 请选择 + - ✅ Yes / 是 + - ❌ No / 否 + validations: + required: true diff --git a/.github/workflows/compressed-size.yml b/.github/workflows/compressed-size.yml index fe79eec36a..ff05016645 100644 --- a/.github/workflows/compressed-size.yml +++ b/.github/workflows/compressed-size.yml @@ -30,6 +30,6 @@ jobs: - uses: preactjs/compressed-size-action@v2 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" - pattern: "./packages/{s2-core,s2-react,s2-vue}/dist/**/*.{js,css}" - build-script: "build:umd" + pattern: "./packages/{s2-core,s2-react,s2-react-components,s2-vue}/dist/**/*.{js,css}" + build-script: "build" clean-script: "clean" diff --git a/.github/workflows/issue-labeled.yml b/.github/workflows/issue-labeled.yml index 5c3c766305..c41599d49d 100644 --- a/.github/workflows/issue-labeled.yml +++ b/.github/workflows/issue-labeled.yml @@ -95,17 +95,21 @@ jobs: Hello, @${{ github.event.issue.user.login }}, your feature request has been accepted after our repeated discussion. We will schedule the development, please pay attention to the follow-up release logs. - - name: Pending - if: github.event.label.name == '💤 pending' + - name: Welcom PR + if: github.event.label.name == '⭐️ Welcom PR' uses: actions-cool/issues-helper@main with: actions: 'create-comment' token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ github.event.issue.number }} body: | - 你好 @${{ github.event.issue.user.login }},经过我们的反复讨论, 你的需求现已被采纳, 我们会排期开发, 但人力资源有限, 短期内无法支持, 请关注后续发布日志。当然, 如果能贡献 PR 帮助我们改进, 不胜感激! + 你好 @${{ github.event.issue.user.login }},你的反馈我们已收到, 这是一个开源项目, 我们也是用自己的业余时间在维护, 为爱发电, 精力实在有限, 👏🏻 欢迎根据 [贡献指南](https://s2.antv.antgroup.com/manual/contribution) 提交 PR. 一起参与到开源项目的建设中. - Hello, @${{ github.event.issue.user.login }}, your feature request has been accepted after our repeated discussion. We will schedule the development. However, it could not be supported in the short term since limited time, please pay attention to the follow-up release logs. Of course, looking forward for your PR! + 如果你遇到了问题,或者对 [Issues](https://github.com/antvis/S2/issues) 和 [Discussions](https://github.com/antvis/S2/discussions) 列表的问题感兴趣,可以**直接认领并尝试修复**,帮助 S2 变得更好,期待在 [贡献者列表](https://github.com/antvis/S2/graphs/contributors) 里看见你的头像。 + + Hello, @${{ github.event.issue.user.login }}, We have received your feedback, this is an open source project, we also use our spare time to maintain, for love power generation, energy is really limited, 👏 🏻 welcome according to contribution guide (https://s2.antv.antgroup.com/manual/contribution) to submit PR. Get involved in open source projects together. + + If you have a problem, Or to [Issues] (https://github.com/antvis/S2/issues) and [Discussions] (https://github.com/antvis/S2/discussions) interested in a list of questions, Can directly claim and try to repair, help S2 better, look forward to in the [contributor list] (https://github.com/antvis/S2/graphs/contributors) saw your head. - name: Rejected if: github.event.label.name == '❌ won''t support' @@ -119,24 +123,50 @@ jobs: Hello, @${{ github.event.issue.user.login }}, After our repeated discussions, your needs are too customized and not suitable for implementing directly to S2. As an open source framework, S2 will only enhance general capabilities and open custom interfaces. You can implement it yourself through the customization capabilities provided by S2, thank you for your understanding. - - name: Supported or fixed in next - if: github.event.label.name == '✨ supported or fixed in next' + - name: Supported or fixed in 2.x + if: github.event.label.name == '✨ supported or fixed in 2.x' uses: actions-cool/issues-helper@main with: actions: 'create-comment' token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ github.event.issue.number }} body: | - 你好 @${{ github.event.issue.user.login }},该功能或缺陷已经在 `2.0 next 版本` 中支持或修复,`next` 版本目前处于内测中, 感谢你的支持与理解。 + 你好 @${{ github.event.issue.user.login }},该功能或缺陷已经在 `2.x` 版本中支持或修复,请使用 `2.x` 版本进行开发(`1.x` 版本不再维护), 感谢你的支持与理解。 - 如有任何 `2.0 版本` 问题,请前往[讨论区](https://github.com/antvis/S2/discussions/1933) 或 [查看文档](https://s2.antv.antgroup.com), 抢先试用: + 如有任何 `2.x` 版本问题,欢迎提[issue](https://github.com/antvis/S2/issues) 或 [查看文档](https://s2.antv.antgroup.com): ```bash - yarn add @antv/s2@next - yarn add @antv/s2-react@next - yarn add @antv/s2-vue@next + yarn add @antv/s2 + yarn add @antv/s2-react + yarn add @antv/s2-react-components + yarn add @antv/s2-vue ``` - Hello, @${{ github.event.issue.user.login }}, This feature or flaw has been supported or fixed in `2.0 next version`, `next` version is currently in private beta, thank you for your support and understanding. + Hello, @${{ github.event.issue.user.login }}, This feature or defect has been supported or fixed in the '2.x' version, please use the '2.x' version for development (' 1.x 'version is no longer maintained), thank you for your support and understanding. + + Any `2.x` version issues, please go to [issue](https://github.com/antvis/S2/issues), or [view docs](https://s2.antv.antgroup.com), the first trial: + + - name: S2 Vue + if: github.event.label.name == 's2-vue' + uses: actions-cool/issues-helper@main + with: + actions: 'create-comment,close-issue' + token: ${{ secrets.GITHUB_TOKEN }} + issue-number: ${{ github.event.issue.number }} + body: | + 你好 @${{ github.event.issue.user.login }},`@antv/s2-vue` 现已停止维护,由于精力投入有限,出于维护成本,包下载量等因素综合考虑,从 `2.0.0` 正式版后不再继续更新,请基于 `@antv/s2` 自行封装,或 fork 仓库进行二次开发。 + + Hello, @${{ github.event.issue.user.login }}, `@antv/s2-vue` has stopped maintenance, due to limited energy investment, due to the comprehensive consideration of maintenance costs, package downloads and other factors, from the '2.0.0' official version will not continue to update, please based on '@antv/s2' self-encapsulation, or fork warehouse for secondary development. + + - name: G + if: github.event.label.name == 'G' + uses: actions-cool/issues-helper@main + with: + actions: 'create-comment' + token: ${{ secrets.GITHUB_TOKEN }} + issue-number: ${{ github.event.issue.number }} + body: | + 你好 @${{ github.event.issue.user.login }},这个属于底层渲染引擎 [AntV/G](https://g.antv.antgroup.com/) 的问题, 需要等待底层支持或修复后, 上层才能适配, 请耐心等待, 感谢你的理解。 + + Hello, @${{ github.event.issue.user.login }}, This belongs to the underlying rendering engine AntV/G (https://g.antv.antgroup.com/), needs to wait for the underlying support or after repair, the upper can adapter, please wait patiently, thank you for your understanding. - Any `2.0` version issues, please go to [discussion](https://github.com/antvis/S2/discussions/1933), or [view docs](https://s2.antv.antgroup.com), the first trial: diff --git a/.github/workflows/issue-opend.yml b/.github/workflows/issue-opend.yml index 4225078b58..40de3619ac 100644 --- a/.github/workflows/issue-opend.yml +++ b/.github/workflows/issue-opend.yml @@ -8,7 +8,7 @@ jobs: issue-opend-check: runs-on: ubuntu-latest steps: - - name: check issue title + - name: Check issue title if: github.event.issue.title == '🤔' || github.event.issue.title == '🙏' || github.event.issue.title == '🐛' uses: actions-cool/issues-helper@main with: @@ -20,20 +20,6 @@ jobs: Hello, @${{ github.event.issue.user.login }}, please edit your issue title. a concise issue title will save everyone time. please do not leave the title as the body or empty. - # 如果 issue 的提交者无视模版, 连基本的版本号,表格类型, 描述都没有, 直接自动关闭, 不多BB. - - name: check issue body - if: contains(github.event.issue.body, 'Version') == false && contains(github.event.issue.body, 'Sheet Type') == false && contains(github.event.issue.body, 'Description') == false - uses: actions-cool/issues-helper@main - with: - actions: 'create-comment,add-labels,close-issue' - token: ${{ secrets.GITHUB_TOKEN }} - issue-number: ${{ github.event.issue.number }} - labels: '⛔ invalid' - body: | - 你好 @${{ github.event.issue.user.login }},请按照 issue 模板填写相关信息, 方便大家高效沟通, 强烈推荐你阅读 [提 Issue 前必读](https://github.com/antvis/S2/issues/1904) 和 [如何向开源项目提交无法解答的问题](https://zhuanlan.zhihu.com/p/25795393)。 - - Hello @${{ github.event.issue.user.login }}, please fill in the relevant information according to the issue template to facilitate communication efficiently. recommend you to read [提 Issue 前必读](https://github.com/antvis/S2/issues/1904) and [如何向开源项目提交无法解答的问题](https://zhuanlan.zhihu.com/p/25795393), Thanks so much! - # 标题或正文 (版本号) 带有 next, 增加标记便于统计 - name: Auto Set Next Label if: contains(github.event.issue.title, 'next') || contains(github.event.issue.body, 'next') @@ -43,3 +29,22 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ github.event.issue.number }} labels: 'next' + + - name: Auto Tips + uses: actions-cool/issues-helper@main + with: + actions: 'create-comment' + token: ${{ secrets.GITHUB_TOKEN }} + issue-number: ${{ github.event.issue.number }} + body: | + 你好 @${{ github.event.issue.user.login }}: + + ### 提 Issue 须知 + + ⚠️ 在提出问题前,请确保你已经仔细阅读👓/搜索🔍过 [官方文档](https://s2.antv.antgroup.com) 和 [常见问题](https://s2.antv.antgroup.com/manual/faq) 以及 [图表示例](https://s2.antv.antgroup.com/examples), 并且已经搜索查阅过相关 [Issues 列表](https://github.com/antvis/S2/issues?q=is%3Aissue+is%3Aclosed) 和 [Discussions 列表](https://github.com/antvis/S2/discussions). 当你确定自己的问题没有解决方案时,请提交 issue。 ⚠️ + + 如果是使用问题,不知道怎么用,移步 [Discussions 讨论区](https://github.com/antvis/S2/discussions) 并提供 [有效信息](https://zhuanlan.zhihu.com/p/25795393) 进行 [提问](https://github.com/antvis/S2/discussions/new?category=q-a)。 + + ### 参与社区共建 + + **这是一个开源项目, 我们也有繁忙的业务要做, 是用自己的业余时间在维护, 为爱发电, 精力有限, 所以有时候 issue 响应速度不是那么及时, 如果你遇到了问题, 或者对 [Issues](https://github.com/antvis/S2/issues) 和 [Discussions](https://github.com/antvis/S2/discussions) 列表的问题感兴趣, 可以直接认领并尝试修复 ([贡献指南](https://s2.antv.antgroup.com/manual/contribution)),帮助 S2 变得更好, 而不是一味的埋怨和催促, 我们不是甲方乙方的关系.** diff --git a/.github/workflows/pr-auto-assign-reviewer.yml b/.github/workflows/pr-auto-assign-reviewer.yml index cc1f6cec4e..bd1ef2f812 100644 --- a/.github/workflows/pr-auto-assign-reviewer.yml +++ b/.github/workflows/pr-auto-assign-reviewer.yml @@ -21,5 +21,5 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} pr-emoji: '+1, rocket' - reviewers: 'lijinke666,wjgogogo,wuhaiyang' + reviewers: 'lijinke666,wjgogogo' review-creator: false diff --git a/.github/workflows/pr-labeled.yml b/.github/workflows/pr-labeled.yml index 5888c6a7df..233e050f61 100644 --- a/.github/workflows/pr-labeled.yml +++ b/.github/workflows/pr-labeled.yml @@ -16,9 +16,9 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ github.event.pull_request.number }} body: | - 你好 @${{ github.event.pull_request.user.login }},感谢你的贡献, 为了让代码更健壮, 请根据 [贡献指南](https://s2.antv.antgroup.com/manual/contribution) 补充相应单元测试, 如果有 API 改动, 请修改 [相应的文档](https://github.com/antvis/S2/tree/master/s2-site) + 你好 @${{ github.event.pull_request.user.login }},感谢你的贡献, 为了让代码更健壮, 请根据 [贡献指南](https://s2.antv.antgroup.com/manual/contribution) 补充相应单元测试, 如果有 API 改动, 请修改 [相应的文档](https://github.com/antvis/S2/tree/next/s2-site) - Hello, @${{ github.event.pull_request.user.login }}, Thanks for your contribution. In order to make the code more robust, please add the corresponding unit tests, and update the [docs](https://github.com/antvis/S2/tree/master/s2-site) if there are API changes. + Hello, @${{ github.event.pull_request.user.login }}, Thanks for your contribution. In order to make the code more robust, please add the corresponding unit tests, and update the [docs](https://github.com/antvis/S2/tree/next/s2-site) if there are API changes. - name: Need more info if: github.event.label.name == '👀 need more info' diff --git a/.github/workflows/pr-notify.yml b/.github/workflows/pr-notify.yml deleted file mode 100644 index 597764612f..0000000000 --- a/.github/workflows/pr-notify.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: 🔊 PR Ding Talk Notify - -on: - pull_request_target: - types: [opened] - -jobs: - preview: - runs-on: ubuntu-latest - steps: - - name: Ding Talk PR Notify - uses: lijinke666/ding-talk-pr-notify@main - with: - ding_talk_token: ${{ secrets.DING_TALK_ACCESS_TOKEN }} - at_all: false diff --git a/.github/workflows/pr-opend.yml b/.github/workflows/pr-opend.yml new file mode 100644 index 0000000000..8a9f4de55f --- /dev/null +++ b/.github/workflows/pr-opend.yml @@ -0,0 +1,23 @@ +name: PR Opened + +on: + pull_request_target: + types: [opened] + +jobs: + preview: + runs-on: ubuntu-latest + steps: + - name: Auto tips + uses: actions-cool/issues-helper@main + with: + actions: 'create-comment' + token: ${{ secrets.GITHUB_TOKEN }} + issue-number: ${{ github.event.pull_request.number }} + body: | + 你好 @${{ github.event.pull_request.user.login }},非常感谢你的贡献. + 为了让代码更健壮, 请根据 [贡献指南](https://s2.antv.antgroup.com/manual/contribution) 补充相应单元测试 (文档改动或其他特殊场景除外), 如果有 API 改动, 请修改 [相应的文档](https://github.com/antvis/S2/tree/next/s2-site). + 同时请检查 `lint` 和 `test` 相关 CI 是否通过, 如果失败, 请点击 [Details] 按钮查看, 并根据日志修复. + + Hello, @${{ github.event.pull_request.user.login }}, Thanks for your contribution. In order to make the code more robust, please add the corresponding unit tests, and update the [docs](https://github.com/antvis/S2/tree/next/s2-site) if there are API changes. + At the same time, please check whether the CI related to lint and test passes. If the CI fails, please click [Details] button to check and repair according to the log. diff --git a/.github/workflows/prerelease-notify.yml b/.github/workflows/prerelease-notify.yml deleted file mode 100644 index fd477c943e..0000000000 --- a/.github/workflows/prerelease-notify.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: 🎉 Release Notify - -on: - release: - # published: latest release 和 pre release 都会触发 - # prereleased: 只有 pre release 触发 - # released: 只有 latest release 触发 - types: [prereleased] - -jobs: - notify: - runs-on: ubuntu-latest - steps: - - name: Sleep 10s - uses: juliangruber/sleep-action@v1 - with: - time: 10s - - - name: Pre Release Notify - uses: visiky/dingtalk-release-notify@main - with: - DING_TALK_TOKEN: | - ${{ secrets.DING_TALK_ACCESS_TOKEN }} - ${{ secrets.DING_TALK_GROUP_TOKEN }} - ${{ secrets.DING_TALK_PUBLIC_TOKEN }} - notify_title: '🎉 测试版 {release_tag} 发布 🎉' - notify_body: '## { title }
-
+
@@ -77,9 +74,9 @@ demo components and expansion capabilities, it allows developers to use it quick
## 📦 Installation
```bash
-$ npm install @antv/s2@next --save
-# yarn add @antv/s2@next
-# pnpm add @antv/s2@next
+$ npm install @antv/s2 --save
+# yarn add @antv/s2
+# pnpm add @antv/s2
```
## 🔨 Getting Started
@@ -208,11 +205,12 @@ bootstrap()
### 📦 Packages
-| Package | Latest | Beta | Alpha | Next | Size | Download |
-| - | - | - | - | - | - | - |
-| [@antv/s2](https://github.com/antvis/S2/tree/next/packages/s2-core) | ![latest](https://img.shields.io/npm/v/@antv/s2/latest.svg) | ![beta](https://img.shields.io/npm/v/@antv/s2/beta.svg) | ![alpha](https://img.shields.io/npm/v/@antv/s2/alpha.svg) | ![next](https://img.shields.io/npm/v/@antv/s2/next.svg) | ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2@latest/dist/index.min.js?label=gzip%20size&compression=gzip) | ![download](https://img.shields.io/npm/dm/@antv/s2.svg) |
-| [@antv/s2-react](https://github.com/antvis/S2/tree/next/packages/s2-react) | ![latest](https://img.shields.io/npm/v/@antv/s2-react/latest.svg) | ![beta](https://img.shields.io/npm/v/@antv/s2-react/beta.svg) | ![alpha](https://img.shields.io/npm/v/@antv/s2-react/alpha.svg) | ![next](https://img.shields.io/npm/v/@antv/s2-react/next.svg)| ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2-react@latest/dist/index.min.js?label=gzip%20size&compression=gzip) | ![download](https://img.shields.io/npm/dm/@antv/s2-react.svg) |
-| [@antv/s2-vue](https://github.com/antvis/S2/tree/next/packages/s2-vue) | ![latest](https://img.shields.io/npm/v/@antv/s2-vue/latest.svg) | ![beta](https://img.shields.io/npm/v/@antv/s2-vue/beta.svg) | ![alpha](https://img.shields.io/npm/v/@antv/s2-vue/alpha.svg) | ![next](https://img.shields.io/npm/v/@antv/s2-vue/next.svg) | ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2-vue@latest/dist/index.min.js?label=gzip%20size&compression=gzip) | ![download](https://img.shields.io/npm/dm/@antv/s2-vue.svg) |
+| Package | Latest | Size | Download |
+| -------- | ------ | ---------- | ------ |
+| [@antv/s2](https://github.com/antvis/S2/tree/next/packages/s2-core) | ![latest](https://img.shields.io/npm/v/@antv/s2/latest.svg?logo=npm) | ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2@latest/dist/index.min.js?label=gzip%20size&compression=gzip) | ![download](https://img.shields.io/npm/dm/@antv/s2.svg?logo=npm) |
+| [@antv/s2-react](https://github.com/antvis/S2/tree/next/packages/s2-react) | ![latest](https://img.shields.io/npm/v/@antv/s2-react/latest.svg?logo=npm) | ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2-react@latest/dist/index.min.js?label=gzip%20size&compression=gzip) | ![download](https://img.shields.io/npm/dm/@antv/s2-react.svg?logo=npm) |
+| [@antv/s2-react-components](https://github.com/antvis/S2/tree/next/packages/s2-react-components) | ![latest](https://img.shields.io/npm/v/@antv/s2-react-components/latest.svg?logo=npm) | ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2-react-components@latest/dist/index.min.js?label=gzip%20size&compression=gzip) | ![download](https://img.shields.io/npm/dm/@antv/s2-react-components.svg?logo=npm) |
+| [@antv/s2-vue](https://github.com/antvis/S2/tree/next/packages/s2-vue) | ![latest](https://img.shields.io/npm/v/@antv/s2-vue/latest.svg?logo=npm) | ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2-vue@latest/dist/index.min.js?label=gzip%20size&compression=gzip) | ![download](https://img.shields.io/npm/dm/@antv/s2-vue.svg?logo=npm) |
### 🖥️ Browser Compatibility
@@ -266,14 +264,6 @@ pnpm site:start
![Alt](https://repobeats.axiom.co/api/embed/ebb7eecb994dc0e3980044aefe43eb81302e3632.svg "Repobeats analytics image")
-## 📧 Contact Us
-
-
-
-
-
-
-
+
@@ -64,7 +61,7 @@ S2 是 AntV 在多维交叉分析表格领域的解决方案,完全基于数
## ✨ 特性
-1. 多维交叉分析: 告别单一分析维度,全面拥抱任意维度的自由组合分析。
+1. 多维交叉分析:告别单一分析维度,全面拥抱任意维度的自由组合分析。
2. 高性能:能支持全量百万数据下 `<8s` 渲染,也能通过局部下钻来实现秒级渲染。
3. 高扩展性:支持任意的自定义扩展(包括但不局限于布局,样式,交互,数据 hook 流等)。
4. 开箱即用:提供不同分析场景下开箱即用的 `React`, `Vue3` 版本表组件及配套分析组件,只需要简单的配置即可轻松实现复杂场景的表渲染。
@@ -73,9 +70,9 @@ S2 是 AntV 在多维交叉分析表格领域的解决方案,完全基于数
## 📦 安装
```bash
-$ npm install @antv/s2@next --save
-# yarn add @antv/s2@next
-# pnpm add @antv/s2@next
+$ npm install @antv/s2 --save
+# yarn add @antv/s2
+# pnpm add @antv/s2
```
## 🔨 使用
@@ -204,11 +201,12 @@ bootstrap()
### 📦 版本
-| Package | Latest | Beta | Alpha | Next | Size | Download |
-| - | - | - | - | - | - | - |
-| [@antv/s2](https://github.com/antvis/S2/tree/next/packages/s2-core) | ![latest](https://img.shields.io/npm/v/@antv/s2/latest.svg) | ![beta](https://img.shields.io/npm/v/@antv/s2/beta.svg) | ![alpha](https://img.shields.io/npm/v/@antv/s2/alpha.svg) | ![next](https://img.shields.io/npm/v/@antv/s2/next.svg) | ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2@latest/dist/index.min.js?label=gzip%20size&compression=gzip) | ![download](https://img.shields.io/npm/dm/@antv/s2.svg) |
-| [@antv/s2-react](https://github.com/antvis/S2/tree/next/packages/s2-react) | ![latest](https://img.shields.io/npm/v/@antv/s2-react/latest.svg) | ![beta](https://img.shields.io/npm/v/@antv/s2-react/beta.svg) | ![alpha](https://img.shields.io/npm/v/@antv/s2-react/alpha.svg) | ![next](https://img.shields.io/npm/v/@antv/s2-react/next.svg)| ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2-react@latest/dist/index.min.js?label=gzip%20size&compression=gzip) | ![download](https://img.shields.io/npm/dm/@antv/s2-react.svg) |
-| [@antv/s2-vue](https://github.com/antvis/S2/tree/next/packages/s2-vue) | ![latest](https://img.shields.io/npm/v/@antv/s2-vue/latest.svg) | ![beta](https://img.shields.io/npm/v/@antv/s2-vue/beta.svg) | ![alpha](https://img.shields.io/npm/v/@antv/s2-vue/alpha.svg) | ![next](https://img.shields.io/npm/v/@antv/s2-vue/next.svg) | ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2-vue@latest/dist/index.min.js?label=gzip%20size&compression=gzip) | ![download](https://img.shields.io/npm/dm/@antv/s2-vue.svg) |
+| 包名 | 稳定版 | 包大小 | 下载量 |
+| -------- | ------ | --------- | ------ |
+| [@antv/s2](https://github.com/antvis/S2/tree/next/packages/s2-core) | ![latest](https://img.shields.io/npm/v/@antv/s2/latest.svg?logo=npm) | ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2@latest/dist/index.min.js?label=gzip%20size&compression=gzip) | ![download](https://img.shields.io/npm/dm/@antv/s2.svg?logo=npm) |
+| [@antv/s2-react](https://github.com/antvis/S2/tree/next/packages/s2-react) | ![latest](https://img.shields.io/npm/v/@antv/s2-react/latest.svg?logo=npm) | ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2-react@latest/dist/index.min.js?label=gzip%20size&compression=gzip) | ![download](https://img.shields.io/npm/dm/@antv/s2-react.svg?logo=npm) |
+| [@antv/s2-react-components](https://github.com/antvis/S2/tree/next/packages/s2-react-components) | ![latest](https://img.shields.io/npm/v/@antv/s2-react-components/latest.svg?logo=npm) | ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2-react-components@latest/dist/index.min.js?label=gzip%20size&compression=gzip) | ![download](https://img.shields.io/npm/dm/@antv/s2-react-components.svg?logo=npm) |
+| [@antv/s2-vue](https://github.com/antvis/S2/tree/next/packages/s2-vue)(停止维护)| ![latest](https://img.shields.io/npm/v/@antv/s2-vue/latest.svg?logo=npm) | ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2-vue@latest/dist/index.min.js?label=gzip%20size&compression=gzip) | ![download](https://img.shields.io/npm/dm/@antv/s2-vue.svg?logo=npm) |
### 🖥️ 兼容环境
@@ -220,52 +218,18 @@ bootstrap()
## 🙋♂️ 问题反馈
-有任何问题请严格按照模版 [提交 Issue](https://github.com/antvis/S2/issues/new/choose), 在这之前强烈建议阅读 [《⚠️ 提 Issue 前必读》](https://github.com/antvis/S2/issues/1904)
-
-## ⌨️ 本地开发
-
-```bash
-git clone git@github.com:antvis/S2.git
-
-cd S2
-
-# 安装依赖
-pnpm install # 或者 pnpm bootstrap
-
-# 打包
-pnpm build
+如果你遇到了问题,或者对 [Issues](https://github.com/antvis/S2/issues) 和 [Discussions](https://github.com/antvis/S2/discussions) 列表的问题感兴趣,**可以直接认领并尝试修复**,帮助 S2 变得更好,期待在 [贡献者列表](https://github.com/antvis/S2/graphs/contributors) 里看见你的头像。
-# 调试 s2-core
-pnpm core:start
+请严格按照模版 [提交 Issue](https://github.com/antvis/S2/issues/new/choose) 或在 [Discussions](https://github.com/antvis/S2/discussions) 提问,在这之前强烈建议阅读 [《⚠️ 提 Issue 前必读》](https://github.com/antvis/S2/issues/1904)
-# 调试 s2-react
-pnpm react:playground
+## 🤝 参与贡献 & ⌨️ 本地开发
-# 调试 s2-vue
-pnpm vue:playground
-
-# 单元测试
-pnpm test
-
-# 代码风格和类型检测
-pnpm lint
-
-# 本地启动官网
-pnpm site:start
-```
-
-## 🤝 参与贡献
-
-请查看 [贡献指南](https://s2.antv.antgroup.com/manual/contribution)
+S2 非常需要你的共建,请阅读 [贡献指南](https://s2.antv.antgroup.com/manual/contribution) 后提交 PR.
## 👁️ 项目洞察
![Alt](https://repobeats.axiom.co/api/embed/ebb7eecb994dc0e3980044aefe43eb81302e3632.svg "Repobeats analytics image")
-## 📧 反馈问题
-
-有任何问题请严格按照模版 [提交 Issue](https://github.com/antvis/S2/issues/new/choose) 或在 [Discussions](https://github.com/antvis/S2/discussions) 提问。
-
## 👬 贡献者们
![https://github.com/antvis/s2/graphs/contributors](https://contrib.rocks/image?repo=antvis/s2)
diff --git a/build.config.base.mjs b/build.config.base.mjs
new file mode 100644
index 0000000000..8a5aac453a
--- /dev/null
+++ b/build.config.base.mjs
@@ -0,0 +1,159 @@
+/* eslint-disable max-lines-per-function */
+/* eslint-disable import/order */
+import { viteCommonjs } from '@originjs/vite-plugin-commonjs';
+import { toLower } from 'lodash';
+import path from 'path';
+import peerDepsExternal from 'rollup-plugin-peer-deps-external';
+import { visualizer } from 'rollup-plugin-visualizer';
+
+export const getBaseConfig = ({
+ aliasReact = false,
+ aliasReactComponents = false,
+} = {}) => {
+ const entry = './src/index.ts';
+
+ const OUT_DIR_NAME_MAP = {
+ es: 'esm',
+ cjs: 'lib',
+ umd: 'dist',
+ };
+
+ const format = process.env.FORMAT;
+ const isAnalysisMode = process.env.ANALYSIS;
+ const isDevMode = process.env.PLAYGROUND;
+ const outDir = OUT_DIR_NAME_MAP[format];
+ const isUMD = format === 'umd';
+ const isESM = format === 'es';
+
+ const define = {
+ 'process.env.NODE_ENV': JSON.stringify(
+ isDevMode ? 'development' : 'production',
+ ),
+ };
+
+ const resolve = {
+ mainFields: ['src', 'module', 'main'],
+ alias: [],
+ };
+
+ if (isDevMode) {
+ // 防止开发模式下直接加载 s2-core 中的主题 less
+ resolve.alias.push(
+ ...[
+ {
+ find: /^@antv\/s2$/,
+ replacement: path.join(__dirname, './packages/s2-core/src'),
+ },
+ {
+ find: /^@antv\/s2\/extends$/,
+ replacement: path.join(__dirname, './packages/s2-core/src/extends'),
+ },
+ aliasReact && {
+ find: /^@antv\/s2-react$/,
+ replacement: path.join(__dirname, './packages/s2-react/src'),
+ },
+ aliasReactComponents && {
+ find: /^@antv\/s2-react-components$/,
+ replacement: path.join(
+ __dirname,
+ './packages/s2-react-components/src',
+ ),
+ },
+ ].filter(Boolean),
+ );
+ }
+
+ const getViteConfig = (
+ { port, name, libName, plugins } = {
+ port: 3001,
+ plugins: [],
+ },
+ ) => {
+ const filename = isUMD ? `${toLower(name || libName)}.min` : '[name]';
+
+ return {
+ server: {
+ port,
+ hmr: true,
+ },
+
+ resolve,
+
+ define: {
+ 'process.env.NODE_ENV': JSON.stringify(
+ isDevMode ? 'development' : 'production',
+ ),
+ },
+
+ plugins: [
+ peerDepsExternal(),
+ !isDevMode && viteCommonjs(),
+ isAnalysisMode &&
+ visualizer({
+ open: true,
+ gzipSize: true,
+ brotliSize: true,
+ }),
+ ...plugins,
+ ].filter(Boolean),
+
+ css: {
+ preprocessorOptions: {
+ less: {
+ javascriptEnabled: true,
+ },
+ },
+ modules: {
+ /**
+ * 样式小驼峰转化
+ * css: goods-list => tsx: goodsList
+ */
+ localsConvention: 'camelCase',
+ },
+ },
+
+ build: {
+ target: 'es2015',
+ minify: isUMD ? 'esbuild' : false,
+ sourcemap: true,
+ lib: {
+ name: libName,
+ entry,
+ formats: [format],
+ },
+ outDir,
+ rollupOptions: {
+ output: {
+ dir: outDir,
+ entryFileNames: `${filename}.js`,
+ assetFileNames: `${filename}.[ext]`,
+ globals: {
+ vue: 'Vue',
+ react: 'React',
+ 'react-dom': 'ReactDOM',
+ '@antv/s2': 'S2',
+ '@antv/s2-react': 'S2React',
+ lodash: '_',
+ antd: 'antd',
+ 'ant-design-vue': 'antd',
+ },
+ },
+ },
+ },
+ };
+ };
+
+ return {
+ entry,
+ getViteConfig,
+ define,
+ format,
+ resolve,
+ isAnalysisMode,
+ outDir,
+ OUT_DIR_NAME_MAP,
+ isDevMode,
+ isUMD,
+ isESM,
+ };
+};
diff --git a/jest.config.base.js b/jest.config.base.js
index 7a9905c693..af2e973948 100644
--- a/jest.config.base.js
+++ b/jest.config.base.js
@@ -6,6 +6,8 @@ module.exports = {
setupFilesAfterEnv: ['jest-extended', './__tests__/setup.js'],
clearMocks: true,
collectCoverage: false,
+ verbose: true,
+ forceExit: true,
collectCoverageFrom: [
'src/**/*.{ts,tsx,js,vue}',
'!**/node_modules/**',
@@ -43,16 +45,17 @@ module.exports = {
'\\.svg$': 'jest-raw-loader',
},
moduleNameMapper: {
+ '\\.svg$': '
-
+
@@ -64,7 +61,7 @@ S2 是 AntV 在多维交叉分析表格领域的解决方案,完全基于数
## ✨ 特性
-1. 多维交叉分析: 告别单一分析维度,全面拥抱任意维度的自由组合分析。
+1. 多维交叉分析:告别单一分析维度,全面拥抱任意维度的自由组合分析。
2. 高性能:能支持全量百万数据下 `<8s` 渲染,也能通过局部下钻来实现秒级渲染。
3. 高扩展性:支持任意的自定义扩展(包括但不局限于布局,样式,交互,数据 hook 流等)。
4. 开箱即用:提供不同分析场景下开箱即用的 `React`, `Vue3` 版本表组件及配套分析组件,只需要简单的配置即可轻松实现复杂场景的表渲染。
@@ -204,60 +201,27 @@ bootstrap()
### 📦 版本
-| Package | Latest | Beta | Alpha | Next | Size | Download |
-| - | - | - | - | - | - | - |
-| [@antv/s2](https://github.com/antvis/S2/tree/next/packages/s2-core) | ![latest](https://img.shields.io/npm/v/@antv/s2/latest.svg) | ![beta](https://img.shields.io/npm/v/@antv/s2/beta.svg) | ![alpha](https://img.shields.io/npm/v/@antv/s2/alpha.svg) | ![next](https://img.shields.io/npm/v/@antv/s2/next.svg) | ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2@latest/dist/index.min.js?label=gzip%20size&compression=gzip) | ![download](https://img.shields.io/npm/dm/@antv/s2.svg) |
-| [@antv/s2-react](https://github.com/antvis/S2/tree/next/packages/s2-react) | ![latest](https://img.shields.io/npm/v/@antv/s2-react/latest.svg) | ![beta](https://img.shields.io/npm/v/@antv/s2-react/beta.svg) | ![alpha](https://img.shields.io/npm/v/@antv/s2-react/alpha.svg) | ![next](https://img.shields.io/npm/v/@antv/s2-react/next.svg)| ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2-react@latest/dist/index.min.js?label=gzip%20size&compression=gzip) | ![download](https://img.shields.io/npm/dm/@antv/s2-react.svg) |
-| [@antv/s2-vue](https://github.com/antvis/S2/tree/next/packages/s2-vue) | ![latest](https://img.shields.io/npm/v/@antv/s2-vue/latest.svg) | ![beta](https://img.shields.io/npm/v/@antv/s2-vue/beta.svg) | ![alpha](https://img.shields.io/npm/v/@antv/s2-vue/alpha.svg) | ![next](https://img.shields.io/npm/v/@antv/s2-vue/next.svg) | ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2-vue@latest/dist/index.min.js?label=gzip%20size&compression=gzip) | ![download](https://img.shields.io/npm/dm/@antv/s2-vue.svg) |
+| 包名 | 稳定版 | 包大小 | 下载量 |
+| -------- | ------ | --------- | ---------- | ------ |
+| [@antv/s2](https://github.com/antvis/S2/tree/next/packages/s2-core) | ![latest](https://img.shields.io/npm/v/@antv/s2/latest.svg?logo=npm) | ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2@latest/dist/index.min.js?label=gzip%20size&compression=gzip) | ![download](https://img.shields.io/npm/dm/@antv/s2.svg?logo=npm) |
+| [@antv/s2-react](https://github.com/antvis/S2/tree/next/packages/s2-react) | ![latest](https://img.shields.io/npm/v/@antv/s2-react/latest.svg?logo=npm) | ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2-react@latest/dist/index.min.js?label=gzip%20size&compression=gzip) | ![download](https://img.shields.io/npm/dm/@antv/s2-react.svg?logo=npm) |
+| [@antv/s2-react-components](https://github.com/antvis/S2/tree/next/packages/s2-react-components) | ![latest](https://img.shields.io/npm/v/@antv/s2-react-components/latest.svg?logo=npm) | ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2-react-components@latest/dist/index.min.js?label=gzip%20size&compression=gzip) | ![download](https://img.shields.io/npm/dm/@antv/s2-react-components.svg?logo=npm) |
+| [@antv/s2-vue](https://github.com/antvis/S2/tree/next/packages/s2-vue) | ![latest](https://img.shields.io/npm/v/@antv/s2-vue/latest.svg?logo=npm) | ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2-vue@latest/dist/index.min.js?label=gzip%20size&compression=gzip) | ![download](https://img.shields.io/npm/dm/@antv/s2-vue.svg?logo=npm) |
## 问题反馈
-有任何问题请严格按照模版 [提交 Issue](https://github.com/antvis/S2/issues/new/choose), 在这之前强烈建议阅读 [《⚠️ 提 Issue 前必读》](https://github.com/antvis/S2/issues/1904)
-
-## ⌨️ 本地开发
-
-```bash
-git clone git@github.com:antvis/S2.git
-
-cd S2
-
-# 安装依赖
-pnpm install # 或者 pnpm bootstrap
-
-# 打包
-pnpm build
+如果你遇到了问题,或者对 [Issues](https://github.com/antvis/S2/issues) 和 [Discussions](https://github.com/antvis/S2/discussions) 列表的问题感兴趣,**可以直接认领并尝试修复**,帮助 S2 变得更好,期待在 [贡献者列表](https://github.com/antvis/S2/graphs/contributors) 里看见你的头像。
-# 调试 s2-core
-pnpm core:start
+请严格按照模版 [提交 Issue](https://github.com/antvis/S2/issues/new/choose) 或在 [Discussions](https://github.com/antvis/S2/discussions) 提问,在这之前强烈建议阅读 [《⚠️ 提 Issue 前必读》](https://github.com/antvis/S2/issues/1904)
-# 调试 s2-react
-pnpm react:playground
+## 🤝 参与贡献 & ⌨️ 本地开发
-# 调试 s2-vue
-pnpm vue:playground
-
-# 单元测试
-pnpm test
-
-# 代码风格和类型检测
-pnpm lint
-
-# 本地启动官网
-pnpm site:start
-```
-
-## 🤝 参与贡献
-
-请查看 [贡献指南](https://s2.antv.antgroup.com/manual/contribution)
+S2 非常需要你的共建,请阅读 [贡献指南](https://s2.antv.antgroup.com/manual/contribution) 后提交 PR.
## 👁️ 项目洞察
![Alt](https://repobeats.axiom.co/api/embed/ebb7eecb994dc0e3980044aefe43eb81302e3632.svg "Repobeats analytics image")
-## 📧 反馈问题
-
-有任何问题请严格按照模版 [提交 Issue](https://github.com/antvis/S2/issues/new/choose) 或在 [Discussions](https://github.com/antvis/S2/discussions) 提问。
-
## 👬 贡献者们
![https://github.com/antvis/s2/graphs/contributors](https://contrib.rocks/image?repo=antvis/s2)
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__/bugs/issue-2726-spec.ts b/packages/s2-core/__tests__/bugs/issue-2726-spec.ts
index be7f61da6d..0efa603855 100644
--- a/packages/s2-core/__tests__/bugs/issue-2726-spec.ts
+++ b/packages/s2-core/__tests__/bugs/issue-2726-spec.ts
@@ -44,7 +44,7 @@ describe('Col Adaptive Layout Tests', () => {
.getCornerNodes()
.map((node) => Math.floor(node.width));
- expect(cornerNodeWidthList).toEqual([184, 136, 320]);
+ expect(cornerNodeWidthList).toEqual([185, 137, 322]);
expectTextOverflowing(s2);
});
});
diff --git a/packages/s2-core/__tests__/bugs/issue-2957-spec.ts b/packages/s2-core/__tests__/bugs/issue-2957-spec.ts
new file mode 100644
index 0000000000..e33e8df0fb
--- /dev/null
+++ b/packages/s2-core/__tests__/bugs/issue-2957-spec.ts
@@ -0,0 +1,53 @@
+/**
+ * @description spec for issue #2957
+ * https://github.com/antvis/S2/issues/2957
+ */
+import { PivotSheet } from '@/sheet-type';
+import type { S2Options } from '../../src';
+import { getContainer } from '../util/helpers';
+
+const s2Options: S2Options = {
+ width: 800,
+ height: 600,
+};
+
+describe('Corner Measure Text Tests', () => {
+ test('should get correctly theme config with customValueOrder', async () => {
+ const s2 = new PivotSheet(
+ getContainer(),
+ {
+ data: [
+ {
+ '4rweiwt7aneo': '上海市',
+ '4w8pyhsbkkjk': '①正常库存',
+ '4vynudxz28sg': '457',
+ styleKey: 1,
+ },
+ ],
+ fields: {
+ valueInCols: true,
+ rows: ['4rweiwt7aneo'],
+ columns: ['4w8pyhsbkkjk'],
+ values: ['4vynudxz28sg'],
+ customValueOrder: 0,
+ },
+ },
+ s2Options,
+ );
+
+ s2.setTheme({
+ cornerCell: {
+ measureText: {
+ fill: 'blue',
+ textAlign: 'center',
+ fontSize: 12,
+ },
+ },
+ });
+ await s2.render();
+
+ const extraFieldText = s2.facet.getCornerCells()[1].getTextShape();
+
+ expect(extraFieldText.parsedStyle.textBaseline).toEqual('middle');
+ });
+});
diff --git a/packages/s2-core/__tests__/data/custom-table-col-fields.ts b/packages/s2-core/__tests__/data/custom-table-col-fields.ts
index a53ca96912..a7cadc1437 100644
--- a/packages/s2-core/__tests__/data/custom-table-col-fields.ts
+++ b/packages/s2-core/__tests__/data/custom-table-col-fields.ts
@@ -23,6 +23,29 @@ export const customColSimpleColumns: CustomTreeNode[] = [
},
];
+export const customColSimpleMultipleTextColumns: CustomTreeNode[] = [
+ {
+ field: 'area',
+ title: '地区'.repeat(50),
+ children: [
+ { field: 'province', title: '省份' },
+ { field: 'city', title: '城市' },
+ ],
+ },
+ {
+ field: 'type',
+ title: '类型',
+ },
+ {
+ field: 'money',
+ title: '金额'.repeat(20),
+ children: [
+ { field: 'price', title: '价格', description: '价格描述' },
+ { field: 'number', title: '数量'.repeat(30) },
+ ],
+ },
+];
+
export const customColMultipleColumns: CustomTreeNode[] = [
{
field: 'a-1',
diff --git a/packages/s2-core/__tests__/data/data-issue-2385.json b/packages/s2-core/__tests__/data/data-issue-2385.json
index e77dd0305c..4a8cb753b3 100644
--- a/packages/s2-core/__tests__/data/data-issue-2385.json
+++ b/packages/s2-core/__tests__/data/data-issue-2385.json
@@ -11,7 +11,7 @@
"province": "浙江",
"city": "杭州",
"type": "纸张",
- "price": "2",
+ "price": "哈哈哈",
"cost": "1.5"
},
{
@@ -153,7 +153,7 @@
"type": "圆规",
"province": "吉林",
"city": "白山",
- "price": "111",
+ "price": "aa",
"cost": "1.5"
}
],
diff --git a/packages/s2-core/__tests__/setup.js b/packages/s2-core/__tests__/setup.js
index 95ba1ba1bb..1f37195929 100644
--- a/packages/s2-core/__tests__/setup.js
+++ b/packages/s2-core/__tests__/setup.js
@@ -14,3 +14,5 @@ jest.mock('@/ui/hd-adapter', () => {
}),
};
});
+
+jest.setTimeout(60 * 1000);
diff --git a/packages/s2-core/__tests__/spreadsheet/__snapshots__/corner-spec.ts.snap b/packages/s2-core/__tests__/spreadsheet/__snapshots__/corner-spec.ts.snap
index 574008d2be..07844b7e66 100644
--- a/packages/s2-core/__tests__/spreadsheet/__snapshots__/corner-spec.ts.snap
+++ b/packages/s2-core/__tests__/spreadsheet/__snapshots__/corner-spec.ts.snap
@@ -7,30 +7,19 @@ exports[`PivotSheet Corner Tests should render row corner when columns and value
} 1`] = `
Array [
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": undefined,
+ "extra": Object {
+ "isCustomHeight": undefined,
+ },
"field": "province",
"height": 30,
- "hierarchy": undefined,
"id": "province",
- "inCollapseNode": undefined,
- "isCollapsed": undefined,
- "isGrandTotals": undefined,
- "isLeaf": undefined,
+ "isLeaf": false,
"isPivotMode": true,
- "isSubTotals": undefined,
- "isTotalMeasure": undefined,
- "isTotalRoot": undefined,
- "isTotals": undefined,
- "level": undefined,
+ "level": 0,
"padding": 0,
- "parent": undefined,
- "query": undefined,
- "rowIndex": undefined,
- "seriesNumberWidth": undefined,
"spreadsheet": Anything,
"value": "province",
"width": 99.33,
@@ -38,30 +27,19 @@ Array [
"y": 0,
},
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": undefined,
+ "extra": Object {
+ "isCustomHeight": undefined,
+ },
"field": "city",
"height": 30,
- "hierarchy": undefined,
"id": "city",
- "inCollapseNode": undefined,
- "isCollapsed": undefined,
- "isGrandTotals": undefined,
- "isLeaf": undefined,
+ "isLeaf": false,
"isPivotMode": true,
- "isSubTotals": undefined,
- "isTotalMeasure": undefined,
- "isTotalRoot": undefined,
- "isTotals": undefined,
- "level": undefined,
+ "level": 0,
"padding": 0,
- "parent": undefined,
- "query": undefined,
- "rowIndex": undefined,
- "seriesNumberWidth": undefined,
"spreadsheet": Anything,
"value": "city",
"width": 99.33,
@@ -78,30 +56,19 @@ exports[`PivotSheet Corner Tests should render row corner when columns and value
} 1`] = `
Array [
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "series",
- "extra": undefined,
+ "extra": Object {
+ "isCustomHeight": undefined,
+ },
"field": "",
"height": 30,
- "hierarchy": undefined,
"id": "",
- "inCollapseNode": undefined,
- "isCollapsed": undefined,
- "isGrandTotals": undefined,
- "isLeaf": undefined,
+ "isLeaf": false,
"isPivotMode": true,
- "isSubTotals": undefined,
- "isTotalMeasure": undefined,
- "isTotalRoot": undefined,
- "isTotals": undefined,
- "level": undefined,
+ "level": 0,
"padding": 0,
- "parent": undefined,
- "query": undefined,
- "rowIndex": undefined,
- "seriesNumberWidth": undefined,
"spreadsheet": Anything,
"value": "序号",
"width": 80,
@@ -109,30 +76,19 @@ Array [
"y": 0,
},
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": undefined,
+ "extra": Object {
+ "isCustomHeight": undefined,
+ },
"field": "province",
"height": 30,
- "hierarchy": undefined,
"id": "province",
- "inCollapseNode": undefined,
- "isCollapsed": undefined,
- "isGrandTotals": undefined,
- "isLeaf": undefined,
+ "isLeaf": false,
"isPivotMode": true,
- "isSubTotals": undefined,
- "isTotalMeasure": undefined,
- "isTotalRoot": undefined,
- "isTotals": undefined,
- "level": undefined,
+ "level": 0,
"padding": 0,
- "parent": undefined,
- "query": undefined,
- "rowIndex": undefined,
- "seriesNumberWidth": undefined,
"spreadsheet": Anything,
"value": "province",
"width": 96,
@@ -140,30 +96,19 @@ Array [
"y": 0,
},
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": undefined,
+ "extra": Object {
+ "isCustomHeight": undefined,
+ },
"field": "city",
"height": 30,
- "hierarchy": undefined,
"id": "city",
- "inCollapseNode": undefined,
- "isCollapsed": undefined,
- "isGrandTotals": undefined,
- "isLeaf": undefined,
+ "isLeaf": false,
"isPivotMode": true,
- "isSubTotals": undefined,
- "isTotalMeasure": undefined,
- "isTotalRoot": undefined,
- "isTotals": undefined,
- "level": undefined,
+ "level": 0,
"padding": 0,
- "parent": undefined,
- "query": undefined,
- "rowIndex": undefined,
- "seriesNumberWidth": undefined,
"spreadsheet": Anything,
"value": "city",
"width": 96,
@@ -180,33 +125,23 @@ exports[`PivotSheet Corner Tests should render row corner when columns and value
} 1`] = `
Array [
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": undefined,
+ "extra": Object {
+ "isCustomHeight": undefined,
+ },
"field": "",
"height": 30,
- "hierarchy": undefined,
"id": "province/city/数值",
- "inCollapseNode": undefined,
- "isCollapsed": undefined,
- "isGrandTotals": undefined,
- "isLeaf": undefined,
+ "isLeaf": false,
"isPivotMode": true,
- "isSubTotals": undefined,
- "isTotalMeasure": undefined,
- "isTotalRoot": undefined,
- "isTotals": undefined,
- "level": undefined,
+ "level": 0,
"padding": 0,
- "parent": undefined,
- "query": undefined,
- "rowIndex": undefined,
"seriesNumberWidth": 0,
"spreadsheet": Anything,
"value": "province/city/数值",
- "width": 146.36,
+ "width": 147,
"x": 0,
"y": 0,
},
@@ -220,30 +155,19 @@ exports[`PivotSheet Corner Tests should render row corner when columns and value
} 1`] = `
Array [
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "series",
- "extra": undefined,
+ "extra": Object {
+ "isCustomHeight": undefined,
+ },
"field": "",
"height": 30,
- "hierarchy": undefined,
"id": "",
- "inCollapseNode": undefined,
- "isCollapsed": undefined,
- "isGrandTotals": undefined,
- "isLeaf": undefined,
+ "isLeaf": false,
"isPivotMode": true,
- "isSubTotals": undefined,
- "isTotalMeasure": undefined,
- "isTotalRoot": undefined,
- "isTotals": undefined,
- "level": undefined,
+ "level": 0,
"padding": 0,
- "parent": undefined,
- "query": undefined,
- "rowIndex": undefined,
- "seriesNumberWidth": undefined,
"spreadsheet": Anything,
"value": "序号",
"width": 80,
@@ -251,33 +175,23 @@ Array [
"y": 0,
},
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": undefined,
+ "extra": Object {
+ "isCustomHeight": undefined,
+ },
"field": "",
"height": 30,
- "hierarchy": undefined,
"id": "province/city/数值",
- "inCollapseNode": undefined,
- "isCollapsed": undefined,
- "isGrandTotals": undefined,
- "isLeaf": undefined,
+ "isLeaf": false,
"isPivotMode": true,
- "isSubTotals": undefined,
- "isTotalMeasure": undefined,
- "isTotalRoot": undefined,
- "isTotals": undefined,
- "level": undefined,
+ "level": 0,
"padding": 0,
- "parent": undefined,
- "query": undefined,
- "rowIndex": undefined,
"seriesNumberWidth": 80,
"spreadsheet": Anything,
"value": "province/city/数值",
- "width": 146.36,
+ "width": 147,
"x": 80,
"y": 0,
},
@@ -291,30 +205,19 @@ exports[`PivotSheet Corner Tests should render row corner when columns is empty
} 1`] = `
Array [
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": undefined,
+ "extra": Object {
+ "isCustomHeight": undefined,
+ },
"field": "province",
"height": 30,
- "hierarchy": undefined,
"id": "province",
- "inCollapseNode": undefined,
- "isCollapsed": undefined,
- "isGrandTotals": undefined,
- "isLeaf": undefined,
+ "isLeaf": false,
"isPivotMode": true,
- "isSubTotals": undefined,
- "isTotalMeasure": undefined,
- "isTotalRoot": undefined,
- "isTotals": undefined,
- "level": undefined,
+ "level": 0,
"padding": 0,
- "parent": undefined,
- "query": undefined,
- "rowIndex": undefined,
- "seriesNumberWidth": undefined,
"spreadsheet": Anything,
"value": "province",
"width": 149,
@@ -322,30 +225,19 @@ Array [
"y": 0,
},
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": undefined,
+ "extra": Object {
+ "isCustomHeight": undefined,
+ },
"field": "city",
"height": 30,
- "hierarchy": undefined,
"id": "city",
- "inCollapseNode": undefined,
- "isCollapsed": undefined,
- "isGrandTotals": undefined,
- "isLeaf": undefined,
+ "isLeaf": false,
"isPivotMode": true,
- "isSubTotals": undefined,
- "isTotalMeasure": undefined,
- "isTotalRoot": undefined,
- "isTotals": undefined,
- "level": undefined,
+ "level": 0,
"padding": 0,
- "parent": undefined,
- "query": undefined,
- "rowIndex": undefined,
- "seriesNumberWidth": undefined,
"spreadsheet": Anything,
"value": "city",
"width": 149,
@@ -362,30 +254,19 @@ exports[`PivotSheet Corner Tests should render row corner when columns is empty
} 1`] = `
Array [
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "series",
- "extra": undefined,
+ "extra": Object {
+ "isCustomHeight": undefined,
+ },
"field": "",
"height": 30,
- "hierarchy": undefined,
"id": "",
- "inCollapseNode": undefined,
- "isCollapsed": undefined,
- "isGrandTotals": undefined,
- "isLeaf": undefined,
+ "isLeaf": false,
"isPivotMode": true,
- "isSubTotals": undefined,
- "isTotalMeasure": undefined,
- "isTotalRoot": undefined,
- "isTotals": undefined,
- "level": undefined,
+ "level": 0,
"padding": 0,
- "parent": undefined,
- "query": undefined,
- "rowIndex": undefined,
- "seriesNumberWidth": undefined,
"spreadsheet": Anything,
"value": "序号",
"width": 80,
@@ -393,30 +274,19 @@ Array [
"y": 0,
},
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": undefined,
+ "extra": Object {
+ "isCustomHeight": undefined,
+ },
"field": "province",
"height": 30,
- "hierarchy": undefined,
"id": "province",
- "inCollapseNode": undefined,
- "isCollapsed": undefined,
- "isGrandTotals": undefined,
- "isLeaf": undefined,
+ "isLeaf": false,
"isPivotMode": true,
- "isSubTotals": undefined,
- "isTotalMeasure": undefined,
- "isTotalRoot": undefined,
- "isTotals": undefined,
- "level": undefined,
+ "level": 0,
"padding": 0,
- "parent": undefined,
- "query": undefined,
- "rowIndex": undefined,
- "seriesNumberWidth": undefined,
"spreadsheet": Anything,
"value": "province",
"width": 109,
@@ -424,30 +294,19 @@ Array [
"y": 0,
},
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": undefined,
+ "extra": Object {
+ "isCustomHeight": undefined,
+ },
"field": "city",
"height": 30,
- "hierarchy": undefined,
"id": "city",
- "inCollapseNode": undefined,
- "isCollapsed": undefined,
- "isGrandTotals": undefined,
- "isLeaf": undefined,
+ "isLeaf": false,
"isPivotMode": true,
- "isSubTotals": undefined,
- "isTotalMeasure": undefined,
- "isTotalRoot": undefined,
- "isTotals": undefined,
- "level": undefined,
+ "level": 0,
"padding": 0,
- "parent": undefined,
- "query": undefined,
- "rowIndex": undefined,
- "seriesNumberWidth": undefined,
"spreadsheet": Anything,
"value": "city",
"width": 109,
@@ -464,29 +323,19 @@ exports[`PivotSheet Corner Tests should render row corner when columns is empty
} 1`] = `
Array [
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": undefined,
+ "extra": Object {
+ "isCustomHeight": undefined,
+ },
"field": "",
"height": 30,
- "hierarchy": undefined,
"id": "province/city",
- "inCollapseNode": undefined,
- "isCollapsed": undefined,
- "isGrandTotals": undefined,
- "isLeaf": undefined,
+ "isLeaf": false,
"isPivotMode": true,
- "isSubTotals": undefined,
- "isTotalMeasure": undefined,
- "isTotalRoot": undefined,
- "isTotals": undefined,
- "level": undefined,
+ "level": 0,
"padding": 0,
- "parent": undefined,
- "query": undefined,
- "rowIndex": undefined,
"seriesNumberWidth": 0,
"spreadsheet": Anything,
"value": "province/city",
@@ -504,30 +353,19 @@ exports[`PivotSheet Corner Tests should render row corner when columns is empty
} 1`] = `
Array [
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "series",
- "extra": undefined,
+ "extra": Object {
+ "isCustomHeight": undefined,
+ },
"field": "",
"height": 30,
- "hierarchy": undefined,
"id": "",
- "inCollapseNode": undefined,
- "isCollapsed": undefined,
- "isGrandTotals": undefined,
- "isLeaf": undefined,
+ "isLeaf": false,
"isPivotMode": true,
- "isSubTotals": undefined,
- "isTotalMeasure": undefined,
- "isTotalRoot": undefined,
- "isTotals": undefined,
- "level": undefined,
+ "level": 0,
"padding": 0,
- "parent": undefined,
- "query": undefined,
- "rowIndex": undefined,
- "seriesNumberWidth": undefined,
"spreadsheet": Anything,
"value": "序号",
"width": 80,
@@ -535,29 +373,19 @@ Array [
"y": 0,
},
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": undefined,
+ "extra": Object {
+ "isCustomHeight": undefined,
+ },
"field": "",
"height": 30,
- "hierarchy": undefined,
"id": "province/city",
- "inCollapseNode": undefined,
- "isCollapsed": undefined,
- "isGrandTotals": undefined,
- "isLeaf": undefined,
+ "isLeaf": false,
"isPivotMode": true,
- "isSubTotals": undefined,
- "isTotalMeasure": undefined,
- "isTotalRoot": undefined,
- "isTotals": undefined,
- "level": undefined,
+ "level": 0,
"padding": 0,
- "parent": undefined,
- "query": undefined,
- "rowIndex": undefined,
"seriesNumberWidth": 80,
"spreadsheet": Anything,
"value": "province/city",
@@ -575,30 +403,19 @@ exports[`PivotSheet Corner Tests should render row corner when measure hidden fo
} 1`] = `
Array [
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": undefined,
+ "extra": Object {
+ "isCustomHeight": undefined,
+ },
"field": "province",
"height": 30,
- "hierarchy": undefined,
"id": "province",
- "inCollapseNode": undefined,
- "isCollapsed": undefined,
- "isGrandTotals": undefined,
- "isLeaf": undefined,
+ "isLeaf": false,
"isPivotMode": true,
- "isSubTotals": undefined,
- "isTotalMeasure": undefined,
- "isTotalRoot": undefined,
- "isTotals": undefined,
- "level": undefined,
+ "level": 0,
"padding": 0,
- "parent": undefined,
- "query": undefined,
- "rowIndex": undefined,
- "seriesNumberWidth": undefined,
"spreadsheet": Anything,
"value": "province",
"width": 99.33,
@@ -606,30 +423,19 @@ Array [
"y": 0,
},
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": undefined,
+ "extra": Object {
+ "isCustomHeight": undefined,
+ },
"field": "city",
"height": 30,
- "hierarchy": undefined,
"id": "city",
- "inCollapseNode": undefined,
- "isCollapsed": undefined,
- "isGrandTotals": undefined,
- "isLeaf": undefined,
+ "isLeaf": false,
"isPivotMode": true,
- "isSubTotals": undefined,
- "isTotalMeasure": undefined,
- "isTotalRoot": undefined,
- "isTotals": undefined,
- "level": undefined,
+ "level": 0,
"padding": 0,
- "parent": undefined,
- "query": undefined,
- "rowIndex": undefined,
- "seriesNumberWidth": undefined,
"spreadsheet": Anything,
"value": "city",
"width": 99.33,
@@ -646,30 +452,19 @@ exports[`PivotSheet Corner Tests should render row corner when measure hidden fo
} 1`] = `
Array [
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "series",
- "extra": undefined,
+ "extra": Object {
+ "isCustomHeight": undefined,
+ },
"field": "",
"height": 30,
- "hierarchy": undefined,
"id": "",
- "inCollapseNode": undefined,
- "isCollapsed": undefined,
- "isGrandTotals": undefined,
- "isLeaf": undefined,
+ "isLeaf": false,
"isPivotMode": true,
- "isSubTotals": undefined,
- "isTotalMeasure": undefined,
- "isTotalRoot": undefined,
- "isTotals": undefined,
- "level": undefined,
+ "level": 0,
"padding": 0,
- "parent": undefined,
- "query": undefined,
- "rowIndex": undefined,
- "seriesNumberWidth": undefined,
"spreadsheet": Anything,
"value": "序号",
"width": 80,
@@ -677,30 +472,19 @@ Array [
"y": 0,
},
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": undefined,
+ "extra": Object {
+ "isCustomHeight": undefined,
+ },
"field": "province",
"height": 30,
- "hierarchy": undefined,
"id": "province",
- "inCollapseNode": undefined,
- "isCollapsed": undefined,
- "isGrandTotals": undefined,
- "isLeaf": undefined,
+ "isLeaf": false,
"isPivotMode": true,
- "isSubTotals": undefined,
- "isTotalMeasure": undefined,
- "isTotalRoot": undefined,
- "isTotals": undefined,
- "level": undefined,
+ "level": 0,
"padding": 0,
- "parent": undefined,
- "query": undefined,
- "rowIndex": undefined,
- "seriesNumberWidth": undefined,
"spreadsheet": Anything,
"value": "province",
"width": 96,
@@ -708,30 +492,19 @@ Array [
"y": 0,
},
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": undefined,
+ "extra": Object {
+ "isCustomHeight": undefined,
+ },
"field": "city",
"height": 30,
- "hierarchy": undefined,
"id": "city",
- "inCollapseNode": undefined,
- "isCollapsed": undefined,
- "isGrandTotals": undefined,
- "isLeaf": undefined,
+ "isLeaf": false,
"isPivotMode": true,
- "isSubTotals": undefined,
- "isTotalMeasure": undefined,
- "isTotalRoot": undefined,
- "isTotals": undefined,
- "level": undefined,
+ "level": 0,
"padding": 0,
- "parent": undefined,
- "query": undefined,
- "rowIndex": undefined,
- "seriesNumberWidth": undefined,
"spreadsheet": Anything,
"value": "city",
"width": 96,
@@ -748,29 +521,19 @@ exports[`PivotSheet Corner Tests should render row corner when measure hidden fo
} 1`] = `
Array [
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": undefined,
+ "extra": Object {
+ "isCustomHeight": undefined,
+ },
"field": "",
"height": 30,
- "hierarchy": undefined,
"id": "province/city",
- "inCollapseNode": undefined,
- "isCollapsed": undefined,
- "isGrandTotals": undefined,
- "isLeaf": undefined,
+ "isLeaf": false,
"isPivotMode": true,
- "isSubTotals": undefined,
- "isTotalMeasure": undefined,
- "isTotalRoot": undefined,
- "isTotals": undefined,
- "level": undefined,
+ "level": 0,
"padding": 0,
- "parent": undefined,
- "query": undefined,
- "rowIndex": undefined,
"seriesNumberWidth": 0,
"spreadsheet": Anything,
"value": "province/city",
@@ -788,30 +551,19 @@ exports[`PivotSheet Corner Tests should render row corner when measure hidden fo
} 1`] = `
Array [
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "series",
- "extra": undefined,
+ "extra": Object {
+ "isCustomHeight": undefined,
+ },
"field": "",
"height": 30,
- "hierarchy": undefined,
"id": "",
- "inCollapseNode": undefined,
- "isCollapsed": undefined,
- "isGrandTotals": undefined,
- "isLeaf": undefined,
+ "isLeaf": false,
"isPivotMode": true,
- "isSubTotals": undefined,
- "isTotalMeasure": undefined,
- "isTotalRoot": undefined,
- "isTotals": undefined,
- "level": undefined,
+ "level": 0,
"padding": 0,
- "parent": undefined,
- "query": undefined,
- "rowIndex": undefined,
- "seriesNumberWidth": undefined,
"spreadsheet": Anything,
"value": "序号",
"width": 80,
@@ -819,29 +571,19 @@ Array [
"y": 0,
},
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": undefined,
+ "extra": Object {
+ "isCustomHeight": undefined,
+ },
"field": "",
"height": 30,
- "hierarchy": undefined,
"id": "province/city",
- "inCollapseNode": undefined,
- "isCollapsed": undefined,
- "isGrandTotals": undefined,
- "isLeaf": undefined,
+ "isLeaf": false,
"isPivotMode": true,
- "isSubTotals": undefined,
- "isTotalMeasure": undefined,
- "isTotalRoot": undefined,
- "isTotals": undefined,
- "level": undefined,
+ "level": 0,
"padding": 0,
- "parent": undefined,
- "query": undefined,
- "rowIndex": undefined,
"seriesNumberWidth": 80,
"spreadsheet": Anything,
"value": "province/city",
diff --git a/packages/s2-core/__tests__/spreadsheet/__snapshots__/custom-cell-style-spec.ts.snap b/packages/s2-core/__tests__/spreadsheet/__snapshots__/custom-cell-style-spec.ts.snap
index c9eb35e66e..ad75e1272b 100644
--- a/packages/s2-core/__tests__/spreadsheet/__snapshots__/custom-cell-style-spec.ts.snap
+++ b/packages/s2-core/__tests__/spreadsheet/__snapshots__/custom-cell-style-spec.ts.snap
@@ -235,6 +235,26 @@ Array [
]
`;
+exports[`SpreadSheet Custom Cell Style Tests PivotSheet Custom Cell Style Tests #RowCell should get custom tree row cell style 1`] = `
+Array [
+ Object {
+ "height": 30,
+ "id": "root[&]浙江",
+ "width": 150,
+ },
+ Object {
+ "height": 30,
+ "id": "root[&]浙江[&]义乌",
+ "width": 150,
+ },
+ Object {
+ "height": 30,
+ "id": "root[&]浙江[&]杭州",
+ "width": 150,
+ },
+]
+`;
+
exports[`SpreadSheet Custom Cell Style Tests PivotSheet Custom Cell Style Tests should render default cell style 1`] = `
Array [
Object {
diff --git a/packages/s2-core/__tests__/spreadsheet/__snapshots__/miss-dimension-values-spec.ts.snap b/packages/s2-core/__tests__/spreadsheet/__snapshots__/miss-dimension-values-spec.ts.snap
index 3c0793b6c4..7bfa7ddc92 100644
--- a/packages/s2-core/__tests__/spreadsheet/__snapshots__/miss-dimension-values-spec.ts.snap
+++ b/packages/s2-core/__tests__/spreadsheet/__snapshots__/miss-dimension-values-spec.ts.snap
@@ -21,19 +21,19 @@ exports[`Miss Dimension Values Tests should replace empty dimension value placeh
exports[`Miss Dimension Values Tests should replace empty dimension value placeholder when copy original data 1`] = `
"first second third number
-总计 $$empty_field_value$$ $$empty_field_value$$ 1732771
+总计 - - 1732771
维值-1 维值-2 维度-3 12222
维值-1 维值-3 维值-3 11111
维值-1 维值-3 维度-3 11111
维值-1 维值-3 小计
维值-1 小计 456
测试-1 测试-2 维度-3 4444567
-测试-1 测试-3 $$empty_field_value$$ 785222
+测试-1 测试-3 - 785222
测试-1 测试-4 维度-3 6455644
测试-1 测试-5 维度-3 1111
测试-1 小计 125555
-测试-6 测试-x $$empty_field_value$$ 111111
-测试-6 测试-7 $$empty_field_value$$ 67878
-测试-6 测试-8 $$empty_field_value$$ 456.464
+测试-6 测试-x - 111111
+测试-6 测试-7 - 67878
+测试-6 测试-8 - 456.464
测试-6 小计 123.416"
`;
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 ed4293c5e8..c9bab271a5 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
@@ -1,12 +1,12 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should calc correctly row cell height if actual text lines is difference 1`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should adjust col cell height if corner cell height > col cell height 1`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 68,
+ "height": 48,
"multiLineActualTexts": Array [
"序号",
],
@@ -14,62 +14,67 @@ Array [
"width": 80,
},
Object {
- "actualText": "省份",
+ "actualText": "province",
"actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 68,
+ "actualTextWidth": 51,
+ "height": 48,
"multiLineActualTexts": Array [
- "省份",
+ "province",
],
- "originalText": "省份",
- "width": 96,
+ "originalText": "province",
+ "width": 102.57,
},
Object {
- "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
- "actualTextHeight": 64,
- "actualTextWidth": 292,
- "height": 68,
+ "actualText": "城市城市",
+ "actualTextHeight": 32,
+ "actualTextWidth": 50,
+ "height": 48,
"multiLineActualTexts": Array [
- "城市城市城市",
- "城市城市城市",
- "城市城市城市",
- "城市城市城市",
+ "城市",
+ "城市",
],
- "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
- "width": 96,
+ "originalText": "城市
+城市",
+ "width": 102.57,
},
Object {
- "actualText": "类别类别类别类别类别类别类别类别类别类别",
- "actualTextHeight": 16,
- "actualTextWidth": 241,
- "height": 72,
+ "actualText": "类别类别",
+ "actualTextHeight": 32,
+ "actualTextWidth": 50,
+ "height": 48,
"multiLineActualTexts": Array [
- "类别类别类别类别类别类别类别类别类别类别",
+ "类别",
+ "类别",
],
- "originalText": "类别类别类别类别类别类别类别类别类别类别",
- "width": 272,
+ "originalText": "类别
+类别",
+ "width": 285.14,
},
Object {
- "actualText": "子类别",
- "actualTextHeight": 16,
- "actualTextWidth": 37,
- "height": 72,
+ "actualText": "子类别子类别子类别",
+ "actualTextHeight": 48,
+ "actualTextWidth": 111,
+ "height": 64,
"multiLineActualTexts": Array [
"子类别",
+ "子类别",
+ "子类别",
],
- "originalText": "子类别",
- "width": 272,
+ "originalText": "子类别
+子类别
+子类别",
+ "width": 285.14,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should calc correctly row cell height if actual text lines is difference 2`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should adjust col cell height if corner cell height > col cell height 2`] = `
Array [
Object {
"actualText": "1",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 72,
+ "height": 120,
"multiLineActualTexts": Array [
"1",
],
@@ -80,7 +85,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 120,
+ "height": 30,
"multiLineActualTexts": Array [
"2",
],
@@ -91,261 +96,181 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 72,
+ "height": 120,
"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 calc correctly row cell height if actual text lines is difference 3`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should adjust col cell height if corner cell height > col cell height 3`] = `
Array [
- Object {
- "actualText": "纸张纸张纸张纸张纸张",
- "actualTextHeight": 32,
- "actualTextWidth": 122,
- "height": 72,
- "multiLineActualTexts": Array [
- "纸张纸张纸张",
- "纸张纸张",
- ],
- "originalText": "纸张纸张纸张纸张纸张",
- "width": 96,
- },
- Object {
- "actualText": "-",
- "actualTextHeight": 16,
- "actualTextWidth": 4,
- "height": 72,
- "multiLineActualTexts": Array [
- "-",
- ],
- "originalText": "-",
- "width": 96,
- },
- Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
- "actualTextHeight": 60,
- "actualTextWidth": 268,
- "height": 68,
- "multiLineActualTexts": Array [
- "数量数量数量",
- "数量数量数量",
- "数量数量数量",
- "数量数量",
- ],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 96,
- },
Object {
"actualText": "家具",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 72,
+ "height": 48,
"multiLineActualTexts": Array [
"家具",
],
"originalText": "家具",
- "width": 192,
+ "width": 205.14,
},
Object {
"actualText": "桌子",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 72,
+ "height": 64,
"multiLineActualTexts": Array [
"桌子",
],
"originalText": "桌子",
- "width": 96,
+ "width": 102.57,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
- "actualTextHeight": 60,
- "actualTextWidth": 268,
- "height": 68,
+ "actualText": "数量...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 35,
+ "height": 48,
"multiLineActualTexts": Array [
- "数量数量数量",
- "数量数量数量",
- "数量数量数量",
- "数量数量",
+ "数量...",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 96,
+ "originalText": "数量
+数量
+数量
+数量",
+ "width": 102.57,
},
Object {
"actualText": "沙发",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 72,
+ "height": 64,
"multiLineActualTexts": Array [
"沙发",
],
"originalText": "沙发",
- "width": 96,
+ "width": 102.57,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
- "actualTextHeight": 60,
- "actualTextWidth": 268,
- "height": 68,
+ "actualText": "数量...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 35,
+ "height": 48,
"multiLineActualTexts": Array [
- "数量数量数量",
- "数量数量数量",
- "数量数量数量",
- "数量数量",
+ "数量...",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 96,
+ "originalText": "数量
+数量
+数量
+数量",
+ "width": 102.57,
},
Object {
- "actualText": "家具家具家具家具家具家具家具家具家具家具家具家...",
- "actualTextHeight": 64,
- "actualTextWidth": 290,
- "height": 72,
+ "actualText": "家具家具家具...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 83,
+ "height": 48,
"multiLineActualTexts": Array [
- "家具家具家具",
- "家具家具家具",
- "家具家具家具",
- "家具家具家...",
+ "家具家具家具...",
],
"originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
- "width": 96,
+ "width": 102.57,
},
Object {
- "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...",
- "actualTextHeight": 64,
- "actualTextWidth": 290,
- "height": 72,
+ "actualText": "桌子桌子桌子...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 83,
+ "height": 64,
"multiLineActualTexts": Array [
- "桌子桌子桌子",
- "桌子桌子桌子",
- "桌子桌子桌子",
- "桌子桌子桌...",
+ "桌子桌子桌子...",
],
"originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
- "width": 96,
+ "width": 102.57,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
- "actualTextHeight": 60,
- "actualTextWidth": 268,
- "height": 68,
+ "actualText": "数量...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 35,
+ "height": 48,
"multiLineActualTexts": Array [
- "数量数量数量",
- "数量数量数量",
- "数量数量数量",
- "数量数量",
+ "数量...",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 96,
+ "originalText": "数量
+数量
+数量
+数量",
+ "width": 102.57,
},
Object {
"actualText": "办公用品",
"actualTextHeight": 16,
"actualTextWidth": 49,
- "height": 72,
+ "height": 48,
"multiLineActualTexts": Array [
"办公用品",
],
"originalText": "办公用品",
- "width": 192,
+ "width": 205.14,
},
Object {
"actualText": "笔",
"actualTextHeight": 16,
"actualTextWidth": 13,
- "height": 72,
+ "height": 64,
"multiLineActualTexts": Array [
"笔",
],
"originalText": "笔",
- "width": 96,
+ "width": 102.57,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
- "actualTextHeight": 60,
- "actualTextWidth": 268,
- "height": 68,
+ "actualText": "数量...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 35,
+ "height": 48,
"multiLineActualTexts": Array [
- "数量数量数量",
- "数量数量数量",
- "数量数量数量",
- "数量数量",
+ "数量...",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 96,
+ "originalText": "数量
+数量
+数量
+数量",
+ "width": 102.57,
},
Object {
"actualText": "纸张",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 72,
+ "height": 64,
"multiLineActualTexts": Array [
"纸张",
],
"originalText": "纸张",
- "width": 96,
+ "width": 102.57,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
- "actualTextHeight": 60,
- "actualTextWidth": 268,
- "height": 68,
+ "actualText": "数量...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 35,
+ "height": 48,
"multiLineActualTexts": Array [
- "数量数量数量",
- "数量数量数量",
- "数量数量数量",
- "数量数量",
+ "数量...",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 96,
+ "originalText": "数量
+数量
+数量
+数量",
+ "width": 102.57,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should calc correctly row cell height if actual text lines is difference 4`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should adjust col cell height if corner cell height > col cell height 4`] = `
Array [
- Object {
- "actualText": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙...",
- "actualTextHeight": 64,
- "actualTextWidth": 290,
- "height": 72,
- "multiLineActualTexts": Array [
- "浙江浙江浙江",
- "浙江浙江浙江",
- "浙江浙江浙江",
- "浙江浙江浙...",
- ],
- "originalText": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江",
- "width": 96,
- },
- Object {
- "actualText": "杭州杭州杭州杭州",
- "actualTextHeight": 30,
- "actualTextWidth": 98,
- "height": 72,
- "multiLineActualTexts": Array [
- "杭州杭州杭州",
- "杭州",
- ],
- "originalText": "杭州杭州杭州杭州",
- "width": 96,
- },
Object {
"actualText": "浙江省",
"actualTextHeight": 16,
@@ -355,7 +280,7 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "绍兴市",
@@ -366,7 +291,7 @@ Array [
"绍兴市",
],
"originalText": "绍兴市",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "宁波市",
@@ -377,7 +302,7 @@ Array [
"宁波市",
],
"originalText": "宁波市",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "舟山市",
@@ -388,7 +313,7 @@ Array [
"舟山市",
],
"originalText": "舟山市",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "杭州市",
@@ -399,35 +324,29 @@ Array [
"杭州市",
],
"originalText": "杭州市",
- "width": 96,
+ "width": 102.57,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江...",
- "actualTextHeight": 64,
- "actualTextWidth": 290,
- "height": 72,
+ "actualText": "浙江省浙江省...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 83,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省浙江省",
- "浙江省浙江省",
- "浙江省浙江省",
- "浙江省浙江...",
+ "浙江省浙江省...",
],
"originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
- "width": 96,
+ "width": 102.57,
},
Object {
- "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州...",
- "actualTextHeight": 60,
- "actualTextWidth": 290,
- "height": 72,
+ "actualText": "杭州市杭州市...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 83,
+ "height": 30,
"multiLineActualTexts": Array [
- "杭州市杭州市",
- "杭州市杭州市",
- "杭州市杭州市",
- "杭州市杭州...",
+ "杭州市杭州市...",
],
"originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "四川省",
@@ -438,7 +357,7 @@ Array [
"四川省",
],
"originalText": "四川省",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "成都市",
@@ -449,7 +368,7 @@ Array [
"成都市",
],
"originalText": "成都市",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "绵阳市",
@@ -460,7 +379,7 @@ Array [
"绵阳市",
],
"originalText": "绵阳市",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "南充市",
@@ -471,7 +390,7 @@ Array [
"南充市",
],
"originalText": "南充市",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "乐山市",
@@ -482,145 +401,23 @@ Array [
"乐山市",
],
"originalText": "乐山市",
- "width": 96,
+ "width": 102.57,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should calc correctly row cell height if actual text lines is difference 5`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should adjust col cell height if corner cell height > col cell height 5`] = `
Array [
Object {
- "actualText": "-",
- "actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 72,
- "multiLineActualTexts": Array [
- "-",
- ],
- "originalText": "-",
- "width": 96,
- },
- Object {
- "actualText": "-",
- "actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 30,
- "multiLineActualTexts": Array [
- "-",
- ],
- "originalText": "-",
- "width": 96,
- },
- Object {
- "actualText": "-",
- "actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 30,
- "multiLineActualTexts": Array [
- "-",
- ],
- "originalText": "-",
- "width": 96,
- },
- Object {
- "actualText": "-",
- "actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 30,
- "multiLineActualTexts": Array [
- "-",
- ],
- "originalText": "-",
- "width": 96,
- },
- Object {
- "actualText": "-",
- "actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 30,
- "multiLineActualTexts": Array [
- "-",
- ],
- "originalText": "-",
- "width": 96,
- },
- Object {
- "actualText": "-",
- "actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 72,
- "multiLineActualTexts": Array [
- "-",
- ],
- "originalText": "-",
- "width": 96,
- },
- Object {
- "actualText": "-",
- "actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 30,
- "multiLineActualTexts": Array [
- "-",
- ],
- "originalText": "-",
- "width": 96,
- },
- Object {
- "actualText": "-",
- "actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 30,
- "multiLineActualTexts": Array [
- "-",
- ],
- "originalText": "-",
- "width": 96,
- },
- Object {
- "actualText": "-",
- "actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 30,
- "multiLineActualTexts": Array [
- "-",
- ],
- "originalText": "-",
- "width": 96,
- },
- Object {
- "actualText": "-",
- "actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 30,
- "multiLineActualTexts": Array [
- "-",
- ],
- "originalText": "-",
- "width": 96,
- },
- Object {
- "actualText": "-",
+ "actualText": "23672367236...",
"actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 72,
- "multiLineActualTexts": Array [
- "-",
- ],
- "originalText": "-",
- "width": 96,
- },
- Object {
- "actualText": "236723672361111",
- "actualTextHeight": 30,
- "actualTextWidth": 99,
+ "actualTextWidth": 84,
"height": 30,
"multiLineActualTexts": Array [
- "23672367236",
- "1111",
+ "23672367236...",
],
"originalText": 236723672361111,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "3877",
@@ -631,7 +428,7 @@ Array [
"3877",
],
"originalText": 3877,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "4342",
@@ -642,7 +439,7 @@ Array [
"4342",
],
"originalText": 4342,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "-",
@@ -653,18 +450,18 @@ Array [
"-",
],
"originalText": "-",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 72,
+ "height": 30,
"multiLineActualTexts": Array [
"-",
],
"originalText": "-",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "1723",
@@ -675,7 +472,7 @@ Array [
"1723",
],
"originalText": 1723,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "1822",
@@ -686,7 +483,7 @@ Array [
"1822",
],
"originalText": 1822,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "1943",
@@ -697,7 +494,7 @@ Array [
"1943",
],
"originalText": 1943,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "2330",
@@ -708,18 +505,7 @@ Array [
"2330",
],
"originalText": 2330,
- "width": 96,
- },
- Object {
- "actualText": "-",
- "actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 72,
- "multiLineActualTexts": Array [
- "-",
- ],
- "originalText": "-",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "632",
@@ -730,7 +516,7 @@ Array [
"632",
],
"originalText": 632,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "7234",
@@ -741,7 +527,7 @@ Array [
"7234",
],
"originalText": 7234,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "834",
@@ -752,7 +538,7 @@ Array [
"834",
],
"originalText": 834,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "5343",
@@ -763,18 +549,18 @@ Array [
"5343",
],
"originalText": 5343,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 72,
+ "height": 30,
"multiLineActualTexts": Array [
"-",
],
"originalText": "-",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "2451",
@@ -785,7 +571,7 @@ Array [
"2451",
],
"originalText": 2451,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "2244",
@@ -796,7 +582,7 @@ Array [
"2244",
],
"originalText": 2244,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "2333",
@@ -807,7 +593,7 @@ Array [
"2333",
],
"originalText": 2333,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "2445",
@@ -818,18 +604,18 @@ Array [
"2445",
],
"originalText": 2445,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 72,
+ "height": 30,
"multiLineActualTexts": Array [
"-",
],
"originalText": "-",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "-",
@@ -840,7 +626,7 @@ Array [
"-",
],
"originalText": "-",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "-",
@@ -851,7 +637,7 @@ Array [
"-",
],
"originalText": "-",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "-",
@@ -862,31 +648,18 @@ Array [
"-",
],
"originalText": "-",
- "width": 96,
+ "width": 102.57,
},
Object {
- "actualText": "-",
+ "actualText": "77897789778...",
"actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualTextWidth": 84,
"height": 30,
"multiLineActualTexts": Array [
- "-",
- ],
- "originalText": "-",
- "width": 96,
- },
- Object {
- "actualText": "7789778977897789778977897789",
- "actualTextHeight": 45,
- "actualTextWidth": 189,
- "height": 72,
- "multiLineActualTexts": Array [
- "77897789778",
- "97789778977",
- "897789",
+ "77897789778...",
],
"originalText": "7789778977897789778977897789",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "-",
@@ -897,7 +670,7 @@ Array [
"-",
],
"originalText": "-",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "-",
@@ -908,7 +681,7 @@ Array [
"-",
],
"originalText": "-",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "-",
@@ -919,7 +692,7 @@ Array [
"-",
],
"originalText": "-",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "-",
@@ -930,18 +703,7 @@ Array [
"-",
],
"originalText": "-",
- "width": 96,
- },
- Object {
- "actualText": "-",
- "actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 72,
- "multiLineActualTexts": Array [
- "-",
- ],
- "originalText": "-",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "1304",
@@ -952,7 +714,7 @@ Array [
"1304",
],
"originalText": 1304,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "1145",
@@ -963,7 +725,7 @@ Array [
"1145",
],
"originalText": 1145,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "1432",
@@ -974,7 +736,7 @@ Array [
"1432",
],
"originalText": 1432,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "945",
@@ -985,18 +747,18 @@ Array [
"945",
],
"originalText": 945,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 72,
+ "height": 30,
"multiLineActualTexts": Array [
"-",
],
"originalText": "-",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "2335",
@@ -1007,7 +769,7 @@ Array [
"2335",
],
"originalText": 2335,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "245",
@@ -1018,7 +780,7 @@ Array [
"245",
],
"originalText": 245,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "2457",
@@ -1029,7 +791,7 @@ Array [
"2457",
],
"originalText": 2457,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "2458",
@@ -1040,18 +802,7 @@ Array [
"2458",
],
"originalText": 2458,
- "width": 96,
- },
- Object {
- "actualText": "-",
- "actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 72,
- "multiLineActualTexts": Array [
- "-",
- ],
- "originalText": "-",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "1354",
@@ -1062,7 +813,7 @@ Array [
"1354",
],
"originalText": 1354,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "1523",
@@ -1073,7 +824,7 @@ Array [
"1523",
],
"originalText": 1523,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "1634",
@@ -1084,7 +835,7 @@ Array [
"1634",
],
"originalText": 1634,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "1343",
@@ -1095,18 +846,18 @@ Array [
"1343",
],
"originalText": 1343,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 72,
+ "height": 30,
"multiLineActualTexts": Array [
"-",
],
"originalText": "-",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "4004",
@@ -1117,7 +868,7 @@ Array [
"4004",
],
"originalText": 4004,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "3077",
@@ -1128,7 +879,7 @@ Array [
"3077",
],
"originalText": 3077,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "3551",
@@ -1139,7 +890,7 @@ Array [
"3551",
],
"originalText": 3551,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "352",
@@ -1150,18 +901,18 @@ Array [
"352",
],
"originalText": 352,
- "width": 96,
+ "width": 102.57,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should default render one line text 1`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should adjust col cell height if corner cell height > col cell height by "valueInCols: false" 1`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 30,
+ "height": 48,
"multiLineActualTexts": Array [
"序号",
],
@@ -1169,53 +920,57 @@ Array [
"width": 80,
},
Object {
- "actualText": "省份",
+ "actualText": "province",
"actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 30,
+ "actualTextWidth": 51,
+ "height": 48,
"multiLineActualTexts": Array [
- "省份",
+ "province",
],
- "originalText": "省份",
+ "originalText": "province",
"width": 96,
},
Object {
- "actualText": "城市城市城...",
- "actualTextHeight": 16,
- "actualTextWidth": 71,
- "height": 30,
+ "actualText": "城市城市",
+ "actualTextHeight": 32,
+ "actualTextWidth": 50,
+ "height": 48,
"multiLineActualTexts": Array [
- "城市城市城...",
+ "城市",
+ "城市",
],
- "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "originalText": "城市
+城市",
"width": 96,
},
Object {
- "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualText": "数值",
"actualTextHeight": 16,
- "actualTextWidth": 241,
- "height": 30,
+ "actualTextWidth": 25,
+ "height": 48,
"multiLineActualTexts": Array [
- "类别类别类别类别类别类别类别类别类别类别",
+ "数值",
],
- "originalText": "类别类别类别类别类别类别类别类别类别类别",
- "width": 272,
+ "originalText": "数值",
+ "width": 96,
},
Object {
- "actualText": "子类别",
- "actualTextHeight": 16,
- "actualTextWidth": 37,
- "height": 30,
+ "actualText": "类别类别",
+ "actualTextHeight": 32,
+ "actualTextWidth": 50,
+ "height": 48,
"multiLineActualTexts": Array [
- "子类别",
+ "类别",
+ "类别",
],
- "originalText": "子类别",
- "width": 272,
+ "originalText": "类别
+类别",
+ "width": 368,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should default render one line text 2`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should adjust col cell height if corner cell height > col cell height by "valueInCols: false" 2`] = `
Array [
Object {
"actualText": "1",
@@ -1253,13 +1008,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should default render one line text 3`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should adjust col cell height if corner cell height > col cell height by "valueInCols: false" 3`] = `
Array [
Object {
"actualText": "家具",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 30,
+ "height": 48,
"multiLineActualTexts": Array [
"家具",
],
@@ -1268,9 +1023,9 @@ Array [
},
Object {
"actualText": "桌子",
- "actualTextHeight": 16,
+ "actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 30,
+ "height": 48,
"multiLineActualTexts": Array [
"桌子",
],
@@ -1278,42 +1033,75 @@ Array [
"width": 96,
},
Object {
- "actualText": "数量数量数...",
+ "actualText": "沙发",
"actualTextHeight": 15,
- "actualTextWidth": 71,
- "height": 30,
+ "actualTextWidth": 25,
+ "height": 48,
"multiLineActualTexts": Array [
- "数量数量数...",
+ "沙发",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "originalText": "沙发",
"width": 96,
},
Object {
- "actualText": "沙发",
+ "actualText": "家具家具家...",
"actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 30,
+ "actualTextWidth": 71,
+ "height": 48,
"multiLineActualTexts": Array [
- "沙发",
+ "家具家具家...",
],
- "originalText": "沙发",
+ "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
"width": 96,
},
Object {
- "actualText": "数量数量数...",
+ "actualText": "桌子桌子桌...",
"actualTextHeight": 15,
"actualTextWidth": 71,
- "height": 30,
+ "height": 48,
"multiLineActualTexts": Array [
- "数量数量数...",
+ "桌子桌子桌...",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "width": 96,
+ },
+ Object {
+ "actualText": "办公用品",
+ "actualTextHeight": 16,
+ "actualTextWidth": 49,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "办公用品",
+ ],
+ "originalText": "办公用品",
+ "width": 192,
+ },
+ Object {
+ "actualText": "笔",
+ "actualTextHeight": 15,
+ "actualTextWidth": 13,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "笔",
+ ],
+ "originalText": "笔",
+ "width": 96,
+ },
+ Object {
+ "actualText": "纸张",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "纸张",
+ ],
+ "originalText": "纸张",
"width": 96,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should default render one line text 4`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should adjust col cell height if corner cell height > col cell height by "valueInCols: false" 4`] = `
Array [
Object {
"actualText": "浙江省",
@@ -1326,6 +1114,106 @@ Array [
"originalText": "浙江省",
"width": 96,
},
+ Object {
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "数量...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 35,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "数量...",
+ ],
+ "originalText": "数量
+数量
+数量
+数量",
+ "width": 96,
+ },
+ Object {
+ "actualText": "宁波市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "宁波市",
+ ],
+ "originalText": "宁波市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "数量...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 35,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "数量...",
+ ],
+ "originalText": "数量
+数量
+数量
+数量",
+ "width": 96,
+ },
+ Object {
+ "actualText": "舟山市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "舟山市",
+ ],
+ "originalText": "舟山市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "数量...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 35,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "数量...",
+ ],
+ "originalText": "数量
+数量
+数量
+数量",
+ "width": 96,
+ },
+ Object {
+ "actualText": "杭州市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "杭州市",
+ ],
+ "originalText": "杭州市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "数量...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 35,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "数量...",
+ ],
+ "originalText": "数量
+数量
+数量
+数量",
+ "width": 96,
+ },
Object {
"actualText": "浙江省浙江...",
"actualTextHeight": 16,
@@ -1337,6 +1225,31 @@ Array [
"originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
"width": 96,
},
+ Object {
+ "actualText": "杭州市杭州...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 71,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "杭州市杭州...",
+ ],
+ "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "数量...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 35,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "数量...",
+ ],
+ "originalText": "数量
+数量
+数量
+数量",
+ "width": 96,
+ },
Object {
"actualText": "四川省",
"actualTextHeight": 16,
@@ -1348,10 +1261,110 @@ Array [
"originalText": "四川省",
"width": 96,
},
+ Object {
+ "actualText": "成都市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "成都市",
+ ],
+ "originalText": "成都市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "数量...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 35,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "数量...",
+ ],
+ "originalText": "数量
+数量
+数量
+数量",
+ "width": 96,
+ },
+ Object {
+ "actualText": "绵阳市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "绵阳市",
+ ],
+ "originalText": "绵阳市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "数量...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 35,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "数量...",
+ ],
+ "originalText": "数量
+数量
+数量
+数量",
+ "width": 96,
+ },
+ Object {
+ "actualText": "南充市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "南充市",
+ ],
+ "originalText": "南充市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "数量...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 35,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "数量...",
+ ],
+ "originalText": "数量
+数量
+数量
+数量",
+ "width": 96,
+ },
+ Object {
+ "actualText": "乐山市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "乐山市",
+ ],
+ "originalText": "乐山市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "数量...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 35,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "数量...",
+ ],
+ "originalText": "数量
+数量
+数量
+数量",
+ "width": 96,
+ },
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should default render one line text 5`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should adjust col cell height if corner cell height > col cell height by "valueInCols: false" 5`] = `
Array [
Object {
"actualText": "2367236723...",
@@ -1551,223 +1564,587 @@ Array [
"originalText": 2445,
"width": 96,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly col cell height priority if actual text not wrap 1`] = `
-Array [
Object {
- "actualText": "序号",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 20,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "序号",
+ "-",
],
- "originalText": "序号",
- "width": 80,
+ "originalText": "-",
+ "width": 96,
},
Object {
- "actualText": "province",
- "actualTextHeight": 16,
- "actualTextWidth": 51,
- "height": 20,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "province",
+ "-",
],
- "originalText": "province",
- "width": 119.66,
+ "originalText": "-",
+ "width": 96,
},
Object {
- "actualText": "city",
- "actualTextHeight": 16,
- "actualTextWidth": 21,
- "height": 20,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "city",
+ "-",
],
- "originalText": "city",
- "width": 119.66,
+ "originalText": "-",
+ "width": 96,
},
Object {
- "actualText": "type",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 20,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "type",
+ "-",
],
- "originalText": "type",
- "width": 319.32,
+ "originalText": "-",
+ "width": 96,
},
Object {
- "actualText": "sub_type",
- "actualTextHeight": 16,
- "actualTextWidth": 53,
- "height": 20,
+ "actualText": "7789778977...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 77,
+ "height": 30,
"multiLineActualTexts": Array [
- "sub_type",
+ "7789778977...",
],
- "originalText": "sub_type",
- "width": 319.32,
+ "originalText": "7789778977897789778977897789",
+ "width": 96,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly col cell height priority if actual text not wrap 2`] = `
-Array [
Object {
- "actualText": "1",
+ "actualText": "-",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 120,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "1",
+ "-",
],
- "originalText": "1",
- "width": 80,
+ "originalText": "-",
+ "width": 96,
},
Object {
- "actualText": "2",
+ "actualText": "-",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 120,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "2",
+ "-",
],
- "originalText": "2",
- "width": 80,
+ "originalText": "-",
+ "width": 96,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly col cell height priority if actual text not wrap 3`] = `
-Array [
Object {
- "actualText": "家具",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 20,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "家具",
+ "-",
],
- "originalText": "家具",
- "width": 239.34,
+ "originalText": "-",
+ "width": 96,
},
Object {
- "actualText": "桌子",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 20,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "桌子",
+ "-",
],
- "originalText": "桌子",
- "width": 119.67,
+ "originalText": "-",
+ "width": 96,
},
Object {
- "actualText": "number",
+ "actualText": "1304",
"actualTextHeight": 15,
- "actualTextWidth": 41,
- "height": 20,
+ "actualTextWidth": 27,
+ "height": 30,
"multiLineActualTexts": Array [
- "number",
+ "1304",
],
- "originalText": "number",
- "width": 119.67,
+ "originalText": 1304,
+ "width": 96,
},
Object {
- "actualText": "沙发",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 20,
+ "actualText": "1145",
+ "actualTextHeight": 15,
+ "actualTextWidth": 26,
+ "height": 30,
"multiLineActualTexts": Array [
- "沙发",
+ "1145",
],
- "originalText": "沙发",
- "width": 119.67,
+ "originalText": 1145,
+ "width": 96,
},
Object {
- "actualText": "number",
+ "actualText": "1432",
"actualTextHeight": 15,
- "actualTextWidth": 41,
- "height": 20,
+ "actualTextWidth": 27,
+ "height": 30,
"multiLineActualTexts": Array [
- "number",
+ "1432",
],
- "originalText": "number",
- "width": 119.67,
+ "originalText": 1432,
+ "width": 96,
},
Object {
- "actualText": "办公用品",
- "actualTextHeight": 16,
- "actualTextWidth": 49,
- "height": 20,
+ "actualText": "945",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
"multiLineActualTexts": Array [
- "办公用品",
+ "945",
],
- "originalText": "办公用品",
- "width": 239.34,
+ "originalText": 945,
+ "width": 96,
},
Object {
- "actualText": "笔",
- "actualTextHeight": 16,
- "actualTextWidth": 13,
- "height": 20,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "笔",
+ "-",
],
- "originalText": "笔",
- "width": 119.67,
+ "originalText": "-",
+ "width": 96,
},
Object {
- "actualText": "number",
+ "actualText": "2335",
"actualTextHeight": 15,
- "actualTextWidth": 41,
- "height": 20,
+ "actualTextWidth": 27,
+ "height": 30,
"multiLineActualTexts": Array [
- "number",
+ "2335",
],
- "originalText": "number",
- "width": 119.67,
+ "originalText": 2335,
+ "width": 96,
},
Object {
- "actualText": "纸张",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 20,
+ "actualText": "245",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
"multiLineActualTexts": Array [
- "纸张",
+ "245",
],
- "originalText": "纸张",
- "width": 119.67,
+ "originalText": 245,
+ "width": 96,
},
Object {
- "actualText": "number",
+ "actualText": "2457",
"actualTextHeight": 15,
- "actualTextWidth": 41,
- "height": 20,
+ "actualTextWidth": 27,
+ "height": 30,
"multiLineActualTexts": Array [
- "number",
+ "2457",
],
- "originalText": "number",
- "width": 119.67,
+ "originalText": 2457,
+ "width": 96,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly col cell height priority if actual text not wrap 4`] = `
+ Object {
+ "actualText": "2458",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2458",
+ ],
+ "originalText": 2458,
+ "width": 96,
+ },
+ Object {
+ "actualText": "1354",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1354",
+ ],
+ "originalText": 1354,
+ "width": 96,
+ },
+ Object {
+ "actualText": "1523",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1523",
+ ],
+ "originalText": 1523,
+ "width": 96,
+ },
+ Object {
+ "actualText": "1634",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1634",
+ ],
+ "originalText": 1634,
+ "width": 96,
+ },
+ Object {
+ "actualText": "1343",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1343",
+ ],
+ "originalText": 1343,
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "4004",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "4004",
+ ],
+ "originalText": 4004,
+ "width": 96,
+ },
+ Object {
+ "actualText": "3077",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "3077",
+ ],
+ "originalText": 3077,
+ "width": 96,
+ },
+ Object {
+ "actualText": "3551",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "3551",
+ ],
+ "originalText": 3551,
+ "width": 96,
+ },
+ Object {
+ "actualText": "352",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "352",
+ ],
+ "originalText": 352,
+ "width": 96,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should adjust col cell height if corner cell height > col cell height by tree mode 1`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+ Object {
+ "actualText": "province/城市城市",
+ "actualTextHeight": 32,
+ "actualTextWidth": 103,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "province/城市",
+ "城市",
+ ],
+ "originalText": "province/城市
+城市",
+ "width": 150,
+ },
+ Object {
+ "actualText": "类别类别",
+ "actualTextHeight": 32,
+ "actualTextWidth": 50,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "类别",
+ "类别",
+ ],
+ "originalText": "类别
+类别",
+ "width": 230,
+ },
+ Object {
+ "actualText": "子类别子类别子类别",
+ "actualTextHeight": 48,
+ "actualTextWidth": 111,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "子类别",
+ "子类别",
+ "子类别",
+ ],
+ "originalText": "子类别
+子类别
+子类别",
+ "width": 230,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should adjust col cell height if corner cell height > col cell height by tree mode 2`] = `
+Array [
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 150,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": "1",
+ "width": 80,
+ },
+ Object {
+ "actualText": "2",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 60,
+ "multiLineActualTexts": Array [
+ "2",
+ ],
+ "originalText": "2",
+ "width": 80,
+ },
+ Object {
+ "actualText": "3",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 150,
+ "multiLineActualTexts": Array [
+ "3",
+ ],
+ "originalText": "3",
+ "width": 80,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should adjust col cell height if corner cell height > col cell height by tree mode 3`] = `
+Array [
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 227.2,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 113.6,
+ },
+ Object {
+ "actualText": "数量...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 35,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "数量...",
+ ],
+ "originalText": "数量
+数量
+数量
+数量",
+ "width": 113.6,
+ },
+ Object {
+ "actualText": "沙发",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "沙发",
+ ],
+ "originalText": "沙发",
+ "width": 113.6,
+ },
+ Object {
+ "actualText": "数量...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 35,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "数量...",
+ ],
+ "originalText": "数量
+数量
+数量
+数量",
+ "width": 113.6,
+ },
+ Object {
+ "actualText": "家具家具家具家...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 95,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "家具家具家具家...",
+ ],
+ "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "width": 113.6,
+ },
+ Object {
+ "actualText": "桌子桌子桌子桌...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 95,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "桌子桌子桌子桌...",
+ ],
+ "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "width": 113.6,
+ },
+ Object {
+ "actualText": "数量...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 35,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "数量...",
+ ],
+ "originalText": "数量
+数量
+数量
+数量",
+ "width": 113.6,
+ },
+ Object {
+ "actualText": "办公用品",
+ "actualTextHeight": 16,
+ "actualTextWidth": 49,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "办公用品",
+ ],
+ "originalText": "办公用品",
+ "width": 227.2,
+ },
+ Object {
+ "actualText": "笔",
+ "actualTextHeight": 16,
+ "actualTextWidth": 13,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "笔",
+ ],
+ "originalText": "笔",
+ "width": 113.6,
+ },
+ Object {
+ "actualText": "数量...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 35,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "数量...",
+ ],
+ "originalText": "数量
+数量
+数量
+数量",
+ "width": 113.6,
+ },
+ Object {
+ "actualText": "纸张",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "纸张",
+ ],
+ "originalText": "纸张",
+ "width": 113.6,
+ },
+ Object {
+ "actualText": "数量...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 35,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "数量...",
+ ],
+ "originalText": "数量
+数量
+数量
+数量",
+ "width": 113.6,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should adjust col cell height if corner cell height > col cell height by tree mode 4`] = `
Array [
Object {
"actualText": "浙江省",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 120,
+ "height": 30,
"multiLineActualTexts": Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 119.66,
+ "width": 150,
+ },
+ Object {
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 150,
},
Object {
"actualText": "宁波市",
@@ -1778,7 +2155,7 @@ Array [
"宁波市",
],
"originalText": "宁波市",
- "width": 119.66,
+ "width": 150,
},
Object {
"actualText": "舟山市",
@@ -1789,7 +2166,7 @@ Array [
"舟山市",
],
"originalText": "舟山市",
- "width": 119.66,
+ "width": 150,
},
Object {
"actualText": "杭州市",
@@ -1800,29 +2177,40 @@ Array [
"杭州市",
],
"originalText": "杭州市",
- "width": 119.66,
+ "width": 150,
},
Object {
- "actualText": "绍兴市",
+ "actualText": "浙江省浙江省浙江省...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 119,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "浙江省浙江省浙江省...",
+ ],
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "width": 150,
+ },
+ Object {
+ "actualText": "杭州市杭州市杭州市...",
"actualTextHeight": 15,
- "actualTextWidth": 37,
+ "actualTextWidth": 119,
"height": 30,
"multiLineActualTexts": Array [
- "绍兴市",
+ "杭州市杭州市杭州市...",
],
- "originalText": "绍兴市",
- "width": 119.66,
+ "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "width": 150,
},
Object {
"actualText": "四川省",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 120,
+ "height": 30,
"multiLineActualTexts": Array [
"四川省",
],
"originalText": "四川省",
- "width": 119.66,
+ "width": 150,
},
Object {
"actualText": "成都市",
@@ -1833,7 +2221,7 @@ Array [
"成都市",
],
"originalText": "成都市",
- "width": 119.66,
+ "width": 150,
},
Object {
"actualText": "绵阳市",
@@ -1844,7 +2232,7 @@ Array [
"绵阳市",
],
"originalText": "绵阳市",
- "width": 119.66,
+ "width": 150,
},
Object {
"actualText": "南充市",
@@ -1855,7 +2243,7 @@ Array [
"南充市",
],
"originalText": "南充市",
- "width": 119.66,
+ "width": 150,
},
Object {
"actualText": "乐山市",
@@ -1866,13 +2254,33 @@ Array [
"乐山市",
],
"originalText": "乐山市",
- "width": 119.66,
+ "width": 150,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly col cell height priority if actual text not wrap 5`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should adjust col cell height if corner cell height > col cell height by tree mode 5`] = `
Array [
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 30,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 113.6,
+ },
+ Object {
+ "actualText": "2367236723611...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 96,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2367236723611...",
+ ],
+ "originalText": 236723672361111,
+ "width": 113.6,
+ },
Object {
"actualText": "3877",
"actualTextHeight": 15,
@@ -1882,7 +2290,7 @@ Array [
"3877",
],
"originalText": 3877,
- "width": 119.67,
+ "width": 113.6,
},
Object {
"actualText": "4342",
@@ -1893,7 +2301,7 @@ Array [
"4342",
],
"originalText": 4342,
- "width": 119.67,
+ "width": 113.6,
},
Object {
"actualText": "-",
@@ -1904,7 +2312,16 @@ Array [
"-",
],
"originalText": "-",
- "width": 119.67,
+ "width": 113.6,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 30,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 113.6,
},
Object {
"actualText": "-",
@@ -1915,7 +2332,16 @@ Array [
"-",
],
"originalText": "-",
- "width": 119.67,
+ "width": 113.6,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 30,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 113.6,
},
Object {
"actualText": "1723",
@@ -1926,7 +2352,7 @@ Array [
"1723",
],
"originalText": 1723,
- "width": 119.67,
+ "width": 113.6,
},
Object {
"actualText": "1822",
@@ -1937,7 +2363,7 @@ Array [
"1822",
],
"originalText": 1822,
- "width": 119.67,
+ "width": 113.6,
},
Object {
"actualText": "1943",
@@ -1948,7 +2374,7 @@ Array [
"1943",
],
"originalText": 1943,
- "width": 119.67,
+ "width": 113.6,
},
Object {
"actualText": "2330",
@@ -1959,7 +2385,27 @@ Array [
"2330",
],
"originalText": 2330,
- "width": 119.67,
+ "width": 113.6,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 30,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 113.6,
+ },
+ Object {
+ "actualText": "632",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "632",
+ ],
+ "originalText": 632,
+ "width": 113.6,
},
Object {
"actualText": "7234",
@@ -1970,7 +2416,7 @@ Array [
"7234",
],
"originalText": 7234,
- "width": 119.67,
+ "width": 113.6,
},
Object {
"actualText": "834",
@@ -1981,7 +2427,7 @@ Array [
"834",
],
"originalText": 834,
- "width": 119.67,
+ "width": 113.6,
},
Object {
"actualText": "5343",
@@ -1992,18 +2438,36 @@ Array [
"5343",
],
"originalText": 5343,
- "width": 119.67,
+ "width": 113.6,
},
Object {
- "actualText": "632",
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 30,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 113.6,
+ },
+ Object {
+ "actualText": "-",
"actualTextHeight": 15,
- "actualTextWidth": 21,
+ "actualTextWidth": 4,
"height": 30,
"multiLineActualTexts": Array [
- "632",
+ "-",
],
- "originalText": 632,
- "width": 119.67,
+ "originalText": "-",
+ "width": 113.6,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 30,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 113.6,
},
Object {
"actualText": "2451",
@@ -2014,7 +2478,7 @@ Array [
"2451",
],
"originalText": 2451,
- "width": 119.67,
+ "width": 113.6,
},
Object {
"actualText": "2244",
@@ -2025,7 +2489,7 @@ Array [
"2244",
],
"originalText": 2244,
- "width": 119.67,
+ "width": 113.6,
},
Object {
"actualText": "2333",
@@ -2036,7 +2500,7 @@ Array [
"2333",
],
"originalText": 2333,
- "width": 119.67,
+ "width": 113.6,
},
Object {
"actualText": "2445",
@@ -2047,128 +2511,268 @@ Array [
"2445",
],
"originalText": 2445,
- "width": 119.67,
+ "width": 113.6,
},
Object {
- "actualText": "1145",
- "actualTextHeight": 15,
- "actualTextWidth": 26,
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
"height": 30,
- "multiLineActualTexts": Array [
- "1145",
- ],
- "originalText": 1145,
- "width": 119.67,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 113.6,
},
Object {
- "actualText": "1432",
+ "actualText": "-",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 4,
"height": 30,
"multiLineActualTexts": Array [
- "1432",
+ "-",
],
- "originalText": 1432,
- "width": 119.67,
+ "originalText": "-",
+ "width": 113.6,
},
Object {
- "actualText": "945",
+ "actualText": "-",
"actualTextHeight": 15,
- "actualTextWidth": 21,
+ "actualTextWidth": 4,
"height": 30,
"multiLineActualTexts": Array [
- "945",
+ "-",
],
- "originalText": 945,
- "width": 119.67,
+ "originalText": "-",
+ "width": 113.6,
},
Object {
- "actualText": "1304",
+ "actualText": "-",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 4,
"height": 30,
"multiLineActualTexts": Array [
- "1304",
+ "-",
],
- "originalText": 1304,
- "width": 119.67,
+ "originalText": "-",
+ "width": 113.6,
},
Object {
- "actualText": "2335",
+ "actualText": "-",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 4,
"height": 30,
"multiLineActualTexts": Array [
- "2335",
+ "-",
],
- "originalText": 2335,
- "width": 119.67,
+ "originalText": "-",
+ "width": 113.6,
},
Object {
- "actualText": "245",
- "actualTextHeight": 15,
- "actualTextWidth": 21,
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
"height": 30,
- "multiLineActualTexts": Array [
- "245",
- ],
- "originalText": 245,
- "width": 119.67,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 113.6,
},
Object {
- "actualText": "2457",
+ "actualText": "7789778977897...",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 97,
"height": 30,
"multiLineActualTexts": Array [
- "2457",
+ "7789778977897...",
],
- "originalText": 2457,
- "width": 119.67,
+ "originalText": "7789778977897789778977897789",
+ "width": 113.6,
},
Object {
- "actualText": "2458",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
"height": 30,
- "multiLineActualTexts": Array [
- "2458",
- ],
- "originalText": 2458,
- "width": 119.67,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 113.6,
},
Object {
- "actualText": "1523",
+ "actualText": "-",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 4,
"height": 30,
"multiLineActualTexts": Array [
- "1523",
+ "-",
],
- "originalText": 1523,
- "width": 119.67,
+ "originalText": "-",
+ "width": 113.6,
},
Object {
- "actualText": "1634",
+ "actualText": "-",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 4,
"height": 30,
"multiLineActualTexts": Array [
- "1634",
+ "-",
],
- "originalText": 1634,
- "width": 119.67,
+ "originalText": "-",
+ "width": 113.6,
},
Object {
- "actualText": "1343",
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 113.6,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 113.6,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 30,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 113.6,
+ },
+ Object {
+ "actualText": "1304",
"actualTextHeight": 15,
"actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "1343",
+ "1304",
],
- "originalText": 1343,
- "width": 119.67,
+ "originalText": 1304,
+ "width": 113.6,
+ },
+ Object {
+ "actualText": "1145",
+ "actualTextHeight": 15,
+ "actualTextWidth": 26,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1145",
+ ],
+ "originalText": 1145,
+ "width": 113.6,
+ },
+ Object {
+ "actualText": "1432",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1432",
+ ],
+ "originalText": 1432,
+ "width": 113.6,
+ },
+ Object {
+ "actualText": "945",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "945",
+ ],
+ "originalText": 945,
+ "width": 113.6,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 30,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 113.6,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 113.6,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 30,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 113.6,
+ },
+ Object {
+ "actualText": "2335",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2335",
+ ],
+ "originalText": 2335,
+ "width": 113.6,
+ },
+ Object {
+ "actualText": "245",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "245",
+ ],
+ "originalText": 245,
+ "width": 113.6,
+ },
+ Object {
+ "actualText": "2457",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2457",
+ ],
+ "originalText": 2457,
+ "width": 113.6,
+ },
+ Object {
+ "actualText": "2458",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2458",
+ ],
+ "originalText": 2458,
+ "width": 113.6,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 30,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 113.6,
},
Object {
"actualText": "1354",
@@ -2179,7 +2783,69 @@ Array [
"1354",
],
"originalText": 1354,
- "width": 119.67,
+ "width": 113.6,
+ },
+ Object {
+ "actualText": "1523",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1523",
+ ],
+ "originalText": 1523,
+ "width": 113.6,
+ },
+ Object {
+ "actualText": "1634",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1634",
+ ],
+ "originalText": 1634,
+ "width": 113.6,
+ },
+ Object {
+ "actualText": "1343",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1343",
+ ],
+ "originalText": 1343,
+ "width": 113.6,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 30,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 113.6,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 113.6,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 30,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 113.6,
},
Object {
"actualText": "4004",
@@ -2190,7 +2856,7 @@ Array [
"4004",
],
"originalText": 4004,
- "width": 119.67,
+ "width": 113.6,
},
Object {
"actualText": "3077",
@@ -2201,7 +2867,7 @@ Array [
"3077",
],
"originalText": 3077,
- "width": 119.67,
+ "width": 113.6,
},
Object {
"actualText": "3551",
@@ -2212,7 +2878,7 @@ Array [
"3551",
],
"originalText": 3551,
- "width": 119.67,
+ "width": 113.6,
},
Object {
"actualText": "352",
@@ -2223,18 +2889,18 @@ Array [
"352",
],
"originalText": 352,
- "width": 119.67,
+ "width": 113.6,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly row cell height priority if actual text not wrap 1`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should adjust corner cell max lines by custom col height 1`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 53,
+ "height": 20,
"multiLineActualTexts": Array [
"序号",
],
@@ -2242,61 +2908,63 @@ Array [
"width": 80,
},
Object {
- "actualText": "省份",
+ "actualText": "province",
"actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 53,
+ "actualTextWidth": 51,
+ "height": 20,
"multiLineActualTexts": Array [
- "省份",
+ "province",
],
- "originalText": "省份",
+ "originalText": "province",
"width": 102.57,
},
Object {
- "actualText": "城市城市城市城市城市城市城市城市城市城市...",
- "actualTextHeight": 48,
- "actualTextWidth": 253,
- "height": 53,
+ "actualText": "城市...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 35,
+ "height": 20,
"multiLineActualTexts": Array [
- "城市城市城市城",
- "市城市城市城市",
- "城市城市城市...",
+ "城市...",
],
- "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "originalText": "城市
+城市",
"width": 102.57,
},
Object {
- "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualText": "类别...",
"actualTextHeight": 16,
- "actualTextWidth": 241,
- "height": 56,
+ "actualTextWidth": 35,
+ "height": 20,
"multiLineActualTexts": Array [
- "类别类别类别类别类别类别类别类别类别类别",
+ "类别...",
],
- "originalText": "类别类别类别类别类别类别类别类别类别类别",
+ "originalText": "类别
+类别",
"width": 285.14,
},
Object {
- "actualText": "子类别",
+ "actualText": "子类别...",
"actualTextHeight": 16,
- "actualTextWidth": 37,
- "height": 56,
+ "actualTextWidth": 47,
+ "height": 20,
"multiLineActualTexts": Array [
- "子类别",
+ "子类别...",
],
- "originalText": "子类别",
+ "originalText": "子类别
+子类别
+子类别",
"width": 285.14,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly row cell height priority if actual text not wrap 2`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should adjust corner cell max lines by custom col height 2`] = `
Array [
Object {
"actualText": "1",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 140,
+ "height": 120,
"multiLineActualTexts": Array [
"1",
],
@@ -2307,7 +2975,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"2",
],
@@ -2318,7 +2986,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 190,
+ "height": 120,
"multiLineActualTexts": Array [
"3",
],
@@ -2328,13 +2996,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly row cell height priority if actual text not wrap 3`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should adjust corner cell max lines by custom col height 3`] = `
Array [
Object {
"actualText": "家具",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 20,
"multiLineActualTexts": Array [
"家具",
],
@@ -2345,7 +3013,7 @@ Array [
"actualText": "桌子",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 20,
"multiLineActualTexts": Array [
"桌子",
],
@@ -2353,23 +3021,24 @@ Array [
"width": 102.57,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 53,
+ "actualText": "数量...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 35,
+ "height": 20,
"multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量...",
+ "数量...",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "originalText": "数量
+数量
+数量
+数量",
"width": 102.57,
},
Object {
"actualText": "沙发",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 20,
"multiLineActualTexts": Array [
"沙发",
],
@@ -2377,62 +3046,60 @@ Array [
"width": 102.57,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 53,
+ "actualText": "数量...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 35,
+ "height": 20,
"multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量...",
+ "数量...",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "originalText": "数量
+数量
+数量
+数量",
"width": 102.57,
},
Object {
- "actualText": "家具家具家具家具家具家具家具家具家具家具...",
- "actualTextHeight": 48,
- "actualTextWidth": 253,
- "height": 56,
+ "actualText": "家具家具家具...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 83,
+ "height": 20,
"multiLineActualTexts": Array [
- "家具家具家具家",
- "具家具家具家具",
"家具家具家具...",
],
"originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
"width": 102.57,
},
Object {
- "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...",
- "actualTextHeight": 48,
- "actualTextWidth": 253,
- "height": 56,
+ "actualText": "桌子桌子桌子...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 83,
+ "height": 20,
"multiLineActualTexts": Array [
- "桌子桌子桌子桌",
- "子桌子桌子桌子",
"桌子桌子桌子...",
],
"originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
"width": 102.57,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 53,
+ "actualText": "数量...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 35,
+ "height": 20,
"multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量...",
+ "数量...",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "originalText": "数量
+数量
+数量
+数量",
"width": 102.57,
},
Object {
"actualText": "办公用品",
"actualTextHeight": 16,
"actualTextWidth": 49,
- "height": 56,
+ "height": 20,
"multiLineActualTexts": Array [
"办公用品",
],
@@ -2443,7 +3110,7 @@ Array [
"actualText": "笔",
"actualTextHeight": 16,
"actualTextWidth": 13,
- "height": 56,
+ "height": 20,
"multiLineActualTexts": Array [
"笔",
],
@@ -2451,23 +3118,24 @@ Array [
"width": 102.57,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 53,
+ "actualText": "数量...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 35,
+ "height": 20,
"multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量...",
+ "数量...",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "originalText": "数量
+数量
+数量
+数量",
"width": 102.57,
},
Object {
"actualText": "纸张",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 20,
"multiLineActualTexts": Array [
"纸张",
],
@@ -2475,28 +3143,29 @@ Array [
"width": 102.57,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 53,
+ "actualText": "数量...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 35,
+ "height": 20,
"multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量...",
+ "数量...",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "originalText": "数量
+数量
+数量
+数量",
"width": 102.57,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly row cell height priority if actual text not wrap 4`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should adjust corner cell max lines by custom col height 4`] = `
Array [
Object {
"actualText": "浙江省",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 140,
+ "height": 120,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -2518,7 +3187,7 @@ Array [
"actualText": "宁波市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"宁波市",
],
@@ -2529,7 +3198,7 @@ Array [
"actualText": "舟山市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 60,
+ "height": 30,
"multiLineActualTexts": Array [
"舟山市",
],
@@ -2548,27 +3217,23 @@ Array [
"width": 102.57,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...",
- "actualTextHeight": 48,
- "actualTextWidth": 253,
- "height": 20,
+ "actualText": "浙江省浙江省...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 83,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省浙江省浙",
- "江省浙江省浙江",
- "省浙江省浙江...",
+ "浙江省浙江省...",
],
"originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
"width": 102.57,
},
Object {
- "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 20,
+ "actualText": "杭州市杭州市...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 83,
+ "height": 30,
"multiLineActualTexts": Array [
- "杭州市杭州市杭",
- "州市杭州市杭州",
- "市杭州市杭州...",
+ "杭州市杭州市...",
],
"originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
"width": 102.57,
@@ -2577,7 +3242,7 @@ Array [
"actualText": "四川省",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 190,
+ "height": 120,
"multiLineActualTexts": Array [
"四川省",
],
@@ -2588,7 +3253,7 @@ Array [
"actualText": "成都市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 100,
+ "height": 30,
"multiLineActualTexts": Array [
"成都市",
],
@@ -2631,16 +3296,15 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly row cell height priority if actual text not wrap 5`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should adjust corner cell max lines by custom col height 5`] = `
Array [
Object {
- "actualText": "236723672361111",
- "actualTextHeight": 30,
- "actualTextWidth": 100,
+ "actualText": "23672367236...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 84,
"height": 30,
"multiLineActualTexts": Array [
- "236723672361",
- "111",
+ "23672367236...",
],
"originalText": 236723672361111,
"width": 102.57,
@@ -2649,7 +3313,7 @@ Array [
"actualText": "3877",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"3877",
],
@@ -2660,7 +3324,7 @@ Array [
"actualText": "4342",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 60,
+ "height": 30,
"multiLineActualTexts": Array [
"4342",
],
@@ -2682,7 +3346,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"-",
],
@@ -2693,7 +3357,7 @@ Array [
"actualText": "1723",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 100,
+ "height": 30,
"multiLineActualTexts": Array [
"1723",
],
@@ -2748,7 +3412,7 @@ Array [
"actualText": "7234",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"7234",
],
@@ -2759,7 +3423,7 @@ Array [
"actualText": "834",
"actualTextHeight": 15,
"actualTextWidth": 21,
- "height": 60,
+ "height": 30,
"multiLineActualTexts": Array [
"834",
],
@@ -2781,7 +3445,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"-",
],
@@ -2792,7 +3456,7 @@ Array [
"actualText": "2451",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 100,
+ "height": 30,
"multiLineActualTexts": Array [
"2451",
],
@@ -2847,7 +3511,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"-",
],
@@ -2858,7 +3522,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 60,
+ "height": 30,
"multiLineActualTexts": Array [
"-",
],
@@ -2877,14 +3541,12 @@ Array [
"width": 102.57,
},
Object {
- "actualText": "7789778977897789778977897789",
- "actualTextHeight": 45,
- "actualTextWidth": 189,
- "height": 20,
+ "actualText": "77897789778...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 84,
+ "height": 30,
"multiLineActualTexts": Array [
- "778977897789",
- "778977897789",
- "7789",
+ "77897789778...",
],
"originalText": "7789778977897789778977897789",
"width": 102.57,
@@ -2893,7 +3555,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 100,
+ "height": 30,
"multiLineActualTexts": Array [
"-",
],
@@ -2948,7 +3610,7 @@ Array [
"actualText": "1145",
"actualTextHeight": 15,
"actualTextWidth": 26,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"1145",
],
@@ -2959,7 +3621,7 @@ Array [
"actualText": "1432",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 60,
+ "height": 30,
"multiLineActualTexts": Array [
"1432",
],
@@ -2981,7 +3643,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"-",
],
@@ -2992,7 +3654,7 @@ Array [
"actualText": "2335",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 100,
+ "height": 30,
"multiLineActualTexts": Array [
"2335",
],
@@ -3047,7 +3709,7 @@ Array [
"actualText": "1523",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"1523",
],
@@ -3058,7 +3720,7 @@ Array [
"actualText": "1634",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 60,
+ "height": 30,
"multiLineActualTexts": Array [
"1634",
],
@@ -3080,7 +3742,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"-",
],
@@ -3091,7 +3753,7 @@ Array [
"actualText": "4004",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 100,
+ "height": 30,
"multiLineActualTexts": Array [
"4004",
],
@@ -3134,13 +3796,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by colCell.height 1`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should calc correctly row cell height if actual text lines is difference 1`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 20,
+ "height": 80,
"multiLineActualTexts": Array [
"序号",
],
@@ -3151,7 +3813,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 20,
+ "height": 80,
"multiLineActualTexts": Array [
"省份",
],
@@ -3159,13 +3821,15 @@ Array [
"width": 96,
},
Object {
- "actualText": "城市城市城市城市城市城...",
- "actualTextHeight": 32,
- "actualTextWidth": 144,
- "height": 20,
+ "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "actualTextHeight": 64,
+ "actualTextWidth": 292,
+ "height": 80,
"multiLineActualTexts": Array [
"城市城市城市",
- "城市城市城...",
+ "城市城市城市",
+ "城市城市城市",
+ "城市城市城市",
],
"originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
"width": 96,
@@ -3174,7 +3838,7 @@ Array [
"actualText": "类别类别类别类别类别类别类别类别类别类别",
"actualTextHeight": 16,
"actualTextWidth": 241,
- "height": 20,
+ "height": 80,
"multiLineActualTexts": Array [
"类别类别类别类别类别类别类别类别类别类别",
],
@@ -3185,7 +3849,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 20,
+ "height": 80,
"multiLineActualTexts": Array [
"子类别",
],
@@ -3195,13 +3859,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by colCell.height 2`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should calc correctly row cell height if actual text lines is difference 2`] = `
Array [
Object {
"actualText": "1",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 120,
+ "height": 80,
"multiLineActualTexts": Array [
"1",
],
@@ -3212,7 +3876,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 40,
+ "height": 120,
"multiLineActualTexts": Array [
"2",
],
@@ -3223,23 +3887,71 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 120,
+ "height": 80,
"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 not adaptive adjust cell height if custom cell style less than actual text height by colCell.height 3`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should calc correctly row cell height if actual text lines is difference 3`] = `
Array [
+ Object {
+ "actualText": "纸张纸张纸张纸张纸张",
+ "actualTextHeight": 32,
+ "actualTextWidth": 122,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "纸张纸张纸张",
+ "纸张纸张",
+ ],
+ "originalText": "纸张纸张纸张纸张纸张",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 16,
+ "actualTextWidth": 4,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 60,
+ "actualTextWidth": 268,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "数量数量数量",
+ "数量数量数量",
+ "数量数量数量",
+ "数量数量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 96,
+ },
Object {
"actualText": "家具",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 20,
+ "height": 80,
"multiLineActualTexts": Array [
"家具",
],
@@ -3250,7 +3962,7 @@ Array [
"actualText": "桌子",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 20,
+ "height": 80,
"multiLineActualTexts": Array [
"桌子",
],
@@ -3258,13 +3970,15 @@ Array [
"width": 96,
},
Object {
- "actualText": "数量数量数量数量数量数...",
- "actualTextHeight": 30,
- "actualTextWidth": 144,
- "height": 20,
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 60,
+ "actualTextWidth": 268,
+ "height": 80,
"multiLineActualTexts": Array [
"数量数量数量",
- "数量数量数...",
+ "数量数量数量",
+ "数量数量数量",
+ "数量数量",
],
"originalText": "数量数量数量数量数量数量数量数量数量数量数量",
"width": 96,
@@ -3273,7 +3987,7 @@ Array [
"actualText": "沙发",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 20,
+ "height": 80,
"multiLineActualTexts": Array [
"沙发",
],
@@ -3281,13 +3995,118 @@ Array [
"width": 96,
},
Object {
- "actualText": "数量数量数量数量数量数...",
- "actualTextHeight": 30,
- "actualTextWidth": 144,
- "height": 20,
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 60,
+ "actualTextWidth": 268,
+ "height": 80,
"multiLineActualTexts": Array [
"数量数量数量",
- "数量数量数...",
+ "数量数量数量",
+ "数量数量数量",
+ "数量数量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 96,
+ },
+ Object {
+ "actualText": "家具家具家具家具家具家具家具家具家具家具家具家...",
+ "actualTextHeight": 64,
+ "actualTextWidth": 290,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "家具家具家具",
+ "家具家具家具",
+ "家具家具家具",
+ "家具家具家...",
+ ],
+ "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "width": 96,
+ },
+ Object {
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...",
+ "actualTextHeight": 64,
+ "actualTextWidth": 290,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "桌子桌子桌子",
+ "桌子桌子桌子",
+ "桌子桌子桌子",
+ "桌子桌子桌...",
+ ],
+ "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "width": 96,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 60,
+ "actualTextWidth": 268,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "数量数量数量",
+ "数量数量数量",
+ "数量数量数量",
+ "数量数量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 96,
+ },
+ Object {
+ "actualText": "办公用品",
+ "actualTextHeight": 16,
+ "actualTextWidth": 49,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "办公用品",
+ ],
+ "originalText": "办公用品",
+ "width": 192,
+ },
+ Object {
+ "actualText": "笔",
+ "actualTextHeight": 16,
+ "actualTextWidth": 13,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "笔",
+ ],
+ "originalText": "笔",
+ "width": 96,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 60,
+ "actualTextWidth": 268,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "数量数量数量",
+ "数量数量数量",
+ "数量数量数量",
+ "数量数量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 96,
+ },
+ Object {
+ "actualText": "纸张",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "纸张",
+ ],
+ "originalText": "纸张",
+ "width": 96,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 60,
+ "actualTextWidth": 268,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "数量数量数量",
+ "数量数量数量",
+ "数量数量数量",
+ "数量数量",
],
"originalText": "数量数量数量数量数量数量数量数量数量数量数量",
"width": 96,
@@ -3295,8 +4114,34 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by colCell.height 4`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should calc correctly row cell height if actual text lines is difference 4`] = `
Array [
+ Object {
+ "actualText": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙...",
+ "actualTextHeight": 64,
+ "actualTextWidth": 290,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "浙江浙江浙江",
+ "浙江浙江浙江",
+ "浙江浙江浙江",
+ "浙江浙江浙...",
+ ],
+ "originalText": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江",
+ "width": 96,
+ },
+ Object {
+ "actualText": "杭州杭州杭州杭州",
+ "actualTextHeight": 30,
+ "actualTextWidth": 98,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "杭州杭州杭州",
+ "杭州",
+ ],
+ "originalText": "杭州杭州杭州杭州",
+ "width": 96,
+ },
Object {
"actualText": "浙江省",
"actualTextHeight": 16,
@@ -3309,17 +4154,77 @@ Array [
"width": 96,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江...",
- "actualTextHeight": 32,
- "actualTextWidth": 144,
- "height": 40,
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "宁波市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "宁波市",
+ ],
+ "originalText": "宁波市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "舟山市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "舟山市",
+ ],
+ "originalText": "舟山市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "杭州市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "杭州市",
+ ],
+ "originalText": "杭州市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江...",
+ "actualTextHeight": 64,
+ "actualTextWidth": 290,
+ "height": 80,
"multiLineActualTexts": Array [
+ "浙江省浙江省",
+ "浙江省浙江省",
"浙江省浙江省",
"浙江省浙江...",
],
"originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
"width": 96,
},
+ Object {
+ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州...",
+ "actualTextHeight": 60,
+ "actualTextWidth": 290,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "杭州市杭州市",
+ "杭州市杭州市",
+ "杭州市杭州市",
+ "杭州市杭州...",
+ ],
+ "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "width": 96,
+ },
Object {
"actualText": "四川省",
"actualTextHeight": 16,
@@ -3331,11 +4236,154 @@ Array [
"originalText": "四川省",
"width": 96,
},
+ Object {
+ "actualText": "成都市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "成都市",
+ ],
+ "originalText": "成都市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "绵阳市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "绵阳市",
+ ],
+ "originalText": "绵阳市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "南充市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "南充市",
+ ],
+ "originalText": "南充市",
+ "width": 96,
+ },
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by colCell.height 5`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should calc correctly row cell height if actual text lines is difference 5`] = `
Array [
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
Object {
"actualText": "236723672361111",
"actualTextHeight": 30,
@@ -3385,7 +4433,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 40,
+ "height": 80,
"multiLineActualTexts": Array [
"-",
],
@@ -3426,14 +4474,14 @@ Array [
"width": 96,
},
Object {
- "actualText": "2330",
+ "actualText": "-",
"actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 30,
+ "actualTextWidth": 4,
+ "height": 80,
"multiLineActualTexts": Array [
- "2330",
+ "-",
],
- "originalText": 2330,
+ "originalText": "-",
"width": 96,
},
Object {
@@ -3484,7 +4532,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 40,
+ "height": 80,
"multiLineActualTexts": Array [
"-",
],
@@ -3525,271 +4573,166 @@ Array [
"width": 96,
},
Object {
- "actualText": "2445",
+ "actualText": "-",
"actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 30,
+ "actualTextWidth": 4,
+ "height": 80,
"multiLineActualTexts": Array [
- "2445",
+ "-",
],
- "originalText": 2445,
+ "originalText": "-",
"width": 96,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by colCell.height() 1`] = `
-Array [
Object {
- "actualText": "序号",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 20,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "序号",
+ "-",
],
- "originalText": "序号",
- "width": 80,
+ "originalText": "-",
+ "width": 96,
},
Object {
- "actualText": "省份",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 20,
- "multiLineActualTexts": Array [
- "省份",
- ],
- "originalText": "省份",
- "width": 96,
- },
- Object {
- "actualText": "城市城市城市城市城市城...",
- "actualTextHeight": 32,
- "actualTextWidth": 144,
- "height": 20,
- "multiLineActualTexts": Array [
- "城市城市城市",
- "城市城市城...",
- ],
- "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
- "width": 96,
- },
- Object {
- "actualText": "类别类别类别类别类别类别类别类别类别类别",
- "actualTextHeight": 16,
- "actualTextWidth": 241,
- "height": 20,
- "multiLineActualTexts": Array [
- "类别类别类别类别类别类别类别类别类别类别",
- ],
- "originalText": "类别类别类别类别类别类别类别类别类别类别",
- "width": 272,
- },
- Object {
- "actualText": "子类别",
- "actualTextHeight": 16,
- "actualTextWidth": 37,
- "height": 20,
- "multiLineActualTexts": Array [
- "子类别",
- ],
- "originalText": "子类别",
- "width": 272,
- },
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by colCell.height() 2`] = `
-Array [
- Object {
- "actualText": "1",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 120,
- "multiLineActualTexts": Array [
- "1",
- ],
- "originalText": "1",
- "width": 80,
- },
- Object {
- "actualText": "2",
+ "actualText": "-",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 40,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "2",
+ "-",
],
- "originalText": "2",
- "width": 80,
+ "originalText": "-",
+ "width": 96,
},
Object {
- "actualText": "3",
+ "actualText": "-",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 120,
- "multiLineActualTexts": Array [
- "3",
- ],
- "originalText": "3",
- "width": 80,
- },
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by colCell.height() 3`] = `
-Array [
- Object {
- "actualText": "家具",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 20,
- "multiLineActualTexts": Array [
- "家具",
- ],
- "originalText": "家具",
- "width": 192,
- },
- Object {
- "actualText": "桌子",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 20,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "桌子",
+ "-",
],
- "originalText": "桌子",
+ "originalText": "-",
"width": 96,
},
Object {
- "actualText": "数量数量数量数量数量数...",
- "actualTextHeight": 30,
- "actualTextWidth": 144,
- "height": 20,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "数量数量数量",
- "数量数量数...",
+ "-",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "originalText": "-",
"width": 96,
},
Object {
- "actualText": "沙发",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 20,
+ "actualText": "7789778977897789778977897789",
+ "actualTextHeight": 45,
+ "actualTextWidth": 189,
+ "height": 80,
"multiLineActualTexts": Array [
- "沙发",
+ "77897789778",
+ "97789778977",
+ "897789",
],
- "originalText": "沙发",
+ "originalText": "7789778977897789778977897789",
"width": 96,
},
Object {
- "actualText": "数量数量数量数量数量数...",
- "actualTextHeight": 30,
- "actualTextWidth": 144,
- "height": 20,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "数量数量数量",
- "数量数量数...",
+ "-",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "originalText": "-",
"width": 96,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by colCell.height() 4`] = `
-Array [
Object {
- "actualText": "浙江省",
- "actualTextHeight": 16,
- "actualTextWidth": 37,
- "height": 120,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "-",
],
- "originalText": "浙江省",
+ "originalText": "-",
"width": 96,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江...",
- "actualTextHeight": 32,
- "actualTextWidth": 144,
- "height": 40,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省浙江省",
- "浙江省浙江...",
+ "-",
],
- "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "originalText": "-",
"width": 96,
},
Object {
- "actualText": "四川省",
- "actualTextHeight": 16,
- "actualTextWidth": 37,
- "height": 120,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 80,
"multiLineActualTexts": Array [
- "四川省",
+ "-",
],
- "originalText": "四川省",
+ "originalText": "-",
"width": 96,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by colCell.height() 5`] = `
-Array [
Object {
- "actualText": "236723672361111",
- "actualTextHeight": 30,
- "actualTextWidth": 99,
+ "actualText": "1304",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "23672367236",
- "1111",
+ "1304",
],
- "originalText": 236723672361111,
+ "originalText": 1304,
"width": 96,
},
Object {
- "actualText": "3877",
+ "actualText": "1145",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 26,
"height": 30,
"multiLineActualTexts": Array [
- "3877",
+ "1145",
],
- "originalText": 3877,
+ "originalText": 1145,
"width": 96,
},
Object {
- "actualText": "4342",
+ "actualText": "1432",
"actualTextHeight": 15,
"actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "4342",
+ "1432",
],
- "originalText": 4342,
+ "originalText": 1432,
"width": 96,
},
Object {
- "actualText": "-",
+ "actualText": "945",
"actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualTextWidth": 21,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "945",
],
- "originalText": "-",
+ "originalText": 945,
"width": 96,
},
Object {
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 40,
+ "height": 80,
"multiLineActualTexts": Array [
"-",
],
@@ -3797,98 +4740,98 @@ Array [
"width": 96,
},
Object {
- "actualText": "1723",
+ "actualText": "2335",
"actualTextHeight": 15,
"actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "1723",
+ "2335",
],
- "originalText": 1723,
+ "originalText": 2335,
"width": 96,
},
Object {
- "actualText": "1822",
+ "actualText": "245",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 21,
"height": 30,
"multiLineActualTexts": Array [
- "1822",
+ "245",
],
- "originalText": 1822,
+ "originalText": 245,
"width": 96,
},
Object {
- "actualText": "1943",
+ "actualText": "2457",
"actualTextHeight": 15,
"actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "1943",
+ "2457",
],
- "originalText": 1943,
+ "originalText": 2457,
"width": 96,
},
Object {
- "actualText": "2330",
+ "actualText": "-",
"actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 30,
+ "actualTextWidth": 4,
+ "height": 80,
"multiLineActualTexts": Array [
- "2330",
+ "-",
],
- "originalText": 2330,
+ "originalText": "-",
"width": 96,
},
Object {
- "actualText": "632",
+ "actualText": "1354",
"actualTextHeight": 15,
- "actualTextWidth": 21,
+ "actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "632",
+ "1354",
],
- "originalText": 632,
+ "originalText": 1354,
"width": 96,
},
Object {
- "actualText": "7234",
+ "actualText": "1523",
"actualTextHeight": 15,
"actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "7234",
+ "1523",
],
- "originalText": 7234,
+ "originalText": 1523,
"width": 96,
},
Object {
- "actualText": "834",
+ "actualText": "1634",
"actualTextHeight": 15,
- "actualTextWidth": 21,
+ "actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "834",
+ "1634",
],
- "originalText": 834,
+ "originalText": 1634,
"width": 96,
},
Object {
- "actualText": "5343",
+ "actualText": "1343",
"actualTextHeight": 15,
"actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "5343",
+ "1343",
],
- "originalText": 5343,
+ "originalText": 1343,
"width": 96,
},
Object {
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 40,
+ "height": 80,
"multiLineActualTexts": Array [
"-",
],
@@ -3896,59 +4839,48 @@ Array [
"width": 96,
},
Object {
- "actualText": "2451",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 30,
- "multiLineActualTexts": Array [
- "2451",
- ],
- "originalText": 2451,
- "width": 96,
- },
- Object {
- "actualText": "2244",
+ "actualText": "4004",
"actualTextHeight": 15,
"actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "2244",
+ "4004",
],
- "originalText": 2244,
+ "originalText": 4004,
"width": 96,
},
Object {
- "actualText": "2333",
+ "actualText": "3077",
"actualTextHeight": 15,
"actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "2333",
+ "3077",
],
- "originalText": 2333,
+ "originalText": 3077,
"width": 96,
},
Object {
- "actualText": "2445",
+ "actualText": "3551",
"actualTextHeight": 15,
"actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "2445",
+ "3551",
],
- "originalText": 2445,
+ "originalText": 3551,
"width": 96,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by dataCell.height 1`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should default render one line text 1`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 38,
+ "height": 30,
"multiLineActualTexts": Array [
"序号",
],
@@ -3959,7 +4891,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 38,
+ "height": 30,
"multiLineActualTexts": Array [
"省份",
],
@@ -3967,12 +4899,11 @@ Array [
"width": 96,
},
Object {
- "actualText": "城市城市城市城市城市城...",
- "actualTextHeight": 32,
- "actualTextWidth": 144,
- "height": 38,
+ "actualText": "城市城市城...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 71,
+ "height": 30,
"multiLineActualTexts": Array [
- "城市城市城市",
"城市城市城...",
],
"originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
@@ -3982,7 +4913,7 @@ Array [
"actualText": "类别类别类别类别类别类别类别类别类别类别",
"actualTextHeight": 16,
"actualTextWidth": 241,
- "height": 40,
+ "height": 30,
"multiLineActualTexts": Array [
"类别类别类别类别类别类别类别类别类别类别",
],
@@ -3993,7 +4924,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 40,
+ "height": 30,
"multiLineActualTexts": Array [
"子类别",
],
@@ -4003,13 +4934,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by dataCell.height 2`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should default render one line text 2`] = `
Array [
Object {
"actualText": "1",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 80,
+ "height": 120,
"multiLineActualTexts": Array [
"1",
],
@@ -4020,7 +4951,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"2",
],
@@ -4031,7 +4962,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 80,
+ "height": 120,
"multiLineActualTexts": Array [
"3",
],
@@ -4041,13 +4972,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by dataCell.height 3`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should default render one line text 3`] = `
Array [
Object {
"actualText": "家具",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 30,
"multiLineActualTexts": Array [
"家具",
],
@@ -4058,7 +4989,7 @@ Array [
"actualText": "桌子",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 30,
"multiLineActualTexts": Array [
"桌子",
],
@@ -4066,12 +4997,11 @@ Array [
"width": 96,
},
Object {
- "actualText": "数量数量数量数量数量数...",
- "actualTextHeight": 30,
- "actualTextWidth": 144,
- "height": 38,
+ "actualText": "数量数量数...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 71,
+ "height": 30,
"multiLineActualTexts": Array [
- "数量数量数量",
"数量数量数...",
],
"originalText": "数量数量数量数量数量数量数量数量数量数量数量",
@@ -4081,7 +5011,7 @@ Array [
"actualText": "沙发",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 30,
"multiLineActualTexts": Array [
"沙发",
],
@@ -4089,12 +5019,11 @@ Array [
"width": 96,
},
Object {
- "actualText": "数量数量数量数量数量数...",
- "actualTextHeight": 30,
- "actualTextWidth": 144,
- "height": 38,
+ "actualText": "数量数量数...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 71,
+ "height": 30,
"multiLineActualTexts": Array [
- "数量数量数量",
"数量数量数...",
],
"originalText": "数量数量数量数量数量数量数量数量数量数量数量",
@@ -4103,13 +5032,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by dataCell.height 4`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should default render one line text 4`] = `
Array [
Object {
"actualText": "浙江省",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 80,
+ "height": 120,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -4117,12 +5046,11 @@ Array [
"width": 96,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江...",
- "actualTextHeight": 32,
- "actualTextWidth": 144,
- "height": 20,
+ "actualText": "浙江省浙江...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 71,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省浙江省",
"浙江省浙江...",
],
"originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
@@ -4132,7 +5060,7 @@ Array [
"actualText": "四川省",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 80,
+ "height": 120,
"multiLineActualTexts": Array [
"四川省",
],
@@ -4142,16 +5070,15 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by dataCell.height 5`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should default render one line text 5`] = `
Array [
Object {
- "actualText": "236723672361111",
- "actualTextHeight": 30,
- "actualTextWidth": 99,
- "height": 20,
+ "actualText": "2367236723...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 77,
+ "height": 30,
"multiLineActualTexts": Array [
- "23672367236",
- "1111",
+ "2367236723...",
],
"originalText": 236723672361111,
"width": 96,
@@ -4160,7 +5087,7 @@ Array [
"actualText": "3877",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"3877",
],
@@ -4171,7 +5098,7 @@ Array [
"actualText": "4342",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"4342",
],
@@ -4182,7 +5109,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"-",
],
@@ -4193,7 +5120,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"-",
],
@@ -4204,7 +5131,7 @@ Array [
"actualText": "1723",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"1723",
],
@@ -4215,7 +5142,7 @@ Array [
"actualText": "1822",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"1822",
],
@@ -4226,7 +5153,7 @@ Array [
"actualText": "1943",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"1943",
],
@@ -4237,7 +5164,7 @@ Array [
"actualText": "2330",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"2330",
],
@@ -4248,7 +5175,7 @@ Array [
"actualText": "632",
"actualTextHeight": 15,
"actualTextWidth": 21,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"632",
],
@@ -4259,7 +5186,7 @@ Array [
"actualText": "7234",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"7234",
],
@@ -4270,7 +5197,7 @@ Array [
"actualText": "834",
"actualTextHeight": 15,
"actualTextWidth": 21,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"834",
],
@@ -4281,7 +5208,7 @@ Array [
"actualText": "5343",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"5343",
],
@@ -4292,7 +5219,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"-",
],
@@ -4303,7 +5230,7 @@ Array [
"actualText": "2451",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"2451",
],
@@ -4314,7 +5241,7 @@ Array [
"actualText": "2244",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"2244",
],
@@ -4325,7 +5252,7 @@ Array [
"actualText": "2333",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"2333",
],
@@ -4336,7 +5263,7 @@ Array [
"actualText": "2445",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"2445",
],
@@ -4346,13 +5273,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by rowCell.height 1`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly col cell height priority if actual text not wrap 1`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 38,
+ "height": 20,
"multiLineActualTexts": Array [
"序号",
],
@@ -4360,60 +5287,59 @@ Array [
"width": 80,
},
Object {
- "actualText": "省份",
+ "actualText": "province",
"actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 38,
+ "actualTextWidth": 51,
+ "height": 20,
"multiLineActualTexts": Array [
- "省份",
+ "province",
],
- "originalText": "省份",
- "width": 96,
+ "originalText": "province",
+ "width": 119.66,
},
Object {
- "actualText": "城市城市城市城市城市城...",
- "actualTextHeight": 32,
- "actualTextWidth": 144,
- "height": 38,
+ "actualText": "city",
+ "actualTextHeight": 16,
+ "actualTextWidth": 21,
+ "height": 20,
"multiLineActualTexts": Array [
- "城市城市城市",
- "城市城市城...",
+ "city",
],
- "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
- "width": 96,
+ "originalText": "city",
+ "width": 119.66,
},
Object {
- "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualText": "type",
"actualTextHeight": 16,
- "actualTextWidth": 241,
- "height": 40,
+ "actualTextWidth": 25,
+ "height": 20,
"multiLineActualTexts": Array [
- "类别类别类别类别类别类别类别类别类别类别",
+ "type",
],
- "originalText": "类别类别类别类别类别类别类别类别类别类别",
- "width": 272,
+ "originalText": "type",
+ "width": 319.32,
},
Object {
- "actualText": "子类别",
+ "actualText": "sub_type",
"actualTextHeight": 16,
- "actualTextWidth": 37,
- "height": 40,
+ "actualTextWidth": 53,
+ "height": 20,
"multiLineActualTexts": Array [
- "子类别",
+ "sub_type",
],
- "originalText": "子类别",
- "width": 272,
+ "originalText": "sub_type",
+ "width": 319.32,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by rowCell.height 2`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly col cell height priority if actual text not wrap 2`] = `
Array [
Object {
"actualText": "1",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 80,
+ "height": 120,
"multiLineActualTexts": Array [
"1",
],
@@ -4424,339 +5350,610 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 120,
"multiLineActualTexts": Array [
"2",
],
"originalText": "2",
"width": 80,
},
- Object {
- "actualText": "3",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 80,
- "multiLineActualTexts": Array [
- "3",
- ],
- "originalText": "3",
- "width": 80,
- },
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by rowCell.height 3`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly col cell height priority if actual text not wrap 3`] = `
Array [
Object {
"actualText": "家具",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 20,
"multiLineActualTexts": Array [
"家具",
],
"originalText": "家具",
- "width": 192,
+ "width": 239.34,
},
Object {
"actualText": "桌子",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 20,
"multiLineActualTexts": Array [
"桌子",
],
"originalText": "桌子",
- "width": 96,
+ "width": 119.67,
},
Object {
- "actualText": "数量数量数量数量数量数...",
- "actualTextHeight": 30,
- "actualTextWidth": 144,
- "height": 38,
+ "actualText": "number",
+ "actualTextHeight": 15,
+ "actualTextWidth": 41,
+ "height": 20,
"multiLineActualTexts": Array [
- "数量数量数量",
- "数量数量数...",
+ "number",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 96,
+ "originalText": "number",
+ "width": 119.67,
},
Object {
"actualText": "沙发",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 20,
"multiLineActualTexts": Array [
"沙发",
],
"originalText": "沙发",
- "width": 96,
+ "width": 119.67,
},
Object {
- "actualText": "数量数量数量数量数量数...",
- "actualTextHeight": 30,
- "actualTextWidth": 144,
- "height": 38,
+ "actualText": "number",
+ "actualTextHeight": 15,
+ "actualTextWidth": 41,
+ "height": 20,
"multiLineActualTexts": Array [
- "数量数量数量",
- "数量数量数...",
+ "number",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 96,
+ "originalText": "number",
+ "width": 119.67,
+ },
+ Object {
+ "actualText": "办公用品",
+ "actualTextHeight": 16,
+ "actualTextWidth": 49,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "办公用品",
+ ],
+ "originalText": "办公用品",
+ "width": 239.34,
+ },
+ Object {
+ "actualText": "笔",
+ "actualTextHeight": 16,
+ "actualTextWidth": 13,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "笔",
+ ],
+ "originalText": "笔",
+ "width": 119.67,
+ },
+ Object {
+ "actualText": "number",
+ "actualTextHeight": 15,
+ "actualTextWidth": 41,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "number",
+ ],
+ "originalText": "number",
+ "width": 119.67,
+ },
+ Object {
+ "actualText": "纸张",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "纸张",
+ ],
+ "originalText": "纸张",
+ "width": 119.67,
+ },
+ Object {
+ "actualText": "number",
+ "actualTextHeight": 15,
+ "actualTextWidth": 41,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "number",
+ ],
+ "originalText": "number",
+ "width": 119.67,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by rowCell.height 4`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly col cell height priority if actual text not wrap 4`] = `
Array [
Object {
"actualText": "浙江省",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 80,
+ "height": 120,
"multiLineActualTexts": Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 96,
+ "width": 119.66,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江...",
- "actualTextHeight": 32,
- "actualTextWidth": 144,
- "height": 20,
+ "actualText": "宁波市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省浙江省",
- "浙江省浙江...",
+ "宁波市",
],
- "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
- "width": 96,
+ "originalText": "宁波市",
+ "width": 119.66,
+ },
+ Object {
+ "actualText": "舟山市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "舟山市",
+ ],
+ "originalText": "舟山市",
+ "width": 119.66,
+ },
+ Object {
+ "actualText": "杭州市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "杭州市",
+ ],
+ "originalText": "杭州市",
+ "width": 119.66,
+ },
+ Object {
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 119.66,
},
Object {
"actualText": "四川省",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 80,
+ "height": 120,
"multiLineActualTexts": Array [
"四川省",
],
"originalText": "四川省",
- "width": 96,
+ "width": 119.66,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by rowCell.height 5`] = `
-Array [
Object {
- "actualText": "236723672361111",
- "actualTextHeight": 30,
- "actualTextWidth": 99,
- "height": 20,
+ "actualText": "成都市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "23672367236",
- "1111",
+ "成都市",
],
- "originalText": 236723672361111,
- "width": 96,
+ "originalText": "成都市",
+ "width": 119.66,
+ },
+ Object {
+ "actualText": "绵阳市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "绵阳市",
+ ],
+ "originalText": "绵阳市",
+ "width": 119.66,
+ },
+ Object {
+ "actualText": "南充市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "南充市",
+ ],
+ "originalText": "南充市",
+ "width": 119.66,
+ },
+ Object {
+ "actualText": "乐山市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "乐山市",
+ ],
+ "originalText": "乐山市",
+ "width": 119.66,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly col cell height priority if actual text not wrap 5`] = `
+Array [
Object {
"actualText": "3877",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"3877",
],
"originalText": 3877,
- "width": 96,
+ "width": 119.67,
},
Object {
"actualText": "4342",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"4342",
],
"originalText": 4342,
- "width": 96,
+ "width": 119.67,
},
Object {
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"-",
],
"originalText": "-",
- "width": 96,
+ "width": 119.67,
},
Object {
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"-",
],
"originalText": "-",
- "width": 96,
+ "width": 119.67,
},
Object {
"actualText": "1723",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"1723",
],
"originalText": 1723,
- "width": 96,
+ "width": 119.67,
},
Object {
"actualText": "1822",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"1822",
],
"originalText": 1822,
- "width": 96,
+ "width": 119.67,
},
Object {
"actualText": "1943",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"1943",
],
"originalText": 1943,
- "width": 96,
+ "width": 119.67,
},
Object {
"actualText": "2330",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"2330",
],
"originalText": 2330,
- "width": 96,
- },
- Object {
- "actualText": "632",
- "actualTextHeight": 15,
- "actualTextWidth": 21,
- "height": 20,
- "multiLineActualTexts": Array [
- "632",
- ],
- "originalText": 632,
- "width": 96,
+ "width": 119.67,
},
Object {
"actualText": "7234",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"7234",
],
"originalText": 7234,
- "width": 96,
+ "width": 119.67,
},
Object {
"actualText": "834",
"actualTextHeight": 15,
"actualTextWidth": 21,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"834",
],
"originalText": 834,
- "width": 96,
+ "width": 119.67,
},
Object {
"actualText": "5343",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"5343",
],
"originalText": 5343,
- "width": 96,
+ "width": 119.67,
},
Object {
- "actualText": "-",
+ "actualText": "632",
"actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 20,
+ "actualTextWidth": 21,
+ "height": 30,
"multiLineActualTexts": Array [
- "-",
+ "632",
],
- "originalText": "-",
- "width": 96,
+ "originalText": 632,
+ "width": 119.67,
},
Object {
"actualText": "2451",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"2451",
],
"originalText": 2451,
- "width": 96,
+ "width": 119.67,
},
Object {
"actualText": "2244",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"2244",
],
"originalText": 2244,
- "width": 96,
+ "width": 119.67,
},
Object {
"actualText": "2333",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"2333",
],
"originalText": 2333,
- "width": 96,
+ "width": 119.67,
},
Object {
"actualText": "2445",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"2445",
],
"originalText": 2445,
- "width": 96,
+ "width": 119.67,
+ },
+ Object {
+ "actualText": "1145",
+ "actualTextHeight": 15,
+ "actualTextWidth": 26,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1145",
+ ],
+ "originalText": 1145,
+ "width": 119.67,
+ },
+ Object {
+ "actualText": "1432",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1432",
+ ],
+ "originalText": 1432,
+ "width": 119.67,
+ },
+ Object {
+ "actualText": "945",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "945",
+ ],
+ "originalText": 945,
+ "width": 119.67,
+ },
+ Object {
+ "actualText": "1304",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1304",
+ ],
+ "originalText": 1304,
+ "width": 119.67,
+ },
+ Object {
+ "actualText": "2335",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2335",
+ ],
+ "originalText": 2335,
+ "width": 119.67,
+ },
+ Object {
+ "actualText": "245",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "245",
+ ],
+ "originalText": 245,
+ "width": 119.67,
+ },
+ Object {
+ "actualText": "2457",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2457",
+ ],
+ "originalText": 2457,
+ "width": 119.67,
+ },
+ Object {
+ "actualText": "2458",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2458",
+ ],
+ "originalText": 2458,
+ "width": 119.67,
+ },
+ Object {
+ "actualText": "1523",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1523",
+ ],
+ "originalText": 1523,
+ "width": 119.67,
+ },
+ Object {
+ "actualText": "1634",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1634",
+ ],
+ "originalText": 1634,
+ "width": 119.67,
+ },
+ Object {
+ "actualText": "1343",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1343",
+ ],
+ "originalText": 1343,
+ "width": 119.67,
+ },
+ Object {
+ "actualText": "1354",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1354",
+ ],
+ "originalText": 1354,
+ "width": 119.67,
+ },
+ Object {
+ "actualText": "4004",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "4004",
+ ],
+ "originalText": 4004,
+ "width": 119.67,
+ },
+ Object {
+ "actualText": "3077",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "3077",
+ ],
+ "originalText": 3077,
+ "width": 119.67,
+ },
+ Object {
+ "actualText": "3551",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "3551",
+ ],
+ "originalText": 3551,
+ "width": 119.67,
+ },
+ Object {
+ "actualText": "352",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "352",
+ ],
+ "originalText": 352,
+ "width": 119.67,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by rowCell.height() 1`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly row cell height priority if actual text not wrap 1`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 38,
+ "height": 64,
"multiLineActualTexts": Array [
"序号",
],
@@ -4767,57 +5964,58 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 38,
+ "height": 64,
"multiLineActualTexts": Array [
"省份",
],
"originalText": "省份",
- "width": 96,
+ "width": 102.57,
},
Object {
- "actualText": "城市城市城市城市城市城...",
- "actualTextHeight": 32,
- "actualTextWidth": 144,
- "height": 38,
+ "actualText": "城市城市城市城市城市城市城市城市城市城市...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 253,
+ "height": 64,
"multiLineActualTexts": Array [
- "城市城市城市",
- "城市城市城...",
+ "城市城市城市城",
+ "市城市城市城市",
+ "城市城市城市...",
],
"originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "类别类别类别类别类别类别类别类别类别类别",
"actualTextHeight": 16,
"actualTextWidth": 241,
- "height": 40,
+ "height": 64,
"multiLineActualTexts": Array [
"类别类别类别类别类别类别类别类别类别类别",
],
"originalText": "类别类别类别类别类别类别类别类别类别类别",
- "width": 272,
+ "width": 285.14,
},
Object {
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 40,
+ "height": 64,
"multiLineActualTexts": Array [
"子类别",
],
"originalText": "子类别",
- "width": 272,
+ "width": 285.14,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by rowCell.height() 2`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly row cell height priority if actual text not wrap 2`] = `
Array [
Object {
"actualText": "1",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 80,
+ "height": 140,
"multiLineActualTexts": Array [
"1",
],
@@ -4839,7 +6037,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 80,
+ "height": 190,
"multiLineActualTexts": Array [
"3",
],
@@ -4849,120 +6047,320 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by rowCell.height() 3`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly row cell height priority if actual text not wrap 3`] = `
Array [
Object {
"actualText": "家具",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 64,
"multiLineActualTexts": Array [
"家具",
],
"originalText": "家具",
- "width": 192,
+ "width": 205.14,
},
Object {
"actualText": "桌子",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 64,
"multiLineActualTexts": Array [
"桌子",
],
"originalText": "桌子",
- "width": 96,
+ "width": 102.57,
},
Object {
- "actualText": "数量数量数量数量数量数...",
- "actualTextHeight": 30,
- "actualTextWidth": 144,
- "height": 38,
+ "actualText": "数量数量数量数量数量数量数量数量数量数量...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 64,
"multiLineActualTexts": Array [
- "数量数量数量",
- "数量数量数...",
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量...",
],
"originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "沙发",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 64,
"multiLineActualTexts": Array [
"沙发",
],
"originalText": "沙发",
- "width": 96,
+ "width": 102.57,
},
Object {
- "actualText": "数量数量数量数量数量数...",
- "actualTextHeight": 30,
- "actualTextWidth": 144,
- "height": 38,
+ "actualText": "数量数量数量数量数量数量数量数量数量数量...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 64,
"multiLineActualTexts": Array [
- "数量数量数量",
- "数量数量数...",
- ],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 96,
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "家具家具家具家具家具家具家具家具家具家具...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 253,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "家具家具家具家",
+ "具家具家具家具",
+ "家具家具家具...",
+ ],
+ "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 253,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "桌子桌子桌子桌",
+ "子桌子桌子桌子",
+ "桌子桌子桌子...",
+ ],
+ "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "办公用品",
+ "actualTextHeight": 16,
+ "actualTextWidth": 49,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "办公用品",
+ ],
+ "originalText": "办公用品",
+ "width": 205.14,
+ },
+ Object {
+ "actualText": "笔",
+ "actualTextHeight": 16,
+ "actualTextWidth": 13,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "笔",
+ ],
+ "originalText": "笔",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "纸张",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "纸张",
+ ],
+ "originalText": "纸张",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 102.57,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by rowCell.height() 4`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly row cell height priority if actual text not wrap 4`] = `
Array [
Object {
"actualText": "浙江省",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 80,
+ "height": 140,
"multiLineActualTexts": Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 96,
+ "width": 102.57,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江...",
- "actualTextHeight": 32,
- "actualTextWidth": 144,
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "宁波市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
"height": 20,
"multiLineActualTexts": Array [
- "浙江省浙江省",
- "浙江省浙江...",
+ "宁波市",
+ ],
+ "originalText": "宁波市",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "舟山市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 60,
+ "multiLineActualTexts": Array [
+ "舟山市",
+ ],
+ "originalText": "舟山市",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "杭州市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "杭州市",
+ ],
+ "originalText": "杭州市",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 253,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "浙江省浙江省浙",
+ "江省浙江省浙江",
+ "省浙江省浙江...",
],
"originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
- "width": 96,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "杭州市杭州市...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 83,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "杭州市杭州市...",
+ ],
+ "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "width": 102.57,
},
Object {
"actualText": "四川省",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 80,
+ "height": 190,
"multiLineActualTexts": Array [
"四川省",
],
"originalText": "四川省",
- "width": 96,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "成都市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 100,
+ "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 not adaptive adjust cell height if custom cell style less than actual text height by rowCell.height() 5`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should get correctly row cell height priority if actual text not wrap 5`] = `
Array [
Object {
"actualText": "236723672361111",
"actualTextHeight": 30,
- "actualTextWidth": 99,
- "height": 20,
+ "actualTextWidth": 100,
+ "height": 30,
"multiLineActualTexts": Array [
- "23672367236",
- "1111",
+ "236723672361",
+ "111",
],
"originalText": 236723672361111,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "3877",
@@ -4973,29 +6371,29 @@ Array [
"3877",
],
"originalText": 3877,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "4342",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 60,
"multiLineActualTexts": Array [
"4342",
],
"originalText": 4342,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"-",
],
"originalText": "-",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "-",
@@ -5006,62 +6404,62 @@ Array [
"-",
],
"originalText": "-",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "1723",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 100,
"multiLineActualTexts": Array [
"1723",
],
"originalText": 1723,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "1822",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"1822",
],
"originalText": 1822,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "1943",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"1943",
],
"originalText": 1943,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "2330",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"2330",
],
"originalText": 2330,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "632",
"actualTextHeight": 15,
"actualTextWidth": 21,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"632",
],
"originalText": 632,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "7234",
@@ -5072,29 +6470,29 @@ Array [
"7234",
],
"originalText": 7234,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "834",
"actualTextHeight": 15,
"actualTextWidth": 21,
- "height": 20,
+ "height": 60,
"multiLineActualTexts": Array [
"834",
],
"originalText": 834,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "5343",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"5343",
],
"originalText": 5343,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "-",
@@ -5105,253 +6503,383 @@ Array [
"-",
],
"originalText": "-",
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "2451",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 100,
"multiLineActualTexts": Array [
"2451",
],
"originalText": 2451,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "2244",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"2244",
],
"originalText": 2244,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "2333",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"2333",
],
"originalText": 2333,
- "width": 96,
+ "width": 102.57,
},
Object {
"actualText": "2445",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"2445",
],
"originalText": 2445,
- "width": 96,
+ "width": 102.57,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet 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": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "序号",
+ "-",
],
- "originalText": "序号",
- "width": 80,
+ "originalText": "-",
+ "width": 102.57,
},
Object {
- "actualText": "省份",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 70,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 20,
"multiLineActualTexts": Array [
- "省份",
+ "-",
],
- "originalText": "省份",
- "width": 96,
+ "originalText": "-",
+ "width": 102.57,
},
Object {
- "actualText": "城市城市城市城市城市城...",
- "actualTextHeight": 32,
- "actualTextWidth": 144,
- "height": 70,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 60,
"multiLineActualTexts": Array [
- "城市城市城市",
- "城市城市城...",
+ "-",
],
- "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
- "width": 96,
+ "originalText": "-",
+ "width": 102.57,
},
Object {
- "actualText": "类别类别类别类别类别类别类别类别类别类别",
- "actualTextHeight": 16,
- "actualTextWidth": 241,
- "height": 70,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "类别类别类别类别类别类别类别类别类别类别",
+ "-",
],
- "originalText": "类别类别类别类别类别类别类别类别类别类别",
- "width": 272,
+ "originalText": "-",
+ "width": 102.57,
},
Object {
- "actualText": "子类别",
- "actualTextHeight": 16,
- "actualTextWidth": 37,
- "height": 70,
+ "actualText": "77897789778...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 84,
+ "height": 20,
"multiLineActualTexts": Array [
- "子类别",
+ "77897789778...",
],
- "originalText": "子类别",
- "width": 272,
+ "originalText": "7789778977897789778977897789",
+ "width": 102.57,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style more than actual text height 2`] = `
-Array [
Object {
- "actualText": "数量数量数量数量数量数...",
- "actualTextHeight": 30,
- "actualTextWidth": 144,
- "height": 70,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 100,
"multiLineActualTexts": Array [
- "数量数量数量",
- "数量数量数...",
+ "-",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 96,
+ "originalText": "-",
+ "width": 102.57,
},
Object {
- "actualText": "数量数量数量数量数量数...",
- "actualTextHeight": 30,
- "actualTextWidth": 144,
- "height": 70,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "数量数量数量",
- "数量数量数...",
+ "-",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 96,
+ "originalText": "-",
+ "width": 102.57,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style more than actual text height 3`] = `Array []`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style more than actual text height 4`] = `
-Array [
Object {
- "actualText": "236723672361111",
- "actualTextHeight": 30,
- "actualTextWidth": 99,
- "height": 70,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "23672367236",
- "1111",
+ "-",
],
- "originalText": 236723672361111,
- "width": 96,
+ "originalText": "-",
+ "width": 102.57,
},
Object {
- "actualText": "3877",
+ "actualText": "-",
"actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 70,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "3877",
+ "-",
],
- "originalText": 3877,
- "width": 96,
+ "originalText": "-",
+ "width": 102.57,
},
Object {
- "actualText": "4342",
+ "actualText": "1304",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 70,
+ "height": 30,
"multiLineActualTexts": Array [
- "4342",
+ "1304",
],
- "originalText": 4342,
- "width": 96,
+ "originalText": 1304,
+ "width": 102.57,
},
Object {
- "actualText": "632",
+ "actualText": "1145",
"actualTextHeight": 15,
- "actualTextWidth": 21,
- "height": 70,
+ "actualTextWidth": 26,
+ "height": 20,
"multiLineActualTexts": Array [
- "632",
+ "1145",
],
- "originalText": 632,
- "width": 96,
+ "originalText": 1145,
+ "width": 102.57,
},
Object {
- "actualText": "7234",
+ "actualText": "1432",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 70,
+ "height": 60,
"multiLineActualTexts": Array [
- "7234",
+ "1432",
],
- "originalText": 7234,
- "width": 96,
+ "originalText": 1432,
+ "width": 102.57,
},
Object {
- "actualText": "834",
+ "actualText": "945",
"actualTextHeight": 15,
"actualTextWidth": 21,
- "height": 70,
+ "height": 30,
"multiLineActualTexts": Array [
- "834",
+ "945",
],
- "originalText": 834,
- "width": 96,
+ "originalText": 945,
+ "width": 102.57,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 1`] = `
-Array [
Object {
- "actualText": "序号",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 120,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 20,
"multiLineActualTexts": Array [
- "序号",
+ "-",
],
- "originalText": "序号",
- "width": 80,
+ "originalText": "-",
+ "width": 102.57,
},
Object {
- "actualText": "省份",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 120,
+ "actualText": "2335",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 100,
"multiLineActualTexts": Array [
- "省份",
+ "2335",
],
- "originalText": "省份",
- "width": 96,
+ "originalText": 2335,
+ "width": 102.57,
},
Object {
- "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
- "actualTextHeight": 64,
- "actualTextWidth": 292,
- "height": 120,
+ "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": 20,
+ "multiLineActualTexts": Array [
+ "1523",
+ ],
+ "originalText": 1523,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "1634",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 60,
+ "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": 20,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "4004",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 100,
+ "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 PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by colCell.height 1`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+ Object {
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "省份",
+ ],
+ "originalText": "省份",
+ "width": 96,
+ },
+ Object {
+ "actualText": "城市城市城...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 71,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "城市城市城...",
],
"originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
"width": 96,
@@ -5360,7 +6888,7 @@ Array [
"actualText": "类别类别类别类别类别类别类别类别类别类别",
"actualTextHeight": 16,
"actualTextWidth": 241,
- "height": 50,
+ "height": 20,
"multiLineActualTexts": Array [
"类别类别类别类别类别类别类别类别类别类别",
],
@@ -5371,7 +6899,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 40,
+ "height": 20,
"multiLineActualTexts": Array [
"子类别",
],
@@ -5381,7 +6909,7 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 2`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by colCell.height 2`] = `
Array [
Object {
"actualText": "1",
@@ -5398,23 +6926,34 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 72,
+ "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 not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 3`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by colCell.height 3`] = `
Array [
Object {
"actualText": "家具",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 50,
+ "height": 20,
"multiLineActualTexts": Array [
"家具",
],
@@ -5425,7 +6964,7 @@ Array [
"actualText": "桌子",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 20,
"multiLineActualTexts": Array [
"桌子",
],
@@ -5433,15 +6972,12 @@ Array [
"width": 96,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
- "actualTextHeight": 60,
- "actualTextWidth": 268,
- "height": 120,
+ "actualText": "数量数量数...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 71,
+ "height": 20,
"multiLineActualTexts": Array [
- "数量数量数量",
- "数量数量数量",
- "数量数量数量",
- "数量数量",
+ "数量数量数...",
],
"originalText": "数量数量数量数量数量数量数量数量数量数量数量",
"width": 96,
@@ -5450,7 +6986,7 @@ Array [
"actualText": "沙发",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 20,
"multiLineActualTexts": Array [
"沙发",
],
@@ -5458,15 +6994,12 @@ Array [
"width": 96,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
- "actualTextHeight": 60,
- "actualTextWidth": 268,
- "height": 120,
+ "actualText": "数量数量数...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 71,
+ "height": 20,
"multiLineActualTexts": Array [
- "数量数量数量",
- "数量数量数量",
- "数量数量数量",
- "数量数量",
+ "数量数量数...",
],
"originalText": "数量数量数量数量数量数量数量数量数量数量数量",
"width": 96,
@@ -5474,7 +7007,7 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 4`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by colCell.height 4`] = `
Array [
Object {
"actualText": "浙江省",
@@ -5488,23 +7021,32 @@ Array [
"width": 96,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江...",
- "actualTextHeight": 64,
- "actualTextWidth": 290,
- "height": 72,
+ "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 not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 5`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by colCell.height 5`] = `
Array [
Object {
"actualText": "236723672361111",
@@ -5555,13 +7097,57 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 72,
+ "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": "2330",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2330",
+ ],
+ "originalText": 2330,
+ "width": 96,
+ },
Object {
"actualText": "632",
"actualTextHeight": 15,
@@ -5610,23 +7196,67 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 72,
+ "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,
+ },
+ Object {
+ "actualText": "2445",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2445",
+ ],
+ "originalText": 2445,
+ "width": 96,
+ },
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style more than actual text height by rowCell.heightByField 1`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by colCell.height() 1`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 38,
+ "height": 20,
"multiLineActualTexts": Array [
"序号",
],
@@ -5637,7 +7267,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 38,
+ "height": 20,
"multiLineActualTexts": Array [
"省份",
],
@@ -5645,12 +7275,11 @@ Array [
"width": 96,
},
Object {
- "actualText": "城市城市城市城市城市城...",
- "actualTextHeight": 32,
- "actualTextWidth": 144,
- "height": 38,
+ "actualText": "城市城市城...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 71,
+ "height": 20,
"multiLineActualTexts": Array [
- "城市城市城市",
"城市城市城...",
],
"originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
@@ -5660,7 +7289,7 @@ Array [
"actualText": "类别类别类别类别类别类别类别类别类别类别",
"actualTextHeight": 16,
"actualTextWidth": 241,
- "height": 40,
+ "height": 20,
"multiLineActualTexts": Array [
"类别类别类别类别类别类别类别类别类别类别",
],
@@ -5671,7 +7300,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 40,
+ "height": 20,
"multiLineActualTexts": Array [
"子类别",
],
@@ -5681,13 +7310,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style more than actual text height by rowCell.heightByField 2`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by colCell.height() 2`] = `
Array [
Object {
"actualText": "1",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 140,
+ "height": 120,
"multiLineActualTexts": Array [
"1",
],
@@ -5698,7 +7327,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 35,
+ "height": 48,
"multiLineActualTexts": Array [
"2",
],
@@ -5709,7 +7338,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 155,
+ "height": 120,
"multiLineActualTexts": Array [
"3",
],
@@ -5719,13 +7348,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style more than actual text height by rowCell.heightByField 3`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by colCell.height() 3`] = `
Array [
Object {
"actualText": "家具",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 20,
"multiLineActualTexts": Array [
"家具",
],
@@ -5736,7 +7365,7 @@ Array [
"actualText": "桌子",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 20,
"multiLineActualTexts": Array [
"桌子",
],
@@ -5744,12 +7373,11 @@ Array [
"width": 96,
},
Object {
- "actualText": "数量数量数量数量数量数...",
- "actualTextHeight": 30,
- "actualTextWidth": 144,
- "height": 38,
+ "actualText": "数量数量数...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 71,
+ "height": 20,
"multiLineActualTexts": Array [
- "数量数量数量",
"数量数量数...",
],
"originalText": "数量数量数量数量数量数量数量数量数量数量数量",
@@ -5759,7 +7387,7 @@ Array [
"actualText": "沙发",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 20,
"multiLineActualTexts": Array [
"沙发",
],
@@ -5767,12 +7395,11 @@ Array [
"width": 96,
},
Object {
- "actualText": "数量数量数量数量数量数...",
- "actualTextHeight": 30,
- "actualTextWidth": 144,
- "height": 38,
+ "actualText": "数量数量数...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 71,
+ "height": 20,
"multiLineActualTexts": Array [
- "数量数量数量",
"数量数量数...",
],
"originalText": "数量数量数量数量数量数量数量数量数量数量数量",
@@ -5781,13 +7408,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style more than actual text height by rowCell.heightByField 4`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by colCell.height() 4`] = `
Array [
Object {
"actualText": "浙江省",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 140,
+ "height": 120,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -5798,7 +7425,7 @@ Array [
"actualText": "浙江省浙江省浙江省浙江...",
"actualTextHeight": 32,
"actualTextWidth": 144,
- "height": 35,
+ "height": 48,
"multiLineActualTexts": Array [
"浙江省浙江省",
"浙江省浙江...",
@@ -5810,7 +7437,7 @@ Array [
"actualText": "四川省",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 155,
+ "height": 120,
"multiLineActualTexts": Array [
"四川省",
],
@@ -5820,13 +7447,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style more than actual text height by rowCell.heightByField 5`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by colCell.height() 5`] = `
Array [
Object {
"actualText": "236723672361111",
"actualTextHeight": 30,
"actualTextWidth": 99,
- "height": 35,
+ "height": 30,
"multiLineActualTexts": Array [
"23672367236",
"1111",
@@ -5838,7 +7465,7 @@ Array [
"actualText": "3877",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 35,
+ "height": 30,
"multiLineActualTexts": Array [
"3877",
],
@@ -5849,7 +7476,7 @@ Array [
"actualText": "4342",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 35,
+ "height": 30,
"multiLineActualTexts": Array [
"4342",
],
@@ -5860,7 +7487,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 35,
+ "height": 30,
"multiLineActualTexts": Array [
"-",
],
@@ -5871,7 +7498,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 35,
+ "height": 48,
"multiLineActualTexts": Array [
"-",
],
@@ -5882,7 +7509,7 @@ Array [
"actualText": "1723",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 50,
+ "height": 30,
"multiLineActualTexts": Array [
"1723",
],
@@ -5893,7 +7520,7 @@ Array [
"actualText": "1822",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 35,
+ "height": 30,
"multiLineActualTexts": Array [
"1822",
],
@@ -5904,18 +7531,29 @@ Array [
"actualText": "1943",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 35,
+ "height": 30,
"multiLineActualTexts": Array [
"1943",
],
"originalText": 1943,
"width": 96,
},
+ Object {
+ "actualText": "2330",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2330",
+ ],
+ "originalText": 2330,
+ "width": 96,
+ },
Object {
"actualText": "632",
"actualTextHeight": 15,
"actualTextWidth": 21,
- "height": 35,
+ "height": 30,
"multiLineActualTexts": Array [
"632",
],
@@ -5926,7 +7564,7 @@ Array [
"actualText": "7234",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 35,
+ "height": 30,
"multiLineActualTexts": Array [
"7234",
],
@@ -5937,7 +7575,7 @@ Array [
"actualText": "834",
"actualTextHeight": 15,
"actualTextWidth": 21,
- "height": 35,
+ "height": 30,
"multiLineActualTexts": Array [
"834",
],
@@ -5948,7 +7586,7 @@ Array [
"actualText": "5343",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 35,
+ "height": 30,
"multiLineActualTexts": Array [
"5343",
],
@@ -5959,7 +7597,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 35,
+ "height": 48,
"multiLineActualTexts": Array [
"-",
],
@@ -5970,7 +7608,7 @@ Array [
"actualText": "2451",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 50,
+ "height": 30,
"multiLineActualTexts": Array [
"2451",
],
@@ -5981,7 +7619,7 @@ Array [
"actualText": "2244",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 35,
+ "height": 30,
"multiLineActualTexts": Array [
"2244",
],
@@ -5992,73 +7630,95 @@ Array [
"actualText": "2333",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 35,
+ "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 not adaptive adjust cell height if hidden col cell 1`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by dataCell.height 1`] = `
Array [
Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 0,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
"width": 80,
},
Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 0,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "省份",
+ ],
+ "originalText": "省份",
"width": 96,
},
Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 0,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
+ "actualText": "城市城市城市城市城市城...",
+ "actualTextHeight": 32,
+ "actualTextWidth": 144,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "城市城市城市",
+ "城市城市城...",
+ ],
+ "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
"width": 96,
},
Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 0,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 241,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "类别类别类别类别类别类别类别类别类别类别",
+ ],
+ "originalText": "类别类别类别类别类别类别类别类别类别类别",
"width": 272,
},
Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 0,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
+ "actualText": "子类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "子类别",
+ ],
+ "originalText": "子类别",
"width": 272,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if hidden col cell 2`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by dataCell.height 2`] = `
Array [
Object {
"actualText": "1",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 120,
+ "height": 80,
"multiLineActualTexts": Array [
"1",
],
@@ -6069,7 +7729,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"2",
],
@@ -6080,7 +7740,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 120,
+ "height": 80,
"multiLineActualTexts": Array [
"3",
],
@@ -6090,63 +7750,75 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if hidden col cell 3`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by dataCell.height 3`] = `
Array [
Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 0,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
+ "actualText": "家具",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
"width": 192,
},
Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 0,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
+ "actualText": "桌子",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
"width": 96,
},
Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 0,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
+ "actualText": "数量数量数量数量数量数...",
+ "actualTextHeight": 30,
+ "actualTextWidth": 144,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "数量数量数量",
+ "数量数量数...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
"width": 96,
},
Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 0,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
+ "actualText": "沙发",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "沙发",
+ ],
+ "originalText": "沙发",
"width": 96,
},
Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 0,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
+ "actualText": "数量数量数量数量数量数...",
+ "actualTextHeight": 30,
+ "actualTextWidth": 144,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "数量数量数量",
+ "数量数量数...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
"width": 96,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if hidden col cell 4`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by dataCell.height 4`] = `
Array [
Object {
"actualText": "浙江省",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 120,
+ "height": 80,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -6157,7 +7829,7 @@ Array [
"actualText": "浙江省浙江...",
"actualTextHeight": 16,
"actualTextWidth": 71,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省浙江...",
],
@@ -6168,7 +7840,7 @@ Array [
"actualText": "四川省",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 120,
+ "height": 80,
"multiLineActualTexts": Array [
"四川省",
],
@@ -6178,13 +7850,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if hidden col cell 5`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style less than actual text height by dataCell.height 5`] = `
Array [
Object {
"actualText": "2367236723...",
"actualTextHeight": 15,
"actualTextWidth": 77,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"2367236723...",
],
@@ -6195,7 +7867,7 @@ Array [
"actualText": "3877",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"3877",
],
@@ -6206,7 +7878,7 @@ Array [
"actualText": "4342",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"4342",
],
@@ -6217,7 +7889,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"-",
],
@@ -6228,7 +7900,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"-",
],
@@ -6239,7 +7911,7 @@ Array [
"actualText": "1723",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"1723",
],
@@ -6250,7 +7922,7 @@ Array [
"actualText": "1822",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"1822",
],
@@ -6261,7 +7933,7 @@ Array [
"actualText": "1943",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"1943",
],
@@ -6272,7 +7944,7 @@ Array [
"actualText": "2330",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"2330",
],
@@ -6283,7 +7955,7 @@ Array [
"actualText": "632",
"actualTextHeight": 15,
"actualTextWidth": 21,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"632",
],
@@ -6294,7 +7966,7 @@ Array [
"actualText": "7234",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"7234",
],
@@ -6305,7 +7977,7 @@ Array [
"actualText": "834",
"actualTextHeight": 15,
"actualTextWidth": 21,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"834",
],
@@ -6316,7 +7988,7 @@ Array [
"actualText": "5343",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"5343",
],
@@ -6327,7 +7999,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"-",
],
@@ -6338,7 +8010,7 @@ Array [
"actualText": "2451",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"2451",
],
@@ -6349,7 +8021,7 @@ Array [
"actualText": "2244",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"2244",
],
@@ -6360,7 +8032,7 @@ Array [
"actualText": "2333",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"2333",
],
@@ -6371,7 +8043,7 @@ Array [
"actualText": "2445",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"2445",
],
@@ -6381,13 +8053,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not render word wrap text 1`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style more than actual text height 1`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 30,
+ "height": 70,
"multiLineActualTexts": Array [
"序号",
],
@@ -6398,7 +8070,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 30,
+ "height": 70,
"multiLineActualTexts": Array [
"省份",
],
@@ -6406,12 +8078,182 @@ Array [
"width": 96,
},
Object {
- "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "actualText": "城市城市城市城市城市城市城市城市城...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 217,
+ "height": 70,
+ "multiLineActualTexts": Array [
+ "城市城市城市",
+ "城市城市城市",
+ "城市城市城...",
+ ],
+ "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
"actualTextHeight": 16,
- "actualTextWidth": 289,
- "height": 30,
+ "actualTextWidth": 241,
+ "height": 70,
"multiLineActualTexts": Array [
- "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "类别类别类别类别类别类别类别类别类别类别",
+ ],
+ "originalText": "类别类别类别类别类别类别类别类别类别类别",
+ "width": 272,
+ },
+ Object {
+ "actualText": "子类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 70,
+ "multiLineActualTexts": Array [
+ "子类别",
+ ],
+ "originalText": "子类别",
+ "width": 272,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style more than actual text height 2`] = `
+Array [
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 217,
+ "height": 70,
+ "multiLineActualTexts": Array [
+ "数量数量数量",
+ "数量数量数量",
+ "数量数量数...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 96,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 217,
+ "height": 70,
+ "multiLineActualTexts": Array [
+ "数量数量数量",
+ "数量数量数量",
+ "数量数量数...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 96,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style more than actual text height 3`] = `Array []`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style more than actual text height 4`] = `
+Array [
+ Object {
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 99,
+ "height": 70,
+ "multiLineActualTexts": Array [
+ "23672367236",
+ "1111",
+ ],
+ "originalText": 236723672361111,
+ "width": 96,
+ },
+ Object {
+ "actualText": "3877",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 70,
+ "multiLineActualTexts": Array [
+ "3877",
+ ],
+ "originalText": 3877,
+ "width": 96,
+ },
+ Object {
+ "actualText": "4342",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 70,
+ "multiLineActualTexts": Array [
+ "4342",
+ ],
+ "originalText": 4342,
+ "width": 96,
+ },
+ Object {
+ "actualText": "632",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 70,
+ "multiLineActualTexts": Array [
+ "632",
+ ],
+ "originalText": 632,
+ "width": 96,
+ },
+ Object {
+ "actualText": "7234",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 70,
+ "multiLineActualTexts": Array [
+ "7234",
+ ],
+ "originalText": 7234,
+ "width": 96,
+ },
+ Object {
+ "actualText": "834",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 70,
+ "multiLineActualTexts": Array [
+ "834",
+ ],
+ "originalText": 834,
+ "width": 96,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 1`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 120,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+ Object {
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 120,
+ "multiLineActualTexts": Array [
+ "省份",
+ ],
+ "originalText": "省份",
+ "width": 96,
+ },
+ Object {
+ "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "actualTextHeight": 64,
+ "actualTextWidth": 292,
+ "height": 120,
+ "multiLineActualTexts": Array [
+ "城市城市城市",
+ "城市城市城市",
+ "城市城市城市",
+ "城市城市城市",
],
"originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
"width": 96,
@@ -6420,7 +8262,7 @@ Array [
"actualText": "类别类别类别类别类别类别类别类别类别类别",
"actualTextHeight": 16,
"actualTextWidth": 241,
- "height": 30,
+ "height": 50,
"multiLineActualTexts": Array [
"类别类别类别类别类别类别类别类别类别类别",
],
@@ -6431,7 +8273,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 30,
+ "height": 40,
"multiLineActualTexts": Array [
"子类别",
],
@@ -6441,7 +8283,7 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not render word wrap text 2`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 2`] = `
Array [
Object {
"actualText": "1",
@@ -6458,34 +8300,23 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 80,
"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 not render word wrap text 3`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 3`] = `
Array [
Object {
"actualText": "家具",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 30,
+ "height": 50,
"multiLineActualTexts": Array [
"家具",
],
@@ -6496,7 +8327,7 @@ Array [
"actualText": "桌子",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 30,
+ "height": 40,
"multiLineActualTexts": Array [
"桌子",
],
@@ -6505,11 +8336,14 @@ Array [
},
Object {
"actualText": "数量数量数量数量数量数量数量数量数量数量数量",
- "actualTextHeight": 15,
- "actualTextWidth": 265,
- "height": 30,
+ "actualTextHeight": 60,
+ "actualTextWidth": 268,
+ "height": 120,
"multiLineActualTexts": Array [
- "数量数量数量数量数量数量数量数量数量数量数量",
+ "数量数量数量",
+ "数量数量数量",
+ "数量数量数量",
+ "数量数量",
],
"originalText": "数量数量数量数量数量数量数量数量数量数量数量",
"width": 96,
@@ -6518,7 +8352,7 @@ Array [
"actualText": "沙发",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 30,
+ "height": 40,
"multiLineActualTexts": Array [
"沙发",
],
@@ -6527,11 +8361,14 @@ Array [
},
Object {
"actualText": "数量数量数量数量数量数量数量数量数量数量数量",
- "actualTextHeight": 15,
- "actualTextWidth": 265,
- "height": 30,
+ "actualTextHeight": 60,
+ "actualTextWidth": 268,
+ "height": 120,
"multiLineActualTexts": Array [
- "数量数量数量数量数量数量数量数量数量数量数量",
+ "数量数量数量",
+ "数量数量数量",
+ "数量数量数量",
+ "数量数量",
],
"originalText": "数量数量数量数量数量数量数量数量数量数量数量",
"width": 96,
@@ -6539,7 +8376,7 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should not render word wrap text 4`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 4`] = `
Array [
Object {
"actualText": "浙江省",
@@ -6553,39 +8390,32 @@ Array [
"width": 96,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
- "actualTextHeight": 16,
- "actualTextWidth": 361,
- "height": 30,
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江...",
+ "actualTextHeight": 64,
+ "actualTextWidth": 290,
+ "height": 80,
"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 not render word wrap text 5`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 5`] = `
Array [
Object {
"actualText": "236723672361111",
- "actualTextHeight": 15,
- "actualTextWidth": 98,
+ "actualTextHeight": 30,
+ "actualTextWidth": 99,
"height": 30,
"multiLineActualTexts": Array [
- "236723672361111",
+ "23672367236",
+ "1111",
],
"originalText": 236723672361111,
"width": 96,
@@ -6627,57 +8457,13 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 30,
+ "height": 80,
"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": "2330",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 30,
- "multiLineActualTexts": Array [
- "2330",
- ],
- "originalText": 2330,
- "width": 96,
- },
Object {
"actualText": "632",
"actualTextHeight": 15,
@@ -6726,67 +8512,23 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 30,
+ "height": 80,
"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,
- },
- 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 custom text overflow text 1`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style more than actual text height by rowCell.heightByField 1`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 30,
+ "height": 48,
"multiLineActualTexts": Array [
"序号",
],
@@ -6797,7 +8539,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 30,
+ "height": 48,
"multiLineActualTexts": Array [
"省份",
],
@@ -6805,12 +8547,13 @@ Array [
"width": 96,
},
Object {
- "actualText": "城市城@@@",
- "actualTextHeight": 16,
- "actualTextWidth": 72,
- "height": 30,
+ "actualText": "城市城市城市城市城市城...",
+ "actualTextHeight": 32,
+ "actualTextWidth": 144,
+ "height": 48,
"multiLineActualTexts": Array [
- "城市城@@@",
+ "城市城市城市",
+ "城市城市城...",
],
"originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
"width": 96,
@@ -6819,7 +8562,7 @@ Array [
"actualText": "类别类别类别类别类别类别类别类别类别类别",
"actualTextHeight": 16,
"actualTextWidth": 241,
- "height": 30,
+ "height": 48,
"multiLineActualTexts": Array [
"类别类别类别类别类别类别类别类别类别类别",
],
@@ -6830,7 +8573,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 30,
+ "height": 48,
"multiLineActualTexts": Array [
"子类别",
],
@@ -6840,13 +8583,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 2`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style more than actual text height by rowCell.heightByField 2`] = `
Array [
Object {
"actualText": "1",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 120,
+ "height": 140,
"multiLineActualTexts": Array [
"1",
],
@@ -6857,7 +8600,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 35,
"multiLineActualTexts": Array [
"2",
],
@@ -6868,7 +8611,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 120,
+ "height": 155,
"multiLineActualTexts": Array [
"3",
],
@@ -6878,13 +8621,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 3`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style more than actual text height by rowCell.heightByField 3`] = `
Array [
Object {
"actualText": "家具",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 30,
+ "height": 48,
"multiLineActualTexts": Array [
"家具",
],
@@ -6895,7 +8638,7 @@ Array [
"actualText": "桌子",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 30,
+ "height": 48,
"multiLineActualTexts": Array [
"桌子",
],
@@ -6903,12 +8646,13 @@ Array [
"width": 96,
},
Object {
- "actualText": "数量数@@@",
- "actualTextHeight": 15,
- "actualTextWidth": 73,
- "height": 30,
- "multiLineActualTexts": Array [
- "数量数@@@",
+ "actualText": "数量数量数量数量数量数...",
+ "actualTextHeight": 30,
+ "actualTextWidth": 144,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "数量数量数量",
+ "数量数量数...",
],
"originalText": "数量数量数量数量数量数量数量数量数量数量数量",
"width": 96,
@@ -6917,7 +8661,7 @@ Array [
"actualText": "沙发",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 30,
+ "height": 48,
"multiLineActualTexts": Array [
"沙发",
],
@@ -6925,20 +8669,357 @@ Array [
"width": 96,
},
Object {
- "actualText": "数量数@@@",
+ "actualText": "数量数量数量数量数量数...",
+ "actualTextHeight": 30,
+ "actualTextWidth": 144,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "数量数量数量",
+ "数量数量数...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 96,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style more than actual text height by rowCell.heightByField 4`] = `
+Array [
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 140,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 96,
+ },
+ Object {
+ "actualText": "浙江省浙江省浙江省浙江...",
+ "actualTextHeight": 32,
+ "actualTextWidth": 144,
+ "height": 35,
+ "multiLineActualTexts": Array [
+ "浙江省浙江省",
+ "浙江省浙江...",
+ ],
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "width": 96,
+ },
+ Object {
+ "actualText": "四川省",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 155,
+ "multiLineActualTexts": Array [
+ "四川省",
+ ],
+ "originalText": "四川省",
+ "width": 96,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if custom cell style more than actual text height by rowCell.heightByField 5`] = `
+Array [
+ Object {
+ "actualText": "2367236723...",
"actualTextHeight": 15,
- "actualTextWidth": 73,
+ "actualTextWidth": 77,
+ "height": 35,
+ "multiLineActualTexts": Array [
+ "2367236723...",
+ ],
+ "originalText": 236723672361111,
+ "width": 96,
+ },
+ Object {
+ "actualText": "3877",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 35,
+ "multiLineActualTexts": Array [
+ "3877",
+ ],
+ "originalText": 3877,
+ "width": 96,
+ },
+ Object {
+ "actualText": "4342",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 35,
+ "multiLineActualTexts": Array [
+ "4342",
+ ],
+ "originalText": 4342,
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 35,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 35,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "1723",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 50,
+ "multiLineActualTexts": Array [
+ "1723",
+ ],
+ "originalText": 1723,
+ "width": 96,
+ },
+ Object {
+ "actualText": "1822",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 35,
+ "multiLineActualTexts": Array [
+ "1822",
+ ],
+ "originalText": 1822,
+ "width": 96,
+ },
+ Object {
+ "actualText": "632",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 35,
+ "multiLineActualTexts": Array [
+ "632",
+ ],
+ "originalText": 632,
+ "width": 96,
+ },
+ Object {
+ "actualText": "7234",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 35,
+ "multiLineActualTexts": Array [
+ "7234",
+ ],
+ "originalText": 7234,
+ "width": 96,
+ },
+ Object {
+ "actualText": "834",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 35,
+ "multiLineActualTexts": Array [
+ "834",
+ ],
+ "originalText": 834,
+ "width": 96,
+ },
+ Object {
+ "actualText": "5343",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 35,
+ "multiLineActualTexts": Array [
+ "5343",
+ ],
+ "originalText": 5343,
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 35,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "2451",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 50,
+ "multiLineActualTexts": Array [
+ "2451",
+ ],
+ "originalText": 2451,
+ "width": 96,
+ },
+ Object {
+ "actualText": "2244",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 35,
+ "multiLineActualTexts": Array [
+ "2244",
+ ],
+ "originalText": 2244,
+ "width": 96,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if hidden col cell 1`] = `
+Array [
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 0,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 80,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 0,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 96,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 0,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 96,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 0,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 272,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 0,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 272,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if hidden col cell 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": 30,
"multiLineActualTexts": Array [
- "数量数@@@",
+ "2",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "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 not adaptive adjust cell height if hidden col cell 3`] = `
+Array [
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 0,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 192,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 0,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 96,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 0,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 96,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 0,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 96,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 0,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
"width": 96,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 4`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if hidden col cell 4`] = `
Array [
Object {
"actualText": "浙江省",
@@ -6952,12 +9033,12 @@ Array [
"width": 96,
},
Object {
- "actualText": "浙江省@@@",
+ "actualText": "浙江省浙江...",
"actualTextHeight": 16,
- "actualTextWidth": 72,
+ "actualTextWidth": 71,
"height": 30,
"multiLineActualTexts": Array [
- "浙江省@@@",
+ "浙江省浙江...",
],
"originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
"width": 96,
@@ -6976,15 +9057,15 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 5`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if hidden col cell 5`] = `
Array [
Object {
- "actualText": "236723@@@",
+ "actualText": "2367236723...",
"actualTextHeight": 15,
"actualTextWidth": 77,
"height": 30,
"multiLineActualTexts": Array [
- "236723@@@",
+ "2367236723...",
],
"originalText": 236723672361111,
"width": 96,
@@ -7179,13 +9260,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 1`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height, but should adjust maxLines if custom cell style less than actual text height by rowCell.height 1`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 53,
+ "height": 48,
"multiLineActualTexts": Array [
"序号",
],
@@ -7196,7 +9277,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 53,
+ "height": 48,
"multiLineActualTexts": Array [
"省份",
],
@@ -7204,12 +9285,11 @@ Array [
"width": 96,
},
Object {
- "actualText": "城市城市城市城市城市城市城市城市城...",
- "actualTextHeight": 48,
- "actualTextWidth": 217,
- "height": 53,
+ "actualText": "城市城市城市城市城市城...",
+ "actualTextHeight": 32,
+ "actualTextWidth": 144,
+ "height": 48,
"multiLineActualTexts": Array [
- "城市城市城市",
"城市城市城市",
"城市城市城...",
],
@@ -7220,7 +9300,7 @@ Array [
"actualText": "类别类别类别类别类别类别类别类别类别类别",
"actualTextHeight": 16,
"actualTextWidth": 241,
- "height": 56,
+ "height": 48,
"multiLineActualTexts": Array [
"类别类别类别类别类别类别类别类别类别类别",
],
@@ -7231,7 +9311,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 56,
+ "height": 48,
"multiLineActualTexts": Array [
"子类别",
],
@@ -7241,13 +9321,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 2`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height, but should adjust maxLines if custom cell style less than actual text height by rowCell.height 2`] = `
Array [
Object {
"actualText": "1",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 120,
+ "height": 80,
"multiLineActualTexts": Array [
"1",
],
@@ -7258,7 +9338,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 56,
+ "height": 20,
"multiLineActualTexts": Array [
"2",
],
@@ -7269,7 +9349,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 120,
+ "height": 80,
"multiLineActualTexts": Array [
"3",
],
@@ -7279,13 +9359,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 3`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height, but should adjust maxLines if custom cell style less than actual text height by rowCell.height 3`] = `
Array [
Object {
"actualText": "家具",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 48,
"multiLineActualTexts": Array [
"家具",
],
@@ -7296,7 +9376,7 @@ Array [
"actualText": "桌子",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 48,
"multiLineActualTexts": Array [
"桌子",
],
@@ -7304,12 +9384,11 @@ Array [
"width": 96,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数...",
- "actualTextHeight": 45,
- "actualTextWidth": 217,
- "height": 53,
+ "actualText": "数量数量数量数量数量数...",
+ "actualTextHeight": 30,
+ "actualTextWidth": 144,
+ "height": 48,
"multiLineActualTexts": Array [
- "数量数量数量",
"数量数量数量",
"数量数量数...",
],
@@ -7320,7 +9399,7 @@ Array [
"actualText": "沙发",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 48,
"multiLineActualTexts": Array [
"沙发",
],
@@ -7328,12 +9407,11 @@ Array [
"width": 96,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数...",
- "actualTextHeight": 45,
- "actualTextWidth": 217,
- "height": 53,
+ "actualText": "数量数量数量数量数量数...",
+ "actualTextHeight": 30,
+ "actualTextWidth": 144,
+ "height": 48,
"multiLineActualTexts": Array [
- "数量数量数量",
"数量数量数量",
"数量数量数...",
],
@@ -7343,13 +9421,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 4`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height, but should adjust maxLines if custom cell style less than actual text height by rowCell.height 4`] = `
Array [
Object {
"actualText": "浙江省",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 120,
+ "height": 80,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -7357,13 +9435,11 @@ Array [
"width": 96,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江省浙江省浙江...",
- "actualTextHeight": 48,
- "actualTextWidth": 217,
- "height": 56,
+ "actualText": "浙江省浙江...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 71,
+ "height": 20,
"multiLineActualTexts": Array [
- "浙江省浙江省",
- "浙江省浙江省",
"浙江省浙江...",
],
"originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
@@ -7373,7 +9449,7 @@ Array [
"actualText": "四川省",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 120,
+ "height": 80,
"multiLineActualTexts": Array [
"四川省",
],
@@ -7383,16 +9459,15 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 5`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height, but should adjust maxLines if custom cell style less than actual text height by rowCell.height 5`] = `
Array [
Object {
- "actualText": "236723672361111",
- "actualTextHeight": 30,
- "actualTextWidth": 99,
- "height": 30,
+ "actualText": "2367236723...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 77,
+ "height": 20,
"multiLineActualTexts": Array [
- "23672367236",
- "1111",
+ "2367236723...",
],
"originalText": 236723672361111,
"width": 96,
@@ -7401,7 +9476,7 @@ Array [
"actualText": "3877",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"3877",
],
@@ -7412,7 +9487,7 @@ Array [
"actualText": "4342",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"4342",
],
@@ -7423,7 +9498,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"-",
],
@@ -7434,7 +9509,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 56,
+ "height": 20,
"multiLineActualTexts": Array [
"-",
],
@@ -7445,7 +9520,7 @@ Array [
"actualText": "1723",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"1723",
],
@@ -7456,18 +9531,40 @@ Array [
"actualText": "1822",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"1822",
],
"originalText": 1822,
"width": 96,
},
+ Object {
+ "actualText": "1943",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "1943",
+ ],
+ "originalText": 1943,
+ "width": 96,
+ },
+ Object {
+ "actualText": "2330",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "2330",
+ ],
+ "originalText": 2330,
+ "width": 96,
+ },
Object {
"actualText": "632",
"actualTextHeight": 15,
"actualTextWidth": 21,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"632",
],
@@ -7478,7 +9575,7 @@ Array [
"actualText": "7234",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"7234",
],
@@ -7489,7 +9586,7 @@ Array [
"actualText": "834",
"actualTextHeight": 15,
"actualTextWidth": 21,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"834",
],
@@ -7500,7 +9597,7 @@ Array [
"actualText": "5343",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"5343",
],
@@ -7511,7 +9608,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 56,
+ "height": 20,
"multiLineActualTexts": Array [
"-",
],
@@ -7522,7 +9619,7 @@ Array [
"actualText": "2451",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"2451",
],
@@ -7533,23 +9630,45 @@ Array [
"actualText": "2244",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"2244",
],
"originalText": 2244,
"width": 96,
},
+ Object {
+ "actualText": "2333",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "2333",
+ ],
+ "originalText": 2333,
+ "width": 96,
+ },
+ Object {
+ "actualText": "2445",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "2445",
+ ],
+ "originalText": 2445,
+ "width": 96,
+ },
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 1`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height, but should adjust maxLines if custom cell style less than actual text height by rowCell.height() 1`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 53,
+ "height": 48,
"multiLineActualTexts": Array [
"序号",
],
@@ -7557,51 +9676,60 @@ Array [
"width": 80,
},
Object {
- "actualText": "省份/城市城市城市城市城市城市...",
- "actualTextHeight": 48,
- "actualTextWidth": 184,
- "height": 53,
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 48,
"multiLineActualTexts": Array [
- "省份/城市城",
- "市城市城市",
- "城市城市...",
+ "省份",
],
- "originalText": "省份/城市城市城市城市城市城市城市城市城市城市城市城市",
- "width": 100,
+ "originalText": "省份",
+ "width": 96,
},
Object {
- "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualText": "城市城市城市城市城市城...",
"actualTextHeight": 32,
- "actualTextWidth": 242,
- "height": 56,
+ "actualTextWidth": 144,
+ "height": 48,
"multiLineActualTexts": Array [
- "类别类别类别类别类别类别类",
- "别类别类别类别",
+ "城市城市城市",
+ "城市城市城...",
],
- "originalText": "类别类别类别类别类别类别类别类别类别类别",
- "width": 180,
+ "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 241,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "类别类别类别类别类别类别类别类别类别类别",
+ ],
+ "originalText": "类别类别类别类别类别类别类别类别类别类别",
+ "width": 272,
},
Object {
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 56,
+ "height": 48,
"multiLineActualTexts": Array [
"子类别",
],
"originalText": "子类别",
- "width": 180,
+ "width": 272,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 2`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height, but should adjust maxLines if custom cell style less than actual text height by rowCell.height() 2`] = `
Array [
Object {
"actualText": "1",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 112,
+ "height": 80,
"multiLineActualTexts": Array [
"1",
],
@@ -7612,7 +9740,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 150,
+ "height": 20,
"multiLineActualTexts": Array [
"2",
],
@@ -7623,513 +9751,527 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 112,
+ "height": 80,
"multiLineActualTexts": Array [
"3",
],
"originalText": "3",
"width": 80,
},
- Object {
- "actualText": "4",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 150,
- "multiLineActualTexts": Array [
- "4",
- ],
- "originalText": "4",
- "width": 80,
- },
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 3`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height, but should adjust maxLines if custom cell style less than actual text height by rowCell.height() 3`] = `
Array [
- Object {
- "actualText": "纸张纸张纸张纸张纸张",
- "actualTextHeight": 32,
- "actualTextWidth": 122,
- "height": 56,
- "multiLineActualTexts": Array [
- "纸张纸张纸张纸",
- "张纸张",
- ],
- "originalText": "纸张纸张纸张纸张纸张",
- "width": 103,
- },
- Object {
- "actualText": "-",
- "actualTextHeight": 16,
- "actualTextWidth": 4,
- "height": 56,
- "multiLineActualTexts": Array [
- "-",
- ],
- "originalText": "-",
- "width": 103,
- },
- Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 53,
- "multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量...",
- ],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 103,
- },
Object {
"actualText": "家具",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 48,
"multiLineActualTexts": Array [
"家具",
],
"originalText": "家具",
- "width": 206,
+ "width": 192,
},
Object {
"actualText": "桌子",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 48,
"multiLineActualTexts": Array [
"桌子",
],
"originalText": "桌子",
- "width": 103,
+ "width": 96,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 53,
+ "actualText": "数量数量数量数量数量数...",
+ "actualTextHeight": 30,
+ "actualTextWidth": 144,
+ "height": 48,
"multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量...",
+ "数量数量数量",
+ "数量数量数...",
],
"originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 103,
+ "width": 96,
},
Object {
"actualText": "沙发",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 48,
"multiLineActualTexts": Array [
"沙发",
],
"originalText": "沙发",
- "width": 103,
+ "width": 96,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 53,
+ "actualText": "数量数量数量数量数量数...",
+ "actualTextHeight": 30,
+ "actualTextWidth": 144,
+ "height": 48,
"multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量...",
+ "数量数量数量",
+ "数量数量数...",
],
"originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 103,
+ "width": 96,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height, but should adjust maxLines if custom cell style less than actual text height by rowCell.height() 4`] = `
+Array [
Object {
- "actualText": "家具家具家具家具家具家具家具家具家具家具...",
- "actualTextHeight": 48,
- "actualTextWidth": 253,
- "height": 56,
+ "actualText": "浙江省",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 80,
"multiLineActualTexts": Array [
- "家具家具家具家",
- "具家具家具家具",
- "家具家具家具...",
+ "浙江省",
],
- "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
- "width": 103,
+ "originalText": "浙江省",
+ "width": 96,
},
Object {
- "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...",
- "actualTextHeight": 48,
- "actualTextWidth": 253,
- "height": 56,
+ "actualText": "浙江省浙江...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 71,
+ "height": 20,
"multiLineActualTexts": Array [
- "桌子桌子桌子桌",
- "子桌子桌子桌子",
- "桌子桌子桌子...",
+ "浙江省浙江...",
],
- "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
- "width": 103,
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "width": 96,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 53,
+ "actualText": "四川省",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 80,
"multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量...",
+ "四川省",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 103,
+ "originalText": "四川省",
+ "width": 96,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height, but should adjust maxLines if custom cell style less than actual text height by rowCell.height() 5`] = `
+Array [
Object {
- "actualText": "办公用品",
- "actualTextHeight": 16,
- "actualTextWidth": 49,
- "height": 56,
+ "actualText": "2367236723...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 77,
+ "height": 20,
"multiLineActualTexts": Array [
- "办公用品",
+ "2367236723...",
],
- "originalText": "办公用品",
- "width": 206,
+ "originalText": 236723672361111,
+ "width": 96,
},
Object {
- "actualText": "笔",
- "actualTextHeight": 16,
- "actualTextWidth": 13,
- "height": 56,
+ "actualText": "3877",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 20,
"multiLineActualTexts": Array [
- "笔",
+ "3877",
],
- "originalText": "笔",
- "width": 103,
+ "originalText": 3877,
+ "width": 96,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 53,
+ "actualText": "4342",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 20,
"multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量...",
+ "4342",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 103,
+ "originalText": 4342,
+ "width": 96,
},
Object {
- "actualText": "纸张",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 56,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 20,
"multiLineActualTexts": Array [
- "纸张",
+ "-",
],
- "originalText": "纸张",
- "width": 103,
+ "originalText": "-",
+ "width": 96,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 53,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 20,
"multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量...",
+ "-",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 103,
+ "originalText": "-",
+ "width": 96,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 4`] = `
-Array [
Object {
- "actualText": "浙江浙江浙江浙江浙江浙江浙江...",
- "actualTextHeight": 48,
- "actualTextWidth": 181,
- "height": 56,
+ "actualText": "1723",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 20,
"multiLineActualTexts": Array [
- "浙江浙江浙",
- "江浙江浙江",
- "浙江浙江...",
+ "1723",
],
- "originalText": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江",
- "width": 100,
+ "originalText": 1723,
+ "width": 96,
},
Object {
- "actualText": "杭州杭州杭州杭州",
- "actualTextHeight": 30,
- "actualTextWidth": 98,
- "height": 56,
+ "actualText": "1822",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 20,
"multiLineActualTexts": Array [
- "杭州杭州杭",
- "州杭州",
+ "1822",
],
- "originalText": "杭州杭州杭州杭州",
- "width": 100,
+ "originalText": 1822,
+ "width": 96,
},
Object {
- "actualText": "浙江省",
- "actualTextHeight": 16,
- "actualTextWidth": 37,
- "height": 30,
+ "actualText": "1943",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 20,
"multiLineActualTexts": Array [
- "浙江省",
+ "1943",
],
- "originalText": "浙江省",
- "width": 100,
+ "originalText": 1943,
+ "width": 96,
},
Object {
- "actualText": "绍兴市",
+ "actualText": "2330",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
+ "actualTextWidth": 27,
+ "height": 20,
"multiLineActualTexts": Array [
- "绍兴市",
+ "2330",
],
- "originalText": "绍兴市",
- "width": 100,
+ "originalText": 2330,
+ "width": 96,
},
Object {
- "actualText": "宁波市",
+ "actualText": "632",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
+ "actualTextWidth": 21,
+ "height": 20,
"multiLineActualTexts": Array [
- "宁波市",
+ "632",
],
- "originalText": "宁波市",
- "width": 100,
+ "originalText": 632,
+ "width": 96,
},
Object {
- "actualText": "舟山市",
+ "actualText": "7234",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
+ "actualTextWidth": 27,
+ "height": 20,
"multiLineActualTexts": Array [
- "舟山市",
+ "7234",
],
- "originalText": "舟山市",
- "width": 100,
+ "originalText": 7234,
+ "width": 96,
},
Object {
- "actualText": "杭州市",
+ "actualText": "834",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
+ "actualTextWidth": 21,
+ "height": 20,
"multiLineActualTexts": Array [
- "杭州市",
+ "834",
],
- "originalText": "杭州市",
- "width": 100,
+ "originalText": 834,
+ "width": 96,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江省浙江...",
- "actualTextHeight": 48,
- "actualTextWidth": 181,
- "height": 56,
+ "actualText": "5343",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 20,
"multiLineActualTexts": Array [
- "浙江省浙江",
- "省浙江省浙",
- "江省浙江...",
+ "5343",
],
- "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
- "width": 100,
+ "originalText": 5343,
+ "width": 96,
},
Object {
- "actualText": "杭州市杭州市杭州市杭州市杭州...",
- "actualTextHeight": 45,
- "actualTextWidth": 181,
- "height": 56,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 20,
"multiLineActualTexts": Array [
- "杭州市杭州",
- "市杭州市杭",
- "州市杭州...",
+ "-",
],
- "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
- "width": 100,
+ "originalText": "-",
+ "width": 96,
},
Object {
- "actualText": "四川省",
- "actualTextHeight": 16,
- "actualTextWidth": 37,
- "height": 30,
+ "actualText": "2451",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 20,
"multiLineActualTexts": Array [
- "四川省",
+ "2451",
],
- "originalText": "四川省",
- "width": 100,
+ "originalText": 2451,
+ "width": 96,
},
Object {
- "actualText": "成都市",
+ "actualText": "2244",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
+ "actualTextWidth": 27,
+ "height": 20,
"multiLineActualTexts": Array [
- "成都市",
+ "2244",
],
- "originalText": "成都市",
- "width": 100,
+ "originalText": 2244,
+ "width": 96,
},
-]
-`;
-
-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": 56,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "actualText": "2333",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "2333",
+ ],
+ "originalText": 2333,
+ "width": 96,
},
Object {
- "actualText": "-",
+ "actualText": "2445",
"actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 56,
+ "actualTextWidth": 27,
+ "height": 20,
"multiLineActualTexts": Array [
- "-",
+ "2445",
],
- "originalText": "-",
- "width": 103,
+ "originalText": 2445,
+ "width": 96,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not render word wrap text 1`] = `
+Array [
Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
"height": 30,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
},
Object {
- "actualText": "-",
- "actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "省份",
],
- "originalText": "-",
- "width": 103,
+ "originalText": "省份",
+ "width": 96,
},
Object {
- "actualText": "-",
- "actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "actualTextHeight": 16,
+ "actualTextWidth": 289,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "城市城市城市城市城市城市城市城市城市城市城市城市",
],
- "originalText": "-",
- "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,
- },
- Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 56,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "originalText": "子类别",
+ "width": 272,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not render word wrap text 2`] = `
+Array [
Object {
- "actualText": "-",
+ "actualText": "1",
"actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 56,
+ "actualTextWidth": 7,
+ "height": 120,
"multiLineActualTexts": Array [
- "-",
+ "1",
],
- "originalText": "-",
- "width": 103,
- },
- Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 30,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "originalText": "1",
+ "width": 80,
},
Object {
- "actualText": "-",
+ "actualText": "2",
"actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualTextWidth": 7,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "2",
],
- "originalText": "-",
- "width": 103,
- },
+ "originalText": "2",
+ "width": 80,
+ },
Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 56,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "actualText": "3",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 120,
+ "multiLineActualTexts": Array [
+ "3",
+ ],
+ "originalText": "3",
+ "width": 80,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not render word wrap text 3`] = `
+Array [
Object {
- "actualText": "-",
+ "actualText": "家具",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 192,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 96,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
"actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 56,
+ "actualTextWidth": 265,
+ "height": 30,
"multiLineActualTexts": Array [
- "-",
+ "数量数量数量数量数量数量数量数量数量数量数量",
],
- "originalText": "-",
- "width": 103,
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 96,
},
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": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 15,
+ "actualTextWidth": 265,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "数量数量数量数量数量数量数量数量数量数量数量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 96,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not render word wrap text 4`] = `
+Array [
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 120,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 96,
+ },
+ Object {
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "actualTextHeight": 16,
+ "actualTextWidth": 361,
+ "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 not render word wrap text 5`] = `
+Array [
Object {
"actualText": "236723672361111",
- "actualTextHeight": 30,
- "actualTextWidth": 100,
+ "actualTextHeight": 15,
+ "actualTextWidth": 98,
"height": 30,
"multiLineActualTexts": Array [
- "2367236723611",
- "11",
+ "236723672361111",
],
"originalText": 236723672361111,
- "width": 103,
+ "width": 96,
},
Object {
"actualText": "3877",
@@ -8140,7 +10282,7 @@ Array [
"3877",
],
"originalText": 3877,
- "width": 103,
+ "width": 96,
},
Object {
"actualText": "4342",
@@ -8151,7 +10293,7 @@ Array [
"4342",
],
"originalText": 4342,
- "width": 103,
+ "width": 96,
},
Object {
"actualText": "-",
@@ -8162,36 +10304,18 @@ Array [
"-",
],
"originalText": "-",
- "width": 103,
- },
- Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 56,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "width": 96,
},
Object {
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 56,
+ "height": 30,
"multiLineActualTexts": Array [
"-",
],
"originalText": "-",
- "width": 103,
- },
- Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 30,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "width": 96,
},
Object {
"actualText": "1723",
@@ -8202,36 +10326,40 @@ Array [
"1723",
],
"originalText": 1723,
- "width": 103,
+ "width": 96,
},
Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 56,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "actualText": "1822",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1822",
+ ],
+ "originalText": 1822,
+ "width": 96,
},
Object {
- "actualText": "-",
+ "actualText": "1943",
"actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 56,
+ "actualTextWidth": 27,
+ "height": 30,
"multiLineActualTexts": Array [
- "-",
+ "1943",
],
- "originalText": "-",
- "width": 103,
+ "originalText": 1943,
+ "width": 96,
},
Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
+ "actualText": "2330",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
"height": 30,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "multiLineActualTexts": Array [
+ "2330",
+ ],
+ "originalText": 2330,
+ "width": 96,
},
Object {
"actualText": "632",
@@ -8242,7 +10370,7 @@ Array [
"632",
],
"originalText": 632,
- "width": 103,
+ "width": 96,
},
Object {
"actualText": "7234",
@@ -8253,7 +10381,7 @@ Array [
"7234",
],
"originalText": 7234,
- "width": 103,
+ "width": 96,
},
Object {
"actualText": "834",
@@ -8264,7 +10392,7 @@ Array [
"834",
],
"originalText": 834,
- "width": 103,
+ "width": 96,
},
Object {
"actualText": "5343",
@@ -8275,36 +10403,18 @@ Array [
"5343",
],
"originalText": 5343,
- "width": 103,
- },
- Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 56,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "width": 96,
},
Object {
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 56,
+ "height": 30,
"multiLineActualTexts": Array [
"-",
],
"originalText": "-",
- "width": 103,
- },
- Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 30,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "width": 96,
},
Object {
"actualText": "2451",
@@ -8315,763 +10425,8943 @@ Array [
"2451",
],
"originalText": 2451,
- "width": 103,
- },
- Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 56,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "width": 96,
},
Object {
- "actualText": "-",
+ "actualText": "2244",
"actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 56,
+ "actualTextWidth": 27,
+ "height": 30,
"multiLineActualTexts": Array [
- "-",
+ "2244",
],
- "originalText": "-",
- "width": 103,
- },
- Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 30,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "originalText": 2244,
+ "width": 96,
},
Object {
- "actualText": "-",
+ "actualText": "2333",
"actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "2333",
],
- "originalText": "-",
- "width": 103,
+ "originalText": 2333,
+ "width": 96,
},
Object {
- "actualText": "-",
+ "actualText": "2445",
"actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "2445",
],
- "originalText": "-",
- "width": 103,
+ "originalText": 2445,
+ "width": 96,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by infinity maxLines 1`] = `
+Array [
Object {
- "actualText": "-",
- "actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 30,
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
"multiLineActualTexts": Array [
- "-",
+ "序号",
],
- "originalText": "-",
- "width": 103,
+ "originalText": "序号",
+ "width": 80,
},
Object {
- "actualText": "-",
- "actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 30,
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
"multiLineActualTexts": Array [
- "-",
+ "省份",
],
- "originalText": "-",
- "width": 103,
+ "originalText": "省份",
+ "width": 96,
},
Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 56,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "actualTextHeight": 64,
+ "actualTextWidth": 292,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "城市城市城市",
+ "城市城市城市",
+ "城市城市城市",
+ "城市城市城市",
+ ],
+ "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "width": 96,
},
Object {
- "actualText": "7789778977897789778977897789",
- "actualTextHeight": 45,
- "actualTextWidth": 189,
- "height": 56,
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 241,
+ "height": 96,
"multiLineActualTexts": Array [
- "7789778977897",
- "7897789778977",
- "89",
+ "类别类别类别类别类别类别类别类别类别类别",
],
- "originalText": "7789778977897789778977897789",
- "width": 103,
+ "originalText": "类别类别类别类别类别类别类别类别类别类别",
+ "width": 272,
},
Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 30,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "actualText": "子类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "子类别",
+ ],
+ "originalText": "子类别",
+ "width": 272,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by infinity maxLines 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,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by infinity maxLines 3`] = `
+Array [
Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 56,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "actualText": "家具",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 192,
},
Object {
- "actualText": "-",
- "actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 56,
+ "actualText": "桌子",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 96,
"multiLineActualTexts": Array [
- "-",
+ "桌子",
],
- "originalText": "-",
- "width": 103,
+ "originalText": "桌子",
+ "width": 96,
},
Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 30,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 60,
+ "actualTextWidth": 268,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "数量数量数量",
+ "数量数量数量",
+ "数量数量数量",
+ "数量数量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 96,
},
Object {
- "actualText": "1304",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 30,
+ "actualText": "沙发",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 96,
"multiLineActualTexts": Array [
- "1304",
+ "沙发",
],
- "originalText": 1304,
- "width": 103,
+ "originalText": "沙发",
+ "width": 96,
},
Object {
- "actualText": "1145",
- "actualTextHeight": 15,
- "actualTextWidth": 26,
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 60,
+ "actualTextWidth": 268,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "数量数量数量",
+ "数量数量数量",
+ "数量数量数量",
+ "数量数量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 96,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by infinity maxLines 4`] = `
+Array [
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 120,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 96,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by infinity maxLines 5`] = `
+Array [
+ Object {
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 99,
"height": 30,
"multiLineActualTexts": Array [
- "1145",
+ "23672367236",
+ "1111",
],
- "originalText": 1145,
- "width": 103,
+ "originalText": 236723672361111,
+ "width": 96,
},
Object {
- "actualText": "1432",
+ "actualText": "3877",
"actualTextHeight": 15,
"actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "1432",
+ "3877",
],
- "originalText": 1432,
- "width": 103,
+ "originalText": 3877,
+ "width": 96,
},
Object {
- "actualText": "945",
+ "actualText": "4342",
"actualTextHeight": 15,
- "actualTextWidth": 21,
+ "actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "945",
+ "4342",
],
- "originalText": 945,
- "width": 103,
- },
- Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 56,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "originalText": 4342,
+ "width": 96,
},
Object {
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 56,
+ "height": 30,
"multiLineActualTexts": Array [
"-",
],
"originalText": "-",
- "width": 103,
+ "width": 96,
},
Object {
- "actualText": undefined,
+ "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,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by maxLines if actual text contains "\\n" 1`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+ Object {
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "省份",
+ ],
+ "originalText": "省份",
+ "width": 96,
+ },
+ Object {
+ "actualText": "城市城市城...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 71,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "城市城市城...",
+ ],
+ "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 241,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "类别类别类别类别类别类别类别类别类别类别",
+ ],
+ "originalText": "类别类别类别类别类别类别类别类别类别类别",
+ "width": 272,
+ },
+ Object {
+ "actualText": "子类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "子类别",
+ ],
+ "originalText": "子类别",
+ "width": 272,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by maxLines if actual text contains "\\n" 2`] = `
+Array [
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": "1",
+ "width": 80,
+ },
+ Object {
+ "actualText": "2",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 120,
+ "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`] = `
+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,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 192,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "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,
+ "multiLineActualTexts": Array [
+ "沙发",
+ ],
+ "originalText": "沙发",
+ "width": 96,
+ },
+ Object {
+ "actualText": "数量数量数...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 71,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "数量数量数...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 96,
+ },
+ Object {
+ "actualText": "家具家具家...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 71,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "家具家具家...",
+ ],
+ "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "width": 96,
+ },
+ Object {
+ "actualText": "桌子桌子桌...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 71,
+ "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": 49,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "办公用品",
+ ],
+ "originalText": "办公用品",
+ "width": 192,
+ },
+ Object {
+ "actualText": "笔",
+ "actualTextHeight": 16,
+ "actualTextWidth": 13,
+ "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,
+ "multiLineActualTexts": Array [
+ "纸张",
+ ],
+ "originalText": "纸张",
+ "width": 96,
+ },
+ Object {
+ "actualText": "数量数量数...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 71,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "数量数量数...",
+ ],
+ "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,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "浙江...",
+ ],
+ "originalText": "浙江
+浙江",
+ "width": 96,
+ },
+ Object {
+ "actualText": "杭州...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 35,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "杭州...",
+ ],
+ "originalText": "杭州
+杭州
+杭州",
+ "width": 96,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 120,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 96,
+ },
+ Object {
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "宁波市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "宁波市",
+ ],
+ "originalText": "宁波市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "舟山市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "舟山市",
+ ],
+ "originalText": "舟山市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "杭州市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "杭州市",
+ ],
+ "originalText": "杭州市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "浙江省浙江...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 71,
+ "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": 37,
+ "height": 120,
+ "multiLineActualTexts": Array [
+ "四川省",
+ ],
+ "originalText": "四川省",
+ "width": 96,
+ },
+ Object {
+ "actualText": "成都市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "成都市",
+ ],
+ "originalText": "成都市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "绵阳市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "绵阳市",
+ ],
+ "originalText": "绵阳市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "南充市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "南充市",
+ ],
+ "originalText": "南充市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "乐山市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "乐山市",
+ ],
+ "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,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "2367236723...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 77,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2367236723...",
+ ],
+ "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": 30,
+ "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": "2330",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2330",
+ ],
+ "originalText": 2330,
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "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": 30,
+ "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,
+ },
+ Object {
+ "actualText": "2445",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2445",
+ ],
+ "originalText": 2445,
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "7789778977...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 77,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "7789778977...",
+ ],
+ "originalText": "7789778977897789778977897789",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "1304",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1304",
+ ],
+ "originalText": 1304,
+ "width": 96,
+ },
+ Object {
+ "actualText": "1145",
+ "actualTextHeight": 15,
+ "actualTextWidth": 26,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1145",
+ ],
+ "originalText": 1145,
+ "width": 96,
+ },
+ Object {
+ "actualText": "1432",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1432",
+ ],
+ "originalText": 1432,
+ "width": 96,
+ },
+ Object {
+ "actualText": "945",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "945",
+ ],
+ "originalText": 945,
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "2335",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2335",
+ ],
+ "originalText": 2335,
+ "width": 96,
+ },
+ Object {
+ "actualText": "245",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "245",
+ ],
+ "originalText": 245,
+ "width": 96,
+ },
+ Object {
+ "actualText": "2457",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2457",
+ ],
+ "originalText": 2457,
+ "width": 96,
+ },
+ Object {
+ "actualText": "2458",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2458",
+ ],
+ "originalText": 2458,
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "1354",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1354",
+ ],
+ "originalText": 1354,
+ "width": 96,
+ },
+ Object {
+ "actualText": "1523",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1523",
+ ],
+ "originalText": 1523,
+ "width": 96,
+ },
+ Object {
+ "actualText": "1634",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1634",
+ ],
+ "originalText": 1634,
+ "width": 96,
+ },
+ Object {
+ "actualText": "1343",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1343",
+ ],
+ "originalText": 1343,
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "4004",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "4004",
+ ],
+ "originalText": 4004,
+ "width": 96,
+ },
+ Object {
+ "actualText": "3077",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "3077",
+ ],
+ "originalText": 3077,
+ "width": 96,
+ },
+ Object {
+ "actualText": "3551",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "3551",
+ ],
+ "originalText": 3551,
+ "width": 96,
+ },
+ Object {
+ "actualText": "352",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "352",
+ ],
+ "originalText": 352,
+ "width": 96,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by maxLinesByField 1`] = `
+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": 102.57,
+ },
+ Object {
+ "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "actualTextHeight": 64,
+ "actualTextWidth": 292,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "城市城市城市城",
+ "市城市城市城市",
+ "城市城市城市城",
+ "市城市",
+ ],
+ "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 241,
+ "height": 48,
+ "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 render by maxLinesByField 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 render by maxLinesByField 3`] = `
+Array [
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 48,
+ "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": 80,
+ "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": 80,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量数",
+ "量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "家具家具家具家具家具家具家...",
+ "actualTextHeight": 32,
+ "actualTextWidth": 168,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "家具家具家具家",
+ "具家具家具家...",
+ ],
+ "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 253,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "桌子桌子桌子桌",
+ "子桌子桌子桌子",
+ "桌子桌子桌子...",
+ ],
+ "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 60,
+ "actualTextWidth": 268,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量数",
+ "量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "办公用品",
+ "actualTextHeight": 16,
+ "actualTextWidth": 49,
+ "height": 48,
+ "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": 80,
+ "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": 80,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量数",
+ "量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 102.57,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by maxLinesByField 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": 45,
+ "actualTextWidth": 253,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "杭州市杭州市杭",
+ "州市杭州市杭州",
+ "市杭州市杭州...",
+ ],
+ "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "四川省",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 120,
+ "multiLineActualTexts": Array [
+ "四川省",
+ ],
+ "originalText": "四川省",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "成都市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "成都市",
+ ],
+ "originalText": "成都市",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "绵阳市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "绵阳市",
+ ],
+ "originalText": "绵阳市",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "南充市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "南充市",
+ ],
+ "originalText": "南充市",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "乐山市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "乐山市",
+ ],
+ "originalText": "乐山市",
+ "width": 102.57,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by maxLinesByField 5`] = `
+Array [
+ Object {
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "236723672361",
+ "111",
+ ],
+ "originalText": 236723672361111,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "3877",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "3877",
+ ],
+ "originalText": 3877,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "4342",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "4342",
+ ],
+ "originalText": 4342,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "1723",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1723",
+ ],
+ "originalText": 1723,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "1822",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1822",
+ ],
+ "originalText": 1822,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "1943",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1943",
+ ],
+ "originalText": 1943,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "2330",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2330",
+ ],
+ "originalText": 2330,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "632",
+ "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 PivotSheet should render custom text overflow text 1`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+ Object {
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "省份",
+ ],
+ "originalText": "省份",
+ "width": 96,
+ },
+ Object {
+ "actualText": "城市城@@@",
+ "actualTextHeight": 16,
+ "actualTextWidth": 72,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "城市城@@@",
+ ],
+ "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 241,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "类别类别类别类别类别类别类别类别类别类别",
+ ],
+ "originalText": "类别类别类别类别类别类别类别类别类别类别",
+ "width": 272,
+ },
+ Object {
+ "actualText": "子类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "子类别",
+ ],
+ "originalText": "子类别",
+ "width": 272,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 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": 30,
+ "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 custom text overflow text 3`] = `
+Array [
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 192,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 96,
+ },
+ Object {
+ "actualText": "数量数@@@",
+ "actualTextHeight": 15,
+ "actualTextWidth": 73,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "数量数@@@",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 96,
+ },
+ Object {
+ "actualText": "沙发",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "沙发",
+ ],
+ "originalText": "沙发",
+ "width": 96,
+ },
+ Object {
+ "actualText": "数量数@@@",
+ "actualTextHeight": 15,
+ "actualTextWidth": 73,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "数量数@@@",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "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,
+ "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": 77,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "236723@@@",
+ ],
+ "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": 30,
+ "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": "2330",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2330",
+ ],
+ "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,
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "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,
+ },
+ Object {
+ "actualText": "2445",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2445",
+ ],
+ "originalText": 2445,
+ "width": 96,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 1`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+ Object {
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "省份",
+ ],
+ "originalText": "省份",
+ "width": 96,
+ },
+ Object {
+ "actualText": "城市城市城市城市城市城市城市城市城...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 217,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "城市城市城市",
+ "城市城市城市",
+ "城市城市城...",
+ ],
+ "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 241,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "类别类别类别类别类别类别类别类别类别类别",
+ ],
+ "originalText": "类别类别类别类别类别类别类别类别类别类别",
+ "width": 272,
+ },
+ Object {
+ "actualText": "子类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "子类别",
+ ],
+ "originalText": "子类别",
+ "width": 272,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 2`] = `
+Array [
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 120,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": "1",
+ "width": 80,
+ },
+ Object {
+ "actualText": "2",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "2",
+ ],
+ "originalText": "2",
+ "width": 80,
+ },
+ Object {
+ "actualText": "3",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 120,
+ "multiLineActualTexts": Array [
+ "3",
+ ],
+ "originalText": "3",
+ "width": 80,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 3`] = `
+Array [
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 192,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 96,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 217,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "数量数量数量",
+ "数量数量数量",
+ "数量数量数...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 96,
+ },
+ Object {
+ "actualText": "沙发",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "沙发",
+ ],
+ "originalText": "沙发",
+ "width": 96,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 217,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "数量数量数量",
+ "数量数量数量",
+ "数量数量数...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 96,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 4`] = `
+Array [
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 120,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 96,
+ },
+ Object {
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 217,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "浙江省浙江省",
+ "浙江省浙江省",
+ "浙江省浙江...",
+ ],
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "width": 96,
+ },
+ Object {
+ "actualText": "四川省",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 120,
+ "multiLineActualTexts": Array [
+ "四川省",
+ ],
+ "originalText": "四川省",
+ "width": 96,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 5`] = `
+Array [
+ Object {
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 99,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "23672367236",
+ "1111",
+ ],
+ "originalText": 236723672361111,
+ "width": 96,
+ },
+ Object {
+ "actualText": "3877",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "3877",
+ ],
+ "originalText": 3877,
+ "width": 96,
+ },
+ Object {
+ "actualText": "4342",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "4342",
+ ],
+ "originalText": 4342,
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "1723",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1723",
+ ],
+ "originalText": 1723,
+ "width": 96,
+ },
+ Object {
+ "actualText": "632",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "632",
+ ],
+ "originalText": 632,
+ "width": 96,
+ },
+ Object {
+ "actualText": "7234",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "7234",
+ ],
+ "originalText": 7234,
+ "width": 96,
+ },
+ Object {
+ "actualText": "834",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "834",
+ ],
+ "originalText": 834,
+ "width": 96,
+ },
+ Object {
+ "actualText": "5343",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "5343",
+ ],
+ "originalText": 5343,
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "2451",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2451",
+ ],
+ "originalText": 2451,
+ "width": 96,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 1`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+ Object {
+ "actualText": "省份/城市城市城市城市城市城市...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 184,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "省份/城市城",
+ "市城市城市",
+ "城市城市...",
+ ],
+ "originalText": "省份/城市城市城市城市城市城市城市城市城市城市城市城市",
+ "width": 100,
+ },
+ Object {
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualTextHeight": 32,
+ "actualTextWidth": 242,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "类别类别类别类别类别类别",
+ "类别类别类别类别",
+ ],
+ "originalText": "类别类别类别类别类别类别类别类别类别类别",
+ "width": 180,
+ },
+ Object {
+ "actualText": "子类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "子类别",
+ ],
+ "originalText": "子类别",
+ "width": 180,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 2`] = `
+Array [
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 128,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": "1",
+ "width": 80,
+ },
+ Object {
+ "actualText": "2",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 150,
+ "multiLineActualTexts": Array [
+ "2",
+ ],
+ "originalText": "2",
+ "width": 80,
+ },
+ Object {
+ "actualText": "3",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 128,
+ "multiLineActualTexts": Array [
+ "3",
+ ],
+ "originalText": "3",
+ "width": 80,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 3`] = `
+Array [
+ Object {
+ "actualText": "纸张纸张纸张纸张纸张",
+ "actualTextHeight": 32,
+ "actualTextWidth": 122,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "纸张纸张纸张纸",
+ "张纸张",
+ ],
+ "originalText": "纸张纸张纸张纸张纸张",
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 16,
+ "actualTextWidth": 4,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 103,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 206,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 103,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 103,
+ },
+ Object {
+ "actualText": "沙发",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "沙发",
+ ],
+ "originalText": "沙发",
+ "width": 103,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 103,
+ },
+ Object {
+ "actualText": "家具家具家具家具家具家具家具家具家具家具...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 253,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "家具家具家具家",
+ "具家具家具家具",
+ "家具家具家具...",
+ ],
+ "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "width": 103,
+ },
+ Object {
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 253,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "桌子桌子桌子桌",
+ "子桌子桌子桌子",
+ "桌子桌子桌子...",
+ ],
+ "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "width": 103,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 103,
+ },
+ Object {
+ "actualText": "办公用品",
+ "actualTextHeight": 16,
+ "actualTextWidth": 49,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "办公用品",
+ ],
+ "originalText": "办公用品",
+ "width": 206,
+ },
+ Object {
+ "actualText": "笔",
+ "actualTextHeight": 16,
+ "actualTextWidth": 13,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "笔",
+ ],
+ "originalText": "笔",
+ "width": 103,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 103,
+ },
+ Object {
+ "actualText": "纸张",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "纸张",
+ ],
+ "originalText": "纸张",
+ "width": 103,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 103,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 4`] = `
+Array [
+ Object {
+ "actualText": "浙江浙江浙江浙江浙江浙江浙江...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 181,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "浙江浙江浙",
+ "江浙江浙江",
+ "浙江浙江...",
+ ],
+ "originalText": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江",
+ "width": 100,
+ },
+ Object {
+ "actualText": "杭州杭州杭州杭州",
+ "actualTextHeight": 30,
+ "actualTextWidth": 98,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "杭州杭州杭",
+ "州杭州",
+ ],
+ "originalText": "杭州杭州杭州杭州",
+ "width": 100,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 100,
+ },
+ Object {
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 100,
+ },
+ Object {
+ "actualText": "宁波市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "宁波市",
+ ],
+ "originalText": "宁波市",
+ "width": 100,
+ },
+ Object {
+ "actualText": "舟山市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "舟山市",
+ ],
+ "originalText": "舟山市",
+ "width": 100,
+ },
+ Object {
+ "actualText": "杭州市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "杭州市",
+ ],
+ "originalText": "杭州市",
+ "width": 100,
+ },
+ Object {
+ "actualText": "浙江省浙江省浙江省浙江省浙江...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 181,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "浙江省浙江",
+ "省浙江省浙",
+ "江省浙江...",
+ ],
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "width": 100,
+ },
+ Object {
+ "actualText": "杭州市杭州市杭州市杭州市杭州...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 181,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "杭州市杭州",
+ "市杭州市杭",
+ "州市杭州...",
+ ],
+ "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "width": 100,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 5`] = `
+Array [
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 64,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 30,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 64,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 64,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 30,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2367236723611",
+ "11",
+ ],
+ "originalText": 236723672361111,
+ "width": 103,
+ },
+ Object {
+ "actualText": "3877",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "3877",
+ ],
+ "originalText": 3877,
+ "width": 103,
+ },
+ Object {
+ "actualText": "4342",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "4342",
+ ],
+ "originalText": 4342,
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 64,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 64,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 30,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "632",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "632",
+ ],
+ "originalText": 632,
+ "width": 103,
+ },
+ Object {
+ "actualText": "7234",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "7234",
+ ],
+ "originalText": 7234,
+ "width": 103,
+ },
+ Object {
+ "actualText": "834",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "834",
+ ],
+ "originalText": 834,
+ "width": 103,
+ },
+ Object {
+ "actualText": "5343",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "5343",
+ ],
+ "originalText": 5343,
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 64,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 64,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 30,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 64,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "7789778977897789778977897789",
+ "actualTextHeight": 45,
+ "actualTextWidth": 189,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "7789778977897",
+ "7897789778977",
+ "89",
+ ],
+ "originalText": "7789778977897789778977897789",
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 64,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 30,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "1304",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1304",
+ ],
+ "originalText": 1304,
+ "width": 103,
+ },
+ Object {
+ "actualText": "1145",
+ "actualTextHeight": 15,
+ "actualTextWidth": 26,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1145",
+ ],
+ "originalText": 1145,
+ "width": 103,
+ },
+ Object {
+ "actualText": "1432",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1432",
+ ],
+ "originalText": 1432,
+ "width": 103,
+ },
+ Object {
+ "actualText": "945",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "945",
+ ],
+ "originalText": 945,
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 64,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 64,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 30,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "1354",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1354",
+ ],
+ "originalText": 1354,
+ "width": 103,
+ },
+ Object {
+ "actualText": "1523",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1523",
+ ],
+ "originalText": 1523,
+ "width": 103,
+ },
+ Object {
+ "actualText": "1634",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1634",
+ ],
+ "originalText": 1634,
+ "width": 103,
+ },
+ Object {
+ "actualText": "1343",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1343",
+ ],
+ "originalText": 1343,
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
"actualTextHeight": 0,
"actualTextWidth": 0,
+ "height": 64,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 1`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+ Object {
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "省份",
+ ],
+ "originalText": "省份",
+ "width": 96,
+ },
+ Object {
+ "actualText": "城市城市城市城市城市城...",
+ "actualTextHeight": 32,
+ "actualTextWidth": 144,
+ "height": 48,
+ "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": 48,
+ "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": 48,
+ "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": 80,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+ Object {
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "省份",
+ ],
+ "originalText": "省份",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "actualTextHeight": 64,
+ "actualTextWidth": 292,
+ "height": 80,
+ "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": 80,
+ "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": 80,
+ "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": 80,
+ "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": 80,
+ "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": 80,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量数",
+ "量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 102.57,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 4`] = `
+Array [
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 120,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "宁波市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "宁波市",
+ ],
+ "originalText": "宁波市",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "舟山市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "舟山市",
+ ],
+ "originalText": "舟山市",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "杭州市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "杭州市",
+ ],
+ "originalText": "杭州市",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "actualTextHeight": 80,
+ "actualTextWidth": 365,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "浙江省浙江省浙",
+ "江省浙江省浙江",
+ "省浙江省浙江省",
+ "浙江省浙江省浙",
+ "江省",
+ ],
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "actualTextHeight": 75,
+ "actualTextWidth": 365,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "杭州市杭州市杭",
+ "州市杭州市杭州",
+ "市杭州市杭州市",
+ "杭州市杭州市杭",
+ "州市",
+ ],
+ "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "四川省",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 120,
+ "multiLineActualTexts": Array [
+ "四川省",
+ ],
+ "originalText": "四川省",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "成都市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "成都市",
+ ],
+ "originalText": "成都市",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "绵阳市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "绵阳市",
+ ],
+ "originalText": "绵阳市",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "南充市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "南充市",
+ ],
+ "originalText": "南充市",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "乐山市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "乐山市",
+ ],
+ "originalText": "乐山市",
+ "width": 102.57,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 5`] = `
+Array [
+ Object {
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "236723672361",
+ "111",
+ ],
+ "originalText": 236723672361111,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "3877",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "3877",
+ ],
+ "originalText": 3877,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "4342",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "4342",
+ ],
+ "originalText": 4342,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "1723",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1723",
+ ],
+ "originalText": 1723,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "1822",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1822",
+ ],
+ "originalText": 1822,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "1943",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1943",
+ ],
+ "originalText": 1943,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "2330",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2330",
+ ],
+ "originalText": 2330,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "632",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "632",
+ ],
+ "originalText": 632,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "7234",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "7234",
+ ],
+ "originalText": 7234,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "834",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "834",
+ ],
+ "originalText": 834,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "5343",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "5343",
+ ],
+ "originalText": 5343,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "2451",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2451",
+ ],
+ "originalText": 2451,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "2244",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2244",
+ ],
+ "originalText": 2244,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "2333",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2333",
+ ],
+ "originalText": 2333,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "2445",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2445",
+ ],
+ "originalText": 2445,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "7789778977897789778977897789",
+ "actualTextHeight": 45,
+ "actualTextWidth": 189,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "778977897789",
+ "778977897789",
+ "7789",
+ ],
+ "originalText": "7789778977897789778977897789",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "1304",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1304",
+ ],
+ "originalText": 1304,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "1145",
+ "actualTextHeight": 15,
+ "actualTextWidth": 26,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1145",
+ ],
+ "originalText": 1145,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "1432",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1432",
+ ],
+ "originalText": 1432,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "945",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "945",
+ ],
+ "originalText": 945,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "2335",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2335",
+ ],
+ "originalText": 2335,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "245",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "245",
+ ],
+ "originalText": 245,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "2457",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2457",
+ ],
+ "originalText": 2457,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "2458",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2458",
+ ],
+ "originalText": 2458,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "1354",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1354",
+ ],
+ "originalText": 1354,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "1523",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1523",
+ ],
+ "originalText": 1523,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "1634",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1634",
+ ],
+ "originalText": 1634,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "1343",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1343",
+ ],
+ "originalText": 1343,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "4004",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "4004",
+ ],
+ "originalText": 4004,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "3077",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "3077",
+ ],
+ "originalText": 3077,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "3551",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "3551",
+ ],
+ "originalText": 3551,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "352",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "352",
+ ],
+ "originalText": 352,
+ "width": 102.57,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 1`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 2`] = `
+Array [
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": 1,
+ "width": 80,
+ },
+ Object {
+ "actualText": "2",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "2",
+ ],
+ "originalText": 2,
+ "width": 80,
+ },
+ Object {
+ "actualText": "3",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "3",
+ ],
+ "originalText": 3,
+ "width": 80,
+ },
+ Object {
+ "actualText": "4",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "4",
+ ],
+ "originalText": 4,
+ "width": 80,
+ },
+ Object {
+ "actualText": "5",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "5",
+ ],
+ "originalText": 5,
+ "width": 80,
+ },
+ Object {
+ "actualText": "6",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "6",
+ ],
+ "originalText": 6,
+ "width": 80,
+ },
+ Object {
+ "actualText": "7",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "7",
+ ],
+ "originalText": 7,
+ "width": 80,
+ },
+ Object {
+ "actualText": "8",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "8",
+ ],
+ "originalText": 8,
+ "width": 80,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 3`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+ Object {
+ "actualText": "省份省份省份省份省份省份省份省份省份省份省份省份省份省...",
+ "actualTextHeight": 64,
+ "actualTextWidth": 338,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "省份省份省份省",
+ "份省份省份省份",
+ "省份省份省份省",
+ "份省份省份省...",
+ ],
+ "originalText": "省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "city",
+ "actualTextHeight": 16,
+ "actualTextWidth": 21,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "city",
+ ],
+ "originalText": "city",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "type",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "type",
+ ],
+ "originalText": "type",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "sub_type",
+ "actualTextHeight": 16,
+ "actualTextWidth": 53,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "sub_type",
+ ],
+ "originalText": "sub_type",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "number",
+ "actualTextHeight": 16,
+ "actualTextWidth": 45,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "number",
+ ],
+ "originalText": "number",
+ "width": 103.8,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 4`] = `Array []`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 5`] = `
+Array [
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": 1,
+ "width": 80,
+ },
+ Object {
+ "actualText": "2",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "2",
+ ],
+ "originalText": 2,
+ "width": 80,
+ },
+ Object {
+ "actualText": "3",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "3",
+ ],
+ "originalText": 3,
+ "width": 80,
+ },
+ Object {
+ "actualText": "4",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "4",
+ ],
+ "originalText": 4,
+ "width": 80,
+ },
+ Object {
+ "actualText": "5",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "5",
+ ],
+ "originalText": 5,
+ "width": 80,
+ },
+ Object {
+ "actualText": "6",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "6",
+ ],
+ "originalText": 6,
+ "width": 80,
+ },
+ Object {
+ "actualText": "7",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "7",
+ ],
+ "originalText": 7,
+ "width": 80,
+ },
+ Object {
+ "actualText": "8",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "8",
+ ],
+ "originalText": 8,
+ "width": 80,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...",
+ "actualTextHeight": 60,
+ "actualTextWidth": 338,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "浙江省浙江省浙",
+ "江省浙江省浙江",
+ "省浙江省浙江省",
+ "浙江省浙江省...",
+ ],
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...",
+ "actualTextHeight": 60,
+ "actualTextWidth": 338,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "杭州市杭州市杭",
+ "州市杭州市杭州",
+ "市杭州市杭州市",
+ "杭州市杭州市...",
+ ],
+ "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "宁波市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "宁波市",
+ ],
+ "originalText": "宁波市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "舟山市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "舟山市",
+ ],
+ "originalText": "舟山市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "杭州市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "杭州市",
+ ],
+ "originalText": "杭州市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "宁波市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "宁波市",
+ ],
+ "originalText": "宁波市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "actualTextHeight": 60,
+ "actualTextWidth": 340,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "家具家具家具家",
+ "具家具家具家具",
+ "家具家具家具家",
+ "具家具家具家具",
+ ],
+ "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...",
+ "actualTextHeight": 60,
+ "actualTextWidth": 338,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "桌子桌子桌子桌",
+ "子桌子桌子桌子",
+ "桌子桌子桌子桌",
+ "子桌子桌子桌...",
+ ],
+ "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "沙发",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "沙发",
+ ],
+ "originalText": "沙发",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "沙发",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "沙发",
+ ],
+ "originalText": "沙发",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "沙发",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "沙发",
+ ],
+ "originalText": "沙发",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "2367236723611",
+ "11",
+ ],
+ "originalText": 236723672361111,
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "7789778977897789778977897789",
+ "actualTextHeight": 45,
+ "actualTextWidth": 189,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "7789778977897",
+ "7897789778977",
+ "89",
+ ],
+ "originalText": "7789778977897789778977897789",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "2367236723611",
+ "11",
+ ],
+ "originalText": 236723672361111,
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "3877",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "3877",
+ ],
+ "originalText": 3877,
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "4342",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "4342",
+ ],
+ "originalText": 4342,
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "5343",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "5343",
+ ],
+ "originalText": 5343,
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "632",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "632",
+ ],
+ "originalText": 632,
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "7234",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "7234",
+ ],
+ "originalText": 7234,
+ "width": 103.8,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 1`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 2`] = `
+Array [
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": 1,
+ "width": 80,
+ },
+ Object {
+ "actualText": "2",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "2",
+ ],
+ "originalText": 2,
+ "width": 80,
+ },
+ Object {
+ "actualText": "3",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "3",
+ ],
+ "originalText": 3,
+ "width": 80,
+ },
+ Object {
+ "actualText": "4",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "4",
+ ],
+ "originalText": 4,
+ "width": 80,
+ },
+ Object {
+ "actualText": "5",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "5",
+ ],
+ "originalText": 5,
+ "width": 80,
+ },
+ Object {
+ "actualText": "6",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "6",
+ ],
+ "originalText": 6,
+ "width": 80,
+ },
+ Object {
+ "actualText": "7",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "7",
+ ],
+ "originalText": 7,
+ "width": 80,
+ },
+ Object {
+ "actualText": "8",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "8",
+ ],
+ "originalText": 8,
+ "width": 80,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 3`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+ Object {
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "省份",
+ ],
+ "originalText": "省份",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "actualTextHeight": 64,
+ "actualTextWidth": 292,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "城市城市城市城",
+ "市城市城市城市",
+ "城市城市城市城",
+ "市城市",
+ ],
+ "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualTextHeight": 48,
+ "actualTextWidth": 243,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "类别类别类别类",
+ "别类别类别类别",
+ "类别类别类别",
+ ],
+ "originalText": "类别类别类别类别类别类别类别类别类别类别",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "子类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "子类别",
+ ],
+ "originalText": "子类别",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 64,
+ "actualTextWidth": 268,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量数",
+ "量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 103.8,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 4`] = `Array []`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 5`] = `
+Array [
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": 1,
+ "width": 80,
+ },
+ Object {
+ "actualText": "2",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "2",
+ ],
+ "originalText": 2,
+ "width": 80,
+ },
+ Object {
+ "actualText": "3",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "3",
+ ],
+ "originalText": 3,
+ "width": 80,
+ },
+ Object {
+ "actualText": "4",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "4",
+ ],
+ "originalText": 4,
+ "width": 80,
+ },
+ Object {
+ "actualText": "5",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "5",
+ ],
+ "originalText": 5,
+ "width": 80,
+ },
+ Object {
+ "actualText": "6",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "6",
+ ],
+ "originalText": 6,
+ "width": 80,
+ },
+ Object {
+ "actualText": "7",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "7",
+ ],
+ "originalText": 7,
+ "width": 80,
+ },
+ Object {
+ "actualText": "8",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "8",
+ ],
+ "originalText": 8,
+ "width": 80,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...",
+ "actualTextHeight": 60,
+ "actualTextWidth": 338,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "浙江省浙江省浙",
+ "江省浙江省浙江",
+ "省浙江省浙江省",
+ "浙江省浙江省...",
+ ],
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...",
+ "actualTextHeight": 60,
+ "actualTextWidth": 338,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "杭州市杭州市杭",
+ "州市杭州市杭州",
+ "市杭州市杭州市",
+ "杭州市杭州市...",
+ ],
+ "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "宁波市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "宁波市",
+ ],
+ "originalText": "宁波市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "舟山市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "舟山市",
+ ],
+ "originalText": "舟山市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "杭州市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "杭州市",
+ ],
+ "originalText": "杭州市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "宁波市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "宁波市",
+ ],
+ "originalText": "宁波市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "actualTextHeight": 60,
+ "actualTextWidth": 340,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "家具家具家具家",
+ "具家具家具家具",
+ "家具家具家具家",
+ "具家具家具家具",
+ ],
+ "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...",
+ "actualTextHeight": 60,
+ "actualTextWidth": 338,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "桌子桌子桌子桌",
+ "子桌子桌子桌子",
+ "桌子桌子桌子桌",
+ "子桌子桌子桌...",
+ ],
+ "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "沙发",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "沙发",
+ ],
+ "originalText": "沙发",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "沙发",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "沙发",
+ ],
+ "originalText": "沙发",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "沙发",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "沙发",
+ ],
+ "originalText": "沙发",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "2367236723611",
+ "11",
+ ],
+ "originalText": 236723672361111,
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "7789778977897789778977897789",
+ "actualTextHeight": 45,
+ "actualTextWidth": 189,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "7789778977897",
+ "7897789778977",
+ "89",
+ ],
+ "originalText": "7789778977897789778977897789",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "2367236723611",
+ "11",
+ ],
+ "originalText": 236723672361111,
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "3877",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "3877",
+ ],
+ "originalText": 3877,
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "4342",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "4342",
+ ],
+ "originalText": 4342,
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "5343",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "5343",
+ ],
+ "originalText": 5343,
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "632",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "632",
+ ],
+ "originalText": 632,
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "7234",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "7234",
+ ],
+ "originalText": 7234,
+ "width": 103.8,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 1`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 2`] = `
+Array [
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 360,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": 1,
+ "width": 80,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 3`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+ Object {
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "省份",
+ ],
+ "originalText": "省份",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "actualTextHeight": 64,
+ "actualTextWidth": 292,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "城市城市城市城",
+ "市城市城市城市",
+ "城市城市城市城",
+ "市城市",
+ ],
+ "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualTextHeight": 48,
+ "actualTextWidth": 243,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "类别类别类别类",
+ "别类别类别类别",
+ "类别类别类别",
+ ],
+ "originalText": "类别类别类别类别类别类别类别类别类别类别",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "子类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "子类别",
+ ],
+ "originalText": "子类别",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 64,
+ "actualTextWidth": 268,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量数",
+ "量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 103.8,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 4`] = `Array []`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 5`] = `
+Array [
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 360,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": 1,
+ "width": 80,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 360,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 360,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 360,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 360,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 360,
+ "multiLineActualTexts": Array [
+ "2367236723611",
+ "11",
+ ],
+ "originalText": 236723672361111,
+ "width": 103.8,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 6`] = `
+Array [
+ 0,
+ 360,
+ 436,
+ 482,
+ 512,
+ 542,
+ 572,
+ 602,
+ 632,
+ 662,
+ 692,
+ 722,
+ 752,
+ 782,
+ 812,
+ 842,
+ 872,
+ 902,
+ 932,
+ 962,
+ 992,
+ 1022,
+ 1052,
+ 1082,
+ 1112,
+ 1142,
+ 1172,
+ 1202,
+ 1232,
+ 1262,
+ 1292,
+ 1322,
+ 1352,
+ 1382,
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 1`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 2`] = `
+Array [
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 300,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": 1,
+ "width": 80,
+ },
+ Object {
+ "actualText": "2",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "2",
+ ],
+ "originalText": 2,
+ "width": 80,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 3`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+ Object {
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "省份",
+ ],
+ "originalText": "省份",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "actualTextHeight": 64,
+ "actualTextWidth": 292,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "城市城市城市城",
+ "市城市城市城市",
+ "城市城市城市城",
+ "市城市",
+ ],
+ "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualTextHeight": 48,
+ "actualTextWidth": 243,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "类别类别类别类",
+ "别类别类别类别",
+ "类别类别类别",
+ ],
+ "originalText": "类别类别类别类别类别类别类别类别类别类别",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "子类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "子类别",
+ ],
+ "originalText": "子类别",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 64,
+ "actualTextWidth": 268,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量数",
+ "量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 103.8,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 4`] = `Array []`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 5`] = `
+Array [
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 300,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": 1,
+ "width": 80,
+ },
+ Object {
+ "actualText": "2",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "2",
+ ],
+ "originalText": 2,
+ "width": 80,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 300,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...",
+ "actualTextHeight": 60,
+ "actualTextWidth": 338,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "浙江省浙江省浙",
+ "江省浙江省浙江",
+ "省浙江省浙江省",
+ "浙江省浙江省...",
+ ],
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 300,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...",
+ "actualTextHeight": 60,
+ "actualTextWidth": 338,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "杭州市杭州市杭",
+ "州市杭州市杭州",
+ "市杭州市杭州市",
+ "杭州市杭州市...",
+ ],
+ "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 300,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "actualTextHeight": 60,
+ "actualTextWidth": 340,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "家具家具家具家",
+ "具家具家具家具",
+ "家具家具家具家",
+ "具家具家具家具",
+ ],
+ "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 300,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...",
+ "actualTextHeight": 60,
+ "actualTextWidth": 338,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "桌子桌子桌子桌",
+ "子桌子桌子桌子",
+ "桌子桌子桌子桌",
+ "子桌子桌子桌...",
+ ],
+ "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 300,
+ "multiLineActualTexts": Array [
+ "2367236723611",
+ "11",
+ ],
+ "originalText": 236723672361111,
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "7789778977897789778977897789",
+ "actualTextHeight": 45,
+ "actualTextWidth": 189,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "7789778977897",
+ "7897789778977",
+ "89",
+ ],
+ "originalText": "7789778977897789778977897789",
+ "width": 103.8,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 6`] = `
+Array [
+ 0,
+ 300,
+ 376,
+ 422,
+ 452,
+ 482,
+ 512,
+ 542,
+ 572,
+ 602,
+ 632,
+ 662,
+ 692,
+ 722,
+ 752,
+ 782,
+ 812,
+ 842,
+ 872,
+ 902,
+ 932,
+ 962,
+ 992,
+ 1022,
+ 1052,
+ 1082,
+ 1112,
+ 1142,
+ 1172,
+ 1202,
+ 1232,
+ 1262,
+ 1292,
+ 1322,
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 1`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 2`] = `
+Array [
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": 1,
+ "width": 80,
+ },
+ Object {
+ "actualText": "2",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2",
+ ],
+ "originalText": 2,
+ "width": 80,
+ },
+ Object {
+ "actualText": "3",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 61,
+ "multiLineActualTexts": Array [
+ "3",
+ ],
+ "originalText": 3,
+ "width": 80,
+ },
+ Object {
+ "actualText": "4",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "4",
+ ],
+ "originalText": 4,
+ "width": 80,
+ },
+ Object {
+ "actualText": "5",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "5",
+ ],
+ "originalText": 5,
+ "width": 80,
+ },
+ Object {
+ "actualText": "6",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "6",
+ ],
+ "originalText": 6,
+ "width": 80,
+ },
+ Object {
+ "actualText": "7",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "7",
+ ],
+ "originalText": 7,
+ "width": 80,
+ },
+ Object {
+ "actualText": "8",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "8",
+ ],
+ "originalText": 8,
+ "width": 80,
+ },
+ Object {
+ "actualText": "9",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "9",
+ ],
+ "originalText": 9,
+ "width": 80,
+ },
+ Object {
+ "actualText": "10",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "10",
+ ],
+ "originalText": 10,
+ "width": 80,
+ },
+ Object {
+ "actualText": "11",
+ "actualTextHeight": 15,
+ "actualTextWidth": 13,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "11",
+ ],
+ "originalText": 11,
+ "width": 80,
+ },
+ Object {
+ "actualText": "12",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "12",
+ ],
+ "originalText": 12,
+ "width": 80,
+ },
+ Object {
+ "actualText": "13",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "13",
+ ],
+ "originalText": 13,
+ "width": 80,
+ },
+ Object {
+ "actualText": "14",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "14",
+ ],
+ "originalText": 14,
+ "width": 80,
+ },
+ Object {
+ "actualText": "15",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "15",
+ ],
+ "originalText": 15,
+ "width": 80,
+ },
+ Object {
+ "actualText": "16",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "16",
+ ],
+ "originalText": 16,
+ "width": 80,
+ },
+ Object {
+ "actualText": "17",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "17",
+ ],
+ "originalText": 17,
+ "width": 80,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 3`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "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 row cell height if actual text lines is difference 4`] = `Array []`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 5`] = `
+Array [
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": 1,
+ "width": 80,
+ },
+ Object {
+ "actualText": "2",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2",
+ ],
+ "originalText": 2,
+ "width": 80,
+ },
+ Object {
+ "actualText": "3",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 61,
+ "multiLineActualTexts": Array [
+ "3",
+ ],
+ "originalText": 3,
+ "width": 80,
+ },
+ Object {
+ "actualText": "4",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "4",
+ ],
+ "originalText": 4,
+ "width": 80,
+ },
+ Object {
+ "actualText": "5",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "5",
+ ],
+ "originalText": 5,
+ "width": 80,
+ },
+ Object {
+ "actualText": "6",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "6",
+ ],
+ "originalText": 6,
+ "width": 80,
+ },
+ Object {
+ "actualText": "7",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "7",
+ ],
+ "originalText": 7,
+ "width": 80,
+ },
+ Object {
+ "actualText": "8",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "8",
+ ],
+ "originalText": 8,
+ "width": 80,
+ },
+ Object {
+ "actualText": "9",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "9",
+ ],
+ "originalText": 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": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江",
+ "actualTextHeight": 30,
+ "actualTextWidth": 242,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "浙江浙江浙江浙江浙江",
+ "浙江浙江浙江浙江浙江",
+ ],
+ "originalText": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江",
+ "width": 143.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 143.8,
+ },
+ Object {
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "actualTextHeight": 45,
+ "actualTextWidth": 363,
+ "height": 61,
+ "multiLineActualTexts": Array [
+ "浙江省浙江省浙江省浙",
+ "江省浙江省浙江省浙江",
+ "省浙江省浙江省浙江省",
+ ],
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "width": 143.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 143.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 143.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 143.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "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": 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": undefined,
- "width": 103,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "2335",
+ "actualText": "杭州杭州杭州杭州",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 97,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "杭州杭州杭州杭州",
+ ],
+ "originalText": "杭州杭州杭州杭州",
+ "width": 143.8,
+ },
+ Object {
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "2335",
+ "绍兴市",
],
- "originalText": 2335,
- "width": 103,
+ "originalText": "绍兴市",
+ "width": 143.8,
},
Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 56,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "actualTextHeight": 45,
+ "actualTextWidth": 363,
+ "height": 61,
+ "multiLineActualTexts": Array [
+ "杭州市杭州市杭州市杭",
+ "州市杭州市杭州市杭州",
+ "市杭州市杭州市杭州市",
+ ],
+ "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "width": 143.8,
+ },
+ Object {
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 143.8,
+ },
+ Object {
+ "actualText": "宁波市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "宁波市",
+ ],
+ "originalText": "宁波市",
+ "width": 143.8,
+ },
+ Object {
+ "actualText": "舟山市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "舟山市",
+ ],
+ "originalText": "舟山市",
+ "width": 143.8,
+ },
+ Object {
+ "actualText": "杭州市",
+ "actualTextHeight": 15,
+ "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": 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": 121,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "纸张纸张纸张纸张纸张",
+ ],
+ "originalText": "纸张纸张纸张纸张纸张",
+ "width": 143.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 143.8,
+ },
+ Object {
+ "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "actualTextHeight": 45,
+ "actualTextWidth": 339,
+ "height": 61,
+ "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": 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": 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,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "办公用品",
+ ],
+ "originalText": "办公用品",
+ "width": 143.8,
},
Object {
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 56,
+ "height": 46,
"multiLineActualTexts": Array [
"-",
],
"originalText": "-",
- "width": 103,
+ "width": 143.8,
},
Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
+ "actualText": "桌子",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
"height": 30,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 143.8,
},
Object {
- "actualText": "1354",
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "actualTextHeight": 45,
+ "actualTextWidth": 363,
+ "height": 61,
+ "multiLineActualTexts": Array [
+ "桌子桌子桌子桌子桌子",
+ "桌子桌子桌子桌子桌子",
+ "桌子桌子桌子桌子桌子",
+ ],
+ "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "width": 143.8,
+ },
+ Object {
+ "actualText": "桌子",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "1354",
+ "桌子",
],
- "originalText": 1354,
- "width": 103,
+ "originalText": "桌子",
+ "width": 143.8,
},
Object {
- "actualText": "1523",
+ "actualText": "桌子",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "1523",
+ "桌子",
],
- "originalText": 1523,
- "width": 103,
+ "originalText": "桌子",
+ "width": 143.8,
},
Object {
- "actualText": "1634",
+ "actualText": "桌子",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "1634",
+ "桌子",
],
- "originalText": 1634,
- "width": 103,
+ "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": 13,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "笔",
+ ],
+ "originalText": "笔",
+ "width": 143.8,
},
Object {
- "actualText": "1343",
+ "actualText": "笔",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 13,
"height": 30,
"multiLineActualTexts": Array [
- "1343",
+ "笔",
],
- "originalText": 1343,
- "width": 103,
- },
- Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 56,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "originalText": "笔",
+ "width": 143.8,
},
Object {
- "actualText": "-",
+ "actualText": "笔",
"actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 56,
+ "actualTextWidth": 13,
+ "height": 30,
"multiLineActualTexts": Array [
- "-",
+ "笔",
],
- "originalText": "-",
- "width": 103,
- },
- Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 30,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "originalText": "笔",
+ "width": 143.8,
},
Object {
- "actualText": "4004",
+ "actualText": "笔",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 13,
"height": 30,
"multiLineActualTexts": Array [
- "4004",
+ "笔",
],
- "originalText": 4004,
- "width": 103,
+ "originalText": "笔",
+ "width": 143.8,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 1`] = `
-Array [
Object {
- "actualText": "序号",
- "actualTextHeight": 16,
+ "actualText": "纸张",
+ "actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 38,
+ "height": 30,
"multiLineActualTexts": Array [
- "序号",
+ "纸张",
],
- "originalText": "序号",
- "width": 80,
+ "originalText": "纸张",
+ "width": 143.8,
},
Object {
- "actualText": "省份",
- "actualTextHeight": 16,
+ "actualText": "纸张",
+ "actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 38,
+ "height": 30,
"multiLineActualTexts": Array [
- "省份",
+ "纸张",
],
- "originalText": "省份",
- "width": 96,
+ "originalText": "纸张",
+ "width": 143.8,
},
Object {
- "actualText": "城市城市城市城市城市城...",
- "actualTextHeight": 32,
- "actualTextWidth": 144,
- "height": 38,
+ "actualText": "纸张",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "城市城市城市",
- "城市城市城...",
+ "纸张",
],
- "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
- "width": 96,
+ "originalText": "纸张",
+ "width": 143.8,
},
Object {
- "actualText": "类别类别类别类别类别类别类别类别类别类别",
- "actualTextHeight": 16,
- "actualTextWidth": 241,
- "height": 40,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 46,
"multiLineActualTexts": Array [
- "类别类别类别类别类别类别类别类别类别类别",
+ "-",
],
- "originalText": "类别类别类别类别类别类别类别类别类别类别",
- "width": 272,
+ "originalText": "-",
+ "width": 143.8,
},
Object {
- "actualText": "子类别",
- "actualTextHeight": 16,
- "actualTextWidth": 37,
- "height": 40,
+ "actualText": "236723672361111",
+ "actualTextHeight": 15,
+ "actualTextWidth": 98,
+ "height": 30,
"multiLineActualTexts": Array [
- "子类别",
+ "236723672361111",
],
- "originalText": "子类别",
- "width": 272,
+ "originalText": 236723672361111,
+ "width": 143.8,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 2`] = `
-Array [
Object {
- "actualText": "1",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 120,
+ "actualText": "7789778977897789778977897789",
+ "actualTextHeight": 30,
+ "actualTextWidth": 188,
+ "height": 61,
"multiLineActualTexts": Array [
- "1",
+ "7789778977897789778",
+ "977897789",
],
- "originalText": "1",
- "width": 80,
+ "originalText": "7789778977897789778977897789",
+ "width": 143.8,
},
Object {
- "actualText": "2",
+ "actualText": "236723672361111",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 40,
+ "actualTextWidth": 98,
+ "height": 30,
"multiLineActualTexts": Array [
- "2",
+ "236723672361111",
],
- "originalText": "2",
- "width": 80,
+ "originalText": 236723672361111,
+ "width": 143.8,
},
Object {
- "actualText": "3",
+ "actualText": "3877",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 120,
+ "actualTextWidth": 27,
+ "height": 30,
"multiLineActualTexts": Array [
- "3",
+ "3877",
],
- "originalText": "3",
- "width": 80,
+ "originalText": 3877,
+ "width": 143.8,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 3`] = `
-Array [
Object {
- "actualText": "家具",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 40,
+ "actualText": "4342",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
"multiLineActualTexts": Array [
- "家具",
+ "4342",
],
- "originalText": "家具",
- "width": 192,
+ "originalText": 4342,
+ "width": 143.8,
},
Object {
- "actualText": "桌子",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 40,
+ "actualText": "5343",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
"multiLineActualTexts": Array [
- "桌子",
+ "5343",
],
- "originalText": "桌子",
- "width": 96,
+ "originalText": 5343,
+ "width": 143.8,
},
Object {
- "actualText": "数量数量数量数量数量数...",
- "actualTextHeight": 30,
- "actualTextWidth": 144,
- "height": 38,
+ "actualText": "632",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
"multiLineActualTexts": Array [
- "数量数量数量",
- "数量数量数...",
+ "632",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 96,
+ "originalText": 632,
+ "width": 143.8,
},
Object {
- "actualText": "沙发",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 40,
+ "actualText": "7234",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
"multiLineActualTexts": Array [
- "沙发",
+ "7234",
],
- "originalText": "沙发",
- "width": 96,
+ "originalText": 7234,
+ "width": 143.8,
},
Object {
- "actualText": "数量数量数量数量数量数...",
- "actualTextHeight": 30,
- "actualTextWidth": 144,
- "height": 38,
+ "actualText": "834",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
"multiLineActualTexts": Array [
- "数量数量数量",
- "数量数量数...",
+ "834",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 96,
+ "originalText": 834,
+ "width": 143.8,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 4`] = `
-Array [
Object {
- "actualText": "浙江省",
- "actualTextHeight": 16,
- "actualTextWidth": 37,
- "height": 120,
+ "actualText": "945",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "945",
],
- "originalText": "浙江省",
- "width": 96,
+ "originalText": 945,
+ "width": 143.8,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江...",
- "actualTextHeight": 32,
- "actualTextWidth": 144,
- "height": 40,
+ "actualText": "1304",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省浙江省",
- "浙江省浙江...",
+ "1304",
],
- "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
- "width": 96,
+ "originalText": 1304,
+ "width": 143.8,
},
Object {
- "actualText": "四川省",
- "actualTextHeight": 16,
- "actualTextWidth": 37,
- "height": 120,
+ "actualText": "1145",
+ "actualTextHeight": 15,
+ "actualTextWidth": 26,
+ "height": 30,
"multiLineActualTexts": Array [
- "四川省",
+ "1145",
],
- "originalText": "四川省",
- "width": 96,
+ "originalText": 1145,
+ "width": 143.8,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 5`] = `
-Array [
Object {
- "actualText": "236723672361111",
- "actualTextHeight": 30,
- "actualTextWidth": 99,
+ "actualText": "1432",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "23672367236",
- "1111",
+ "1432",
],
- "originalText": 236723672361111,
- "width": 96,
+ "originalText": 1432,
+ "width": 143.8,
},
Object {
- "actualText": "3877",
+ "actualText": "1343",
"actualTextHeight": 15,
"actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "3877",
+ "1343",
],
- "originalText": 3877,
- "width": 96,
+ "originalText": 1343,
+ "width": 143.8,
},
Object {
- "actualText": "4342",
+ "actualText": "1354",
"actualTextHeight": 15,
"actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "4342",
+ "1354",
],
- "originalText": 4342,
- "width": 96,
+ "originalText": 1354,
+ "width": 143.8,
},
Object {
- "actualText": "-",
+ "actualText": "1523",
"actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "1523",
],
- "originalText": "-",
- "width": 96,
+ "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": 4,
- "height": 40,
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "-",
+ "序号",
],
- "originalText": "-",
- "width": 96,
+ "originalText": "序号",
+ "width": 80,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 2`] = `
+Array [
Object {
- "actualText": "1723",
+ "actualText": "1",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 7,
"height": 30,
"multiLineActualTexts": Array [
- "1723",
+ "1",
],
- "originalText": 1723,
- "width": 96,
+ "originalText": 1,
+ "width": 80,
},
Object {
- "actualText": "1822",
+ "actualText": "2",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 7,
"height": 30,
"multiLineActualTexts": Array [
- "1822",
+ "2",
],
- "originalText": 1822,
- "width": 96,
+ "originalText": 2,
+ "width": 80,
},
Object {
- "actualText": "1943",
+ "actualText": "3",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 7,
"height": 30,
"multiLineActualTexts": Array [
- "1943",
+ "3",
],
- "originalText": 1943,
- "width": 96,
+ "originalText": 3,
+ "width": 80,
},
Object {
- "actualText": "2330",
+ "actualText": "4",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 7,
"height": 30,
"multiLineActualTexts": Array [
- "2330",
+ "4",
],
- "originalText": 2330,
- "width": 96,
+ "originalText": 4,
+ "width": 80,
},
Object {
- "actualText": "632",
+ "actualText": "5",
"actualTextHeight": 15,
- "actualTextWidth": 21,
+ "actualTextWidth": 7,
"height": 30,
"multiLineActualTexts": Array [
- "632",
+ "5",
],
- "originalText": 632,
- "width": 96,
+ "originalText": 5,
+ "width": 80,
},
Object {
- "actualText": "7234",
+ "actualText": "6",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 7,
"height": 30,
"multiLineActualTexts": Array [
- "7234",
+ "6",
],
- "originalText": 7234,
- "width": 96,
+ "originalText": 6,
+ "width": 80,
},
Object {
- "actualText": "834",
+ "actualText": "7",
"actualTextHeight": 15,
- "actualTextWidth": 21,
+ "actualTextWidth": 7,
"height": 30,
"multiLineActualTexts": Array [
- "834",
+ "7",
],
- "originalText": 834,
- "width": 96,
+ "originalText": 7,
+ "width": 80,
},
Object {
- "actualText": "5343",
+ "actualText": "8",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 7,
"height": 30,
"multiLineActualTexts": Array [
- "5343",
+ "8",
],
- "originalText": 5343,
- "width": 96,
+ "originalText": 8,
+ "width": 80,
},
Object {
- "actualText": "-",
+ "actualText": "9",
"actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 40,
+ "actualTextWidth": 7,
+ "height": 30,
"multiLineActualTexts": Array [
- "-",
+ "9",
],
- "originalText": "-",
- "width": 96,
+ "originalText": 9,
+ "width": 80,
},
Object {
- "actualText": "2451",
+ "actualText": "10",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 14,
"height": 30,
"multiLineActualTexts": Array [
- "2451",
+ "10",
],
- "originalText": 2451,
- "width": 96,
+ "originalText": 10,
+ "width": 80,
},
Object {
- "actualText": "2244",
+ "actualText": "11",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 13,
"height": 30,
"multiLineActualTexts": Array [
- "2244",
+ "11",
],
- "originalText": 2244,
- "width": 96,
+ "originalText": 11,
+ "width": 80,
},
Object {
- "actualText": "2333",
+ "actualText": "12",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 14,
"height": 30,
"multiLineActualTexts": Array [
- "2333",
+ "12",
],
- "originalText": 2333,
- "width": 96,
+ "originalText": 12,
+ "width": 80,
},
Object {
- "actualText": "2445",
+ "actualText": "13",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 14,
"height": 30,
"multiLineActualTexts": Array [
- "2445",
+ "13",
],
- "originalText": 2445,
- "width": 96,
+ "originalText": 13,
+ "width": 80,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 1`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 3`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 68,
+ "height": 30,
"multiLineActualTexts": Array [
"序号",
],
@@ -9082,915 +19372,932 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 68,
+ "height": 30,
"multiLineActualTexts": Array [
"省份",
],
"originalText": "省份",
- "width": 102.57,
+ "width": 103.8,
},
Object {
- "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
- "actualTextHeight": 64,
- "actualTextWidth": 292,
- "height": 68,
+ "actualText": "城市城市城市...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 83,
+ "height": 30,
"multiLineActualTexts": Array [
- "城市城市城市城",
- "市城市城市城市",
- "城市城市城市城",
- "市城市",
+ "城市城市城市...",
],
"originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
- "width": 102.57,
+ "width": 103.8,
},
Object {
- "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualText": "类别类别类别...",
"actualTextHeight": 16,
- "actualTextWidth": 241,
- "height": 72,
+ "actualTextWidth": 83,
+ "height": 30,
"multiLineActualTexts": Array [
- "类别类别类别类别类别类别类别类别类别类别",
+ "类别类别类别...",
],
"originalText": "类别类别类别类别类别类别类别类别类别类别",
- "width": 285.14,
+ "width": 103.8,
},
Object {
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 88,
+ "height": 30,
"multiLineActualTexts": Array [
"子类别",
],
"originalText": "子类别",
- "width": 285.14,
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "数量数量数量...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 83,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "数量数量数量...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 103.8,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 2`] = `
+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": "1",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 120,
+ "height": 30,
"multiLineActualTexts": Array [
"1",
],
- "originalText": "1",
+ "originalText": 1,
"width": 80,
},
Object {
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 88,
+ "height": 30,
"multiLineActualTexts": Array [
"2",
],
- "originalText": "2",
+ "originalText": 2,
"width": 80,
},
Object {
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 120,
+ "height": 30,
"multiLineActualTexts": Array [
"3",
],
- "originalText": "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": 72,
+ "actualText": "4",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
"multiLineActualTexts": Array [
- "家具",
+ "4",
],
- "originalText": "家具",
- "width": 205.14,
+ "originalText": 4,
+ "width": 80,
},
Object {
- "actualText": "桌子",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 88,
+ "actualText": "5",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
"multiLineActualTexts": Array [
- "桌子",
+ "5",
],
- "originalText": "桌子",
- "width": 102.57,
+ "originalText": 5,
+ "width": 80,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
- "actualTextHeight": 60,
- "actualTextWidth": 268,
- "height": 68,
+ "actualText": "6",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
"multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量数",
- "量",
+ "6",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 102.57,
+ "originalText": 6,
+ "width": 80,
},
Object {
- "actualText": "沙发",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 88,
+ "actualText": "7",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
"multiLineActualTexts": Array [
- "沙发",
+ "7",
],
- "originalText": "沙发",
- "width": 102.57,
+ "originalText": 7,
+ "width": 80,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
- "actualTextHeight": 60,
- "actualTextWidth": 268,
- "height": 68,
+ "actualText": "8",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
"multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量数",
- "量",
+ "8",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 102.57,
+ "originalText": 8,
+ "width": 80,
},
Object {
- "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
- "actualTextHeight": 64,
- "actualTextWidth": 340,
- "height": 72,
+ "actualText": "9",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
"multiLineActualTexts": Array [
- "家具家具家具家",
- "具家具家具家具",
- "家具家具家具家",
- "具家具家具家具",
+ "9",
],
- "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
- "width": 102.57,
+ "originalText": 9,
+ "width": 80,
},
Object {
- "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
- "actualTextHeight": 80,
- "actualTextWidth": 365,
- "height": 88,
+ "actualText": "10",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 30,
"multiLineActualTexts": Array [
- "桌子桌子桌子桌",
- "子桌子桌子桌子",
- "桌子桌子桌子桌",
- "子桌子桌子桌子",
- "桌子",
+ "10",
],
- "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
- "width": 102.57,
+ "originalText": 10,
+ "width": 80,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
- "actualTextHeight": 60,
- "actualTextWidth": 268,
- "height": 68,
+ "actualText": "11",
+ "actualTextHeight": 15,
+ "actualTextWidth": 13,
+ "height": 30,
"multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量数",
- "量",
+ "11",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 102.57,
+ "originalText": 11,
+ "width": 80,
},
Object {
- "actualText": "办公用品",
- "actualTextHeight": 16,
- "actualTextWidth": 49,
- "height": 72,
+ "actualText": "12",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 30,
"multiLineActualTexts": Array [
- "办公用品",
+ "12",
],
- "originalText": "办公用品",
- "width": 205.14,
+ "originalText": 12,
+ "width": 80,
},
Object {
- "actualText": "笔",
- "actualTextHeight": 16,
- "actualTextWidth": 13,
- "height": 88,
+ "actualText": "13",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 30,
"multiLineActualTexts": Array [
- "笔",
+ "13",
],
- "originalText": "笔",
- "width": 102.57,
+ "originalText": 13,
+ "width": 80,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
- "actualTextHeight": 60,
- "actualTextWidth": 268,
- "height": 68,
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量数",
- "量",
+ "浙江省",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 102.57,
+ "originalText": "浙江省",
+ "width": 103.8,
},
Object {
- "actualText": "纸张",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 88,
+ "actualText": "浙江省浙江省...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 83,
+ "height": 30,
"multiLineActualTexts": Array [
- "纸张",
+ "浙江省浙江省...",
],
- "originalText": "纸张",
- "width": 102.57,
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "width": 103.8,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
- "actualTextHeight": 60,
- "actualTextWidth": 268,
- "height": 68,
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量数",
- "量",
+ "浙江省",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 102.57,
+ "originalText": "浙江省",
+ "width": 103.8,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 4`] = `
-Array [
Object {
"actualText": "浙江省",
- "actualTextHeight": 16,
+ "actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 120,
+ "height": 30,
"multiLineActualTexts": Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 102.57,
+ "width": 103.8,
},
Object {
- "actualText": "绍兴市",
+ "actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "绍兴市",
+ "浙江省",
],
- "originalText": "绍兴市",
- "width": 102.57,
+ "originalText": "浙江省",
+ "width": 103.8,
},
Object {
- "actualText": "宁波市",
+ "actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "宁波市",
+ "浙江省",
],
- "originalText": "宁波市",
- "width": 102.57,
+ "originalText": "浙江省",
+ "width": 103.8,
},
Object {
- "actualText": "舟山市",
+ "actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "舟山市",
+ "浙江省",
],
- "originalText": "舟山市",
- "width": 102.57,
+ "originalText": "浙江省",
+ "width": 103.8,
},
Object {
- "actualText": "杭州市",
+ "actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "杭州市",
+ "浙江省",
],
- "originalText": "杭州市",
- "width": 102.57,
+ "originalText": "浙江省",
+ "width": 103.8,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
- "actualTextHeight": 80,
- "actualTextWidth": 365,
- "height": 88,
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省浙江省浙",
- "江省浙江省浙江",
- "省浙江省浙江省",
- "浙江省浙江省浙",
- "江省",
+ "浙江省",
],
- "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
- "width": 102.57,
+ "originalText": "浙江省",
+ "width": 103.8,
},
Object {
- "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
- "actualTextHeight": 75,
- "actualTextWidth": 365,
- "height": 88,
+ "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": 83,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "杭州市杭州市...",
],
"originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
- "width": 102.57,
+ "width": 103.8,
},
Object {
- "actualText": "四川省",
- "actualTextHeight": 16,
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 120,
+ "height": 30,
"multiLineActualTexts": Array [
- "四川省",
+ "绍兴市",
],
- "originalText": "四川省",
- "width": 102.57,
+ "originalText": "绍兴市",
+ "width": 103.8,
},
Object {
- "actualText": "成都市",
+ "actualText": "宁波市",
"actualTextHeight": 15,
"actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "成都市",
+ "宁波市",
],
- "originalText": "成都市",
- "width": 102.57,
+ "originalText": "宁波市",
+ "width": 103.8,
},
Object {
- "actualText": "绵阳市",
+ "actualText": "舟山市",
"actualTextHeight": 15,
"actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "绵阳市",
+ "舟山市",
],
- "originalText": "绵阳市",
- "width": 102.57,
+ "originalText": "舟山市",
+ "width": 103.8,
},
Object {
- "actualText": "南充市",
+ "actualText": "杭州市",
"actualTextHeight": 15,
"actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "南充市",
+ "杭州市",
],
- "originalText": "南充市",
- "width": 102.57,
+ "originalText": "杭州市",
+ "width": 103.8,
},
Object {
- "actualText": "乐山市",
+ "actualText": "绍兴市",
"actualTextHeight": 15,
"actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "乐山市",
+ "绍兴市",
],
- "originalText": "乐山市",
- "width": 102.57,
+ "originalText": "绍兴市",
+ "width": 103.8,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 5`] = `
-Array [
Object {
- "actualText": "236723672361111",
- "actualTextHeight": 30,
- "actualTextWidth": 100,
+ "actualText": "宁波市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "236723672361",
- "111",
+ "宁波市",
],
- "originalText": 236723672361111,
- "width": 102.57,
+ "originalText": "宁波市",
+ "width": 103.8,
},
Object {
- "actualText": "3877",
+ "actualText": "舟山市",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "3877",
+ "舟山市",
],
- "originalText": 3877,
- "width": 102.57,
+ "originalText": "舟山市",
+ "width": 103.8,
},
Object {
- "actualText": "4342",
+ "actualText": "杭州市",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "4342",
+ "杭州市",
],
- "originalText": 4342,
- "width": 102.57,
+ "originalText": "杭州市",
+ "width": 103.8,
},
Object {
- "actualText": "-",
+ "actualText": "绍兴市",
"actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "绍兴市",
],
- "originalText": "-",
- "width": 102.57,
+ "originalText": "绍兴市",
+ "width": 103.8,
},
Object {
- "actualText": "-",
+ "actualText": "宁波市",
"actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 88,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "-",
+ "宁波市",
],
- "originalText": "-",
- "width": 102.57,
+ "originalText": "宁波市",
+ "width": 103.8,
},
Object {
- "actualText": "1723",
+ "actualText": "舟山市",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "1723",
+ "舟山市",
],
- "originalText": 1723,
- "width": 102.57,
+ "originalText": "舟山市",
+ "width": 103.8,
},
Object {
- "actualText": "1822",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "1822",
+ "家具",
],
- "originalText": 1822,
- "width": 102.57,
+ "originalText": "家具",
+ "width": 103.8,
},
Object {
- "actualText": "1943",
+ "actualText": "家具家具家具...",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 83,
"height": 30,
"multiLineActualTexts": Array [
- "1943",
+ "家具家具家具...",
],
- "originalText": 1943,
- "width": 102.57,
+ "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "width": 103.8,
},
Object {
- "actualText": "2330",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "2330",
+ "家具",
],
- "originalText": 2330,
- "width": 102.57,
+ "originalText": "家具",
+ "width": 103.8,
},
Object {
- "actualText": "632",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 21,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "632",
+ "家具",
],
- "originalText": 632,
- "width": 102.57,
+ "originalText": "家具",
+ "width": 103.8,
},
Object {
- "actualText": "7234",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "7234",
+ "家具",
],
- "originalText": 7234,
- "width": 102.57,
+ "originalText": "家具",
+ "width": 103.8,
},
Object {
- "actualText": "834",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 21,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "834",
+ "家具",
],
- "originalText": 834,
- "width": 102.57,
+ "originalText": "家具",
+ "width": 103.8,
},
Object {
- "actualText": "5343",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "5343",
+ "家具",
],
- "originalText": 5343,
- "width": 102.57,
+ "originalText": "家具",
+ "width": 103.8,
},
Object {
- "actualText": "-",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 88,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "-",
+ "家具",
],
- "originalText": "-",
- "width": 102.57,
+ "originalText": "家具",
+ "width": 103.8,
},
Object {
- "actualText": "2451",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "2451",
+ "家具",
],
- "originalText": 2451,
- "width": 102.57,
+ "originalText": "家具",
+ "width": 103.8,
},
Object {
- "actualText": "2244",
+ "actualText": "办公用品",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 49,
"height": 30,
"multiLineActualTexts": Array [
- "2244",
+ "办公用品",
],
- "originalText": 2244,
- "width": 102.57,
+ "originalText": "办公用品",
+ "width": 103.8,
},
Object {
- "actualText": "2333",
+ "actualText": "办公用品",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 49,
"height": 30,
"multiLineActualTexts": Array [
- "2333",
+ "办公用品",
],
- "originalText": 2333,
- "width": 102.57,
+ "originalText": "办公用品",
+ "width": 103.8,
},
Object {
- "actualText": "2445",
+ "actualText": "办公用品",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 49,
"height": 30,
"multiLineActualTexts": Array [
- "2445",
+ "办公用品",
],
- "originalText": 2445,
- "width": 102.57,
+ "originalText": "办公用品",
+ "width": 103.8,
},
Object {
- "actualText": "-",
+ "actualText": "办公用品",
"actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualTextWidth": 49,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "办公用品",
],
- "originalText": "-",
- "width": 102.57,
+ "originalText": "办公用品",
+ "width": 103.8,
},
Object {
- "actualText": "-",
+ "actualText": "桌子",
"actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "桌子",
],
- "originalText": "-",
- "width": 102.57,
+ "originalText": "桌子",
+ "width": 103.8,
},
Object {
- "actualText": "-",
+ "actualText": "桌子桌子桌子...",
"actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualTextWidth": 83,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "桌子桌子桌子...",
],
- "originalText": "-",
- "width": 102.57,
+ "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "width": 103.8,
},
Object {
- "actualText": "-",
+ "actualText": "桌子",
"actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "桌子",
],
- "originalText": "-",
- "width": 102.57,
+ "originalText": "桌子",
+ "width": 103.8,
},
Object {
- "actualText": "7789778977897789778977897789",
- "actualTextHeight": 45,
- "actualTextWidth": 189,
- "height": 88,
+ "actualText": "桌子",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "778977897789",
- "778977897789",
- "7789",
+ "桌子",
],
- "originalText": "7789778977897789778977897789",
- "width": 102.57,
+ "originalText": "桌子",
+ "width": 103.8,
},
Object {
- "actualText": "-",
+ "actualText": "桌子",
"actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "桌子",
],
- "originalText": "-",
- "width": 102.57,
+ "originalText": "桌子",
+ "width": 103.8,
},
Object {
- "actualText": "-",
+ "actualText": "沙发",
"actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "沙发",
],
- "originalText": "-",
- "width": 102.57,
+ "originalText": "沙发",
+ "width": 103.8,
},
Object {
- "actualText": "-",
+ "actualText": "沙发",
"actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "沙发",
],
- "originalText": "-",
- "width": 102.57,
+ "originalText": "沙发",
+ "width": 103.8,
},
Object {
- "actualText": "-",
+ "actualText": "沙发",
"actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "沙发",
],
- "originalText": "-",
- "width": 102.57,
+ "originalText": "沙发",
+ "width": 103.8,
},
Object {
- "actualText": "1304",
+ "actualText": "沙发",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "1304",
+ "沙发",
],
- "originalText": 1304,
- "width": 102.57,
+ "originalText": "沙发",
+ "width": 103.8,
},
Object {
- "actualText": "1145",
+ "actualText": "笔",
"actualTextHeight": 15,
- "actualTextWidth": 26,
+ "actualTextWidth": 13,
"height": 30,
"multiLineActualTexts": Array [
- "1145",
+ "笔",
],
- "originalText": 1145,
- "width": 102.57,
+ "originalText": "笔",
+ "width": 103.8,
},
Object {
- "actualText": "1432",
+ "actualText": "笔",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 13,
"height": 30,
"multiLineActualTexts": Array [
- "1432",
+ "笔",
],
- "originalText": 1432,
- "width": 102.57,
+ "originalText": "笔",
+ "width": 103.8,
},
Object {
- "actualText": "945",
+ "actualText": "笔",
"actualTextHeight": 15,
- "actualTextWidth": 21,
+ "actualTextWidth": 13,
"height": 30,
"multiLineActualTexts": Array [
- "945",
+ "笔",
],
- "originalText": 945,
- "width": 102.57,
+ "originalText": "笔",
+ "width": 103.8,
},
Object {
- "actualText": "-",
+ "actualText": "笔",
"actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 88,
+ "actualTextWidth": 13,
+ "height": 30,
"multiLineActualTexts": Array [
- "-",
+ "笔",
],
- "originalText": "-",
- "width": 102.57,
+ "originalText": "笔",
+ "width": 103.8,
},
Object {
- "actualText": "2335",
+ "actualText": "23672367236...",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 84,
"height": 30,
"multiLineActualTexts": Array [
- "2335",
+ "23672367236...",
],
- "originalText": 2335,
- "width": 102.57,
+ "originalText": 236723672361111,
+ "width": 103.8,
},
Object {
- "actualText": "245",
+ "actualText": "77897789778...",
"actualTextHeight": 15,
- "actualTextWidth": 21,
+ "actualTextWidth": 84,
"height": 30,
"multiLineActualTexts": Array [
- "245",
+ "77897789778...",
],
- "originalText": 245,
- "width": 102.57,
+ "originalText": "7789778977897789778977897789",
+ "width": 103.8,
},
Object {
- "actualText": "2457",
+ "actualText": "23672367236...",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 84,
"height": 30,
"multiLineActualTexts": Array [
- "2457",
+ "23672367236...",
],
- "originalText": 2457,
- "width": 102.57,
+ "originalText": 236723672361111,
+ "width": 103.8,
},
Object {
- "actualText": "2458",
+ "actualText": "3877",
"actualTextHeight": 15,
"actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "2458",
+ "3877",
],
- "originalText": 2458,
- "width": 102.57,
+ "originalText": 3877,
+ "width": 103.8,
},
Object {
- "actualText": "1354",
+ "actualText": "4342",
"actualTextHeight": 15,
"actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "1354",
+ "4342",
],
- "originalText": 1354,
- "width": 102.57,
+ "originalText": 4342,
+ "width": 103.8,
},
Object {
- "actualText": "1523",
+ "actualText": "5343",
"actualTextHeight": 15,
"actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "1523",
+ "5343",
],
- "originalText": 1523,
- "width": 102.57,
+ "originalText": 5343,
+ "width": 103.8,
},
Object {
- "actualText": "1634",
+ "actualText": "632",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 21,
"height": 30,
"multiLineActualTexts": Array [
- "1634",
+ "632",
],
- "originalText": 1634,
- "width": 102.57,
+ "originalText": 632,
+ "width": 103.8,
},
Object {
- "actualText": "1343",
+ "actualText": "7234",
"actualTextHeight": 15,
"actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "1343",
+ "7234",
],
- "originalText": 1343,
- "width": 102.57,
+ "originalText": 7234,
+ "width": 103.8,
},
Object {
- "actualText": "-",
+ "actualText": "834",
"actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 88,
+ "actualTextWidth": 21,
+ "height": 30,
"multiLineActualTexts": Array [
- "-",
+ "834",
],
- "originalText": "-",
- "width": 102.57,
+ "originalText": 834,
+ "width": 103.8,
},
Object {
- "actualText": "4004",
+ "actualText": "945",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 21,
"height": 30,
"multiLineActualTexts": Array [
- "4004",
+ "945",
],
- "originalText": 4004,
- "width": 102.57,
+ "originalText": 945,
+ "width": 103.8,
},
Object {
- "actualText": "3077",
+ "actualText": "1304",
"actualTextHeight": 15,
"actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "3077",
+ "1304",
],
- "originalText": 3077,
- "width": 102.57,
+ "originalText": 1304,
+ "width": 103.8,
},
Object {
- "actualText": "3551",
+ "actualText": "1145",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 26,
"height": 30,
"multiLineActualTexts": Array [
- "3551",
+ "1145",
],
- "originalText": 3551,
- "width": 102.57,
+ "originalText": 1145,
+ "width": 103.8,
},
Object {
- "actualText": "352",
+ "actualText": "1432",
"actualTextHeight": 15,
- "actualTextWidth": 21,
+ "actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "352",
+ "1432",
],
- "originalText": 352,
- "width": 102.57,
+ "originalText": 1432,
+ "width": 103.8,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 1`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should 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": 72,
+ "height": 64,
"multiLineActualTexts": Array [
"序号",
],
@@ -10000,7 +20307,7 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 2`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 2`] = `
Array [
Object {
"actualText": "1",
@@ -10017,7 +20324,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 76,
+ "height": 61,
"multiLineActualTexts": Array [
"2",
],
@@ -10104,13 +20411,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 3`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 3`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 72,
+ "height": 64,
"multiLineActualTexts": Array [
"序号",
],
@@ -10118,69 +20425,72 @@ Array [
"width": 80,
},
Object {
- "actualText": "省份省份省份省份省份省份省份省份省份省份省份省份省份省...",
- "actualTextHeight": 64,
- "actualTextWidth": 338,
- "height": 72,
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 64,
"multiLineActualTexts": Array [
- "省份省份省份省",
- "份省份省份省份",
- "省份省份省份省",
- "份省份省份省...",
+ "省份",
],
- "originalText": "省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份",
+ "originalText": "省份",
"width": 103.8,
},
Object {
- "actualText": "city",
- "actualTextHeight": 16,
- "actualTextWidth": 21,
- "height": 72,
+ "actualText": "城市城市城市城市城市城市城市城市城市城市...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 253,
+ "height": 64,
"multiLineActualTexts": Array [
- "city",
+ "城市城市城市城",
+ "市城市城市城市",
+ "城市城市城市...",
],
- "originalText": "city",
+ "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
"width": 103.8,
},
Object {
- "actualText": "type",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 72,
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualTextHeight": 48,
+ "actualTextWidth": 243,
+ "height": 64,
"multiLineActualTexts": Array [
- "type",
+ "类别类别类别类",
+ "别类别类别类别",
+ "类别类别类别",
],
- "originalText": "type",
+ "originalText": "类别类别类别类别类别类别类别类别类别类别",
"width": 103.8,
},
Object {
- "actualText": "sub_type",
+ "actualText": "子类别",
"actualTextHeight": 16,
- "actualTextWidth": 53,
- "height": 72,
+ "actualTextWidth": 37,
+ "height": 64,
"multiLineActualTexts": Array [
- "sub_type",
+ "子类别",
],
- "originalText": "sub_type",
+ "originalText": "子类别",
"width": 103.8,
},
Object {
- "actualText": "number",
- "actualTextHeight": 16,
- "actualTextWidth": 45,
- "height": 72,
+ "actualText": "数量数量数量数量数量数量数量数量数量数量...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 253,
+ "height": 64,
"multiLineActualTexts": Array [
- "number",
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量...",
],
- "originalText": "number",
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
"width": 103.8,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 4`] = `Array []`;
+exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 4`] = `Array []`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 5`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 5`] = `
Array [
Object {
"actualText": "1",
@@ -10197,7 +20507,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 76,
+ "height": 61,
"multiLineActualTexts": Array [
"2",
],
@@ -10293,15 +20603,14 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...",
- "actualTextHeight": 60,
- "actualTextWidth": 338,
- "height": 76,
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 61,
"multiLineActualTexts": Array [
"浙江省浙江省浙",
"江省浙江省浙江",
- "省浙江省浙江省",
- "浙江省浙江省...",
+ "省浙江省浙江...",
],
"originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
"width": 103.8,
@@ -10395,15 +20704,14 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...",
- "actualTextHeight": 60,
- "actualTextWidth": 338,
- "height": 76,
+ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 61,
"multiLineActualTexts": Array [
"杭州市杭州市杭",
"州市杭州市杭州",
- "市杭州市杭州市",
- "杭州市杭州市...",
+ "市杭州市杭州...",
],
"originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
"width": 103.8,
@@ -10497,15 +20805,14 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
- "actualTextHeight": 60,
- "actualTextWidth": 340,
- "height": 76,
+ "actualText": "家具家具家具家具家具家具家具家具家具家具...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 61,
"multiLineActualTexts": Array [
"家具家具家具家",
"具家具家具家具",
- "家具家具家具家",
- "具家具家具家具",
+ "家具家具家具...",
],
"originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
"width": 103.8,
@@ -10599,15 +20906,14 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...",
- "actualTextHeight": 60,
- "actualTextWidth": 338,
- "height": 76,
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 61,
"multiLineActualTexts": Array [
"桌子桌子桌子桌",
"子桌子桌子桌子",
- "桌子桌子桌子桌",
- "子桌子桌子桌...",
+ "桌子桌子桌子...",
],
"originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
"width": 103.8,
@@ -10705,7 +21011,7 @@ Array [
"actualText": "7789778977897789778977897789",
"actualTextHeight": 45,
"actualTextWidth": 189,
- "height": 76,
+ "height": 61,
"multiLineActualTexts": Array [
"7789778977897",
"7897789778977",
@@ -10795,13 +21101,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 1`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should 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": 72,
+ "height": 64,
"multiLineActualTexts": Array [
"序号",
],
@@ -10811,7 +21117,7 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 2`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 2`] = `
Array [
Object {
"actualText": "1",
@@ -10828,7 +21134,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 76,
+ "height": 61,
"multiLineActualTexts": Array [
"2",
],
@@ -10915,13 +21221,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 3`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should 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": 72,
+ "height": 64,
"multiLineActualTexts": Array [
"序号",
],
@@ -10932,7 +21238,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 72,
+ "height": 64,
"multiLineActualTexts": Array [
"省份",
],
@@ -10940,15 +21246,14 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
- "actualTextHeight": 64,
- "actualTextWidth": 292,
- "height": 72,
+ "actualText": "城市城市城市城市城市城市城市城市城市城市...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 253,
+ "height": 64,
"multiLineActualTexts": Array [
"城市城市城市城",
"市城市城市城市",
- "城市城市城市城",
- "市城市",
+ "城市城市城市...",
],
"originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
"width": 103.8,
@@ -10957,7 +21262,7 @@ Array [
"actualText": "类别类别类别类别类别类别类别类别类别类别",
"actualTextHeight": 48,
"actualTextWidth": 243,
- "height": 72,
+ "height": 64,
"multiLineActualTexts": Array [
"类别类别类别类",
"别类别类别类别",
@@ -10970,7 +21275,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 72,
+ "height": 64,
"multiLineActualTexts": Array [
"子类别",
],
@@ -10978,15 +21283,14 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
- "actualTextHeight": 64,
- "actualTextWidth": 268,
- "height": 72,
+ "actualText": "数量数量数量数量数量数量数量数量数量数量...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 253,
+ "height": 64,
"multiLineActualTexts": Array [
"数量数量数量数",
"量数量数量数量",
- "数量数量数量数",
- "量",
+ "数量数量数量...",
],
"originalText": "数量数量数量数量数量数量数量数量数量数量数量",
"width": 103.8,
@@ -10994,9 +21298,9 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 4`] = `Array []`;
+exports[`SpreadSheet Multi Line Text Tests TableSheet should 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 calc correctly data cell height if actual text lines is difference 5`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 5`] = `
Array [
Object {
"actualText": "1",
@@ -11013,7 +21317,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 76,
+ "height": 61,
"multiLineActualTexts": Array [
"2",
],
@@ -11109,15 +21413,14 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...",
- "actualTextHeight": 60,
- "actualTextWidth": 338,
- "height": 76,
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 61,
"multiLineActualTexts": Array [
"浙江省浙江省浙",
"江省浙江省浙江",
- "省浙江省浙江省",
- "浙江省浙江省...",
+ "省浙江省浙江...",
],
"originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
"width": 103.8,
@@ -11211,15 +21514,14 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...",
- "actualTextHeight": 60,
- "actualTextWidth": 338,
- "height": 76,
+ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 61,
"multiLineActualTexts": Array [
"杭州市杭州市杭",
"州市杭州市杭州",
- "市杭州市杭州市",
- "杭州市杭州市...",
+ "市杭州市杭州...",
],
"originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
"width": 103.8,
@@ -11313,15 +21615,14 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
- "actualTextHeight": 60,
- "actualTextWidth": 340,
- "height": 76,
+ "actualText": "家具家具家具家具家具家具家具家具家具家具...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 61,
"multiLineActualTexts": Array [
"家具家具家具家",
"具家具家具家具",
- "家具家具家具家",
- "具家具家具家具",
+ "家具家具家具...",
],
"originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
"width": 103.8,
@@ -11415,15 +21716,14 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...",
- "actualTextHeight": 60,
- "actualTextWidth": 338,
- "height": 76,
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 61,
"multiLineActualTexts": Array [
"桌子桌子桌子桌",
"子桌子桌子桌子",
- "桌子桌子桌子桌",
- "子桌子桌子桌...",
+ "桌子桌子桌子...",
],
"originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
"width": 103.8,
@@ -11521,7 +21821,7 @@ Array [
"actualText": "7789778977897789778977897789",
"actualTextHeight": 45,
"actualTextWidth": 189,
- "height": 76,
+ "height": 61,
"multiLineActualTexts": Array [
"7789778977897",
"7897789778977",
@@ -11590,573 +21890,34 @@ Array [
"actualText": "7234",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 30,
- "multiLineActualTexts": Array [
- "7234",
- ],
- "originalText": 7234,
- "width": 103.8,
- },
- Object {
- "actualText": "834",
- "actualTextHeight": 15,
- "actualTextWidth": 21,
- "height": 30,
- "multiLineActualTexts": Array [
- "834",
- ],
- "originalText": 834,
- "width": 103.8,
- },
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 1`] = `
-Array [
- Object {
- "actualText": "序号",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 72,
- "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": 72,
- "multiLineActualTexts": Array [
- "序号",
- ],
- "originalText": "序号",
- "width": 80,
- },
- Object {
- "actualText": "省份",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 72,
- "multiLineActualTexts": Array [
- "省份",
- ],
- "originalText": "省份",
- "width": 103.8,
- },
- Object {
- "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
- "actualTextHeight": 64,
- "actualTextWidth": 292,
- "height": 72,
- "multiLineActualTexts": Array [
- "城市城市城市城",
- "市城市城市城市",
- "城市城市城市城",
- "市城市",
- ],
- "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
- "width": 103.8,
- },
- Object {
- "actualText": "类别类别类别类别类别类别类别类别类别类别",
- "actualTextHeight": 48,
- "actualTextWidth": 243,
- "height": 72,
- "multiLineActualTexts": Array [
- "类别类别类别类",
- "别类别类别类别",
- "类别类别类别",
- ],
- "originalText": "类别类别类别类别类别类别类别类别类别类别",
- "width": 103.8,
- },
- Object {
- "actualText": "子类别",
- "actualTextHeight": 16,
- "actualTextWidth": 37,
- "height": 72,
- "multiLineActualTexts": Array [
- "子类别",
- ],
- "originalText": "子类别",
- "width": 103.8,
- },
- Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
- "actualTextHeight": 64,
- "actualTextWidth": 268,
- "height": 72,
- "multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量数",
- "量",
- ],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 103.8,
- },
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 4`] = `Array []`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 5`] = `
-Array [
- Object {
- "actualText": "1",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 360,
- "multiLineActualTexts": Array [
- "1",
- ],
- "originalText": 1,
- "width": 80,
- },
- Object {
- "actualText": "浙江省",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 360,
- "multiLineActualTexts": Array [
- "浙江省",
- ],
- "originalText": "浙江省",
- "width": 103.8,
- },
- Object {
- "actualText": "绍兴市",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 360,
- "multiLineActualTexts": Array [
- "绍兴市",
- ],
- "originalText": "绍兴市",
- "width": 103.8,
- },
- Object {
- "actualText": "家具",
- "actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 360,
- "multiLineActualTexts": Array [
- "家具",
- ],
- "originalText": "家具",
- "width": 103.8,
- },
- Object {
- "actualText": "桌子",
- "actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 360,
- "multiLineActualTexts": Array [
- "桌子",
- ],
- "originalText": "桌子",
- "width": 103.8,
- },
- Object {
- "actualText": "236723672361111",
- "actualTextHeight": 30,
- "actualTextWidth": 100,
- "height": 360,
- "multiLineActualTexts": Array [
- "2367236723611",
- "11",
- ],
- "originalText": 236723672361111,
- "width": 103.8,
- },
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 6`] = `
-Array [
- 0,
- 360,
- 436,
- 482,
- 512,
- 542,
- 572,
- 602,
- 632,
- 662,
- 692,
- 722,
- 752,
- 782,
- 812,
- 842,
- 872,
- 902,
- 932,
- 962,
- 992,
- 1022,
- 1052,
- 1082,
- 1112,
- 1142,
- 1172,
- 1202,
- 1232,
- 1262,
- 1292,
- 1322,
- 1352,
- 1382,
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 1`] = `
-Array [
- Object {
- "actualText": "序号",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 72,
- "multiLineActualTexts": Array [
- "序号",
- ],
- "originalText": "序号",
- "width": 80,
- },
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 2`] = `
-Array [
- Object {
- "actualText": "1",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 300,
- "multiLineActualTexts": Array [
- "1",
- ],
- "originalText": 1,
- "width": 80,
- },
- Object {
- "actualText": "2",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 76,
- "multiLineActualTexts": Array [
- "2",
- ],
- "originalText": 2,
- "width": 80,
- },
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 3`] = `
-Array [
- Object {
- "actualText": "序号",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 72,
- "multiLineActualTexts": Array [
- "序号",
- ],
- "originalText": "序号",
- "width": 80,
- },
- Object {
- "actualText": "省份",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 72,
- "multiLineActualTexts": Array [
- "省份",
- ],
- "originalText": "省份",
- "width": 103.8,
- },
- Object {
- "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
- "actualTextHeight": 64,
- "actualTextWidth": 292,
- "height": 72,
- "multiLineActualTexts": Array [
- "城市城市城市城",
- "市城市城市城市",
- "城市城市城市城",
- "市城市",
- ],
- "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
- "width": 103.8,
- },
- Object {
- "actualText": "类别类别类别类别类别类别类别类别类别类别",
- "actualTextHeight": 48,
- "actualTextWidth": 243,
- "height": 72,
- "multiLineActualTexts": Array [
- "类别类别类别类",
- "别类别类别类别",
- "类别类别类别",
- ],
- "originalText": "类别类别类别类别类别类别类别类别类别类别",
- "width": 103.8,
- },
- Object {
- "actualText": "子类别",
- "actualTextHeight": 16,
- "actualTextWidth": 37,
- "height": 72,
- "multiLineActualTexts": Array [
- "子类别",
- ],
- "originalText": "子类别",
- "width": 103.8,
- },
- Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
- "actualTextHeight": 64,
- "actualTextWidth": 268,
- "height": 72,
- "multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量数",
- "量",
- ],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 103.8,
- },
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 4`] = `Array []`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 5`] = `
-Array [
- Object {
- "actualText": "1",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 300,
- "multiLineActualTexts": Array [
- "1",
- ],
- "originalText": 1,
- "width": 80,
- },
- Object {
- "actualText": "2",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 76,
- "multiLineActualTexts": Array [
- "2",
- ],
- "originalText": 2,
- "width": 80,
- },
- Object {
- "actualText": "浙江省",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 300,
- "multiLineActualTexts": Array [
- "浙江省",
- ],
- "originalText": "浙江省",
- "width": 103.8,
- },
- Object {
- "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...",
- "actualTextHeight": 60,
- "actualTextWidth": 338,
- "height": 76,
- "multiLineActualTexts": Array [
- "浙江省浙江省浙",
- "江省浙江省浙江",
- "省浙江省浙江省",
- "浙江省浙江省...",
- ],
- "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
- "width": 103.8,
- },
- Object {
- "actualText": "绍兴市",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 300,
- "multiLineActualTexts": Array [
- "绍兴市",
- ],
- "originalText": "绍兴市",
- "width": 103.8,
- },
- Object {
- "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...",
- "actualTextHeight": 60,
- "actualTextWidth": 338,
- "height": 76,
- "multiLineActualTexts": Array [
- "杭州市杭州市杭",
- "州市杭州市杭州",
- "市杭州市杭州市",
- "杭州市杭州市...",
- ],
- "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
- "width": 103.8,
- },
- Object {
- "actualText": "家具",
- "actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 300,
- "multiLineActualTexts": Array [
- "家具",
- ],
- "originalText": "家具",
- "width": 103.8,
- },
- Object {
- "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
- "actualTextHeight": 60,
- "actualTextWidth": 340,
- "height": 76,
- "multiLineActualTexts": Array [
- "家具家具家具家",
- "具家具家具家具",
- "家具家具家具家",
- "具家具家具家具",
- ],
- "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
- "width": 103.8,
- },
- Object {
- "actualText": "桌子",
- "actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 300,
- "multiLineActualTexts": Array [
- "桌子",
- ],
- "originalText": "桌子",
- "width": 103.8,
- },
- Object {
- "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...",
- "actualTextHeight": 60,
- "actualTextWidth": 338,
- "height": 76,
- "multiLineActualTexts": Array [
- "桌子桌子桌子桌",
- "子桌子桌子桌子",
- "桌子桌子桌子桌",
- "子桌子桌子桌...",
- ],
- "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
- "width": 103.8,
- },
- Object {
- "actualText": "236723672361111",
- "actualTextHeight": 30,
- "actualTextWidth": 100,
- "height": 300,
+ "height": 30,
"multiLineActualTexts": Array [
- "2367236723611",
- "11",
+ "7234",
],
- "originalText": 236723672361111,
+ "originalText": 7234,
"width": 103.8,
},
Object {
- "actualText": "7789778977897789778977897789",
- "actualTextHeight": 45,
- "actualTextWidth": 189,
- "height": 76,
+ "actualText": "834",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
"multiLineActualTexts": Array [
- "7789778977897",
- "7897789778977",
- "89",
+ "834",
],
- "originalText": "7789778977897789778977897789",
+ "originalText": 834,
"width": 103.8,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 6`] = `
-Array [
- 0,
- 300,
- 376,
- 422,
- 452,
- 482,
- 512,
- 542,
- 572,
- 602,
- 632,
- 662,
- 692,
- 722,
- 752,
- 782,
- 812,
- 842,
- 872,
- 902,
- 932,
- 962,
- 992,
- 1022,
- 1052,
- 1082,
- 1112,
- 1142,
- 1172,
- 1202,
- 1232,
- 1262,
- 1292,
- 1322,
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 1`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 1`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 20,
"multiLineActualTexts": Array [
"序号",
],
@@ -12166,13 +21927,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 2`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should 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",
],
@@ -12183,7 +21944,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"2",
],
@@ -12194,7 +21955,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 61,
+ "height": 30,
"multiLineActualTexts": Array [
"3",
],
@@ -12216,7 +21977,7 @@ Array [
"actualText": "5",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 100,
"multiLineActualTexts": Array [
"5",
],
@@ -12289,82 +22050,16 @@ Array [
"originalText": 11,
"width": 80,
},
- Object {
- "actualText": "12",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 30,
- "multiLineActualTexts": Array [
- "12",
- ],
- "originalText": 12,
- "width": 80,
- },
- Object {
- "actualText": "13",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 30,
- "multiLineActualTexts": Array [
- "13",
- ],
- "originalText": 13,
- "width": 80,
- },
- Object {
- "actualText": "14",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 30,
- "multiLineActualTexts": Array [
- "14",
- ],
- "originalText": 14,
- "width": 80,
- },
- Object {
- "actualText": "15",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 30,
- "multiLineActualTexts": Array [
- "15",
- ],
- "originalText": 15,
- "width": 80,
- },
- Object {
- "actualText": "16",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 30,
- "multiLineActualTexts": Array [
- "16",
- ],
- "originalText": 16,
- "width": 80,
- },
- Object {
- "actualText": "17",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 30,
- "multiLineActualTexts": Array [
- "17",
- ],
- "originalText": 17,
- "width": 80,
- },
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 3`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 3`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 20,
"multiLineActualTexts": Array [
"序号",
],
@@ -12372,77 +22067,72 @@ Array [
"width": 80,
},
Object {
- "actualText": "省份",
+ "actualText": "province",
"actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 56,
+ "actualTextWidth": 51,
+ "height": 20,
"multiLineActualTexts": Array [
- "省份",
+ "province",
],
- "originalText": "省份",
- "width": 143.8,
+ "originalText": "province",
+ "width": 103.8,
},
Object {
- "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
- "actualTextHeight": 48,
- "actualTextWidth": 291,
- "height": 56,
+ "actualText": "city",
+ "actualTextHeight": 16,
+ "actualTextWidth": 21,
+ "height": 20,
"multiLineActualTexts": Array [
- "城市城市城市城市城市",
- "城市城市城市城市城市",
- "城市城市",
+ "city",
],
- "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
- "width": 143.8,
+ "originalText": "city",
+ "width": 103.8,
},
Object {
- "actualText": "类别类别类别类别类别类别类别类别类别类别",
- "actualTextHeight": 32,
- "actualTextWidth": 242,
- "height": 56,
+ "actualText": "type",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 20,
"multiLineActualTexts": Array [
- "类别类别类别类别类别",
- "类别类别类别类别类别",
+ "type",
],
- "originalText": "类别类别类别类别类别类别类别类别类别类别",
- "width": 143.8,
+ "originalText": "type",
+ "width": 103.8,
},
Object {
- "actualText": "子类别",
+ "actualText": "sub_type",
"actualTextHeight": 16,
- "actualTextWidth": 37,
- "height": 56,
+ "actualTextWidth": 53,
+ "height": 20,
"multiLineActualTexts": Array [
- "子类别",
+ "sub_type",
],
- "originalText": "子类别",
- "width": 143.8,
+ "originalText": "sub_type",
+ "width": 103.8,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
- "actualTextHeight": 48,
- "actualTextWidth": 267,
- "height": 56,
+ "actualText": "number",
+ "actualTextHeight": 16,
+ "actualTextWidth": 45,
+ "height": 20,
"multiLineActualTexts": Array [
- "数量数量数量数量数量",
- "数量数量数量数量数量",
- "数量",
+ "number",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 143.8,
+ "originalText": "number",
+ "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 get correctly cell height priority if actual text not wrap 4`] = `Array []`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly row cell height if actual text lines is difference 5`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should 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",
],
@@ -12453,7 +22143,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"2",
],
@@ -12464,7 +22154,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 61,
+ "height": 30,
"multiLineActualTexts": Array [
"3",
],
@@ -12486,7 +22176,7 @@ Array [
"actualText": "5",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 100,
"multiLineActualTexts": Array [
"5",
],
@@ -12559,141 +22249,6 @@ Array [
"originalText": 11,
"width": 80,
},
- Object {
- "actualText": "12",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 30,
- "multiLineActualTexts": Array [
- "12",
- ],
- "originalText": 12,
- "width": 80,
- },
- Object {
- "actualText": "13",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 30,
- "multiLineActualTexts": Array [
- "13",
- ],
- "originalText": 13,
- "width": 80,
- },
- Object {
- "actualText": "14",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 30,
- "multiLineActualTexts": Array [
- "14",
- ],
- "originalText": 14,
- "width": 80,
- },
- Object {
- "actualText": "15",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 30,
- "multiLineActualTexts": Array [
- "15",
- ],
- "originalText": 15,
- "width": 80,
- },
- Object {
- "actualText": "16",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 30,
- "multiLineActualTexts": Array [
- "16",
- ],
- "originalText": 16,
- "width": 80,
- },
- Object {
- "actualText": "17",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 30,
- "multiLineActualTexts": Array [
- "17",
- ],
- "originalText": 17,
- "width": 80,
- },
- Object {
- "actualText": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江",
- "actualTextHeight": 30,
- "actualTextWidth": 242,
- "height": 46,
- "multiLineActualTexts": Array [
- "浙江浙江浙江浙江浙江",
- "浙江浙江浙江浙江浙江",
- ],
- "originalText": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江",
- "width": 143.8,
- },
- Object {
- "actualText": "浙江省",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
- "multiLineActualTexts": Array [
- "浙江省",
- ],
- "originalText": "浙江省",
- "width": 143.8,
- },
- Object {
- "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
- "actualTextHeight": 45,
- "actualTextWidth": 363,
- "height": 61,
- "multiLineActualTexts": Array [
- "浙江省浙江省浙江省浙",
- "江省浙江省浙江省浙江",
- "省浙江省浙江省浙江省",
- ],
- "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
- "width": 143.8,
- },
- Object {
- "actualText": "浙江省",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
- "multiLineActualTexts": Array [
- "浙江省",
- ],
- "originalText": "浙江省",
- "width": 143.8,
- },
- Object {
- "actualText": "浙江省",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
- "multiLineActualTexts": Array [
- "浙江省",
- ],
- "originalText": "浙江省",
- "width": 143.8,
- },
- Object {
- "actualText": "浙江省",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
- "multiLineActualTexts": Array [
- "浙江省",
- ],
- "originalText": "浙江省",
- "width": 143.8,
- },
Object {
"actualText": "浙江省",
"actualTextHeight": 15,
@@ -12703,18 +22258,18 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "浙江省",
@@ -12725,7 +22280,7 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "浙江省",
@@ -12736,18 +22291,18 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 100,
"multiLineActualTexts": Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "浙江省",
@@ -12758,7 +22313,7 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "浙江省",
@@ -12769,7 +22324,7 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "浙江省",
@@ -12780,7 +22335,7 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "浙江省",
@@ -12791,7 +22346,7 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "浙江省",
@@ -12802,7 +22357,7 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "浙江省",
@@ -12813,97 +22368,7 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 143.8,
- },
- Object {
- "actualText": "杭州杭州杭州杭州",
- "actualTextHeight": 15,
- "actualTextWidth": 97,
- "height": 46,
- "multiLineActualTexts": Array [
- "杭州杭州杭州杭州",
- ],
- "originalText": "杭州杭州杭州杭州",
- "width": 143.8,
- },
- Object {
- "actualText": "绍兴市",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
- "multiLineActualTexts": Array [
- "绍兴市",
- ],
- "originalText": "绍兴市",
- "width": 143.8,
- },
- Object {
- "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
- "actualTextHeight": 45,
- "actualTextWidth": 363,
- "height": 61,
- "multiLineActualTexts": Array [
- "杭州市杭州市杭州市杭",
- "州市杭州市杭州市杭州",
- "市杭州市杭州市杭州市",
- ],
- "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,
+ "width": 103.8,
},
Object {
"actualText": "宁波市",
@@ -12914,18 +22379,18 @@ Array [
"宁波市",
],
"originalText": "宁波市",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "舟山市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"舟山市",
],
"originalText": "舟山市",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "杭州市",
@@ -12936,7 +22401,7 @@ Array [
"杭州市",
],
"originalText": "杭州市",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "绍兴市",
@@ -12947,18 +22412,18 @@ Array [
"绍兴市",
],
"originalText": "绍兴市",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "宁波市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 100,
"multiLineActualTexts": Array [
"宁波市",
],
"originalText": "宁波市",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "舟山市",
@@ -12969,7 +22434,7 @@ Array [
"舟山市",
],
"originalText": "舟山市",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "杭州市",
@@ -12980,7 +22445,7 @@ Array [
"杭州市",
],
"originalText": "杭州市",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "绍兴市",
@@ -12991,7 +22456,7 @@ Array [
"绍兴市",
],
"originalText": "绍兴市",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "宁波市",
@@ -12999,56 +22464,32 @@ Array [
"actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "宁波市",
- ],
- "originalText": "宁波市",
- "width": 143.8,
- },
- Object {
- "actualText": "纸张纸张纸张纸张纸张",
- "actualTextHeight": 15,
- "actualTextWidth": 121,
- "height": 46,
- "multiLineActualTexts": Array [
- "纸张纸张纸张纸张纸张",
- ],
- "originalText": "纸张纸张纸张纸张纸张",
- "width": 143.8,
- },
- Object {
- "actualText": "家具",
- "actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
- "multiLineActualTexts": Array [
- "家具",
+ "宁波市",
],
- "originalText": "家具",
- "width": 143.8,
+ "originalText": "宁波市",
+ "width": 103.8,
},
Object {
- "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
- "actualTextHeight": 45,
- "actualTextWidth": 339,
- "height": 61,
+ "actualText": "舟山市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "家具家具家具家具家具",
- "家具家具家具家具家具",
- "家具家具家具家具",
+ "舟山市",
],
- "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
- "width": 143.8,
+ "originalText": "舟山市",
+ "width": 103.8,
},
Object {
- "actualText": "家具",
+ "actualText": "杭州市",
"actualTextHeight": 15,
- "actualTextWidth": 25,
+ "actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "家具",
+ "杭州市",
],
- "originalText": "家具",
- "width": 143.8,
+ "originalText": "杭州市",
+ "width": 103.8,
},
Object {
"actualText": "家具",
@@ -13059,18 +22500,18 @@ Array [
"家具",
],
"originalText": "家具",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "家具",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"家具",
],
"originalText": "家具",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "家具",
@@ -13081,7 +22522,7 @@ Array [
"家具",
],
"originalText": "家具",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "家具",
@@ -13092,18 +22533,18 @@ Array [
"家具",
],
"originalText": "家具",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "家具",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 30,
+ "height": 100,
"multiLineActualTexts": Array [
"家具",
],
"originalText": "家具",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "家具",
@@ -13114,29 +22555,7 @@ Array [
"家具",
],
"originalText": "家具",
- "width": 143.8,
- },
- Object {
- "actualText": "办公用品",
- "actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 30,
- "multiLineActualTexts": Array [
- "办公用品",
- ],
- "originalText": "办公用品",
- "width": 143.8,
- },
- Object {
- "actualText": "办公用品",
- "actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 30,
- "multiLineActualTexts": Array [
- "办公用品",
- ],
- "originalText": "办公用品",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "办公用品",
@@ -13147,7 +22566,7 @@ Array [
"办公用品",
],
"originalText": "办公用品",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "办公用品",
@@ -13158,7 +22577,7 @@ Array [
"办公用品",
],
"originalText": "办公用品",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "办公用品",
@@ -13169,7 +22588,7 @@ Array [
"办公用品",
],
"originalText": "办公用品",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "办公用品",
@@ -13180,7 +22599,7 @@ Array [
"办公用品",
],
"originalText": "办公用品",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "办公用品",
@@ -13191,53 +22610,7 @@ Array [
"办公用品",
],
"originalText": "办公用品",
- "width": 143.8,
- },
- Object {
- "actualText": "-",
- "actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 46,
- "multiLineActualTexts": Array [
- "-",
- ],
- "originalText": "-",
- "width": 143.8,
- },
- Object {
- "actualText": "桌子",
- "actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
- "multiLineActualTexts": Array [
- "桌子",
- ],
- "originalText": "桌子",
- "width": 143.8,
- },
- Object {
- "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
- "actualTextHeight": 45,
- "actualTextWidth": 363,
- "height": 61,
- "multiLineActualTexts": Array [
- "桌子桌子桌子桌子桌子",
- "桌子桌子桌子桌子桌子",
- "桌子桌子桌子桌子桌子",
- ],
- "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
- "width": 143.8,
- },
- Object {
- "actualText": "桌子",
- "actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
- "multiLineActualTexts": Array [
- "桌子",
- ],
- "originalText": "桌子",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "桌子",
@@ -13248,18 +22621,18 @@ Array [
"桌子",
],
"originalText": "桌子",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "桌子",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"桌子",
],
"originalText": "桌子",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "沙发",
@@ -13270,7 +22643,7 @@ Array [
"沙发",
],
"originalText": "沙发",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "沙发",
@@ -13281,18 +22654,18 @@ Array [
"沙发",
],
"originalText": "沙发",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "沙发",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 30,
+ "height": 100,
"multiLineActualTexts": Array [
"沙发",
],
"originalText": "沙发",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "沙发",
@@ -13303,7 +22676,7 @@ Array [
"沙发",
],
"originalText": "沙发",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "笔",
@@ -13314,7 +22687,7 @@ Array [
"笔",
],
"originalText": "笔",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "笔",
@@ -13325,7 +22698,7 @@ Array [
"笔",
],
"originalText": "笔",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "笔",
@@ -13336,7 +22709,7 @@ Array [
"笔",
],
"originalText": "笔",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "笔",
@@ -13347,29 +22720,7 @@ Array [
"笔",
],
"originalText": "笔",
- "width": 143.8,
- },
- Object {
- "actualText": "纸张",
- "actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
- "multiLineActualTexts": Array [
- "纸张",
- ],
- "originalText": "纸张",
- "width": 143.8,
- },
- Object {
- "actualText": "纸张",
- "actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
- "multiLineActualTexts": Array [
- "纸张",
- ],
- "originalText": "纸张",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "纸张",
@@ -13380,52 +22731,7 @@ Array [
"纸张",
],
"originalText": "纸张",
- "width": 143.8,
- },
- Object {
- "actualText": "-",
- "actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 46,
- "multiLineActualTexts": Array [
- "-",
- ],
- "originalText": "-",
- "width": 143.8,
- },
- Object {
- "actualText": "236723672361111",
- "actualTextHeight": 15,
- "actualTextWidth": 98,
- "height": 30,
- "multiLineActualTexts": Array [
- "236723672361111",
- ],
- "originalText": 236723672361111,
- "width": 143.8,
- },
- Object {
- "actualText": "7789778977897789778977897789",
- "actualTextHeight": 30,
- "actualTextWidth": 188,
- "height": 61,
- "multiLineActualTexts": Array [
- "7789778977897789778",
- "977897789",
- ],
- "originalText": "7789778977897789778977897789",
- "width": 143.8,
- },
- Object {
- "actualText": "236723672361111",
- "actualTextHeight": 15,
- "actualTextWidth": 98,
- "height": 30,
- "multiLineActualTexts": Array [
- "236723672361111",
- ],
- "originalText": 236723672361111,
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "3877",
@@ -13436,18 +22742,18 @@ Array [
"3877",
],
"originalText": 3877,
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "4342",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"4342",
],
"originalText": 4342,
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "5343",
@@ -13458,7 +22764,7 @@ Array [
"5343",
],
"originalText": 5343,
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "632",
@@ -13469,18 +22775,18 @@ Array [
"632",
],
"originalText": 632,
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "7234",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 30,
+ "height": 100,
"multiLineActualTexts": Array [
"7234",
],
"originalText": 7234,
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "834",
@@ -13491,7 +22797,7 @@ Array [
"834",
],
"originalText": 834,
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "945",
@@ -13502,7 +22808,7 @@ Array [
"945",
],
"originalText": 945,
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "1304",
@@ -13513,7 +22819,7 @@ Array [
"1304",
],
"originalText": 1304,
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "1145",
@@ -13524,7 +22830,7 @@ Array [
"1145",
],
"originalText": 1145,
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "1432",
@@ -13535,7 +22841,7 @@ Array [
"1432",
],
"originalText": 1432,
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "1343",
@@ -13546,40 +22852,18 @@ Array [
"1343",
],
"originalText": 1343,
- "width": 143.8,
- },
- Object {
- "actualText": "1354",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 30,
- "multiLineActualTexts": Array [
- "1354",
- ],
- "originalText": 1354,
- "width": 143.8,
- },
- Object {
- "actualText": "1523",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 30,
- "multiLineActualTexts": Array [
- "1523",
- ],
- "originalText": 1523,
- "width": 143.8,
+ "width": 103.8,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 1`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 1`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 30,
+ "height": 70,
"multiLineActualTexts": Array [
"序号",
],
@@ -13589,13 +22873,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 2`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 2`] = `
Array [
Object {
"actualText": "1",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 70,
"multiLineActualTexts": Array [
"1",
],
@@ -13606,7 +22890,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 100,
"multiLineActualTexts": Array [
"2",
],
@@ -13617,7 +22901,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 46,
"multiLineActualTexts": Array [
"3",
],
@@ -13668,82 +22952,16 @@ Array [
"originalText": 7,
"width": 80,
},
- Object {
- "actualText": "8",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
- "multiLineActualTexts": Array [
- "8",
- ],
- "originalText": 8,
- "width": 80,
- },
- Object {
- "actualText": "9",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
- "multiLineActualTexts": Array [
- "9",
- ],
- "originalText": 9,
- "width": 80,
- },
- Object {
- "actualText": "10",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 30,
- "multiLineActualTexts": Array [
- "10",
- ],
- "originalText": 10,
- "width": 80,
- },
- Object {
- "actualText": "11",
- "actualTextHeight": 15,
- "actualTextWidth": 13,
- "height": 30,
- "multiLineActualTexts": Array [
- "11",
- ],
- "originalText": 11,
- "width": 80,
- },
- Object {
- "actualText": "12",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 30,
- "multiLineActualTexts": Array [
- "12",
- ],
- "originalText": 12,
- "width": 80,
- },
- Object {
- "actualText": "13",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 30,
- "multiLineActualTexts": Array [
- "13",
- ],
- "originalText": 13,
- "width": 80,
- },
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 3`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 3`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 30,
+ "height": 70,
"multiLineActualTexts": Array [
"序号",
],
@@ -13754,7 +22972,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 30,
+ "height": 70,
"multiLineActualTexts": Array [
"省份",
],
@@ -13762,270 +22980,144 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "城市城市城市...",
- "actualTextHeight": 16,
- "actualTextWidth": 83,
- "height": 30,
+ "actualText": "城市城市城市城市城市城市城市城市城市城市...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 253,
+ "height": 70,
"multiLineActualTexts": Array [
+ "城市城市城市城",
+ "市城市城市城市",
"城市城市城市...",
],
"originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
"width": 103.8,
},
Object {
- "actualText": "类别类别类别...",
- "actualTextHeight": 16,
- "actualTextWidth": 83,
- "height": 30,
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualTextHeight": 48,
+ "actualTextWidth": 243,
+ "height": 70,
"multiLineActualTexts": Array [
- "类别类别类别...",
+ "类别类别类别类",
+ "别类别类别类别",
+ "类别类别类别",
],
"originalText": "类别类别类别类别类别类别类别类别类别类别",
"width": 103.8,
},
Object {
- "actualText": "子类别",
- "actualTextHeight": 16,
- "actualTextWidth": 37,
- "height": 30,
- "multiLineActualTexts": Array [
- "子类别",
- ],
- "originalText": "子类别",
- "width": 103.8,
- },
- Object {
- "actualText": "数量数量数量...",
- "actualTextHeight": 16,
- "actualTextWidth": 83,
- "height": 30,
- "multiLineActualTexts": Array [
- "数量数量数量...",
- ],
- "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": "1",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
- "multiLineActualTexts": Array [
- "1",
- ],
- "originalText": 1,
- "width": 80,
- },
- Object {
- "actualText": "2",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
- "multiLineActualTexts": Array [
- "2",
- ],
- "originalText": 2,
- "width": 80,
- },
- Object {
- "actualText": "3",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
- "multiLineActualTexts": Array [
- "3",
- ],
- "originalText": 3,
- "width": 80,
- },
- Object {
- "actualText": "4",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
- "multiLineActualTexts": Array [
- "4",
- ],
- "originalText": 4,
- "width": 80,
- },
- Object {
- "actualText": "5",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
- "multiLineActualTexts": Array [
- "5",
- ],
- "originalText": 5,
- "width": 80,
- },
- Object {
- "actualText": "6",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
- "multiLineActualTexts": Array [
- "6",
- ],
- "originalText": 6,
- "width": 80,
- },
- Object {
- "actualText": "7",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
- "multiLineActualTexts": Array [
- "7",
- ],
- "originalText": 7,
- "width": 80,
- },
- Object {
- "actualText": "8",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
- "multiLineActualTexts": Array [
- "8",
- ],
- "originalText": 8,
- "width": 80,
- },
- Object {
- "actualText": "9",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
- "multiLineActualTexts": Array [
- "9",
- ],
- "originalText": 9,
- "width": 80,
- },
- Object {
- "actualText": "10",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 30,
- "multiLineActualTexts": Array [
- "10",
- ],
- "originalText": 10,
- "width": 80,
- },
- Object {
- "actualText": "11",
- "actualTextHeight": 15,
- "actualTextWidth": 13,
- "height": 30,
+ "actualText": "子类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 70,
"multiLineActualTexts": Array [
- "11",
+ "子类别",
],
- "originalText": 11,
- "width": 80,
+ "originalText": "子类别",
+ "width": 103.8,
},
Object {
- "actualText": "12",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 30,
+ "actualText": "数量数量数量数量数量数量数量数量数量数量...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 253,
+ "height": 70,
"multiLineActualTexts": Array [
- "12",
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量...",
],
- "originalText": 12,
- "width": 80,
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 103.8,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 4`] = `Array []`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 5`] = `
+Array [
Object {
- "actualText": "13",
+ "actualText": "1",
"actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 30,
+ "actualTextWidth": 7,
+ "height": 70,
"multiLineActualTexts": Array [
- "13",
+ "1",
],
- "originalText": 13,
+ "originalText": 1,
"width": 80,
},
Object {
- "actualText": "浙江省",
+ "actualText": "2",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
+ "actualTextWidth": 7,
+ "height": 100,
"multiLineActualTexts": Array [
- "浙江省",
+ "2",
],
- "originalText": "浙江省",
- "width": 103.8,
+ "originalText": 2,
+ "width": 80,
},
Object {
- "actualText": "浙江省浙江省...",
+ "actualText": "3",
"actualTextHeight": 15,
- "actualTextWidth": 83,
- "height": 30,
+ "actualTextWidth": 7,
+ "height": 46,
"multiLineActualTexts": Array [
- "浙江省浙江省...",
+ "3",
],
- "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
- "width": 103.8,
+ "originalText": 3,
+ "width": 80,
},
Object {
- "actualText": "浙江省",
+ "actualText": "4",
"actualTextHeight": 15,
- "actualTextWidth": 37,
+ "actualTextWidth": 7,
"height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "4",
],
- "originalText": "浙江省",
- "width": 103.8,
+ "originalText": 4,
+ "width": 80,
},
Object {
- "actualText": "浙江省",
+ "actualText": "5",
"actualTextHeight": 15,
- "actualTextWidth": 37,
+ "actualTextWidth": 7,
"height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "5",
],
- "originalText": "浙江省",
- "width": 103.8,
+ "originalText": 5,
+ "width": 80,
},
Object {
- "actualText": "浙江省",
+ "actualText": "6",
"actualTextHeight": 15,
- "actualTextWidth": 37,
+ "actualTextWidth": 7,
"height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "6",
],
- "originalText": "浙江省",
- "width": 103.8,
+ "originalText": 6,
+ "width": 80,
},
Object {
- "actualText": "浙江省",
+ "actualText": "7",
"actualTextHeight": 15,
- "actualTextWidth": 37,
+ "actualTextWidth": 7,
"height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "7",
],
- "originalText": "浙江省",
- "width": 103.8,
+ "originalText": 7,
+ "width": 80,
},
Object {
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 70,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -14033,21 +23125,25 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "浙江省",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "actualTextHeight": 75,
+ "actualTextWidth": 365,
+ "height": 100,
"multiLineActualTexts": Array [
- "浙江省",
+ "浙江省浙江省浙",
+ "江省浙江省浙江",
+ "省浙江省浙江省",
+ "浙江省浙江省浙",
+ "江省",
],
- "originalText": "浙江省",
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
"width": 103.8,
},
Object {
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 46,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -14102,7 +23198,7 @@ Array [
"actualText": "绍兴市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 70,
"multiLineActualTexts": Array [
"绍兴市",
],
@@ -14110,12 +23206,16 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "杭州市杭州市...",
- "actualTextHeight": 15,
- "actualTextWidth": 83,
- "height": 30,
+ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "actualTextHeight": 75,
+ "actualTextWidth": 365,
+ "height": 100,
"multiLineActualTexts": Array [
- "杭州市杭州市...",
+ "杭州市杭州市杭",
+ "州市杭州市杭州",
+ "市杭州市杭州市",
+ "杭州市杭州市杭",
+ "州市",
],
"originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
"width": 103.8,
@@ -14124,51 +23224,7 @@ Array [
"actualText": "绍兴市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
- "multiLineActualTexts": Array [
- "绍兴市",
- ],
- "originalText": "绍兴市",
- "width": 103.8,
- },
- Object {
- "actualText": "宁波市",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
- "multiLineActualTexts": Array [
- "宁波市",
- ],
- "originalText": "宁波市",
- "width": 103.8,
- },
- Object {
- "actualText": "舟山市",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
- "multiLineActualTexts": Array [
- "舟山市",
- ],
- "originalText": "舟山市",
- "width": 103.8,
- },
- Object {
- "actualText": "杭州市",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
- "multiLineActualTexts": Array [
- "杭州市",
- ],
- "originalText": "杭州市",
- "width": 103.8,
- },
- Object {
- "actualText": "绍兴市",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
+ "height": 46,
"multiLineActualTexts": Array [
"绍兴市",
],
@@ -14219,33 +23275,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": 30,
+ "height": 70,
"multiLineActualTexts": Array [
"家具",
],
@@ -14253,12 +23287,15 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "家具家具家具...",
- "actualTextHeight": 15,
- "actualTextWidth": 83,
- "height": 30,
+ "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "actualTextHeight": 60,
+ "actualTextWidth": 340,
+ "height": 100,
"multiLineActualTexts": Array [
- "家具家具家具...",
+ "家具家具家具家",
+ "具家具家具家具",
+ "家具家具家具家",
+ "具家具家具家具",
],
"originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
"width": 103.8,
@@ -14267,29 +23304,7 @@ Array [
"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,
+ "height": 46,
"multiLineActualTexts": Array [
"家具",
],
@@ -14340,55 +23355,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": 70,
"multiLineActualTexts": Array [
"桌子",
],
@@ -14396,12 +23367,16 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "桌子桌子桌子...",
- "actualTextHeight": 15,
- "actualTextWidth": 83,
- "height": 30,
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "actualTextHeight": 75,
+ "actualTextWidth": 365,
+ "height": 100,
"multiLineActualTexts": Array [
- "桌子桌子桌子...",
+ "桌子桌子桌子桌",
+ "子桌子桌子桌子",
+ "桌子桌子桌子桌",
+ "子桌子桌子桌子",
+ "桌子",
],
"originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
"width": 103.8,
@@ -14410,7 +23385,7 @@ Array [
"actualText": "桌子",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 30,
+ "height": 46,
"multiLineActualTexts": Array [
"桌子",
],
@@ -14462,100 +23437,38 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "沙发",
- "actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
- "multiLineActualTexts": Array [
- "沙发",
- ],
- "originalText": "沙发",
- "width": 103.8,
- },
- Object {
- "actualText": "沙发",
- "actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
- "multiLineActualTexts": Array [
- "沙发",
- ],
- "originalText": "沙发",
- "width": 103.8,
- },
- Object {
- "actualText": "笔",
- "actualTextHeight": 15,
- "actualTextWidth": 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": 70,
"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": 100,
"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,
@@ -14604,82 +23517,16 @@ Array [
"originalText": 632,
"width": 103.8,
},
- Object {
- "actualText": "7234",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 30,
- "multiLineActualTexts": Array [
- "7234",
- ],
- "originalText": 7234,
- "width": 103.8,
- },
- Object {
- "actualText": "834",
- "actualTextHeight": 15,
- "actualTextWidth": 21,
- "height": 30,
- "multiLineActualTexts": Array [
- "834",
- ],
- "originalText": 834,
- "width": 103.8,
- },
- Object {
- "actualText": "945",
- "actualTextHeight": 15,
- "actualTextWidth": 21,
- "height": 30,
- "multiLineActualTexts": Array [
- "945",
- ],
- "originalText": 945,
- "width": 103.8,
- },
- Object {
- "actualText": "1304",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 30,
- "multiLineActualTexts": Array [
- "1304",
- ],
- "originalText": 1304,
- "width": 103.8,
- },
- Object {
- "actualText": "1145",
- "actualTextHeight": 15,
- "actualTextWidth": 26,
- "height": 30,
- "multiLineActualTexts": Array [
- "1145",
- ],
- "originalText": 1145,
- "width": 103.8,
- },
- Object {
- "actualText": "1432",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 30,
- "multiLineActualTexts": Array [
- "1432",
- ],
- "originalText": 1432,
- "width": 103.8,
- },
]
`;
-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 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": 56,
+ "height": 100,
"multiLineActualTexts": Array [
"序号",
],
@@ -14689,7 +23536,7 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 2`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 2`] = `
Array [
Object {
"actualText": "1",
@@ -14706,7 +23553,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 61,
+ "height": 76,
"multiLineActualTexts": Array [
"2",
],
@@ -14776,41 +23623,19 @@ Array [
"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,
+ "originalText": 8,
"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 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": 56,
+ "height": 100,
"multiLineActualTexts": Array [
"序号",
],
@@ -14821,7 +23646,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 100,
"multiLineActualTexts": Array [
"省份",
],
@@ -14829,27 +23654,27 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "城市城市城市城市城市城市城市城市城市城市...",
- "actualTextHeight": 48,
- "actualTextWidth": 253,
- "height": 56,
+ "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "actualTextHeight": 64,
+ "actualTextWidth": 292,
+ "height": 100,
"multiLineActualTexts": Array [
"城市城市城市城",
"市城市城市城市",
- "城市城市城市...",
+ "城市城市城市城",
+ "市城市",
],
"originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
"width": 103.8,
},
Object {
- "actualText": "类别类别类别类别类别类别类别类别类别类别",
- "actualTextHeight": 48,
- "actualTextWidth": 243,
- "height": 56,
+ "actualText": "类别类别类别类别类别类别类...",
+ "actualTextHeight": 32,
+ "actualTextWidth": 168,
+ "height": 50,
"multiLineActualTexts": Array [
"类别类别类别类",
- "别类别类别类别",
- "类别类别类别",
+ "别类别类别类...",
],
"originalText": "类别类别类别类别类别类别类别类别类别类别",
"width": 103.8,
@@ -14858,7 +23683,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 56,
+ "height": 100,
"multiLineActualTexts": Array [
"子类别",
],
@@ -14866,14 +23691,15 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量...",
- "actualTextHeight": 48,
- "actualTextWidth": 253,
- "height": 56,
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 64,
+ "actualTextWidth": 268,
+ "height": 100,
"multiLineActualTexts": Array [
"数量数量数量数",
"量数量数量数量",
- "数量数量数量...",
+ "数量数量数量数",
+ "量",
],
"originalText": "数量数量数量数量数量数量数量数量数量数量数量",
"width": 103.8,
@@ -14881,9 +23707,9 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 4`] = `Array []`;
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 4`] = `Array []`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 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",
@@ -14900,7 +23726,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 61,
+ "height": 76,
"multiLineActualTexts": Array [
"2",
],
@@ -14973,28 +23799,6 @@ 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": "浙江省",
"actualTextHeight": 15,
@@ -15007,14 +23811,15 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 61,
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...",
+ "actualTextHeight": 60,
+ "actualTextWidth": 338,
+ "height": 76,
"multiLineActualTexts": Array [
"浙江省浙江省浙",
"江省浙江省浙江",
- "省浙江省浙江...",
+ "省浙江省浙江省",
+ "浙江省浙江省...",
],
"originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
"width": 103.8,
@@ -15085,28 +23890,6 @@ 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,
@@ -15119,14 +23902,15 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 61,
+ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...",
+ "actualTextHeight": 60,
+ "actualTextWidth": 338,
+ "height": 76,
"multiLineActualTexts": Array [
"杭州市杭州市杭",
"州市杭州市杭州",
- "市杭州市杭州...",
+ "市杭州市杭州市",
+ "杭州市杭州市...",
],
"originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
"width": 103.8,
@@ -15197,28 +23981,6 @@ 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,
@@ -15231,14 +23993,15 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "家具家具家具家具家具家具家具家具家具家具...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 61,
+ "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "actualTextHeight": 60,
+ "actualTextWidth": 340,
+ "height": 76,
"multiLineActualTexts": Array [
"家具家具家具家",
"具家具家具家具",
- "家具家具家具...",
+ "家具家具家具家",
+ "具家具家具家具",
],
"originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
"width": 103.8,
@@ -15309,28 +24072,6 @@ Array [
"originalText": "家具",
"width": 103.8,
},
- Object {
- "actualText": "家具",
- "actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
- "multiLineActualTexts": Array [
- "家具",
- ],
- "originalText": "家具",
- "width": 103.8,
- },
- Object {
- "actualText": "办公用品",
- "actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 30,
- "multiLineActualTexts": Array [
- "办公用品",
- ],
- "originalText": "办公用品",
- "width": 103.8,
- },
Object {
"actualText": "桌子",
"actualTextHeight": 15,
@@ -15343,14 +24084,15 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 61,
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...",
+ "actualTextHeight": 60,
+ "actualTextWidth": 338,
+ "height": 76,
"multiLineActualTexts": Array [
"桌子桌子桌子桌",
"子桌子桌子桌子",
- "桌子桌子桌子...",
+ "桌子桌子桌子桌",
+ "子桌子桌子桌...",
],
"originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
"width": 103.8,
@@ -15421,28 +24163,6 @@ Array [
"originalText": "沙发",
"width": 103.8,
},
- Object {
- "actualText": "沙发",
- "actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
- "multiLineActualTexts": Array [
- "沙发",
- ],
- "originalText": "沙发",
- "width": 103.8,
- },
- Object {
- "actualText": "笔",
- "actualTextHeight": 15,
- "actualTextWidth": 13,
- "height": 30,
- "multiLineActualTexts": Array [
- "笔",
- ],
- "originalText": "笔",
- "width": 103.8,
- },
Object {
"actualText": "236723672361111",
"actualTextHeight": 30,
@@ -15459,7 +24179,7 @@ Array [
"actualText": "7789778977897789778977897789",
"actualTextHeight": 45,
"actualTextWidth": 189,
- "height": 61,
+ "height": 76,
"multiLineActualTexts": Array [
"7789778977897",
"7897789778977",
@@ -15535,38 +24255,93 @@ Array [
"originalText": 7234,
"width": 103.8,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height, but should adjust maxLines if custom cell style more than actual text height 1`] = `
+Array [
Object {
- "actualText": "834",
- "actualTextHeight": 15,
- "actualTextWidth": 21,
- "height": 30,
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 70,
"multiLineActualTexts": Array [
- "834",
+ "序号",
],
- "originalText": 834,
+ "originalText": "序号",
+ "width": 80,
+ },
+ Object {
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 70,
+ "multiLineActualTexts": Array [
+ "省份",
+ ],
+ "originalText": "省份",
"width": 103.8,
},
Object {
- "actualText": "945",
- "actualTextHeight": 15,
- "actualTextWidth": 21,
- "height": 30,
+ "actualText": "城市城市城市城市城市城市城市城市城市城市...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 253,
+ "height": 70,
"multiLineActualTexts": Array [
- "945",
+ "城市城市城市城",
+ "市城市城市城市",
+ "城市城市城市...",
],
- "originalText": 945,
+ "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualTextHeight": 48,
+ "actualTextWidth": 243,
+ "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": 48,
+ "actualTextWidth": 253,
+ "height": 70,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
"width": 103.8,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 1`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height, but should adjust maxLines if custom cell style less than actual text height by dataCell.height 1`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 48,
"multiLineActualTexts": Array [
"序号",
],
@@ -15576,13 +24351,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 not adaptive adjust data cell height, but should adjust maxLines if custom cell style less than actual text height by dataCell.height 2`] = `
Array [
Object {
"actualText": "1",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
"1",
],
@@ -15593,7 +24368,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 61,
+ "height": 20,
"multiLineActualTexts": Array [
"2",
],
@@ -15604,7 +24379,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
"3",
],
@@ -15615,7 +24390,7 @@ Array [
"actualText": "4",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"4",
],
@@ -15626,7 +24401,7 @@ Array [
"actualText": "5",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"5",
],
@@ -15637,7 +24412,7 @@ Array [
"actualText": "6",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"6",
],
@@ -15648,7 +24423,7 @@ Array [
"actualText": "7",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"7",
],
@@ -15659,7 +24434,7 @@ Array [
"actualText": "8",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"8",
],
@@ -15670,7 +24445,7 @@ Array [
"actualText": "9",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"9",
],
@@ -15681,23 +24456,111 @@ Array [
"actualText": "10",
"actualTextHeight": 15,
"actualTextWidth": 14,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"10",
],
"originalText": 10,
"width": 80,
},
+ Object {
+ "actualText": "11",
+ "actualTextHeight": 15,
+ "actualTextWidth": 13,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "11",
+ ],
+ "originalText": 11,
+ "width": 80,
+ },
+ Object {
+ "actualText": "12",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "12",
+ ],
+ "originalText": 12,
+ "width": 80,
+ },
+ Object {
+ "actualText": "13",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "13",
+ ],
+ "originalText": 13,
+ "width": 80,
+ },
+ Object {
+ "actualText": "14",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "14",
+ ],
+ "originalText": 14,
+ "width": 80,
+ },
+ Object {
+ "actualText": "15",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "15",
+ ],
+ "originalText": 15,
+ "width": 80,
+ },
+ Object {
+ "actualText": "16",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "16",
+ ],
+ "originalText": 16,
+ "width": 80,
+ },
+ Object {
+ "actualText": "17",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "17",
+ ],
+ "originalText": 17,
+ "width": 80,
+ },
+ Object {
+ "actualText": "18",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "18",
+ ],
+ "originalText": 18,
+ "width": 80,
+ },
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 3`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height, but should adjust maxLines if custom cell style less than actual text height by dataCell.height 3`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 48,
"multiLineActualTexts": Array [
"序号",
],
@@ -15708,7 +24571,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 48,
"multiLineActualTexts": Array [
"省份",
],
@@ -15716,27 +24579,25 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "城市城市城市城市城市城市城市城市城市城市...",
- "actualTextHeight": 48,
- "actualTextWidth": 253,
- "height": 56,
+ "actualText": "城市城市城市城市城市城市城...",
+ "actualTextHeight": 32,
+ "actualTextWidth": 168,
+ "height": 48,
"multiLineActualTexts": Array [
"城市城市城市城",
- "市城市城市城市",
- "城市城市城市...",
+ "市城市城市城...",
],
"originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
"width": 103.8,
},
Object {
- "actualText": "类别类别类别类别类别类别类别类别类别类别",
- "actualTextHeight": 48,
- "actualTextWidth": 243,
- "height": 56,
+ "actualText": "类别类别类别类别类别类别类...",
+ "actualTextHeight": 32,
+ "actualTextWidth": 168,
+ "height": 48,
"multiLineActualTexts": Array [
"类别类别类别类",
- "别类别类别类别",
- "类别类别类别",
+ "别类别类别类...",
],
"originalText": "类别类别类别类别类别类别类别类别类别类别",
"width": 103.8,
@@ -15745,7 +24606,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 56,
+ "height": 48,
"multiLineActualTexts": Array [
"子类别",
],
@@ -15753,14 +24614,13 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量...",
- "actualTextHeight": 48,
- "actualTextWidth": 253,
- "height": 56,
+ "actualText": "数量数量数量数量数量数量数...",
+ "actualTextHeight": 32,
+ "actualTextWidth": 168,
+ "height": 48,
"multiLineActualTexts": Array [
"数量数量数量数",
- "量数量数量数量",
- "数量数量数量...",
+ "量数量数量数...",
],
"originalText": "数量数量数量数量数量数量数量数量数量数量数量",
"width": 103.8,
@@ -15768,15 +24628,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 not adaptive adjust data cell height, but should adjust maxLines if custom cell style less than actual text height by dataCell.height 4`] = `Array []`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 5`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height, but should adjust maxLines if custom cell style less than actual text height by dataCell.height 5`] = `
Array [
Object {
"actualText": "1",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
"1",
],
@@ -15787,7 +24647,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 61,
+ "height": 20,
"multiLineActualTexts": Array [
"2",
],
@@ -15798,7 +24658,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
"3",
],
@@ -15809,84 +24669,172 @@ Array [
"actualText": "4",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "4",
+ ],
+ "originalText": 4,
+ "width": 80,
+ },
+ Object {
+ "actualText": "5",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "5",
+ ],
+ "originalText": 5,
+ "width": 80,
+ },
+ Object {
+ "actualText": "6",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "6",
+ ],
+ "originalText": 6,
+ "width": 80,
+ },
+ Object {
+ "actualText": "7",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "7",
+ ],
+ "originalText": 7,
+ "width": 80,
+ },
+ Object {
+ "actualText": "8",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "8",
+ ],
+ "originalText": 8,
+ "width": 80,
+ },
+ Object {
+ "actualText": "9",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "9",
+ ],
+ "originalText": 9,
+ "width": 80,
+ },
+ Object {
+ "actualText": "10",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "10",
+ ],
+ "originalText": 10,
+ "width": 80,
+ },
+ Object {
+ "actualText": "11",
+ "actualTextHeight": 15,
+ "actualTextWidth": 13,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "11",
+ ],
+ "originalText": 11,
+ "width": 80,
+ },
+ Object {
+ "actualText": "12",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 20,
"multiLineActualTexts": Array [
- "4",
+ "12",
],
- "originalText": 4,
+ "originalText": 12,
"width": 80,
},
Object {
- "actualText": "5",
+ "actualText": "13",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
+ "actualTextWidth": 14,
+ "height": 20,
"multiLineActualTexts": Array [
- "5",
+ "13",
],
- "originalText": 5,
+ "originalText": 13,
"width": 80,
},
Object {
- "actualText": "6",
+ "actualText": "14",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
+ "actualTextWidth": 14,
+ "height": 20,
"multiLineActualTexts": Array [
- "6",
+ "14",
],
- "originalText": 6,
+ "originalText": 14,
"width": 80,
},
Object {
- "actualText": "7",
+ "actualText": "15",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
+ "actualTextWidth": 14,
+ "height": 20,
"multiLineActualTexts": Array [
- "7",
+ "15",
],
- "originalText": 7,
+ "originalText": 15,
"width": 80,
},
Object {
- "actualText": "8",
+ "actualText": "16",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
+ "actualTextWidth": 14,
+ "height": 20,
"multiLineActualTexts": Array [
- "8",
+ "16",
],
- "originalText": 8,
+ "originalText": 16,
"width": 80,
},
Object {
- "actualText": "9",
+ "actualText": "17",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
+ "actualTextWidth": 14,
+ "height": 20,
"multiLineActualTexts": Array [
- "9",
+ "17",
],
- "originalText": 9,
+ "originalText": 17,
"width": 80,
},
Object {
- "actualText": "10",
+ "actualText": "18",
"actualTextHeight": 15,
"actualTextWidth": 14,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
- "10",
+ "18",
],
- "originalText": 10,
+ "originalText": 18,
"width": 80,
},
Object {
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -15894,14 +24842,12 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 61,
+ "actualText": "浙江省浙江省...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 83,
+ "height": 20,
"multiLineActualTexts": Array [
- "浙江省浙江省浙",
- "江省浙江省浙江",
- "省浙江省浙江...",
+ "浙江省浙江省...",
],
"originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
"width": 103.8,
@@ -15910,7 +24856,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -15921,7 +24867,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -15932,7 +24878,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -15943,7 +24889,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -15954,7 +24900,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -15965,7 +24911,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -15976,7 +24922,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -15987,7 +24933,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -15995,1411 +24941,1324 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "绍兴市",
+ "actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 46,
- "multiLineActualTexts": Array [
- "绍兴市",
- ],
- "originalText": "绍兴市",
- "width": 103.8,
- },
- Object {
- "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 61,
+ "height": 20,
"multiLineActualTexts": Array [
- "杭州市杭州市杭",
- "州市杭州市杭州",
- "市杭州市杭州...",
+ "浙江省",
],
- "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "originalText": "浙江省",
"width": 103.8,
},
Object {
- "actualText": "绍兴市",
+ "actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
- "绍兴市",
+ "浙江省",
],
- "originalText": "绍兴市",
+ "originalText": "浙江省",
"width": 103.8,
},
Object {
- "actualText": "宁波市",
+ "actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
- "宁波市",
+ "浙江省",
],
- "originalText": "宁波市",
+ "originalText": "浙江省",
"width": 103.8,
},
Object {
- "actualText": "舟山市",
+ "actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
- "舟山市",
+ "浙江省",
],
- "originalText": "舟山市",
+ "originalText": "浙江省",
"width": 103.8,
},
Object {
- "actualText": "杭州市",
+ "actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
- "杭州市",
+ "浙江省",
],
- "originalText": "杭州市",
+ "originalText": "浙江省",
"width": 103.8,
},
Object {
- "actualText": "绍兴市",
+ "actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
- "绍兴市",
+ "浙江省",
],
- "originalText": "绍兴市",
+ "originalText": "浙江省",
"width": 103.8,
},
Object {
- "actualText": "宁波市",
+ "actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
- "宁波市",
+ "浙江省",
],
- "originalText": "宁波市",
+ "originalText": "浙江省",
"width": 103.8,
},
Object {
- "actualText": "舟山市",
+ "actualText": "四川省",
"actualTextHeight": 15,
"actualTextWidth": 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": 46,
- "multiLineActualTexts": Array [
- "家具",
- ],
- "originalText": "家具",
- "width": 103.8,
- },
- Object {
- "actualText": "家具家具家具家具家具家具家具家具家具家具...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 61,
- "multiLineActualTexts": Array [
- "家具家具家具家",
- "具家具家具家具",
- "家具家具家具...",
- ],
- "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
- "width": 103.8,
- },
- Object {
- "actualText": "家具",
- "actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 46,
- "multiLineActualTexts": Array [
- "家具",
- ],
- "originalText": "家具",
- "width": 103.8,
- },
- Object {
- "actualText": "家具",
- "actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
- "家具",
+ "绍兴市",
],
- "originalText": "家具",
+ "originalText": "绍兴市",
"width": 103.8,
},
Object {
- "actualText": "家具",
+ "actualText": "杭州市杭州市...",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
+ "actualTextWidth": 83,
+ "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": 49,
- "height": 30,
+ "actualTextWidth": 37,
+ "height": 20,
"multiLineActualTexts": Array [
- "办公用品",
+ "绍兴市",
],
- "originalText": "办公用品",
+ "originalText": "绍兴市",
"width": 103.8,
},
Object {
- "actualText": "桌子",
+ "actualText": "宁波市",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 46,
- "multiLineActualTexts": Array [
- "桌子",
- ],
- "originalText": "桌子",
- "width": 103.8,
- },
- Object {
- "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 61,
+ "actualTextWidth": 37,
+ "height": 20,
"multiLineActualTexts": Array [
- "桌子桌子桌子桌",
- "子桌子桌子桌子",
- "桌子桌子桌子...",
+ "宁波市",
],
- "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "originalText": "宁波市",
"width": 103.8,
},
Object {
- "actualText": "桌子",
+ "actualText": "舟山市",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 46,
+ "actualTextWidth": 37,
+ "height": 20,
"multiLineActualTexts": Array [
- "桌子",
+ "舟山市",
],
- "originalText": "桌子",
+ "originalText": "舟山市",
"width": 103.8,
},
Object {
- "actualText": "桌子",
+ "actualText": "杭州市",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
+ "actualTextWidth": 37,
+ "height": 20,
"multiLineActualTexts": Array [
- "桌子",
+ "杭州市",
],
- "originalText": "桌子",
+ "originalText": "杭州市",
"width": 103.8,
},
Object {
- "actualText": "桌子",
+ "actualText": "绍兴市",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
+ "actualTextWidth": 37,
+ "height": 20,
"multiLineActualTexts": Array [
- "桌子",
+ "绍兴市",
],
- "originalText": "桌子",
+ "originalText": "绍兴市",
"width": 103.8,
},
Object {
- "actualText": "沙发",
+ "actualText": "宁波市",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
+ "actualTextWidth": 37,
+ "height": 20,
"multiLineActualTexts": Array [
- "沙发",
+ "宁波市",
],
- "originalText": "沙发",
+ "originalText": "宁波市",
"width": 103.8,
},
Object {
- "actualText": "沙发",
+ "actualText": "舟山市",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
+ "actualTextWidth": 37,
+ "height": 20,
"multiLineActualTexts": Array [
- "沙发",
+ "舟山市",
],
- "originalText": "沙发",
+ "originalText": "舟山市",
"width": 103.8,
},
Object {
- "actualText": "沙发",
+ "actualText": "杭州市",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
+ "actualTextWidth": 37,
+ "height": 20,
"multiLineActualTexts": Array [
- "沙发",
+ "杭州市",
],
- "originalText": "沙发",
+ "originalText": "杭州市",
"width": 103.8,
},
Object {
- "actualText": "沙发",
+ "actualText": "绍兴市",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
+ "actualTextWidth": 37,
+ "height": 20,
"multiLineActualTexts": Array [
- "沙发",
+ "绍兴市",
],
- "originalText": "沙发",
+ "originalText": "绍兴市",
"width": 103.8,
},
Object {
- "actualText": "笔",
+ "actualText": "宁波市",
"actualTextHeight": 15,
- "actualTextWidth": 13,
- "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": 61,
- "multiLineActualTexts": Array [
- "7789778977897",
- "7897789778977",
- "89",
- ],
- "originalText": "7789778977897789778977897789",
- "width": 103.8,
- },
- Object {
- "actualText": "236723672361111",
- "actualTextHeight": 30,
- "actualTextWidth": 100,
- "height": 46,
+ "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": 25,
+ "height": 20,
"multiLineActualTexts": Array [
- "5343",
+ "家具",
],
- "originalText": 5343,
+ "originalText": "家具",
"width": 103.8,
},
Object {
- "actualText": "632",
+ "actualText": "家具家具家具...",
"actualTextHeight": 15,
- "actualTextWidth": 21,
- "height": 30,
+ "actualTextWidth": 83,
+ "height": 20,
"multiLineActualTexts": Array [
- "632",
+ "家具家具家具...",
],
- "originalText": 632,
+ "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
"width": 103.8,
},
Object {
- "actualText": "7234",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 30,
+ "actualTextWidth": 25,
+ "height": 20,
"multiLineActualTexts": Array [
- "7234",
+ "家具",
],
- "originalText": 7234,
+ "originalText": "家具",
"width": 103.8,
},
Object {
- "actualText": "834",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 21,
- "height": 30,
+ "actualTextWidth": 25,
+ "height": 20,
"multiLineActualTexts": Array [
- "834",
+ "家具",
],
- "originalText": 834,
+ "originalText": "家具",
"width": 103.8,
},
Object {
- "actualText": "945",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 21,
- "height": 30,
- "multiLineActualTexts": Array [
- "945",
- ],
- "originalText": 945,
- "width": 103.8,
- },
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 1`] = `
-Array [
- Object {
- "actualText": "序号",
- "actualTextHeight": 16,
"actualTextWidth": 25,
"height": 20,
"multiLineActualTexts": Array [
- "序号",
+ "家具",
],
- "originalText": "序号",
- "width": 80,
- },
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 2`] = `
-Array [
+ "originalText": "家具",
+ "width": 103.8,
+ },
Object {
- "actualText": "1",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
+ "actualTextWidth": 25,
+ "height": 20,
"multiLineActualTexts": Array [
- "1",
+ "家具",
],
- "originalText": 1,
- "width": 80,
+ "originalText": "家具",
+ "width": 103.8,
},
Object {
- "actualText": "2",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 7,
+ "actualTextWidth": 25,
"height": 20,
"multiLineActualTexts": Array [
- "2",
+ "家具",
],
- "originalText": 2,
- "width": 80,
+ "originalText": "家具",
+ "width": 103.8,
},
Object {
- "actualText": "3",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
+ "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": 100,
+ "actualTextWidth": 49,
+ "height": 20,
"multiLineActualTexts": Array [
- "5",
+ "办公用品",
],
- "originalText": 5,
- "width": 80,
+ "originalText": "办公用品",
+ "width": 103.8,
},
Object {
- "actualText": "6",
+ "actualText": "办公用品",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
+ "actualTextWidth": 49,
+ "height": 20,
"multiLineActualTexts": Array [
- "6",
+ "办公用品",
],
- "originalText": 6,
- "width": 80,
+ "originalText": "办公用品",
+ "width": 103.8,
},
Object {
- "actualText": "7",
+ "actualText": "办公用品",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
+ "actualTextWidth": 49,
+ "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,
},
Object {
- "actualText": "9",
+ "actualText": "办公用品",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
+ "actualTextWidth": 49,
+ "height": 20,
"multiLineActualTexts": Array [
- "9",
+ "办公用品",
],
- "originalText": 9,
- "width": 80,
+ "originalText": "办公用品",
+ "width": 103.8,
},
Object {
- "actualText": "10",
+ "actualText": "办公用品",
"actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 30,
+ "actualTextWidth": 49,
+ "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,
},
-]
-`;
-
-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,
+ "actualText": "办公用品",
+ "actualTextHeight": 15,
+ "actualTextWidth": 49,
"height": 20,
"multiLineActualTexts": Array [
- "序号",
+ "办公用品",
],
- "originalText": "序号",
- "width": 80,
+ "originalText": "办公用品",
+ "width": 103.8,
},
Object {
- "actualText": "province",
- "actualTextHeight": 16,
- "actualTextWidth": 51,
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
"height": 20,
"multiLineActualTexts": Array [
- "province",
+ "家具",
],
- "originalText": "province",
+ "originalText": "家具",
"width": 103.8,
},
Object {
- "actualText": "city",
- "actualTextHeight": 16,
- "actualTextWidth": 21,
+ "actualText": "桌子",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
"height": 20,
"multiLineActualTexts": Array [
- "city",
+ "桌子",
],
- "originalText": "city",
+ "originalText": "桌子",
"width": 103.8,
},
Object {
- "actualText": "type",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
+ "actualText": "桌子桌子桌子...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 83,
"height": 20,
"multiLineActualTexts": Array [
- "type",
+ "桌子桌子桌子...",
],
- "originalText": "type",
+ "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
"width": 103.8,
},
Object {
- "actualText": "sub_type",
- "actualTextHeight": 16,
- "actualTextWidth": 53,
+ "actualText": "桌子",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
"height": 20,
"multiLineActualTexts": Array [
- "sub_type",
+ "桌子",
],
- "originalText": "sub_type",
+ "originalText": "桌子",
"width": 103.8,
},
Object {
- "actualText": "number",
- "actualTextHeight": 16,
- "actualTextWidth": 45,
+ "actualText": "桌子",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
"height": 20,
"multiLineActualTexts": Array [
- "number",
+ "桌子",
],
- "originalText": "number",
+ "originalText": "桌子",
"width": 103.8,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 4`] = `Array []`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 5`] = `
-Array [
Object {
- "actualText": "1",
+ "actualText": "桌子",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
+ "actualTextWidth": 25,
+ "height": 20,
"multiLineActualTexts": Array [
- "1",
+ "桌子",
],
- "originalText": 1,
- "width": 80,
+ "originalText": "桌子",
+ "width": 103.8,
},
Object {
- "actualText": "2",
+ "actualText": "沙发",
"actualTextHeight": 15,
- "actualTextWidth": 7,
+ "actualTextWidth": 25,
"height": 20,
"multiLineActualTexts": Array [
- "2",
+ "沙发",
],
- "originalText": 2,
- "width": 80,
+ "originalText": "沙发",
+ "width": 103.8,
},
Object {
- "actualText": "3",
+ "actualText": "沙发",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
+ "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": 100,
+ "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": 13,
+ "height": 20,
"multiLineActualTexts": Array [
- "6",
+ "笔",
],
- "originalText": 6,
- "width": 80,
+ "originalText": "笔",
+ "width": 103.8,
},
Object {
- "actualText": "7",
+ "actualText": "笔",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
+ "actualTextWidth": 13,
+ "height": 20,
"multiLineActualTexts": Array [
- "7",
+ "笔",
],
- "originalText": 7,
- "width": 80,
+ "originalText": "笔",
+ "width": 103.8,
},
Object {
- "actualText": "8",
+ "actualText": "笔",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
+ "actualTextWidth": 13,
+ "height": 20,
"multiLineActualTexts": Array [
- "8",
+ "笔",
],
- "originalText": 8,
- "width": 80,
+ "originalText": "笔",
+ "width": 103.8,
},
Object {
- "actualText": "9",
+ "actualText": "笔",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
+ "actualTextWidth": 13,
+ "height": 20,
"multiLineActualTexts": Array [
- "9",
+ "笔",
],
- "originalText": 9,
- "width": 80,
+ "originalText": "笔",
+ "width": 103.8,
},
Object {
- "actualText": "10",
+ "actualText": "纸张",
"actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 30,
+ "actualTextWidth": 25,
+ "height": 20,
"multiLineActualTexts": Array [
- "10",
+ "纸张",
],
- "originalText": 10,
- "width": 80,
+ "originalText": "纸张",
+ "width": 103.8,
},
Object {
- "actualText": "11",
+ "actualText": "纸张",
"actualTextHeight": 15,
- "actualTextWidth": 13,
- "height": 30,
+ "actualTextWidth": 25,
+ "height": 20,
"multiLineActualTexts": Array [
- "11",
+ "纸张",
],
- "originalText": 11,
- "width": 80,
+ "originalText": "纸张",
+ "width": 103.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "纸张",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
+ "actualTextWidth": 25,
+ "height": 20,
"multiLineActualTexts": Array [
- "浙江省",
+ "纸张",
],
- "originalText": "浙江省",
+ "originalText": "纸张",
"width": 103.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "纸张",
"actualTextHeight": 15,
- "actualTextWidth": 37,
+ "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": "23672367236...",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
+ "actualTextWidth": 84,
+ "height": 20,
"multiLineActualTexts": Array [
- "浙江省",
+ "23672367236...",
],
- "originalText": "浙江省",
+ "originalText": 236723672361111,
"width": 103.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "77897789778...",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 100,
+ "actualTextWidth": 84,
+ "height": 20,
"multiLineActualTexts": Array [
- "浙江省",
+ "77897789778...",
],
- "originalText": "浙江省",
+ "originalText": "7789778977897789778977897789",
"width": 103.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "23672367236...",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
+ "actualTextWidth": 84,
+ "height": 20,
"multiLineActualTexts": Array [
- "浙江省",
+ "23672367236...",
],
- "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": 37,
- "height": 30,
+ "actualTextWidth": 27,
+ "height": 20,
"multiLineActualTexts": Array [
- "浙江省",
+ "4342",
],
- "originalText": "浙江省",
+ "originalText": 4342,
"width": 103.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "5343",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
+ "actualTextWidth": 27,
+ "height": 20,
"multiLineActualTexts": Array [
- "浙江省",
+ "5343",
],
- "originalText": "浙江省",
+ "originalText": 5343,
"width": 103.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "632",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
+ "actualTextWidth": 21,
+ "height": 20,
"multiLineActualTexts": Array [
- "浙江省",
+ "632",
],
- "originalText": "浙江省",
+ "originalText": 632,
"width": 103.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "7234",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
+ "actualTextWidth": 27,
+ "height": 20,
"multiLineActualTexts": Array [
- "浙江省",
+ "7234",
],
- "originalText": "浙江省",
+ "originalText": 7234,
"width": 103.8,
},
Object {
- "actualText": "宁波市",
+ "actualText": "834",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
+ "actualTextWidth": 21,
+ "height": 20,
"multiLineActualTexts": Array [
- "宁波市",
+ "834",
],
- "originalText": "宁波市",
+ "originalText": 834,
"width": 103.8,
},
Object {
- "actualText": "舟山市",
+ "actualText": "945",
"actualTextHeight": 15,
- "actualTextWidth": 37,
+ "actualTextWidth": 21,
"height": 20,
"multiLineActualTexts": Array [
- "舟山市",
+ "945",
],
- "originalText": "舟山市",
+ "originalText": 945,
"width": 103.8,
},
Object {
- "actualText": "杭州市",
+ "actualText": "1304",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
+ "actualTextWidth": 27,
+ "height": 20,
"multiLineActualTexts": Array [
- "杭州市",
+ "1304",
],
- "originalText": "杭州市",
+ "originalText": 1304,
"width": 103.8,
},
Object {
- "actualText": "绍兴市",
+ "actualText": "1145",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
+ "actualTextWidth": 26,
+ "height": 20,
"multiLineActualTexts": Array [
- "绍兴市",
+ "1145",
],
- "originalText": "绍兴市",
+ "originalText": 1145,
"width": 103.8,
},
Object {
- "actualText": "宁波市",
+ "actualText": "1432",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 100,
+ "actualTextWidth": 27,
+ "height": 20,
"multiLineActualTexts": Array [
- "宁波市",
+ "1432",
],
- "originalText": "宁波市",
+ "originalText": 1432,
"width": 103.8,
},
Object {
- "actualText": "舟山市",
+ "actualText": "1343",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
+ "actualTextWidth": 27,
+ "height": 20,
"multiLineActualTexts": Array [
- "舟山市",
+ "1343",
],
- "originalText": "舟山市",
+ "originalText": 1343,
"width": 103.8,
},
Object {
- "actualText": "杭州市",
+ "actualText": "1354",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
+ "actualTextWidth": 27,
+ "height": 20,
"multiLineActualTexts": Array [
- "杭州市",
+ "1354",
],
- "originalText": "杭州市",
+ "originalText": 1354,
"width": 103.8,
},
Object {
- "actualText": "绍兴市",
+ "actualText": "1523",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
+ "actualTextWidth": 27,
+ "height": 20,
"multiLineActualTexts": Array [
- "绍兴市",
+ "1523",
],
- "originalText": "绍兴市",
+ "originalText": 1523,
"width": 103.8,
},
Object {
- "actualText": "宁波市",
+ "actualText": "1634",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
+ "actualTextWidth": 27,
+ "height": 20,
"multiLineActualTexts": Array [
- "宁波市",
+ "1634",
],
- "originalText": "宁波市",
+ "originalText": 1634,
"width": 103.8,
},
Object {
- "actualText": "舟山市",
+ "actualText": "1723",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "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, but should adjust maxLines if custom cell style more than actual text height by dataCell.height 1`] = `
+Array [
Object {
- "actualText": "杭州市",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 48,
"multiLineActualTexts": Array [
- "杭州市",
+ "序号",
],
- "originalText": "杭州市",
- "width": 103.8,
+ "originalText": "序号",
+ "width": 80,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height, but should adjust maxLines 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": "家具",
+ "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": 30,
+ "actualTextWidth": 7,
+ "height": 100,
"multiLineActualTexts": Array [
- "家具",
+ "3",
],
- "originalText": "家具",
- "width": 103.8,
+ "originalText": 3,
+ "width": 80,
},
Object {
- "actualText": "家具",
+ "actualText": "4",
"actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 100,
+ "multiLineActualTexts": Array [
+ "4",
+ ],
+ "originalText": 4,
+ "width": 80,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height, but should adjust maxLines if custom cell style more than actual text height by dataCell.height 3`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 30,
+ "height": 48,
"multiLineActualTexts": Array [
- "家具",
+ "序号",
],
- "originalText": "家具",
- "width": 103.8,
+ "originalText": "序号",
+ "width": 80,
},
Object {
- "actualText": "家具",
- "actualTextHeight": 15,
+ "actualText": "省份",
+ "actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 100,
+ "height": 48,
"multiLineActualTexts": Array [
- "家具",
+ "省份",
],
- "originalText": "家具",
+ "originalText": "省份",
"width": 103.8,
},
Object {
- "actualText": "家具",
- "actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
+ "actualText": "城市城市城市城市城市城市城...",
+ "actualTextHeight": 32,
+ "actualTextWidth": 168,
+ "height": 48,
"multiLineActualTexts": Array [
- "家具",
+ "城市城市城市城",
+ "市城市城市城...",
],
- "originalText": "家具",
+ "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
"width": 103.8,
},
Object {
- "actualText": "办公用品",
- "actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 30,
+ "actualText": "类别类别类别类别类别类别类...",
+ "actualTextHeight": 32,
+ "actualTextWidth": 168,
+ "height": 48,
"multiLineActualTexts": Array [
- "办公用品",
+ "类别类别类别类",
+ "别类别类别类...",
],
- "originalText": "办公用品",
+ "originalText": "类别类别类别类别类别类别类别类别类别类别",
"width": 103.8,
},
Object {
- "actualText": "办公用品",
- "actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 30,
+ "actualText": "子类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 48,
"multiLineActualTexts": Array [
- "办公用品",
+ "子类别",
],
- "originalText": "办公用品",
+ "originalText": "子类别",
"width": 103.8,
},
Object {
- "actualText": "办公用品",
- "actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 30,
+ "actualText": "数量数量数量数量数量数量数...",
+ "actualTextHeight": 32,
+ "actualTextWidth": 168,
+ "height": 48,
"multiLineActualTexts": Array [
- "办公用品",
+ "数量数量数量数",
+ "量数量数量数...",
],
- "originalText": "办公用品",
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
"width": 103.8,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height, but should adjust maxLines 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, but should adjust maxLines if custom cell style more than actual text height by dataCell.height 5`] = `
+Array [
Object {
- "actualText": "办公用品",
+ "actualText": "1",
"actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 30,
+ "actualTextWidth": 7,
+ "height": 100,
"multiLineActualTexts": Array [
- "办公用品",
+ "1",
],
- "originalText": "办公用品",
- "width": 103.8,
+ "originalText": 1,
+ "width": 80,
},
Object {
- "actualText": "办公用品",
+ "actualText": "2",
"actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 30,
+ "actualTextWidth": 7,
+ "height": 100,
"multiLineActualTexts": Array [
- "办公用品",
+ "2",
],
- "originalText": "办公用品",
- "width": 103.8,
+ "originalText": 2,
+ "width": 80,
},
Object {
- "actualText": "桌子",
+ "actualText": "3",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
+ "actualTextWidth": 7,
+ "height": 100,
"multiLineActualTexts": Array [
- "桌子",
+ "3",
],
- "originalText": "桌子",
- "width": 103.8,
+ "originalText": 3,
+ "width": 80,
},
Object {
- "actualText": "桌子",
+ "actualText": "4",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 20,
+ "actualTextWidth": 7,
+ "height": 100,
"multiLineActualTexts": Array [
- "桌子",
+ "4",
],
- "originalText": "桌子",
- "width": 103.8,
+ "originalText": 4,
+ "width": 80,
},
Object {
- "actualText": "沙发",
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
+ "actualTextWidth": 37,
+ "height": 100,
"multiLineActualTexts": Array [
- "沙发",
+ "浙江省",
],
- "originalText": "沙发",
+ "originalText": "浙江省",
"width": 103.8,
},
Object {
- "actualText": "沙发",
- "actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "actualTextHeight": 75,
+ "actualTextWidth": 365,
+ "height": 100,
"multiLineActualTexts": Array [
- "沙发",
+ "浙江省浙江省浙",
+ "江省浙江省浙江",
+ "省浙江省浙江省",
+ "浙江省浙江省浙",
+ "江省",
],
- "originalText": "沙发",
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
"width": 103.8,
},
Object {
- "actualText": "沙发",
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 25,
+ "actualTextWidth": 37,
"height": 100,
"multiLineActualTexts": Array [
- "沙发",
+ "浙江省",
],
- "originalText": "沙发",
+ "originalText": "浙江省",
"width": 103.8,
},
Object {
- "actualText": "沙发",
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
+ "actualTextWidth": 37,
+ "height": 100,
"multiLineActualTexts": Array [
- "沙发",
+ "浙江省",
],
- "originalText": "沙发",
+ "originalText": "浙江省",
"width": 103.8,
},
Object {
- "actualText": "笔",
+ "actualText": "绍兴市",
"actualTextHeight": 15,
- "actualTextWidth": 13,
- "height": 30,
+ "actualTextWidth": 37,
+ "height": 100,
"multiLineActualTexts": Array [
- "笔",
+ "绍兴市",
],
- "originalText": "笔",
+ "originalText": "绍兴市",
"width": 103.8,
},
Object {
- "actualText": "笔",
- "actualTextHeight": 15,
- "actualTextWidth": 13,
- "height": 30,
+ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "actualTextHeight": 75,
+ "actualTextWidth": 365,
+ "height": 100,
"multiLineActualTexts": Array [
- "笔",
+ "杭州市杭州市杭",
+ "州市杭州市杭州",
+ "市杭州市杭州市",
+ "杭州市杭州市杭",
+ "州市",
],
- "originalText": "笔",
+ "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
"width": 103.8,
},
Object {
- "actualText": "笔",
+ "actualText": "绍兴市",
"actualTextHeight": 15,
- "actualTextWidth": 13,
- "height": 30,
+ "actualTextWidth": 37,
+ "height": 100,
"multiLineActualTexts": Array [
- "笔",
+ "绍兴市",
],
- "originalText": "笔",
+ "originalText": "绍兴市",
"width": 103.8,
},
Object {
- "actualText": "笔",
+ "actualText": "宁波市",
"actualTextHeight": 15,
- "actualTextWidth": 13,
- "height": 30,
+ "actualTextWidth": 37,
+ "height": 100,
"multiLineActualTexts": Array [
- "笔",
+ "宁波市",
],
- "originalText": "笔",
+ "originalText": "宁波市",
"width": 103.8,
},
Object {
- "actualText": "纸张",
+ "actualText": "家具",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 30,
+ "height": 100,
"multiLineActualTexts": Array [
- "纸张",
+ "家具",
],
- "originalText": "纸张",
+ "originalText": "家具",
"width": 103.8,
},
Object {
- "actualText": "3877",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 30,
+ "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "actualTextHeight": 60,
+ "actualTextWidth": 340,
+ "height": 100,
"multiLineActualTexts": Array [
- "3877",
+ "家具家具家具家",
+ "具家具家具家具",
+ "家具家具家具家",
+ "具家具家具家具",
],
- "originalText": 3877,
+ "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
"width": 103.8,
},
Object {
- "actualText": "4342",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 100,
"multiLineActualTexts": Array [
- "4342",
+ "家具",
],
- "originalText": 4342,
+ "originalText": "家具",
"width": 103.8,
},
Object {
- "actualText": "5343",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 30,
+ "actualTextWidth": 25,
+ "height": 100,
"multiLineActualTexts": Array [
- "5343",
+ "家具",
],
- "originalText": 5343,
+ "originalText": "家具",
"width": 103.8,
},
Object {
- "actualText": "632",
+ "actualText": "桌子",
"actualTextHeight": 15,
- "actualTextWidth": 21,
- "height": 30,
+ "actualTextWidth": 25,
+ "height": 100,
"multiLineActualTexts": Array [
- "632",
+ "桌子",
],
- "originalText": 632,
+ "originalText": "桌子",
"width": 103.8,
},
Object {
- "actualText": "7234",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "actualTextHeight": 75,
+ "actualTextWidth": 365,
"height": 100,
"multiLineActualTexts": Array [
- "7234",
+ "桌子桌子桌子桌",
+ "子桌子桌子桌子",
+ "桌子桌子桌子桌",
+ "子桌子桌子桌子",
+ "桌子",
],
- "originalText": 7234,
+ "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
"width": 103.8,
},
Object {
- "actualText": "834",
+ "actualText": "桌子",
"actualTextHeight": 15,
- "actualTextWidth": 21,
- "height": 30,
+ "actualTextWidth": 25,
+ "height": 100,
"multiLineActualTexts": Array [
- "834",
+ "桌子",
],
- "originalText": 834,
+ "originalText": "桌子",
"width": 103.8,
},
Object {
- "actualText": "945",
+ "actualText": "桌子",
"actualTextHeight": 15,
- "actualTextWidth": 21,
- "height": 30,
+ "actualTextWidth": 25,
+ "height": 100,
"multiLineActualTexts": Array [
- "945",
+ "桌子",
],
- "originalText": 945,
+ "originalText": "桌子",
"width": 103.8,
},
Object {
- "actualText": "1304",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 30,
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 100,
"multiLineActualTexts": Array [
- "1304",
+ "2367236723611",
+ "11",
],
- "originalText": 1304,
+ "originalText": 236723672361111,
"width": 103.8,
},
Object {
- "actualText": "1145",
- "actualTextHeight": 15,
- "actualTextWidth": 26,
- "height": 30,
+ "actualText": "7789778977897789778977897789",
+ "actualTextHeight": 45,
+ "actualTextWidth": 189,
+ "height": 100,
"multiLineActualTexts": Array [
- "1145",
+ "7789778977897",
+ "7897789778977",
+ "89",
],
- "originalText": 1145,
+ "originalText": "7789778977897789778977897789",
"width": 103.8,
},
Object {
- "actualText": "1432",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 30,
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 100,
"multiLineActualTexts": Array [
- "1432",
+ "2367236723611",
+ "11",
],
- "originalText": 1432,
+ "originalText": 236723672361111,
"width": 103.8,
},
Object {
- "actualText": "1343",
+ "actualText": "3877",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 30,
+ "height": 100,
"multiLineActualTexts": Array [
- "1343",
+ "3877",
],
- "originalText": 1343,
+ "originalText": 3877,
"width": 103.8,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 1`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height, but should adjust maxLines if custom cell style less than actual text height by colCell.height 1`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 70,
+ "height": 20,
"multiLineActualTexts": Array [
"序号",
],
@@ -17409,13 +26268,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 2`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height, but should adjust maxLines if custom cell style less than actual text height by colCell.height 2`] = `
Array [
Object {
"actualText": "1",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 70,
+ "height": 46,
"multiLineActualTexts": Array [
"1",
],
@@ -17426,7 +26285,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 100,
+ "height": 46,
"multiLineActualTexts": Array [
"2",
],
@@ -17488,16 +26347,60 @@ Array [
"originalText": 7,
"width": 80,
},
+ Object {
+ "actualText": "8",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "8",
+ ],
+ "originalText": 8,
+ "width": 80,
+ },
+ Object {
+ "actualText": "9",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "9",
+ ],
+ "originalText": 9,
+ "width": 80,
+ },
+ Object {
+ "actualText": "10",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "10",
+ ],
+ "originalText": 10,
+ "width": 80,
+ },
+ Object {
+ "actualText": "11",
+ "actualTextHeight": 15,
+ "actualTextWidth": 13,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "11",
+ ],
+ "originalText": 11,
+ "width": 80,
+ },
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 3`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height, but should adjust maxLines if custom cell style less than actual text height by colCell.height 3`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 70,
+ "height": 20,
"multiLineActualTexts": Array [
"序号",
],
@@ -17508,7 +26411,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 70,
+ "height": 20,
"multiLineActualTexts": Array [
"省份",
],
@@ -17516,27 +26419,23 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "城市城市城市城市城市城市城市城市城市城市...",
- "actualTextHeight": 48,
- "actualTextWidth": 253,
- "height": 70,
+ "actualText": "城市城市城市...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 83,
+ "height": 20,
"multiLineActualTexts": Array [
- "城市城市城市城",
- "市城市城市城市",
"城市城市城市...",
],
"originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
"width": 103.8,
},
Object {
- "actualText": "类别类别类别类别类别类别类别类别类别类别",
- "actualTextHeight": 48,
- "actualTextWidth": 243,
- "height": 70,
+ "actualText": "类别类别类别...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 83,
+ "height": 20,
"multiLineActualTexts": Array [
- "类别类别类别类",
- "别类别类别类别",
- "类别类别类别",
+ "类别类别类别...",
],
"originalText": "类别类别类别类别类别类别类别类别类别类别",
"width": 103.8,
@@ -17545,7 +26444,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 70,
+ "height": 20,
"multiLineActualTexts": Array [
"子类别",
],
@@ -17553,13 +26452,11 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量...",
- "actualTextHeight": 48,
- "actualTextWidth": 253,
- "height": 70,
+ "actualText": "数量数量数量...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 83,
+ "height": 20,
"multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
"数量数量数量...",
],
"originalText": "数量数量数量数量数量数量数量数量数量数量数量",
@@ -17568,15 +26465,15 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 4`] = `Array []`;
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height, but should adjust maxLines if custom cell style less than actual text height by colCell.height 4`] = `Array []`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 5`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height, but should adjust maxLines if custom cell style less than actual text height by colCell.height 5`] = `
Array [
Object {
"actualText": "1",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 70,
+ "height": 46,
"multiLineActualTexts": Array [
"1",
],
@@ -17587,7 +26484,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 100,
+ "height": 46,
"multiLineActualTexts": Array [
"2",
],
@@ -17649,11 +26546,55 @@ Array [
"originalText": 7,
"width": 80,
},
+ Object {
+ "actualText": "8",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "8",
+ ],
+ "originalText": 8,
+ "width": 80,
+ },
+ Object {
+ "actualText": "9",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "9",
+ ],
+ "originalText": 9,
+ "width": 80,
+ },
+ Object {
+ "actualText": "10",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "10",
+ ],
+ "originalText": 10,
+ "width": 80,
+ },
+ Object {
+ "actualText": "11",
+ "actualTextHeight": 15,
+ "actualTextWidth": 13,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "11",
+ ],
+ "originalText": 11,
+ "width": 80,
+ },
Object {
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 70,
+ "height": 46,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -17661,14 +26602,13 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 100,
+ "actualText": "浙江省浙江省浙江省浙江省浙...",
+ "actualTextHeight": 30,
+ "actualTextWidth": 168,
+ "height": 46,
"multiLineActualTexts": Array [
"浙江省浙江省浙",
- "江省浙江省浙江",
- "省浙江省浙江...",
+ "江省浙江省浙...",
],
"originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
"width": 103.8,
@@ -17728,11 +26668,55 @@ 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": 70,
+ "height": 46,
"multiLineActualTexts": Array [
"绍兴市",
],
@@ -17740,14 +26724,13 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 100,
+ "actualText": "杭州市杭州市杭州市杭州市杭...",
+ "actualTextHeight": 30,
+ "actualTextWidth": 168,
+ "height": 46,
"multiLineActualTexts": Array [
"杭州市杭州市杭",
- "州市杭州市杭州",
- "市杭州市杭州...",
+ "州市杭州市杭...",
],
"originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
"width": 103.8,
@@ -17807,11 +26790,55 @@ 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": 70,
+ "height": 46,
"multiLineActualTexts": Array [
"家具",
],
@@ -17819,14 +26846,13 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "家具家具家具家具家具家具家具家具家具家具...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 100,
+ "actualText": "家具家具家具家具家具家具家...",
+ "actualTextHeight": 30,
+ "actualTextWidth": 168,
+ "height": 46,
"multiLineActualTexts": Array [
"家具家具家具家",
- "具家具家具家具",
- "家具家具家具...",
+ "具家具家具家...",
],
"originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
"width": 103.8,
@@ -17886,11 +26912,55 @@ Array [
"originalText": "家具",
"width": 103.8,
},
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "办公用品",
+ "actualTextHeight": 15,
+ "actualTextWidth": 49,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "办公用品",
+ ],
+ "originalText": "办公用品",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "办公用品",
+ "actualTextHeight": 15,
+ "actualTextWidth": 49,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "办公用品",
+ ],
+ "originalText": "办公用品",
+ "width": 103.8,
+ },
Object {
"actualText": "桌子",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 70,
+ "height": 46,
"multiLineActualTexts": Array [
"桌子",
],
@@ -17898,14 +26968,13 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 100,
+ "actualText": "桌子桌子桌子桌子桌子桌子桌...",
+ "actualTextHeight": 30,
+ "actualTextWidth": 168,
+ "height": 46,
"multiLineActualTexts": Array [
"桌子桌子桌子桌",
- "子桌子桌子桌子",
- "桌子桌子桌子...",
+ "子桌子桌子桌...",
],
"originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
"width": 103.8,
@@ -17965,11 +27034,55 @@ Array [
"originalText": "沙发",
"width": 103.8,
},
+ Object {
+ "actualText": "沙发",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "沙发",
+ ],
+ "originalText": "沙发",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "沙发",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "沙发",
+ ],
+ "originalText": "沙发",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "笔",
+ "actualTextHeight": 15,
+ "actualTextWidth": 13,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "笔",
+ ],
+ "originalText": "笔",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "笔",
+ "actualTextHeight": 15,
+ "actualTextWidth": 13,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "笔",
+ ],
+ "originalText": "笔",
+ "width": 103.8,
+ },
Object {
"actualText": "236723672361111",
"actualTextHeight": 30,
"actualTextWidth": 100,
- "height": 70,
+ "height": 46,
"multiLineActualTexts": Array [
"2367236723611",
"11",
@@ -17978,14 +27091,13 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "7789778977897789778977897789",
- "actualTextHeight": 45,
- "actualTextWidth": 189,
- "height": 100,
+ "actualText": "778977897789778977897789...",
+ "actualTextHeight": 30,
+ "actualTextWidth": 172,
+ "height": 46,
"multiLineActualTexts": Array [
"7789778977897",
- "7897789778977",
- "89",
+ "78977897789...",
],
"originalText": "7789778977897789778977897789",
"width": 103.8,
@@ -18046,90 +27158,60 @@ Array [
"originalText": 632,
"width": 103.8,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height 1`] = `
-Array [
- Object {
- "actualText": "序号",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 70,
- "multiLineActualTexts": Array [
- "序号",
- ],
- "originalText": "序号",
- "width": 80,
- },
- Object {
- "actualText": "省份",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 70,
- "multiLineActualTexts": Array [
- "省份",
- ],
- "originalText": "省份",
- "width": 103.8,
- },
Object {
- "actualText": "城市城市城市城市城市城市城...",
- "actualTextHeight": 32,
- "actualTextWidth": 168,
- "height": 70,
+ "actualText": "7234",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
"multiLineActualTexts": Array [
- "城市城市城市城",
- "市城市城市城...",
+ "7234",
],
- "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "originalText": 7234,
"width": 103.8,
},
Object {
- "actualText": "类别类别类别类别类别类别类...",
- "actualTextHeight": 32,
- "actualTextWidth": 168,
- "height": 70,
+ "actualText": "834",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
"multiLineActualTexts": Array [
- "类别类别类别类",
- "别类别类别类...",
+ "834",
],
- "originalText": "类别类别类别类别类别类别类别类别类别类别",
+ "originalText": 834,
"width": 103.8,
},
Object {
- "actualText": "子类别",
- "actualTextHeight": 16,
- "actualTextWidth": 37,
- "height": 70,
+ "actualText": "945",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
"multiLineActualTexts": Array [
- "子类别",
+ "945",
],
- "originalText": "子类别",
+ "originalText": 945,
"width": 103.8,
},
Object {
- "actualText": "数量数量数量数量数量数量数...",
- "actualTextHeight": 32,
- "actualTextWidth": 168,
- "height": 70,
+ "actualText": "1304",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
"multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数...",
+ "1304",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "originalText": 1304,
"width": 103.8,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 1`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not 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": 100,
+ "height": 64,
"multiLineActualTexts": Array [
"序号",
],
@@ -18139,13 +27221,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 2`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 2`] = `
Array [
Object {
"actualText": "1",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
"1",
],
@@ -18156,7 +27238,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 76,
+ "height": 20,
"multiLineActualTexts": Array [
"2",
],
@@ -18167,7 +27249,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
"3",
],
@@ -18178,7 +27260,7 @@ Array [
"actualText": "4",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"4",
],
@@ -18189,7 +27271,7 @@ Array [
"actualText": "5",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"5",
],
@@ -18200,7 +27282,7 @@ Array [
"actualText": "6",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"6",
],
@@ -18211,7 +27293,7 @@ Array [
"actualText": "7",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"7",
],
@@ -18222,23 +27304,122 @@ Array [
"actualText": "8",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"8",
],
"originalText": 8,
"width": 80,
},
+ Object {
+ "actualText": "9",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "9",
+ ],
+ "originalText": 9,
+ "width": 80,
+ },
+ Object {
+ "actualText": "10",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "10",
+ ],
+ "originalText": 10,
+ "width": 80,
+ },
+ Object {
+ "actualText": "11",
+ "actualTextHeight": 15,
+ "actualTextWidth": 13,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "11",
+ ],
+ "originalText": 11,
+ "width": 80,
+ },
+ Object {
+ "actualText": "12",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "12",
+ ],
+ "originalText": 12,
+ "width": 80,
+ },
+ Object {
+ "actualText": "13",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "13",
+ ],
+ "originalText": 13,
+ "width": 80,
+ },
+ Object {
+ "actualText": "14",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "14",
+ ],
+ "originalText": 14,
+ "width": 80,
+ },
+ Object {
+ "actualText": "15",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "15",
+ ],
+ "originalText": 15,
+ "width": 80,
+ },
+ Object {
+ "actualText": "16",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "16",
+ ],
+ "originalText": 16,
+ "width": 80,
+ },
+ Object {
+ "actualText": "17",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "17",
+ ],
+ "originalText": 17,
+ "width": 80,
+ },
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 3`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not 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": 100,
+ "height": 64,
"multiLineActualTexts": Array [
"序号",
],
@@ -18249,7 +27430,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 100,
+ "height": 64,
"multiLineActualTexts": Array [
"省份",
],
@@ -18257,15 +27438,14 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
- "actualTextHeight": 64,
- "actualTextWidth": 292,
- "height": 100,
+ "actualText": "城市城市城市城市城市城市城市城市城市城市...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 253,
+ "height": 64,
"multiLineActualTexts": Array [
"城市城市城市城",
"市城市城市城市",
- "城市城市城市城",
- "市城市",
+ "城市城市城市...",
],
"originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
"width": 103.8,
@@ -18274,7 +27454,7 @@ Array [
"actualText": "类别类别类别类别类别类别类别类别类别类别",
"actualTextHeight": 48,
"actualTextWidth": 243,
- "height": 50,
+ "height": 64,
"multiLineActualTexts": Array [
"类别类别类别类",
"别类别类别类别",
@@ -18287,7 +27467,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 100,
+ "height": 64,
"multiLineActualTexts": Array [
"子类别",
],
@@ -18295,15 +27475,14 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
- "actualTextHeight": 64,
- "actualTextWidth": 268,
- "height": 100,
+ "actualText": "数量数量数量数量数量数量数量数量数量数量...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 253,
+ "height": 64,
"multiLineActualTexts": Array [
"数量数量数量数",
"量数量数量数量",
- "数量数量数量数",
- "量",
+ "数量数量数量...",
],
"originalText": "数量数量数量数量数量数量数量数量数量数量数量",
"width": 103.8,
@@ -18311,15 +27490,15 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 4`] = `Array []`;
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not 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 adaptive adjust cell height if custom cell style more than actual text height by colCell.heightByField 5`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 5`] = `
Array [
Object {
"actualText": "1",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
"1",
],
@@ -18330,7 +27509,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 76,
+ "height": 20,
"multiLineActualTexts": Array [
"2",
],
@@ -18341,7 +27520,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
"3",
],
@@ -18352,7 +27531,7 @@ Array [
"actualText": "4",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"4",
],
@@ -18363,7 +27542,7 @@ Array [
"actualText": "5",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"5",
],
@@ -18374,7 +27553,7 @@ Array [
"actualText": "6",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"6",
],
@@ -18385,7 +27564,7 @@ Array [
"actualText": "7",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"7",
],
@@ -18396,18 +27575,117 @@ Array [
"actualText": "8",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"8",
],
"originalText": 8,
"width": 80,
},
+ Object {
+ "actualText": "9",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "9",
+ ],
+ "originalText": 9,
+ "width": 80,
+ },
+ Object {
+ "actualText": "10",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "10",
+ ],
+ "originalText": 10,
+ "width": 80,
+ },
+ Object {
+ "actualText": "11",
+ "actualTextHeight": 15,
+ "actualTextWidth": 13,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "11",
+ ],
+ "originalText": 11,
+ "width": 80,
+ },
+ Object {
+ "actualText": "12",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "12",
+ ],
+ "originalText": 12,
+ "width": 80,
+ },
+ Object {
+ "actualText": "13",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "13",
+ ],
+ "originalText": 13,
+ "width": 80,
+ },
+ Object {
+ "actualText": "14",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "14",
+ ],
+ "originalText": 14,
+ "width": 80,
+ },
+ Object {
+ "actualText": "15",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "15",
+ ],
+ "originalText": 15,
+ "width": 80,
+ },
+ Object {
+ "actualText": "16",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "16",
+ ],
+ "originalText": 16,
+ "width": 80,
+ },
+ Object {
+ "actualText": "17",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "17",
+ ],
+ "originalText": 17,
+ "width": 80,
+ },
Object {
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -18415,14 +27693,11 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...",
- "actualTextHeight": 60,
- "actualTextWidth": 338,
- "height": 76,
+ "actualText": "浙江省浙江省...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 83,
+ "height": 20,
"multiLineActualTexts": Array [
- "浙江省浙江省浙",
- "江省浙江省浙江",
- "省浙江省浙江省",
"浙江省浙江省...",
],
"originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
@@ -18432,7 +27707,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -18443,7 +27718,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -18454,7 +27729,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -18465,7 +27740,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -18476,7 +27751,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -18487,7 +27762,106 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "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 [
"浙江省",
],
@@ -18498,7 +27872,7 @@ Array [
"actualText": "绍兴市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
"绍兴市",
],
@@ -18506,14 +27880,11 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...",
- "actualTextHeight": 60,
- "actualTextWidth": 338,
- "height": 76,
+ "actualText": "杭州市杭州市...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 83,
+ "height": 20,
"multiLineActualTexts": Array [
- "杭州市杭州市杭",
- "州市杭州市杭州",
- "市杭州市杭州市",
"杭州市杭州市...",
],
"originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
@@ -18523,7 +27894,7 @@ Array [
"actualText": "绍兴市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
"绍兴市",
],
@@ -18534,7 +27905,7 @@ Array [
"actualText": "宁波市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"宁波市",
],
@@ -18545,7 +27916,7 @@ Array [
"actualText": "舟山市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"舟山市",
],
@@ -18556,7 +27927,7 @@ Array [
"actualText": "杭州市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"杭州市",
],
@@ -18567,7 +27938,7 @@ Array [
"actualText": "绍兴市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"绍兴市",
],
@@ -18578,18 +27949,117 @@ Array [
"actualText": "宁波市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "宁波市",
+ ],
+ "originalText": "宁波市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "舟山市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "舟山市",
+ ],
+ "originalText": "舟山市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "杭州市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "杭州市",
+ ],
+ "originalText": "杭州市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "宁波市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "宁波市",
+ ],
+ "originalText": "宁波市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "舟山市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "舟山市",
+ ],
+ "originalText": "舟山市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "杭州市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "杭州市",
+ ],
+ "originalText": "杭州市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "宁波市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 20,
"multiLineActualTexts": Array [
"宁波市",
],
"originalText": "宁波市",
"width": 103.8,
},
+ Object {
+ "actualText": "舟山市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "舟山市",
+ ],
+ "originalText": "舟山市",
+ "width": 103.8,
+ },
Object {
"actualText": "家具",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
"家具",
],
@@ -18597,15 +28067,12 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
- "actualTextHeight": 60,
- "actualTextWidth": 340,
- "height": 76,
+ "actualText": "家具家具家具...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 83,
+ "height": 20,
"multiLineActualTexts": Array [
- "家具家具家具家",
- "具家具家具家具",
- "家具家具家具家",
- "具家具家具家具",
+ "家具家具家具...",
],
"originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
"width": 103.8,
@@ -18614,7 +28081,7 @@ Array [
"actualText": "家具",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
"家具",
],
@@ -18625,7 +28092,7 @@ Array [
"actualText": "家具",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"家具",
],
@@ -18636,51 +28103,150 @@ Array [
"actualText": "家具",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 30,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "办公用品",
+ "actualTextHeight": 15,
+ "actualTextWidth": 49,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "办公用品",
+ ],
+ "originalText": "办公用品",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "办公用品",
+ "actualTextHeight": 15,
+ "actualTextWidth": 49,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "办公用品",
+ ],
+ "originalText": "办公用品",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "办公用品",
+ "actualTextHeight": 15,
+ "actualTextWidth": 49,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "办公用品",
+ ],
+ "originalText": "办公用品",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "办公用品",
+ "actualTextHeight": 15,
+ "actualTextWidth": 49,
+ "height": 20,
+ "multiLineActualTexts": Array [
+ "办公用品",
+ ],
+ "originalText": "办公用品",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "办公用品",
+ "actualTextHeight": 15,
+ "actualTextWidth": 49,
+ "height": 20,
"multiLineActualTexts": Array [
- "家具",
+ "办公用品",
],
- "originalText": "家具",
+ "originalText": "办公用品",
"width": 103.8,
},
Object {
- "actualText": "家具",
+ "actualText": "办公用品",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
+ "actualTextWidth": 49,
+ "height": 20,
"multiLineActualTexts": Array [
- "家具",
+ "办公用品",
],
- "originalText": "家具",
+ "originalText": "办公用品",
"width": 103.8,
},
Object {
- "actualText": "家具",
+ "actualText": "办公用品",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
+ "actualTextWidth": 49,
+ "height": 20,
"multiLineActualTexts": Array [
- "家具",
+ "办公用品",
],
- "originalText": "家具",
+ "originalText": "办公用品",
"width": 103.8,
},
Object {
- "actualText": "家具",
+ "actualText": "办公用品",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
+ "actualTextWidth": 49,
+ "height": 20,
"multiLineActualTexts": Array [
- "家具",
+ "办公用品",
],
- "originalText": "家具",
+ "originalText": "办公用品",
"width": 103.8,
},
Object {
"actualText": "桌子",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
"桌子",
],
@@ -18688,15 +28254,12 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...",
- "actualTextHeight": 60,
- "actualTextWidth": 338,
- "height": 76,
+ "actualText": "桌子桌子桌子...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 83,
+ "height": 20,
"multiLineActualTexts": Array [
- "桌子桌子桌子桌",
- "子桌子桌子桌子",
- "桌子桌子桌子桌",
- "子桌子桌子桌...",
+ "桌子桌子桌子...",
],
"originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
"width": 103.8,
@@ -18705,7 +28268,7 @@ Array [
"actualText": "桌子",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
"桌子",
],
@@ -18716,7 +28279,7 @@ Array [
"actualText": "桌子",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"桌子",
],
@@ -18727,7 +28290,7 @@ Array [
"actualText": "桌子",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"桌子",
],
@@ -18738,7 +28301,7 @@ Array [
"actualText": "沙发",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"沙发",
],
@@ -18749,7 +28312,7 @@ Array [
"actualText": "沙发",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"沙发",
],
@@ -18760,7 +28323,7 @@ Array [
"actualText": "沙发",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"沙发",
],
@@ -18768,402 +28331,317 @@ Array [
"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,
+ "actualText": "沙发",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "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": 13,
+ "height": 20,
"multiLineActualTexts": Array [
- "2367236723611",
- "11",
+ "笔",
],
- "originalText": 236723672361111,
+ "originalText": "笔",
"width": 103.8,
},
Object {
- "actualText": "3877",
+ "actualText": "笔",
"actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 30,
+ "actualTextWidth": 13,
+ "height": 20,
"multiLineActualTexts": Array [
- "3877",
+ "笔",
],
- "originalText": 3877,
+ "originalText": "笔",
"width": 103.8,
},
Object {
- "actualText": "4342",
+ "actualText": "笔",
"actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 30,
+ "actualTextWidth": 13,
+ "height": 20,
"multiLineActualTexts": Array [
- "4342",
+ "笔",
],
- "originalText": 4342,
+ "originalText": "笔",
"width": 103.8,
},
Object {
- "actualText": "5343",
+ "actualText": "笔",
"actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 30,
+ "actualTextWidth": 13,
+ "height": 20,
"multiLineActualTexts": Array [
- "5343",
+ "笔",
],
- "originalText": 5343,
+ "originalText": "笔",
"width": 103.8,
},
Object {
- "actualText": "632",
+ "actualText": "纸张",
"actualTextHeight": 15,
- "actualTextWidth": 21,
- "height": 30,
+ "actualTextWidth": 25,
+ "height": 20,
"multiLineActualTexts": Array [
- "632",
+ "纸张",
],
- "originalText": 632,
+ "originalText": "纸张",
"width": 103.8,
},
Object {
- "actualText": "7234",
+ "actualText": "纸张",
"actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 30,
+ "actualTextWidth": 25,
+ "height": 20,
"multiLineActualTexts": Array [
- "7234",
+ "纸张",
],
- "originalText": 7234,
+ "originalText": "纸张",
"width": 103.8,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style less than actual text height by dataCell.height 1`] = `
-Array [
Object {
- "actualText": "序号",
- "actualTextHeight": 16,
+ "actualText": "纸张",
+ "actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 40,
+ "height": 20,
"multiLineActualTexts": Array [
- "序号",
+ "纸张",
],
- "originalText": "序号",
- "width": 80,
+ "originalText": "纸张",
+ "width": 103.8,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style less than actual text height by dataCell.height 2`] = `
-Array [
Object {
- "actualText": "1",
+ "actualText": "纸张",
"actualTextHeight": 15,
- "actualTextWidth": 7,
+ "actualTextWidth": 25,
"height": 20,
"multiLineActualTexts": Array [
- "1",
+ "纸张",
],
- "originalText": 1,
- "width": 80,
+ "originalText": "纸张",
+ "width": 103.8,
},
Object {
- "actualText": "2",
+ "actualText": "23672367236...",
"actualTextHeight": 15,
- "actualTextWidth": 7,
+ "actualTextWidth": 84,
"height": 20,
"multiLineActualTexts": Array [
- "2",
+ "23672367236...",
],
- "originalText": 2,
- "width": 80,
+ "originalText": 236723672361111,
+ "width": 103.8,
},
Object {
- "actualText": "3",
+ "actualText": "77897789778...",
"actualTextHeight": 15,
- "actualTextWidth": 7,
+ "actualTextWidth": 84,
"height": 20,
"multiLineActualTexts": Array [
- "3",
+ "77897789778...",
],
- "originalText": 3,
- "width": 80,
+ "originalText": "7789778977897789778977897789",
+ "width": 103.8,
},
Object {
- "actualText": "4",
+ "actualText": "23672367236...",
"actualTextHeight": 15,
- "actualTextWidth": 7,
+ "actualTextWidth": 84,
"height": 20,
"multiLineActualTexts": Array [
- "4",
+ "23672367236...",
],
- "originalText": 4,
- "width": 80,
+ "originalText": 236723672361111,
+ "width": 103.8,
},
Object {
- "actualText": "5",
+ "actualText": "3877",
"actualTextHeight": 15,
- "actualTextWidth": 7,
+ "actualTextWidth": 27,
"height": 20,
"multiLineActualTexts": Array [
- "5",
+ "3877",
],
- "originalText": 5,
- "width": 80,
+ "originalText": 3877,
+ "width": 103.8,
},
Object {
- "actualText": "6",
+ "actualText": "4342",
"actualTextHeight": 15,
- "actualTextWidth": 7,
+ "actualTextWidth": 27,
"height": 20,
"multiLineActualTexts": Array [
- "6",
+ "4342",
],
- "originalText": 6,
- "width": 80,
+ "originalText": 4342,
+ "width": 103.8,
},
Object {
- "actualText": "7",
+ "actualText": "5343",
"actualTextHeight": 15,
- "actualTextWidth": 7,
+ "actualTextWidth": 27,
"height": 20,
"multiLineActualTexts": Array [
- "7",
+ "5343",
],
- "originalText": 7,
- "width": 80,
+ "originalText": 5343,
+ "width": 103.8,
},
Object {
- "actualText": "8",
+ "actualText": "632",
"actualTextHeight": 15,
- "actualTextWidth": 7,
+ "actualTextWidth": 21,
"height": 20,
"multiLineActualTexts": Array [
- "8",
+ "632",
],
- "originalText": 8,
- "width": 80,
+ "originalText": 632,
+ "width": 103.8,
},
Object {
- "actualText": "9",
+ "actualText": "7234",
"actualTextHeight": 15,
- "actualTextWidth": 7,
+ "actualTextWidth": 27,
"height": 20,
"multiLineActualTexts": Array [
- "9",
+ "7234",
],
- "originalText": 9,
- "width": 80,
+ "originalText": 7234,
+ "width": 103.8,
},
Object {
- "actualText": "10",
+ "actualText": "834",
"actualTextHeight": 15,
- "actualTextWidth": 14,
+ "actualTextWidth": 21,
"height": 20,
"multiLineActualTexts": Array [
- "10",
+ "834",
],
- "originalText": 10,
- "width": 80,
+ "originalText": 834,
+ "width": 103.8,
},
Object {
- "actualText": "11",
+ "actualText": "945",
"actualTextHeight": 15,
- "actualTextWidth": 13,
+ "actualTextWidth": 21,
"height": 20,
"multiLineActualTexts": Array [
- "11",
+ "945",
],
- "originalText": 11,
- "width": 80,
+ "originalText": 945,
+ "width": 103.8,
},
Object {
- "actualText": "12",
+ "actualText": "1304",
"actualTextHeight": 15,
- "actualTextWidth": 14,
+ "actualTextWidth": 27,
"height": 20,
"multiLineActualTexts": Array [
- "12",
+ "1304",
],
- "originalText": 12,
- "width": 80,
+ "originalText": 1304,
+ "width": 103.8,
},
Object {
- "actualText": "13",
+ "actualText": "1145",
"actualTextHeight": 15,
- "actualTextWidth": 14,
+ "actualTextWidth": 26,
"height": 20,
"multiLineActualTexts": Array [
- "13",
+ "1145",
],
- "originalText": 13,
- "width": 80,
+ "originalText": 1145,
+ "width": 103.8,
},
Object {
- "actualText": "14",
+ "actualText": "1432",
"actualTextHeight": 15,
- "actualTextWidth": 14,
+ "actualTextWidth": 27,
"height": 20,
"multiLineActualTexts": Array [
- "14",
+ "1432",
],
- "originalText": 14,
- "width": 80,
+ "originalText": 1432,
+ "width": 103.8,
},
Object {
- "actualText": "15",
+ "actualText": "1343",
"actualTextHeight": 15,
- "actualTextWidth": 14,
+ "actualTextWidth": 27,
"height": 20,
"multiLineActualTexts": Array [
- "15",
+ "1343",
],
- "originalText": 15,
- "width": 80,
+ "originalText": 1343,
+ "width": 103.8,
},
Object {
- "actualText": "16",
+ "actualText": "1354",
"actualTextHeight": 15,
- "actualTextWidth": 14,
+ "actualTextWidth": 27,
"height": 20,
"multiLineActualTexts": Array [
- "16",
+ "1354",
],
- "originalText": 16,
- "width": 80,
+ "originalText": 1354,
+ "width": 103.8,
},
Object {
- "actualText": "17",
+ "actualText": "1523",
"actualTextHeight": 15,
- "actualTextWidth": 14,
+ "actualTextWidth": 27,
"height": 20,
"multiLineActualTexts": Array [
- "17",
+ "1523",
],
- "originalText": 17,
- "width": 80,
+ "originalText": 1523,
+ "width": 103.8,
},
Object {
- "actualText": "18",
+ "actualText": "1634",
"actualTextHeight": 15,
- "actualTextWidth": 14,
+ "actualTextWidth": 27,
"height": 20,
"multiLineActualTexts": Array [
- "18",
+ "1634",
],
- "originalText": 18,
- "width": 80,
+ "originalText": 1634,
+ "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`] = `
+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": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 64,
"multiLineActualTexts": Array [
"序号",
],
"originalText": "序号",
"width": 80,
},
- Object {
- "actualText": "省份",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 40,
- "multiLineActualTexts": Array [
- "省份",
- ],
- "originalText": "省份",
- "width": 103.8,
- },
- Object {
- "actualText": "城市城市城市城市城市城市城...",
- "actualTextHeight": 32,
- "actualTextWidth": 168,
- "height": 40,
- "multiLineActualTexts": Array [
- "城市城市城市城",
- "市城市城市城...",
- ],
- "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
- "width": 103.8,
- },
- Object {
- "actualText": "类别类别类别类别类别类别类...",
- "actualTextHeight": 32,
- "actualTextWidth": 168,
- "height": 40,
- "multiLineActualTexts": Array [
- "类别类别类别类",
- "别类别类别类...",
- ],
- "originalText": "类别类别类别类别类别类别类别类别类别类别",
- "width": 103.8,
- },
- Object {
- "actualText": "子类别",
- "actualTextHeight": 16,
- "actualTextWidth": 37,
- "height": 40,
- "multiLineActualTexts": Array [
- "子类别",
- ],
- "originalText": "子类别",
- "width": 103.8,
- },
- Object {
- "actualText": "数量数量数量数量数量数量数...",
- "actualTextHeight": 32,
- "actualTextWidth": 168,
- "height": 40,
- "multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数...",
- ],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 103.8,
- },
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style less than actual text height by dataCell.height 4`] = `Array []`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style less than actual text height by dataCell.height 5`] = `
+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": "1",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 46,
"multiLineActualTexts": Array [
"1",
],
@@ -19185,7 +28663,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 46,
"multiLineActualTexts": Array [
"3",
],
@@ -19196,7 +28674,7 @@ Array [
"actualText": "4",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"4",
],
@@ -19207,7 +28685,7 @@ Array [
"actualText": "5",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 100,
"multiLineActualTexts": Array [
"5",
],
@@ -19218,283 +28696,212 @@ Array [
"actualText": "6",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
- "multiLineActualTexts": Array [
- "6",
- ],
- "originalText": 6,
- "width": 80,
- },
- Object {
- "actualText": "7",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 20,
- "multiLineActualTexts": Array [
- "7",
- ],
- "originalText": 7,
- "width": 80,
- },
- Object {
- "actualText": "8",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 20,
- "multiLineActualTexts": Array [
- "8",
- ],
- "originalText": 8,
- "width": 80,
- },
- Object {
- "actualText": "9",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 20,
- "multiLineActualTexts": Array [
- "9",
- ],
- "originalText": 9,
- "width": 80,
- },
- Object {
- "actualText": "10",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 20,
- "multiLineActualTexts": Array [
- "10",
- ],
- "originalText": 10,
- "width": 80,
- },
- Object {
- "actualText": "11",
- "actualTextHeight": 15,
- "actualTextWidth": 13,
- "height": 20,
- "multiLineActualTexts": Array [
- "11",
- ],
- "originalText": 11,
- "width": 80,
- },
- Object {
- "actualText": "12",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 20,
- "multiLineActualTexts": Array [
- "12",
- ],
- "originalText": 12,
- "width": 80,
- },
- Object {
- "actualText": "13",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 20,
- "multiLineActualTexts": Array [
- "13",
- ],
- "originalText": 13,
- "width": 80,
- },
- Object {
- "actualText": "14",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
- "14",
+ "6",
],
- "originalText": 14,
+ "originalText": 6,
"width": 80,
},
Object {
- "actualText": "15",
+ "actualText": "7",
"actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 20,
+ "actualTextWidth": 7,
+ "height": 30,
"multiLineActualTexts": Array [
- "15",
+ "7",
],
- "originalText": 15,
+ "originalText": 7,
"width": 80,
},
Object {
- "actualText": "16",
+ "actualText": "8",
"actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 20,
+ "actualTextWidth": 7,
+ "height": 30,
"multiLineActualTexts": Array [
- "16",
+ "8",
],
- "originalText": 16,
+ "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": "17",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 20,
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 64,
"multiLineActualTexts": Array [
- "17",
+ "序号",
],
- "originalText": 17,
+ "originalText": "序号",
"width": 80,
},
Object {
- "actualText": "18",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 20,
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 64,
"multiLineActualTexts": Array [
- "18",
+ "省份",
],
- "originalText": 18,
- "width": 80,
+ "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": 30,
- "actualTextWidth": 168,
- "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 less than actual text height by rowCell.heightByField 4`] = `Array []`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 5`] = `
+Array [
Object {
- "actualText": "浙江省",
+ "actualText": "1",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 7,
+ "height": 46,
"multiLineActualTexts": Array [
- "浙江省",
+ "1",
],
- "originalText": "浙江省",
- "width": 103.8,
+ "originalText": 1,
+ "width": 80,
},
Object {
- "actualText": "浙江省",
+ "actualText": "2",
"actualTextHeight": 15,
- "actualTextWidth": 37,
+ "actualTextWidth": 7,
"height": 20,
"multiLineActualTexts": Array [
- "浙江省",
+ "2",
],
- "originalText": "浙江省",
- "width": 103.8,
+ "originalText": 2,
+ "width": 80,
},
Object {
- "actualText": "浙江省",
+ "actualText": "3",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 7,
+ "height": 46,
"multiLineActualTexts": Array [
- "浙江省",
+ "3",
],
- "originalText": "浙江省",
- "width": 103.8,
+ "originalText": 3,
+ "width": 80,
},
Object {
- "actualText": "浙江省",
+ "actualText": "4",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 7,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "4",
],
- "originalText": "浙江省",
- "width": 103.8,
+ "originalText": 4,
+ "width": 80,
},
Object {
- "actualText": "浙江省",
+ "actualText": "5",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 7,
+ "height": 100,
"multiLineActualTexts": Array [
- "浙江省",
+ "5",
],
- "originalText": "浙江省",
- "width": 103.8,
+ "originalText": 5,
+ "width": 80,
},
Object {
- "actualText": "浙江省",
+ "actualText": "6",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 7,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "6",
],
- "originalText": "浙江省",
- "width": 103.8,
+ "originalText": 6,
+ "width": 80,
},
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": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 46,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -19502,21 +28909,21 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "浙江省浙江省...",
"actualTextHeight": 15,
- "actualTextWidth": 37,
+ "actualTextWidth": 83,
"height": 20,
"multiLineActualTexts": Array [
- "浙江省",
+ "浙江省浙江省...",
],
- "originalText": "浙江省",
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
"width": 103.8,
},
Object {
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 46,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -19527,7 +28934,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -19538,7 +28945,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 100,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -19546,44 +28953,43 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "四川省",
+ "actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
- "四川省",
+ "浙江省",
],
- "originalText": "四川省",
+ "originalText": "浙江省",
"width": 103.8,
},
Object {
- "actualText": "绍兴市",
+ "actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
- "绍兴市",
+ "浙江省",
],
- "originalText": "绍兴市",
+ "originalText": "浙江省",
"width": 103.8,
},
Object {
- "actualText": "杭州市杭州市杭州市杭州市杭...",
- "actualTextHeight": 30,
- "actualTextWidth": 168,
- "height": 20,
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "杭州市杭州市杭",
- "州市杭州市杭...",
+ "浙江省",
],
- "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "originalText": "浙江省",
"width": 103.8,
},
Object {
"actualText": "绍兴市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 46,
"multiLineActualTexts": Array [
"绍兴市",
],
@@ -19591,43 +28997,21 @@ 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,
+ "actualTextWidth": 83,
"height": 20,
"multiLineActualTexts": Array [
- "杭州市",
+ "杭州市杭州市...",
],
- "originalText": "杭州市",
+ "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
"width": 103.8,
},
Object {
"actualText": "绍兴市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 46,
"multiLineActualTexts": Array [
"绍兴市",
],
@@ -19638,7 +29022,7 @@ Array [
"actualText": "宁波市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"宁波市",
],
@@ -19649,7 +29033,7 @@ Array [
"actualText": "舟山市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 100,
"multiLineActualTexts": Array [
"舟山市",
],
@@ -19660,7 +29044,7 @@ Array [
"actualText": "杭州市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"杭州市",
],
@@ -19671,7 +29055,7 @@ Array [
"actualText": "绍兴市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"绍兴市",
],
@@ -19682,7 +29066,7 @@ Array [
"actualText": "宁波市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"宁波市",
],
@@ -19690,99 +29074,87 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "舟山市",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 46,
"multiLineActualTexts": Array [
- "舟山市",
+ "家具",
],
- "originalText": "舟山市",
+ "originalText": "家具",
"width": 103.8,
},
Object {
- "actualText": "杭州市",
+ "actualText": "家具家具家具...",
"actualTextHeight": 15,
- "actualTextWidth": 37,
+ "actualTextWidth": 83,
"height": 20,
"multiLineActualTexts": Array [
- "杭州市",
+ "家具家具家具...",
],
- "originalText": "杭州市",
+ "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
"width": 103.8,
},
Object {
- "actualText": "绍兴市",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 46,
"multiLineActualTexts": Array [
- "绍兴市",
+ "家具",
],
- "originalText": "绍兴市",
+ "originalText": "家具",
"width": 103.8,
},
Object {
- "actualText": "宁波市",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "宁波市",
+ "家具",
],
- "originalText": "宁波市",
+ "originalText": "家具",
"width": 103.8,
},
Object {
- "actualText": "舟山市",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 100,
"multiLineActualTexts": Array [
- "舟山市",
+ "家具",
],
- "originalText": "舟山市",
+ "originalText": "家具",
"width": 103.8,
},
Object {
- "actualText": "成都市",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "成都市",
+ "家具",
],
- "originalText": "成都市",
+ "originalText": "家具",
"width": 103.8,
},
Object {
"actualText": "家具",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"家具",
],
"originalText": "家具",
"width": 103.8,
},
- Object {
- "actualText": "家具家具家具家具家具家具家...",
- "actualTextHeight": 30,
- "actualTextWidth": 168,
- "height": 20,
- "multiLineActualTexts": Array [
- "家具家具家具家",
- "具家具家具家...",
- ],
- "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
- "width": 103.8,
- },
Object {
"actualText": "家具",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"家具",
],
@@ -19790,580 +29162,625 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "家具",
+ "actualText": "桌子",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 20,
+ "height": 46,
"multiLineActualTexts": Array [
- "家具",
+ "桌子",
],
- "originalText": "家具",
+ "originalText": "桌子",
"width": 103.8,
},
Object {
- "actualText": "家具",
+ "actualText": "桌子桌子桌子...",
"actualTextHeight": 15,
- "actualTextWidth": 25,
+ "actualTextWidth": 83,
"height": 20,
"multiLineActualTexts": Array [
- "家具",
+ "桌子桌子桌子...",
],
- "originalText": "家具",
+ "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
"width": 103.8,
},
Object {
- "actualText": "家具",
+ "actualText": "桌子",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 20,
+ "height": 46,
"multiLineActualTexts": Array [
- "家具",
+ "桌子",
],
- "originalText": "家具",
+ "originalText": "桌子",
"width": 103.8,
},
Object {
- "actualText": "家具",
+ "actualText": "桌子",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
- "家具",
+ "桌子",
],
- "originalText": "家具",
+ "originalText": "桌子",
"width": 103.8,
},
Object {
- "actualText": "家具",
+ "actualText": "桌子",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 20,
+ "height": 100,
"multiLineActualTexts": Array [
- "家具",
+ "桌子",
],
- "originalText": "家具",
+ "originalText": "桌子",
"width": 103.8,
},
Object {
- "actualText": "家具",
+ "actualText": "沙发",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
- "家具",
+ "沙发",
],
- "originalText": "家具",
+ "originalText": "沙发",
"width": 103.8,
},
Object {
- "actualText": "办公用品",
+ "actualText": "沙发",
"actualTextHeight": 15,
- "actualTextWidth": 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,
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 46,
"multiLineActualTexts": Array [
- "办公用品",
+ "2367236723611",
+ "11",
],
- "originalText": "办公用品",
+ "originalText": 236723672361111,
"width": 103.8,
},
Object {
- "actualText": "办公用品",
+ "actualText": "77897789778...",
"actualTextHeight": 15,
- "actualTextWidth": 49,
+ "actualTextWidth": 84,
"height": 20,
"multiLineActualTexts": Array [
- "办公用品",
+ "77897789778...",
],
- "originalText": "办公用品",
+ "originalText": "7789778977897789778977897789",
"width": 103.8,
},
Object {
- "actualText": "办公用品",
- "actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 20,
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 46,
"multiLineActualTexts": Array [
- "办公用品",
+ "2367236723611",
+ "11",
],
- "originalText": "办公用品",
+ "originalText": 236723672361111,
"width": 103.8,
},
Object {
- "actualText": "办公用品",
+ "actualText": "3877",
"actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 20,
+ "actualTextWidth": 27,
+ "height": 30,
"multiLineActualTexts": Array [
- "办公用品",
+ "3877",
],
- "originalText": "办公用品",
+ "originalText": 3877,
"width": 103.8,
},
Object {
- "actualText": "办公用品",
+ "actualText": "4342",
"actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 20,
+ "actualTextWidth": 27,
+ "height": 100,
"multiLineActualTexts": Array [
- "办公用品",
+ "4342",
],
- "originalText": "办公用品",
+ "originalText": 4342,
"width": 103.8,
},
Object {
- "actualText": "办公用品",
+ "actualText": "5343",
"actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 20,
+ "actualTextWidth": 27,
+ "height": 30,
"multiLineActualTexts": Array [
- "办公用品",
+ "5343",
],
- "originalText": "办公用品",
+ "originalText": 5343,
"width": 103.8,
},
Object {
- "actualText": "家具",
+ "actualText": "632",
"actualTextHeight": 15,
- "actualTextWidth": 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,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 1`] = `
+Array [
Object {
- "actualText": "桌子桌子桌子桌子桌子桌子桌...",
- "actualTextHeight": 30,
- "actualTextWidth": 168,
- "height": 20,
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 64,
"multiLineActualTexts": Array [
- "桌子桌子桌子桌",
- "子桌子桌子桌...",
+ "序号",
],
- "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
- "width": 103.8,
+ "originalText": "序号",
+ "width": 80,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 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": 100,
"multiLineActualTexts": Array [
- "桌子",
+ "3",
],
- "originalText": "桌子",
- "width": 103.8,
+ "originalText": 3,
+ "width": 80,
},
Object {
- "actualText": "沙发",
+ "actualText": "4",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 20,
+ "actualTextWidth": 7,
+ "height": 100,
"multiLineActualTexts": Array [
- "沙发",
+ "4",
],
- "originalText": "沙发",
- "width": 103.8,
+ "originalText": 4,
+ "width": 80,
},
+]
+`;
+
+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,
+ "actualText": "序号",
+ "actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 20,
+ "height": 64,
"multiLineActualTexts": Array [
- "沙发",
+ "序号",
],
- "originalText": "沙发",
- "width": 103.8,
+ "originalText": "序号",
+ "width": 80,
},
Object {
- "actualText": "沙发",
- "actualTextHeight": 15,
+ "actualText": "省份",
+ "actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 20,
+ "height": 64,
"multiLineActualTexts": Array [
- "沙发",
+ "省份",
],
- "originalText": "沙发",
+ "originalText": "省份",
"width": 103.8,
},
Object {
- "actualText": "沙发",
- "actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 20,
+ "actualText": "城市城市城市城市城市城市城市城市城市城市...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 253,
+ "height": 64,
"multiLineActualTexts": Array [
- "沙发",
+ "城市城市城市城",
+ "市城市城市城市",
+ "城市城市城市...",
],
- "originalText": "沙发",
+ "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
"width": 103.8,
},
Object {
- "actualText": "笔",
- "actualTextHeight": 15,
- "actualTextWidth": 13,
- "height": 20,
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualTextHeight": 48,
+ "actualTextWidth": 243,
+ "height": 64,
"multiLineActualTexts": Array [
- "笔",
+ "类别类别类别类",
+ "别类别类别类别",
+ "类别类别类别",
],
- "originalText": "笔",
+ "originalText": "类别类别类别类别类别类别类别类别类别类别",
"width": 103.8,
},
Object {
- "actualText": "笔",
- "actualTextHeight": 15,
- "actualTextWidth": 13,
- "height": 20,
+ "actualText": "子类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 64,
"multiLineActualTexts": Array [
- "笔",
+ "子类别",
],
- "originalText": "笔",
+ "originalText": "子类别",
"width": 103.8,
},
Object {
- "actualText": "笔",
- "actualTextHeight": 15,
- "actualTextWidth": 13,
- "height": 20,
+ "actualText": "数量数量数量数量数量数量数量数量数量数量...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 253,
+ "height": 64,
"multiLineActualTexts": Array [
- "笔",
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量...",
],
- "originalText": "笔",
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
"width": 103.8,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 4`] = `Array []`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 5`] = `
+Array [
Object {
- "actualText": "笔",
+ "actualText": "1",
"actualTextHeight": 15,
- "actualTextWidth": 13,
- "height": 20,
+ "actualTextWidth": 7,
+ "height": 100,
"multiLineActualTexts": Array [
- "笔",
+ "1",
],
- "originalText": "笔",
- "width": 103.8,
+ "originalText": 1,
+ "width": 80,
},
Object {
- "actualText": "纸张",
+ "actualText": "2",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 20,
+ "actualTextWidth": 7,
+ "height": 100,
"multiLineActualTexts": Array [
- "纸张",
+ "2",
],
- "originalText": "纸张",
- "width": 103.8,
+ "originalText": 2,
+ "width": 80,
},
Object {
- "actualText": "纸张",
+ "actualText": "3",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 20,
+ "actualTextWidth": 7,
+ "height": 100,
"multiLineActualTexts": Array [
- "纸张",
+ "3",
],
- "originalText": "纸张",
- "width": 103.8,
+ "originalText": 3,
+ "width": 80,
},
Object {
- "actualText": "纸张",
+ "actualText": "4",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 20,
+ "actualTextWidth": 7,
+ "height": 100,
"multiLineActualTexts": Array [
- "纸张",
+ "4",
],
- "originalText": "纸张",
- "width": 103.8,
+ "originalText": 4,
+ "width": 80,
},
Object {
- "actualText": "纸张",
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 20,
+ "actualTextWidth": 37,
+ "height": 100,
"multiLineActualTexts": Array [
- "纸张",
+ "浙江省",
],
- "originalText": "纸张",
+ "originalText": "浙江省",
"width": 103.8,
},
Object {
- "actualText": "桌子",
- "actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 20,
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "actualTextHeight": 75,
+ "actualTextWidth": 365,
+ "height": 100,
"multiLineActualTexts": Array [
- "桌子",
+ "浙江省浙江省浙",
+ "江省浙江省浙江",
+ "省浙江省浙江省",
+ "浙江省浙江省浙",
+ "江省",
],
- "originalText": "桌子",
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
"width": 103.8,
},
Object {
- "actualText": "236723672361111",
- "actualTextHeight": 30,
- "actualTextWidth": 100,
- "height": 20,
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 100,
"multiLineActualTexts": Array [
- "2367236723611",
- "11",
+ "浙江省",
],
- "originalText": 236723672361111,
+ "originalText": "浙江省",
"width": 103.8,
},
Object {
- "actualText": "778977897789778977897789...",
- "actualTextHeight": 30,
- "actualTextWidth": 172,
- "height": 20,
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 100,
"multiLineActualTexts": Array [
- "7789778977897",
- "78977897789...",
+ "浙江省",
],
- "originalText": "7789778977897789778977897789",
+ "originalText": "浙江省",
"width": 103.8,
},
Object {
- "actualText": "236723672361111",
- "actualTextHeight": 30,
- "actualTextWidth": 100,
- "height": 20,
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 100,
"multiLineActualTexts": Array [
- "2367236723611",
- "11",
+ "绍兴市",
],
- "originalText": 236723672361111,
+ "originalText": "绍兴市",
"width": 103.8,
},
Object {
- "actualText": "3877",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 20,
+ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "actualTextHeight": 75,
+ "actualTextWidth": 365,
+ "height": 100,
"multiLineActualTexts": Array [
- "3877",
+ "杭州市杭州市杭",
+ "州市杭州市杭州",
+ "市杭州市杭州市",
+ "杭州市杭州市杭",
+ "州市",
],
- "originalText": 3877,
+ "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
"width": 103.8,
},
Object {
- "actualText": "4342",
+ "actualText": "绍兴市",
"actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 20,
+ "actualTextWidth": 37,
+ "height": 100,
"multiLineActualTexts": Array [
- "4342",
+ "绍兴市",
],
- "originalText": 4342,
+ "originalText": "绍兴市",
"width": 103.8,
},
Object {
- "actualText": "5343",
+ "actualText": "宁波市",
"actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 20,
+ "actualTextWidth": 37,
+ "height": 100,
"multiLineActualTexts": Array [
- "5343",
+ "宁波市",
],
- "originalText": 5343,
+ "originalText": "宁波市",
"width": 103.8,
},
Object {
- "actualText": "632",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 21,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 100,
"multiLineActualTexts": Array [
- "632",
+ "家具",
],
- "originalText": 632,
+ "originalText": "家具",
"width": 103.8,
},
Object {
- "actualText": "7234",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 20,
+ "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "actualTextHeight": 60,
+ "actualTextWidth": 340,
+ "height": 100,
"multiLineActualTexts": Array [
- "7234",
+ "家具家具家具家",
+ "具家具家具家具",
+ "家具家具家具家",
+ "具家具家具家具",
],
- "originalText": 7234,
+ "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
"width": 103.8,
},
Object {
- "actualText": "834",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 21,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 100,
"multiLineActualTexts": Array [
- "834",
+ "家具",
],
- "originalText": 834,
+ "originalText": "家具",
"width": 103.8,
},
Object {
- "actualText": "945",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 21,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 100,
"multiLineActualTexts": Array [
- "945",
+ "家具",
],
- "originalText": 945,
+ "originalText": "家具",
"width": 103.8,
},
Object {
- "actualText": "1304",
+ "actualText": "桌子",
"actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 100,
"multiLineActualTexts": Array [
- "1304",
+ "桌子",
],
- "originalText": 1304,
+ "originalText": "桌子",
"width": 103.8,
},
Object {
- "actualText": "1145",
- "actualTextHeight": 15,
- "actualTextWidth": 26,
- "height": 20,
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "actualTextHeight": 75,
+ "actualTextWidth": 365,
+ "height": 100,
"multiLineActualTexts": Array [
- "1145",
+ "桌子桌子桌子桌",
+ "子桌子桌子桌子",
+ "桌子桌子桌子桌",
+ "子桌子桌子桌子",
+ "桌子",
],
- "originalText": 1145,
+ "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
"width": 103.8,
},
Object {
- "actualText": "1432",
+ "actualText": "桌子",
"actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 100,
"multiLineActualTexts": Array [
- "1432",
+ "桌子",
],
- "originalText": 1432,
+ "originalText": "桌子",
"width": 103.8,
},
Object {
- "actualText": "1343",
+ "actualText": "桌子",
"actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 100,
"multiLineActualTexts": Array [
- "1343",
+ "桌子",
],
- "originalText": 1343,
+ "originalText": "桌子",
"width": 103.8,
},
Object {
- "actualText": "1354",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 20,
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 100,
"multiLineActualTexts": Array [
- "1354",
+ "2367236723611",
+ "11",
],
- "originalText": 1354,
+ "originalText": 236723672361111,
"width": 103.8,
},
Object {
- "actualText": "1523",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 20,
+ "actualText": "7789778977897789778977897789",
+ "actualTextHeight": 45,
+ "actualTextWidth": 189,
+ "height": 100,
"multiLineActualTexts": Array [
- "1523",
+ "7789778977897",
+ "7897789778977",
+ "89",
],
- "originalText": 1523,
+ "originalText": "7789778977897789778977897789",
"width": 103.8,
},
Object {
- "actualText": "1634",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 20,
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 100,
"multiLineActualTexts": Array [
- "1634",
+ "2367236723611",
+ "11",
],
- "originalText": 1634,
+ "originalText": 236723672361111,
"width": 103.8,
},
Object {
- "actualText": "1723",
+ "actualText": "3877",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 20,
+ "height": 100,
"multiLineActualTexts": Array [
- "1723",
+ "3877",
],
- "originalText": 1723,
+ "originalText": 3877,
"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`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 1`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 64,
"multiLineActualTexts": Array [
"序号",
],
@@ -20373,7 +29790,7 @@ 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 2`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 2`] = `
Array [
Object {
"actualText": "1",
@@ -20401,7 +29818,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 100,
+ "height": 46,
"multiLineActualTexts": Array [
"3",
],
@@ -20412,23 +29829,45 @@ 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,
+ },
]
`;
-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`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 3`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 64,
"multiLineActualTexts": Array [
"序号",
],
@@ -20439,7 +29878,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 64,
"multiLineActualTexts": Array [
"省份",
],
@@ -20447,25 +29886,27 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "城市城市城市城市城市城市城...",
- "actualTextHeight": 32,
- "actualTextWidth": 168,
- "height": 40,
+ "actualText": "城市城市城市城市城市城市城市城市城市城市...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 253,
+ "height": 64,
"multiLineActualTexts": Array [
"城市城市城市城",
- "市城市城市城...",
+ "市城市城市城市",
+ "城市城市城市...",
],
"originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
"width": 103.8,
},
Object {
- "actualText": "类别类别类别类别类别类别类...",
- "actualTextHeight": 32,
- "actualTextWidth": 168,
- "height": 40,
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualTextHeight": 48,
+ "actualTextWidth": 243,
+ "height": 64,
"multiLineActualTexts": Array [
"类别类别类别类",
- "别类别类别类...",
+ "别类别类别类别",
+ "类别类别类别",
],
"originalText": "类别类别类别类别类别类别类别类别类别类别",
"width": 103.8,
@@ -20474,7 +29915,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 40,
+ "height": 64,
"multiLineActualTexts": Array [
"子类别",
],
@@ -20482,13 +29923,14 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "数量数量数量数量数量数量数...",
- "actualTextHeight": 32,
- "actualTextWidth": 168,
- "height": 40,
+ "actualText": "数量数量数量数量数量数量数量数量数量数量...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 253,
+ "height": 64,
"multiLineActualTexts": Array [
"数量数量数量数",
- "量数量数量数...",
+ "量数量数量数量",
+ "数量数量数量...",
],
"originalText": "数量数量数量数量数量数量数量数量数量数量数量",
"width": 103.8,
@@ -20496,9 +29938,9 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style more than actual text height by dataCell.height 4`] = `Array []`;
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 4`] = `Array []`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style more than actual text height by dataCell.height 5`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 5`] = `
Array [
Object {
"actualText": "1",
@@ -20526,7 +29968,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 100,
+ "height": 46,
"multiLineActualTexts": Array [
"3",
],
@@ -20537,13 +29979,35 @@ 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": "浙江省",
"actualTextHeight": 15,
@@ -20556,13 +30020,16 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江省浙...",
- "actualTextHeight": 30,
- "actualTextWidth": 168,
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "actualTextHeight": 75,
+ "actualTextWidth": 365,
"height": 100,
"multiLineActualTexts": Array [
"浙江省浙江省浙",
- "江省浙江省浙...",
+ "江省浙江省浙江",
+ "省浙江省浙江省",
+ "浙江省浙江省浙",
+ "江省",
],
"originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
"width": 103.8,
@@ -20571,7 +30038,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 100,
+ "height": 46,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -20582,7 +30049,29 @@ 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 [
"浙江省",
],
@@ -20601,13 +30090,16 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "杭州市杭州市杭州市杭州市杭...",
- "actualTextHeight": 30,
- "actualTextWidth": 168,
+ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "actualTextHeight": 75,
+ "actualTextWidth": 365,
"height": 100,
"multiLineActualTexts": Array [
"杭州市杭州市杭",
- "州市杭州市杭...",
+ "州市杭州市杭州",
+ "市杭州市杭州市",
+ "杭州市杭州市杭",
+ "州市",
],
"originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
"width": 103.8,
@@ -20616,7 +30108,7 @@ Array [
"actualText": "绍兴市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 100,
+ "height": 46,
"multiLineActualTexts": Array [
"绍兴市",
],
@@ -20627,13 +30119,35 @@ 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,
@@ -20646,13 +30160,15 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "家具家具家具家具家具家具家...",
- "actualTextHeight": 30,
- "actualTextWidth": 168,
+ "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "actualTextHeight": 60,
+ "actualTextWidth": 340,
"height": 100,
"multiLineActualTexts": Array [
"家具家具家具家",
- "具家具家具家...",
+ "具家具家具家具",
+ "家具家具家具家",
+ "具家具家具家具",
],
"originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
"width": 103.8,
@@ -20661,7 +30177,7 @@ Array [
"actualText": "家具",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 100,
+ "height": 46,
"multiLineActualTexts": Array [
"家具",
],
@@ -20672,7 +30188,29 @@ Array [
"actualText": "家具",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 100,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
"家具",
],
@@ -20691,13 +30229,16 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "桌子桌子桌子桌子桌子桌子桌...",
- "actualTextHeight": 30,
- "actualTextWidth": 168,
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "actualTextHeight": 75,
+ "actualTextWidth": 365,
"height": 100,
"multiLineActualTexts": Array [
"桌子桌子桌子桌",
- "子桌子桌子桌...",
+ "子桌子桌子桌子",
+ "桌子桌子桌子桌",
+ "子桌子桌子桌子",
+ "桌子",
],
"originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
"width": 103.8,
@@ -20706,7 +30247,7 @@ Array [
"actualText": "桌子",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 100,
+ "height": 46,
"multiLineActualTexts": Array [
"桌子",
],
@@ -20717,13 +30258,35 @@ Array [
"actualText": "桌子",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 100,
+ "height": 30,
"multiLineActualTexts": Array [
"桌子",
],
"originalText": "桌子",
"width": 103.8,
},
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "沙发",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "沙发",
+ ],
+ "originalText": "沙发",
+ "width": 103.8,
+ },
Object {
"actualText": "236723672361111",
"actualTextHeight": 30,
@@ -20737,13 +30300,14 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "778977897789778977897789...",
- "actualTextHeight": 30,
- "actualTextWidth": 172,
+ "actualText": "7789778977897789778977897789",
+ "actualTextHeight": 45,
+ "actualTextWidth": 189,
"height": 100,
"multiLineActualTexts": Array [
"7789778977897",
- "78977897789...",
+ "7897789778977",
+ "89",
],
"originalText": "7789778977897789778977897789",
"width": 103.8,
@@ -20752,7 +30316,7 @@ Array [
"actualText": "236723672361111",
"actualTextHeight": 30,
"actualTextWidth": 100,
- "height": 100,
+ "height": 46,
"multiLineActualTexts": Array [
"2367236723611",
"11",
@@ -20764,23 +30328,45 @@ Array [
"actualText": "3877",
"actualTextHeight": 15,
"actualTextWidth": 27,
- "height": 100,
+ "height": 30,
"multiLineActualTexts": Array [
"3877",
],
"originalText": 3877,
"width": 103.8,
},
+ Object {
+ "actualText": "4342",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "4342",
+ ],
+ "originalText": 4342,
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "5343",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "5343",
+ ],
+ "originalText": 5343,
+ "width": 103.8,
+ },
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height if custom cell style less than actual text height by colCell.height 1`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 1`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"序号",
],
@@ -20790,13 +30376,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height if custom cell style less than actual text height by colCell.height 2`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 2`] = `
Array [
Object {
"actualText": "1",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 46,
+ "height": 30,
"multiLineActualTexts": Array [
"1",
],
@@ -20807,7 +30393,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 46,
+ "height": 30,
"multiLineActualTexts": Array [
"2",
],
@@ -20818,7 +30404,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 46,
+ "height": 30,
"multiLineActualTexts": Array [
"3",
],
@@ -20913,16 +30499,38 @@ Array [
"originalText": 11,
"width": 80,
},
+ Object {
+ "actualText": "12",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "12",
+ ],
+ "originalText": 12,
+ "width": 80,
+ },
+ Object {
+ "actualText": "13",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "13",
+ ],
+ "originalText": 13,
+ "width": 80,
+ },
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height if custom cell style less than actual text height by colCell.height 3`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 3`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"序号",
],
@@ -20933,7 +30541,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"省份",
],
@@ -20941,25 +30549,23 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "城市城市城市城市城市城市城...",
- "actualTextHeight": 32,
- "actualTextWidth": 168,
- "height": 20,
+ "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "actualTextHeight": 16,
+ "actualTextWidth": 289,
+ "height": 30,
"multiLineActualTexts": Array [
- "城市城市城市城",
- "市城市城市城...",
+ "城市城市城市城市城市城市城市城市城市城市城市城市",
],
"originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
"width": 103.8,
},
Object {
- "actualText": "类别类别类别类别类别类别类...",
- "actualTextHeight": 32,
- "actualTextWidth": 168,
- "height": 20,
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 241,
+ "height": 30,
"multiLineActualTexts": Array [
- "类别类别类别类",
- "别类别类别类...",
+ "类别类别类别类别类别类别类别类别类别类别",
],
"originalText": "类别类别类别类别类别类别类别类别类别类别",
"width": 103.8,
@@ -20968,7 +30574,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"子类别",
],
@@ -20976,13 +30582,12 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "数量数量数量数量数量数量数...",
- "actualTextHeight": 32,
- "actualTextWidth": 168,
- "height": 20,
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 16,
+ "actualTextWidth": 265,
+ "height": 30,
"multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数...",
+ "数量数量数量数量数量数量数量数量数量数量数量",
],
"originalText": "数量数量数量数量数量数量数量数量数量数量数量",
"width": 103.8,
@@ -20990,15 +30595,15 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height if custom cell style less than actual text height by colCell.height 4`] = `Array []`;
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 4`] = `Array []`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust cell height if custom cell style less than actual text height by colCell.height 5`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 5`] = `
Array [
Object {
"actualText": "1",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 46,
+ "height": 30,
"multiLineActualTexts": Array [
"1",
],
@@ -21009,7 +30614,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 46,
+ "height": 30,
"multiLineActualTexts": Array [
"2",
],
@@ -21020,7 +30625,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 46,
+ "height": 30,
"multiLineActualTexts": Array [
"3",
],
@@ -21115,11 +30720,33 @@ Array [
"originalText": 11,
"width": 80,
},
+ Object {
+ "actualText": "12",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "12",
+ ],
+ "originalText": 12,
+ "width": 80,
+ },
+ Object {
+ "actualText": "13",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "13",
+ ],
+ "originalText": 13,
+ "width": 80,
+ },
Object {
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 46,
+ "height": 30,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -21127,13 +30754,12 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江省浙...",
- "actualTextHeight": 30,
- "actualTextWidth": 168,
- "height": 46,
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 361,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省浙江省浙",
- "江省浙江省浙...",
+ "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
],
"originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
"width": 103.8,
@@ -21142,7 +30768,29 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 46,
+ "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 [
"浙江省",
],
@@ -21241,7 +30889,7 @@ Array [
"actualText": "绍兴市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 46,
+ "height": 30,
"multiLineActualTexts": Array [
"绍兴市",
],
@@ -21249,13 +30897,12 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "杭州市杭州市杭州市杭州市杭...",
- "actualTextHeight": 30,
- "actualTextWidth": 168,
- "height": 46,
+ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 361,
+ "height": 30,
"multiLineActualTexts": Array [
- "杭州市杭州市杭",
- "州市杭州市杭...",
+ "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
],
"originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
"width": 103.8,
@@ -21264,7 +30911,7 @@ Array [
"actualText": "绍兴市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 46,
+ "height": 30,
"multiLineActualTexts": Array [
"绍兴市",
],
@@ -21359,11 +31006,33 @@ Array [
"originalText": "绍兴市",
"width": 103.8,
},
+ Object {
+ "actualText": "宁波市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "宁波市",
+ ],
+ "originalText": "宁波市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "舟山市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "舟山市",
+ ],
+ "originalText": "舟山市",
+ "width": 103.8,
+ },
Object {
"actualText": "家具",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 46,
+ "height": 30,
"multiLineActualTexts": Array [
"家具",
],
@@ -21371,13 +31040,12 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "家具家具家具家具家具家具家...",
- "actualTextHeight": 30,
- "actualTextWidth": 168,
- "height": 46,
+ "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 337,
+ "height": 30,
"multiLineActualTexts": Array [
- "家具家具家具家",
- "具家具家具家...",
+ "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
],
"originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
"width": 103.8,
@@ -21386,7 +31054,7 @@ Array [
"actualText": "家具",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 46,
+ "height": 30,
"multiLineActualTexts": Array [
"家具",
],
@@ -21481,11 +31149,33 @@ 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 [
"桌子",
],
@@ -21493,13 +31183,12 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "桌子桌子桌子桌子桌子桌子桌...",
- "actualTextHeight": 30,
- "actualTextWidth": 168,
- "height": 46,
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "actualTextHeight": 15,
+ "actualTextWidth": 361,
+ "height": 30,
"multiLineActualTexts": Array [
- "桌子桌子桌子桌",
- "子桌子桌子桌...",
+ "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
],
"originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
"width": 103.8,
@@ -21508,7 +31197,7 @@ Array [
"actualText": "桌子",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 46,
+ "height": 30,
"multiLineActualTexts": Array [
"桌子",
],
@@ -21603,38 +31292,57 @@ Array [
"originalText": "笔",
"width": 103.8,
},
+ Object {
+ "actualText": "笔",
+ "actualTextHeight": 15,
+ "actualTextWidth": 13,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "笔",
+ ],
+ "originalText": "笔",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "笔",
+ "actualTextHeight": 15,
+ "actualTextWidth": 13,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "笔",
+ ],
+ "originalText": "笔",
+ "width": 103.8,
+ },
Object {
"actualText": "236723672361111",
- "actualTextHeight": 30,
- "actualTextWidth": 100,
- "height": 46,
+ "actualTextHeight": 15,
+ "actualTextWidth": 98,
+ "height": 30,
"multiLineActualTexts": Array [
- "2367236723611",
- "11",
+ "236723672361111",
],
"originalText": 236723672361111,
"width": 103.8,
},
Object {
- "actualText": "778977897789778977897789...",
- "actualTextHeight": 30,
- "actualTextWidth": 172,
- "height": 46,
+ "actualText": "7789778977897789778977897789",
+ "actualTextHeight": 15,
+ "actualTextWidth": 187,
+ "height": 30,
"multiLineActualTexts": Array [
- "7789778977897",
- "78977897789...",
+ "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,
@@ -21727,16 +31435,38 @@ Array [
"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 less 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": 56,
+ "height": 80,
"multiLineActualTexts": Array [
"序号",
],
@@ -21746,13 +31476,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.height 2`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 2`] = `
Array [
Object {
"actualText": "1",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 46,
"multiLineActualTexts": Array [
"1",
],
@@ -21763,7 +31493,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 91,
"multiLineActualTexts": Array [
"2",
],
@@ -21774,7 +31504,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 46,
"multiLineActualTexts": Array [
"3",
],
@@ -21785,7 +31515,7 @@ Array [
"actualText": "4",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"4",
],
@@ -21796,7 +31526,7 @@ Array [
"actualText": "5",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"5",
],
@@ -21804,147 +31534,48 @@ Array [
"width": 80,
},
Object {
- "actualText": "6",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 20,
- "multiLineActualTexts": Array [
- "6",
- ],
- "originalText": 6,
- "width": 80,
- },
- Object {
- "actualText": "7",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 20,
- "multiLineActualTexts": Array [
- "7",
- ],
- "originalText": 7,
- "width": 80,
- },
- Object {
- "actualText": "8",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 20,
- "multiLineActualTexts": Array [
- "8",
- ],
- "originalText": 8,
- "width": 80,
- },
- Object {
- "actualText": "9",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 20,
- "multiLineActualTexts": Array [
- "9",
- ],
- "originalText": 9,
- "width": 80,
- },
- Object {
- "actualText": "10",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 20,
- "multiLineActualTexts": Array [
- "10",
- ],
- "originalText": 10,
- "width": 80,
- },
- Object {
- "actualText": "11",
- "actualTextHeight": 15,
- "actualTextWidth": 13,
- "height": 20,
- "multiLineActualTexts": Array [
- "11",
- ],
- "originalText": 11,
- "width": 80,
- },
- Object {
- "actualText": "12",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 20,
- "multiLineActualTexts": Array [
- "12",
- ],
- "originalText": 12,
- "width": 80,
- },
- Object {
- "actualText": "13",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 20,
- "multiLineActualTexts": Array [
- "13",
- ],
- "originalText": 13,
- "width": 80,
- },
- Object {
- "actualText": "14",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 20,
- "multiLineActualTexts": Array [
- "14",
- ],
- "originalText": 14,
- "width": 80,
- },
- Object {
- "actualText": "15",
+ "actualText": "6",
"actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 20,
+ "actualTextWidth": 7,
+ "height": 30,
"multiLineActualTexts": Array [
- "15",
+ "6",
],
- "originalText": 15,
+ "originalText": 6,
"width": 80,
},
Object {
- "actualText": "16",
+ "actualText": "7",
"actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 20,
+ "actualTextWidth": 7,
+ "height": 30,
"multiLineActualTexts": Array [
- "16",
+ "7",
],
- "originalText": 16,
+ "originalText": 7,
"width": 80,
},
Object {
- "actualText": "17",
+ "actualText": "8",
"actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 20,
+ "actualTextWidth": 7,
+ "height": 30,
"multiLineActualTexts": Array [
- "17",
+ "8",
],
- "originalText": 17,
+ "originalText": 8,
"width": 80,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 3`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 3`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 80,
"multiLineActualTexts": Array [
"序号",
],
@@ -21955,7 +31586,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 80,
"multiLineActualTexts": Array [
"省份",
],
@@ -21963,14 +31594,15 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "城市城市城市城市城市城市城市城市城市城市...",
- "actualTextHeight": 48,
- "actualTextWidth": 253,
- "height": 56,
+ "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "actualTextHeight": 64,
+ "actualTextWidth": 292,
+ "height": 80,
"multiLineActualTexts": Array [
"城市城市城市城",
"市城市城市城市",
- "城市城市城市...",
+ "城市城市城市城",
+ "市城市",
],
"originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
"width": 103.8,
@@ -21979,7 +31611,7 @@ Array [
"actualText": "类别类别类别类别类别类别类别类别类别类别",
"actualTextHeight": 48,
"actualTextWidth": 243,
- "height": 56,
+ "height": 80,
"multiLineActualTexts": Array [
"类别类别类别类",
"别类别类别类别",
@@ -21992,7 +31624,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 56,
+ "height": 80,
"multiLineActualTexts": Array [
"子类别",
],
@@ -22000,14 +31632,15 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量...",
- "actualTextHeight": 48,
- "actualTextWidth": 253,
- "height": 56,
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 64,
+ "actualTextWidth": 268,
+ "height": 80,
"multiLineActualTexts": Array [
"数量数量数量数",
"量数量数量数量",
- "数量数量数量...",
+ "数量数量数量数",
+ "量",
],
"originalText": "数量数量数量数量数量数量数量数量数量数量数量",
"width": 103.8,
@@ -22015,15 +31648,15 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 4`] = `Array []`;
+exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 4`] = `Array []`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.height 5`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines 5`] = `
Array [
Object {
"actualText": "1",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 46,
"multiLineActualTexts": Array [
"1",
],
@@ -22034,7 +31667,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 91,
"multiLineActualTexts": Array [
"2",
],
@@ -22045,7 +31678,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 46,
"multiLineActualTexts": Array [
"3",
],
@@ -22056,7 +31689,7 @@ Array [
"actualText": "4",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"4",
],
@@ -22067,7 +31700,7 @@ Array [
"actualText": "5",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"5",
],
@@ -22078,7 +31711,7 @@ Array [
"actualText": "6",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"6",
],
@@ -22089,7 +31722,7 @@ Array [
"actualText": "7",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"7",
],
@@ -22100,7 +31733,7 @@ Array [
"actualText": "8",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"8",
],
@@ -22108,1061 +31741,1147 @@ Array [
"width": 80,
},
Object {
- "actualText": "9",
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 20,
+ "actualTextWidth": 37,
+ "height": 46,
"multiLineActualTexts": Array [
- "9",
+ "浙江省",
],
- "originalText": 9,
- "width": 80,
+ "originalText": "浙江省",
+ "width": 103.8,
},
Object {
- "actualText": "10",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 20,
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "actualTextHeight": 75,
+ "actualTextWidth": 365,
+ "height": 91,
"multiLineActualTexts": Array [
- "10",
+ "浙江省浙江省浙",
+ "江省浙江省浙江",
+ "省浙江省浙江省",
+ "浙江省浙江省浙",
+ "江省",
],
- "originalText": 10,
- "width": 80,
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "width": 103.8,
},
Object {
- "actualText": "11",
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 13,
- "height": 20,
+ "actualTextWidth": 37,
+ "height": 46,
"multiLineActualTexts": Array [
- "11",
+ "浙江省",
],
- "originalText": 11,
- "width": 80,
+ "originalText": "浙江省",
+ "width": 103.8,
},
Object {
- "actualText": "12",
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 20,
+ "actualTextWidth": 37,
+ "height": 30,
"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,
- "height": 20,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "15",
+ "浙江省",
],
- "originalText": 15,
- "width": 80,
+ "originalText": "浙江省",
+ "width": 103.8,
},
Object {
- "actualText": "16",
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 20,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "16",
+ "浙江省",
],
- "originalText": 16,
- "width": 80,
+ "originalText": "浙江省",
+ "width": 103.8,
},
Object {
- "actualText": "17",
+ "actualText": "绍兴市",
"actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 20,
+ "actualTextWidth": 37,
+ "height": 46,
"multiLineActualTexts": Array [
- "17",
+ "绍兴市",
],
- "originalText": 17,
- "width": 80,
+ "originalText": "绍兴市",
+ "width": 103.8,
},
Object {
- "actualText": "浙江省",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "actualTextHeight": 75,
+ "actualTextWidth": 365,
+ "height": 91,
"multiLineActualTexts": Array [
- "浙江省",
+ "杭州市杭州市杭",
+ "州市杭州市杭州",
+ "市杭州市杭州市",
+ "杭州市杭州市杭",
+ "州市",
],
- "originalText": "浙江省",
+ "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
"width": 103.8,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 20,
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 46,
"multiLineActualTexts": Array [
- "浙江省浙江省浙",
- "江省浙江省浙江",
- "省浙江省浙江...",
+ "绍兴市",
],
- "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "originalText": "绍兴市",
"width": 103.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "宁波市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "宁波市",
],
- "originalText": "浙江省",
+ "originalText": "宁波市",
"width": 103.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "舟山市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "舟山市",
],
- "originalText": "浙江省",
+ "originalText": "舟山市",
"width": 103.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "杭州市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "杭州市",
],
- "originalText": "浙江省",
+ "originalText": "杭州市",
"width": 103.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "绍兴市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "绍兴市",
],
- "originalText": "浙江省",
+ "originalText": "绍兴市",
"width": 103.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "宁波市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "宁波市",
],
- "originalText": "浙江省",
+ "originalText": "宁波市",
"width": 103.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 46,
"multiLineActualTexts": Array [
- "浙江省",
+ "家具",
],
- "originalText": "浙江省",
+ "originalText": "家具",
"width": 103.8,
},
Object {
- "actualText": "浙江省",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "actualTextHeight": 60,
+ "actualTextWidth": 340,
+ "height": 91,
"multiLineActualTexts": Array [
- "浙江省",
+ "家具家具家具家",
+ "具家具家具家具",
+ "家具家具家具家",
+ "具家具家具家具",
],
- "originalText": "浙江省",
+ "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
"width": 103.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 46,
"multiLineActualTexts": Array [
- "浙江省",
+ "家具",
],
- "originalText": "浙江省",
+ "originalText": "家具",
"width": 103.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "家具",
],
- "originalText": "浙江省",
+ "originalText": "家具",
"width": 103.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "家具",
],
- "originalText": "浙江省",
+ "originalText": "家具",
"width": 103.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "家具",
],
- "originalText": "浙江省",
+ "originalText": "家具",
"width": 103.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "家具",
],
- "originalText": "浙江省",
+ "originalText": "家具",
"width": 103.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "家具",
],
- "originalText": "浙江省",
+ "originalText": "家具",
"width": 103.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "桌子",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 46,
"multiLineActualTexts": Array [
- "浙江省",
+ "桌子",
],
- "originalText": "浙江省",
+ "originalText": "桌子",
"width": 103.8,
},
Object {
- "actualText": "浙江省",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "actualTextHeight": 75,
+ "actualTextWidth": 365,
+ "height": 91,
"multiLineActualTexts": Array [
- "浙江省",
+ "桌子桌子桌子桌",
+ "子桌子桌子桌子",
+ "桌子桌子桌子桌",
+ "子桌子桌子桌子",
+ "桌子",
],
- "originalText": "浙江省",
+ "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
"width": 103.8,
},
Object {
- "actualText": "绍兴市",
+ "actualText": "桌子",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 46,
"multiLineActualTexts": Array [
- "绍兴市",
+ "桌子",
],
- "originalText": "绍兴市",
+ "originalText": "桌子",
"width": 103.8,
},
Object {
- "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 20,
+ "actualText": "桌子",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "杭州市杭州市杭",
- "州市杭州市杭州",
- "市杭州市杭州...",
+ "桌子",
],
- "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "originalText": "桌子",
"width": 103.8,
},
Object {
- "actualText": "绍兴市",
+ "actualText": "桌子",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "绍兴市",
+ "桌子",
],
- "originalText": "绍兴市",
+ "originalText": "桌子",
"width": 103.8,
},
Object {
- "actualText": "宁波市",
+ "actualText": "沙发",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "宁波市",
+ "沙发",
],
- "originalText": "宁波市",
+ "originalText": "沙发",
"width": 103.8,
},
Object {
- "actualText": "舟山市",
+ "actualText": "沙发",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "舟山市",
+ "沙发",
],
- "originalText": "舟山市",
+ "originalText": "沙发",
"width": 103.8,
},
Object {
- "actualText": "杭州市",
+ "actualText": "沙发",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "杭州市",
+ "沙发",
],
- "originalText": "杭州市",
+ "originalText": "沙发",
"width": 103.8,
},
Object {
- "actualText": "绍兴市",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 46,
"multiLineActualTexts": Array [
- "绍兴市",
+ "2367236723611",
+ "11",
],
- "originalText": "绍兴市",
+ "originalText": 236723672361111,
"width": 103.8,
},
Object {
- "actualText": "宁波市",
+ "actualText": "7789778977897789778977897789",
+ "actualTextHeight": 45,
+ "actualTextWidth": 189,
+ "height": 91,
+ "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": 37,
- "height": 20,
+ "actualTextWidth": 27,
+ "height": 30,
"multiLineActualTexts": Array [
- "宁波市",
+ "3877",
],
- "originalText": "宁波市",
+ "originalText": 3877,
"width": 103.8,
},
Object {
- "actualText": "舟山市",
+ "actualText": "4342",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 27,
+ "height": 30,
"multiLineActualTexts": Array [
- "舟山市",
+ "4342",
],
- "originalText": "舟山市",
+ "originalText": 4342,
"width": 103.8,
},
Object {
- "actualText": "杭州市",
+ "actualText": "5343",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 27,
+ "height": 30,
"multiLineActualTexts": Array [
- "杭州市",
+ "5343",
],
- "originalText": "杭州市",
+ "originalText": 5343,
"width": 103.8,
},
Object {
- "actualText": "绍兴市",
+ "actualText": "632",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 21,
+ "height": 30,
"multiLineActualTexts": Array [
- "绍兴市",
+ "632",
],
- "originalText": "绍兴市",
+ "originalText": 632,
"width": 103.8,
},
Object {
- "actualText": "宁波市",
+ "actualText": "7234",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 27,
+ "height": 30,
"multiLineActualTexts": Array [
- "宁波市",
+ "7234",
],
- "originalText": "宁波市",
+ "originalText": 7234,
"width": 103.8,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 1`] = `
+Array [
Object {
- "actualText": "舟山市",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
"multiLineActualTexts": Array [
- "舟山市",
+ "序号",
],
- "originalText": "舟山市",
- "width": 103.8,
+ "originalText": "序号",
+ "width": 80,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 2`] = `
+Array [
Object {
- "actualText": "杭州市",
+ "actualText": "1",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 7,
+ "height": 61,
"multiLineActualTexts": Array [
- "杭州市",
+ "1",
],
- "originalText": "杭州市",
- "width": 103.8,
+ "originalText": 1,
+ "width": 80,
},
Object {
- "actualText": "绍兴市",
+ "actualText": "2",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 7,
+ "height": 46,
"multiLineActualTexts": Array [
- "绍兴市",
+ "2",
],
- "originalText": "绍兴市",
- "width": 103.8,
+ "originalText": 2,
+ "width": 80,
},
Object {
- "actualText": "宁波市",
+ "actualText": "3",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 7,
+ "height": 91,
"multiLineActualTexts": Array [
- "宁波市",
+ "3",
],
- "originalText": "宁波市",
- "width": 103.8,
+ "originalText": 3,
+ "width": 80,
},
Object {
- "actualText": "舟山市",
+ "actualText": "4",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 7,
+ "height": 46,
"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": "家具家具家具家具家具家具家具家具家具家具...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "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": 25,
- "height": 20,
+ "actualTextWidth": 7,
+ "height": 30,
"multiLineActualTexts": Array [
- "家具",
+ "7",
],
- "originalText": "家具",
- "width": 103.8,
+ "originalText": 7,
+ "width": 80,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 3`] = `
+Array [
Object {
- "actualText": "家具",
- "actualTextHeight": 15,
+ "actualText": "序号",
+ "actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 20,
+ "height": 80,
"multiLineActualTexts": Array [
- "家具",
+ "序号",
],
- "originalText": "家具",
- "width": 103.8,
+ "originalText": "序号",
+ "width": 80,
},
Object {
- "actualText": "家具",
- "actualTextHeight": 15,
+ "actualText": "省份",
+ "actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 20,
+ "height": 80,
"multiLineActualTexts": Array [
- "家具",
+ "省份",
],
- "originalText": "家具",
+ "originalText": "省份",
"width": 103.8,
},
Object {
- "actualText": "家具",
- "actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 20,
+ "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "actualTextHeight": 64,
+ "actualTextWidth": 292,
+ "height": 80,
"multiLineActualTexts": Array [
- "家具",
+ "城市城市城市城",
+ "市城市城市城市",
+ "城市城市城市城",
+ "市城市",
],
- "originalText": "家具",
+ "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
"width": 103.8,
},
Object {
- "actualText": "家具",
- "actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 20,
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualTextHeight": 48,
+ "actualTextWidth": 243,
+ "height": 80,
"multiLineActualTexts": Array [
- "家具",
+ "类别类别类别类",
+ "别类别类别类别",
+ "类别类别类别",
],
- "originalText": "家具",
+ "originalText": "类别类别类别类别类别类别类别类别类别类别",
"width": 103.8,
},
Object {
- "actualText": "家具",
- "actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 20,
+ "actualText": "子类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 80,
"multiLineActualTexts": Array [
- "家具",
+ "子类别",
],
- "originalText": "家具",
+ "originalText": "子类别",
"width": 103.8,
},
Object {
- "actualText": "家具",
- "actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 20,
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 64,
+ "actualTextWidth": 268,
+ "height": 80,
"multiLineActualTexts": Array [
- "家具",
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量数",
+ "量",
],
- "originalText": "家具",
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
"width": 103.8,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 4`] = `Array []`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should render by infinity maxLines if actual text contains "\\n" 5`] = `
+Array [
Object {
- "actualText": "办公用品",
+ "actualText": "1",
"actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 20,
+ "actualTextWidth": 7,
+ "height": 61,
"multiLineActualTexts": Array [
- "办公用品",
+ "1",
],
- "originalText": "办公用品",
- "width": 103.8,
+ "originalText": 1,
+ "width": 80,
},
Object {
- "actualText": "办公用品",
+ "actualText": "2",
"actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 20,
+ "actualTextWidth": 7,
+ "height": 46,
"multiLineActualTexts": Array [
- "办公用品",
+ "2",
],
- "originalText": "办公用品",
- "width": 103.8,
+ "originalText": 2,
+ "width": 80,
},
Object {
- "actualText": "办公用品",
+ "actualText": "3",
"actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 20,
+ "actualTextWidth": 7,
+ "height": 91,
"multiLineActualTexts": Array [
- "办公用品",
+ "3",
],
- "originalText": "办公用品",
- "width": 103.8,
+ "originalText": 3,
+ "width": 80,
},
Object {
- "actualText": "办公用品",
+ "actualText": "4",
"actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 20,
+ "actualTextWidth": 7,
+ "height": 46,
"multiLineActualTexts": Array [
- "办公用品",
+ "4",
],
- "originalText": "办公用品",
- "width": 103.8,
+ "originalText": 4,
+ "width": 80,
},
Object {
- "actualText": "办公用品",
+ "actualText": "5",
"actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 20,
+ "actualTextWidth": 7,
+ "height": 30,
"multiLineActualTexts": Array [
- "办公用品",
+ "5",
],
- "originalText": "办公用品",
- "width": 103.8,
+ "originalText": 5,
+ "width": 80,
},
Object {
- "actualText": "办公用品",
+ "actualText": "6",
"actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 20,
+ "actualTextWidth": 7,
+ "height": 30,
"multiLineActualTexts": Array [
- "办公用品",
+ "6",
],
- "originalText": "办公用品",
- "width": 103.8,
+ "originalText": 6,
+ "width": 80,
},
Object {
- "actualText": "办公用品",
+ "actualText": "7",
"actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 20,
+ "actualTextWidth": 7,
+ "height": 30,
"multiLineActualTexts": Array [
- "办公用品",
+ "7",
],
- "originalText": "办公用品",
- "width": 103.8,
+ "originalText": 7,
+ "width": 80,
},
Object {
- "actualText": "办公用品",
- "actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 20,
+ "actualText": "浙江浙江",
+ "actualTextHeight": 30,
+ "actualTextWidth": 50,
+ "height": 61,
"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": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 20,
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "actualTextHeight": 75,
+ "actualTextWidth": 365,
+ "height": 91,
"multiLineActualTexts": Array [
- "桌子桌子桌子桌",
- "子桌子桌子桌子",
- "桌子桌子桌子...",
+ "浙江省浙江省浙",
+ "江省浙江省浙江",
+ "省浙江省浙江省",
+ "浙江省浙江省浙",
+ "江省",
],
- "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
"width": 103.8,
},
Object {
- "actualText": "桌子",
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 20,
+ "actualTextWidth": 37,
+ "height": 46,
"multiLineActualTexts": Array [
- "桌子",
+ "浙江省",
],
- "originalText": "桌子",
+ "originalText": "浙江省",
"width": 103.8,
},
Object {
- "actualText": "桌子",
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 20,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "桌子",
+ "浙江省",
],
- "originalText": "桌子",
+ "originalText": "浙江省",
"width": 103.8,
},
Object {
- "actualText": "桌子",
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 20,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "桌子",
+ "浙江省",
],
- "originalText": "桌子",
+ "originalText": "浙江省",
"width": 103.8,
},
Object {
- "actualText": "沙发",
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 20,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "沙发",
+ "浙江省",
],
- "originalText": "沙发",
+ "originalText": "浙江省",
"width": 103.8,
},
Object {
- "actualText": "沙发",
- "actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 20,
+ "actualText": "杭州杭州杭州",
+ "actualTextHeight": 45,
+ "actualTextWidth": 75,
+ "height": 61,
"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": "沙发",
- "actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 20,
+ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "actualTextHeight": 75,
+ "actualTextWidth": 365,
+ "height": 91,
"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": 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": 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": "纸张",
- "actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 20,
+ "actualText": "纸张纸张",
+ "actualTextHeight": 30,
+ "actualTextWidth": 50,
+ "height": 61,
"multiLineActualTexts": Array [
"纸张",
+ "纸张",
],
- "originalText": "纸张",
+ "originalText": "纸张
+纸张",
"width": 103.8,
},
Object {
- "actualText": "纸张",
+ "actualText": "家具",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 20,
+ "height": 46,
"multiLineActualTexts": Array [
- "纸张",
+ "家具",
],
- "originalText": "纸张",
+ "originalText": "家具",
"width": 103.8,
},
Object {
- "actualText": "纸张",
- "actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 20,
+ "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "actualTextHeight": 60,
+ "actualTextWidth": 340,
+ "height": 91,
"multiLineActualTexts": Array [
- "纸张",
+ "家具家具家具家",
+ "具家具家具家具",
+ "家具家具家具家",
+ "具家具家具家具",
],
- "originalText": "纸张",
+ "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
"width": 103.8,
},
Object {
- "actualText": "纸张",
+ "actualText": "家具",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 20,
+ "height": 46,
"multiLineActualTexts": Array [
- "纸张",
+ "家具",
],
- "originalText": "纸张",
+ "originalText": "家具",
"width": 103.8,
},
Object {
- "actualText": "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": "7789778977897789778977897789",
- "actualTextHeight": 45,
- "actualTextWidth": 189,
- "height": 20,
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
"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": 4,
+ "height": 61,
"multiLineActualTexts": Array [
- "3877",
+ "-",
],
- "originalText": 3877,
+ "originalText": "-",
"width": 103.8,
},
Object {
- "actualText": "4342",
+ "actualText": "桌子",
"actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 46,
"multiLineActualTexts": Array [
- "4342",
+ "桌子",
],
- "originalText": 4342,
+ "originalText": "桌子",
"width": 103.8,
},
Object {
- "actualText": "5343",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 20,
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "actualTextHeight": 75,
+ "actualTextWidth": 365,
+ "height": 91,
"multiLineActualTexts": Array [
- "5343",
+ "桌子桌子桌子桌",
+ "子桌子桌子桌子",
+ "桌子桌子桌子桌",
+ "子桌子桌子桌子",
+ "桌子",
],
- "originalText": 5343,
+ "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
"width": 103.8,
},
Object {
- "actualText": "632",
+ "actualText": "桌子",
"actualTextHeight": 15,
- "actualTextWidth": 21,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 46,
"multiLineActualTexts": Array [
- "632",
+ "桌子",
],
- "originalText": 632,
+ "originalText": "桌子",
"width": 103.8,
},
Object {
- "actualText": "7234",
+ "actualText": "桌子",
"actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 30,
"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": 4,
+ "height": 61,
"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": 46,
"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": 91,
"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 render by maxLines if actual text contains "\\n" 1`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 30,
"multiLineActualTexts": Array [
"序号",
],
@@ -23172,13 +32891,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 render by maxLines if actual text contains "\\n" 2`] = `
Array [
Object {
"actualText": "1",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 46,
+ "height": 30,
"multiLineActualTexts": Array [
"1",
],
@@ -23189,7 +32908,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"2",
],
@@ -23200,7 +32919,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 46,
+ "height": 30,
"multiLineActualTexts": Array [
"3",
],
@@ -23222,7 +32941,7 @@ Array [
"actualText": "5",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 100,
+ "height": 30,
"multiLineActualTexts": Array [
"5",
],
@@ -23273,1710 +32992,1462 @@ Array [
"originalText": 9,
"width": 80,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 3`] = `
-Array [
- Object {
- "actualText": "序号",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 56,
- "multiLineActualTexts": Array [
- "序号",
- ],
- "originalText": "序号",
- "width": 80,
- },
- Object {
- "actualText": "省份",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 56,
- "multiLineActualTexts": Array [
- "省份",
- ],
- "originalText": "省份",
- "width": 103.8,
- },
- Object {
- "actualText": "城市城市城市城市城市城市城市城市城市城市...",
- "actualTextHeight": 48,
- "actualTextWidth": 253,
- "height": 56,
- "multiLineActualTexts": Array [
- "城市城市城市城",
- "市城市城市城市",
- "城市城市城市...",
- ],
- "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
- "width": 103.8,
- },
- Object {
- "actualText": "类别类别类别类别类别类别类别类别类别类别",
- "actualTextHeight": 48,
- "actualTextWidth": 243,
- "height": 56,
- "multiLineActualTexts": Array [
- "类别类别类别类",
- "别类别类别类别",
- "类别类别类别",
- ],
- "originalText": "类别类别类别类别类别类别类别类别类别类别",
- "width": 103.8,
- },
- Object {
- "actualText": "子类别",
- "actualTextHeight": 16,
- "actualTextWidth": 37,
- "height": 56,
- "multiLineActualTexts": Array [
- "子类别",
- ],
- "originalText": "子类别",
- "width": 103.8,
- },
- Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量...",
- "actualTextHeight": 48,
- "actualTextWidth": 253,
- "height": 56,
- "multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量...",
- ],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 103.8,
- },
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 4`] = `Array []`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 5`] = `
-Array [
Object {
- "actualText": "1",
+ "actualText": "10",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 46,
+ "actualTextWidth": 14,
+ "height": 30,
"multiLineActualTexts": Array [
- "1",
+ "10",
],
- "originalText": 1,
+ "originalText": 10,
"width": 80,
},
Object {
- "actualText": "2",
+ "actualText": "11",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 20,
+ "actualTextWidth": 13,
+ "height": 30,
"multiLineActualTexts": Array [
- "2",
+ "11",
],
- "originalText": 2,
+ "originalText": 11,
"width": 80,
},
Object {
- "actualText": "3",
+ "actualText": "12",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 46,
+ "actualTextWidth": 14,
+ "height": 30,
"multiLineActualTexts": Array [
- "3",
+ "12",
],
- "originalText": 3,
+ "originalText": 12,
"width": 80,
},
Object {
- "actualText": "4",
+ "actualText": "13",
"actualTextHeight": 15,
- "actualTextWidth": 7,
+ "actualTextWidth": 14,
"height": 30,
"multiLineActualTexts": Array [
- "4",
+ "13",
],
- "originalText": 4,
+ "originalText": 13,
"width": 80,
},
Object {
- "actualText": "5",
+ "actualText": "14",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 100,
+ "actualTextWidth": 14,
+ "height": 30,
"multiLineActualTexts": Array [
- "5",
+ "14",
],
- "originalText": 5,
+ "originalText": 14,
"width": 80,
},
Object {
- "actualText": "6",
+ "actualText": "15",
"actualTextHeight": 15,
- "actualTextWidth": 7,
+ "actualTextWidth": 14,
"height": 30,
"multiLineActualTexts": Array [
- "6",
+ "15",
],
- "originalText": 6,
+ "originalText": 15,
"width": 80,
},
Object {
- "actualText": "7",
+ "actualText": "16",
"actualTextHeight": 15,
- "actualTextWidth": 7,
+ "actualTextWidth": 14,
"height": 30,
"multiLineActualTexts": Array [
- "7",
+ "16",
],
- "originalText": 7,
+ "originalText": 16,
"width": 80,
},
Object {
- "actualText": "8",
+ "actualText": "17",
"actualTextHeight": 15,
- "actualTextWidth": 7,
+ "actualTextWidth": 14,
"height": 30,
"multiLineActualTexts": Array [
- "8",
+ "17",
],
- "originalText": 8,
+ "originalText": 17,
"width": 80,
},
Object {
- "actualText": "9",
+ "actualText": "18",
"actualTextHeight": 15,
- "actualTextWidth": 7,
+ "actualTextWidth": 14,
"height": 30,
"multiLineActualTexts": Array [
- "9",
+ "18",
],
- "originalText": 9,
+ "originalText": 18,
"width": 80,
},
Object {
- "actualText": "浙江省",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 46,
- "multiLineActualTexts": Array [
- "浙江省",
- ],
- "originalText": "浙江省",
- "width": 103.8,
- },
- Object {
- "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 20,
- "multiLineActualTexts": Array [
- "浙江省浙江省浙",
- "江省浙江省浙江",
- "省浙江省浙江...",
- ],
- "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
- "width": 103.8,
- },
- Object {
- "actualText": "浙江省",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 46,
- "multiLineActualTexts": Array [
- "浙江省",
- ],
- "originalText": "浙江省",
- "width": 103.8,
- },
- Object {
- "actualText": "浙江省",
+ "actualText": "19",
"actualTextHeight": 15,
- "actualTextWidth": 37,
+ "actualTextWidth": 14,
"height": 30,
"multiLineActualTexts": Array [
- "浙江省",
- ],
- "originalText": "浙江省",
- "width": 103.8,
- },
- Object {
- "actualText": "浙江省",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 100,
- "multiLineActualTexts": Array [
- "浙江省",
+ "19",
],
- "originalText": "浙江省",
- "width": 103.8,
+ "originalText": 19,
+ "width": 80,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLines if actual text contains "\\n" 3`] = `
+Array [
Object {
- "actualText": "浙江省",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "序号",
],
- "originalText": "浙江省",
- "width": 103.8,
+ "originalText": "序号",
+ "width": 80,
},
Object {
- "actualText": "浙江省",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "省份",
],
- "originalText": "浙江省",
- "width": 103.8,
+ "originalText": "省份",
+ "width": 143.8,
},
Object {
- "actualText": "浙江省",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
+ "actualText": "城市城市城市城市城...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 119,
"height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "城市城市城市城市城...",
],
- "originalText": "浙江省",
- "width": 103.8,
+ "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "width": 143.8,
},
Object {
- "actualText": "浙江省",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
+ "actualText": "类别类别类别类别类...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 119,
"height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "类别类别类别类别类...",
],
- "originalText": "浙江省",
- "width": 103.8,
+ "originalText": "类别类别类别类别类别类别类别类别类别类别",
+ "width": 143.8,
},
Object {
- "actualText": "绍兴市",
- "actualTextHeight": 15,
+ "actualText": "子类别",
+ "actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 46,
+ "height": 30,
"multiLineActualTexts": Array [
- "绍兴市",
+ "子类别",
],
- "originalText": "绍兴市",
- "width": 103.8,
+ "originalText": "子类别",
+ "width": 143.8,
},
Object {
- "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 20,
+ "actualText": "数量数量数量数量数...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 119,
+ "height": 30,
"multiLineActualTexts": Array [
- "杭州市杭州市杭",
- "州市杭州市杭州",
- "市杭州市杭州...",
+ "数量数量数量数量数...",
],
- "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
- "width": 103.8,
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 143.8,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLines if actual text contains "\\n" 4`] = `Array []`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should render by maxLines if actual text contains "\\n" 5`] = `
+Array [
Object {
- "actualText": "绍兴市",
+ "actualText": "1",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 46,
+ "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": 37,
- "height": 100,
+ "actualTextWidth": 7,
+ "height": 30,
"multiLineActualTexts": Array [
- "舟山市",
+ "3",
],
- "originalText": "舟山市",
- "width": 103.8,
+ "originalText": 3,
+ "width": 80,
},
Object {
- "actualText": "杭州市",
+ "actualText": "4",
"actualTextHeight": 15,
- "actualTextWidth": 37,
+ "actualTextWidth": 7,
"height": 30,
"multiLineActualTexts": Array [
- "杭州市",
+ "4",
],
- "originalText": "杭州市",
- "width": 103.8,
+ "originalText": 4,
+ "width": 80,
},
Object {
- "actualText": "绍兴市",
+ "actualText": "5",
"actualTextHeight": 15,
- "actualTextWidth": 37,
+ "actualTextWidth": 7,
"height": 30,
"multiLineActualTexts": Array [
- "绍兴市",
+ "5",
],
- "originalText": "绍兴市",
- "width": 103.8,
+ "originalText": 5,
+ "width": 80,
},
Object {
- "actualText": "宁波市",
+ "actualText": "6",
"actualTextHeight": 15,
- "actualTextWidth": 37,
+ "actualTextWidth": 7,
"height": 30,
"multiLineActualTexts": Array [
- "宁波市",
+ "6",
],
- "originalText": "宁波市",
- "width": 103.8,
+ "originalText": 6,
+ "width": 80,
},
Object {
- "actualText": "舟山市",
+ "actualText": "7",
"actualTextHeight": 15,
- "actualTextWidth": 37,
+ "actualTextWidth": 7,
"height": 30,
"multiLineActualTexts": Array [
- "舟山市",
+ "7",
],
- "originalText": "舟山市",
- "width": 103.8,
+ "originalText": 7,
+ "width": 80,
},
Object {
- "actualText": "家具",
+ "actualText": "8",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 46,
+ "actualTextWidth": 7,
+ "height": 30,
"multiLineActualTexts": Array [
- "家具",
+ "8",
],
- "originalText": "家具",
- "width": 103.8,
+ "originalText": 8,
+ "width": 80,
},
Object {
- "actualText": "家具家具家具家具家具家具家具家具家具家具...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 20,
+ "actualText": "9",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
"multiLineActualTexts": Array [
- "家具家具家具家",
- "具家具家具家具",
- "家具家具家具...",
+ "9",
],
- "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
- "width": 103.8,
+ "originalText": 9,
+ "width": 80,
},
Object {
- "actualText": "家具",
+ "actualText": "10",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 46,
+ "actualTextWidth": 14,
+ "height": 30,
"multiLineActualTexts": Array [
- "家具",
+ "10",
],
- "originalText": "家具",
- "width": 103.8,
+ "originalText": 10,
+ "width": 80,
},
Object {
- "actualText": "家具",
+ "actualText": "11",
"actualTextHeight": 15,
- "actualTextWidth": 25,
+ "actualTextWidth": 13,
"height": 30,
"multiLineActualTexts": Array [
- "家具",
+ "11",
],
- "originalText": "家具",
- "width": 103.8,
+ "originalText": 11,
+ "width": 80,
},
Object {
- "actualText": "家具",
+ "actualText": "12",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 100,
+ "actualTextWidth": 14,
+ "height": 30,
"multiLineActualTexts": Array [
- "家具",
+ "12",
],
- "originalText": "家具",
- "width": 103.8,
+ "originalText": 12,
+ "width": 80,
},
Object {
- "actualText": "家具",
+ "actualText": "13",
"actualTextHeight": 15,
- "actualTextWidth": 25,
+ "actualTextWidth": 14,
"height": 30,
"multiLineActualTexts": Array [
- "家具",
+ "13",
],
- "originalText": "家具",
- "width": 103.8,
+ "originalText": 13,
+ "width": 80,
},
Object {
- "actualText": "家具",
+ "actualText": "14",
"actualTextHeight": 15,
- "actualTextWidth": 25,
+ "actualTextWidth": 14,
"height": 30,
"multiLineActualTexts": Array [
- "家具",
+ "14",
],
- "originalText": "家具",
- "width": 103.8,
+ "originalText": 14,
+ "width": 80,
},
Object {
- "actualText": "家具",
+ "actualText": "15",
"actualTextHeight": 15,
- "actualTextWidth": 25,
+ "actualTextWidth": 14,
"height": 30,
"multiLineActualTexts": Array [
- "家具",
+ "15",
],
- "originalText": "家具",
- "width": 103.8,
+ "originalText": 15,
+ "width": 80,
},
Object {
- "actualText": "家具",
+ "actualText": "16",
"actualTextHeight": 15,
- "actualTextWidth": 25,
+ "actualTextWidth": 14,
"height": 30,
"multiLineActualTexts": Array [
- "家具",
+ "16",
],
- "originalText": "家具",
- "width": 103.8,
+ "originalText": 16,
+ "width": 80,
},
Object {
- "actualText": "桌子",
+ "actualText": "17",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 46,
+ "actualTextWidth": 14,
+ "height": 30,
"multiLineActualTexts": Array [
- "桌子",
+ "17",
],
- "originalText": "桌子",
- "width": 103.8,
+ "originalText": 17,
+ "width": 80,
},
Object {
- "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 20,
+ "actualText": "18",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 30,
"multiLineActualTexts": Array [
- "桌子桌子桌子桌",
- "子桌子桌子桌子",
- "桌子桌子桌子...",
+ "18",
],
- "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
- "width": 103.8,
+ "originalText": 18,
+ "width": 80,
},
Object {
- "actualText": "桌子",
+ "actualText": "19",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 46,
+ "actualTextWidth": 14,
+ "height": 30,
"multiLineActualTexts": Array [
- "桌子",
+ "19",
],
- "originalText": "桌子",
- "width": 103.8,
+ "originalText": 19,
+ "width": 80,
},
Object {
- "actualText": "桌子",
+ "actualText": "浙江...",
"actualTextHeight": 15,
- "actualTextWidth": 25,
+ "actualTextWidth": 35,
"height": 30,
"multiLineActualTexts": Array [
- "桌子",
+ "浙江...",
],
- "originalText": "桌子",
- "width": 103.8,
+ "originalText": "浙江
+浙江",
+ "width": 143.8,
},
Object {
- "actualText": "桌子",
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 100,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "桌子",
+ "浙江省",
],
- "originalText": "桌子",
- "width": 103.8,
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "沙发",
+ "actualText": "浙江省浙江省浙江省...",
"actualTextHeight": 15,
- "actualTextWidth": 25,
+ "actualTextWidth": 119,
"height": 30,
"multiLineActualTexts": Array [
- "沙发",
+ "浙江省浙江省浙江省...",
],
- "originalText": "沙发",
- "width": 103.8,
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "沙发",
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 25,
+ "actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "沙发",
+ "浙江省",
],
- "originalText": "沙发",
- "width": 103.8,
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "沙发",
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 25,
+ "actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "沙发",
+ "浙江省",
],
- "originalText": "沙发",
- "width": 103.8,
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "沙发",
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 25,
+ "actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "沙发",
+ "浙江省",
],
- "originalText": "沙发",
- "width": 103.8,
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "236723672361111",
- "actualTextHeight": 30,
- "actualTextWidth": 100,
- "height": 46,
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "2367236723611",
- "11",
+ "浙江省",
],
- "originalText": 236723672361111,
- "width": 103.8,
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "7789778977897789778977897789",
- "actualTextHeight": 45,
- "actualTextWidth": 189,
- "height": 20,
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "7789778977897",
- "7897789778977",
- "89",
+ "浙江省",
],
- "originalText": "7789778977897789778977897789",
- "width": 103.8,
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "236723672361111",
- "actualTextHeight": 30,
- "actualTextWidth": 100,
- "height": 46,
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "2367236723611",
- "11",
+ "浙江省",
],
- "originalText": 236723672361111,
- "width": 103.8,
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "3877",
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "3877",
+ "浙江省",
],
- "originalText": 3877,
- "width": 103.8,
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "4342",
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 100,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "4342",
+ "浙江省",
],
- "originalText": 4342,
- "width": 103.8,
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "5343",
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "5343",
+ "浙江省",
],
- "originalText": 5343,
- "width": 103.8,
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "632",
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 21,
+ "actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "632",
+ "浙江省",
],
- "originalText": 632,
- "width": 103.8,
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "7234",
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "7234",
+ "浙江省",
],
- "originalText": 7234,
- "width": 103.8,
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "834",
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 21,
+ "actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "834",
+ "浙江省",
],
- "originalText": 834,
- "width": 103.8,
+ "originalText": "浙江省",
+ "width": 143.8,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 1`] = `
-Array [
Object {
- "actualText": "序号",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 56,
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "序号",
+ "浙江省",
],
- "originalText": "序号",
- "width": 80,
+ "originalText": "浙江省",
+ "width": 143.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 2`] = `
-Array [
Object {
- "actualText": "1",
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 100,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "1",
+ "浙江省",
],
- "originalText": 1,
- "width": 80,
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "2",
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 100,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "2",
+ "浙江省",
],
- "originalText": 2,
- "width": 80,
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "3",
+ "actualText": "四川省",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 100,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "3",
+ "四川省",
],
- "originalText": 3,
- "width": 80,
+ "originalText": "四川省",
+ "width": 143.8,
},
Object {
- "actualText": "4",
+ "actualText": "杭州...",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 100,
+ "actualTextWidth": 35,
+ "height": 30,
"multiLineActualTexts": Array [
- "4",
+ "杭州...",
],
- "originalText": 4,
- "width": 80,
+ "originalText": "杭州
+杭州
+杭州",
+ "width": 143.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 3`] = `
-Array [
Object {
- "actualText": "序号",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 56,
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "序号",
+ "绍兴市",
],
- "originalText": "序号",
- "width": 80,
+ "originalText": "绍兴市",
+ "width": 143.8,
},
Object {
- "actualText": "省份",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 56,
+ "actualText": "杭州市杭州市杭州市...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 119,
+ "height": 30,
"multiLineActualTexts": Array [
- "省份",
+ "杭州市杭州市杭州市...",
],
- "originalText": "省份",
- "width": 103.8,
+ "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "width": 143.8,
},
Object {
- "actualText": "城市城市城市城市城市城市城市城市城市城市...",
- "actualTextHeight": 48,
- "actualTextWidth": 253,
- "height": 56,
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "城市城市城市城",
- "市城市城市城市",
- "城市城市城市...",
+ "绍兴市",
],
- "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
- "width": 103.8,
+ "originalText": "绍兴市",
+ "width": 143.8,
},
Object {
- "actualText": "类别类别类别类别类别类别类别类别类别类别",
- "actualTextHeight": 48,
- "actualTextWidth": 243,
- "height": 56,
+ "actualText": "宁波市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "类别类别类别类",
- "别类别类别类别",
- "类别类别类别",
+ "宁波市",
],
- "originalText": "类别类别类别类别类别类别类别类别类别类别",
- "width": 103.8,
+ "originalText": "宁波市",
+ "width": 143.8,
},
Object {
- "actualText": "子类别",
- "actualTextHeight": 16,
+ "actualText": "舟山市",
+ "actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 56,
+ "height": 30,
"multiLineActualTexts": Array [
- "子类别",
+ "舟山市",
],
- "originalText": "子类别",
- "width": 103.8,
+ "originalText": "舟山市",
+ "width": 143.8,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量...",
- "actualTextHeight": 48,
- "actualTextWidth": 253,
- "height": 56,
+ "actualText": "杭州市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量...",
+ "杭州市",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 103.8,
+ "originalText": "杭州市",
+ "width": 143.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": "1",
+ "actualText": "绍兴市",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 100,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "1",
+ "绍兴市",
],
- "originalText": 1,
- "width": 80,
+ "originalText": "绍兴市",
+ "width": 143.8,
},
Object {
- "actualText": "2",
+ "actualText": "宁波市",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 100,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "2",
+ "宁波市",
],
- "originalText": 2,
- "width": 80,
+ "originalText": "宁波市",
+ "width": 143.8,
},
Object {
- "actualText": "3",
+ "actualText": "舟山市",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 100,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "3",
+ "舟山市",
],
- "originalText": 3,
- "width": 80,
+ "originalText": "舟山市",
+ "width": 143.8,
},
Object {
- "actualText": "4",
+ "actualText": "杭州市",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 100,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "4",
+ "杭州市",
],
- "originalText": 4,
- "width": 80,
+ "originalText": "杭州市",
+ "width": 143.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "绍兴市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 100,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "绍兴市",
],
- "originalText": "浙江省",
- "width": 103.8,
+ "originalText": "绍兴市",
+ "width": 143.8,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 100,
+ "actualText": "宁波市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省浙江省浙",
- "江省浙江省浙江",
- "省浙江省浙江...",
+ "宁波市",
],
- "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
- "width": 103.8,
+ "originalText": "宁波市",
+ "width": 143.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "舟山市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 100,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "舟山市",
],
- "originalText": "浙江省",
- "width": 103.8,
+ "originalText": "舟山市",
+ "width": 143.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "杭州市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 100,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "杭州市",
],
- "originalText": "浙江省",
- "width": 103.8,
+ "originalText": "杭州市",
+ "width": 143.8,
},
Object {
"actualText": "绍兴市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 100,
+ "height": 30,
"multiLineActualTexts": Array [
"绍兴市",
],
"originalText": "绍兴市",
- "width": 103.8,
+ "width": 143.8,
},
Object {
- "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 100,
+ "actualText": "宁波市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "杭州市杭州市杭",
- "州市杭州市杭州",
- "市杭州市杭州...",
+ "宁波市",
],
- "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
- "width": 103.8,
+ "originalText": "宁波市",
+ "width": 143.8,
},
Object {
- "actualText": "绍兴市",
+ "actualText": "舟山市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 100,
+ "height": 30,
"multiLineActualTexts": Array [
- "绍兴市",
+ "舟山市",
],
- "originalText": "绍兴市",
- "width": 103.8,
+ "originalText": "舟山市",
+ "width": 143.8,
},
Object {
- "actualText": "宁波市",
+ "actualText": "成都市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 100,
+ "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": "家具",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 100,
+ "height": 30,
"multiLineActualTexts": Array [
"家具",
],
"originalText": "家具",
- "width": 103.8,
+ "width": 143.8,
},
Object {
- "actualText": "家具家具家具家具家具家具家具家具家具家具...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 100,
+ "actualText": "家具家具家具家具家...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 119,
+ "height": 30,
"multiLineActualTexts": Array [
- "家具家具家具家",
- "具家具家具家具",
- "家具家具家具...",
+ "家具家具家具家具家...",
],
"originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "家具",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 100,
+ "height": 30,
"multiLineActualTexts": Array [
"家具",
],
"originalText": "家具",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "家具",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 100,
+ "height": 30,
"multiLineActualTexts": Array [
"家具",
],
"originalText": "家具",
- "width": 103.8,
+ "width": 143.8,
},
Object {
- "actualText": "桌子",
+ "actualText": "家具",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 100,
- "multiLineActualTexts": Array [
- "桌子",
- ],
- "originalText": "桌子",
- "width": 103.8,
- },
- Object {
- "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 100,
+ "height": 30,
"multiLineActualTexts": Array [
- "桌子桌子桌子桌",
- "子桌子桌子桌子",
- "桌子桌子桌子...",
+ "家具",
],
- "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
- "width": 103.8,
+ "originalText": "家具",
+ "width": 143.8,
},
Object {
- "actualText": "桌子",
+ "actualText": "家具",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 100,
+ "height": 30,
"multiLineActualTexts": Array [
- "桌子",
+ "家具",
],
- "originalText": "桌子",
- "width": 103.8,
+ "originalText": "家具",
+ "width": 143.8,
},
Object {
- "actualText": "桌子",
+ "actualText": "家具",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 100,
- "multiLineActualTexts": Array [
- "桌子",
- ],
- "originalText": "桌子",
- "width": 103.8,
- },
- Object {
- "actualText": "236723672361111",
- "actualTextHeight": 30,
- "actualTextWidth": 100,
- "height": 100,
- "multiLineActualTexts": Array [
- "2367236723611",
- "11",
- ],
- "originalText": 236723672361111,
- "width": 103.8,
- },
- Object {
- "actualText": "7789778977897789778977897789",
- "actualTextHeight": 45,
- "actualTextWidth": 189,
- "height": 100,
- "multiLineActualTexts": Array [
- "7789778977897",
- "7897789778977",
- "89",
- ],
- "originalText": "7789778977897789778977897789",
- "width": 103.8,
- },
- Object {
- "actualText": "236723672361111",
- "actualTextHeight": 30,
- "actualTextWidth": 100,
- "height": 100,
+ "height": 30,
"multiLineActualTexts": Array [
- "2367236723611",
- "11",
+ "家具",
],
- "originalText": 236723672361111,
- "width": 103.8,
+ "originalText": "家具",
+ "width": 143.8,
},
Object {
- "actualText": "3877",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 100,
- "multiLineActualTexts": Array [
- "3877",
- ],
- "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": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 30,
"multiLineActualTexts": Array [
- "序号",
+ "家具",
],
- "originalText": "序号",
- "width": 80,
+ "originalText": "家具",
+ "width": 143.8,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 2`] = `
-Array [
Object {
- "actualText": "1",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 100,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "1",
+ "家具",
],
- "originalText": 1,
- "width": 80,
+ "originalText": "家具",
+ "width": 143.8,
},
Object {
- "actualText": "2",
+ "actualText": "办公用品",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 100,
+ "actualTextWidth": 49,
+ "height": 30,
"multiLineActualTexts": Array [
- "2",
+ "办公用品",
],
- "originalText": 2,
- "width": 80,
+ "originalText": "办公用品",
+ "width": 143.8,
},
Object {
- "actualText": "3",
+ "actualText": "办公用品",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 46,
+ "actualTextWidth": 49,
+ "height": 30,
"multiLineActualTexts": Array [
- "3",
+ "办公用品",
],
- "originalText": 3,
- "width": 80,
+ "originalText": "办公用品",
+ "width": 143.8,
},
Object {
- "actualText": "4",
+ "actualText": "办公用品",
"actualTextHeight": 15,
- "actualTextWidth": 7,
+ "actualTextWidth": 49,
"height": 30,
"multiLineActualTexts": Array [
- "4",
+ "办公用品",
],
- "originalText": 4,
- "width": 80,
+ "originalText": "办公用品",
+ "width": 143.8,
},
Object {
- "actualText": "5",
+ "actualText": "办公用品",
"actualTextHeight": 15,
- "actualTextWidth": 7,
+ "actualTextWidth": 49,
"height": 30,
"multiLineActualTexts": Array [
- "5",
+ "办公用品",
],
- "originalText": 5,
- "width": 80,
+ "originalText": "办公用品",
+ "width": 143.8,
},
Object {
- "actualText": "6",
+ "actualText": "办公用品",
"actualTextHeight": 15,
- "actualTextWidth": 7,
+ "actualTextWidth": 49,
"height": 30,
"multiLineActualTexts": Array [
- "6",
+ "办公用品",
],
- "originalText": 6,
- "width": 80,
+ "originalText": "办公用品",
+ "width": 143.8,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 3`] = `
-Array [
Object {
- "actualText": "序号",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 56,
+ "actualText": "办公用品",
+ "actualTextHeight": 15,
+ "actualTextWidth": 49,
+ "height": 30,
"multiLineActualTexts": Array [
- "序号",
+ "办公用品",
],
- "originalText": "序号",
- "width": 80,
+ "originalText": "办公用品",
+ "width": 143.8,
},
Object {
- "actualText": "省份",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 56,
+ "actualText": "办公用品",
+ "actualTextHeight": 15,
+ "actualTextWidth": 49,
+ "height": 30,
"multiLineActualTexts": Array [
- "省份",
+ "办公用品",
],
- "originalText": "省份",
- "width": 103.8,
+ "originalText": "办公用品",
+ "width": 143.8,
},
Object {
- "actualText": "城市城市城市城市城市城市城市城市城市城市...",
- "actualTextHeight": 48,
- "actualTextWidth": 253,
- "height": 56,
+ "actualText": "办公用品",
+ "actualTextHeight": 15,
+ "actualTextWidth": 49,
+ "height": 30,
"multiLineActualTexts": Array [
- "城市城市城市城",
- "市城市城市城市",
- "城市城市城市...",
+ "办公用品",
],
- "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
- "width": 103.8,
+ "originalText": "办公用品",
+ "width": 143.8,
},
Object {
- "actualText": "类别类别类别类别类别类别类别类别类别类别",
- "actualTextHeight": 48,
- "actualTextWidth": 243,
- "height": 56,
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "类别类别类别类",
- "别类别类别类别",
- "类别类别类别",
+ "家具",
],
- "originalText": "类别类别类别类别类别类别类别类别类别类别",
- "width": 103.8,
+ "originalText": "家具",
+ "width": 143.8,
},
Object {
- "actualText": "子类别",
- "actualTextHeight": 16,
- "actualTextWidth": 37,
- "height": 56,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "子类别",
+ "-",
],
- "originalText": "子类别",
- "width": 103.8,
+ "originalText": "-",
+ "width": 143.8,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量...",
- "actualTextHeight": 48,
- "actualTextWidth": 253,
- "height": 56,
+ "actualText": "桌子",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量...",
+ "桌子",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 103.8,
+ "originalText": "桌子",
+ "width": 143.8,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 4`] = `Array []`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.heightByField 5`] = `
-Array [
Object {
- "actualText": "1",
+ "actualText": "桌子桌子桌子桌子桌...",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 100,
+ "actualTextWidth": 119,
+ "height": 30,
"multiLineActualTexts": Array [
- "1",
+ "桌子桌子桌子桌子桌...",
],
- "originalText": 1,
- "width": 80,
+ "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "width": 143.8,
},
Object {
- "actualText": "2",
+ "actualText": "桌子",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 100,
+ "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,
+ "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": "浙江省",
+ "actualText": "沙发",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 100,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "沙发",
],
- "originalText": "浙江省",
- "width": 103.8,
+ "originalText": "沙发",
+ "width": 143.8,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 100,
+ "actualText": "沙发",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省浙江省浙",
- "江省浙江省浙江",
- "省浙江省浙江...",
+ "沙发",
],
- "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
- "width": 103.8,
+ "originalText": "沙发",
+ "width": 143.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "笔",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 46,
+ "actualTextWidth": 13,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "笔",
],
- "originalText": "浙江省",
- "width": 103.8,
+ "originalText": "笔",
+ "width": 143.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "笔",
"actualTextHeight": 15,
- "actualTextWidth": 37,
+ "actualTextWidth": 13,
"height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "笔",
],
- "originalText": "浙江省",
- "width": 103.8,
+ "originalText": "笔",
+ "width": 143.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "笔",
"actualTextHeight": 15,
- "actualTextWidth": 37,
+ "actualTextWidth": 13,
"height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "笔",
],
- "originalText": "浙江省",
- "width": 103.8,
+ "originalText": "笔",
+ "width": 143.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "笔",
"actualTextHeight": 15,
- "actualTextWidth": 37,
+ "actualTextWidth": 13,
"height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "笔",
],
- "originalText": "浙江省",
- "width": 103.8,
+ "originalText": "笔",
+ "width": 143.8,
},
Object {
- "actualText": "绍兴市",
+ "actualText": "纸张",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 100,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "绍兴市",
+ "纸张",
],
- "originalText": "绍兴市",
- "width": 103.8,
+ "originalText": "纸张",
+ "width": 143.8,
},
Object {
- "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 100,
+ "actualText": "纸张",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "杭州市杭州市杭",
- "州市杭州市杭州",
- "市杭州市杭州...",
+ "纸张",
],
- "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
- "width": 103.8,
+ "originalText": "纸张",
+ "width": 143.8,
},
Object {
- "actualText": "绍兴市",
+ "actualText": "纸张",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 46,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "绍兴市",
+ "纸张",
],
- "originalText": "绍兴市",
- "width": 103.8,
+ "originalText": "纸张",
+ "width": 143.8,
},
Object {
- "actualText": "宁波市",
+ "actualText": "纸张",
"actualTextHeight": 15,
- "actualTextWidth": 37,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "宁波市",
+ "纸张",
],
- "originalText": "宁波市",
- "width": 103.8,
+ "originalText": "纸张",
+ "width": 143.8,
},
Object {
- "actualText": "舟山市",
+ "actualText": "桌子",
"actualTextHeight": 15,
- "actualTextWidth": 37,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "舟山市",
+ "桌子",
],
- "originalText": "舟山市",
- "width": 103.8,
+ "originalText": "桌子",
+ "width": 143.8,
},
Object {
- "actualText": "杭州市",
+ "actualText": "-",
"actualTextHeight": 15,
- "actualTextWidth": 37,
+ "actualTextWidth": 4,
"height": 30,
"multiLineActualTexts": Array [
- "杭州市",
+ "-",
],
- "originalText": "杭州市",
- "width": 103.8,
+ "originalText": "-",
+ "width": 143.8,
},
Object {
- "actualText": "家具",
+ "actualText": "236723672361111",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 100,
+ "actualTextWidth": 98,
+ "height": 30,
"multiLineActualTexts": Array [
- "家具",
+ "236723672361111",
],
- "originalText": "家具",
- "width": 103.8,
+ "originalText": 236723672361111,
+ "width": 143.8,
},
Object {
- "actualText": "家具家具家具家具家具家具家具家具家具家具...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 100,
+ "actualText": "77897789778977897...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 124,
+ "height": 30,
"multiLineActualTexts": Array [
- "家具家具家具家",
- "具家具家具家具",
- "家具家具家具...",
+ "77897789778977897...",
],
- "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
- "width": 103.8,
+ "originalText": "7789778977897789778977897789",
+ "width": 143.8,
},
Object {
- "actualText": "家具",
+ "actualText": "236723672361111",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 46,
+ "actualTextWidth": 98,
+ "height": 30,
"multiLineActualTexts": Array [
- "家具",
+ "236723672361111",
],
- "originalText": "家具",
- "width": 103.8,
+ "originalText": 236723672361111,
+ "width": 143.8,
},
Object {
- "actualText": "家具",
+ "actualText": "3877",
"actualTextHeight": 15,
- "actualTextWidth": 25,
+ "actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "家具",
+ "3877",
],
- "originalText": "家具",
- "width": 103.8,
+ "originalText": 3877,
+ "width": 143.8,
},
Object {
- "actualText": "家具",
+ "actualText": "4342",
"actualTextHeight": 15,
- "actualTextWidth": 25,
+ "actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "家具",
+ "4342",
],
- "originalText": "家具",
- "width": 103.8,
+ "originalText": 4342,
+ "width": 143.8,
},
Object {
- "actualText": "家具",
+ "actualText": "5343",
"actualTextHeight": 15,
- "actualTextWidth": 25,
+ "actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "家具",
+ "5343",
],
- "originalText": "家具",
- "width": 103.8,
+ "originalText": 5343,
+ "width": 143.8,
},
Object {
- "actualText": "桌子",
+ "actualText": "632",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 100,
+ "actualTextWidth": 21,
+ "height": 30,
"multiLineActualTexts": Array [
- "桌子",
+ "632",
],
- "originalText": "桌子",
- "width": 103.8,
+ "originalText": 632,
+ "width": 143.8,
},
Object {
- "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 100,
+ "actualText": "7234",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
"multiLineActualTexts": Array [
- "桌子桌子桌子桌",
- "子桌子桌子桌子",
- "桌子桌子桌子...",
+ "7234",
],
- "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
- "width": 103.8,
+ "originalText": 7234,
+ "width": 143.8,
},
Object {
- "actualText": "桌子",
+ "actualText": "834",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 46,
+ "actualTextWidth": 21,
+ "height": 30,
"multiLineActualTexts": Array [
- "桌子",
+ "834",
],
- "originalText": "桌子",
- "width": 103.8,
+ "originalText": 834,
+ "width": 143.8,
},
Object {
- "actualText": "桌子",
+ "actualText": "945",
"actualTextHeight": 15,
- "actualTextWidth": 25,
+ "actualTextWidth": 21,
"height": 30,
"multiLineActualTexts": Array [
- "桌子",
+ "945",
],
- "originalText": "桌子",
- "width": 103.8,
+ "originalText": 945,
+ "width": 143.8,
},
Object {
- "actualText": "桌子",
+ "actualText": "1304",
"actualTextHeight": 15,
- "actualTextWidth": 25,
+ "actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "桌子",
+ "1304",
],
- "originalText": "桌子",
- "width": 103.8,
+ "originalText": 1304,
+ "width": 143.8,
},
Object {
- "actualText": "沙发",
+ "actualText": "1145",
"actualTextHeight": 15,
- "actualTextWidth": 25,
+ "actualTextWidth": 26,
"height": 30,
"multiLineActualTexts": Array [
- "沙发",
+ "1145",
],
- "originalText": "沙发",
- "width": 103.8,
+ "originalText": 1145,
+ "width": 143.8,
},
Object {
- "actualText": "236723672361111",
- "actualTextHeight": 30,
- "actualTextWidth": 100,
- "height": 100,
+ "actualText": "1432",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
"multiLineActualTexts": Array [
- "2367236723611",
- "11",
+ "1432",
],
- "originalText": 236723672361111,
- "width": 103.8,
+ "originalText": 1432,
+ "width": 143.8,
},
Object {
- "actualText": "7789778977897789778977897789",
- "actualTextHeight": 45,
- "actualTextWidth": 189,
- "height": 100,
+ "actualText": "1343",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
"multiLineActualTexts": Array [
- "7789778977897",
- "7897789778977",
- "89",
+ "1343",
],
- "originalText": "7789778977897789778977897789",
- "width": 103.8,
+ "originalText": 1343,
+ "width": 143.8,
},
Object {
- "actualText": "236723672361111",
- "actualTextHeight": 30,
- "actualTextWidth": 100,
- "height": 46,
+ "actualText": "1354",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
"multiLineActualTexts": Array [
- "2367236723611",
- "11",
+ "1354",
],
- "originalText": 236723672361111,
- "width": 103.8,
+ "originalText": 1354,
+ "width": 143.8,
},
Object {
- "actualText": "3877",
+ "actualText": "1523",
"actualTextHeight": 15,
"actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "3877",
+ "1523",
],
- "originalText": 3877,
- "width": 103.8,
+ "originalText": 1523,
+ "width": 143.8,
},
Object {
- "actualText": "4342",
+ "actualText": "1634",
"actualTextHeight": 15,
"actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "4342",
+ "1634",
],
- "originalText": 4342,
- "width": 103.8,
+ "originalText": 1634,
+ "width": 143.8,
},
Object {
- "actualText": "5343",
+ "actualText": "1723",
"actualTextHeight": 15,
"actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "5343",
+ "1723",
],
- "originalText": 5343,
- "width": 103.8,
+ "originalText": 1723,
+ "width": 143.8,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 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 [
"序号",
],
@@ -24986,7 +34457,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 maxLinesByField 2`] = `
Array [
Object {
"actualText": "1",
@@ -25003,7 +34474,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 61,
"multiLineActualTexts": Array [
"2",
],
@@ -25131,16 +34602,60 @@ 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,
+ },
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should not render word wrap text 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 [
"序号",
],
@@ -25151,63 +34666,68 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 30,
+ "height": 64,
"multiLineActualTexts": Array [
"省份",
],
"originalText": "省份",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
- "actualTextHeight": 16,
- "actualTextWidth": 289,
- "height": 30,
+ "actualTextHeight": 48,
+ "actualTextWidth": 291,
+ "height": 64,
"multiLineActualTexts": Array [
- "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "城市城市城市城市城市",
+ "城市城市城市城市城市",
+ "城市城市",
],
"originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "类别类别类别类别类别类别类别类别类别类别",
- "actualTextHeight": 16,
- "actualTextWidth": 241,
- "height": 30,
+ "actualTextHeight": 32,
+ "actualTextWidth": 242,
+ "height": 64,
"multiLineActualTexts": Array [
- "类别类别类别类别类别类别类别类别类别类别",
+ "类别类别类别类别类别",
+ "类别类别类别类别类别",
],
"originalText": "类别类别类别类别类别类别类别类别类别类别",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 30,
+ "height": 64,
"multiLineActualTexts": Array [
"子类别",
],
"originalText": "子类别",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "数量数量数量数量数量数量数量数量数量数量数量",
- "actualTextHeight": 16,
- "actualTextWidth": 265,
- "height": 30,
+ "actualTextHeight": 48,
+ "actualTextWidth": 267,
+ "height": 64,
"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 maxLinesByField 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 maxLinesByField 5`] = `
Array [
Object {
"actualText": "1",
@@ -25224,7 +34744,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 61,
"multiLineActualTexts": Array [
"2",
],
@@ -25352,6 +34872,50 @@ Array [
"originalText": 13,
"width": 80,
},
+ Object {
+ "actualText": "14",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "14",
+ ],
+ "originalText": 14,
+ "width": 80,
+ },
+ Object {
+ "actualText": "15",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "15",
+ ],
+ "originalText": 15,
+ "width": 80,
+ },
+ Object {
+ "actualText": "16",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "16",
+ ],
+ "originalText": 16,
+ "width": 80,
+ },
+ Object {
+ "actualText": "17",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "17",
+ ],
+ "originalText": 17,
+ "width": 80,
+ },
Object {
"actualText": "浙江省",
"actualTextHeight": 15,
@@ -25361,18 +34925,96 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 103.8,
+ "width": 143.8,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙...",
+ "actualTextHeight": 30,
+ "actualTextWidth": 240,
+ "height": 61,
+ "multiLineActualTexts": Array [
+ "浙江省浙江省浙江省浙",
+ "江省浙江省浙江省浙...",
+ ],
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "width": 143.8,
+ },
+ Object {
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 361,
+ "actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "浙江省",
],
- "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
- "width": 103.8,
+ "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": "浙江省",
@@ -25383,7 +35025,7 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "浙江省",
@@ -25394,7 +35036,7 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "浙江省",
@@ -25405,7 +35047,7 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "浙江省",
@@ -25416,7 +35058,7 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "浙江省",
@@ -25427,7 +35069,7 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "浙江省",
@@ -25438,7 +35080,7 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "浙江省",
@@ -25449,7 +35091,7 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "浙江省",
@@ -25460,62 +35102,74 @@ 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": "浙江省",
+ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭...",
+ "actualTextHeight": 30,
+ "actualTextWidth": 240,
+ "height": 61,
+ "multiLineActualTexts": Array [
+ "杭州市杭州市杭州市杭",
+ "州市杭州市杭州市杭...",
+ ],
+ "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "width": 143.8,
+ },
+ Object {
+ "actualText": "绍兴市",
"actualTextHeight": 15,
"actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "绍兴市",
],
- "originalText": "浙江省",
- "width": 103.8,
+ "originalText": "绍兴市",
+ "width": 143.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "宁波市",
"actualTextHeight": 15,
"actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "宁波市",
],
- "originalText": "浙江省",
- "width": 103.8,
+ "originalText": "宁波市",
+ "width": 143.8,
},
Object {
- "actualText": "绍兴市",
+ "actualText": "舟山市",
"actualTextHeight": 15,
"actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "绍兴市",
+ "舟山市",
],
- "originalText": "绍兴市",
- "width": 103.8,
+ "originalText": "舟山市",
+ "width": 143.8,
},
Object {
- "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "actualText": "杭州市",
"actualTextHeight": 15,
- "actualTextWidth": 361,
+ "actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "杭州市",
],
- "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
- "width": 103.8,
+ "originalText": "杭州市",
+ "width": 143.8,
},
Object {
"actualText": "绍兴市",
@@ -25526,7 +35180,7 @@ Array [
"绍兴市",
],
"originalText": "绍兴市",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "宁波市",
@@ -25537,7 +35191,7 @@ Array [
"宁波市",
],
"originalText": "宁波市",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "舟山市",
@@ -25548,7 +35202,7 @@ Array [
"舟山市",
],
"originalText": "舟山市",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "杭州市",
@@ -25559,7 +35213,7 @@ Array [
"杭州市",
],
"originalText": "杭州市",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "绍兴市",
@@ -25570,7 +35224,7 @@ Array [
"绍兴市",
],
"originalText": "绍兴市",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "宁波市",
@@ -25581,7 +35235,7 @@ Array [
"宁波市",
],
"originalText": "宁波市",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "舟山市",
@@ -25592,7 +35246,7 @@ Array [
"舟山市",
],
"originalText": "舟山市",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "杭州市",
@@ -25603,7 +35257,7 @@ Array [
"杭州市",
],
"originalText": "杭州市",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "绍兴市",
@@ -25614,7 +35268,7 @@ Array [
"绍兴市",
],
"originalText": "绍兴市",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "宁波市",
@@ -25625,7 +35279,7 @@ Array [
"宁波市",
],
"originalText": "宁波市",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "舟山市",
@@ -25636,7 +35290,7 @@ Array [
"舟山市",
],
"originalText": "舟山市",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "家具",
@@ -25647,18 +35301,19 @@ Array [
"家具",
],
"originalText": "家具",
- "width": 103.8,
+ "width": 143.8,
},
Object {
- "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
- "actualTextHeight": 15,
- "actualTextWidth": 337,
- "height": 30,
+ "actualText": "家具家具家具家具家具家具家具家具家具家...",
+ "actualTextHeight": 30,
+ "actualTextWidth": 240,
+ "height": 61,
"multiLineActualTexts": Array [
- "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "家具家具家具家具家具",
+ "家具家具家具家具家...",
],
"originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "家具",
@@ -25669,7 +35324,7 @@ Array [
"家具",
],
"originalText": "家具",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "家具",
@@ -25680,7 +35335,7 @@ Array [
"家具",
],
"originalText": "家具",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "家具",
@@ -25691,7 +35346,7 @@ Array [
"家具",
],
"originalText": "家具",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "家具",
@@ -25702,7 +35357,7 @@ Array [
"家具",
],
"originalText": "家具",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "家具",
@@ -25713,7 +35368,7 @@ Array [
"家具",
],
"originalText": "家具",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "家具",
@@ -25724,7 +35379,7 @@ Array [
"家具",
],
"originalText": "家具",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "家具",
@@ -25735,7 +35390,7 @@ Array [
"家具",
],
"originalText": "家具",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "办公用品",
@@ -25746,7 +35401,7 @@ Array [
"办公用品",
],
"originalText": "办公用品",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "办公用品",
@@ -25757,7 +35412,7 @@ Array [
"办公用品",
],
"originalText": "办公用品",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "办公用品",
@@ -25768,7 +35423,7 @@ Array [
"办公用品",
],
"originalText": "办公用品",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "办公用品",
@@ -25779,7 +35434,51 @@ Array [
"办公用品",
],
"originalText": "办公用品",
- "width": 103.8,
+ "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": "桌子",
@@ -25790,18 +35489,19 @@ Array [
"桌子",
],
"originalText": "桌子",
- "width": 103.8,
+ "width": 143.8,
},
Object {
- "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
- "actualTextHeight": 15,
- "actualTextWidth": 361,
- "height": 30,
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...",
+ "actualTextHeight": 30,
+ "actualTextWidth": 240,
+ "height": 61,
"multiLineActualTexts": Array [
- "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "桌子桌子桌子桌子桌子",
+ "桌子桌子桌子桌子桌...",
],
"originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "桌子",
@@ -25812,7 +35512,7 @@ Array [
"桌子",
],
"originalText": "桌子",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "桌子",
@@ -25823,7 +35523,7 @@ Array [
"桌子",
],
"originalText": "桌子",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "桌子",
@@ -25834,7 +35534,7 @@ Array [
"桌子",
],
"originalText": "桌子",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "沙发",
@@ -25845,7 +35545,7 @@ Array [
"沙发",
],
"originalText": "沙发",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "沙发",
@@ -25856,7 +35556,7 @@ Array [
"沙发",
],
"originalText": "沙发",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "沙发",
@@ -25867,7 +35567,7 @@ Array [
"沙发",
],
"originalText": "沙发",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "沙发",
@@ -25878,7 +35578,7 @@ Array [
"沙发",
],
"originalText": "沙发",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "笔",
@@ -25889,7 +35589,7 @@ Array [
"笔",
],
"originalText": "笔",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "笔",
@@ -25900,7 +35600,7 @@ Array [
"笔",
],
"originalText": "笔",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "笔",
@@ -25911,7 +35611,7 @@ Array [
"笔",
],
"originalText": "笔",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "笔",
@@ -25922,7 +35622,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": "236723672361111",
@@ -25933,18 +35677,19 @@ Array [
"236723672361111",
],
"originalText": 236723672361111,
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "7789778977897789778977897789",
- "actualTextHeight": 15,
- "actualTextWidth": 187,
- "height": 30,
+ "actualTextHeight": 30,
+ "actualTextWidth": 188,
+ "height": 61,
"multiLineActualTexts": Array [
- "7789778977897789778977897789",
+ "7789778977897789778",
+ "977897789",
],
"originalText": "7789778977897789778977897789",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "236723672361111",
@@ -25955,7 +35700,7 @@ Array [
"236723672361111",
],
"originalText": 236723672361111,
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "3877",
@@ -25966,7 +35711,7 @@ Array [
"3877",
],
"originalText": 3877,
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "4342",
@@ -25977,7 +35722,7 @@ Array [
"4342",
],
"originalText": 4342,
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "5343",
@@ -25988,7 +35733,7 @@ Array [
"5343",
],
"originalText": 5343,
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "632",
@@ -25999,7 +35744,7 @@ Array [
"632",
],
"originalText": 632,
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "7234",
@@ -26010,7 +35755,7 @@ Array [
"7234",
],
"originalText": 7234,
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "834",
@@ -26021,7 +35766,7 @@ Array [
"834",
],
"originalText": 834,
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "945",
@@ -26032,7 +35777,7 @@ Array [
"945",
],
"originalText": 945,
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "1304",
@@ -26043,7 +35788,7 @@ Array [
"1304",
],
"originalText": 1304,
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "1145",
@@ -26054,7 +35799,7 @@ Array [
"1145",
],
"originalText": 1145,
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "1432",
@@ -26065,7 +35810,51 @@ Array [
"1432",
],
"originalText": 1432,
- "width": 103.8,
+ "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,
},
]
`;
@@ -27176,7 +36965,7 @@ Array [
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 64,
"multiLineActualTexts": Array [
"序号",
],
@@ -27287,209 +37076,187 @@ Array [
"originalText": 9,
"width": 80,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should render three max text lines 3`] = `
+Array [
Object {
- "actualText": "10",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 30,
- "multiLineActualTexts": Array [
- "10",
- ],
- "originalText": 10,
- "width": 80,
- },
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should render three max text lines 3`] = `
-Array [
- Object {
- "actualText": "序号",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 56,
- "multiLineActualTexts": Array [
- "序号",
- ],
- "originalText": "序号",
- "width": 80,
- },
- Object {
- "actualText": "省份",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 56,
- "multiLineActualTexts": Array [
- "省份",
- ],
- "originalText": "省份",
- "width": 103.8,
- },
- Object {
- "actualText": "城市城市城市城市城市城市城市城市城市城市...",
- "actualTextHeight": 48,
- "actualTextWidth": 253,
- "height": 56,
- "multiLineActualTexts": Array [
- "城市城市城市城",
- "市城市城市城市",
- "城市城市城市...",
- ],
- "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
- "width": 103.8,
- },
- Object {
- "actualText": "类别类别类别类别类别类别类别类别类别类别",
- "actualTextHeight": 48,
- "actualTextWidth": 243,
- "height": 56,
- "multiLineActualTexts": Array [
- "类别类别类别类",
- "别类别类别类别",
- "类别类别类别",
- ],
- "originalText": "类别类别类别类别类别类别类别类别类别类别",
- "width": 103.8,
- },
- Object {
- "actualText": "子类别",
- "actualTextHeight": 16,
- "actualTextWidth": 37,
- "height": 56,
- "multiLineActualTexts": Array [
- "子类别",
- ],
- "originalText": "子类别",
- "width": 103.8,
- },
- Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量...",
- "actualTextHeight": 48,
- "actualTextWidth": 253,
- "height": 56,
- "multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量...",
- ],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 103.8,
- },
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should render three max text lines 4`] = `Array []`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should render three max text lines 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": 61,
- "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": "9",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
- "multiLineActualTexts": Array [
- "9",
- ],
- "originalText": 9,
- "width": 80,
- },
- Object {
- "actualText": "10",
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "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 render three max text lines 4`] = `Array []`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should render three max text lines 5`] = `
+Array [
+ Object {
+ "actualText": "1",
"actualTextHeight": 15,
- "actualTextWidth": 14,
+ "actualTextWidth": 7,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": 1,
+ "width": 80,
+ },
+ Object {
+ "actualText": "2",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 61,
+ "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 [
- "10",
+ "4",
],
- "originalText": 10,
+ "originalText": 4,
+ "width": 80,
+ },
+ Object {
+ "actualText": "5",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "5",
+ ],
+ "originalText": 5,
+ "width": 80,
+ },
+ Object {
+ "actualText": "6",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "6",
+ ],
+ "originalText": 6,
+ "width": 80,
+ },
+ Object {
+ "actualText": "7",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "7",
+ ],
+ "originalText": 7,
+ "width": 80,
+ },
+ Object {
+ "actualText": "8",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "8",
+ ],
+ "originalText": 8,
+ "width": 80,
+ },
+ Object {
+ "actualText": "9",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "9",
+ ],
+ "originalText": 9,
"width": 80,
},
Object {
@@ -27593,17 +37360,6 @@ Array [
"originalText": "浙江省",
"width": 103.8,
},
- Object {
- "actualText": "浙江省",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
- "multiLineActualTexts": Array [
- "浙江省",
- ],
- "originalText": "浙江省",
- "width": 103.8,
- },
Object {
"actualText": "绍兴市",
"actualTextHeight": 15,
@@ -27705,17 +37461,6 @@ Array [
"originalText": "舟山市",
"width": 103.8,
},
- Object {
- "actualText": "杭州市",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
- "multiLineActualTexts": Array [
- "杭州市",
- ],
- "originalText": "杭州市",
- "width": 103.8,
- },
Object {
"actualText": "家具",
"actualTextHeight": 15,
@@ -27817,17 +37562,6 @@ Array [
"originalText": "家具",
"width": 103.8,
},
- Object {
- "actualText": "办公用品",
- "actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 30,
- "multiLineActualTexts": Array [
- "办公用品",
- ],
- "originalText": "办公用品",
- "width": 103.8,
- },
Object {
"actualText": "桌子",
"actualTextHeight": 15,
@@ -27929,17 +37663,6 @@ Array [
"originalText": "沙发",
"width": 103.8,
},
- Object {
- "actualText": "笔",
- "actualTextHeight": 15,
- "actualTextWidth": 13,
- "height": 30,
- "multiLineActualTexts": Array [
- "笔",
- ],
- "originalText": "笔",
- "width": 103.8,
- },
Object {
"actualText": "236723672361111",
"actualTextHeight": 30,
@@ -28043,17 +37766,6 @@ Array [
"originalText": 834,
"width": 103.8,
},
- Object {
- "actualText": "945",
- "actualTextHeight": 15,
- "actualTextWidth": 21,
- "height": 30,
- "multiLineActualTexts": Array [
- "945",
- ],
- "originalText": 945,
- "width": 103.8,
- },
]
`;
@@ -28063,7 +37775,7 @@ Array [
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"序号",
],
@@ -28185,17 +37897,6 @@ Array [
"originalText": 10,
"width": 80,
},
- Object {
- "actualText": "11",
- "actualTextHeight": 15,
- "actualTextWidth": 13,
- "height": 30,
- "multiLineActualTexts": Array [
- "11",
- ],
- "originalText": 11,
- "width": 80,
- },
]
`;
@@ -28205,7 +37906,7 @@ Array [
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"序号",
],
@@ -28216,7 +37917,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"省份",
],
@@ -28227,7 +37928,7 @@ Array [
"actualText": "城市城市城市城市城市城市城...",
"actualTextHeight": 32,
"actualTextWidth": 168,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"城市城市城市城",
"市城市城市城...",
@@ -28239,7 +37940,7 @@ Array [
"actualText": "类别类别类别类别类别类别类...",
"actualTextHeight": 32,
"actualTextWidth": 168,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"类别类别类别类",
"别类别类别类...",
@@ -28251,7 +37952,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"子类别",
],
@@ -28262,7 +37963,7 @@ Array [
"actualText": "数量数量数量数量数量数量数...",
"actualTextHeight": 32,
"actualTextWidth": 168,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"数量数量数量数",
"量数量数量数...",
@@ -28387,17 +38088,6 @@ Array [
"originalText": 10,
"width": 80,
},
- Object {
- "actualText": "11",
- "actualTextHeight": 15,
- "actualTextWidth": 13,
- "height": 30,
- "multiLineActualTexts": Array [
- "11",
- ],
- "originalText": 11,
- "width": 80,
- },
Object {
"actualText": "浙江省",
"actualTextHeight": 15,
@@ -28509,17 +38199,6 @@ Array [
"originalText": "浙江省",
"width": 103.8,
},
- Object {
- "actualText": "浙江省",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
- "multiLineActualTexts": Array [
- "浙江省",
- ],
- "originalText": "浙江省",
- "width": 103.8,
- },
Object {
"actualText": "绍兴市",
"actualTextHeight": 15,
@@ -28631,17 +38310,6 @@ Array [
"originalText": "杭州市",
"width": 103.8,
},
- Object {
- "actualText": "绍兴市",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
- "multiLineActualTexts": Array [
- "绍兴市",
- ],
- "originalText": "绍兴市",
- "width": 103.8,
- },
Object {
"actualText": "家具",
"actualTextHeight": 15,
@@ -28753,17 +38421,6 @@ Array [
"originalText": "办公用品",
"width": 103.8,
},
- Object {
- "actualText": "办公用品",
- "actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 30,
- "multiLineActualTexts": Array [
- "办公用品",
- ],
- "originalText": "办公用品",
- "width": 103.8,
- },
Object {
"actualText": "桌子",
"actualTextHeight": 15,
@@ -28875,17 +38532,6 @@ Array [
"originalText": "笔",
"width": 103.8,
},
- Object {
- "actualText": "笔",
- "actualTextHeight": 15,
- "actualTextWidth": 13,
- "height": 30,
- "multiLineActualTexts": Array [
- "笔",
- ],
- "originalText": "笔",
- "width": 103.8,
- },
Object {
"actualText": "236723672361111",
"actualTextHeight": 30,
@@ -28999,17 +38645,6 @@ Array [
"originalText": 945,
"width": 103.8,
},
- Object {
- "actualText": "1304",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 30,
- "multiLineActualTexts": Array [
- "1304",
- ],
- "originalText": 1304,
- "width": 103.8,
- },
]
`;
@@ -29019,7 +38654,7 @@ Array [
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 64,
"multiLineActualTexts": Array [
"序号",
],
@@ -29227,7 +38862,7 @@ Array [
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 64,
"multiLineActualTexts": Array [
"序号",
],
@@ -29238,7 +38873,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 64,
"multiLineActualTexts": Array [
"省份",
],
@@ -29249,7 +38884,7 @@ Array [
"actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
"actualTextHeight": 48,
"actualTextWidth": 291,
- "height": 56,
+ "height": 64,
"multiLineActualTexts": Array [
"城市城市城市城市城市",
"城市城市城市城市城市",
@@ -29262,7 +38897,7 @@ Array [
"actualText": "类别类别类别类别类别类别类别类别类别类别",
"actualTextHeight": 32,
"actualTextWidth": 242,
- "height": 56,
+ "height": 64,
"multiLineActualTexts": Array [
"类别类别类别类别类别",
"类别类别类别类别类别",
@@ -29274,7 +38909,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 56,
+ "height": 64,
"multiLineActualTexts": Array [
"子类别",
],
@@ -29285,7 +38920,7 @@ Array [
"actualText": "数量数量数量数量数量数量数量数量数量数量数量",
"actualTextHeight": 48,
"actualTextWidth": 267,
- "height": 56,
+ "height": 64,
"multiLineActualTexts": Array [
"数量数量数量数量数量",
"数量数量数量数量数量",
@@ -30434,3 +40069,374 @@ Array [
},
]
`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should use actual text height for large max line by custom col group 1`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 112,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 96,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 0,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should use actual text height for large max line by custom col group 2`] = `
+Array [
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": 1,
+ "width": 80,
+ },
+ Object {
+ "actualText": "2",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2",
+ ],
+ "originalText": 2,
+ "width": 80,
+ },
+ Object {
+ "actualText": "3",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "3",
+ ],
+ "originalText": 3,
+ "width": 80,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should use actual text height for large max line by custom col group 3`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 208,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+ Object {
+ "actualText": "地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区",
+ "actualTextHeight": 80,
+ "actualTextWidth": 1205,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "地区地区地区地区地区地区地区地区地区地区地区",
+ "地区地区地区地区地区地区地区地区地区地区地区",
+ "地区地区地区地区地区地区地区地区地区地区地区",
+ "地区地区地区地区地区地区地区地区地区地区地区",
+ "地区地区地区地区地区地区",
+ ],
+ "originalText": "地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区地区",
+ "width": 287.6,
+ },
+ Object {
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 112,
+ "multiLineActualTexts": Array [
+ "省份",
+ ],
+ "originalText": "省份",
+ "width": 143.8,
+ },
+ Object {
+ "actualText": "城市",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 112,
+ "multiLineActualTexts": Array [
+ "城市",
+ ],
+ "originalText": "城市",
+ "width": 143.8,
+ },
+ Object {
+ "actualText": "类型",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 208,
+ "multiLineActualTexts": Array [
+ "类型",
+ ],
+ "originalText": "类型",
+ "width": 143.8,
+ },
+ Object {
+ "actualText": "金额金额金额金额金额金额金额金额金额金额金额金额金额金额金额金额金额金额金额金额",
+ "actualTextHeight": 32,
+ "actualTextWidth": 482,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "金额金额金额金额金额金额金额金额金额金额金额",
+ "金额金额金额金额金额金额金额金额金额",
+ ],
+ "originalText": "金额金额金额金额金额金额金额金额金额金额金额金额金额金额金额金额金额金额金额金额",
+ "width": 287.6,
+ },
+ Object {
+ "actualText": "价格",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 112,
+ "multiLineActualTexts": Array [
+ "价格",
+ ],
+ "originalText": "价格",
+ "width": 143.8,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 96,
+ "actualTextWidth": 726,
+ "height": 112,
+ "multiLineActualTexts": Array [
+ "数量数量数量数量数量",
+ "数量数量数量数量数量",
+ "数量数量数量数量数量",
+ "数量数量数量数量数量",
+ "数量数量数量数量数量",
+ "数量数量数量数量数量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 143.8,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should use actual text height for large max line by custom col group 4`] = `Array []`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should use actual text height for large max line by custom col group 5`] = `
+Array [
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": 1,
+ "width": 80,
+ },
+ Object {
+ "actualText": "2",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2",
+ ],
+ "originalText": 2,
+ "width": 80,
+ },
+ Object {
+ "actualText": "3",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "3",
+ ],
+ "originalText": 3,
+ "width": 80,
+ },
+ Object {
+ "actualText": "浙江",
+ "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": 25,
+ "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": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": 1,
+ "width": 143.8,
+ },
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": 1,
+ "width": 143.8,
+ },
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": 1,
+ "width": 143.8,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "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,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 143.8,
+ },
+]
+`;
diff --git a/packages/s2-core/__tests__/spreadsheet/__snapshots__/pivot-chart-sheet-spec.ts.snap b/packages/s2-core/__tests__/spreadsheet/__snapshots__/pivot-chart-sheet-spec.ts.snap
new file mode 100644
index 0000000000..aea0a56eb7
--- /dev/null
+++ b/packages/s2-core/__tests__/spreadsheet/__snapshots__/pivot-chart-sheet-spec.ts.snap
@@ -0,0 +1,153 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`Pivot Chart Tests frozen should render pivot chart with frozen 1`] = `
+Array [
+ Object {
+ "height": 50,
+ "id": "root[&]总计",
+ "width": 200,
+ "x": 0,
+ "y": 0,
+ },
+]
+`;
+
+exports[`Pivot Chart Tests frozen should render pivot chart with frozen 2`] = `
+Array [
+ Object {
+ "height": 250,
+ "id": "root[&]四川省",
+ "width": 200,
+ "x": 0,
+ "y": 300,
+ },
+]
+`;
+
+exports[`Pivot Chart Tests frozen should render pivot chart with frozen 3`] = `
+Array [
+ Object {
+ "height": 50,
+ "id": "root[&]总计",
+ "width": 100,
+ "x": 0,
+ "y": 0,
+ },
+]
+`;
+
+exports[`Pivot Chart Tests frozen should render pivot chart with frozen 4`] = `
+Array [
+ Object {
+ "height": 250,
+ "id": "root[&]四川省",
+ "width": 100,
+ "x": 0,
+ "y": 300,
+ },
+]
+`;
+
+exports[`Pivot Chart Tests frozen should render pivot chart with frozen 5`] = `Array []`;
+
+exports[`Pivot Chart Tests frozen should render pivot chart with frozen 6`] = `Array []`;
+
+exports[`Pivot Chart Tests frozen should render pivot chart with frozen 7`] = `
+Array [
+ Object {
+ "height": 50,
+ "id": "root[&]家具[&]桌子[&]number",
+ "width": 200,
+ "x": 0,
+ "y": 0,
+ },
+]
+`;
+
+exports[`Pivot Chart Tests frozen should render pivot chart with frozen 8`] = `
+Array [
+ Object {
+ "height": 50,
+ "id": "root[&]办公用品[&]纸张[&]number",
+ "width": 200,
+ "x": 600,
+ "y": 0,
+ },
+]
+`;
+
+exports[`Pivot Chart Tests frozen should render pivot chart with frozen but row header 1`] = `
+Array [
+ Object {
+ "height": 50,
+ "id": "root[&]家具[&]桌子[&]number",
+ "width": 300,
+ "x": 0,
+ "y": 60,
+ },
+ Object {
+ "height": 30,
+ "id": "root[&]家具[&]桌子",
+ "width": 300,
+ "x": 0,
+ "y": 30,
+ },
+ Object {
+ "height": 30,
+ "id": "root[&]家具",
+ "width": 300,
+ "x": 0,
+ "y": 0,
+ },
+]
+`;
+
+exports[`Pivot Chart Tests frozen should render pivot chart with frozen but row header 2`] = `
+Array [
+ Object {
+ "height": 50,
+ "id": "root[&]办公用品[&]纸张[&]number",
+ "width": 300,
+ "x": 900,
+ "y": 60,
+ },
+ Object {
+ "height": 30,
+ "id": "root[&]办公用品[&]纸张",
+ "width": 300,
+ "x": 900,
+ "y": 30,
+ },
+ Object {
+ "height": 30,
+ "id": "root[&]办公用品",
+ "width": 300,
+ "x": 900,
+ "y": 0,
+ },
+]
+`;
+
+exports[`Pivot Chart Tests frozen should render pivot chart with frozen but row header 3`] = `
+Array [
+ Object {
+ "height": 50,
+ "id": "root[&]家具[&]桌子[&]number",
+ "width": 300,
+ "x": 0,
+ "y": 0,
+ },
+]
+`;
+
+exports[`Pivot Chart Tests frozen should render pivot chart with frozen but row header 4`] = `
+Array [
+ Object {
+ "height": 50,
+ "id": "root[&]办公用品[&]纸张[&]number",
+ "width": 300,
+ "x": 900,
+ "y": 0,
+ },
+]
+`;
diff --git a/packages/s2-core/__tests__/spreadsheet/__snapshots__/spread-sheet-frozen-spec.ts.snap b/packages/s2-core/__tests__/spreadsheet/__snapshots__/spread-sheet-frozen-spec.ts.snap
index 7ffa1cf4bc..4d10f96605 100644
--- a/packages/s2-core/__tests__/spreadsheet/__snapshots__/spread-sheet-frozen-spec.ts.snap
+++ b/packages/s2-core/__tests__/spreadsheet/__snapshots__/spread-sheet-frozen-spec.ts.snap
@@ -116,21 +116,21 @@ Array [
Object {
"height": 30,
"id": "root[&]a-1",
- "width": 271.03125,
+ "width": 272,
"x": 0,
"y": 0,
},
Object {
"height": 30,
"id": "root[&]a-1[&]a-1-1",
- "width": 271.03125,
+ "width": 272,
"x": 0,
"y": 30,
},
Object {
"height": 30,
"id": "root[&]a-1",
- "width": 271.03125,
+ "width": 272,
"x": 0,
"y": 0,
},
@@ -142,14 +142,14 @@ Array [
Object {
"height": 30,
"id": "root[&]a-3[&]measure-5",
- "width": 271.03125,
+ "width": 272,
"x": 0,
"y": 420,
},
Object {
"height": -90,
"id": "root[&]a-3",
- "width": 271.03125,
+ "width": 272,
"x": 0,
"y": 420,
},
diff --git a/packages/s2-core/__tests__/spreadsheet/__snapshots__/spread-sheet-spec.ts.snap b/packages/s2-core/__tests__/spreadsheet/__snapshots__/spread-sheet-spec.ts.snap
index 0feb8e1aac..34a649920d 100644
--- a/packages/s2-core/__tests__/spreadsheet/__snapshots__/spread-sheet-spec.ts.snap
+++ b/packages/s2-core/__tests__/spreadsheet/__snapshots__/spread-sheet-spec.ts.snap
@@ -47,7 +47,7 @@ Object {
"colResizeType": "current",
"cornerCellHorizontal": true,
"minCellHeight": 20,
- "minCellWidth": 20,
+ "minCellWidth": 40,
"rowCellVertical": true,
"rowResizeType": "current",
},
@@ -72,10 +72,8 @@ Object {
"style": Object {
"colCell": Object {
"height": 30,
- "heightByField": null,
"maxLines": 1,
"textOverflow": "ellipsis",
- "widthByField": null,
"wordWrap": true,
},
"cornerCell": Object {
@@ -92,11 +90,9 @@ Object {
},
"layoutWidthType": "adaptive",
"rowCell": Object {
- "heightByField": null,
"maxLines": 1,
"showTreeLeafNodeAlignDot": false,
"textOverflow": "ellipsis",
- "widthByField": null,
"wordWrap": true,
},
"seriesNumberCell": Object {
diff --git a/packages/s2-core/__tests__/spreadsheet/__snapshots__/table-sheet-spec.ts.snap b/packages/s2-core/__tests__/spreadsheet/__snapshots__/table-sheet-spec.ts.snap
index 73c1b4d610..0537f35ecf 100644
--- a/packages/s2-core/__tests__/spreadsheet/__snapshots__/table-sheet-spec.ts.snap
+++ b/packages/s2-core/__tests__/spreadsheet/__snapshots__/table-sheet-spec.ts.snap
@@ -54,7 +54,7 @@ Object {
"lineWidth": 1,
"opacity": 1,
"text": "暂无数据",
- "x": 375.5,
+ "x": 375,
"y": 357.5,
}
`;
@@ -113,7 +113,7 @@ Object {
"lineWidth": 1,
"opacity": 1,
"text": "暂无数据",
- "x": 275.5,
+ "x": 275,
"y": 382.5,
}
`;
@@ -172,7 +172,7 @@ Object {
"lineWidth": 1,
"opacity": 1,
"text": "暂无数据",
- "x": 231,
+ "x": 230.5,
"y": 297.5,
}
`;
@@ -231,7 +231,7 @@ Object {
"lineWidth": 1,
"opacity": 1,
"text": "暂无数据",
- "x": 375.5,
+ "x": 375,
"y": 357.5,
}
`;
@@ -290,7 +290,7 @@ Object {
"lineWidth": 1,
"opacity": 1,
"text": "暂无数据",
- "x": 359.5,
+ "x": 359,
"y": 443,
}
`;
@@ -349,7 +349,7 @@ Object {
"lineWidth": 1,
"opacity": 1,
"text": "No Data",
- "x": 377.4892578125,
+ "x": 376.5,
"y": 357.5,
}
`;
@@ -408,7 +408,7 @@ Object {
"lineWidth": 1,
"opacity": 1,
"text": "暂无数据",
- "x": 375.5,
+ "x": 375,
"y": 357.5,
}
`;
diff --git a/packages/s2-core/__tests__/spreadsheet/__snapshots__/theme-spec.ts.snap b/packages/s2-core/__tests__/spreadsheet/__snapshots__/theme-spec.ts.snap
index a60dd22a75..a7087fa63a 100644
--- a/packages/s2-core/__tests__/spreadsheet/__snapshots__/theme-spec.ts.snap
+++ b/packages/s2-core/__tests__/spreadsheet/__snapshots__/theme-spec.ts.snap
@@ -53,10 +53,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#5286FA",
"verticalBorderColorOpacity": 1,
@@ -139,10 +139,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#5286FA",
"verticalBorderColorOpacity": 1,
@@ -156,6 +156,15 @@ Object {
},
"size": 10,
},
+ "measureText": Object {
+ "fill": "#FFFFFF",
+ "fontFamily": "Roboto, PingFangSC, Microsoft YaHei, Arial, sans-serif",
+ "fontSize": 12,
+ "fontWeight": 700,
+ "opacity": 1,
+ "textAlign": "left",
+ "textBaseline": "middle",
+ },
"text": Object {
"fill": "#FFFFFF",
"fontFamily": "Roboto, PingFangSC, Microsoft YaHei, Arial, sans-serif",
@@ -502,10 +511,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#E1EAFE",
"verticalBorderColorOpacity": 1,
@@ -563,6 +572,8 @@ Object {
},
"splitLine": Object {
"borderDash": Array [],
+ "horizontalBorderColor": "#3471F9",
+ "horizontalBorderColorOpacity": 0.2,
"horizontalBorderWidth": 2,
"shadowColors": Object {
"left": "rgba(0,0,0,0.1)",
@@ -570,6 +581,8 @@ Object {
},
"shadowWidth": 8,
"showShadow": true,
+ "verticalBorderColor": "#5286FA",
+ "verticalBorderColorOpacity": 0.25,
"verticalBorderWidth": 2,
},
}
@@ -628,10 +641,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#0647b1",
"verticalBorderColorOpacity": 1,
@@ -714,10 +727,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#0647b1",
"verticalBorderColorOpacity": 1,
@@ -731,6 +744,15 @@ Object {
},
"size": 10,
},
+ "measureText": Object {
+ "fill": "#ffffff",
+ "fontFamily": "Roboto, PingFangSC, Microsoft YaHei, Arial, sans-serif",
+ "fontSize": 12,
+ "fontWeight": 700,
+ "opacity": 1,
+ "textAlign": "left",
+ "textBaseline": "middle",
+ },
"text": Object {
"fill": "#ffffff",
"fontFamily": "Roboto, PingFangSC, Microsoft YaHei, Arial, sans-serif",
@@ -1077,10 +1099,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#1e2436",
"verticalBorderColorOpacity": 1,
@@ -1138,6 +1160,8 @@ Object {
},
"splitLine": Object {
"borderDash": Array [],
+ "horizontalBorderColor": "#7899ff",
+ "horizontalBorderColorOpacity": 0.2,
"horizontalBorderWidth": 2,
"shadowColors": Object {
"left": "rgba(0,0,0,0.1)",
@@ -1145,6 +1169,8 @@ Object {
},
"shadowWidth": 8,
"showShadow": true,
+ "verticalBorderColor": "#7899ff",
+ "verticalBorderColorOpacity": 0.25,
"verticalBorderWidth": 2,
},
}
@@ -1203,10 +1229,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#CCDBFC",
"verticalBorderColorOpacity": 1,
@@ -1289,10 +1315,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#CCDBFC",
"verticalBorderColorOpacity": 1,
@@ -1306,6 +1332,15 @@ Object {
},
"size": 10,
},
+ "measureText": Object {
+ "fill": "#000000",
+ "fontFamily": "Roboto, PingFangSC, Microsoft YaHei, Arial, sans-serif",
+ "fontSize": 12,
+ "fontWeight": 700,
+ "opacity": 1,
+ "textAlign": "left",
+ "textBaseline": "middle",
+ },
"text": Object {
"fill": "#000000",
"fontFamily": "Roboto, PingFangSC, Microsoft YaHei, Arial, sans-serif",
@@ -1652,10 +1687,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#E0E9FD",
"verticalBorderColorOpacity": 1,
@@ -1713,6 +1748,8 @@ Object {
},
"splitLine": Object {
"borderDash": Array [],
+ "horizontalBorderColor": "#326EF4",
+ "horizontalBorderColorOpacity": 0.2,
"horizontalBorderWidth": 2,
"shadowColors": Object {
"left": "rgba(0,0,0,0.1)",
@@ -1720,6 +1757,8 @@ Object {
},
"shadowWidth": 8,
"showShadow": true,
+ "verticalBorderColor": "#326EF4",
+ "verticalBorderColorOpacity": 0.25,
"verticalBorderWidth": 2,
},
}
@@ -1778,10 +1817,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#E7E9ED",
"verticalBorderColorOpacity": 1,
@@ -1864,10 +1903,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#E7E9ED",
"verticalBorderColorOpacity": 1,
@@ -1881,6 +1920,15 @@ Object {
},
"size": 10,
},
+ "measureText": Object {
+ "fill": "#000000",
+ "fontFamily": "Roboto, PingFangSC, Microsoft YaHei, Arial, sans-serif",
+ "fontSize": 12,
+ "fontWeight": 700,
+ "opacity": 1,
+ "textAlign": "left",
+ "textBaseline": "middle",
+ },
"text": Object {
"fill": "#000000",
"fontFamily": "Roboto, PingFangSC, Microsoft YaHei, Arial, sans-serif",
@@ -2227,10 +2275,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#F0F2F4",
"verticalBorderColorOpacity": 1,
@@ -2288,6 +2336,8 @@ Object {
},
"splitLine": Object {
"borderDash": Array [],
+ "horizontalBorderColor": "#BAC1CC",
+ "horizontalBorderColorOpacity": 0.2,
"horizontalBorderWidth": 2,
"shadowColors": Object {
"left": "rgba(0,0,0,0.1)",
@@ -2295,6 +2345,8 @@ Object {
},
"shadowWidth": 8,
"showShadow": true,
+ "verticalBorderColor": "#BAC1CC",
+ "verticalBorderColorOpacity": 0.25,
"verticalBorderWidth": 2,
},
}
@@ -2353,10 +2405,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#CCDBFC",
"verticalBorderColorOpacity": 1,
@@ -2439,10 +2491,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#CCDBFC",
"verticalBorderColorOpacity": 1,
@@ -2456,6 +2508,15 @@ Object {
},
"size": 10,
},
+ "measureText": Object {
+ "fill": "#000000",
+ "fontFamily": "Roboto, PingFangSC, Microsoft YaHei, Arial, sans-serif",
+ "fontSize": 12,
+ "fontWeight": 700,
+ "opacity": 1,
+ "textAlign": "left",
+ "textBaseline": "middle",
+ },
"text": Object {
"fill": "#000000",
"fontFamily": "Roboto, PingFangSC, Microsoft YaHei, Arial, sans-serif",
@@ -2802,10 +2863,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#E0E9FD",
"verticalBorderColorOpacity": 1,
@@ -2863,6 +2924,8 @@ Object {
},
"splitLine": Object {
"borderDash": Array [],
+ "horizontalBorderColor": "#326EF4",
+ "horizontalBorderColorOpacity": 0.2,
"horizontalBorderWidth": 2,
"shadowColors": Object {
"left": "rgba(0,0,0,0.1)",
@@ -2870,6 +2933,8 @@ Object {
},
"shadowWidth": 8,
"showShadow": true,
+ "verticalBorderColor": "#326EF4",
+ "verticalBorderColorOpacity": 0.25,
"verticalBorderWidth": 2,
},
}
@@ -2928,10 +2993,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#CCDBFC",
"verticalBorderColorOpacity": 1,
@@ -3014,10 +3079,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#CCDBFC",
"verticalBorderColorOpacity": 1,
@@ -3031,6 +3096,15 @@ Object {
},
"size": 10,
},
+ "measureText": Object {
+ "fill": "#000000",
+ "fontFamily": "Roboto, PingFangSC, Microsoft YaHei, Arial, sans-serif",
+ "fontSize": 12,
+ "fontWeight": 700,
+ "opacity": 1,
+ "textAlign": "left",
+ "textBaseline": "middle",
+ },
"text": Object {
"fill": "#000000",
"fontFamily": "Roboto, PingFangSC, Microsoft YaHei, Arial, sans-serif",
@@ -3377,10 +3451,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#E0E9FD",
"verticalBorderColorOpacity": 1,
@@ -3438,6 +3512,8 @@ Object {
},
"splitLine": Object {
"borderDash": Array [],
+ "horizontalBorderColor": "#326EF4",
+ "horizontalBorderColorOpacity": 0.2,
"horizontalBorderWidth": 2,
"shadowColors": Object {
"left": "rgba(0,0,0,0.1)",
@@ -3445,6 +3521,8 @@ Object {
},
"shadowWidth": 8,
"showShadow": true,
+ "verticalBorderColor": "#326EF4",
+ "verticalBorderColorOpacity": 0.25,
"verticalBorderWidth": 2,
},
}
diff --git a/packages/s2-core/__tests__/spreadsheet/compare-layout-spec.ts b/packages/s2-core/__tests__/spreadsheet/compare-layout-spec.ts
index ef7db7967a..7980c50b89 100644
--- a/packages/s2-core/__tests__/spreadsheet/compare-layout-spec.ts
+++ b/packages/s2-core/__tests__/spreadsheet/compare-layout-spec.ts
@@ -43,25 +43,57 @@ describe('Compare Layout Tests', () => {
test.each([
{ showDefaultHeaderActionIcon: true },
{ showDefaultHeaderActionIcon: false },
+ ])(
+ 'should get max col width for pivot sheet and same font size by %o',
+ async (options) => {
+ const s2 = new PivotSheet(getContainer(), mockDataConfig, {
+ ...s2Options,
+ ...options,
+ });
+
+ await s2.render();
+
+ const colLeafNodes = s2.facet.getColLeafNodes();
+
+ expect(Math.floor(colLeafNodes[0].width)).toBeCloseTo(133);
+ expect(Math.floor(colLeafNodes[1].width)).toEqual(
+ options.showDefaultHeaderActionIcon ? 71 : 66,
+ );
+ expectTextOverflowing(s2);
+ },
+ );
+
+ // 覆盖 (数值/中文) 等场景
+ test.each([
+ { showDefaultHeaderActionIcon: true, fontSize: 20 },
+ { showDefaultHeaderActionIcon: true, fontSize: 12 },
+ { showDefaultHeaderActionIcon: false, fontSize: 20 },
+ { showDefaultHeaderActionIcon: false, fontSize: 12 },
])('should get max col width for pivot sheet by %o', async (options) => {
const s2 = new PivotSheet(getContainer(), mockDataConfig, {
...s2Options,
- ...options,
+ showDefaultHeaderActionIcon: options.showDefaultHeaderActionIcon,
});
s2.setTheme({
dataCell: {
text: {
- fontSize: 20,
+ fontSize: options.fontSize,
},
},
});
await s2.render();
+ const expectWidth = options.showDefaultHeaderActionIcon ? 71 : 66;
+ const isLargeFontSize = options.fontSize === 20;
const colLeafNodes = s2.facet.getColLeafNodes();
- expect(Math.floor(colLeafNodes[0].width)).toBeCloseTo(189);
- expect(Math.floor(colLeafNodes[1].width)).toEqual(90);
+ expect(Math.floor(colLeafNodes[0].width)).toBeCloseTo(
+ isLargeFontSize ? 209 : 133,
+ );
+ expect(Math.floor(colLeafNodes[1].width)).toEqual(
+ isLargeFontSize ? 97 : expectWidth,
+ );
expectTextOverflowing(s2);
});
@@ -90,13 +122,15 @@ describe('Compare Layout Tests', () => {
await s2.render();
const colLeafNodes = s2.facet.getColLeafNodes();
-
- expect(Math.floor(colLeafNodes[0].width)).toBeCloseTo(182);
- expectTextOverflowing(s2);
const { dataCellWidthList, colLeafNodeWidthList } = mapWidthList(s2);
+ const expectWidth = 207;
- expect(dataCellWidthList.every((width) => width === 182)).toBeTruthy();
- expect(colLeafNodeWidthList).toEqual([182]);
+ expect(Math.floor(colLeafNodes[0].width)).toBeCloseTo(expectWidth);
+ expect(
+ dataCellWidthList.every((width) => width === expectWidth),
+ ).toBeTruthy();
+ expect(colLeafNodeWidthList).toEqual([expectWidth]);
+ expectTextOverflowing(s2);
});
test.each([
@@ -137,12 +171,13 @@ describe('Compare Layout Tests', () => {
expect(dataCellWidthList).toEqual(
options.showDefaultHeaderActionIcon
- ? [207, 207, 207, 207, 108, 108, 108, 108, 83, 83, 83, 83]
- : [207, 207, 207, 207, 108, 108, 108, 108, 67, 67, 67, 67],
+ ? [227, 227, 227, 227, 115, 115, 115, 115, 93, 93, 93, 93]
+ : [227, 227, 227, 227, 115, 115, 115, 115, 71, 71, 71, 71],
);
expect(colLeafNodeWidthList).toEqual(
- options.showDefaultHeaderActionIcon ? [207, 108, 83] : [207, 108, 67],
+ options.showDefaultHeaderActionIcon ? [227, 115, 93] : [227, 115, 71],
);
+ expectTextOverflowing(s2);
},
);
});
diff --git a/packages/s2-core/__tests__/spreadsheet/corner-spec.ts b/packages/s2-core/__tests__/spreadsheet/corner-spec.ts
index 76a6702471..10a95d0b43 100644
--- a/packages/s2-core/__tests__/spreadsheet/corner-spec.ts
+++ b/packages/s2-core/__tests__/spreadsheet/corner-spec.ts
@@ -1,5 +1,6 @@
import * as simpleDataConfig from 'tests/data/simple-data.json';
import {
+ CellType,
CornerNodeType,
DEFAULT_STYLE,
EXTRA_FIELD,
@@ -251,6 +252,7 @@ describe('PivotSheet Corner Tests', () => {
const getCellSpy = jest.spyOn(s2, 'getCell').mockImplementation(() => {
return {
+ cellType: CellType.CORNER_CELL,
getMeta: () => ({
...node,
cornerType: CornerNodeType.Row,
@@ -258,6 +260,7 @@ describe('PivotSheet Corner Tests', () => {
updateByState: jest.fn(),
} as unknown as S2CellType;
});
+
const selected = jest.fn();
s2.on(S2Event.GLOBAL_SELECTED, selected);
@@ -269,7 +272,11 @@ describe('PivotSheet Corner Tests', () => {
expect(s2.interaction.getCells().map((meta) => meta.id)).toEqual(
selectedIds,
);
- expect(selected).toHaveBeenCalledWith(s2.interaction.getActiveCells());
+ expect(selected).toHaveBeenCalledWith(s2.interaction.getActiveCells(), {
+ interactionName: 'cornerCellClick',
+ targetCell: expect.anything(),
+ event: expect.anything(),
+ });
// 取消选中
s2.emit(S2Event.CORNER_CELL_CLICK, {} as unknown as GEvent);
@@ -277,7 +284,11 @@ describe('PivotSheet Corner Tests', () => {
expect(s2.tooltip.visible).toBeFalsy();
expect(s2.interaction.isSelectedState()).toBeFalsy();
expect(s2.interaction.getCells()).toEqual([]);
- expect(selected).toHaveBeenCalledWith([]);
+ expect(selected).toHaveBeenCalledWith([], {
+ interactionName: 'cornerCellClick',
+ targetCell: expect.anything(),
+ event: expect.anything(),
+ });
getCellSpy.mockClear();
},
@@ -308,7 +319,7 @@ describe('PivotSheet Corner Tests', () => {
expect(selected).not.toHaveBeenCalled();
});
- test('should get corner row cell summaries', () => {
+ test.skip('should get corner row cell summaries', () => {
const node = s2.facet
.getRowNodes()
.find((rowNode) => rowNode.field === 'province');
@@ -391,4 +402,23 @@ describe('PivotSheet Corner Tests', () => {
expect(cornerCell.getActualText()).toEqual(cornerExtraFieldText);
});
+
+ test('should keep vertical alignment for tree mode when text align is left', async () => {
+ s2.setOptions({
+ hierarchyType: 'tree',
+ });
+ s2.setTheme({
+ cornerCell: {
+ bolderText: {
+ textAlign: 'left',
+ },
+ },
+ });
+ await s2.render();
+
+ s2.facet.getCornerNodes().forEach((node) => {
+ expect(node.x).toEqual(0);
+ expect(node.width).toEqual(120);
+ });
+ });
});
diff --git a/packages/s2-core/__tests__/spreadsheet/custom-cell-style-spec.ts b/packages/s2-core/__tests__/spreadsheet/custom-cell-style-spec.ts
index fbea95055f..4ce5c67366 100644
--- a/packages/s2-core/__tests__/spreadsheet/custom-cell-style-spec.ts
+++ b/packages/s2-core/__tests__/spreadsheet/custom-cell-style-spec.ts
@@ -91,7 +91,21 @@ describe('SpreadSheet Custom Cell Style Tests', () => {
},
},
});
- await s2.render();
+ await s2.render(false);
+
+ expect(mapNodeSize(s2.facet.getRowNodes())).toMatchSnapshot();
+ });
+
+ test('should get custom tree row cell style', async () => {
+ s2.setOptions({
+ hierarchyType: 'tree',
+ style: {
+ rowCell: {
+ treeWidth: 150,
+ },
+ },
+ });
+ await s2.render(false);
expect(mapNodeSize(s2.facet.getRowNodes())).toMatchSnapshot();
});
@@ -113,7 +127,7 @@ describe('SpreadSheet Custom Cell Style Tests', () => {
},
},
});
- await s2.render();
+ await s2.render(false);
expect(mapNodeSize(s2.facet.getRowNodes())).toMatchSnapshot();
});
@@ -131,7 +145,7 @@ describe('SpreadSheet Custom Cell Style Tests', () => {
},
},
});
- await s2.render();
+ await s2.render(false);
expect(mapNodeSize(s2.facet.getRowNodes())).toMatchSnapshot();
});
@@ -151,7 +165,7 @@ describe('SpreadSheet Custom Cell Style Tests', () => {
},
},
});
- await s2.render();
+ await s2.render(false);
expect(mapNodeSize(s2.facet.getRowNodes())).toMatchSnapshot();
});
@@ -200,7 +214,7 @@ describe('SpreadSheet Custom Cell Style Tests', () => {
},
},
});
- await s2.render();
+ await s2.render(false);
const rootRowNodes = s2.facet
.getRowNodes()
diff --git a/packages/s2-core/__tests__/spreadsheet/custom-grid-spec.ts b/packages/s2-core/__tests__/spreadsheet/custom-grid-spec.ts
index d28cd7025a..6b2f946411 100644
--- a/packages/s2-core/__tests__/spreadsheet/custom-grid-spec.ts
+++ b/packages/s2-core/__tests__/spreadsheet/custom-grid-spec.ts
@@ -5,7 +5,11 @@ import { pick } from 'lodash';
import { CustomGridData } from 'tests/data/data-custom-grid';
import { waitForRender } from 'tests/util';
import { getContainer } from 'tests/util/helpers';
-import { KEY_GROUP_COL_RESIZE_AREA } from '../../src/common/constant';
+import {
+ KEY_GROUP_COL_RESIZE_AREA,
+ VALUE_FIELD,
+} from '../../src/common/constant';
+import { Aggregation } from '../../src/common/interface/basic';
import { CustomGridPivotDataSet } from '../../src/data-set/custom-grid-pivot-data-set';
import {
customColGridSimpleFields,
@@ -538,5 +542,51 @@ describe('SpreadSheet Custom Grid Tests', () => {
s2.facet.getColNodes().some((node) => node.isCollapsed),
).toBeFalsy();
});
+
+ // https://github.com/antvis/S2/issues/2893
+ test.each(['tree', 'grid'])(
+ 'should render correct total node for %s mode',
+ async (hierarchyType) => {
+ s2.setOptions({
+ hierarchyType,
+ totals: {
+ row: {
+ showGrandTotals: true,
+ showSubTotals: true,
+ reverseGrandTotalsLayout: true,
+ reverseSubTotalsLayout: true,
+ subTotalsDimensions: ['type'],
+ calcGrandTotals: {
+ aggregation: Aggregation.SUM,
+ },
+ calcSubTotals: {
+ aggregation: Aggregation.SUM,
+ },
+ },
+ col: {
+ showGrandTotals: true,
+ showSubTotals: true,
+ reverseGrandTotalsLayout: true,
+ reverseSubTotalsLayout: true,
+ subTotalsDimensions: ['type'],
+ calcGrandTotals: {
+ aggregation: Aggregation.SUM,
+ },
+ calcSubTotals: {
+ aggregation: Aggregation.SUM,
+ },
+ },
+ },
+ });
+
+ await s2.render(false);
+
+ expect(s2.facet.getRowGrandTotalsNodes()).toHaveLength(1);
+ expect(s2.facet.getColGrandTotalsNodes()).toHaveLength(0);
+
+ expect(s2.facet.getCellMeta(0, 0).data[VALUE_FIELD]).toEqual(24);
+ expect(s2.facet.getCellMeta(0, 1).data[VALUE_FIELD]).toEqual(10);
+ },
+ );
});
});
diff --git a/packages/s2-core/__tests__/spreadsheet/custom-table-col-spec.ts b/packages/s2-core/__tests__/spreadsheet/custom-table-col-spec.ts
index f1ebace5cc..9c84fffe1b 100644
--- a/packages/s2-core/__tests__/spreadsheet/custom-table-col-spec.ts
+++ b/packages/s2-core/__tests__/spreadsheet/custom-table-col-spec.ts
@@ -308,4 +308,29 @@ describe('TableSheet Custom Tests', () => {
expect(resizeAreaList.length).toEqual(8);
});
+
+ test.each([
+ { showDefaultHeaderActionIcon: false },
+ { showDefaultHeaderActionIcon: true },
+ ])(
+ 'should render correctly sort action icon in value cell for custom col header with %o',
+ async (options) => {
+ s2.setOptions(options);
+
+ await s2.render(false);
+
+ const fields = s2.facet
+ .getColCells()
+ .filter((cell) => {
+ return cell.getActionIcons().length >= 1;
+ })
+ .map((cell) => cell.getMeta().field);
+
+ expect(fields).toEqual(
+ options.showDefaultHeaderActionIcon
+ ? ['province', 'city', 'type', 'price', 'number']
+ : [],
+ );
+ },
+ );
});
diff --git a/packages/s2-core/__tests__/spreadsheet/custom-tree-spec.ts b/packages/s2-core/__tests__/spreadsheet/custom-tree-spec.ts
index 2c93df3010..9a47217b6d 100644
--- a/packages/s2-core/__tests__/spreadsheet/custom-tree-spec.ts
+++ b/packages/s2-core/__tests__/spreadsheet/custom-tree-spec.ts
@@ -1,7 +1,6 @@
import type { S2DataConfig, S2Options } from '@/common/interface';
import { PivotSheet, SpreadSheet } from '@/sheet-type';
import { getContainer } from 'tests/util/helpers';
-import { CustomTreePivotDataSet } from '../../src';
import type { HeaderCell } from '../../src/cell/header-cell';
import { customRowGridSimpleFields } from '../data/custom-grid-simple-fields';
import { customTreeNodes } from '../data/custom-tree-nodes';
@@ -19,7 +18,7 @@ const s2Options: S2Options = {
hierarchyType: 'tree',
style: {
rowCell: {
- width: 400,
+ treeWidth: 400,
},
},
};
@@ -81,10 +80,6 @@ describe('SpreadSheet Custom Tree Tests', () => {
expect(s2.dataSet.fields.valueInCols).toBeFalsy();
});
- test('should use custom tree pivot dataSet', () => {
- expect(s2.dataSet).toBeInstanceOf(CustomTreePivotDataSet);
- });
-
test('should get correctly dataset fields', () => {
expect(s2.dataSet.fields).toMatchSnapshot();
});
@@ -213,7 +208,8 @@ describe('SpreadSheet Custom Tree Tests', () => {
s2.setOptions({
style: {
rowCell: {
- width: 50,
+ treeWidth: 50,
+ width: 30,
},
},
});
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/interaction-brush-selection-scroll-spec.ts b/packages/s2-core/__tests__/spreadsheet/interaction-brush-selection-scroll-spec.ts
index 5b9ac2814b..742ac65dd0 100644
--- a/packages/s2-core/__tests__/spreadsheet/interaction-brush-selection-scroll-spec.ts
+++ b/packages/s2-core/__tests__/spreadsheet/interaction-brush-selection-scroll-spec.ts
@@ -161,7 +161,7 @@ const expectScrollBrush = async (
expect(dataCellBrushSelectionFn).toHaveBeenCalledTimes(1);
};
-describe('TableSheet Brush Selection Scroll Tests', () => {
+describe.skip('TableSheet Brush Selection Scroll Tests', () => {
test('should scroll when mouse outside table data cell', async () => {
const s2 = new TableSheet(getContainer(), dataCfg, options);
@@ -188,7 +188,7 @@ describe('TableSheet Brush Selection Scroll Tests', () => {
});
});
-describe('PivotSheet Brush Selection Scroll Tests', () => {
+describe.skip('PivotSheet Brush Selection Scroll Tests', () => {
test('should scroll when mouse outside data cell', async () => {
const s2 = createPivotSheet(
{
diff --git a/packages/s2-core/__tests__/spreadsheet/interaction-cell-selected-event-spec.ts b/packages/s2-core/__tests__/spreadsheet/interaction-cell-selected-event-spec.ts
new file mode 100644
index 0000000000..69f99c800b
--- /dev/null
+++ b/packages/s2-core/__tests__/spreadsheet/interaction-cell-selected-event-spec.ts
@@ -0,0 +1,57 @@
+import { S2Event } from '@/common/constant';
+import { type S2Options } from '@/common/interface';
+import { SpreadSheet } from '@/sheet-type';
+import { createPivotSheet } from 'tests/util/helpers';
+import { CellType } from '../../src';
+
+const s2Options: S2Options = {
+ width: 600,
+ height: 400,
+};
+
+describe('Interaction Cell Selected Event Tests', () => {
+ let s2: SpreadSheet;
+
+ beforeEach(async () => {
+ s2 = createPivotSheet(s2Options);
+ await s2.render();
+ });
+
+ afterEach(() => {
+ s2.destroy();
+ });
+
+ test.each`
+ cellType | event
+ ${CellType.CORNER_CELL} | ${S2Event.CORNER_CELL_SELECTED}
+ ${CellType.ROW_CELL} | ${S2Event.ROW_CELL_SELECTED}
+ ${CellType.COL_CELL} | ${S2Event.COL_CELL_SELECTED}
+ ${CellType.DATA_CELL} | ${S2Event.DATA_CELL_SELECTED}
+ `(
+ 'should get $cellType detail when $event is triggered',
+ ({ cellType, event }) => {
+ const fn = jest.fn();
+ const onSelected = jest.fn();
+
+ s2.on(event, fn);
+ s2.on(S2Event.GLOBAL_SELECTED, onSelected);
+
+ s2.interaction.emitSelectEvent({
+ targetCell: {
+ cellType,
+ },
+ });
+
+ expect(onSelected).toHaveBeenCalledWith(expect.anything(), {
+ targetCell: {
+ cellType,
+ },
+ });
+ expect(fn).toHaveBeenCalledWith(expect.anything(), {
+ targetCell: {
+ cellType,
+ },
+ });
+ },
+ );
+});
diff --git a/packages/s2-core/__tests__/spreadsheet/interaction-multi-selection-spec.ts b/packages/s2-core/__tests__/spreadsheet/interaction-multi-selection-spec.ts
index 1f75fc8acb..70d65ea699 100644
--- a/packages/s2-core/__tests__/spreadsheet/interaction-multi-selection-spec.ts
+++ b/packages/s2-core/__tests__/spreadsheet/interaction-multi-selection-spec.ts
@@ -8,7 +8,12 @@ import {
getContainer,
sleep,
} from 'tests/util/helpers';
-import { CellType, InteractionStateName, RootInteraction } from '../../src';
+import {
+ CellType,
+ InteractionStateName,
+ RootInteraction,
+ S2Event,
+} from '../../src';
import {
expectHighlightActiveNodes,
getSelectedCount,
@@ -349,4 +354,37 @@ describe('Interaction Multi Selection Tests', () => {
expect(interactedCells).toHaveLength(2);
},
);
+
+ test('should emit select event', async () => {
+ const onSelected = jest.fn();
+ const onColCellSelected = jest.fn();
+
+ s2.setOptions({
+ hierarchyType: 'grid',
+ });
+
+ s2.on(S2Event.GLOBAL_SELECTED, onSelected);
+ s2.on(S2Event.COL_CELL_SELECTED, onColCellSelected);
+
+ await s2.render(false);
+
+ const colRootCell = s2.facet.getColCells()[0];
+
+ // 选中
+ s2.interaction.changeCell({
+ cell: colRootCell,
+ });
+
+ expect(onSelected).toHaveBeenCalledTimes(1);
+ expect(onColCellSelected).toHaveBeenCalledTimes(1);
+
+ // 取消选中
+ s2.interaction.changeCell({
+ cell: colRootCell,
+ });
+
+ expect(s2.interaction.getActiveCells()).toHaveLength(0);
+ expect(onSelected).toHaveBeenCalledTimes(2);
+ expect(onColCellSelected).toHaveBeenCalledTimes(2);
+ });
});
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 d631b8a822..c0c44bee0e 100644
--- a/packages/s2-core/__tests__/spreadsheet/multi-line-text-spec.ts
+++ b/packages/s2-core/__tests__/spreadsheet/multi-line-text-spec.ts
@@ -10,9 +10,11 @@ import {
} from '../../src';
import type {
CellTextWordWrapStyle,
+ Meta,
S2CellType,
S2Options,
} from '../../src/common';
+import { customColSimpleMultipleTextColumns } from '../data/custom-table-col-fields';
import {
PivotSheetMultiLineTextDataCfg,
TableSheetMultiLineTextDataCfg,
@@ -137,6 +139,13 @@ describe('SpreadSheet Multi Line Text Tests', () => {
},
};
+ const cornerMetaList: Meta[] = [
+ { field: 'type', name: '类别\n类别' },
+ { field: 'sub_type', name: '子类别\n子类别\n子类别' },
+ { field: 'number', name: '数量\n数量\n数量\n数量' },
+ { field: 'city', name: '城市\n城市' },
+ ];
+
beforeEach(async () => {
s2 = new PivotSheet(
getContainer(),
@@ -160,7 +169,7 @@ describe('SpreadSheet Multi Line Text Tests', () => {
await s2.render(false);
matchCellStyleSnapshot();
- expectColHierarchyHeight(118, 80, 38);
+ expectColHierarchyHeight(144, 96, 48);
});
test('should render three max text lines', async () => {
@@ -168,7 +177,7 @@ describe('SpreadSheet Multi Line Text Tests', () => {
await s2.render(false);
matchCellStyleSnapshot();
- expectColHierarchyHeight(165, 112, 53);
+ expectColHierarchyHeight(192, 128, 64);
});
test('should render custom text overflow text', async () => {
@@ -213,12 +222,13 @@ describe('SpreadSheet Multi Line Text Tests', () => {
// wordWrap 关闭时, 不会渲染省略号
cells.forEach((cell) => {
expect(cell.getActualText()).not.toContain('...');
+ expect(cell.isTextOverflowing()).toBeFalsy();
});
});
expectColHierarchyHeight(90);
});
- test('should not adaptive adjust cell height if custom cell style less than actual text height by rowCell.height', async () => {
+ test('should not adaptive adjust cell height, but should adjust maxLines if custom cell style less than actual text height by rowCell.height', async () => {
updateStyle(2);
s2.setOptions({
@@ -234,7 +244,7 @@ describe('SpreadSheet Multi Line Text Tests', () => {
matchCellStyleSnapshot();
});
- test('should not adaptive adjust cell height if custom cell style less than actual text height by rowCell.height()', async () => {
+ test('should not adaptive adjust cell height, but should adjust maxLines if custom cell style less than actual text height by rowCell.height()', async () => {
updateStyle(2);
s2.setOptions({
@@ -335,7 +345,7 @@ describe('SpreadSheet Multi Line Text Tests', () => {
await s2.render(false);
matchCellStyleSnapshot();
- expectColHierarchyHeight(118, 80, 38);
+ expectColHierarchyHeight(144, 96, 48);
});
test('should not adaptive adjust cell height if custom cell style more than actual text height', async () => {
@@ -386,7 +396,7 @@ describe('SpreadSheet Multi Line Text Tests', () => {
updateStyle(3);
await s2.render(false);
- expectColHierarchyHeight(149, 96, 53);
+ expectColHierarchyHeight(176, 112, 64);
});
test('should render correctly layout if only enable grand totals', async () => {
@@ -442,8 +452,8 @@ describe('SpreadSheet Multi Line Text Tests', () => {
matchCellStyleSnapshot();
// 省份 4行文本, 叶子节点 (城市) 3行文本, 省份应该和城市高度一致, 才能展示所有文本 (maxLines: 4)
- expectRowHierarchyHeight(384, 0, 72);
- expectColHierarchyHeight(212, 144, 68);
+ expectRowHierarchyHeight(400, 0, 80);
+ expectColHierarchyHeight(240, 160, 80);
});
test('should render three max text lines for tree mode', async () => {
@@ -473,7 +483,7 @@ describe('SpreadSheet Multi Line Text Tests', () => {
await s2.render();
matchCellStyleSnapshot();
- expect(s2.facet.getLayoutResult().rowsHierarchy.height).toEqual(524);
+ expect(s2.facet.getLayoutResult().rowsHierarchy.height).toEqual(556);
});
// https://github.com/antvis/S2/issues/2678
@@ -528,7 +538,7 @@ describe('SpreadSheet Multi Line Text Tests', () => {
await s2.render();
matchCellStyleSnapshot();
- expect(s2.facet.getLayoutResult().rowsHierarchy.height).toEqual(328);
+ expect(s2.facet.getLayoutResult().rowsHierarchy.height).toEqual(336);
});
test.each(range(1, 11))(
@@ -537,7 +547,10 @@ describe('SpreadSheet Multi Line Text Tests', () => {
updateStyle(maxLines);
s2.changeSheetSize(800, 600);
- s2.setDataCfg(SimpleDataCfg);
+ s2.setDataCfg({
+ ...SimpleDataCfg,
+ meta: [],
+ });
await s2.render();
// 不管设置了多少行的文本, 如果实际文本未换行, 高度不应该自适应, 以默认高度为准.
@@ -545,6 +558,150 @@ describe('SpreadSheet Multi Line Text Tests', () => {
expectRowHierarchyHeight(60, 0, 30, 2);
},
);
+
+ 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);
+ 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: {
+ city: 3,
+ },
+ },
+ colCell: {
+ maxLinesByField: {
+ type: 2,
+ sub_type: 3,
+ [EXTRA_FIELD]: 4,
+ },
+ },
+ },
+ });
+ await s2.render(false);
+
+ matchCellStyleSnapshot();
+ });
+
+ test('should adjust corner cell max lines by custom col height', async () => {
+ s2.changeSheetSize(800, 600);
+ s2.setDataCfg({
+ meta: cornerMetaList,
+ });
+ s2.setOptions({
+ style: {
+ cornerCell: {
+ maxLines: 10,
+ },
+ colCell: {
+ height: 20,
+ maxLines: 2,
+ },
+ },
+ });
+ await s2.render();
+
+ matchCellStyleSnapshot();
+ expectColHierarchyHeight(60, 40, 20);
+ });
+
+ test('should adjust col cell height if corner cell height > col cell height', async () => {
+ s2.changeSheetSize(800, 600);
+ s2.setDataCfg({
+ meta: cornerMetaList,
+ });
+ s2.setOptions({
+ style: {
+ cornerCell: {
+ maxLines: 10,
+ },
+ colCell: {
+ maxLines: 1,
+ },
+ },
+ });
+ await s2.render();
+
+ matchCellStyleSnapshot();
+ expectColHierarchyHeight(160, 112, 48);
+ });
+
+ test('should adjust col cell height if corner cell height > col cell height by tree mode', async () => {
+ s2.changeSheetSize(800, 600);
+ s2.setDataCfg({
+ meta: cornerMetaList,
+ });
+ s2.setOptions({
+ hierarchyType: 'tree',
+ style: {
+ cornerCell: {
+ maxLines: 10,
+ },
+ colCell: {
+ maxLines: 1,
+ },
+ },
+ });
+ await s2.render();
+
+ matchCellStyleSnapshot();
+ expectColHierarchyHeight(192, 112, 80);
+ });
+
+ test('should adjust col cell height if corner cell height > col cell height by "valueInCols: false"', async () => {
+ s2.changeSheetSize(800, 600);
+ s2.setDataCfg({
+ meta: cornerMetaList,
+ fields: {
+ valueInCols: false,
+ },
+ });
+ s2.setOptions({
+ style: {
+ cornerCell: {
+ maxLines: 10,
+ },
+ colCell: {
+ maxLines: 1,
+ },
+ },
+ });
+ await s2.render();
+
+ matchCellStyleSnapshot();
+ expectColHierarchyHeight(96, 48, 48, 2);
+ });
});
describe('TableSheet', () => {
@@ -579,7 +736,7 @@ describe('SpreadSheet Multi Line Text Tests', () => {
await s2.render(false);
matchCellStyleSnapshot();
- expectColHierarchyHeight(40, 0, 40, 1);
+ expectColHierarchyHeight(48, 0, 48, 1);
});
test('should render three max text lines', async () => {
@@ -588,7 +745,7 @@ describe('SpreadSheet Multi Line Text Tests', () => {
matchCellStyleSnapshot();
- expectColHierarchyHeight(56, 0, 56, 1);
+ expectColHierarchyHeight(64, 0, 64, 1);
});
test('should render custom text overflow text', async () => {
@@ -628,11 +785,12 @@ describe('SpreadSheet Multi Line Text Tests', () => {
// wordWrap 关闭时, 不会渲染省略号
cells.forEach((cell) => {
expect(cell.getActualText()).not.toContain('...');
+ expect(cell.isTextOverflowing()).toBeFalsy();
});
});
});
- test('should not force adaptive adjust cell height if custom cell style less than actual text height by colCell.height', async () => {
+ test('should not force adaptive adjust cell height, but should adjust maxLines if custom cell style less than actual text height by colCell.height', async () => {
s2.setOptions({
style: {
colCell: {
@@ -648,7 +806,7 @@ describe('SpreadSheet Multi Line Text Tests', () => {
expectColHierarchyHeight(20, 0, 20, 1);
});
- test('should not adaptive adjust cell height if custom cell style more than actual text height', async () => {
+ test('should not adaptive adjust cell height, but should adjust maxLines if custom cell style more than actual text height', async () => {
const CUSTOM_CELL_HEIGHT = 70;
s2.setOptions({
@@ -687,14 +845,14 @@ describe('SpreadSheet Multi Line Text Tests', () => {
await s2.render();
matchCellStyleSnapshot();
- expectColHierarchyHeight(72, 0, 72, 1);
+ expectColHierarchyHeight(80, 0, 80, 1);
});
// https://github.com/antvis/S2/issues/2594
test('should calc correctly data cell height if actual text lines is difference', async () => {
updateStyle(4);
- await s2.render();
+ await s2.render(false);
matchCellStyleSnapshot();
@@ -720,7 +878,7 @@ describe('SpreadSheet Multi Line Text Tests', () => {
},
});
- await s2.render();
+ await s2.render(false);
matchCellStyleSnapshot();
expect((s2.facet as unknown as TableFacet).rowOffsets).toMatchSnapshot();
@@ -739,7 +897,7 @@ describe('SpreadSheet Multi Line Text Tests', () => {
},
});
- await s2.render();
+ await s2.render(false);
matchCellStyleSnapshot();
expect((s2.facet as unknown as TableFacet).rowOffsets).toMatchSnapshot();
@@ -758,7 +916,7 @@ describe('SpreadSheet Multi Line Text Tests', () => {
},
},
});
- await s2.render();
+ await s2.render(false);
matchCellStyleSnapshot();
});
@@ -773,7 +931,7 @@ describe('SpreadSheet Multi Line Text Tests', () => {
},
},
});
- await s2.render();
+ await s2.render(false);
matchCellStyleSnapshot();
});
@@ -791,7 +949,7 @@ describe('SpreadSheet Multi Line Text Tests', () => {
},
},
});
- await s2.render();
+ await s2.render(false);
matchCellStyleSnapshot();
});
@@ -806,7 +964,7 @@ describe('SpreadSheet Multi Line Text Tests', () => {
},
},
});
- await s2.render();
+ await s2.render(false);
matchCellStyleSnapshot();
});
@@ -851,12 +1009,12 @@ describe('SpreadSheet Multi Line Text Tests', () => {
},
},
});
- await s2.render();
+ await s2.render(false);
matchCellStyleSnapshot();
});
- test('should not adaptive adjust data cell height if custom cell style more than actual text height by dataCell.height', async () => {
+ test('should not adaptive adjust data cell height, but should adjust maxLines if custom cell style more than actual text height by dataCell.height', async () => {
s2.setOptions({
style: {
dataCell: {
@@ -871,7 +1029,7 @@ describe('SpreadSheet Multi Line Text Tests', () => {
matchCellStyleSnapshot();
});
- test('should not adaptive adjust data cell height if custom cell style less than actual text height by dataCell.height', async () => {
+ test('should not adaptive adjust data cell height, but should adjust maxLines if custom cell style less than actual text height by dataCell.height', async () => {
s2.setOptions({
style: {
dataCell: {
@@ -896,7 +1054,7 @@ describe('SpreadSheet Multi Line Text Tests', () => {
},
},
});
- await s2.render();
+ await s2.render(false);
matchCellStyleSnapshot();
});
@@ -911,7 +1069,7 @@ describe('SpreadSheet Multi Line Text Tests', () => {
},
},
});
- await s2.render();
+ await s2.render(false);
matchCellStyleSnapshot();
});
@@ -971,7 +1129,30 @@ describe('SpreadSheet Multi Line Text Tests', () => {
await s2.render();
matchCellStyleSnapshot();
- expect(s2.facet.getLayoutResult().colsHierarchy.height).toEqual(56);
+ expect(s2.facet.getLayoutResult().colsHierarchy.height).toEqual(64);
+ });
+
+ // https://github.com/antvis/S2/issues/2955
+ test('should use actual text height for large max line by custom col group', async () => {
+ updateStyle(20);
+
+ s2.setDataCfg(
+ {
+ ...SimpleDataCfg,
+ fields: {
+ rows: [],
+ columns: customColSimpleMultipleTextColumns,
+ values: [],
+ },
+ },
+ true,
+ );
+
+ s2.changeSheetSize(800, 600);
+ await s2.render();
+
+ matchCellStyleSnapshot();
+ expect(s2.facet.getLayoutResult().colsHierarchy.height).toEqual(208);
});
test.each(range(1, 11))(
@@ -995,5 +1176,81 @@ describe('SpreadSheet Multi Line Text Tests', () => {
expectColHierarchyHeight(30, 0, 30, 1);
},
);
+
+ test('should render by maxLines if actual text contains "\\n"', async () => {
+ updateStyle(1);
+ s2.changeSheetSize(800, 600);
+ 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 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/pivot-chart-sheet-spec.ts b/packages/s2-core/__tests__/spreadsheet/pivot-chart-sheet-spec.ts
new file mode 100644
index 0000000000..066b576c5b
--- /dev/null
+++ b/packages/s2-core/__tests__/spreadsheet/pivot-chart-sheet-spec.ts
@@ -0,0 +1,884 @@
+import { get, head, map, omit } from 'lodash';
+import { getContainer, sleep } from 'tests/util/helpers';
+import { asyncGetAllPlainData } from '../../src';
+import {
+ EXTRA_FIELD,
+ LayoutWidthType,
+ OriginEventType,
+ TAB_SEPARATOR,
+} from '../../src/common';
+import { Aggregation, type S2Options } from '../../src/common/interface';
+import { PivotChartSheet } from '../../src/extends';
+import {
+ KEY_GROUP_COL_AXIS_RESIZE_AREA,
+ KEY_GROUP_ROW_AXIS_RESIZE_AREA,
+ PLACEHOLDER_FIELD,
+} from '../../src/extends/pivot-chart/constant';
+import type { PivotChartFacet } from '../../src/extends/pivot-chart/facet/pivot-chart-facet';
+import type { FrozenFacet } from '../../src/facet';
+import dataCfg from '../data/mock-dataset.json';
+import { pickMap } from '../util/fp';
+
+describe('Pivot Chart Tests', () => {
+ let container: HTMLElement;
+ let s2: PivotChartSheet;
+
+ const s2Options: S2Options = {
+ width: 800,
+ height: 700,
+ seriesNumber: {
+ enable: true,
+ },
+ };
+
+ beforeEach(() => {
+ container = getContainer();
+ });
+ afterEach(() => {
+ s2?.destroy();
+ });
+
+ describe('cartesian coordinate', () => {
+ test('should render pivot chart with 1 level row', async () => {
+ s2 = new PivotChartSheet(
+ container,
+ {
+ ...dataCfg,
+ fields: {
+ rows: ['province'],
+ columns: ['type', 'sub_type'],
+ values: ['number'],
+ valueInCols: true,
+ },
+ },
+ s2Options,
+ );
+
+ await s2.render();
+
+ const {
+ rowsHierarchy,
+ axisRowsHierarchy,
+ colsHierarchy,
+ axisColsHierarchy,
+ } = s2.facet.getLayoutResult();
+
+ // 只有一个维度时,会被拆分到 axisRow 中
+ expect(rowsHierarchy.width).toEqual(0);
+ expect(axisRowsHierarchy!.width).toEqual(100);
+ expect(colsHierarchy.height).toEqual(60);
+ expect(axisColsHierarchy!.height).toEqual(50);
+ });
+
+ test('should render pivot chart with 2 level rows', async () => {
+ s2 = new PivotChartSheet(
+ container,
+ {
+ ...dataCfg,
+ fields: {
+ rows: ['province', 'city'],
+ columns: ['type', 'sub_type'],
+ values: ['number'],
+ valueInCols: false,
+ },
+ },
+ s2Options,
+ );
+
+ await s2.render();
+ const {
+ rowsHierarchy,
+ axisRowsHierarchy,
+ colsHierarchy,
+ axisColsHierarchy,
+ } = s2.facet.getLayoutResult();
+
+ // 多个维度时,最后一个维度会被拆分到 axisRow 中
+ expect(rowsHierarchy.width).toEqual(206);
+ // 默认情况,axis row cell 宽度固定为 100
+ expect(axisRowsHierarchy!.width).toEqual(100);
+
+ expect(colsHierarchy.height).toEqual(30);
+ // 默认情况下, axis col cell 高度固定为 50
+ expect(axisColsHierarchy!.height).toEqual(50);
+ });
+
+ test('should render pivot chart with 3 level rows', async () => {
+ s2 = new PivotChartSheet(
+ container,
+ {
+ ...dataCfg,
+ fields: {
+ rows: ['province', 'city', 'type'],
+ columns: ['sub_type'],
+ values: ['number'],
+ valueInCols: false,
+ },
+ },
+ s2Options,
+ );
+
+ await s2.render();
+ const { rowsHierarchy, axisRowsHierarchy, colLeafNodes } =
+ s2.facet.getLayoutResult();
+
+ // 多个维度时,最后一个维度会被拆分到 axisRow 中
+ expect(rowsHierarchy.width).toEqual(264);
+ // 默认情况,axis row cell 宽度固定为 100
+ expect(axisRowsHierarchy!.width).toEqual(100);
+
+ // 列头只有一个维度,且数值置于行头时,列头会生成 placeholder 占位
+ const leaf = head(colLeafNodes)!;
+
+ expect(colLeafNodes).toHaveLength(1);
+ expect(leaf.field).toEqual(PLACEHOLDER_FIELD);
+ expect(leaf.value).toEqual('子类别');
+ expect(leaf.width).toEqual(352);
+ expect(leaf.height).toEqual(30);
+ });
+
+ test('should render pivot chart with row totals', async () => {
+ s2 = new PivotChartSheet(
+ container,
+ {
+ ...dataCfg,
+ data: dataCfg.data.concat(dataCfg.totalData as any),
+ fields: {
+ rows: ['province', 'city', 'type', 'sub_type'],
+ columns: [],
+ values: ['number'],
+ valueInCols: true,
+ },
+ },
+ {
+ ...s2Options,
+ totals: {
+ row: {
+ showGrandTotals: true,
+ showSubTotals: true,
+ reverseGrandTotalsLayout: true,
+ reverseSubTotalsLayout: true,
+ subTotalsDimensions: ['province', 'city'],
+ grandTotalsGroupDimensions: ['city'],
+ subTotalsGroupDimensions: ['type'],
+ calcGrandTotals: {
+ aggregation: Aggregation.SUM,
+ },
+ calcSubTotals: {
+ aggregation: Aggregation.SUM,
+ },
+ },
+ },
+ },
+ );
+
+ await s2.render();
+
+ const { rowNodes } = s2.facet.getLayoutResult();
+ // 总计格子的横跨省份、城市、类别
+ const grandTotalRoot = rowNodes.find((node) => node.id === 'root[&]总计');
+
+ expect(grandTotalRoot?.width).toEqual(600);
+
+ // 省份的小计格子横跨城市和类别
+ const subTotalRoot = rowNodes.find(
+ (node) => node.id === 'root[&]浙江省[&]小计',
+ );
+
+ expect(subTotalRoot?.width).toEqual(400);
+ });
+
+ test('should render pivot chart with cols totals', async () => {
+ s2 = new PivotChartSheet(
+ container,
+ {
+ ...dataCfg,
+ data: dataCfg.data.concat(dataCfg.totalData as any),
+ fields: {
+ rows: [],
+ columns: ['province', 'city', 'type', 'sub_type'],
+ values: ['number'],
+ valueInCols: false,
+ },
+ },
+ {
+ ...s2Options,
+ totals: {
+ col: {
+ showGrandTotals: true,
+ showSubTotals: true,
+ reverseGrandTotalsLayout: true,
+ reverseSubTotalsLayout: true,
+ subTotalsDimensions: ['province', 'city'],
+ grandTotalsGroupDimensions: ['city'],
+ subTotalsGroupDimensions: ['type'],
+ calcGrandTotals: {
+ aggregation: Aggregation.SUM,
+ },
+ calcSubTotals: {
+ aggregation: Aggregation.SUM,
+ },
+ },
+ },
+ },
+ );
+
+ await s2.render();
+
+ const { colNodes } = s2.facet.getLayoutResult();
+ // 总计格子的横跨列头区域
+ const grandTotalRoot = colNodes.find((node) => node.id === 'root[&]总计');
+
+ expect(grandTotalRoot?.height).toEqual(90);
+
+ // 省份的小计格子横跨城市和类别
+ const subTotalRoot = colNodes.find(
+ (node) => node.id === 'root[&]浙江省[&]小计',
+ );
+
+ expect(subTotalRoot?.height).toEqual(60);
+ });
+ });
+
+ describe('polar coordinate', () => {
+ const polarOptions: S2Options = {
+ ...s2Options,
+ chart: {
+ coordinate: 'polar',
+ dataCellSpec: {
+ type: 'interval',
+ transform: [{ type: 'stackY' }],
+ coordinate: { type: 'theta', outerRadius: 0.8 },
+ },
+ },
+ };
+
+ test('should render pivot chart with 1 level row', async () => {
+ s2 = new PivotChartSheet(
+ container,
+ {
+ ...dataCfg,
+ fields: {
+ rows: ['province'],
+ columns: ['type', 'sub_type'],
+ values: ['number'],
+ valueInCols: true,
+ },
+ },
+ polarOptions,
+ );
+
+ await s2.render();
+
+ const { rowLeafNodes } = s2.facet.getLayoutResult();
+
+ // 只有一个维度时,因为是极坐标,所有会增加 placeholder 占位
+
+ const leaf = head(rowLeafNodes)!;
+
+ expect(rowLeafNodes).toHaveLength(1);
+ expect(leaf.field).toEqual('province');
+ expect(leaf.value).toEqual('省份');
+ expect(leaf.width).toEqual(100);
+ expect(leaf.height).toEqual(200);
+ });
+
+ test('should render pivot chart with 2 level rows', async () => {
+ s2 = new PivotChartSheet(
+ container,
+ {
+ ...dataCfg,
+ fields: {
+ rows: ['province', 'city'],
+ columns: ['type', 'sub_type'],
+ values: ['number'],
+ valueInCols: false,
+ },
+ },
+ {
+ ...polarOptions,
+ style: {
+ layoutWidthType: 'compact',
+ },
+ },
+ );
+
+ await s2.render();
+ const { axisRowsHierarchy, colsHierarchy, axisColsHierarchy } =
+ s2.facet.getLayoutResult();
+
+ // 默认情况,axis row cell 宽度固定为 100
+ expect(axisRowsHierarchy!.width).toEqual(100);
+
+ // 极坐标情况下,不展示坐标轴,而是按照原文字形式展示
+ const axisRowCell = head((s2.facet as PivotChartFacet).getAxisRowCells());
+
+ expect(axisRowCell?.getActualText()).toEqual('数量');
+
+ expect(colsHierarchy.height).toEqual(30);
+ // 极坐标不展示单独坐标轴
+ expect(axisColsHierarchy!.height).toEqual(0);
+ });
+
+ test('should render pivot chart with 3 level rows', async () => {
+ s2 = new PivotChartSheet(
+ container,
+ {
+ ...dataCfg,
+ fields: {
+ rows: ['province', 'city', 'type'],
+ columns: ['sub_type'],
+ values: ['number'],
+ valueInCols: false,
+ },
+ },
+ polarOptions,
+ );
+
+ await s2.render();
+ const { colLeafNodes } = s2.facet.getLayoutResult();
+
+ // 列头只有一个维度,且数值置于行头时,列头会生成 placeholder 占位
+ const leaf = head(colLeafNodes)!;
+
+ expect(colLeafNodes).toHaveLength(1);
+ expect(leaf.field).toEqual(PLACEHOLDER_FIELD);
+ expect(leaf.value).toEqual('子类别');
+ expect(leaf.width).toEqual(200);
+ expect(leaf.height).toEqual(30);
+ });
+
+ test('should render pivot chart with row totals', async () => {
+ s2 = new PivotChartSheet(
+ container,
+ {
+ ...dataCfg,
+ data: dataCfg.data.concat(dataCfg.totalData as any),
+ fields: {
+ rows: ['province', 'city', 'type', 'sub_type'],
+ columns: [],
+ values: ['number'],
+ valueInCols: true,
+ },
+ },
+ {
+ ...polarOptions,
+ totals: {
+ row: {
+ showGrandTotals: true,
+ showSubTotals: true,
+ reverseGrandTotalsLayout: true,
+ reverseSubTotalsLayout: true,
+ subTotalsDimensions: ['province', 'city'],
+ grandTotalsGroupDimensions: ['city'],
+ subTotalsGroupDimensions: ['type'],
+ calcGrandTotals: {
+ aggregation: Aggregation.SUM,
+ },
+ calcSubTotals: {
+ aggregation: Aggregation.SUM,
+ },
+ },
+ },
+ },
+ );
+
+ await s2.render();
+
+ const { rowNodes } = s2.facet.getLayoutResult();
+ // 总计格子的横跨省份和城市
+ const grandTotalRoot = rowNodes.find((node) => node.id === 'root[&]总计');
+
+ expect(grandTotalRoot?.width).toEqual(600);
+
+ // 省份的小计格子横跨城市和类别
+ const subTotalRoot = rowNodes.find(
+ (node) => node.id === 'root[&]浙江省[&]小计',
+ );
+
+ expect(subTotalRoot?.width).toEqual(400);
+ });
+
+ test('should render pivot chart with cols totals', async () => {
+ s2 = new PivotChartSheet(
+ container,
+ {
+ ...dataCfg,
+ data: dataCfg.data.concat(dataCfg.totalData as any),
+ fields: {
+ rows: [],
+ columns: ['province', 'city', 'type', 'sub_type'],
+ values: ['number'],
+ valueInCols: false,
+ },
+ },
+ {
+ ...polarOptions,
+ totals: {
+ col: {
+ showGrandTotals: true,
+ showSubTotals: true,
+ reverseGrandTotalsLayout: true,
+ reverseSubTotalsLayout: true,
+ subTotalsDimensions: ['province', 'city'],
+ grandTotalsGroupDimensions: ['city'],
+ subTotalsGroupDimensions: ['type'],
+ calcGrandTotals: {
+ aggregation: Aggregation.SUM,
+ },
+ calcSubTotals: {
+ aggregation: Aggregation.SUM,
+ },
+ },
+ },
+ },
+ );
+
+ await s2.render();
+
+ const { colNodes } = s2.facet.getLayoutResult();
+ // 总计格子的横跨列头区域
+ const grandTotalRoot = colNodes.find((node) => node.id === 'root[&]总计');
+
+ expect(grandTotalRoot?.height).toEqual(90);
+
+ // 省份的小计格子横跨城市和类别
+ const subTotalRoot = colNodes.find(
+ (node) => node.id === 'root[&]浙江省[&]小计',
+ );
+
+ expect(subTotalRoot?.height).toEqual(60);
+ });
+ });
+
+ describe('layoutWithType', () => {
+ test('should render pivot chart with adaptive layout', async () => {
+ s2 = new PivotChartSheet(container, dataCfg, {
+ ...s2Options,
+ style: {
+ layoutWidthType: LayoutWidthType.Adaptive,
+ },
+ });
+
+ await s2.render();
+
+ const {
+ rowsHierarchy,
+ axisRowsHierarchy,
+ colLeafNodes,
+ axisColsHierarchy,
+ } = s2.facet.getLayoutResult();
+
+ const rowSampleNodeWidths = rowsHierarchy.sampleNodesForAllLevels.map(
+ (node) => node.width,
+ );
+
+ const colLeafNodeWidths = colLeafNodes.map((node) => node.width);
+
+ // 只有一个维度时,会被拆分到 axisRow 中
+ expect(rowSampleNodeWidths).toEqual([200]);
+ expect(colLeafNodeWidths).toEqual([200, 200, 200, 200]);
+ expect(axisRowsHierarchy!.width).toEqual(100);
+ expect(axisColsHierarchy!.height).toEqual(50);
+ });
+ test('should render pivot chart with colAdaptive layout', async () => {
+ s2 = new PivotChartSheet(container, dataCfg, {
+ ...s2Options,
+ style: {
+ layoutWidthType: LayoutWidthType.ColAdaptive,
+ },
+ });
+
+ await s2.render();
+
+ const {
+ rowsHierarchy,
+ axisRowsHierarchy,
+ colLeafNodes,
+ axisColsHierarchy,
+ } = s2.facet.getLayoutResult();
+
+ const rowSampleNodeWidths = rowsHierarchy.sampleNodesForAllLevels.map(
+ (node) => node.width,
+ );
+
+ const colLeafNodeWidths = colLeafNodes.map((node) => node.width);
+
+ // 只有一个维度时,会被拆分到 axisRow 中
+ expect(rowSampleNodeWidths).toEqual([54]);
+ expect(colLeafNodeWidths).toEqual([200, 200, 200, 200]);
+ expect(axisRowsHierarchy!.width).toEqual(100);
+ expect(axisColsHierarchy!.height).toEqual(50);
+ });
+
+ test('should render pivot chart with compact layout', async () => {
+ s2 = new PivotChartSheet(container, dataCfg, {
+ ...s2Options,
+ style: {
+ layoutWidthType: LayoutWidthType.Compact,
+ },
+ });
+
+ await s2.render();
+
+ const {
+ rowsHierarchy,
+ axisRowsHierarchy,
+ colLeafNodes,
+ axisColsHierarchy,
+ } = s2.facet.getLayoutResult();
+
+ const rowSampleNodeWidths = rowsHierarchy.sampleNodesForAllLevels.map(
+ (node) => node.width,
+ );
+
+ const colLeafNodeWidths = colLeafNodes.map((node) => node.width);
+
+ // 只有一个维度时,会被拆分到 axisRow 中
+ expect(rowSampleNodeWidths).toEqual([54]);
+ expect(colLeafNodeWidths).toEqual([200, 200, 200, 200]);
+ expect(axisRowsHierarchy!.width).toEqual(100);
+ expect(axisColsHierarchy!.height).toEqual(50);
+ });
+ });
+
+ describe('formatter', () => {
+ test('should render pivot chart with formatter', async () => {
+ s2 = new PivotChartSheet(
+ container,
+ {
+ ...dataCfg,
+ meta: [
+ {
+ field: 'city',
+ name: '城市',
+ formatter: (v) => `[[${v}]]`,
+ },
+ {
+ field: 'number',
+ name: '数量',
+ description: '数量说明。。',
+ formatter: (v: number) => v.toFixed(2),
+ },
+ ],
+ },
+ {
+ ...s2Options,
+ totals: {
+ row: {
+ showGrandTotals: true,
+ showSubTotals: true,
+ reverseGrandTotalsLayout: true,
+ reverseSubTotalsLayout: true,
+ subTotalsDimensions: ['province'],
+ calcGrandTotals: {
+ aggregation: Aggregation.SUM,
+ },
+ calcSubTotals: {
+ aggregation: Aggregation.SUM,
+ },
+ },
+ },
+ },
+ );
+
+ await s2.render();
+
+ await sleep(3000);
+
+ // row axis formatter
+ const rowCell = (s2.facet as PivotChartFacet).getAxisRowCells()[1];
+ const rowAxisOptions = rowCell?.getChartOptions();
+ const domain = get(rowAxisOptions, 'scale.x.domain');
+
+ expect(domain).toEqual([
+ '小计',
+ '[[杭州市]]',
+ '[[绍兴市]]',
+ '[[宁波市]]',
+ '[[舟山市]]',
+ ]);
+
+ // col axis formatter
+ const colCell = (s2.facet as PivotChartFacet).getAxisColCells()[0];
+ const colAxisOptions = colCell?.getChartOptions();
+ const formatter = get(colAxisOptions, 'labelFormatter');
+
+ expect(formatter(4000)).toEqual('4000.00');
+
+ // tooltip formatter
+ await sleep(3000);
+
+ const canvas = s2.getCanvasElement();
+ const bbox = canvas.getBoundingClientRect();
+
+ let mousemoveEvent = new MouseEvent(OriginEventType.POINTER_MOVE, {
+ clientX: bbox.left + 460,
+ clientY: bbox.top + 150,
+ });
+
+ canvas.dispatchEvent(mousemoveEvent);
+
+ expect(
+ document.querySelector
-
-
- 共计 - 条
-
-
-
-
- 共计 - 条
-
-
-
-
- 共计 - 条
-
-
-
-
- 共计 - 条
-
-