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/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 000f900171..93cca60d9f 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -54,6 +54,9 @@ jobs: - name: Install dependencies run: pnpm bootstrap:ci + - name: Build doctor + run: pnpm build:doctor + - name: Build run: pnpm build 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/.gitignore b/.gitignore index 9936a09d18..2c7368fef0 100644 --- a/.gitignore +++ b/.gitignore @@ -24,5 +24,6 @@ packages/s2-*/dist/ packages/s2-*/temp/ packages/s2-*/coverage/ packages/s2-*/stats.html +packages/**/*.css .swc diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d65dbc444b..891e15c6c4 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -7,7 +7,11 @@ "我代码水平不行", "会不会受到鄙视?", "会不会不太好?", 放心,不存在的! -我们欢迎任何形式的贡献,不管是一个**错别字的修改**,还是**一次友好的建议**,不管是通过提交 [Issue](https://github.com/antvis/S2/issues/new/choose), 还是一个帅气 [pull request](https://github.com/antvis/S2/pulls), 亦或是一次钉钉群的讨论,参与 [discussions](https://github.com/antvis/S2/discussions) 的讨论,期待在 [贡献者列表](https://github.com/antvis/S2/graphs/contributors) 里看见你的头像。 +我们欢迎任何形式的贡献,不管是一个**错别字的修改**,还是**一次友好的建议**,不管是通过提交 [Issue](https://github.com/antvis/S2/issues/new/choose), 还是一个帅气 [pull request](https://github.com/antvis/S2/pulls), 亦或是参与 [discussions](https://github.com/antvis/S2/discussions) 的讨论。 + +这是一个开源项目,我们也有繁忙的业务要做,是用自己的业余时间在维护,为爱发电,精力有限,所以有时候 issue 响应速度不是那么及时。 + +如果你遇到了问题,或者对 Issues 和 Discussions 列表的问题感兴趣,可以直接认领并尝试修复,帮助 S2 变得更好,期待在 [贡献者列表](https://github.com/antvis/S2/graphs/contributors) 里看见你的头像。 ## 分支管理 diff --git a/README.en-US.md b/README.en-US.md index 95392e2148..9623c6c970 100644 --- a/README.en-US.md +++ b/README.en-US.md @@ -30,7 +30,7 @@ A practical visualization library for tabular analysis.
-
+
@@ -77,9 +77,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 +208,13 @@ 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 | 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?logo=npm) | ![next](https://img.shields.io/npm/v/@antv/s2/next.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) | ![next](https://img.shields.io/npm/v/@antv/s2-react/next.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) | ![next](https://img.shields.io/npm/v/@antv/s2-react-components/next.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) | ![next](https://img.shields.io/npm/v/@antv/s2-vue/next.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
diff --git a/README.md b/README.md
index ebb7941e60..677a3404f0 100644
--- a/README.md
+++ b/README.md
@@ -29,7 +29,7 @@
-
+
@@ -73,9 +73,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 +204,13 @@ 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) |
+| Package | Latest | 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?logo=npm) | ![next](https://img.shields.io/npm/v/@antv/s2/next.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) | ![next](https://img.shields.io/npm/v/@antv/s2-react/next.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) | ![next](https://img.shields.io/npm/v/@antv/s2-react-components/next.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) | ![next](https://img.shields.io/npm/v/@antv/s2-vue/next.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) |
### 🖥️ 兼容环境
diff --git a/build.config.base.mjs b/build.config.base.mjs
new file mode 100644
index 0000000000..04968185cb
--- /dev/null
+++ b/build.config.base.mjs
@@ -0,0 +1,163 @@
+/* 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: /^(.*)\/theme\/(.*)\.less$/,
+ replacement: '$1/theme/$2.less?inline',
+ },
+ {
+ 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..1bb0193f5e 100644
--- a/jest.config.base.js
+++ b/jest.config.base.js
@@ -43,16 +43,17 @@ module.exports = {
'\\.svg$': 'jest-raw-loader',
},
moduleNameMapper: {
+ '\\.svg$': '
-
+
@@ -207,8 +207,8 @@ 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-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/s2-react.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/s2-vue.min.js?label=gzip%20size&compression=gzip) | ![download](https://img.shields.io/npm/dm/@antv/s2-vue.svg) |
## 问题反馈
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..4eb99c5a55 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,16 @@ 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,
"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 +24,16 @@ Array [
"y": 0,
},
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": 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 +50,16 @@ 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,
"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 +67,16 @@ Array [
"y": 0,
},
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": 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 +84,16 @@ Array [
"y": 0,
},
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": 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 +110,20 @@ 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,
"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 +137,16 @@ 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,
"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 +154,20 @@ Array [
"y": 0,
},
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": 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 +181,16 @@ 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,
"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 +198,16 @@ Array [
"y": 0,
},
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": 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 +224,16 @@ 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,
"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 +241,16 @@ Array [
"y": 0,
},
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": 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 +258,16 @@ Array [
"y": 0,
},
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": 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 +284,16 @@ 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,
"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 +311,16 @@ 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,
"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 +328,16 @@ Array [
"y": 0,
},
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": 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 +355,16 @@ 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,
"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 +372,16 @@ Array [
"y": 0,
},
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": 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 +398,16 @@ 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,
"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 +415,16 @@ Array [
"y": 0,
},
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": 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 +432,16 @@ Array [
"y": 0,
},
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": 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 +458,16 @@ 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,
"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 +485,16 @@ 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,
"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 +502,16 @@ Array [
"y": 0,
},
Object {
- "belongsCell": undefined,
"children": Array [],
"colIndex": -1,
"cornerType": "row",
- "extra": 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 ca96ad096d..c9eb35e66e 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
@@ -63,18 +63,38 @@ Array [
exports[`SpreadSheet Custom Cell Style Tests PivotSheet Custom Cell Style Tests #ColCell should get custom col cell style by field id 1`] = `
Array [
Object {
- "height": 60,
- "id": "root[&]浙江",
- "width": 149.5,
+ "height": 30,
+ "id": "root[&]笔",
+ "width": 199.5,
},
Object {
- "height": 30,
- "id": "root[&]浙江[&]义乌",
+ "height": 300,
+ "id": "root[&]笔[&]price",
+ "width": 50,
+ },
+ Object {
+ "height": 300,
+ "id": "root[&]笔[&]cost",
"width": 149.5,
},
+]
+`;
+
+exports[`SpreadSheet Custom Cell Style Tests PivotSheet Custom Cell Style Tests #ColCell should get custom col cell style by value field 1`] = `
+Array [
Object {
"height": 30,
- "id": "root[&]浙江[&]杭州",
+ "id": "root[&]笔",
+ "width": 199.5,
+ },
+ Object {
+ "height": 300,
+ "id": "root[&]笔[&]price",
+ "width": 50,
+ },
+ Object {
+ "height": 300,
+ "id": "root[&]笔[&]cost",
"width": 149.5,
},
]
@@ -135,6 +155,46 @@ Array [
]
`;
+exports[`SpreadSheet Custom Cell Style Tests PivotSheet Custom Cell Style Tests #RowCell should get custom row cell style by extra field 1`] = `
+Array [
+ Object {
+ "height": 1200,
+ "id": "root[&]浙江",
+ "width": 149.5,
+ },
+ Object {
+ "height": 600,
+ "id": "root[&]浙江[&]义乌",
+ "width": 149.5,
+ },
+ Object {
+ "height": 300,
+ "id": "root[&]浙江[&]义乌[&]price",
+ "width": 50,
+ },
+ Object {
+ "height": 300,
+ "id": "root[&]浙江[&]义乌[&]cost",
+ "width": 50,
+ },
+ Object {
+ "height": 600,
+ "id": "root[&]浙江[&]杭州",
+ "width": 149.5,
+ },
+ Object {
+ "height": 300,
+ "id": "root[&]浙江[&]杭州[&]price",
+ "width": 50,
+ },
+ Object {
+ "height": 300,
+ "id": "root[&]浙江[&]杭州[&]cost",
+ "width": 50,
+ },
+]
+`;
+
exports[`SpreadSheet Custom Cell Style Tests PivotSheet Custom Cell Style Tests #RowCell should get custom row cell style by field 1`] = `
Array [
Object {
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..8e0d395141 100644
--- a/packages/s2-core/__tests__/spreadsheet/__snapshots__/multi-line-text-spec.ts.snap
+++ b/packages/s2-core/__tests__/spreadsheet/__snapshots__/multi-line-text-spec.ts.snap
@@ -6,7 +6,7 @@ Array [
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 68,
+ "height": 76,
"multiLineActualTexts": Array [
"序号",
],
@@ -17,7 +17,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 68,
+ "height": 76,
"multiLineActualTexts": Array [
"省份",
],
@@ -28,7 +28,7 @@ Array [
"actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
"actualTextHeight": 64,
"actualTextWidth": 292,
- "height": 68,
+ "height": 76,
"multiLineActualTexts": Array [
"城市城市城市",
"城市城市城市",
@@ -42,7 +42,7 @@ Array [
"actualText": "类别类别类别类别类别类别类别类别类别类别",
"actualTextHeight": 16,
"actualTextWidth": 241,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"类别类别类别类别类别类别类别类别类别类别",
],
@@ -53,7 +53,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"子类别",
],
@@ -69,7 +69,7 @@ Array [
"actualText": "1",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"1",
],
@@ -91,7 +91,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"3",
],
@@ -118,7 +118,7 @@ Array [
"actualText": "纸张纸张纸张纸张纸张",
"actualTextHeight": 32,
"actualTextWidth": 122,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"纸张纸张纸张",
"纸张纸张",
@@ -130,7 +130,7 @@ Array [
"actualText": "-",
"actualTextHeight": 16,
"actualTextWidth": 4,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"-",
],
@@ -141,7 +141,7 @@ Array [
"actualText": "数量数量数量数量数量数量数量数量数量数量数量",
"actualTextHeight": 60,
"actualTextWidth": 268,
- "height": 68,
+ "height": 76,
"multiLineActualTexts": Array [
"数量数量数量",
"数量数量数量",
@@ -155,7 +155,7 @@ Array [
"actualText": "家具",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"家具",
],
@@ -166,7 +166,7 @@ Array [
"actualText": "桌子",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"桌子",
],
@@ -177,7 +177,7 @@ Array [
"actualText": "数量数量数量数量数量数量数量数量数量数量数量",
"actualTextHeight": 60,
"actualTextWidth": 268,
- "height": 68,
+ "height": 76,
"multiLineActualTexts": Array [
"数量数量数量",
"数量数量数量",
@@ -191,7 +191,7 @@ Array [
"actualText": "沙发",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"沙发",
],
@@ -202,7 +202,7 @@ Array [
"actualText": "数量数量数量数量数量数量数量数量数量数量数量",
"actualTextHeight": 60,
"actualTextWidth": 268,
- "height": 68,
+ "height": 76,
"multiLineActualTexts": Array [
"数量数量数量",
"数量数量数量",
@@ -216,7 +216,7 @@ Array [
"actualText": "家具家具家具家具家具家具家具家具家具家具家具家...",
"actualTextHeight": 64,
"actualTextWidth": 290,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"家具家具家具",
"家具家具家具",
@@ -230,7 +230,7 @@ Array [
"actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...",
"actualTextHeight": 64,
"actualTextWidth": 290,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"桌子桌子桌子",
"桌子桌子桌子",
@@ -244,7 +244,7 @@ Array [
"actualText": "数量数量数量数量数量数量数量数量数量数量数量",
"actualTextHeight": 60,
"actualTextWidth": 268,
- "height": 68,
+ "height": 76,
"multiLineActualTexts": Array [
"数量数量数量",
"数量数量数量",
@@ -258,7 +258,7 @@ Array [
"actualText": "办公用品",
"actualTextHeight": 16,
"actualTextWidth": 49,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"办公用品",
],
@@ -269,7 +269,7 @@ Array [
"actualText": "笔",
"actualTextHeight": 16,
"actualTextWidth": 13,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"笔",
],
@@ -280,7 +280,7 @@ Array [
"actualText": "数量数量数量数量数量数量数量数量数量数量数量",
"actualTextHeight": 60,
"actualTextWidth": 268,
- "height": 68,
+ "height": 76,
"multiLineActualTexts": Array [
"数量数量数量",
"数量数量数量",
@@ -294,7 +294,7 @@ Array [
"actualText": "纸张",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"纸张",
],
@@ -305,7 +305,7 @@ Array [
"actualText": "数量数量数量数量数量数量数量数量数量数量数量",
"actualTextHeight": 60,
"actualTextWidth": 268,
- "height": 68,
+ "height": 76,
"multiLineActualTexts": Array [
"数量数量数量",
"数量数量数量",
@@ -324,7 +324,7 @@ Array [
"actualText": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙...",
"actualTextHeight": 64,
"actualTextWidth": 290,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"浙江浙江浙江",
"浙江浙江浙江",
@@ -338,7 +338,7 @@ Array [
"actualText": "杭州杭州杭州杭州",
"actualTextHeight": 30,
"actualTextWidth": 98,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"杭州杭州杭州",
"杭州",
@@ -405,7 +405,7 @@ Array [
"actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江...",
"actualTextHeight": 64,
"actualTextWidth": 290,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"浙江省浙江省",
"浙江省浙江省",
@@ -419,7 +419,7 @@ Array [
"actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州...",
"actualTextHeight": 60,
"actualTextWidth": 290,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"杭州市杭州市",
"杭州市杭州市",
@@ -473,17 +473,6 @@ Array [
"originalText": "南充市",
"width": 96,
},
- Object {
- "actualText": "乐山市",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
- "multiLineActualTexts": Array [
- "乐山市",
- ],
- "originalText": "乐山市",
- "width": 96,
- },
]
`;
@@ -493,7 +482,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"-",
],
@@ -548,18 +537,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 72,
- "multiLineActualTexts": Array [
- "-",
- ],
- "originalText": "-",
- "width": 96,
- },
- Object {
- "actualText": "-",
- "actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 30,
+ "height": 80,
"multiLineActualTexts": Array [
"-",
],
@@ -603,7 +581,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"-",
],
@@ -659,7 +637,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"-",
],
@@ -699,22 +677,11 @@ Array [
"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": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"-",
],
@@ -769,7 +736,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"-",
],
@@ -809,22 +776,11 @@ Array [
"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": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"-",
],
@@ -879,7 +835,7 @@ Array [
"actualText": "7789778977897789778977897789",
"actualTextHeight": 45,
"actualTextWidth": 189,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"77897789778",
"97789778977",
@@ -925,18 +881,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 30,
- "multiLineActualTexts": Array [
- "-",
- ],
- "originalText": "-",
- "width": 96,
- },
- Object {
- "actualText": "-",
- "actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"-",
],
@@ -991,7 +936,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"-",
],
@@ -1031,22 +976,11 @@ Array [
"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": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"-",
],
@@ -1101,7 +1035,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"-",
],
@@ -1141,17 +1075,6 @@ Array [
"originalText": 3551,
"width": 96,
},
- Object {
- "actualText": "352",
- "actualTextHeight": 15,
- "actualTextWidth": 21,
- "height": 30,
- "multiLineActualTexts": Array [
- "352",
- ],
- "originalText": 352,
- "width": 96,
- },
]
`;
@@ -2234,7 +2157,7 @@ Array [
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 53,
+ "height": 61,
"multiLineActualTexts": Array [
"序号",
],
@@ -2245,7 +2168,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 53,
+ "height": 61,
"multiLineActualTexts": Array [
"省份",
],
@@ -2256,7 +2179,7 @@ Array [
"actualText": "城市城市城市城市城市城市城市城市城市城市...",
"actualTextHeight": 48,
"actualTextWidth": 253,
- "height": 53,
+ "height": 61,
"multiLineActualTexts": Array [
"城市城市城市城",
"市城市城市城市",
@@ -2269,7 +2192,7 @@ Array [
"actualText": "类别类别类别类别类别类别类别类别类别类别",
"actualTextHeight": 16,
"actualTextWidth": 241,
- "height": 56,
+ "height": 64,
"multiLineActualTexts": Array [
"类别类别类别类别类别类别类别类别类别类别",
],
@@ -2280,7 +2203,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 56,
+ "height": 64,
"multiLineActualTexts": Array [
"子类别",
],
@@ -2334,7 +2257,7 @@ Array [
"actualText": "家具",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 64,
"multiLineActualTexts": Array [
"家具",
],
@@ -2345,7 +2268,7 @@ Array [
"actualText": "桌子",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 64,
"multiLineActualTexts": Array [
"桌子",
],
@@ -2356,7 +2279,7 @@ Array [
"actualText": "数量数量数量数量数量数量数量数量数量数量...",
"actualTextHeight": 45,
"actualTextWidth": 253,
- "height": 53,
+ "height": 61,
"multiLineActualTexts": Array [
"数量数量数量数",
"量数量数量数量",
@@ -2369,7 +2292,7 @@ Array [
"actualText": "沙发",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 64,
"multiLineActualTexts": Array [
"沙发",
],
@@ -2380,7 +2303,7 @@ Array [
"actualText": "数量数量数量数量数量数量数量数量数量数量...",
"actualTextHeight": 45,
"actualTextWidth": 253,
- "height": 53,
+ "height": 61,
"multiLineActualTexts": Array [
"数量数量数量数",
"量数量数量数量",
@@ -2393,7 +2316,7 @@ Array [
"actualText": "家具家具家具家具家具家具家具家具家具家具...",
"actualTextHeight": 48,
"actualTextWidth": 253,
- "height": 56,
+ "height": 64,
"multiLineActualTexts": Array [
"家具家具家具家",
"具家具家具家具",
@@ -2406,7 +2329,7 @@ Array [
"actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...",
"actualTextHeight": 48,
"actualTextWidth": 253,
- "height": 56,
+ "height": 64,
"multiLineActualTexts": Array [
"桌子桌子桌子桌",
"子桌子桌子桌子",
@@ -2419,7 +2342,7 @@ Array [
"actualText": "数量数量数量数量数量数量数量数量数量数量...",
"actualTextHeight": 45,
"actualTextWidth": 253,
- "height": 53,
+ "height": 61,
"multiLineActualTexts": Array [
"数量数量数量数",
"量数量数量数量",
@@ -2432,7 +2355,7 @@ Array [
"actualText": "办公用品",
"actualTextHeight": 16,
"actualTextWidth": 49,
- "height": 56,
+ "height": 64,
"multiLineActualTexts": Array [
"办公用品",
],
@@ -2443,7 +2366,7 @@ Array [
"actualText": "笔",
"actualTextHeight": 16,
"actualTextWidth": 13,
- "height": 56,
+ "height": 64,
"multiLineActualTexts": Array [
"笔",
],
@@ -2454,7 +2377,7 @@ Array [
"actualText": "数量数量数量数量数量数量数量数量数量数量...",
"actualTextHeight": 45,
"actualTextWidth": 253,
- "height": 53,
+ "height": 61,
"multiLineActualTexts": Array [
"数量数量数量数",
"量数量数量数量",
@@ -2467,7 +2390,7 @@ Array [
"actualText": "纸张",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 64,
"multiLineActualTexts": Array [
"纸张",
],
@@ -2478,7 +2401,7 @@ Array [
"actualText": "数量数量数量数量数量数量数量数量数量数量...",
"actualTextHeight": 45,
"actualTextWidth": 253,
- "height": 53,
+ "height": 61,
"multiLineActualTexts": Array [
"数量数量数量数",
"量数量数量数量",
@@ -3212,7 +3135,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"2",
],
@@ -3312,7 +3235,7 @@ Array [
"actualText": "浙江省浙江省浙江省浙江...",
"actualTextHeight": 32,
"actualTextWidth": 144,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"浙江省浙江省",
"浙江省浙江...",
@@ -3385,7 +3308,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"-",
],
@@ -3484,7 +3407,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"-",
],
@@ -3616,7 +3539,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"2",
],
@@ -3716,7 +3639,7 @@ Array [
"actualText": "浙江省浙江省浙江省浙江...",
"actualTextHeight": 32,
"actualTextWidth": 144,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"浙江省浙江省",
"浙江省浙江...",
@@ -3789,7 +3712,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"-",
],
@@ -3888,7 +3811,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"-",
],
@@ -3948,7 +3871,7 @@ Array [
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 38,
+ "height": 46,
"multiLineActualTexts": Array [
"序号",
],
@@ -3959,7 +3882,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 38,
+ "height": 46,
"multiLineActualTexts": Array [
"省份",
],
@@ -3970,7 +3893,7 @@ Array [
"actualText": "城市城市城市城市城市城...",
"actualTextHeight": 32,
"actualTextWidth": 144,
- "height": 38,
+ "height": 46,
"multiLineActualTexts": Array [
"城市城市城市",
"城市城市城...",
@@ -3982,7 +3905,7 @@ Array [
"actualText": "类别类别类别类别类别类别类别类别类别类别",
"actualTextHeight": 16,
"actualTextWidth": 241,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"类别类别类别类别类别类别类别类别类别类别",
],
@@ -3993,7 +3916,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"子类别",
],
@@ -4047,7 +3970,7 @@ Array [
"actualText": "家具",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"家具",
],
@@ -4058,7 +3981,7 @@ Array [
"actualText": "桌子",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"桌子",
],
@@ -4069,7 +3992,7 @@ Array [
"actualText": "数量数量数量数量数量数...",
"actualTextHeight": 30,
"actualTextWidth": 144,
- "height": 38,
+ "height": 46,
"multiLineActualTexts": Array [
"数量数量数量",
"数量数量数...",
@@ -4081,7 +4004,7 @@ Array [
"actualText": "沙发",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"沙发",
],
@@ -4092,7 +4015,7 @@ Array [
"actualText": "数量数量数量数量数量数...",
"actualTextHeight": 30,
"actualTextWidth": 144,
- "height": 38,
+ "height": 46,
"multiLineActualTexts": Array [
"数量数量数量",
"数量数量数...",
@@ -4352,7 +4275,7 @@ Array [
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 38,
+ "height": 46,
"multiLineActualTexts": Array [
"序号",
],
@@ -4363,7 +4286,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 38,
+ "height": 46,
"multiLineActualTexts": Array [
"省份",
],
@@ -4374,7 +4297,7 @@ Array [
"actualText": "城市城市城市城市城市城...",
"actualTextHeight": 32,
"actualTextWidth": 144,
- "height": 38,
+ "height": 46,
"multiLineActualTexts": Array [
"城市城市城市",
"城市城市城...",
@@ -4386,7 +4309,7 @@ Array [
"actualText": "类别类别类别类别类别类别类别类别类别类别",
"actualTextHeight": 16,
"actualTextWidth": 241,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"类别类别类别类别类别类别类别类别类别类别",
],
@@ -4397,7 +4320,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"子类别",
],
@@ -4451,7 +4374,7 @@ Array [
"actualText": "家具",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"家具",
],
@@ -4462,7 +4385,7 @@ Array [
"actualText": "桌子",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"桌子",
],
@@ -4473,7 +4396,7 @@ Array [
"actualText": "数量数量数量数量数量数...",
"actualTextHeight": 30,
"actualTextWidth": 144,
- "height": 38,
+ "height": 46,
"multiLineActualTexts": Array [
"数量数量数量",
"数量数量数...",
@@ -4485,7 +4408,7 @@ Array [
"actualText": "沙发",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"沙发",
],
@@ -4496,7 +4419,7 @@ Array [
"actualText": "数量数量数量数量数量数...",
"actualTextHeight": 30,
"actualTextWidth": 144,
- "height": 38,
+ "height": 46,
"multiLineActualTexts": Array [
"数量数量数量",
"数量数量数...",
@@ -4756,7 +4679,7 @@ Array [
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 38,
+ "height": 46,
"multiLineActualTexts": Array [
"序号",
],
@@ -4767,7 +4690,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 38,
+ "height": 46,
"multiLineActualTexts": Array [
"省份",
],
@@ -4778,7 +4701,7 @@ Array [
"actualText": "城市城市城市城市城市城...",
"actualTextHeight": 32,
"actualTextWidth": 144,
- "height": 38,
+ "height": 46,
"multiLineActualTexts": Array [
"城市城市城市",
"城市城市城...",
@@ -4790,7 +4713,7 @@ Array [
"actualText": "类别类别类别类别类别类别类别类别类别类别",
"actualTextHeight": 16,
"actualTextWidth": 241,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"类别类别类别类别类别类别类别类别类别类别",
],
@@ -4801,7 +4724,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"子类别",
],
@@ -4855,7 +4778,7 @@ Array [
"actualText": "家具",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"家具",
],
@@ -4866,7 +4789,7 @@ Array [
"actualText": "桌子",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"桌子",
],
@@ -4877,7 +4800,7 @@ Array [
"actualText": "数量数量数量数量数量数...",
"actualTextHeight": 30,
"actualTextWidth": 144,
- "height": 38,
+ "height": 46,
"multiLineActualTexts": Array [
"数量数量数量",
"数量数量数...",
@@ -4889,7 +4812,7 @@ Array [
"actualText": "沙发",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"沙发",
],
@@ -4900,7 +4823,7 @@ Array [
"actualText": "数量数量数量数量数量数...",
"actualTextHeight": 30,
"actualTextWidth": 144,
- "height": 38,
+ "height": 46,
"multiLineActualTexts": Array [
"数量数量数量",
"数量数量数...",
@@ -5398,7 +5321,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"2",
],
@@ -5491,7 +5414,7 @@ Array [
"actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江...",
"actualTextHeight": 64,
"actualTextWidth": 290,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"浙江省浙江省",
"浙江省浙江省",
@@ -5555,7 +5478,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"-",
],
@@ -5610,7 +5533,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 72,
+ "height": 80,
"multiLineActualTexts": Array [
"-",
],
@@ -5626,7 +5549,7 @@ Array [
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 38,
+ "height": 46,
"multiLineActualTexts": Array [
"序号",
],
@@ -5637,7 +5560,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 38,
+ "height": 46,
"multiLineActualTexts": Array [
"省份",
],
@@ -5648,7 +5571,7 @@ Array [
"actualText": "城市城市城市城市城市城...",
"actualTextHeight": 32,
"actualTextWidth": 144,
- "height": 38,
+ "height": 46,
"multiLineActualTexts": Array [
"城市城市城市",
"城市城市城...",
@@ -5660,7 +5583,7 @@ Array [
"actualText": "类别类别类别类别类别类别类别类别类别类别",
"actualTextHeight": 16,
"actualTextWidth": 241,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"类别类别类别类别类别类别类别类别类别类别",
],
@@ -5671,7 +5594,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"子类别",
],
@@ -5725,7 +5648,7 @@ Array [
"actualText": "家具",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"家具",
],
@@ -5736,7 +5659,7 @@ Array [
"actualText": "桌子",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"桌子",
],
@@ -5747,7 +5670,7 @@ Array [
"actualText": "数量数量数量数量数量数...",
"actualTextHeight": 30,
"actualTextWidth": 144,
- "height": 38,
+ "height": 46,
"multiLineActualTexts": Array [
"数量数量数量",
"数量数量数...",
@@ -5759,7 +5682,7 @@ Array [
"actualText": "沙发",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"沙发",
],
@@ -5770,7 +5693,7 @@ Array [
"actualText": "数量数量数量数量数量数...",
"actualTextHeight": 30,
"actualTextWidth": 144,
- "height": 38,
+ "height": 46,
"multiLineActualTexts": Array [
"数量数量数量",
"数量数量数...",
@@ -5900,17 +5823,6 @@ Array [
"originalText": 1822,
"width": 96,
},
- Object {
- "actualText": "1943",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 35,
- "multiLineActualTexts": Array [
- "1943",
- ],
- "originalText": 1943,
- "width": 96,
- },
Object {
"actualText": "632",
"actualTextHeight": 15,
@@ -5988,21 +5900,98 @@ Array [
"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": "2333",
+ "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": 27,
- "height": 35,
+ "actualTextWidth": 7,
+ "height": 120,
"multiLineActualTexts": Array [
- "2333",
+ "1",
],
- "originalText": 2333,
- "width": 96,
+ "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 not adaptive adjust cell height if hidden col cell 1`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should not adaptive adjust cell height if hidden col cell 3`] = `
Array [
Object {
"actualText": undefined,
@@ -6011,95 +6000,7 @@ Array [
"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": "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,
+ "width": 192,
},
Object {
"actualText": undefined,
@@ -6780,7 +6681,310 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 1`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by infinity maxLines 1`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+ Object {
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "省份",
+ ],
+ "originalText": "省份",
+ "width": 96,
+ },
+ Object {
+ "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "actualTextHeight": 64,
+ "actualTextWidth": 292,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "城市城市城市",
+ "城市城市城市",
+ "城市城市城市",
+ "城市城市城市",
+ ],
+ "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 241,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "类别类别类别类别类别类别类别类别类别类别",
+ ],
+ "originalText": "类别类别类别类别类别类别类别类别类别类别",
+ "width": 272,
+ },
+ Object {
+ "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": "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,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by infinity maxLines 3`] = `
+Array [
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 192,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 96,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 60,
+ "actualTextWidth": 268,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "数量数量数量",
+ "数量数量数量",
+ "数量数量数量",
+ "数量数量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 96,
+ },
+ Object {
+ "actualText": "沙发",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "沙发",
+ ],
+ "originalText": "沙发",
+ "width": 96,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 60,
+ "actualTextWidth": 268,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "数量数量数量",
+ "数量数量数量",
+ "数量数量数量",
+ "数量数量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 96,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by infinity maxLines 4`] = `
+Array [
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 120,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 96,
+ },
+ Object {
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "actualTextHeight": 80,
+ "actualTextWidth": 365,
+ "height": 96,
+ "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 [
+ "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": 96,
+ "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": 96,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by maxLines if actual text contains "\\n" 1`] = `
Array [
Object {
"actualText": "序号",
@@ -6805,12 +7009,12 @@ Array [
"width": 96,
},
Object {
- "actualText": "城市城@@@",
+ "actualText": "城市城市城...",
"actualTextHeight": 16,
- "actualTextWidth": 72,
+ "actualTextWidth": 71,
"height": 30,
"multiLineActualTexts": Array [
- "城市城@@@",
+ "城市城市城...",
],
"originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
"width": 96,
@@ -6840,13 +7044,13 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 2`] = `
+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": 120,
+ "height": 30,
"multiLineActualTexts": Array [
"1",
],
@@ -6857,7 +7061,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 120,
"multiLineActualTexts": Array [
"2",
],
@@ -6868,18 +7072,63 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 120,
+ "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 custom text overflow text 3`] = `
+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,
@@ -6903,12 +7152,12 @@ Array [
"width": 96,
},
Object {
- "actualText": "数量数@@@",
+ "actualText": "数量数量数...",
"actualTextHeight": 15,
- "actualTextWidth": 73,
+ "actualTextWidth": 71,
"height": 30,
"multiLineActualTexts": Array [
- "数量数@@@",
+ "数量数量数...",
],
"originalText": "数量数量数量数量数量数量数量数量数量数量数量",
"width": 96,
@@ -6925,474 +7174,399 @@ Array [
"width": 96,
},
Object {
- "actualText": "数量数@@@",
+ "actualText": "数量数量数...",
"actualTextHeight": 15,
- "actualTextWidth": 73,
+ "actualTextWidth": 71,
"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": "浙江省@@@",
+ "actualText": "家具家具家...",
"actualTextHeight": 16,
- "actualTextWidth": 72,
+ "actualTextWidth": 71,
"height": 30,
"multiLineActualTexts": Array [
- "浙江省@@@",
+ "家具家具家...",
],
- "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
"width": 96,
},
Object {
- "actualText": "四川省",
+ "actualText": "桌子桌子桌...",
"actualTextHeight": 16,
- "actualTextWidth": 37,
- "height": 120,
+ "actualTextWidth": 71,
+ "height": 30,
"multiLineActualTexts": Array [
- "四川省",
+ "桌子桌子桌...",
],
- "originalText": "四川省",
+ "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
"width": 96,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should render custom text overflow text 5`] = `
-Array [
Object {
- "actualText": "236723@@@",
+ "actualText": "数量数量数...",
"actualTextHeight": 15,
- "actualTextWidth": 77,
+ "actualTextWidth": 71,
"height": 30,
"multiLineActualTexts": Array [
- "236723@@@",
+ "数量数量数...",
],
- "originalText": 236723672361111,
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
"width": 96,
},
Object {
- "actualText": "3877",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualText": "办公用品",
+ "actualTextHeight": 16,
+ "actualTextWidth": 49,
"height": 30,
"multiLineActualTexts": Array [
- "3877",
+ "办公用品",
],
- "originalText": 3877,
- "width": 96,
+ "originalText": "办公用品",
+ "width": 192,
},
Object {
- "actualText": "4342",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualText": "笔",
+ "actualTextHeight": 16,
+ "actualTextWidth": 13,
"height": 30,
"multiLineActualTexts": Array [
- "4342",
+ "笔",
],
- "originalText": 4342,
+ "originalText": "笔",
"width": 96,
},
Object {
- "actualText": "-",
+ "actualText": "数量数量数...",
"actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualTextWidth": 71,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "数量数量数...",
],
- "originalText": "-",
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
"width": 96,
},
Object {
- "actualText": "-",
- "actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualText": "纸张",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "纸张",
],
- "originalText": "-",
+ "originalText": "纸张",
"width": 96,
},
Object {
- "actualText": "1723",
+ "actualText": "数量数量数...",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 71,
"height": 30,
"multiLineActualTexts": Array [
- "1723",
+ "数量数量数...",
],
- "originalText": 1723,
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
"width": 96,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by maxLines if actual text contains "\\n" 4`] = `
+Array [
Object {
- "actualText": "1822",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualText": "浙江...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 35,
"height": 30,
"multiLineActualTexts": Array [
- "1822",
+ "浙江...",
],
- "originalText": 1822,
+ "originalText": "浙江
+浙江",
"width": 96,
},
Object {
- "actualText": "1943",
+ "actualText": "杭州...",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 35,
"height": 30,
"multiLineActualTexts": Array [
- "1943",
+ "杭州...",
],
- "originalText": 1943,
+ "originalText": "杭州
+杭州
+杭州",
"width": 96,
},
Object {
- "actualText": "2330",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 30,
+ "actualText": "浙江省",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 120,
"multiLineActualTexts": Array [
- "2330",
+ "浙江省",
],
- "originalText": 2330,
+ "originalText": "浙江省",
"width": 96,
},
Object {
- "actualText": "632",
+ "actualText": "绍兴市",
"actualTextHeight": 15,
- "actualTextWidth": 21,
+ "actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "632",
+ "绍兴市",
],
- "originalText": 632,
+ "originalText": "绍兴市",
"width": 96,
},
Object {
- "actualText": "7234",
+ "actualText": "宁波市",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "7234",
+ "宁波市",
],
- "originalText": 7234,
+ "originalText": "宁波市",
"width": 96,
},
Object {
- "actualText": "834",
+ "actualText": "舟山市",
"actualTextHeight": 15,
- "actualTextWidth": 21,
+ "actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "834",
+ "舟山市",
],
- "originalText": 834,
+ "originalText": "舟山市",
"width": 96,
},
Object {
- "actualText": "5343",
+ "actualText": "杭州市",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "5343",
+ "杭州市",
],
- "originalText": 5343,
+ "originalText": "杭州市",
"width": 96,
},
Object {
- "actualText": "-",
- "actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualText": "浙江省浙江...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 71,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "浙江省浙江...",
],
- "originalText": "-",
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
"width": 96,
},
Object {
- "actualText": "2451",
+ "actualText": "杭州市杭州...",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 71,
"height": 30,
"multiLineActualTexts": Array [
- "2451",
+ "杭州市杭州...",
],
- "originalText": 2451,
+ "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
"width": 96,
},
Object {
- "actualText": "2244",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 30,
+ "actualText": "四川省",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 120,
"multiLineActualTexts": Array [
- "2244",
+ "四川省",
],
- "originalText": 2244,
+ "originalText": "四川省",
"width": 96,
},
Object {
- "actualText": "2333",
+ "actualText": "成都市",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "2333",
+ "成都市",
],
- "originalText": 2333,
+ "originalText": "成都市",
"width": 96,
},
Object {
- "actualText": "2445",
+ "actualText": "绵阳市",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "2445",
- ],
- "originalText": 2445,
- "width": 96,
- },
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 1`] = `
-Array [
- Object {
- "actualText": "序号",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 53,
- "multiLineActualTexts": Array [
- "序号",
- ],
- "originalText": "序号",
- "width": 80,
- },
- Object {
- "actualText": "省份",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 53,
- "multiLineActualTexts": Array [
- "省份",
+ "绵阳市",
],
- "originalText": "省份",
+ "originalText": "绵阳市",
"width": 96,
},
Object {
- "actualText": "城市城市城市城市城市城市城市城市城...",
- "actualTextHeight": 48,
- "actualTextWidth": 217,
- "height": 53,
+ "actualText": "南充市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "城市城市城市",
- "城市城市城市",
- "城市城市城...",
+ "南充市",
],
- "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "originalText": "南充市",
"width": 96,
},
Object {
- "actualText": "类别类别类别类别类别类别类别类别类别类别",
- "actualTextHeight": 16,
- "actualTextWidth": 241,
- "height": 56,
- "multiLineActualTexts": Array [
- "类别类别类别类别类别类别类别类别类别类别",
- ],
- "originalText": "类别类别类别类别类别类别类别类别类别类别",
- "width": 272,
- },
- Object {
- "actualText": "子类别",
- "actualTextHeight": 16,
+ "actualText": "乐山市",
+ "actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 56,
+ "height": 30,
"multiLineActualTexts": Array [
- "子类别",
+ "乐山市",
],
- "originalText": "子类别",
- "width": 272,
+ "originalText": "乐山市",
+ "width": 96,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 2`] = `
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render by maxLines if actual text contains "\\n" 5`] = `
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": 56,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "2",
+ "-",
],
- "originalText": "2",
- "width": 80,
+ "originalText": "-",
+ "width": 96,
},
Object {
- "actualText": "3",
+ "actualText": "-",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 120,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "3",
+ "-",
],
- "originalText": "3",
- "width": 80,
+ "originalText": "-",
+ "width": 96,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 3`] = `
-Array [
Object {
- "actualText": "家具",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 56,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "家具",
+ "-",
],
- "originalText": "家具",
- "width": 192,
+ "originalText": "-",
+ "width": 96,
},
Object {
- "actualText": "桌子",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 56,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "桌子",
+ "-",
],
- "originalText": "桌子",
+ "originalText": "-",
"width": 96,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数...",
- "actualTextHeight": 45,
- "actualTextWidth": 217,
- "height": 53,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "数量数量数量",
- "数量数量数量",
- "数量数量数...",
+ "-",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "originalText": "-",
"width": 96,
},
Object {
- "actualText": "沙发",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 56,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "沙发",
+ "-",
],
- "originalText": "沙发",
+ "originalText": "-",
"width": 96,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数...",
- "actualTextHeight": 45,
- "actualTextWidth": 217,
- "height": 53,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "数量数量数量",
- "数量数量数量",
- "数量数量数...",
+ "-",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "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,
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "-",
],
- "originalText": "浙江省",
+ "originalText": "-",
"width": 96,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江省浙江省浙江...",
- "actualTextHeight": 48,
- "actualTextWidth": 217,
- "height": 56,
+ "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": 30,
"multiLineActualTexts": Array [
- "四川省",
+ "-",
],
- "originalText": "四川省",
+ "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,
+ "actualText": "2367236723...",
+ "actualTextHeight": 15,
+ "actualTextWidth": 77,
"height": 30,
"multiLineActualTexts": Array [
- "23672367236",
- "1111",
+ "2367236723...",
],
"originalText": 236723672361111,
"width": 96,
@@ -7434,7 +7608,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 56,
+ "height": 30,
"multiLineActualTexts": Array [
"-",
],
@@ -7463,6 +7637,39 @@ Array [
"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,
@@ -7511,7 +7718,7 @@ Array [
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 56,
+ "height": 30,
"multiLineActualTexts": Array [
"-",
],
@@ -7540,345 +7747,7036 @@ Array [
"originalText": 2244,
"width": 96,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 1`] = `
+ 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": 76,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+ Object {
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "省份",
+ ],
+ "originalText": "省份",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "actualTextHeight": 64,
+ "actualTextWidth": 292,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "城市城市城市城",
+ "市城市城市城市",
+ "城市城市城市城",
+ "市城市",
+ ],
+ "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 241,
+ "height": 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": 76,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量数",
+ "量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "沙发",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "沙发",
+ ],
+ "originalText": "沙发",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 60,
+ "actualTextWidth": 268,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量数",
+ "量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "家具家具家具家具家具家具家...",
+ "actualTextHeight": 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": 76,
+ "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": 76,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量数",
+ "量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "纸张",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "纸张",
+ ],
+ "originalText": "纸张",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 60,
+ "actualTextWidth": 268,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量数",
+ "量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 102.57,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should 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": 61,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+ Object {
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 61,
+ "multiLineActualTexts": Array [
+ "省份",
+ ],
+ "originalText": "省份",
+ "width": 96,
+ },
+ Object {
+ "actualText": "城市城市城市城市城市城市城市城市城...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 217,
+ "height": 61,
+ "multiLineActualTexts": Array [
+ "城市城市城市",
+ "城市城市城市",
+ "城市城市城...",
+ ],
+ "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 241,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "类别类别类别类别类别类别类别类别类别类别",
+ ],
+ "originalText": "类别类别类别类别类别类别类别类别类别类别",
+ "width": 272,
+ },
+ Object {
+ "actualText": "子类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "子类别",
+ ],
+ "originalText": "子类别",
+ "width": 272,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 2`] = `
+Array [
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 120,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": "1",
+ "width": 80,
+ },
+ Object {
+ "actualText": "2",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "2",
+ ],
+ "originalText": "2",
+ "width": 80,
+ },
+ Object {
+ "actualText": "3",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 120,
+ "multiLineActualTexts": Array [
+ "3",
+ ],
+ "originalText": "3",
+ "width": 80,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 3`] = `
+Array [
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 192,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 96,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 217,
+ "height": 61,
+ "multiLineActualTexts": Array [
+ "数量数量数量",
+ "数量数量数量",
+ "数量数量数...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 96,
+ },
+ Object {
+ "actualText": "沙发",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "沙发",
+ ],
+ "originalText": "沙发",
+ "width": 96,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 217,
+ "height": 61,
+ "multiLineActualTexts": Array [
+ "数量数量数量",
+ "数量数量数量",
+ "数量数量数...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 96,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 4`] = `
+Array [
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 120,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 96,
+ },
+ Object {
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 217,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "浙江省浙江省",
+ "浙江省浙江省",
+ "浙江省浙江...",
+ ],
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "width": 96,
+ },
+ Object {
+ "actualText": "四川省",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 120,
+ "multiLineActualTexts": Array [
+ "四川省",
+ ],
+ "originalText": "四川省",
+ "width": 96,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines 5`] = `
+Array [
+ Object {
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 99,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "23672367236",
+ "1111",
+ ],
+ "originalText": 236723672361111,
+ "width": 96,
+ },
+ Object {
+ "actualText": "3877",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "3877",
+ ],
+ "originalText": 3877,
+ "width": 96,
+ },
+ Object {
+ "actualText": "4342",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "4342",
+ ],
+ "originalText": 4342,
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "1723",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1723",
+ ],
+ "originalText": 1723,
+ "width": 96,
+ },
+ Object {
+ "actualText": "632",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "632",
+ ],
+ "originalText": 632,
+ "width": 96,
+ },
+ Object {
+ "actualText": "7234",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "7234",
+ ],
+ "originalText": 7234,
+ "width": 96,
+ },
+ Object {
+ "actualText": "834",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "834",
+ ],
+ "originalText": 834,
+ "width": 96,
+ },
+ Object {
+ "actualText": "5343",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "5343",
+ ],
+ "originalText": 5343,
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "2451",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2451",
+ ],
+ "originalText": 2451,
+ "width": 96,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 1`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 61,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+ Object {
+ "actualText": "省份/城市城市城市城市城市城市...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 184,
+ "height": 61,
+ "multiLineActualTexts": Array [
+ "省份/城市城",
+ "市城市城市",
+ "城市城市...",
+ ],
+ "originalText": "省份/城市城市城市城市城市城市城市城市城市城市城市城市",
+ "width": 100,
+ },
+ Object {
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualTextHeight": 32,
+ "actualTextWidth": 242,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "类别类别类别类别类别类别",
+ "类别类别类别类别",
+ ],
+ "originalText": "类别类别类别类别类别类别类别类别类别类别",
+ "width": 180,
+ },
+ Object {
+ "actualText": "子类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "子类别",
+ ],
+ "originalText": "子类别",
+ "width": 180,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 2`] = `
+Array [
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 128,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": "1",
+ "width": 80,
+ },
+ Object {
+ "actualText": "2",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 150,
+ "multiLineActualTexts": Array [
+ "2",
+ ],
+ "originalText": "2",
+ "width": 80,
+ },
+ Object {
+ "actualText": "3",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 128,
+ "multiLineActualTexts": Array [
+ "3",
+ ],
+ "originalText": "3",
+ "width": 80,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 3`] = `
+Array [
+ Object {
+ "actualText": "纸张纸张纸张纸张纸张",
+ "actualTextHeight": 32,
+ "actualTextWidth": 122,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "纸张纸张纸张纸",
+ "张纸张",
+ ],
+ "originalText": "纸张纸张纸张纸张纸张",
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 16,
+ "actualTextWidth": 4,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 61,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 103,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 206,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 103,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 61,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 103,
+ },
+ Object {
+ "actualText": "沙发",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "沙发",
+ ],
+ "originalText": "沙发",
+ "width": 103,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 61,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 103,
+ },
+ Object {
+ "actualText": "家具家具家具家具家具家具家具家具家具家具...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 253,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "家具家具家具家",
+ "具家具家具家具",
+ "家具家具家具...",
+ ],
+ "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "width": 103,
+ },
+ Object {
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 253,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "桌子桌子桌子桌",
+ "子桌子桌子桌子",
+ "桌子桌子桌子...",
+ ],
+ "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "width": 103,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 61,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 103,
+ },
+ Object {
+ "actualText": "办公用品",
+ "actualTextHeight": 16,
+ "actualTextWidth": 49,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "办公用品",
+ ],
+ "originalText": "办公用品",
+ "width": 206,
+ },
+ Object {
+ "actualText": "笔",
+ "actualTextHeight": 16,
+ "actualTextWidth": 13,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "笔",
+ ],
+ "originalText": "笔",
+ "width": 103,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 61,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 103,
+ },
+ Object {
+ "actualText": "纸张",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "纸张",
+ ],
+ "originalText": "纸张",
+ "width": 103,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 61,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 103,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 4`] = `
+Array [
+ Object {
+ "actualText": "浙江浙江浙江浙江浙江浙江浙江...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 181,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "浙江浙江浙",
+ "江浙江浙江",
+ "浙江浙江...",
+ ],
+ "originalText": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江",
+ "width": 100,
+ },
+ Object {
+ "actualText": "杭州杭州杭州杭州",
+ "actualTextHeight": 30,
+ "actualTextWidth": 98,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "杭州杭州杭",
+ "州杭州",
+ ],
+ "originalText": "杭州杭州杭州杭州",
+ "width": 100,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 100,
+ },
+ Object {
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 100,
+ },
+ Object {
+ "actualText": "宁波市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "宁波市",
+ ],
+ "originalText": "宁波市",
+ "width": 100,
+ },
+ Object {
+ "actualText": "舟山市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "舟山市",
+ ],
+ "originalText": "舟山市",
+ "width": 100,
+ },
+ Object {
+ "actualText": "杭州市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "杭州市",
+ ],
+ "originalText": "杭州市",
+ "width": 100,
+ },
+ Object {
+ "actualText": "浙江省浙江省浙江省浙江省浙江...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 181,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "浙江省浙江",
+ "省浙江省浙",
+ "江省浙江...",
+ ],
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "width": 100,
+ },
+ Object {
+ "actualText": "杭州市杭州市杭州市杭州市杭州...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 181,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "杭州市杭州",
+ "市杭州市杭",
+ "州市杭州...",
+ ],
+ "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "width": 100,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 5`] = `
+Array [
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 64,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 30,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 64,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 64,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 30,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2367236723611",
+ "11",
+ ],
+ "originalText": 236723672361111,
+ "width": 103,
+ },
+ Object {
+ "actualText": "3877",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "3877",
+ ],
+ "originalText": 3877,
+ "width": 103,
+ },
+ Object {
+ "actualText": "4342",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "4342",
+ ],
+ "originalText": 4342,
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 64,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 64,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 30,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "632",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "632",
+ ],
+ "originalText": 632,
+ "width": 103,
+ },
+ Object {
+ "actualText": "7234",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "7234",
+ ],
+ "originalText": 7234,
+ "width": 103,
+ },
+ Object {
+ "actualText": "834",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "834",
+ ],
+ "originalText": 834,
+ "width": 103,
+ },
+ Object {
+ "actualText": "5343",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "5343",
+ ],
+ "originalText": 5343,
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 64,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 64,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 30,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 64,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "7789778977897789778977897789",
+ "actualTextHeight": 45,
+ "actualTextWidth": 189,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "7789778977897",
+ "7897789778977",
+ "89",
+ ],
+ "originalText": "7789778977897789778977897789",
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 64,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 30,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "1304",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1304",
+ ],
+ "originalText": 1304,
+ "width": 103,
+ },
+ Object {
+ "actualText": "1145",
+ "actualTextHeight": 15,
+ "actualTextWidth": 26,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1145",
+ ],
+ "originalText": 1145,
+ "width": 103,
+ },
+ Object {
+ "actualText": "1432",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1432",
+ ],
+ "originalText": 1432,
+ "width": 103,
+ },
+ Object {
+ "actualText": "945",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "945",
+ ],
+ "originalText": 945,
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 64,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 64,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 30,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "1354",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1354",
+ ],
+ "originalText": 1354,
+ "width": 103,
+ },
+ Object {
+ "actualText": "1523",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1523",
+ ],
+ "originalText": 1523,
+ "width": 103,
+ },
+ Object {
+ "actualText": "1634",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1634",
+ ],
+ "originalText": 1634,
+ "width": 103,
+ },
+ Object {
+ "actualText": "1343",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1343",
+ ],
+ "originalText": 1343,
+ "width": 103,
+ },
+ Object {
+ "actualText": undefined,
+ "actualTextHeight": 0,
+ "actualTextWidth": 0,
+ "height": 64,
+ "multiLineActualTexts": Array [],
+ "originalText": undefined,
+ "width": 103,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 64,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 103,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 1`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+ Object {
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "省份",
+ ],
+ "originalText": "省份",
+ "width": 96,
+ },
+ Object {
+ "actualText": "城市城市城市城市城市城...",
+ "actualTextHeight": 32,
+ "actualTextWidth": 144,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "城市城市城市",
+ "城市城市城...",
+ ],
+ "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "width": 96,
+ },
+ Object {
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 241,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "类别类别类别类别类别类别类别类别类别类别",
+ ],
+ "originalText": "类别类别类别类别类别类别类别类别类别类别",
+ "width": 272,
+ },
+ Object {
+ "actualText": "子类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "子类别",
+ ],
+ "originalText": "子类别",
+ "width": 272,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 2`] = `
+Array [
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 120,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": "1",
+ "width": 80,
+ },
+ Object {
+ "actualText": "2",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "2",
+ ],
+ "originalText": "2",
+ "width": 80,
+ },
+ Object {
+ "actualText": "3",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 120,
+ "multiLineActualTexts": Array [
+ "3",
+ ],
+ "originalText": "3",
+ "width": 80,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 3`] = `
+Array [
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 192,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 96,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数...",
+ "actualTextHeight": 30,
+ "actualTextWidth": 144,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "数量数量数量",
+ "数量数量数...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 96,
+ },
+ Object {
+ "actualText": "沙发",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "沙发",
+ ],
+ "originalText": "沙发",
+ "width": 96,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数...",
+ "actualTextHeight": 30,
+ "actualTextWidth": 144,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "数量数量数量",
+ "数量数量数...",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 96,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 4`] = `
+Array [
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 120,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 96,
+ },
+ Object {
+ "actualText": "浙江省浙江省浙江省浙江...",
+ "actualTextHeight": 32,
+ "actualTextWidth": 144,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "浙江省浙江省",
+ "浙江省浙江...",
+ ],
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "width": 96,
+ },
+ Object {
+ "actualText": "四川省",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 120,
+ "multiLineActualTexts": Array [
+ "四川省",
+ ],
+ "originalText": "四川省",
+ "width": 96,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 5`] = `
+Array [
+ Object {
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 99,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "23672367236",
+ "1111",
+ ],
+ "originalText": 236723672361111,
+ "width": 96,
+ },
+ Object {
+ "actualText": "3877",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "3877",
+ ],
+ "originalText": 3877,
+ "width": 96,
+ },
+ Object {
+ "actualText": "4342",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "4342",
+ ],
+ "originalText": 4342,
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "1723",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1723",
+ ],
+ "originalText": 1723,
+ "width": 96,
+ },
+ Object {
+ "actualText": "1822",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1822",
+ ],
+ "originalText": 1822,
+ "width": 96,
+ },
+ Object {
+ "actualText": "1943",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1943",
+ ],
+ "originalText": 1943,
+ "width": 96,
+ },
+ Object {
+ "actualText": "632",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "632",
+ ],
+ "originalText": 632,
+ "width": 96,
+ },
+ Object {
+ "actualText": "7234",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "7234",
+ ],
+ "originalText": 7234,
+ "width": 96,
+ },
+ Object {
+ "actualText": "834",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "834",
+ ],
+ "originalText": 834,
+ "width": 96,
+ },
+ Object {
+ "actualText": "5343",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "5343",
+ ],
+ "originalText": 5343,
+ "width": 96,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 48,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 96,
+ },
+ Object {
+ "actualText": "2451",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2451",
+ ],
+ "originalText": 2451,
+ "width": 96,
+ },
+ Object {
+ "actualText": "2244",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2244",
+ ],
+ "originalText": 2244,
+ "width": 96,
+ },
+ Object {
+ "actualText": "2333",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2333",
+ ],
+ "originalText": 2333,
+ "width": 96,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 1`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+ Object {
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "省份",
+ ],
+ "originalText": "省份",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "actualTextHeight": 64,
+ "actualTextWidth": 292,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "城市城市城市城",
+ "市城市城市城市",
+ "城市城市城市城",
+ "市城市",
+ ],
+ "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 241,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "类别类别类别类别类别类别类别类别类别类别",
+ ],
+ "originalText": "类别类别类别类别类别类别类别类别类别类别",
+ "width": 285.14,
+ },
+ Object {
+ "actualText": "子类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "子类别",
+ ],
+ "originalText": "子类别",
+ "width": 285.14,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 2`] = `
+Array [
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 120,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": "1",
+ "width": 80,
+ },
+ Object {
+ "actualText": "2",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "2",
+ ],
+ "originalText": "2",
+ "width": 80,
+ },
+ Object {
+ "actualText": "3",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 120,
+ "multiLineActualTexts": Array [
+ "3",
+ ],
+ "originalText": "3",
+ "width": 80,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 3`] = `
+Array [
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 205.14,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 60,
+ "actualTextWidth": 268,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量数",
+ "量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "沙发",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "沙发",
+ ],
+ "originalText": "沙发",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 60,
+ "actualTextWidth": 268,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量数",
+ "量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "actualTextHeight": 64,
+ "actualTextWidth": 340,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "家具家具家具家",
+ "具家具家具家具",
+ "家具家具家具家",
+ "具家具家具家具",
+ ],
+ "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "actualTextHeight": 80,
+ "actualTextWidth": 365,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "桌子桌子桌子桌",
+ "子桌子桌子桌子",
+ "桌子桌子桌子桌",
+ "子桌子桌子桌子",
+ "桌子",
+ ],
+ "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 60,
+ "actualTextWidth": 268,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量数",
+ "量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "办公用品",
+ "actualTextHeight": 16,
+ "actualTextWidth": 49,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "办公用品",
+ ],
+ "originalText": "办公用品",
+ "width": 205.14,
+ },
+ Object {
+ "actualText": "笔",
+ "actualTextHeight": 16,
+ "actualTextWidth": 13,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "笔",
+ ],
+ "originalText": "笔",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 60,
+ "actualTextWidth": 268,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量数",
+ "量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "纸张",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "纸张",
+ ],
+ "originalText": "纸张",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 60,
+ "actualTextWidth": 268,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量数",
+ "量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 102.57,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 4`] = `
+Array [
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 120,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "宁波市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "宁波市",
+ ],
+ "originalText": "宁波市",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "舟山市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "舟山市",
+ ],
+ "originalText": "舟山市",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "杭州市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "杭州市",
+ ],
+ "originalText": "杭州市",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "actualTextHeight": 80,
+ "actualTextWidth": 365,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "浙江省浙江省浙",
+ "江省浙江省浙江",
+ "省浙江省浙江省",
+ "浙江省浙江省浙",
+ "江省",
+ ],
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "actualTextHeight": 75,
+ "actualTextWidth": 365,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "杭州市杭州市杭",
+ "州市杭州市杭州",
+ "市杭州市杭州市",
+ "杭州市杭州市杭",
+ "州市",
+ ],
+ "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "四川省",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 120,
+ "multiLineActualTexts": Array [
+ "四川省",
+ ],
+ "originalText": "四川省",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "成都市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "成都市",
+ ],
+ "originalText": "成都市",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "绵阳市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "绵阳市",
+ ],
+ "originalText": "绵阳市",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "南充市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "南充市",
+ ],
+ "originalText": "南充市",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "乐山市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "乐山市",
+ ],
+ "originalText": "乐山市",
+ "width": 102.57,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 5`] = `
+Array [
+ Object {
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "236723672361",
+ "111",
+ ],
+ "originalText": 236723672361111,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "3877",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "3877",
+ ],
+ "originalText": 3877,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "4342",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "4342",
+ ],
+ "originalText": 4342,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "1723",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1723",
+ ],
+ "originalText": 1723,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "1822",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1822",
+ ],
+ "originalText": 1822,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "1943",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1943",
+ ],
+ "originalText": 1943,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "2330",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2330",
+ ],
+ "originalText": 2330,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "632",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "632",
+ ],
+ "originalText": 632,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "7234",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "7234",
+ ],
+ "originalText": 7234,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "834",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "834",
+ ],
+ "originalText": 834,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "5343",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "5343",
+ ],
+ "originalText": 5343,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "2451",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2451",
+ ],
+ "originalText": 2451,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "2244",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2244",
+ ],
+ "originalText": 2244,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "2333",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2333",
+ ],
+ "originalText": 2333,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "2445",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2445",
+ ],
+ "originalText": 2445,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "7789778977897789778977897789",
+ "actualTextHeight": 45,
+ "actualTextWidth": 189,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "778977897789",
+ "778977897789",
+ "7789",
+ ],
+ "originalText": "7789778977897789778977897789",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "1304",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1304",
+ ],
+ "originalText": 1304,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "1145",
+ "actualTextHeight": 15,
+ "actualTextWidth": 26,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1145",
+ ],
+ "originalText": 1145,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "1432",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1432",
+ ],
+ "originalText": 1432,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "945",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "945",
+ ],
+ "originalText": 945,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "2335",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2335",
+ ],
+ "originalText": 2335,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "245",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "245",
+ ],
+ "originalText": 245,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "2457",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2457",
+ ],
+ "originalText": 2457,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "2458",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "2458",
+ ],
+ "originalText": 2458,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "1354",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1354",
+ ],
+ "originalText": 1354,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "1523",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1523",
+ ],
+ "originalText": 1523,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "1634",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1634",
+ ],
+ "originalText": 1634,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "1343",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "1343",
+ ],
+ "originalText": 1343,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "-",
+ "actualTextHeight": 15,
+ "actualTextWidth": 4,
+ "height": 96,
+ "multiLineActualTexts": Array [
+ "-",
+ ],
+ "originalText": "-",
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "4004",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "4004",
+ ],
+ "originalText": 4004,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "3077",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "3077",
+ ],
+ "originalText": 3077,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "3551",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "3551",
+ ],
+ "originalText": 3551,
+ "width": 102.57,
+ },
+ Object {
+ "actualText": "352",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "352",
+ ],
+ "originalText": 352,
+ "width": 102.57,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 1`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 2`] = `
+Array [
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": 1,
+ "width": 80,
+ },
+ Object {
+ "actualText": "2",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "2",
+ ],
+ "originalText": 2,
+ "width": 80,
+ },
+ Object {
+ "actualText": "3",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "3",
+ ],
+ "originalText": 3,
+ "width": 80,
+ },
+ Object {
+ "actualText": "4",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "4",
+ ],
+ "originalText": 4,
+ "width": 80,
+ },
+ Object {
+ "actualText": "5",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "5",
+ ],
+ "originalText": 5,
+ "width": 80,
+ },
+ Object {
+ "actualText": "6",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "6",
+ ],
+ "originalText": 6,
+ "width": 80,
+ },
+ Object {
+ "actualText": "7",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "7",
+ ],
+ "originalText": 7,
+ "width": 80,
+ },
+ Object {
+ "actualText": "8",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "8",
+ ],
+ "originalText": 8,
+ "width": 80,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 3`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+ Object {
+ "actualText": "省份省份省份省份省份省份省份省份省份省份省份省份省份省...",
+ "actualTextHeight": 64,
+ "actualTextWidth": 338,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "省份省份省份省",
+ "份省份省份省份",
+ "省份省份省份省",
+ "份省份省份省...",
+ ],
+ "originalText": "省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份省份",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "city",
+ "actualTextHeight": 16,
+ "actualTextWidth": 21,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "city",
+ ],
+ "originalText": "city",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "type",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "type",
+ ],
+ "originalText": "type",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "sub_type",
+ "actualTextHeight": 16,
+ "actualTextWidth": 53,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "sub_type",
+ ],
+ "originalText": "sub_type",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "number",
+ "actualTextHeight": 16,
+ "actualTextWidth": 45,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "number",
+ ],
+ "originalText": "number",
+ "width": 103.8,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 4`] = `Array []`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly col cell height if actual text lines is difference 5`] = `
+Array [
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": 1,
+ "width": 80,
+ },
+ Object {
+ "actualText": "2",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "2",
+ ],
+ "originalText": 2,
+ "width": 80,
+ },
+ Object {
+ "actualText": "3",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "3",
+ ],
+ "originalText": 3,
+ "width": 80,
+ },
+ Object {
+ "actualText": "4",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "4",
+ ],
+ "originalText": 4,
+ "width": 80,
+ },
+ Object {
+ "actualText": "5",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "5",
+ ],
+ "originalText": 5,
+ "width": 80,
+ },
+ Object {
+ "actualText": "6",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "6",
+ ],
+ "originalText": 6,
+ "width": 80,
+ },
+ Object {
+ "actualText": "7",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "7",
+ ],
+ "originalText": 7,
+ "width": 80,
+ },
+ Object {
+ "actualText": "8",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "8",
+ ],
+ "originalText": 8,
+ "width": 80,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...",
+ "actualTextHeight": 60,
+ "actualTextWidth": 338,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "浙江省浙江省浙",
+ "江省浙江省浙江",
+ "省浙江省浙江省",
+ "浙江省浙江省...",
+ ],
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...",
+ "actualTextHeight": 60,
+ "actualTextWidth": 338,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "杭州市杭州市杭",
+ "州市杭州市杭州",
+ "市杭州市杭州市",
+ "杭州市杭州市...",
+ ],
+ "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "宁波市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "宁波市",
+ ],
+ "originalText": "宁波市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "舟山市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "舟山市",
+ ],
+ "originalText": "舟山市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "杭州市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "杭州市",
+ ],
+ "originalText": "杭州市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "宁波市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "宁波市",
+ ],
+ "originalText": "宁波市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "actualTextHeight": 60,
+ "actualTextWidth": 340,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "家具家具家具家",
+ "具家具家具家具",
+ "家具家具家具家",
+ "具家具家具家具",
+ ],
+ "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...",
+ "actualTextHeight": 60,
+ "actualTextWidth": 338,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "桌子桌子桌子桌",
+ "子桌子桌子桌子",
+ "桌子桌子桌子桌",
+ "子桌子桌子桌...",
+ ],
+ "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "沙发",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "沙发",
+ ],
+ "originalText": "沙发",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "沙发",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "沙发",
+ ],
+ "originalText": "沙发",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "沙发",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "沙发",
+ ],
+ "originalText": "沙发",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "2367236723611",
+ "11",
+ ],
+ "originalText": 236723672361111,
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "7789778977897789778977897789",
+ "actualTextHeight": 45,
+ "actualTextWidth": 189,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "7789778977897",
+ "7897789778977",
+ "89",
+ ],
+ "originalText": "7789778977897789778977897789",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "2367236723611",
+ "11",
+ ],
+ "originalText": 236723672361111,
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "3877",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "3877",
+ ],
+ "originalText": 3877,
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "4342",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "4342",
+ ],
+ "originalText": 4342,
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "5343",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "5343",
+ ],
+ "originalText": 5343,
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "632",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "632",
+ ],
+ "originalText": 632,
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "7234",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "7234",
+ ],
+ "originalText": 7234,
+ "width": 103.8,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 1`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 2`] = `
+Array [
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": 1,
+ "width": 80,
+ },
+ Object {
+ "actualText": "2",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "2",
+ ],
+ "originalText": 2,
+ "width": 80,
+ },
+ Object {
+ "actualText": "3",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "3",
+ ],
+ "originalText": 3,
+ "width": 80,
+ },
+ Object {
+ "actualText": "4",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "4",
+ ],
+ "originalText": 4,
+ "width": 80,
+ },
+ Object {
+ "actualText": "5",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "5",
+ ],
+ "originalText": 5,
+ "width": 80,
+ },
+ Object {
+ "actualText": "6",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "6",
+ ],
+ "originalText": 6,
+ "width": 80,
+ },
+ Object {
+ "actualText": "7",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "7",
+ ],
+ "originalText": 7,
+ "width": 80,
+ },
+ Object {
+ "actualText": "8",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "8",
+ ],
+ "originalText": 8,
+ "width": 80,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 3`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+ Object {
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "省份",
+ ],
+ "originalText": "省份",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "actualTextHeight": 64,
+ "actualTextWidth": 292,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "城市城市城市城",
+ "市城市城市城市",
+ "城市城市城市城",
+ "市城市",
+ ],
+ "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualTextHeight": 48,
+ "actualTextWidth": 243,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "类别类别类别类",
+ "别类别类别类别",
+ "类别类别类别",
+ ],
+ "originalText": "类别类别类别类别类别类别类别类别类别类别",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "子类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "子类别",
+ ],
+ "originalText": "子类别",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 64,
+ "actualTextWidth": 268,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量数",
+ "量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 103.8,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 4`] = `Array []`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference 5`] = `
+Array [
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": 1,
+ "width": 80,
+ },
+ Object {
+ "actualText": "2",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "2",
+ ],
+ "originalText": 2,
+ "width": 80,
+ },
+ Object {
+ "actualText": "3",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "3",
+ ],
+ "originalText": 3,
+ "width": 80,
+ },
+ Object {
+ "actualText": "4",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "4",
+ ],
+ "originalText": 4,
+ "width": 80,
+ },
+ Object {
+ "actualText": "5",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "5",
+ ],
+ "originalText": 5,
+ "width": 80,
+ },
+ Object {
+ "actualText": "6",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "6",
+ ],
+ "originalText": 6,
+ "width": 80,
+ },
+ Object {
+ "actualText": "7",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "7",
+ ],
+ "originalText": 7,
+ "width": 80,
+ },
+ Object {
+ "actualText": "8",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "8",
+ ],
+ "originalText": 8,
+ "width": 80,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...",
+ "actualTextHeight": 60,
+ "actualTextWidth": 338,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "浙江省浙江省浙",
+ "江省浙江省浙江",
+ "省浙江省浙江省",
+ "浙江省浙江省...",
+ ],
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...",
+ "actualTextHeight": 60,
+ "actualTextWidth": 338,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "杭州市杭州市杭",
+ "州市杭州市杭州",
+ "市杭州市杭州市",
+ "杭州市杭州市...",
+ ],
+ "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "宁波市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "宁波市",
+ ],
+ "originalText": "宁波市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "舟山市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "舟山市",
+ ],
+ "originalText": "舟山市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "杭州市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "杭州市",
+ ],
+ "originalText": "杭州市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "宁波市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "宁波市",
+ ],
+ "originalText": "宁波市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "actualTextHeight": 60,
+ "actualTextWidth": 340,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "家具家具家具家",
+ "具家具家具家具",
+ "家具家具家具家",
+ "具家具家具家具",
+ ],
+ "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...",
+ "actualTextHeight": 60,
+ "actualTextWidth": 338,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "桌子桌子桌子桌",
+ "子桌子桌子桌子",
+ "桌子桌子桌子桌",
+ "子桌子桌子桌...",
+ ],
+ "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "沙发",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "沙发",
+ ],
+ "originalText": "沙发",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "沙发",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "沙发",
+ ],
+ "originalText": "沙发",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "沙发",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "沙发",
+ ],
+ "originalText": "沙发",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "2367236723611",
+ "11",
+ ],
+ "originalText": 236723672361111,
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "7789778977897789778977897789",
+ "actualTextHeight": 45,
+ "actualTextWidth": 189,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "7789778977897",
+ "7897789778977",
+ "89",
+ ],
+ "originalText": "7789778977897789778977897789",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "2367236723611",
+ "11",
+ ],
+ "originalText": 236723672361111,
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "3877",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "3877",
+ ],
+ "originalText": 3877,
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "4342",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "4342",
+ ],
+ "originalText": 4342,
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "5343",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "5343",
+ ],
+ "originalText": 5343,
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "632",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "632",
+ ],
+ "originalText": 632,
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "7234",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "7234",
+ ],
+ "originalText": 7234,
+ "width": 103.8,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 1`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 2`] = `
+Array [
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 360,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": 1,
+ "width": 80,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 3`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+ Object {
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "省份",
+ ],
+ "originalText": "省份",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "actualTextHeight": 64,
+ "actualTextWidth": 292,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "城市城市城市城",
+ "市城市城市城市",
+ "城市城市城市城",
+ "市城市",
+ ],
+ "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualTextHeight": 48,
+ "actualTextWidth": 243,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "类别类别类别类",
+ "别类别类别类别",
+ "类别类别类别",
+ ],
+ "originalText": "类别类别类别类别类别类别类别类别类别类别",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "子类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "子类别",
+ ],
+ "originalText": "子类别",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 64,
+ "actualTextWidth": 268,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量数",
+ "量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 103.8,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 4`] = `Array []`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 5`] = `
+Array [
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 360,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": 1,
+ "width": 80,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 360,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 360,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 360,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "桌子",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 360,
+ "multiLineActualTexts": Array [
+ "桌子",
+ ],
+ "originalText": "桌子",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 360,
+ "multiLineActualTexts": Array [
+ "2367236723611",
+ "11",
+ ],
+ "originalText": 236723672361111,
+ "width": 103.8,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and outside the canvas 6`] = `
+Array [
+ 0,
+ 360,
+ 436,
+ 482,
+ 512,
+ 542,
+ 572,
+ 602,
+ 632,
+ 662,
+ 692,
+ 722,
+ 752,
+ 782,
+ 812,
+ 842,
+ 872,
+ 902,
+ 932,
+ 962,
+ 992,
+ 1022,
+ 1052,
+ 1082,
+ 1112,
+ 1142,
+ 1172,
+ 1202,
+ 1232,
+ 1262,
+ 1292,
+ 1322,
+ 1352,
+ 1382,
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 1`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 2`] = `
+Array [
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 300,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": 1,
+ "width": 80,
+ },
+ Object {
+ "actualText": "2",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "2",
+ ],
+ "originalText": 2,
+ "width": 80,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 3`] = `
+Array [
+ Object {
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "序号",
+ ],
+ "originalText": "序号",
+ "width": 80,
+ },
+ Object {
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "省份",
+ ],
+ "originalText": "省份",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "actualTextHeight": 64,
+ "actualTextWidth": 292,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "城市城市城市城",
+ "市城市城市城市",
+ "城市城市城市城",
+ "市城市",
+ ],
+ "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualTextHeight": 48,
+ "actualTextWidth": 243,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "类别类别类别类",
+ "别类别类别类别",
+ "类别类别类别",
+ ],
+ "originalText": "类别类别类别类别类别类别类别类别类别类别",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "子类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "子类别",
+ ],
+ "originalText": "子类别",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "actualTextHeight": 64,
+ "actualTextWidth": 268,
+ "height": 80,
+ "multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
+ "数量数量数量数",
+ "量",
+ ],
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 103.8,
+ },
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 4`] = `Array []`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should calc correctly data cell height if actual text lines is difference and partial outside the canvas 5`] = `
+Array [
+ Object {
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 300,
+ "multiLineActualTexts": Array [
+ "1",
+ ],
+ "originalText": 1,
+ "width": 80,
+ },
+ Object {
+ "actualText": "2",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "2",
+ ],
+ "originalText": 2,
+ "width": 80,
+ },
+ Object {
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 300,
+ "multiLineActualTexts": Array [
+ "浙江省",
+ ],
+ "originalText": "浙江省",
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...",
+ "actualTextHeight": 60,
+ "actualTextWidth": 338,
+ "height": 76,
+ "multiLineActualTexts": Array [
+ "浙江省浙江省浙",
+ "江省浙江省浙江",
+ "省浙江省浙江省",
+ "浙江省浙江省...",
+ ],
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "width": 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": "序号",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 53,
+ "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": "序号",
+ "originalText": 15,
"width": 80,
},
Object {
- "actualText": "省份/城市城市城市城市城市城市...",
- "actualTextHeight": 48,
- "actualTextWidth": 184,
- "height": 53,
+ "actualText": "16",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 30,
"multiLineActualTexts": Array [
- "省份/城市城",
- "市城市城市",
- "城市城市...",
+ "16",
],
- "originalText": "省份/城市城市城市城市城市城市城市城市城市城市城市城市",
- "width": 100,
+ "originalText": 16,
+ "width": 80,
},
Object {
- "actualText": "类别类别类别类别类别类别类别类别类别类别",
- "actualTextHeight": 32,
- "actualTextWidth": 242,
- "height": 56,
+ "actualText": "17",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 30,
"multiLineActualTexts": Array [
- "类别类别类别类别类别类别类",
- "别类别类别类别",
+ "17",
],
- "originalText": "类别类别类别类别类别类别类别类别类别类别",
- "width": 180,
+ "originalText": 17,
+ "width": 80,
},
Object {
- "actualText": "子类别",
- "actualTextHeight": 16,
- "actualTextWidth": 37,
- "height": 56,
+ "actualText": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江",
+ "actualTextHeight": 30,
+ "actualTextWidth": 242,
+ "height": 46,
"multiLineActualTexts": Array [
- "子类别",
+ "浙江浙江浙江浙江浙江",
+ "浙江浙江浙江浙江浙江",
],
- "originalText": "子类别",
- "width": 180,
+ "originalText": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江",
+ "width": 143.8,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should render three max text lines for tree mode 2`] = `
-Array [
Object {
- "actualText": "1",
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 112,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "1",
+ "浙江省",
],
- "originalText": "1",
- "width": 80,
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "2",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 150,
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "actualTextHeight": 45,
+ "actualTextWidth": 363,
+ "height": 61,
"multiLineActualTexts": Array [
- "2",
+ "浙江省浙江省浙江省浙",
+ "江省浙江省浙江省浙江",
+ "省浙江省浙江省浙江省",
],
- "originalText": "2",
- "width": 80,
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "3",
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 112,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "3",
+ "浙江省",
],
- "originalText": "3",
- "width": 80,
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "4",
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 150,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "4",
+ "浙江省",
],
- "originalText": "4",
- "width": 80,
+ "originalText": "浙江省",
+ "width": 143.8,
},
-]
-`;
-
-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": 56,
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "纸张纸张纸张纸",
- "张纸张",
+ "浙江省",
],
- "originalText": "纸张纸张纸张纸张纸张",
- "width": 103,
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "-",
- "actualTextHeight": 16,
- "actualTextWidth": 4,
- "height": 56,
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "-",
+ "浙江省",
],
- "originalText": "-",
- "width": 103,
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 53,
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量...",
+ "浙江省",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 103,
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "家具",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 56,
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "家具",
+ "浙江省",
],
- "originalText": "家具",
- "width": 206,
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "桌子",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 56,
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "桌子",
+ "浙江省",
],
- "originalText": "桌子",
- "width": 103,
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 53,
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量...",
+ "浙江省",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 103,
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "沙发",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 56,
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "沙发",
+ "浙江省",
],
- "originalText": "沙发",
- "width": 103,
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 53,
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量...",
+ "浙江省",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 103,
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "家具家具家具家具家具家具家具家具家具家具...",
- "actualTextHeight": 48,
- "actualTextWidth": 253,
- "height": 56,
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "家具家具家具家",
- "具家具家具家具",
- "家具家具家具...",
+ "浙江省",
],
- "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
- "width": 103,
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...",
- "actualTextHeight": 48,
- "actualTextWidth": 253,
- "height": 56,
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "桌子桌子桌子桌",
- "子桌子桌子桌子",
- "桌子桌子桌子...",
+ "浙江省",
],
- "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
- "width": 103,
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 53,
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量...",
+ "浙江省",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 103,
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "办公用品",
- "actualTextHeight": 16,
- "actualTextWidth": 49,
- "height": 56,
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "办公用品",
+ "浙江省",
],
- "originalText": "办公用品",
- "width": 206,
+ "originalText": "浙江省",
+ "width": 143.8,
},
Object {
- "actualText": "笔",
- "actualTextHeight": 16,
- "actualTextWidth": 13,
- "height": 56,
+ "actualText": "杭州杭州杭州杭州",
+ "actualTextHeight": 15,
+ "actualTextWidth": 97,
+ "height": 46,
"multiLineActualTexts": Array [
- "笔",
+ "杭州杭州杭州杭州",
],
- "originalText": "笔",
- "width": 103,
+ "originalText": "杭州杭州杭州杭州",
+ "width": 143.8,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 53,
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量...",
+ "绍兴市",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 103,
+ "originalText": "绍兴市",
+ "width": 143.8,
},
Object {
- "actualText": "纸张",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 56,
+ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "actualTextHeight": 45,
+ "actualTextWidth": 363,
+ "height": 61,
"multiLineActualTexts": Array [
- "纸张",
+ "杭州市杭州市杭州市杭",
+ "州市杭州市杭州市杭州",
+ "市杭州市杭州市杭州市",
],
- "originalText": "纸张",
- "width": 103,
+ "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
+ "width": 143.8,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 53,
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量...",
+ "绍兴市",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 103,
+ "originalText": "绍兴市",
+ "width": 143.8,
},
-]
-`;
-
-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": "宁波市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江浙江浙",
- "江浙江浙江",
- "浙江浙江...",
+ "宁波市",
],
- "originalText": "浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江浙江",
- "width": 100,
+ "originalText": "宁波市",
+ "width": 143.8,
},
Object {
- "actualText": "杭州杭州杭州杭州",
- "actualTextHeight": 30,
- "actualTextWidth": 98,
- "height": 56,
+ "actualText": "舟山市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "杭州杭州杭",
- "州杭州",
+ "舟山市",
],
- "originalText": "杭州杭州杭州杭州",
- "width": 100,
+ "originalText": "舟山市",
+ "width": 143.8,
},
Object {
- "actualText": "浙江省",
- "actualTextHeight": 16,
+ "actualText": "杭州市",
+ "actualTextHeight": 15,
"actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "浙江省",
+ "杭州市",
],
- "originalText": "浙江省",
- "width": 100,
+ "originalText": "杭州市",
+ "width": 143.8,
},
Object {
"actualText": "绍兴市",
@@ -7889,7 +14787,7 @@ Array [
"绍兴市",
],
"originalText": "绍兴市",
- "width": 100,
+ "width": 143.8,
},
Object {
"actualText": "宁波市",
@@ -7900,7 +14798,7 @@ Array [
"宁波市",
],
"originalText": "宁波市",
- "width": 100,
+ "width": 143.8,
},
Object {
"actualText": "舟山市",
@@ -7911,7 +14809,7 @@ Array [
"舟山市",
],
"originalText": "舟山市",
- "width": 100,
+ "width": 143.8,
},
Object {
"actualText": "杭州市",
@@ -7922,690 +14820,606 @@ Array [
"杭州市",
],
"originalText": "杭州市",
- "width": 100,
+ "width": 143.8,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江省浙江...",
- "actualTextHeight": 48,
- "actualTextWidth": 181,
- "height": 56,
+ "actualText": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "浙江省浙江",
- "省浙江省浙",
- "江省浙江...",
+ "绍兴市",
],
- "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
- "width": 100,
+ "originalText": "绍兴市",
+ "width": 143.8,
},
Object {
- "actualText": "杭州市杭州市杭州市杭州市杭州...",
- "actualTextHeight": 45,
- "actualTextWidth": 181,
- "height": 56,
+ "actualText": "宁波市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "杭州市杭州",
- "市杭州市杭",
- "州市杭州...",
+ "宁波市",
],
- "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
- "width": 100,
+ "originalText": "宁波市",
+ "width": 143.8,
},
Object {
- "actualText": "四川省",
- "actualTextHeight": 16,
+ "actualText": "舟山市",
+ "actualTextHeight": 15,
"actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "四川省",
+ "舟山市",
],
- "originalText": "四川省",
- "width": 100,
+ "originalText": "舟山市",
+ "width": 143.8,
},
Object {
- "actualText": "成都市",
+ "actualText": "杭州市",
"actualTextHeight": 15,
"actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "成都市",
+ "杭州市",
],
- "originalText": "成都市",
- "width": 100,
+ "originalText": "杭州市",
+ "width": 143.8,
},
-]
-`;
-
-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": "绍兴市",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "绍兴市",
+ ],
+ "originalText": "绍兴市",
+ "width": 143.8,
},
Object {
- "actualText": "-",
+ "actualText": "宁波市",
"actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 56,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "-",
+ "宁波市",
],
- "originalText": "-",
- "width": 103,
+ "originalText": "宁波市",
+ "width": 143.8,
},
Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
+ "actualText": "纸张纸张纸张纸张纸张",
+ "actualTextHeight": 15,
+ "actualTextWidth": 121,
+ "height": 46,
+ "multiLineActualTexts": Array [
+ "纸张纸张纸张纸张纸张",
+ ],
+ "originalText": "纸张纸张纸张纸张纸张",
+ "width": 143.8,
+ },
+ Object {
+ "actualText": "家具",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
"height": 30,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "multiLineActualTexts": Array [
+ "家具",
+ ],
+ "originalText": "家具",
+ "width": 143.8,
+ },
+ Object {
+ "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "actualTextHeight": 45,
+ "actualTextWidth": 339,
+ "height": 61,
+ "multiLineActualTexts": Array [
+ "家具家具家具家具家具",
+ "家具家具家具家具家具",
+ "家具家具家具家具",
+ ],
+ "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "width": 143.8,
},
Object {
- "actualText": "-",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "家具",
],
- "originalText": "-",
- "width": 103,
+ "originalText": "家具",
+ "width": 143.8,
},
Object {
- "actualText": "-",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "家具",
],
- "originalText": "-",
- "width": 103,
+ "originalText": "家具",
+ "width": 143.8,
},
Object {
- "actualText": "-",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "家具",
],
- "originalText": "-",
- "width": 103,
+ "originalText": "家具",
+ "width": 143.8,
},
Object {
- "actualText": "-",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "家具",
],
- "originalText": "-",
- "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": 25,
+ "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": "-",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "家具",
],
- "originalText": "-",
- "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": 25,
+ "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": "236723672361111",
- "actualTextHeight": 30,
- "actualTextWidth": 100,
+ "actualText": "办公用品",
+ "actualTextHeight": 15,
+ "actualTextWidth": 49,
"height": 30,
"multiLineActualTexts": Array [
- "2367236723611",
- "11",
+ "办公用品",
],
- "originalText": 236723672361111,
- "width": 103,
+ "originalText": "办公用品",
+ "width": 143.8,
},
Object {
- "actualText": "3877",
+ "actualText": "办公用品",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 49,
"height": 30,
"multiLineActualTexts": Array [
- "3877",
+ "办公用品",
],
- "originalText": 3877,
- "width": 103,
+ "originalText": "办公用品",
+ "width": 143.8,
},
Object {
- "actualText": "4342",
+ "actualText": "办公用品",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 49,
"height": 30,
"multiLineActualTexts": Array [
- "4342",
+ "办公用品",
],
- "originalText": 4342,
- "width": 103,
+ "originalText": "办公用品",
+ "width": 143.8,
},
Object {
- "actualText": "-",
+ "actualText": "办公用品",
"actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualTextWidth": 49,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "办公用品",
],
- "originalText": "-",
- "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": 49,
+ "height": 30,
"multiLineActualTexts": Array [
- "-",
+ "办公用品",
],
- "originalText": "-",
- "width": 103,
+ "originalText": "办公用品",
+ "width": 143.8,
},
Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
+ "actualText": "办公用品",
+ "actualTextHeight": 15,
+ "actualTextWidth": 49,
"height": 30,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "multiLineActualTexts": Array [
+ "办公用品",
+ ],
+ "originalText": "办公用品",
+ "width": 143.8,
},
Object {
- "actualText": "1723",
+ "actualText": "办公用品",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 49,
"height": 30,
"multiLineActualTexts": Array [
- "1723",
+ "办公用品",
],
- "originalText": 1723,
- "width": 103,
- },
- Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 56,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "originalText": "办公用品",
+ "width": 143.8,
},
Object {
"actualText": "-",
"actualTextHeight": 15,
"actualTextWidth": 4,
- "height": 56,
+ "height": 46,
"multiLineActualTexts": Array [
"-",
],
"originalText": "-",
- "width": 103,
- },
- Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 30,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "width": 143.8,
},
Object {
- "actualText": "632",
+ "actualText": "桌子",
"actualTextHeight": 15,
- "actualTextWidth": 21,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "632",
+ "桌子",
],
- "originalText": 632,
- "width": 103,
+ "originalText": "桌子",
+ "width": 143.8,
},
Object {
- "actualText": "7234",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 30,
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "actualTextHeight": 45,
+ "actualTextWidth": 363,
+ "height": 61,
"multiLineActualTexts": Array [
- "7234",
+ "桌子桌子桌子桌子桌子",
+ "桌子桌子桌子桌子桌子",
+ "桌子桌子桌子桌子桌子",
],
- "originalText": 7234,
- "width": 103,
+ "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "width": 143.8,
},
Object {
- "actualText": "834",
+ "actualText": "桌子",
"actualTextHeight": 15,
- "actualTextWidth": 21,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "834",
+ "桌子",
],
- "originalText": 834,
- "width": 103,
+ "originalText": "桌子",
+ "width": 143.8,
},
Object {
- "actualText": "5343",
+ "actualText": "桌子",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "5343",
+ "桌子",
],
- "originalText": 5343,
- "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": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "-",
+ "桌子",
],
- "originalText": "-",
- "width": 103,
+ "originalText": "桌子",
+ "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": "2451",
+ "actualText": "沙发",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "2451",
+ "沙发",
],
- "originalText": 2451,
- "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": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "-",
+ "沙发",
],
- "originalText": "-",
- "width": 103,
+ "originalText": "沙发",
+ "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": "-",
+ "actualText": "笔",
"actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualTextWidth": 13,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "笔",
],
- "originalText": "-",
- "width": 103,
+ "originalText": "笔",
+ "width": 143.8,
},
Object {
- "actualText": "-",
+ "actualText": "笔",
"actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualTextWidth": 13,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "笔",
],
- "originalText": "-",
- "width": 103,
+ "originalText": "笔",
+ "width": 143.8,
},
Object {
- "actualText": "-",
+ "actualText": "笔",
"actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualTextWidth": 13,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "笔",
],
- "originalText": "-",
- "width": 103,
+ "originalText": "笔",
+ "width": 143.8,
},
Object {
- "actualText": "-",
+ "actualText": "笔",
"actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualTextWidth": 13,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "笔",
],
- "originalText": "-",
- "width": 103,
- },
- Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 56,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "originalText": "笔",
+ "width": 143.8,
},
Object {
- "actualText": "7789778977897789778977897789",
- "actualTextHeight": 45,
- "actualTextWidth": 189,
- "height": 56,
+ "actualText": "纸张",
+ "actualTextHeight": 15,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "7789778977897",
- "7897789778977",
- "89",
+ "纸张",
],
- "originalText": "7789778977897789778977897789",
- "width": 103,
+ "originalText": "纸张",
+ "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": "-",
+ "actualText": "纸张",
"actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "-",
+ "纸张",
],
- "originalText": "-",
- "width": 103,
- },
- Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 56,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "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": "236723672361111",
+ "actualTextHeight": 15,
+ "actualTextWidth": 98,
"height": 30,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "multiLineActualTexts": Array [
+ "236723672361111",
+ ],
+ "originalText": 236723672361111,
+ "width": 143.8,
},
Object {
- "actualText": "1304",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 30,
+ "actualText": "7789778977897789778977897789",
+ "actualTextHeight": 30,
+ "actualTextWidth": 188,
+ "height": 61,
"multiLineActualTexts": Array [
- "1304",
+ "7789778977897789778",
+ "977897789",
],
- "originalText": 1304,
- "width": 103,
+ "originalText": "7789778977897789778977897789",
+ "width": 143.8,
},
Object {
- "actualText": "1145",
+ "actualText": "236723672361111",
"actualTextHeight": 15,
- "actualTextWidth": 26,
+ "actualTextWidth": 98,
"height": 30,
"multiLineActualTexts": Array [
- "1145",
+ "236723672361111",
],
- "originalText": 1145,
- "width": 103,
+ "originalText": 236723672361111,
+ "width": 143.8,
},
Object {
- "actualText": "1432",
+ "actualText": "3877",
"actualTextHeight": 15,
"actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "1432",
+ "3877",
],
- "originalText": 1432,
- "width": 103,
+ "originalText": 3877,
+ "width": 143.8,
},
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": 143.8,
},
Object {
- "actualText": "-",
+ "actualText": "5343",
"actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 56,
+ "actualTextWidth": 27,
+ "height": 30,
"multiLineActualTexts": Array [
- "-",
- ],
- "originalText": "-",
- "width": 103,
+ "5343",
+ ],
+ "originalText": 5343,
+ "width": 143.8,
},
Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
+ "actualText": "632",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
"height": 30,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "multiLineActualTexts": Array [
+ "632",
+ ],
+ "originalText": 632,
+ "width": 143.8,
},
Object {
- "actualText": "2335",
+ "actualText": "7234",
"actualTextHeight": 15,
"actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "2335",
+ "7234",
],
- "originalText": 2335,
- "width": 103,
- },
- Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 56,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "originalText": 7234,
+ "width": 143.8,
},
Object {
- "actualText": "-",
+ "actualText": "834",
"actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 56,
+ "actualTextWidth": 21,
+ "height": 30,
"multiLineActualTexts": Array [
- "-",
+ "834",
],
- "originalText": "-",
- "width": 103,
+ "originalText": 834,
+ "width": 143.8,
},
Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
+ "actualText": "945",
+ "actualTextHeight": 15,
+ "actualTextWidth": 21,
"height": 30,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "multiLineActualTexts": Array [
+ "945",
+ ],
+ "originalText": 945,
+ "width": 143.8,
},
Object {
- "actualText": "1354",
+ "actualText": "1304",
"actualTextHeight": 15,
"actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "1354",
+ "1304",
],
- "originalText": 1354,
- "width": 103,
+ "originalText": 1304,
+ "width": 143.8,
},
Object {
- "actualText": "1523",
+ "actualText": "1145",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 26,
"height": 30,
"multiLineActualTexts": Array [
- "1523",
+ "1145",
],
- "originalText": 1523,
- "width": 103,
+ "originalText": 1145,
+ "width": 143.8,
},
Object {
- "actualText": "1634",
+ "actualText": "1432",
"actualTextHeight": 15,
"actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "1634",
+ "1432",
],
- "originalText": 1634,
- "width": 103,
+ "originalText": 1432,
+ "width": 143.8,
},
Object {
"actualText": "1343",
@@ -8616,1381 +15430,1140 @@ Array [
"1343",
],
"originalText": 1343,
- "width": 103,
- },
- Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 56,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "width": 143.8,
},
Object {
- "actualText": "-",
+ "actualText": "1354",
"actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 56,
+ "actualTextWidth": 27,
+ "height": 30,
"multiLineActualTexts": Array [
- "-",
+ "1354",
],
- "originalText": "-",
- "width": 103,
- },
- Object {
- "actualText": undefined,
- "actualTextHeight": 0,
- "actualTextWidth": 0,
- "height": 30,
- "multiLineActualTexts": Array [],
- "originalText": undefined,
- "width": 103,
+ "originalText": 1354,
+ "width": 143.8,
},
Object {
- "actualText": "4004",
+ "actualText": "1523",
"actualTextHeight": 15,
"actualTextWidth": 27,
"height": 30,
"multiLineActualTexts": Array [
- "4004",
+ "1523",
],
- "originalText": 4004,
- "width": 103,
+ "originalText": 1523,
+ "width": 143.8,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 1`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 1`] = `
Array [
Object {
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 38,
+ "height": 30,
"multiLineActualTexts": Array [
"序号",
],
"originalText": "序号",
"width": 80,
},
- Object {
- "actualText": "省份",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 38,
- "multiLineActualTexts": Array [
- "省份",
- ],
- "originalText": "省份",
- "width": 96,
- },
- Object {
- "actualText": "城市城市城市城市城市城...",
- "actualTextHeight": 32,
- "actualTextWidth": 144,
- "height": 38,
- "multiLineActualTexts": Array [
- "城市城市城市",
- "城市城市城...",
- ],
- "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
- "width": 96,
- },
- Object {
- "actualText": "类别类别类别类别类别类别类别类别类别类别",
- "actualTextHeight": 16,
- "actualTextWidth": 241,
- "height": 40,
- "multiLineActualTexts": Array [
- "类别类别类别类别类别类别类别类别类别类别",
- ],
- "originalText": "类别类别类别类别类别类别类别类别类别类别",
- "width": 272,
- },
- Object {
- "actualText": "子类别",
- "actualTextHeight": 16,
- "actualTextWidth": 37,
- "height": 40,
- "multiLineActualTexts": Array [
- "子类别",
- ],
- "originalText": "子类别",
- "width": 272,
- },
]
`;
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should render two max text lines 2`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 2`] = `
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": 40,
+ "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 render two max text lines 3`] = `
-Array [
- Object {
- "actualText": "家具",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 40,
- "multiLineActualTexts": Array [
- "家具",
- ],
- "originalText": "家具",
- "width": 192,
- },
- Object {
- "actualText": "桌子",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 40,
- "multiLineActualTexts": Array [
- "桌子",
- ],
- "originalText": "桌子",
- "width": 96,
- },
- Object {
- "actualText": "数量数量数量数量数量数...",
- "actualTextHeight": 30,
- "actualTextWidth": 144,
- "height": 38,
- "multiLineActualTexts": Array [
- "数量数量数量",
- "数量数量数...",
- ],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 96,
- },
- Object {
- "actualText": "沙发",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 40,
- "multiLineActualTexts": Array [
- "沙发",
- ],
- "originalText": "沙发",
- "width": 96,
- },
- Object {
- "actualText": "数量数量数量数量数量数...",
- "actualTextHeight": 30,
- "actualTextWidth": 144,
- "height": 38,
- "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": 40,
- "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",
+ "actualText": "4",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 7,
"height": 30,
"multiLineActualTexts": Array [
- "3877",
+ "4",
],
- "originalText": 3877,
- "width": 96,
+ "originalText": 4,
+ "width": 80,
},
Object {
- "actualText": "4342",
+ "actualText": "5",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 7,
"height": 30,
"multiLineActualTexts": Array [
- "4342",
+ "5",
],
- "originalText": 4342,
- "width": 96,
+ "originalText": 5,
+ "width": 80,
},
Object {
- "actualText": "-",
+ "actualText": "6",
"actualTextHeight": 15,
- "actualTextWidth": 4,
+ "actualTextWidth": 7,
"height": 30,
"multiLineActualTexts": Array [
- "-",
- ],
- "originalText": "-",
- "width": 96,
- },
- Object {
- "actualText": "-",
- "actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 40,
- "multiLineActualTexts": Array [
- "-",
+ "6",
],
- "originalText": "-",
- "width": 96,
+ "originalText": 6,
+ "width": 80,
},
Object {
- "actualText": "1723",
+ "actualText": "7",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 7,
"height": 30,
"multiLineActualTexts": Array [
- "1723",
+ "7",
],
- "originalText": 1723,
- "width": 96,
+ "originalText": 7,
+ "width": 80,
},
Object {
- "actualText": "1822",
+ "actualText": "8",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 7,
"height": 30,
"multiLineActualTexts": Array [
- "1822",
+ "8",
],
- "originalText": 1822,
- "width": 96,
+ "originalText": 8,
+ "width": 80,
},
Object {
- "actualText": "1943",
+ "actualText": "9",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 7,
"height": 30,
"multiLineActualTexts": Array [
- "1943",
+ "9",
],
- "originalText": 1943,
- "width": 96,
+ "originalText": 9,
+ "width": 80,
},
Object {
- "actualText": "2330",
+ "actualText": "10",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 14,
"height": 30,
"multiLineActualTexts": Array [
- "2330",
+ "10",
],
- "originalText": 2330,
- "width": 96,
+ "originalText": 10,
+ "width": 80,
},
Object {
- "actualText": "632",
+ "actualText": "11",
"actualTextHeight": 15,
- "actualTextWidth": 21,
+ "actualTextWidth": 13,
"height": 30,
"multiLineActualTexts": Array [
- "632",
+ "11",
],
- "originalText": 632,
- "width": 96,
+ "originalText": 11,
+ "width": 80,
},
Object {
- "actualText": "7234",
+ "actualText": "12",
"actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualTextWidth": 14,
"height": 30,
"multiLineActualTexts": Array [
- "7234",
+ "12",
],
- "originalText": 7234,
- "width": 96,
+ "originalText": 12,
+ "width": 80,
},
Object {
- "actualText": "834",
+ "actualText": "13",
"actualTextHeight": 15,
- "actualTextWidth": 21,
+ "actualTextWidth": 14,
"height": 30,
"multiLineActualTexts": Array [
- "834",
+ "13",
],
- "originalText": 834,
- "width": 96,
+ "originalText": 13,
+ "width": 80,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 3`] = `
+Array [
Object {
- "actualText": "5343",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "5343",
+ "序号",
],
- "originalText": 5343,
- "width": 96,
+ "originalText": "序号",
+ "width": 80,
},
Object {
- "actualText": "-",
- "actualTextHeight": 15,
- "actualTextWidth": 4,
- "height": 40,
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "-",
+ "省份",
],
- "originalText": "-",
- "width": 96,
+ "originalText": "省份",
+ "width": 103.8,
},
Object {
- "actualText": "2451",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualText": "城市城市城市...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 83,
"height": 30,
"multiLineActualTexts": Array [
- "2451",
+ "城市城市城市...",
],
- "originalText": 2451,
- "width": 96,
+ "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "width": 103.8,
},
Object {
- "actualText": "2244",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualText": "类别类别类别...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 83,
"height": 30,
"multiLineActualTexts": Array [
- "2244",
+ "类别类别类别...",
],
- "originalText": 2244,
- "width": 96,
+ "originalText": "类别类别类别类别类别类别类别类别类别类别",
+ "width": 103.8,
},
Object {
- "actualText": "2333",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualText": "子类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "2333",
+ "子类别",
],
- "originalText": 2333,
- "width": 96,
+ "originalText": "子类别",
+ "width": 103.8,
},
Object {
- "actualText": "2445",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
+ "actualText": "数量数量数量...",
+ "actualTextHeight": 16,
+ "actualTextWidth": 83,
"height": 30,
"multiLineActualTexts": Array [
- "2445",
+ "数量数量数量...",
],
- "originalText": 2445,
- "width": 96,
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
+ "width": 103.8,
},
]
`;
-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 4`] = `Array []`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 5`] = `
Array [
Object {
- "actualText": "序号",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 68,
+ "actualText": "1",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
"multiLineActualTexts": Array [
- "序号",
+ "1",
],
- "originalText": "序号",
+ "originalText": 1,
"width": 80,
},
Object {
- "actualText": "省份",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 68,
+ "actualText": "2",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
"multiLineActualTexts": Array [
- "省份",
+ "2",
],
- "originalText": "省份",
- "width": 102.57,
+ "originalText": 2,
+ "width": 80,
},
Object {
- "actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
- "actualTextHeight": 64,
- "actualTextWidth": 292,
- "height": 68,
+ "actualText": "3",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
"multiLineActualTexts": Array [
- "城市城市城市城",
- "市城市城市城市",
- "城市城市城市城",
- "市城市",
+ "3",
],
- "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
- "width": 102.57,
+ "originalText": 3,
+ "width": 80,
},
Object {
- "actualText": "类别类别类别类别类别类别类别类别类别类别",
- "actualTextHeight": 16,
- "actualTextWidth": 241,
- "height": 72,
+ "actualText": "4",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
"multiLineActualTexts": Array [
- "类别类别类别类别类别类别类别类别类别类别",
+ "4",
],
- "originalText": "类别类别类别类别类别类别类别类别类别类别",
- "width": 285.14,
+ "originalText": 4,
+ "width": 80,
},
Object {
- "actualText": "子类别",
- "actualTextHeight": 16,
- "actualTextWidth": 37,
- "height": 88,
+ "actualText": "5",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
"multiLineActualTexts": Array [
- "子类别",
+ "5",
],
- "originalText": "子类别",
- "width": 285.14,
+ "originalText": 5,
+ "width": 80,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests PivotSheet should use actual text height for large max line 2`] = `
-Array [
Object {
- "actualText": "1",
+ "actualText": "6",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 120,
+ "height": 30,
"multiLineActualTexts": Array [
- "1",
+ "6",
],
- "originalText": "1",
+ "originalText": 6,
"width": 80,
},
Object {
- "actualText": "2",
+ "actualText": "7",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 88,
+ "height": 30,
"multiLineActualTexts": Array [
- "2",
+ "7",
],
- "originalText": "2",
+ "originalText": 7,
"width": 80,
},
Object {
- "actualText": "3",
+ "actualText": "8",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 120,
+ "height": 30,
"multiLineActualTexts": Array [
- "3",
+ "8",
],
- "originalText": "3",
+ "originalText": 8,
"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": "9",
+ "actualTextHeight": 15,
+ "actualTextWidth": 7,
+ "height": 30,
"multiLineActualTexts": Array [
- "家具",
+ "9",
],
- "originalText": "家具",
- "width": 205.14,
+ "originalText": 9,
+ "width": 80,
},
Object {
- "actualText": "桌子",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "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": 25,
- "height": 88,
+ "actualText": "12",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 30,
"multiLineActualTexts": Array [
- "沙发",
+ "12",
],
- "originalText": "沙发",
- "width": 102.57,
+ "originalText": 12,
+ "width": 80,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量数量",
- "actualTextHeight": 60,
- "actualTextWidth": 268,
- "height": 68,
+ "actualText": "13",
+ "actualTextHeight": 15,
+ "actualTextWidth": 14,
+ "height": 30,
"multiLineActualTexts": Array [
- "数量数量数量数",
- "量数量数量数量",
- "数量数量数量数",
- "量",
+ "13",
],
- "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
- "width": 102.57,
+ "originalText": 13,
+ "width": 80,
},
Object {
- "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
- "actualTextHeight": 64,
- "actualTextWidth": 340,
- "height": 72,
+ "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": 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,
},
Object {
- "actualText": "办公用品",
- "actualTextHeight": 16,
- "actualTextWidth": 49,
- "height": 72,
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "height": 30,
"multiLineActualTexts": Array [
- "办公用品",
+ "浙江省",
],
- "originalText": "办公用品",
- "width": 205.14,
+ "originalText": "浙江省",
+ "width": 103.8,
},
Object {
- "actualText": "笔",
- "actualTextHeight": 16,
- "actualTextWidth": 13,
- "height": 88,
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "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,
},
Object {
- "actualText": "纸张",
- "actualTextHeight": 16,
- "actualTextWidth": 25,
- "height": 88,
+ "actualText": "浙江省",
+ "actualTextHeight": 15,
+ "actualTextWidth": 37,
+ "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": 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 +16573,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 +16590,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 76,
+ "height": 61,
"multiLineActualTexts": Array [
"2",
],
@@ -10104,13 +16677,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 +16691,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 +16773,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 76,
+ "height": 61,
"multiLineActualTexts": Array [
"2",
],
@@ -10293,15 +16869,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 +16970,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 +17071,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 +17172,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 +17277,7 @@ Array [
"actualText": "7789778977897789778977897789",
"actualTextHeight": 45,
"actualTextWidth": 189,
- "height": 76,
+ "height": 61,
"multiLineActualTexts": Array [
"7789778977897",
"7897789778977",
@@ -10795,13 +17367,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 +17383,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 +17400,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 76,
+ "height": 61,
"multiLineActualTexts": Array [
"2",
],
@@ -10915,13 +17487,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 +17504,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 72,
+ "height": 64,
"multiLineActualTexts": Array [
"省份",
],
@@ -10940,15 +17512,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 +17528,7 @@ Array [
"actualText": "类别类别类别类别类别类别类别类别类别类别",
"actualTextHeight": 48,
"actualTextWidth": 243,
- "height": 72,
+ "height": 64,
"multiLineActualTexts": Array [
"类别类别类别类",
"别类别类别类别",
@@ -10970,7 +17541,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 72,
+ "height": 64,
"multiLineActualTexts": Array [
"子类别",
],
@@ -10978,15 +17549,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 +17564,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 +17583,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 76,
+ "height": 61,
"multiLineActualTexts": Array [
"2",
],
@@ -11109,15 +17679,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 +17780,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,
@@ -11310,18 +17878,17 @@ Array [
"家具",
],
"originalText": "家具",
- "width": 103.8,
- },
- Object {
- "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
- "actualTextHeight": 60,
- "actualTextWidth": 340,
- "height": 76,
+ "width": 103.8,
+ },
+ Object {
+ "actualText": "家具家具家具家具家具家具家具家具家具家具...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 61,
"multiLineActualTexts": Array [
"家具家具家具家",
"具家具家具家具",
- "家具家具家具家",
- "具家具家具家具",
+ "家具家具家具...",
],
"originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
"width": 103.8,
@@ -11415,15 +17982,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 +18087,7 @@ Array [
"actualText": "7789778977897789778977897789",
"actualTextHeight": 45,
"actualTextWidth": 189,
- "height": 76,
+ "height": 61,
"multiLineActualTexts": Array [
"7789778977897",
"7897789778977",
@@ -11601,562 +18167,23 @@ Array [
"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,
- "multiLineActualTexts": Array [
- "2367236723611",
- "11",
- ],
- "originalText": 236723672361111,
- "width": 103.8,
- },
- Object {
- "actualText": "7789778977897789778977897789",
- "actualTextHeight": 45,
- "actualTextWidth": 189,
- "height": 76,
- "multiLineActualTexts": Array [
- "7789778977897",
- "7897789778977",
- "89",
+ "height": 30,
+ "multiLineActualTexts": Array [
+ "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 +18193,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 +18210,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"2",
],
@@ -12194,7 +18221,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 61,
+ "height": 30,
"multiLineActualTexts": Array [
"3",
],
@@ -12216,7 +18243,7 @@ Array [
"actualText": "5",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 100,
"multiLineActualTexts": Array [
"5",
],
@@ -12289,82 +18316,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 +18333,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 +18409,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"2",
],
@@ -12464,7 +18420,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 61,
+ "height": 30,
"multiLineActualTexts": Array [
"3",
],
@@ -12486,7 +18442,7 @@ Array [
"actualText": "5",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 100,
"multiLineActualTexts": Array [
"5",
],
@@ -12559,141 +18515,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 +18524,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 +18546,7 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "浙江省",
@@ -12736,18 +18557,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 +18579,7 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "浙江省",
@@ -12769,7 +18590,7 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "浙江省",
@@ -12780,7 +18601,7 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "浙江省",
@@ -12791,7 +18612,7 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "浙江省",
@@ -12802,7 +18623,7 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "浙江省",
@@ -12813,97 +18634,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 +18645,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 +18667,7 @@ Array [
"杭州市",
],
"originalText": "杭州市",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "绍兴市",
@@ -12947,18 +18678,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 +18700,7 @@ Array [
"舟山市",
],
"originalText": "舟山市",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "杭州市",
@@ -12980,7 +18711,7 @@ Array [
"杭州市",
],
"originalText": "杭州市",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "绍兴市",
@@ -12991,7 +18722,7 @@ Array [
"绍兴市",
],
"originalText": "绍兴市",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "宁波市",
@@ -13002,64 +18733,29 @@ 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,
+ "width": 103.8,
},
Object {
- "actualText": "家具",
+ "actualText": "舟山市",
"actualTextHeight": 15,
- "actualTextWidth": 25,
+ "actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "家具",
+ "舟山市",
],
- "originalText": "家具",
- "width": 143.8,
+ "originalText": "舟山市",
+ "width": 103.8,
},
Object {
- "actualText": "家具",
+ "actualText": "杭州市",
"actualTextHeight": 15,
- "actualTextWidth": 25,
+ "actualTextWidth": 37,
"height": 30,
"multiLineActualTexts": Array [
- "家具",
+ "杭州市",
],
- "originalText": "家具",
- "width": 143.8,
+ "originalText": "杭州市",
+ "width": 103.8,
},
Object {
"actualText": "家具",
@@ -13070,18 +18766,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": "家具",
@@ -13092,7 +18788,7 @@ Array [
"家具",
],
"originalText": "家具",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "家具",
@@ -13103,40 +18799,29 @@ Array [
"家具",
],
"originalText": "家具",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "家具",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 30,
+ "height": 100,
"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": "办公用品",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 49,
+ "actualTextWidth": 25,
"height": 30,
"multiLineActualTexts": Array [
- "办公用品",
+ "家具",
],
- "originalText": "办公用品",
- "width": 143.8,
+ "originalText": "家具",
+ "width": 103.8,
},
Object {
"actualText": "办公用品",
@@ -13147,7 +18832,7 @@ Array [
"办公用品",
],
"originalText": "办公用品",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "办公用品",
@@ -13158,7 +18843,7 @@ Array [
"办公用品",
],
"originalText": "办公用品",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "办公用品",
@@ -13169,7 +18854,7 @@ Array [
"办公用品",
],
"originalText": "办公用品",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "办公用品",
@@ -13180,7 +18865,7 @@ Array [
"办公用品",
],
"originalText": "办公用品",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "办公用品",
@@ -13191,53 +18876,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 +18887,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 +18909,7 @@ Array [
"沙发",
],
"originalText": "沙发",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "沙发",
@@ -13281,18 +18920,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 +18942,7 @@ Array [
"沙发",
],
"originalText": "沙发",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "笔",
@@ -13314,7 +18953,7 @@ Array [
"笔",
],
"originalText": "笔",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "笔",
@@ -13325,7 +18964,7 @@ Array [
"笔",
],
"originalText": "笔",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "笔",
@@ -13336,7 +18975,7 @@ Array [
"笔",
],
"originalText": "笔",
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "笔",
@@ -13347,29 +18986,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 +18997,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 +19008,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 +19030,7 @@ Array [
"5343",
],
"originalText": 5343,
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "632",
@@ -13469,18 +19041,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 +19063,7 @@ Array [
"834",
],
"originalText": 834,
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "945",
@@ -13502,7 +19074,7 @@ Array [
"945",
],
"originalText": 945,
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "1304",
@@ -13513,7 +19085,7 @@ Array [
"1304",
],
"originalText": 1304,
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "1145",
@@ -13524,7 +19096,7 @@ Array [
"1145",
],
"originalText": 1145,
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "1432",
@@ -13535,7 +19107,7 @@ Array [
"1432",
],
"originalText": 1432,
- "width": 143.8,
+ "width": 103.8,
},
Object {
"actualText": "1343",
@@ -13546,40 +19118,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 +19139,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 +19156,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 100,
"multiLineActualTexts": Array [
"2",
],
@@ -13617,7 +19167,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 46,
"multiLineActualTexts": Array [
"3",
],
@@ -13668,82 +19218,16 @@ Array [
"originalText": 7,
"width": 80,
},
- Object {
- "actualText": "8",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
- "multiLineActualTexts": Array [
- "8",
- ],
- "originalText": 8,
- "width": 80,
- },
- Object {
- "actualText": "9",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
- "multiLineActualTexts": Array [
- "9",
- ],
- "originalText": 9,
- "width": 80,
- },
- 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 +19238,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 30,
+ "height": 70,
"multiLineActualTexts": Array [
"省份",
],
@@ -13762,23 +19246,27 @@ 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,
@@ -13787,7 +19275,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 30,
+ "height": 70,
"multiLineActualTexts": Array [
"子类别",
],
@@ -13795,11 +19283,13 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "数量数量数量...",
- "actualTextHeight": 16,
- "actualTextWidth": 83,
- "height": 30,
+ "actualText": "数量数量数量数量数量数量数量数量数量数量...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 253,
+ "height": 70,
"multiLineActualTexts": Array [
+ "数量数量数量数",
+ "量数量数量数量",
"数量数量数量...",
],
"originalText": "数量数量数量数量数量数量数量数量数量数量数量",
@@ -13808,15 +19298,15 @@ Array [
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 4`] = `Array []`;
+exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 4`] = `Array []`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should default render one line text 5`] = `
+exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text wrap 5`] = `
Array [
Object {
"actualText": "1",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 70,
"multiLineActualTexts": Array [
"1",
],
@@ -13827,7 +19317,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 100,
"multiLineActualTexts": Array [
"2",
],
@@ -13838,7 +19328,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 46,
"multiLineActualTexts": Array [
"3",
],
@@ -13868,164 +19358,32 @@ Array [
"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": "浙江省",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
- "multiLineActualTexts": Array [
- "浙江省",
- ],
- "originalText": "浙江省",
- "width": 103.8,
- },
- Object {
- "actualText": "浙江省浙江省...",
- "actualTextHeight": 15,
- "actualTextWidth": 83,
- "height": 30,
- "multiLineActualTexts": Array [
- "浙江省浙江省...",
- ],
- "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
- "width": 103.8,
- },
- Object {
- "actualText": "浙江省",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
- "multiLineActualTexts": Array [
- "浙江省",
- ],
- "originalText": "浙江省",
- "width": 103.8,
- },
- Object {
- "actualText": "浙江省",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
- "multiLineActualTexts": Array [
- "浙江省",
- ],
- "originalText": "浙江省",
- "width": 103.8,
- },
- 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 +19391,23 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "浙江省",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 100,
"multiLineActualTexts": Array [
- "浙江省",
+ "浙江省浙江省浙",
+ "江省浙江省浙江",
+ "省浙江省浙江...",
],
- "originalText": "浙江省",
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
"width": 103.8,
},
Object {
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 46,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -14102,7 +19462,7 @@ Array [
"actualText": "绍兴市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 70,
"multiLineActualTexts": Array [
"绍兴市",
],
@@ -14110,12 +19470,14 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "杭州市杭州市...",
- "actualTextHeight": 15,
- "actualTextWidth": 83,
- "height": 30,
+ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 100,
"multiLineActualTexts": Array [
- "杭州市杭州市...",
+ "杭州市杭州市杭",
+ "州市杭州市杭州",
+ "市杭州市杭州...",
],
"originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
"width": 103.8,
@@ -14124,51 +19486,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 +19537,11 @@ Array [
"originalText": "绍兴市",
"width": 103.8,
},
- Object {
- "actualText": "宁波市",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
- "multiLineActualTexts": Array [
- "宁波市",
- ],
- "originalText": "宁波市",
- "width": 103.8,
- },
- Object {
- "actualText": "舟山市",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
- "multiLineActualTexts": Array [
- "舟山市",
- ],
- "originalText": "舟山市",
- "width": 103.8,
- },
Object {
"actualText": "家具",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 30,
+ "height": 70,
"multiLineActualTexts": Array [
"家具",
],
@@ -14253,11 +19549,13 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "家具家具家具...",
- "actualTextHeight": 15,
- "actualTextWidth": 83,
- "height": 30,
+ "actualText": "家具家具家具家具家具家具家具家具家具家具...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 100,
"multiLineActualTexts": Array [
+ "家具家具家具家",
+ "具家具家具家具",
"家具家具家具...",
],
"originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
@@ -14267,29 +19565,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 +19616,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,11 +19628,13 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "桌子桌子桌子...",
- "actualTextHeight": 15,
- "actualTextWidth": 83,
- "height": 30,
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 100,
"multiLineActualTexts": Array [
+ "桌子桌子桌子桌",
+ "子桌子桌子桌子",
"桌子桌子桌子...",
],
"originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
@@ -14410,7 +19644,7 @@ Array [
"actualText": "桌子",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 30,
+ "height": 46,
"multiLineActualTexts": Array [
"桌子",
],
@@ -14462,100 +19696,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 +19776,90 @@ Array [
"originalText": 632,
"width": 103.8,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust cell height if custom cell style more than actual text height 1`] = `
+Array [
Object {
- "actualText": "7234",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 30,
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 70,
"multiLineActualTexts": Array [
- "7234",
+ "序号",
],
- "originalText": 7234,
- "width": 103.8,
+ "originalText": "序号",
+ "width": 80,
},
Object {
- "actualText": "834",
- "actualTextHeight": 15,
- "actualTextWidth": 21,
- "height": 30,
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 70,
"multiLineActualTexts": Array [
- "834",
+ "省份",
],
- "originalText": 834,
+ "originalText": "省份",
"width": 103.8,
},
Object {
- "actualText": "945",
- "actualTextHeight": 15,
- "actualTextWidth": 21,
- "height": 30,
+ "actualText": "城市城市城市城市城市城市城...",
+ "actualTextHeight": 32,
+ "actualTextWidth": 168,
+ "height": 70,
"multiLineActualTexts": Array [
- "945",
+ "城市城市城市城",
+ "市城市城市城...",
],
- "originalText": 945,
+ "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
"width": 103.8,
},
Object {
- "actualText": "1304",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 30,
+ "actualText": "类别类别类别类别类别类别类...",
+ "actualTextHeight": 32,
+ "actualTextWidth": 168,
+ "height": 70,
"multiLineActualTexts": Array [
- "1304",
+ "类别类别类别类",
+ "别类别类别类...",
],
- "originalText": 1304,
+ "originalText": "类别类别类别类别类别类别类别类别类别类别",
"width": 103.8,
},
Object {
- "actualText": "1145",
- "actualTextHeight": 15,
- "actualTextWidth": 26,
- "height": 30,
+ "actualText": "子类别",
+ "actualTextHeight": 16,
+ "actualTextWidth": 37,
+ "height": 70,
"multiLineActualTexts": Array [
- "1145",
+ "子类别",
],
- "originalText": 1145,
+ "originalText": "子类别",
"width": 103.8,
},
Object {
- "actualText": "1432",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 30,
+ "actualText": "数量数量数量数量数量数量数...",
+ "actualTextHeight": 32,
+ "actualTextWidth": 168,
+ "height": 70,
"multiLineActualTexts": Array [
- "1432",
+ "数量数量数量数",
+ "量数量数量数...",
],
- "originalText": 1432,
+ "originalText": "数量数量数量数量数量数量数量数量数量数量数量",
"width": 103.8,
},
]
`;
-exports[`SpreadSheet Multi Line Text Tests TableSheet should force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 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 +19869,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 +19886,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 61,
+ "height": 76,
"multiLineActualTexts": Array [
"2",
],
@@ -14779,38 +19959,16 @@ Array [
"originalText": 8,
"width": 80,
},
- Object {
- "actualText": "9",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
- "height": 30,
- "multiLineActualTexts": Array [
- "9",
- ],
- "originalText": 9,
- "width": 80,
- },
- Object {
- "actualText": "10",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 30,
- "multiLineActualTexts": Array [
- "10",
- ],
- "originalText": 10,
- "width": 80,
- },
]
`;
-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 +19979,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 100,
"multiLineActualTexts": Array [
"省份",
],
@@ -14829,14 +19987,15 @@ 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,
@@ -14845,7 +20004,7 @@ Array [
"actualText": "类别类别类别类别类别类别类别类别类别类别",
"actualTextHeight": 48,
"actualTextWidth": 243,
- "height": 56,
+ "height": 50,
"multiLineActualTexts": Array [
"类别类别类别类",
"别类别类别类别",
@@ -14858,7 +20017,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 56,
+ "height": 100,
"multiLineActualTexts": Array [
"子类别",
],
@@ -14866,14 +20025,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 +20041,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 +20060,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 61,
+ "height": 76,
"multiLineActualTexts": Array [
"2",
],
@@ -14973,28 +20133,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 +20145,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 +20224,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 +20236,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 +20315,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 +20327,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 +20406,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 +20418,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 +20497,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 +20513,7 @@ Array [
"actualText": "7789778977897789778977897789",
"actualTextHeight": 45,
"actualTextWidth": 189,
- "height": 61,
+ "height": 76,
"multiLineActualTexts": Array [
"7789778977897",
"7897789778977",
@@ -15535,38 +20589,16 @@ Array [
"originalText": 7234,
"width": 103.8,
},
- Object {
- "actualText": "834",
- "actualTextHeight": 15,
- "actualTextWidth": 21,
- "height": 30,
- "multiLineActualTexts": Array [
- "834",
- ],
- "originalText": 834,
- "width": 103.8,
- },
- Object {
- "actualText": "945",
- "actualTextHeight": 15,
- "actualTextWidth": 21,
- "height": 30,
- "multiLineActualTexts": Array [
- "945",
- ],
- "originalText": 945,
- "width": 103.8,
- },
]
`;
-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 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 +20608,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 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 +20625,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 61,
+ "height": 20,
"multiLineActualTexts": Array [
"2",
],
@@ -15604,7 +20636,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
"3",
],
@@ -15615,7 +20647,7 @@ Array [
"actualText": "4",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"4",
],
@@ -15626,7 +20658,7 @@ Array [
"actualText": "5",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"5",
],
@@ -15637,7 +20669,7 @@ Array [
"actualText": "6",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"6",
],
@@ -15648,7 +20680,7 @@ Array [
"actualText": "7",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"7",
],
@@ -15659,7 +20691,7 @@ Array [
"actualText": "8",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"8",
],
@@ -15670,7 +20702,7 @@ Array [
"actualText": "9",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"9",
],
@@ -15681,23 +20713,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 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 +20828,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 48,
"multiLineActualTexts": Array [
"省份",
],
@@ -15716,27 +20836,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 +20863,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 56,
+ "height": 48,
"multiLineActualTexts": Array [
"子类别",
],
@@ -15753,14 +20871,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 +20885,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 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 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 +20904,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 61,
+ "height": 20,
"multiLineActualTexts": Array [
"2",
],
@@ -15798,7 +20915,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
"3",
],
@@ -15809,84 +20926,172 @@ Array [
"actualText": "4",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"4",
],
- "originalText": 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 [
+ "12",
+ ],
+ "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 +21099,13 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 61,
+ "actualText": "浙江省浙江省浙江省浙江省浙...",
+ "actualTextHeight": 30,
+ "actualTextWidth": 168,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省浙江省浙",
- "江省浙江省浙江",
- "省浙江省浙江...",
+ "江省浙江省浙...",
],
"originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
"width": 103.8,
@@ -15910,7 +21114,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -15921,7 +21125,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -15932,7 +21136,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -15943,7 +21147,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -15954,7 +21158,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -15965,7 +21169,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -15976,7 +21180,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -15987,7 +21191,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -15995,1411 +21199,1318 @@ 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,
+ "height": 20,
"multiLineActualTexts": Array [
- "家具",
+ "绍兴市",
],
- "originalText": "家具",
+ "originalText": "绍兴市",
"width": 103.8,
},
Object {
- "actualText": "家具家具家具家具家具家具家具家具家具家具...",
- "actualTextHeight": 45,
- "actualTextWidth": 253,
- "height": 61,
+ "actualText": "杭州市杭州市杭州市杭州市杭...",
+ "actualTextHeight": 30,
+ "actualTextWidth": 168,
+ "height": 20,
"multiLineActualTexts": Array [
- "家具家具家具家",
- "具家具家具家具",
- "家具家具家具...",
+ "杭州市杭州市杭",
+ "州市杭州市杭...",
],
- "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
+ "originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
"width": 103.8,
},
Object {
- "actualText": "家具",
+ "actualText": "绍兴市",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 46,
+ "actualTextWidth": 37,
+ "height": 20,
"multiLineActualTexts": Array [
- "家具",
+ "绍兴市",
],
- "originalText": "家具",
+ "originalText": "绍兴市",
"width": 103.8,
},
Object {
- "actualText": "家具",
+ "actualText": "宁波市",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
+ "actualTextWidth": 37,
+ "height": 20,
"multiLineActualTexts": Array [
- "家具",
+ "宁波市",
],
- "originalText": "家具",
+ "originalText": "宁波市",
"width": 103.8,
},
Object {
- "actualText": "家具",
+ "actualText": "舟山市",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
+ "actualTextWidth": 37,
+ "height": 20,
"multiLineActualTexts": Array [
- "家具",
+ "舟山市",
],
- "originalText": "家具",
+ "originalText": "舟山市",
"width": 103.8,
},
Object {
- "actualText": "家具",
+ "actualText": "杭州市",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
+ "actualTextWidth": 37,
+ "height": 20,
"multiLineActualTexts": Array [
- "家具",
+ "杭州市",
],
- "originalText": "家具",
+ "originalText": "杭州市",
"width": 103.8,
},
Object {
- "actualText": "家具",
+ "actualText": "绍兴市",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
+ "actualTextWidth": 37,
+ "height": 20,
"multiLineActualTexts": Array [
- "家具",
+ "绍兴市",
],
- "originalText": "家具",
+ "originalText": "绍兴市",
"width": 103.8,
},
Object {
- "actualText": "家具",
+ "actualText": "宁波市",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
+ "actualTextWidth": 37,
+ "height": 20,
"multiLineActualTexts": Array [
- "家具",
+ "宁波市",
],
- "originalText": "家具",
+ "originalText": "宁波市",
"width": 103.8,
},
Object {
- "actualText": "家具",
+ "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,
+ "actualTextWidth": 25,
+ "height": 20,
"multiLineActualTexts": Array [
- "7789778977897",
- "7897789778977",
- "89",
+ "家具",
],
- "originalText": "7789778977897789778977897789",
+ "originalText": "家具",
"width": 103.8,
},
Object {
- "actualText": "236723672361111",
+ "actualText": "家具家具家具家具家具家具家...",
"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,
+ "actualTextWidth": 168,
+ "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,
},
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,
+ "originalText": "家具",
+ "width": 103.8,
},
-]
-`;
-
-exports[`SpreadSheet Multi Line Text Tests TableSheet should get correctly cell height priority if actual text not wrap 2`] = `
-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": 49,
+ "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,
+ "actualText": "家具",
+ "actualTextHeight": 15,
"actualTextWidth": 25,
"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": 30,
+ "actualTextWidth": 168,
"height": 20,
"multiLineActualTexts": Array [
- "city",
+ "桌子桌子桌子桌",
+ "子桌子桌子桌...",
],
- "originalText": "city",
+ "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
"width": 103.8,
},
Object {
- "actualText": "type",
- "actualTextHeight": 16,
+ "actualText": "桌子",
+ "actualTextHeight": 15,
"actualTextWidth": 25,
"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": 13,
+ "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": 25,
+ "height": 20,
"multiLineActualTexts": Array [
- "9",
+ "纸张",
],
- "originalText": 9,
- "width": 80,
+ "originalText": "纸张",
+ "width": 103.8,
},
Object {
- "actualText": "10",
+ "actualText": "纸张",
"actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 30,
+ "actualTextWidth": 25,
+ "height": 20,
"multiLineActualTexts": Array [
- "10",
+ "纸张",
],
- "originalText": 10,
- "width": 80,
+ "originalText": "纸张",
+ "width": 103.8,
},
Object {
- "actualText": "11",
+ "actualText": "纸张",
"actualTextHeight": 15,
- "actualTextWidth": 13,
- "height": 30,
+ "actualTextWidth": 25,
+ "height": 20,
"multiLineActualTexts": Array [
- "11",
+ "纸张",
],
- "originalText": 11,
- "width": 80,
+ "originalText": "纸张",
+ "width": 103.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "纸张",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 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": "浙江省",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 20,
"multiLineActualTexts": Array [
- "浙江省",
+ "2367236723611",
+ "11",
],
- "originalText": "浙江省",
+ "originalText": 236723672361111,
"width": 103.8,
},
Object {
- "actualText": "浙江省",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
+ "actualText": "778977897789778977897789...",
+ "actualTextHeight": 30,
+ "actualTextWidth": 172,
+ "height": 20,
"multiLineActualTexts": Array [
- "浙江省",
+ "7789778977897",
+ "78977897789...",
],
- "originalText": "浙江省",
+ "originalText": "7789778977897789778977897789",
"width": 103.8,
},
Object {
- "actualText": "浙江省",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 100,
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 20,
"multiLineActualTexts": Array [
- "浙江省",
+ "2367236723611",
+ "11",
],
- "originalText": "浙江省",
+ "originalText": 236723672361111,
"width": 103.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "3877",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
+ "actualTextWidth": 27,
+ "height": 20,
"multiLineActualTexts": Array [
- "浙江省",
+ "3877",
],
- "originalText": "浙江省",
+ "originalText": 3877,
"width": 103.8,
},
Object {
- "actualText": "浙江省",
+ "actualText": "4342",
"actualTextHeight": 15,
- "actualTextWidth": 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,
- "height": 30,
+ "actualTextWidth": 21,
+ "height": 20,
"multiLineActualTexts": Array [
- "宁波市",
+ "945",
],
- "originalText": "宁波市",
+ "originalText": 945,
"width": 103.8,
},
Object {
- "actualText": "舟山市",
+ "actualText": "1304",
"actualTextHeight": 15,
- "actualTextWidth": 37,
+ "actualTextWidth": 27,
"height": 20,
"multiLineActualTexts": Array [
- "舟山市",
+ "1304",
],
- "originalText": "舟山市",
+ "originalText": 1304,
"width": 103.8,
},
Object {
- "actualText": "杭州市",
+ "actualText": "1145",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
+ "actualTextWidth": 26,
+ "height": 20,
"multiLineActualTexts": Array [
- "杭州市",
+ "1145",
],
- "originalText": "杭州市",
+ "originalText": 1145,
"width": 103.8,
},
Object {
- "actualText": "绍兴市",
+ "actualText": "1432",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 30,
+ "actualTextWidth": 27,
+ "height": 20,
"multiLineActualTexts": Array [
- "绍兴市",
+ "1432",
],
- "originalText": "绍兴市",
+ "originalText": 1432,
"width": 103.8,
},
Object {
- "actualText": "宁波市",
+ "actualText": "1343",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 100,
+ "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 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 if custom cell style more than actual text height by dataCell.height 2`] = `
+Array [
Object {
- "actualText": "杭州市",
+ "actualText": "1",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "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": 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": 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": 30,
+ "actualTextWidth": 7,
+ "height": 100,
"multiLineActualTexts": Array [
- "家具",
+ "4",
],
- "originalText": "家具",
- "width": 103.8,
+ "originalText": 4,
+ "width": 80,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style more than actual text height by dataCell.height 3`] = `
+Array [
Object {
- "actualText": "家具",
- "actualTextHeight": 15,
+ "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 if custom cell style more than actual text height by dataCell.height 4`] = `Array []`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not adaptive adjust data cell height if custom cell style more than actual text height by dataCell.height 5`] = `
+Array [
Object {
- "actualText": "办公用品",
+ "actualText": "1",
"actualTextHeight": 15,
- "actualTextWidth": 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": 30,
+ "actualTextWidth": 168,
+ "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": 30,
+ "actualTextWidth": 168,
+ "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": 30,
+ "actualTextWidth": 168,
+ "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": 30,
+ "actualTextWidth": 168,
"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": "778977897789778977897789...",
+ "actualTextHeight": 30,
+ "actualTextWidth": 172,
+ "height": 100,
"multiLineActualTexts": Array [
- "1145",
+ "7789778977897",
+ "78977897789...",
],
- "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 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 +22520,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 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 +22537,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 100,
+ "height": 46,
"multiLineActualTexts": Array [
"2",
],
@@ -17488,16 +22599,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 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 +22663,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 70,
+ "height": 20,
"multiLineActualTexts": Array [
"省份",
],
@@ -17516,27 +22671,25 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "城市城市城市城市城市城市城市城市城市城市...",
- "actualTextHeight": 48,
- "actualTextWidth": 253,
- "height": 70,
+ "actualText": "城市城市城市城市城市城市城...",
+ "actualTextHeight": 32,
+ "actualTextWidth": 168,
+ "height": 20,
"multiLineActualTexts": Array [
"城市城市城市城",
- "市城市城市城市",
- "城市城市城市...",
+ "市城市城市城...",
],
"originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
"width": 103.8,
- },
- Object {
- "actualText": "类别类别类别类别类别类别类别类别类别类别",
- "actualTextHeight": 48,
- "actualTextWidth": 243,
- "height": 70,
+ },
+ Object {
+ "actualText": "类别类别类别类别类别类别类...",
+ "actualTextHeight": 32,
+ "actualTextWidth": 168,
+ "height": 20,
"multiLineActualTexts": Array [
"类别类别类别类",
- "别类别类别类别",
- "类别类别类别",
+ "别类别类别类...",
],
"originalText": "类别类别类别类别类别类别类别类别类别类别",
"width": 103.8,
@@ -17545,7 +22698,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 70,
+ "height": 20,
"multiLineActualTexts": Array [
"子类别",
],
@@ -17553,14 +22706,13 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "数量数量数量数量数量数量数量数量数量数量...",
- "actualTextHeight": 48,
- "actualTextWidth": 253,
- "height": 70,
+ "actualText": "数量数量数量数量数量数量数...",
+ "actualTextHeight": 32,
+ "actualTextWidth": 168,
+ "height": 20,
"multiLineActualTexts": Array [
"数量数量数量数",
- "量数量数量数量",
- "数量数量数量...",
+ "量数量数量数...",
],
"originalText": "数量数量数量数量数量数量数量数量数量数量数量",
"width": 103.8,
@@ -17568,15 +22720,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 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 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 +22739,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 100,
+ "height": 46,
"multiLineActualTexts": Array [
"2",
],
@@ -17649,11 +22801,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 +22857,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 +22923,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 +22979,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 +23045,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 +23101,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 +23167,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 +23223,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 +23289,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 +23346,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 +23413,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 +23476,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 +23493,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 76,
+ "height": 20,
"multiLineActualTexts": Array [
"2",
],
@@ -18167,7 +23504,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
"3",
],
@@ -18178,7 +23515,7 @@ Array [
"actualText": "4",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"4",
],
@@ -18189,7 +23526,7 @@ Array [
"actualText": "5",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"5",
],
@@ -18200,7 +23537,7 @@ Array [
"actualText": "6",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"6",
],
@@ -18211,7 +23548,7 @@ Array [
"actualText": "7",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"7",
],
@@ -18222,23 +23559,122 @@ Array [
"actualText": "8",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"8",
],
- "originalText": 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 +23685,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 100,
+ "height": 64,
"multiLineActualTexts": Array [
"省份",
],
@@ -18257,15 +23693,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 +23709,7 @@ Array [
"actualText": "类别类别类别类别类别类别类别类别类别类别",
"actualTextHeight": 48,
"actualTextWidth": 243,
- "height": 50,
+ "height": 64,
"multiLineActualTexts": Array [
"类别类别类别类",
"别类别类别类别",
@@ -18287,7 +23722,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 100,
+ "height": 64,
"multiLineActualTexts": Array [
"子类别",
],
@@ -18295,15 +23730,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 +23745,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 +23764,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 76,
+ "height": 20,
"multiLineActualTexts": Array [
"2",
],
@@ -18341,7 +23775,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
"3",
],
@@ -18352,7 +23786,7 @@ Array [
"actualText": "4",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"4",
],
@@ -18363,7 +23797,7 @@ Array [
"actualText": "5",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"5",
],
@@ -18374,7 +23808,7 @@ Array [
"actualText": "6",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"6",
],
@@ -18385,7 +23819,7 @@ Array [
"actualText": "7",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"7",
],
@@ -18396,18 +23830,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,15 +23948,14 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省...",
- "actualTextHeight": 60,
- "actualTextWidth": 338,
- "height": 76,
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省浙江省浙",
"江省浙江省浙江",
- "省浙江省浙江省",
- "浙江省浙江省...",
+ "省浙江省浙江...",
],
"originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
"width": 103.8,
@@ -18432,7 +23964,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -18443,7 +23975,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -18454,7 +23986,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -18465,7 +23997,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -18476,7 +24008,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -18487,7 +24019,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 +24129,7 @@ Array [
"actualText": "绍兴市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
"绍兴市",
],
@@ -18506,15 +24137,14 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市...",
- "actualTextHeight": 60,
- "actualTextWidth": 338,
- "height": 76,
+ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 20,
"multiLineActualTexts": Array [
"杭州市杭州市杭",
"州市杭州市杭州",
- "市杭州市杭州市",
- "杭州市杭州市...",
+ "市杭州市杭州...",
],
"originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
"width": 103.8,
@@ -18523,7 +24153,7 @@ Array [
"actualText": "绍兴市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
"绍兴市",
],
@@ -18534,7 +24164,7 @@ Array [
"actualText": "宁波市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"宁波市",
],
@@ -18545,7 +24175,7 @@ Array [
"actualText": "舟山市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"舟山市",
],
@@ -18556,7 +24186,7 @@ Array [
"actualText": "杭州市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"杭州市",
],
@@ -18567,7 +24197,7 @@ Array [
"actualText": "绍兴市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"绍兴市",
],
@@ -18578,18 +24208,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 +24326,14 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
- "actualTextHeight": 60,
- "actualTextWidth": 340,
- "height": 76,
+ "actualText": "家具家具家具家具家具家具家具家具家具家具...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 20,
"multiLineActualTexts": Array [
"家具家具家具家",
"具家具家具家具",
- "家具家具家具家",
- "具家具家具家具",
+ "家具家具家具...",
],
"originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
"width": 103.8,
@@ -18614,7 +24342,7 @@ Array [
"actualText": "家具",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
"家具",
],
@@ -18625,7 +24353,51 @@ 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 [
"家具",
],
@@ -18635,52 +24407,107 @@ Array [
Object {
"actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 30,
+ "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 +24515,14 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌...",
- "actualTextHeight": 60,
- "actualTextWidth": 338,
- "height": 76,
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "height": 20,
"multiLineActualTexts": Array [
"桌子桌子桌子桌",
"子桌子桌子桌子",
- "桌子桌子桌子桌",
- "子桌子桌子桌...",
+ "桌子桌子桌子...",
],
"originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
"width": 103.8,
@@ -18705,7 +24531,7 @@ Array [
"actualText": "桌子",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 46,
+ "height": 20,
"multiLineActualTexts": Array [
"桌子",
],
@@ -18716,7 +24542,7 @@ Array [
"actualText": "桌子",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"桌子",
],
@@ -18727,7 +24553,7 @@ Array [
"actualText": "桌子",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"桌子",
],
@@ -18738,7 +24564,7 @@ Array [
"actualText": "沙发",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"沙发",
],
@@ -18749,7 +24575,7 @@ Array [
"actualText": "沙发",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"沙发",
],
@@ -18760,7 +24586,7 @@ Array [
"actualText": "沙发",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 30,
+ "height": 20,
"multiLineActualTexts": Array [
"沙发",
],
@@ -18768,402 +24594,321 @@ 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",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
"height": 20,
"multiLineActualTexts": Array [
- "2",
+ "2367236723611",
+ "11",
],
- "originalText": 2,
- "width": 80,
+ "originalText": 236723672361111,
+ "width": 103.8,
},
Object {
- "actualText": "3",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
+ "actualText": "7789778977897789778977897789",
+ "actualTextHeight": 45,
+ "actualTextWidth": 189,
"height": 20,
"multiLineActualTexts": Array [
- "3",
+ "7789778977897",
+ "7897789778977",
+ "89",
],
- "originalText": 3,
- "width": 80,
+ "originalText": "7789778977897789778977897789",
+ "width": 103.8,
},
Object {
- "actualText": "4",
- "actualTextHeight": 15,
- "actualTextWidth": 7,
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
"height": 20,
"multiLineActualTexts": Array [
- "4",
+ "2367236723611",
+ "11",
],
- "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 +24930,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 46,
"multiLineActualTexts": Array [
"3",
],
@@ -19196,7 +24941,7 @@ Array [
"actualText": "4",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"4",
],
@@ -19207,7 +24952,7 @@ Array [
"actualText": "5",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 100,
"multiLineActualTexts": Array [
"5",
],
@@ -19218,7 +24963,7 @@ Array [
"actualText": "6",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"6",
],
@@ -19229,7 +24974,7 @@ Array [
"actualText": "7",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"7",
],
@@ -19240,239 +24985,190 @@ Array [
"actualText": "8",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"8",
],
"originalText": 8,
"width": 80,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style less than actual text height by rowCell.heightByField 3`] = `
+Array [
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,
+ "actualText": "序号",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 64,
"multiLineActualTexts": Array [
- "15",
+ "序号",
],
- "originalText": 15,
+ "originalText": "序号",
"width": 80,
},
Object {
- "actualText": "16",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 20,
+ "actualText": "省份",
+ "actualTextHeight": 16,
+ "actualTextWidth": 25,
+ "height": 64,
"multiLineActualTexts": Array [
- "16",
+ "省份",
],
- "originalText": 16,
- "width": 80,
+ "originalText": "省份",
+ "width": 103.8,
},
Object {
- "actualText": "17",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 20,
+ "actualText": "城市城市城市城市城市城市城市城市城市城市...",
+ "actualTextHeight": 48,
+ "actualTextWidth": 253,
+ "height": 64,
"multiLineActualTexts": Array [
- "17",
+ "城市城市城市城",
+ "市城市城市城市",
+ "城市城市城市...",
],
- "originalText": 17,
- "width": 80,
+ "originalText": "城市城市城市城市城市城市城市城市城市城市城市城市",
+ "width": 103.8,
},
Object {
- "actualText": "18",
- "actualTextHeight": 15,
- "actualTextWidth": 14,
- "height": 20,
+ "actualText": "类别类别类别类别类别类别类别类别类别类别",
+ "actualTextHeight": 48,
+ "actualTextWidth": 243,
+ "height": 64,
"multiLineActualTexts": Array [
- "18",
+ "类别类别类别类",
+ "别类别类别类别",
+ "类别类别类别",
],
- "originalText": 18,
- "width": 80,
+ "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": 30,
- "actualTextWidth": 168,
- "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 [
"浙江省",
],
@@ -19480,21 +25176,23 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "浙江省",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
"height": 20,
"multiLineActualTexts": Array [
- "浙江省",
+ "浙江省浙江省浙",
+ "江省浙江省浙江",
+ "省浙江省浙江...",
],
- "originalText": "浙江省",
+ "originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
"width": 103.8,
},
Object {
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 46,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -19505,7 +25203,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -19516,7 +25214,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 100,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -19527,7 +25225,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -19538,7 +25236,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -19546,21 +25244,21 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "四川省",
+ "actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
- "四川省",
+ "浙江省",
],
- "originalText": "四川省",
+ "originalText": "浙江省",
"width": 103.8,
},
Object {
"actualText": "绍兴市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 46,
"multiLineActualTexts": Array [
"绍兴市",
],
@@ -19568,13 +25266,14 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "杭州市杭州市杭州市杭州市杭...",
- "actualTextHeight": 30,
- "actualTextWidth": 168,
+ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
"height": 20,
"multiLineActualTexts": Array [
"杭州市杭州市杭",
- "州市杭州市杭...",
+ "州市杭州市杭州",
+ "市杭州市杭州...",
],
"originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
"width": 103.8,
@@ -19583,51 +25282,7 @@ Array [
"actualText": "绍兴市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
- "multiLineActualTexts": Array [
- "绍兴市",
- ],
- "originalText": "绍兴市",
- "width": 103.8,
- },
- Object {
- "actualText": "宁波市",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
- "multiLineActualTexts": Array [
- "宁波市",
- ],
- "originalText": "宁波市",
- "width": 103.8,
- },
- Object {
- "actualText": "舟山市",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
- "multiLineActualTexts": Array [
- "舟山市",
- ],
- "originalText": "舟山市",
- "width": 103.8,
- },
- Object {
- "actualText": "杭州市",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
- "multiLineActualTexts": Array [
- "杭州市",
- ],
- "originalText": "杭州市",
- "width": 103.8,
- },
- Object {
- "actualText": "绍兴市",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "height": 46,
"multiLineActualTexts": Array [
"绍兴市",
],
@@ -19638,7 +25293,7 @@ Array [
"actualText": "宁波市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"宁波市",
],
@@ -19649,7 +25304,7 @@ Array [
"actualText": "舟山市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 100,
"multiLineActualTexts": Array [
"舟山市",
],
@@ -19660,7 +25315,7 @@ Array [
"actualText": "杭州市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"杭州市",
],
@@ -19671,7 +25326,7 @@ Array [
"actualText": "绍兴市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"绍兴市",
],
@@ -19682,7 +25337,7 @@ Array [
"actualText": "宁波市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"宁波市",
],
@@ -19690,99 +25345,78 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "舟山市",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
- "multiLineActualTexts": Array [
- "舟山市",
- ],
- "originalText": "舟山市",
- "width": 103.8,
- },
- Object {
- "actualText": "杭州市",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 46,
"multiLineActualTexts": Array [
- "杭州市",
+ "家具",
],
- "originalText": "杭州市",
+ "originalText": "家具",
"width": 103.8,
},
Object {
- "actualText": "绍兴市",
- "actualTextHeight": 15,
- "actualTextWidth": 37,
+ "actualText": "家具家具家具家具家具家具家具家具家具家具...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
"height": 20,
"multiLineActualTexts": Array [
- "绍兴市",
+ "家具家具家具家",
+ "具家具家具家具",
+ "家具家具家具...",
],
- "originalText": "绍兴市",
+ "originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
"width": 103.8,
},
Object {
- "actualText": "宁波市",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 46,
"multiLineActualTexts": Array [
- "宁波市",
+ "家具",
],
- "originalText": "宁波市",
+ "originalText": "家具",
"width": 103.8,
},
Object {
- "actualText": "舟山市",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "舟山市",
+ "家具",
],
- "originalText": "舟山市",
+ "originalText": "家具",
"width": 103.8,
},
Object {
- "actualText": "成都市",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 37,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 100,
"multiLineActualTexts": Array [
- "成都市",
+ "家具",
],
- "originalText": "成都市",
+ "originalText": "家具",
"width": 103.8,
},
Object {
"actualText": "家具",
"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 [
"家具",
],
@@ -19793,7 +25427,7 @@ Array [
"actualText": "家具",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"家具",
],
@@ -19801,569 +25435,622 @@ Array [
"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,
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
"height": 20,
"multiLineActualTexts": Array [
- "家具",
+ "桌子桌子桌子桌",
+ "子桌子桌子桌子",
+ "桌子桌子桌子...",
],
- "originalText": "家具",
+ "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
"width": 103.8,
},
Object {
- "actualText": "家具",
+ "actualText": "桌子",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 20,
+ "height": 46,
"multiLineActualTexts": Array [
- "家具",
+ "桌子",
],
- "originalText": "家具",
+ "originalText": "桌子",
"width": 103.8,
},
Object {
- "actualText": "家具",
+ "actualText": "桌子",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
- "家具",
+ "桌子",
],
- "originalText": "家具",
+ "originalText": "桌子",
"width": 103.8,
},
Object {
- "actualText": "家具",
+ "actualText": "桌子",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 20,
+ "height": 100,
"multiLineActualTexts": Array [
- "家具",
+ "桌子",
],
- "originalText": "家具",
+ "originalText": "桌子",
"width": 103.8,
},
Object {
- "actualText": "办公用品",
+ "actualText": "沙发",
"actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "办公用品",
+ "沙发",
],
- "originalText": "办公用品",
+ "originalText": "沙发",
"width": 103.8,
},
Object {
- "actualText": "办公用品",
+ "actualText": "沙发",
"actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "办公用品",
+ "沙发",
],
- "originalText": "办公用品",
+ "originalText": "沙发",
"width": 103.8,
},
Object {
- "actualText": "办公用品",
+ "actualText": "沙发",
"actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 30,
"multiLineActualTexts": Array [
- "办公用品",
+ "沙发",
],
- "originalText": "办公用品",
+ "originalText": "沙发",
"width": 103.8,
},
Object {
- "actualText": "办公用品",
- "actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 20,
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 46,
"multiLineActualTexts": Array [
- "办公用品",
+ "2367236723611",
+ "11",
],
- "originalText": "办公用品",
+ "originalText": 236723672361111,
"width": 103.8,
},
Object {
- "actualText": "办公用品",
- "actualTextHeight": 15,
- "actualTextWidth": 49,
+ "actualText": "7789778977897789778977897789",
+ "actualTextHeight": 45,
+ "actualTextWidth": 189,
"height": 20,
"multiLineActualTexts": Array [
- "办公用品",
+ "7789778977897",
+ "7897789778977",
+ "89",
],
- "originalText": "办公用品",
+ "originalText": "7789778977897789778977897789",
"width": 103.8,
},
Object {
- "actualText": "办公用品",
- "actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 20,
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 46,
"multiLineActualTexts": Array [
- "办公用品",
+ "2367236723611",
+ "11",
],
- "originalText": "办公用品",
+ "originalText": 236723672361111,
"width": 103.8,
},
Object {
- "actualText": "办公用品",
+ "actualText": "3877",
"actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 20,
+ "actualTextWidth": 27,
+ "height": 30,
"multiLineActualTexts": Array [
- "办公用品",
+ "3877",
],
- "originalText": "办公用品",
+ "originalText": 3877,
"width": 103.8,
},
Object {
- "actualText": "办公用品",
+ "actualText": "4342",
"actualTextHeight": 15,
- "actualTextWidth": 49,
- "height": 20,
+ "actualTextWidth": 27,
+ "height": 100,
"multiLineActualTexts": Array [
- "办公用品",
+ "4342",
],
- "originalText": "办公用品",
+ "originalText": 4342,
"width": 103.8,
},
Object {
- "actualText": "家具",
+ "actualText": "5343",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 20,
+ "actualTextWidth": 27,
+ "height": 30,
"multiLineActualTexts": Array [
- "家具",
+ "5343",
],
- "originalText": "家具",
+ "originalText": 5343,
"width": 103.8,
},
Object {
- "actualText": "桌子",
+ "actualText": "632",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 20,
+ "actualTextWidth": 21,
+ "height": 30,
"multiLineActualTexts": Array [
- "桌子",
+ "632",
],
- "originalText": "桌子",
+ "originalText": 632,
"width": 103.8,
},
Object {
- "actualText": "桌子桌子桌子桌子桌子桌子桌...",
- "actualTextHeight": 30,
- "actualTextWidth": 168,
- "height": 20,
+ "actualText": "7234",
+ "actualTextHeight": 15,
+ "actualTextWidth": 27,
+ "height": 30,
"multiLineActualTexts": Array [
- "桌子桌子桌子桌",
- "子桌子桌子桌...",
+ "7234",
],
- "originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
+ "originalText": 7234,
"width": 103.8,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 1`] = `
+Array [
Object {
- "actualText": "桌子",
- "actualTextHeight": 15,
+ "actualText": "序号",
+ "actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 20,
+ "height": 64,
"multiLineActualTexts": Array [
- "桌子",
+ "序号",
],
- "originalText": "桌子",
- "width": 103.8,
+ "originalText": "序号",
+ "width": 80,
},
+]
+`;
+
+exports[`SpreadSheet Multi Line Text Tests TableSheet should not force adaptive adjust row height if custom cell style more than actual text height by rowCell.height 2`] = `
+Array [
Object {
- "actualText": "桌子",
+ "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": 13,
- "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": 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,
},
Object {
- "actualText": "桌子",
+ "actualText": "浙江省",
"actualTextHeight": 15,
- "actualTextWidth": 25,
- "height": 20,
+ "actualTextWidth": 37,
+ "height": 100,
"multiLineActualTexts": Array [
- "桌子",
+ "浙江省",
],
- "originalText": "桌子",
+ "originalText": "浙江省",
"width": 103.8,
},
Object {
- "actualText": "236723672361111",
- "actualTextHeight": 30,
- "actualTextWidth": 100,
- "height": 20,
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "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",
+ "actualText": "绍兴市",
"actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 20,
+ "actualTextWidth": 37,
+ "height": 100,
"multiLineActualTexts": Array [
- "3877",
+ "绍兴市",
],
- "originalText": 3877,
+ "originalText": "绍兴市",
"width": 103.8,
},
Object {
- "actualText": "4342",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 20,
+ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "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": 37,
+ "height": 100,
"multiLineActualTexts": Array [
- "632",
+ "宁波市",
],
- "originalText": 632,
+ "originalText": "宁波市",
"width": 103.8,
},
Object {
- "actualText": "7234",
+ "actualText": "家具",
"actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 100,
"multiLineActualTexts": Array [
- "7234",
+ "家具",
],
- "originalText": 7234,
+ "originalText": "家具",
"width": 103.8,
},
Object {
- "actualText": "834",
- "actualTextHeight": 15,
- "actualTextWidth": 21,
- "height": 20,
+ "actualText": "家具家具家具家具家具家具家具家具家具家具...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "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",
+ "actualText": "桌子",
"actualTextHeight": 15,
- "actualTextWidth": 26,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 100,
"multiLineActualTexts": Array [
- "1145",
+ "桌子",
],
- "originalText": 1145,
+ "originalText": "桌子",
"width": 103.8,
},
Object {
- "actualText": "1432",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 20,
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
+ "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",
+ "actualText": "桌子",
"actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 20,
+ "actualTextWidth": 25,
+ "height": 100,
"multiLineActualTexts": Array [
- "1354",
+ "桌子",
],
- "originalText": 1354,
+ "originalText": "桌子",
"width": 103.8,
},
Object {
- "actualText": "1523",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 20,
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 100,
"multiLineActualTexts": Array [
- "1523",
+ "2367236723611",
+ "11",
],
- "originalText": 1523,
+ "originalText": 236723672361111,
"width": 103.8,
},
Object {
- "actualText": "1634",
- "actualTextHeight": 15,
- "actualTextWidth": 27,
- "height": 20,
+ "actualText": "7789778977897789778977897789",
+ "actualTextHeight": 45,
+ "actualTextWidth": 189,
+ "height": 100,
"multiLineActualTexts": Array [
- "1634",
+ "7789778977897",
+ "7897789778977",
+ "89",
],
- "originalText": 1634,
+ "originalText": "7789778977897789778977897789",
"width": 103.8,
},
Object {
- "actualText": "1723",
+ "actualText": "236723672361111",
+ "actualTextHeight": 30,
+ "actualTextWidth": 100,
+ "height": 100,
+ "multiLineActualTexts": Array [
+ "2367236723611",
+ "11",
+ ],
+ "originalText": 236723672361111,
+ "width": 103.8,
+ },
+ Object {
+ "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 +26060,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 +26088,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 100,
+ "height": 46,
"multiLineActualTexts": Array [
"3",
],
@@ -20412,23 +26099,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 +26148,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 64,
"multiLineActualTexts": Array [
"省份",
],
@@ -20447,25 +26156,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 +26185,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 40,
+ "height": 64,
"multiLineActualTexts": Array [
"子类别",
],
@@ -20482,13 +26193,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 +26208,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 +26238,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 100,
+ "height": 46,
"multiLineActualTexts": Array [
"3",
],
@@ -20537,13 +26249,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 +26290,14 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "浙江省浙江省浙江省浙江省浙...",
- "actualTextHeight": 30,
- "actualTextWidth": 168,
+ "actualText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
"height": 100,
"multiLineActualTexts": Array [
"浙江省浙江省浙",
- "江省浙江省浙...",
+ "江省浙江省浙江",
+ "省浙江省浙江...",
],
"originalText": "浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省浙江省",
"width": 103.8,
@@ -20571,7 +26306,7 @@ Array [
"actualText": "浙江省",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 100,
+ "height": 46,
"multiLineActualTexts": Array [
"浙江省",
],
@@ -20582,7 +26317,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 +26358,14 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "杭州市杭州市杭州市杭州市杭...",
- "actualTextHeight": 30,
- "actualTextWidth": 168,
+ "actualText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
"height": 100,
"multiLineActualTexts": Array [
"杭州市杭州市杭",
- "州市杭州市杭...",
+ "州市杭州市杭州",
+ "市杭州市杭州...",
],
"originalText": "杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市杭州市",
"width": 103.8,
@@ -20616,7 +26374,7 @@ Array [
"actualText": "绍兴市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 100,
+ "height": 46,
"multiLineActualTexts": Array [
"绍兴市",
],
@@ -20627,13 +26385,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 +26426,14 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "家具家具家具家具家具家具家...",
- "actualTextHeight": 30,
- "actualTextWidth": 168,
+ "actualText": "家具家具家具家具家具家具家具家具家具家具...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
"height": 100,
"multiLineActualTexts": Array [
"家具家具家具家",
- "具家具家具家...",
+ "具家具家具家具",
+ "家具家具家具...",
],
"originalText": "家具家具家具家具家具家具家具家具家具家具家具家具家具家具",
"width": 103.8,
@@ -20661,7 +26442,7 @@ Array [
"actualText": "家具",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 100,
+ "height": 46,
"multiLineActualTexts": Array [
"家具",
],
@@ -20672,7 +26453,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 +26494,14 @@ Array [
"width": 103.8,
},
Object {
- "actualText": "桌子桌子桌子桌子桌子桌子桌...",
- "actualTextHeight": 30,
- "actualTextWidth": 168,
+ "actualText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子...",
+ "actualTextHeight": 45,
+ "actualTextWidth": 253,
"height": 100,
"multiLineActualTexts": Array [
"桌子桌子桌子桌",
- "子桌子桌子桌...",
+ "子桌子桌子桌子",
+ "桌子桌子桌子...",
],
"originalText": "桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子桌子",
"width": 103.8,
@@ -20706,7 +26510,7 @@ Array [
"actualText": "桌子",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 100,
+ "height": 46,
"multiLineActualTexts": Array [
"桌子",
],
@@ -20717,13 +26521,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 +26563,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 +26579,7 @@ Array [
"actualText": "236723672361111",
"actualTextHeight": 30,
"actualTextWidth": 100,
- "height": 100,
+ "height": 46,
"multiLineActualTexts": Array [
"2367236723611",
"11",
@@ -20764,23 +26591,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 +26639,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 +26656,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 46,
+ "height": 30,
"multiLineActualTexts": Array [
"2",
],
@@ -20818,7 +26667,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 46,
+ "height": 30,
"multiLineActualTexts": Array [
"3",
],
@@ -20913,16 +26762,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 +26804,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"省份",
],
@@ -20941,25 +26812,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 +26837,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"子类别",
],
@@ -20976,13 +26845,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 +26858,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 +26877,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 46,
+ "height": 30,
"multiLineActualTexts": Array [
"2",
],
@@ -21020,7 +26888,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 46,
+ "height": 30,
"multiLineActualTexts": Array [
"3",
],
@@ -21115,11 +26983,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 +27017,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 +27031,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 +27152,7 @@ Array [
"actualText": "绍兴市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 46,
+ "height": 30,
"multiLineActualTexts": Array [
"绍兴市",
],
@@ -21249,13 +27160,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 +27174,7 @@ Array [
"actualText": "绍兴市",
"actualTextHeight": 15,
"actualTextWidth": 37,
- "height": 46,
+ "height": 30,
"multiLineActualTexts": Array [
"绍兴市",
],
@@ -21359,11 +27269,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 +27303,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 +27317,7 @@ Array [
"actualText": "家具",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 46,
+ "height": 30,
"multiLineActualTexts": Array [
"家具",
],
@@ -21481,11 +27412,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 +27446,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 +27460,7 @@ Array [
"actualText": "桌子",
"actualTextHeight": 15,
"actualTextWidth": 25,
- "height": 46,
+ "height": 30,
"multiLineActualTexts": Array [
"桌子",
],
@@ -21603,38 +27555,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 +27698,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 +27739,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 +27756,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 91,
"multiLineActualTexts": Array [
"2",
],
@@ -21774,7 +27767,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 46,
"multiLineActualTexts": Array [
"3",
],
@@ -21785,7 +27778,7 @@ Array [
"actualText": "4",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"4",
],
@@ -21796,7 +27789,7 @@ Array [
"actualText": "5",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"5",
],
@@ -21804,147 +27797,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 +27849,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 80,
"multiLineActualTexts": Array [
"省份",
],
@@ -21963,14 +27857,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 +27874,7 @@ Array [
"actualText": "类别类别类别类别类别类别类别类别类别类别",
"actualTextHeight": 48,
"actualTextWidth": 243,
- "height": 56,
+ "height": 80,
"multiLineActualTexts": Array [
"类别类别类别类",
"别类别类别类别",
@@ -21992,7 +27887,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 56,
+ "height": 80,
"multiLineActualTexts": Array [
"子类别",
],
@@ -22000,14 +27895,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 +27911,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 +27930,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 91,
"multiLineActualTexts": Array [
"2",
],
@@ -22045,7 +27941,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 46,
"multiLineActualTexts": Array [
"3",
],
@@ -22056,7 +27952,7 @@ Array [
"actualText": "4",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"4",
],
@@ -22067,7 +27963,7 @@ Array [
"actualText": "5",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"5",
],
@@ -22078,7 +27974,7 @@ Array [
"actualText": "6",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"6",
],
@@ -22089,7 +27985,7 @@ Array [
"actualText": "7",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"7",
],
@@ -22100,7 +27996,7 @@ Array [
"actualText": "8",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"8",
],
@@ -22108,1061 +28004,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 +29154,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 +29171,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 20,
+ "height": 30,
"multiLineActualTexts": Array [
"2",
],
@@ -23200,7 +29182,7 @@ Array [
"actualText": "3",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 46,
+ "height": 30,
"multiLineActualTexts": Array [
"3",
],
@@ -23222,7 +29204,7 @@ Array [
"actualText": "5",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 100,
+ "height": 30,
"multiLineActualTexts": Array [
"5",
],
@@ -23273,1710 +29255,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 +30720,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 +30737,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 61,
"multiLineActualTexts": Array [
"2",
],
@@ -25131,16 +30865,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 +30929,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 +31007,7 @@ Array [
"actualText": "2",
"actualTextHeight": 15,
"actualTextWidth": 7,
- "height": 30,
+ "height": 61,
"multiLineActualTexts": Array [
"2",
],
@@ -25352,6 +31135,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 +31188,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 +31288,7 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "浙江省",
@@ -25394,7 +31299,7 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "浙江省",
@@ -25405,7 +31310,7 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "浙江省",
@@ -25416,7 +31321,7 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "浙江省",
@@ -25427,7 +31332,7 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "浙江省",
@@ -25438,7 +31343,7 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "浙江省",
@@ -25449,7 +31354,7 @@ Array [
"浙江省",
],
"originalText": "浙江省",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "浙江省",
@@ -25460,62 +31365,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 +31443,7 @@ Array [
"绍兴市",
],
"originalText": "绍兴市",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "宁波市",
@@ -25537,7 +31454,7 @@ Array [
"宁波市",
],
"originalText": "宁波市",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "舟山市",
@@ -25548,7 +31465,7 @@ Array [
"舟山市",
],
"originalText": "舟山市",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "杭州市",
@@ -25559,7 +31476,7 @@ Array [
"杭州市",
],
"originalText": "杭州市",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "绍兴市",
@@ -25570,7 +31487,7 @@ Array [
"绍兴市",
],
"originalText": "绍兴市",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "宁波市",
@@ -25581,7 +31498,7 @@ Array [
"宁波市",
],
"originalText": "宁波市",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "舟山市",
@@ -25592,7 +31509,7 @@ Array [
"舟山市",
],
"originalText": "舟山市",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "杭州市",
@@ -25603,7 +31520,7 @@ Array [
"杭州市",
],
"originalText": "杭州市",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "绍兴市",
@@ -25614,7 +31531,7 @@ Array [
"绍兴市",
],
"originalText": "绍兴市",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "宁波市",
@@ -25625,7 +31542,7 @@ Array [
"宁波市",
],
"originalText": "宁波市",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "舟山市",
@@ -25636,7 +31553,7 @@ Array [
"舟山市",
],
"originalText": "舟山市",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "家具",
@@ -25647,18 +31564,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 +31587,7 @@ Array [
"家具",
],
"originalText": "家具",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "家具",
@@ -25680,7 +31598,7 @@ Array [
"家具",
],
"originalText": "家具",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "家具",
@@ -25691,7 +31609,7 @@ Array [
"家具",
],
"originalText": "家具",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "家具",
@@ -25702,7 +31620,7 @@ Array [
"家具",
],
"originalText": "家具",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "家具",
@@ -25713,7 +31631,7 @@ Array [
"家具",
],
"originalText": "家具",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "家具",
@@ -25724,7 +31642,7 @@ Array [
"家具",
],
"originalText": "家具",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "家具",
@@ -25735,7 +31653,7 @@ Array [
"家具",
],
"originalText": "家具",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "办公用品",
@@ -25746,7 +31664,7 @@ Array [
"办公用品",
],
"originalText": "办公用品",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "办公用品",
@@ -25757,7 +31675,7 @@ Array [
"办公用品",
],
"originalText": "办公用品",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "办公用品",
@@ -25768,7 +31686,7 @@ Array [
"办公用品",
],
"originalText": "办公用品",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "办公用品",
@@ -25779,7 +31697,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 +31752,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 +31775,7 @@ Array [
"桌子",
],
"originalText": "桌子",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "桌子",
@@ -25823,7 +31786,7 @@ Array [
"桌子",
],
"originalText": "桌子",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "桌子",
@@ -25834,7 +31797,7 @@ Array [
"桌子",
],
"originalText": "桌子",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "沙发",
@@ -25845,7 +31808,7 @@ Array [
"沙发",
],
"originalText": "沙发",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "沙发",
@@ -25856,7 +31819,7 @@ Array [
"沙发",
],
"originalText": "沙发",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "沙发",
@@ -25867,7 +31830,7 @@ Array [
"沙发",
],
"originalText": "沙发",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "沙发",
@@ -25878,7 +31841,7 @@ Array [
"沙发",
],
"originalText": "沙发",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "笔",
@@ -25889,7 +31852,7 @@ Array [
"笔",
],
"originalText": "笔",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "笔",
@@ -25900,7 +31863,7 @@ Array [
"笔",
],
"originalText": "笔",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "笔",
@@ -25911,7 +31874,7 @@ Array [
"笔",
],
"originalText": "笔",
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "笔",
@@ -25922,7 +31885,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 +31940,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 +31963,7 @@ Array [
"236723672361111",
],
"originalText": 236723672361111,
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "3877",
@@ -25966,7 +31974,7 @@ Array [
"3877",
],
"originalText": 3877,
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "4342",
@@ -25977,7 +31985,7 @@ Array [
"4342",
],
"originalText": 4342,
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "5343",
@@ -25988,7 +31996,7 @@ Array [
"5343",
],
"originalText": 5343,
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "632",
@@ -25999,7 +32007,7 @@ Array [
"632",
],
"originalText": 632,
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "7234",
@@ -26010,7 +32018,7 @@ Array [
"7234",
],
"originalText": 7234,
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "834",
@@ -26021,7 +32029,7 @@ Array [
"834",
],
"originalText": 834,
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "945",
@@ -26032,7 +32040,7 @@ Array [
"945",
],
"originalText": 945,
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "1304",
@@ -26043,7 +32051,7 @@ Array [
"1304",
],
"originalText": 1304,
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "1145",
@@ -26054,7 +32062,7 @@ Array [
"1145",
],
"originalText": 1145,
- "width": 103.8,
+ "width": 143.8,
},
Object {
"actualText": "1432",
@@ -26065,7 +32073,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 +33228,7 @@ Array [
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 64,
"multiLineActualTexts": Array [
"序号",
],
@@ -27287,209 +33339,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 +33623,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 +33724,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 +33825,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 +33926,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 +34029,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 +34038,7 @@ Array [
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"序号",
],
@@ -28185,17 +34160,6 @@ Array [
"originalText": 10,
"width": 80,
},
- Object {
- "actualText": "11",
- "actualTextHeight": 15,
- "actualTextWidth": 13,
- "height": 30,
- "multiLineActualTexts": Array [
- "11",
- ],
- "originalText": 11,
- "width": 80,
- },
]
`;
@@ -28205,7 +34169,7 @@ Array [
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"序号",
],
@@ -28216,7 +34180,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"省份",
],
@@ -28227,7 +34191,7 @@ Array [
"actualText": "城市城市城市城市城市城市城...",
"actualTextHeight": 32,
"actualTextWidth": 168,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"城市城市城市城",
"市城市城市城...",
@@ -28239,7 +34203,7 @@ Array [
"actualText": "类别类别类别类别类别类别类...",
"actualTextHeight": 32,
"actualTextWidth": 168,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"类别类别类别类",
"别类别类别类...",
@@ -28251,7 +34215,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"子类别",
],
@@ -28262,7 +34226,7 @@ Array [
"actualText": "数量数量数量数量数量数量数...",
"actualTextHeight": 32,
"actualTextWidth": 168,
- "height": 40,
+ "height": 48,
"multiLineActualTexts": Array [
"数量数量数量数",
"量数量数量数...",
@@ -28387,17 +34351,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 +34462,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 +34573,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 +34684,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 +34795,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 +34908,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 +34917,7 @@ Array [
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 64,
"multiLineActualTexts": Array [
"序号",
],
@@ -29227,7 +35125,7 @@ Array [
"actualText": "序号",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 64,
"multiLineActualTexts": Array [
"序号",
],
@@ -29238,7 +35136,7 @@ Array [
"actualText": "省份",
"actualTextHeight": 16,
"actualTextWidth": 25,
- "height": 56,
+ "height": 64,
"multiLineActualTexts": Array [
"省份",
],
@@ -29249,7 +35147,7 @@ Array [
"actualText": "城市城市城市城市城市城市城市城市城市城市城市城市",
"actualTextHeight": 48,
"actualTextWidth": 291,
- "height": 56,
+ "height": 64,
"multiLineActualTexts": Array [
"城市城市城市城市城市",
"城市城市城市城市城市",
@@ -29262,7 +35160,7 @@ Array [
"actualText": "类别类别类别类别类别类别类别类别类别类别",
"actualTextHeight": 32,
"actualTextWidth": 242,
- "height": 56,
+ "height": 64,
"multiLineActualTexts": Array [
"类别类别类别类别类别",
"类别类别类别类别类别",
@@ -29274,7 +35172,7 @@ Array [
"actualText": "子类别",
"actualTextHeight": 16,
"actualTextWidth": 37,
- "height": 56,
+ "height": 64,
"multiLineActualTexts": Array [
"子类别",
],
@@ -29285,7 +35183,7 @@ Array [
"actualText": "数量数量数量数量数量数量数量数量数量数量数量",
"actualTextHeight": 48,
"actualTextWidth": 267,
- "height": 56,
+ "height": 64,
"multiLineActualTexts": Array [
"数量数量数量数量数量",
"数量数量数量数量数量",
@@ -30434,3 +36332,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-collapse-spec.ts.snap b/packages/s2-core/__tests__/spreadsheet/__snapshots__/spread-sheet-collapse-spec.ts.snap
index f9c60166c0..697679fd89 100644
--- a/packages/s2-core/__tests__/spreadsheet/__snapshots__/spread-sheet-collapse-spec.ts.snap
+++ b/packages/s2-core/__tests__/spreadsheet/__snapshots__/spread-sheet-collapse-spec.ts.snap
@@ -27,3 +27,18 @@ Array [
"root[&]四川省",
]
`;
+
+exports[`SpreadSheet Collapse/Expand Tests should support expandDepth for custom tree 1`] = `
+Array [
+ "root[&]a-1",
+ "root[&]a-1[&]a-1-1",
+ "root[&]a-1[&]a-1-2",
+ "root[&]a-2",
+ "root[&]a-2[&]a-2-1",
+ "root[&]a-2[&]a-2-2",
+ "root[&]a-3",
+ "root[&]a-3[&]a-3-1",
+ "root[&]a-3[&]a-3-2",
+ "root[&]a-3[&]measure-5",
+]
+`;
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 281de69170..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,
@@ -632,10 +641,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#0647b1",
"verticalBorderColorOpacity": 1,
@@ -718,10 +727,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#0647b1",
"verticalBorderColorOpacity": 1,
@@ -735,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",
@@ -1081,10 +1099,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#1e2436",
"verticalBorderColorOpacity": 1,
@@ -1211,10 +1229,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#CCDBFC",
"verticalBorderColorOpacity": 1,
@@ -1297,10 +1315,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#CCDBFC",
"verticalBorderColorOpacity": 1,
@@ -1314,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",
@@ -1660,10 +1687,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#E0E9FD",
"verticalBorderColorOpacity": 1,
@@ -1790,10 +1817,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#E7E9ED",
"verticalBorderColorOpacity": 1,
@@ -1876,10 +1903,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#E7E9ED",
"verticalBorderColorOpacity": 1,
@@ -1893,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",
@@ -2239,10 +2275,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#F0F2F4",
"verticalBorderColorOpacity": 1,
@@ -2369,10 +2405,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#CCDBFC",
"verticalBorderColorOpacity": 1,
@@ -2455,10 +2491,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#CCDBFC",
"verticalBorderColorOpacity": 1,
@@ -2472,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",
@@ -2818,10 +2863,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#E0E9FD",
"verticalBorderColorOpacity": 1,
@@ -2948,10 +2993,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#CCDBFC",
"verticalBorderColorOpacity": 1,
@@ -3034,10 +3079,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#CCDBFC",
"verticalBorderColorOpacity": 1,
@@ -3051,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",
@@ -3397,10 +3451,10 @@ Object {
},
},
"padding": Object {
- "bottom": 4,
+ "bottom": 8,
"left": 8,
"right": 8,
- "top": 4,
+ "top": 8,
},
"verticalBorderColor": "#E0E9FD",
"verticalBorderColorOpacity": 1,
diff --git a/packages/s2-core/__tests__/bugs/issue-2385-spec.ts b/packages/s2-core/__tests__/spreadsheet/compare-layout-spec.ts
similarity index 64%
rename from packages/s2-core/__tests__/bugs/issue-2385-spec.ts
rename to packages/s2-core/__tests__/spreadsheet/compare-layout-spec.ts
index bdf59d2f33..7980c50b89 100644
--- a/packages/s2-core/__tests__/bugs/issue-2385-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,16 +122,18 @@ 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.skip.each([
+ test.each([
{ showDefaultHeaderActionIcon: true },
{ showDefaultHeaderActionIcon: false },
])(
@@ -137,12 +171,13 @@ describe('Compare Layout Tests', () => {
expect(dataCellWidthList).toEqual(
options.showDefaultHeaderActionIcon
- ? [197, 197, 197, 197, 116, 116, 116, 116, 81, 81, 81, 81]
- : [197, 197, 197, 197, 116, 116, 116, 116, 62, 62, 62, 62],
+ ? [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 ? [197, 116, 81] : [197, 116, 62],
+ 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..0ce3904ee2 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,10 @@ 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(),
+ });
// 取消选中
s2.emit(S2Event.CORNER_CELL_CLICK, {} as unknown as GEvent);
@@ -277,7 +283,10 @@ 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(),
+ });
getCellSpy.mockClear();
},
@@ -391,4 +400,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 60c2ce7bca..fbea95055f 100644
--- a/packages/s2-core/__tests__/spreadsheet/custom-cell-style-spec.ts
+++ b/packages/s2-core/__tests__/spreadsheet/custom-cell-style-spec.ts
@@ -156,6 +156,30 @@ describe('SpreadSheet Custom Cell Style Tests', () => {
expect(mapNodeSize(s2.facet.getRowNodes())).toMatchSnapshot();
});
+ test('should get custom row cell style by extra field', async () => {
+ s2.setDataCfg({
+ fields: {
+ valueInCols: false,
+ },
+ });
+
+ s2.setOptions({
+ style: {
+ rowCell: {
+ widthByField: {
+ [EXTRA_FIELD]: 50,
+ },
+ heightByField: {
+ [EXTRA_FIELD]: 300,
+ },
+ },
+ },
+ });
+ await s2.render();
+
+ expect(mapNodeSize(s2.facet.getRowNodes())).toMatchSnapshot();
+ });
+
test('should not get custom row cell style if not leaf node by field', async () => {
const width = 100;
const height = 200;
@@ -306,7 +330,27 @@ describe('SpreadSheet Custom Cell Style Tests', () => {
});
await s2.render();
- expect(mapNodeSize(s2.facet.getRowNodes())).toMatchSnapshot();
+ expect(mapNodeSize(s2.facet.getColNodes())).toMatchSnapshot();
+ });
+
+ test('should get custom col cell style by value field', async () => {
+ const priceValueField = `price`;
+
+ s2.setOptions({
+ style: {
+ colCell: {
+ widthByField: {
+ [priceValueField]: 50,
+ },
+ heightByField: {
+ [priceValueField]: 300,
+ },
+ },
+ },
+ });
+ await s2.render();
+
+ expect(mapNodeSize(s2.facet.getColNodes())).toMatchSnapshot();
});
test('should not get custom col cell style if not leaf node by field', async () => {
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..f2a256984d 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';
@@ -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();
});
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..7e6b1aa366 100644
--- a/packages/s2-core/__tests__/spreadsheet/multi-line-text-spec.ts
+++ b/packages/s2-core/__tests__/spreadsheet/multi-line-text-spec.ts
@@ -13,6 +13,7 @@ import type {
S2CellType,
S2Options,
} from '../../src/common';
+import { customColSimpleMultipleTextColumns } from '../data/custom-table-col-fields';
import {
PivotSheetMultiLineTextDataCfg,
TableSheetMultiLineTextDataCfg,
@@ -160,7 +161,7 @@ describe('SpreadSheet Multi Line Text Tests', () => {
await s2.render(false);
matchCellStyleSnapshot();
- expectColHierarchyHeight(118, 80, 38);
+ expectColHierarchyHeight(142, 96, 46);
});
test('should render three max text lines', async () => {
@@ -168,7 +169,7 @@ describe('SpreadSheet Multi Line Text Tests', () => {
await s2.render(false);
matchCellStyleSnapshot();
- expectColHierarchyHeight(165, 112, 53);
+ expectColHierarchyHeight(189, 128, 61);
});
test('should render custom text overflow text', async () => {
@@ -213,6 +214,7 @@ describe('SpreadSheet Multi Line Text Tests', () => {
// wordWrap 关闭时, 不会渲染省略号
cells.forEach((cell) => {
expect(cell.getActualText()).not.toContain('...');
+ expect(cell.isTextOverflowing()).toBeFalsy();
});
});
expectColHierarchyHeight(90);
@@ -335,7 +337,7 @@ describe('SpreadSheet Multi Line Text Tests', () => {
await s2.render(false);
matchCellStyleSnapshot();
- expectColHierarchyHeight(118, 80, 38);
+ expectColHierarchyHeight(142, 96, 46);
});
test('should not adaptive adjust cell height if custom cell style more than actual text height', async () => {
@@ -386,7 +388,7 @@ describe('SpreadSheet Multi Line Text Tests', () => {
updateStyle(3);
await s2.render(false);
- expectColHierarchyHeight(149, 96, 53);
+ expectColHierarchyHeight(173, 112, 61);
});
test('should render correctly layout if only enable grand totals', async () => {
@@ -442,8 +444,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(236, 160, 76);
});
test('should render three max text lines for tree mode', async () => {
@@ -473,7 +475,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 +530,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))(
@@ -545,6 +547,61 @@ 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();
+ });
});
describe('TableSheet', () => {
@@ -579,7 +636,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 +645,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,6 +685,7 @@ describe('SpreadSheet Multi Line Text Tests', () => {
// wordWrap 关闭时, 不会渲染省略号
cells.forEach((cell) => {
expect(cell.getActualText()).not.toContain('...');
+ expect(cell.isTextOverflowing()).toBeFalsy();
});
});
});
@@ -687,7 +745,7 @@ 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
@@ -971,7 +1029,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 +1076,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