@visactor/vtable 0.11.1-alpha.0 → 0.11.1-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/ListTable.js +6 -3
- package/cjs/ListTable.js.map +1 -1
- package/cjs/PivotChart.d.ts +4 -0
- package/cjs/PivotChart.js +44 -14
- package/cjs/PivotChart.js.map +1 -1
- package/cjs/PivotTable.js +6 -3
- package/cjs/PivotTable.js.map +1 -1
- package/cjs/body-helper/style/Style.d.ts +1 -2
- package/cjs/body-helper/style/Style.js.map +1 -1
- package/cjs/components/axis/get-axis-attributes.d.ts +151 -0
- package/cjs/components/axis/get-axis-component-size.js +12 -12
- package/cjs/components/axis/get-axis-component-size.js.map +1 -1
- package/cjs/components/axis/linear-scale.js +1 -1
- package/cjs/components/axis/linear-scale.js.map +1 -1
- package/cjs/components/title/title.js +9 -15
- package/cjs/components/title/title.js.map +1 -1
- package/cjs/components/util/tick-data/continuous.js +1 -1
- package/cjs/components/util/tick-data/continuous.js.map +1 -1
- package/cjs/core/BaseTable.d.ts +3 -2
- package/cjs/core/BaseTable.js +12 -13
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/core/TABLE_EVENT_TYPE.d.ts +1 -0
- package/cjs/core/TABLE_EVENT_TYPE.js +2 -1
- package/cjs/core/TABLE_EVENT_TYPE.js.map +1 -1
- package/cjs/dataset/dataset.d.ts +3 -2
- package/cjs/dataset/dataset.js +8 -3
- package/cjs/dataset/dataset.js.map +1 -1
- package/cjs/dataset/statistics-helper.d.ts +6 -1
- package/cjs/dataset/statistics-helper.js +19 -5
- package/cjs/dataset/statistics-helper.js.map +1 -1
- package/cjs/event/EventTarget.d.ts +1 -0
- package/cjs/event/EventTarget.js +10 -2
- package/cjs/event/EventTarget.js.map +1 -1
- package/cjs/header-helper/style/Style.d.ts +1 -2
- package/cjs/header-helper/style/Style.js.map +1 -1
- package/cjs/index.d.ts +4 -3
- package/cjs/index.js +12 -4
- package/cjs/index.js.map +1 -1
- package/cjs/layout/chart-helper/get-axis-config.js +23 -16
- package/cjs/layout/chart-helper/get-axis-config.js.map +1 -1
- package/cjs/layout/chart-helper/get-axis-domain.js +1 -1
- package/cjs/layout/chart-helper/get-axis-domain.js.map +1 -1
- package/cjs/layout/chart-helper/get-chart-spec.js +12 -10
- package/cjs/layout/chart-helper/get-chart-spec.js.map +1 -1
- package/cjs/layout/pivot-layout.d.ts +4 -0
- package/cjs/layout/pivot-layout.js +42 -18
- package/cjs/layout/pivot-layout.js.map +1 -1
- package/cjs/render/layout/text.d.ts +1 -1
- package/cjs/render/layout/text.js.map +1 -1
- package/cjs/scenegraph/component/custom.js.map +1 -1
- package/cjs/scenegraph/component/table-component.js +2 -2
- package/cjs/scenegraph/component/table-component.js.map +1 -1
- package/cjs/scenegraph/context/canvas.d.ts +5 -0
- package/cjs/scenegraph/context/canvas.js +24 -0
- package/cjs/scenegraph/context/canvas.js.map +1 -0
- package/cjs/scenegraph/context/context.d.ts +5 -0
- package/cjs/scenegraph/context/context.js +19 -0
- package/cjs/scenegraph/context/context.js.map +1 -0
- package/cjs/scenegraph/context/module.d.ts +2 -0
- package/cjs/scenegraph/context/module.js +15 -0
- package/cjs/scenegraph/context/module.js.map +1 -0
- package/cjs/scenegraph/graphic/chart.d.ts +7 -1
- package/cjs/scenegraph/graphic/chart.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/chart-render-helper.js +23 -3
- package/cjs/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/chart-render.js +5 -2
- package/cjs/scenegraph/graphic/contributions/chart-render.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-helper.js +1 -1
- package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/cjs/scenegraph/group-creater/column.js +3 -2
- package/cjs/scenegraph/group-creater/column.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js +7 -9
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/update-position/util.js +26 -3
- package/cjs/scenegraph/group-creater/progress/update-position/util.js.map +1 -1
- package/cjs/scenegraph/layout/compute-col-width.js +5 -5
- package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
- package/cjs/scenegraph/layout/compute-row-height.js +20 -15
- package/cjs/scenegraph/layout/compute-row-height.js.map +1 -1
- package/cjs/scenegraph/scenegraph.d.ts +2 -0
- package/cjs/scenegraph/scenegraph.js +24 -8
- package/cjs/scenegraph/scenegraph.js.map +1 -1
- package/cjs/scenegraph/utils/padding.d.ts +6 -1
- package/cjs/scenegraph/utils/padding.js +9 -4
- package/cjs/scenegraph/utils/padding.js.map +1 -1
- package/cjs/state/state.js +22 -9
- package/cjs/state/state.js.map +1 -1
- package/cjs/themes/DARK.js +1 -2
- package/cjs/themes/SIMPLIFY.js +2 -1
- package/cjs/themes/theme.js.map +1 -1
- package/cjs/tools/NumberMap.d.ts +1 -0
- package/cjs/tools/NumberMap.js +5 -0
- package/cjs/tools/NumberMap.js.map +1 -1
- package/cjs/tools/get-data-path/create-dataset.d.ts +3 -0
- package/cjs/tools/get-data-path/create-dataset.js +136 -0
- package/cjs/tools/get-data-path/create-dataset.js.map +1 -0
- package/cjs/tools/get-data-path/index.d.ts +2 -0
- package/cjs/tools/get-data-path/index.js +36 -0
- package/cjs/tools/get-data-path/index.js.map +1 -0
- package/cjs/ts-types/base-table.d.ts +4 -3
- package/cjs/ts-types/base-table.js.map +1 -1
- package/cjs/ts-types/column/style.d.ts +1 -2
- package/cjs/ts-types/column/style.js.map +1 -1
- package/cjs/ts-types/customElement.d.ts +1 -1
- package/cjs/ts-types/customElement.js.map +1 -1
- package/cjs/ts-types/events.d.ts +5 -0
- package/cjs/ts-types/events.js.map +1 -1
- package/cjs/ts-types/style-define.d.ts +2 -0
- package/cjs/ts-types/style-define.js.map +1 -1
- package/dist/vtable.js +10973 -8605
- package/dist/vtable.min.js +3 -3
- package/es/ListTable.js +6 -2
- package/es/ListTable.js.map +1 -1
- package/es/PivotChart.d.ts +4 -0
- package/es/PivotChart.js +44 -13
- package/es/PivotChart.js.map +1 -1
- package/es/PivotTable.js +6 -2
- package/es/PivotTable.js.map +1 -1
- package/es/body-helper/style/Style.d.ts +1 -2
- package/es/body-helper/style/Style.js.map +1 -1
- package/es/components/axis/get-axis-attributes.d.ts +151 -0
- package/es/components/axis/get-axis-component-size.js +12 -12
- package/es/components/axis/get-axis-component-size.js.map +1 -1
- package/es/components/axis/linear-scale.js +1 -1
- package/es/components/axis/linear-scale.js.map +1 -1
- package/es/components/title/title.js +9 -14
- package/es/components/title/title.js.map +1 -1
- package/es/components/util/tick-data/continuous.js +1 -1
- package/es/components/util/tick-data/continuous.js.map +1 -1
- package/es/core/BaseTable.d.ts +3 -2
- package/es/core/BaseTable.js +10 -13
- package/es/core/BaseTable.js.map +1 -1
- package/es/core/TABLE_EVENT_TYPE.d.ts +1 -0
- package/es/core/TABLE_EVENT_TYPE.js +2 -1
- package/es/core/TABLE_EVENT_TYPE.js.map +1 -1
- package/es/dataset/dataset.d.ts +3 -2
- package/es/dataset/dataset.js +8 -3
- package/es/dataset/dataset.js.map +1 -1
- package/es/dataset/statistics-helper.d.ts +6 -1
- package/es/dataset/statistics-helper.js +19 -5
- package/es/dataset/statistics-helper.js.map +1 -1
- package/es/event/EventTarget.d.ts +1 -0
- package/es/event/EventTarget.js +10 -2
- package/es/event/EventTarget.js.map +1 -1
- package/es/header-helper/style/Style.d.ts +1 -2
- package/es/header-helper/style/Style.js.map +1 -1
- package/es/index.d.ts +4 -3
- package/es/index.js +3 -1
- package/es/index.js.map +1 -1
- package/es/layout/chart-helper/get-axis-config.js +22 -16
- package/es/layout/chart-helper/get-axis-config.js.map +1 -1
- package/es/layout/chart-helper/get-axis-domain.js +1 -1
- package/es/layout/chart-helper/get-axis-domain.js.map +1 -1
- package/es/layout/chart-helper/get-chart-spec.js +12 -10
- package/es/layout/chart-helper/get-chart-spec.js.map +1 -1
- package/es/layout/pivot-layout.d.ts +4 -0
- package/es/layout/pivot-layout.js +43 -15
- package/es/layout/pivot-layout.js.map +1 -1
- package/es/render/layout/text.d.ts +1 -1
- package/es/render/layout/text.js.map +1 -1
- package/es/scenegraph/component/custom.js.map +1 -1
- package/es/scenegraph/component/table-component.js +2 -2
- package/es/scenegraph/component/table-component.js.map +1 -1
- package/es/scenegraph/context/canvas.d.ts +5 -0
- package/es/scenegraph/context/canvas.js +22 -0
- package/es/scenegraph/context/canvas.js.map +1 -0
- package/es/scenegraph/context/context.d.ts +5 -0
- package/es/scenegraph/context/context.js +16 -0
- package/es/scenegraph/context/context.js.map +1 -0
- package/es/scenegraph/context/module.d.ts +2 -0
- package/es/scenegraph/context/module.js +15 -0
- package/es/scenegraph/context/module.js.map +1 -0
- package/es/scenegraph/graphic/chart.d.ts +7 -1
- package/es/scenegraph/graphic/chart.js.map +1 -1
- package/es/scenegraph/graphic/contributions/chart-render-helper.js +24 -2
- package/es/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
- package/es/scenegraph/graphic/contributions/chart-render.js +6 -1
- package/es/scenegraph/graphic/contributions/chart-render.js.map +1 -1
- package/es/scenegraph/group-creater/cell-helper.js +1 -1
- package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/es/scenegraph/group-creater/column.js +3 -1
- package/es/scenegraph/group-creater/column.js.map +1 -1
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js +8 -9
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -1
- package/es/scenegraph/group-creater/progress/update-position/util.js +26 -3
- package/es/scenegraph/group-creater/progress/update-position/util.js.map +1 -1
- package/es/scenegraph/layout/compute-col-width.js +5 -5
- package/es/scenegraph/layout/compute-col-width.js.map +1 -1
- package/es/scenegraph/layout/compute-row-height.js +21 -14
- package/es/scenegraph/layout/compute-row-height.js.map +1 -1
- package/es/scenegraph/scenegraph.d.ts +2 -0
- package/es/scenegraph/scenegraph.js +23 -8
- package/es/scenegraph/scenegraph.js.map +1 -1
- package/es/scenegraph/utils/padding.d.ts +6 -1
- package/es/scenegraph/utils/padding.js +9 -3
- package/es/scenegraph/utils/padding.js.map +1 -1
- package/es/state/state.js +22 -9
- package/es/state/state.js.map +1 -1
- package/es/themes/DARK.js +1 -2
- package/es/themes/SIMPLIFY.js +2 -1
- package/es/themes/theme.js.map +1 -1
- package/es/tools/NumberMap.d.ts +1 -0
- package/es/tools/NumberMap.js +5 -0
- package/es/tools/NumberMap.js.map +1 -1
- package/es/tools/get-data-path/create-dataset.d.ts +3 -0
- package/es/tools/get-data-path/create-dataset.js +130 -0
- package/es/tools/get-data-path/create-dataset.js.map +1 -0
- package/es/tools/get-data-path/index.d.ts +2 -0
- package/es/tools/get-data-path/index.js +32 -0
- package/es/tools/get-data-path/index.js.map +1 -0
- package/es/ts-types/base-table.d.ts +4 -3
- package/es/ts-types/base-table.js.map +1 -1
- package/es/ts-types/column/style.d.ts +1 -2
- package/es/ts-types/column/style.js.map +1 -1
- package/es/ts-types/customElement.d.ts +1 -1
- package/es/ts-types/customElement.js.map +1 -1
- package/es/ts-types/events.d.ts +5 -0
- package/es/ts-types/events.js.map +1 -1
- package/es/ts-types/style-define.d.ts +2 -0
- package/es/ts-types/style-define.js.map +1 -1
- package/package.json +4 -4
- package/cjs/scenegraph/component/menu.d.ts +0 -41
- package/es/scenegraph/component/menu.d.ts +0 -41
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["ts-types/style-define.ts"],"names":[],"mappings":"","file":"style-define.js","sourcesContent":["import type { BaseTableAPI } from './base-table';\nimport type { ColorsDef, ICellHeaderPaths, LineDashsDef, LineWidthsDef, PaddingsDef } from './common';\nimport type { ColumnIconOption } from './icon';\nimport type { FieldData } from './table-engine';\n\n// ****** TextStyle Options *******\nexport type TextOverflow = string /* a char */; //设置一行的省略形式,另外还有clip。如果autoWrapText设置了自动换行,这个无效\nexport type LineClamp = number | 'auto'; //设置单元格显示的行数,如果不设置的话 默认全部展示直到超过了显示范围,会截断暂时文本,如果设置了auto,显示不了的文本会出现省略号\n\nexport interface StylePropertyFunctionArg {\n row: number;\n col: number;\n /** 表格实例 */\n table: BaseTableAPI;\n /**有format的话 格式化后或者计算后的值 */\n value?: FieldData;\n /**原始值 */\n dataValue?: FieldData;\n /** progressbar类型特有,表示当前数值在总体数据范围的比例 */\n percentile?: number;\n /** 单元格的表头路径信息 */\n cellHeaderPaths: ICellHeaderPaths;\n}\nexport type ColorPropertyDefine =\n | string\n | ((args: StylePropertyFunctionArg) => string)\n | ((args: StylePropertyFunctionArg) => CanvasGradient)\n | ((args: StylePropertyFunctionArg) => CanvasPattern);\n\nexport type ColorsPropertyDefine =\n | ColorPropertyDefine\n | (string | null)[]\n | ((args: StylePropertyFunctionArg) => (string | null)[]);\n\nexport type LineWidthPropertyDefine = number | ((args: StylePropertyFunctionArg) => number);\n\nexport type LineWidthsPropertyDefine =\n | LineWidthPropertyDefine\n | (number | null)[]\n | ((args: StylePropertyFunctionArg) => (number | null)[]);\n\nexport type LineDashPropertyDefine = Array<number> | ((args: StylePropertyFunctionArg) => Array<number>);\n\nexport type LineDashsPropertyDefine =\n | LineDashPropertyDefine\n | (Array<number> | null)[]\n | ((args: StylePropertyFunctionArg) => (Array<number> | null)[]);\n\n// export type FontPropertyDefine = string | ((args: StylePropertyFunctionArg) => string);\nexport type FontSizePropertyDefine = number | ((args: StylePropertyFunctionArg) => number);\nexport type FontFamilyPropertyDefine = string | ((args: StylePropertyFunctionArg) => string);\nexport type FontWeightPropertyDefine = string | number | ((args: StylePropertyFunctionArg) => string | number);\nexport type FontVariantPropertyDefine = string | ((args: StylePropertyFunctionArg) => string);\nexport type FontStylePropertyDefine = string | ((args: StylePropertyFunctionArg) => string);\n\nexport type TagPropertyDefine = string | ((args: StylePropertyFunctionArg) => string);\n\nexport type CursorPropertyDefine = string | ((args: StylePropertyFunctionArg) => string);\n\nexport type IconPropertyDefine =\n | string\n | ColumnIconOption\n | ((args: StylePropertyFunctionArg) => string | ColumnIconOption);\n\nexport type UnderlinePropertyDefine = boolean | ((args: StylePropertyFunctionArg) => boolean);\nexport type LineThroughPropertyDefine = boolean | ((args: StylePropertyFunctionArg) => boolean);\n\nexport type PaddingPropertyDefine = number | ((args: StylePropertyFunctionArg) => number);\n\nexport type PaddingsPropertyDefine =\n | PaddingPropertyDefine\n | (number | null)[]\n | ((args: StylePropertyFunctionArg) => (number | null)[]);\n\nexport type MarkedPropertyDefine = boolean | ((args: StylePropertyFunctionArg) => boolean);\n\nexport type CellStyle = {\n textAlign: CanvasTextAlign;\n padding: PaddingsDef;\n textBaseline: CanvasTextBaseline;\n color: CanvasRenderingContext2D['fillStyle'];\n bgColor: CanvasRenderingContext2D['fillStyle'];\n // font: string;\n fontSize: number;\n fontFamily: string;\n fontWeight: string | number;\n fontVariant: string;\n fontStyle: string;\n // lineHeight: string | number;\n lineHeight: number;\n autoWrapText: boolean;\n lineClamp: LineClamp;\n textOverflow: TextOverflow;\n borderColor: ColorsDef;\n borderLineWidth: LineWidthsDef;\n borderLineDash: LineDashsDef;\n underline: boolean;\n // underlineColor: CanvasRenderingContext2D['strokeStyle'];\n underlineWidth: number;\n // underlineDash: number[];\n lineThrough: boolean;\n // lineThroughColor: CanvasRenderingContext2D['strokeStyle'];\n // lineThroughDash: number[];\n lineThroughLineWidth: number;\n};\n"]}
|
|
1
|
+
{"version":3,"sources":["ts-types/style-define.ts"],"names":[],"mappings":"","file":"style-define.js","sourcesContent":["import type { BaseTableAPI } from './base-table';\nimport type { ColorsDef, ICellHeaderPaths, LineDashsDef, LineWidthsDef, PaddingsDef } from './common';\nimport type { ColumnIconOption } from './icon';\nimport type { FieldData } from './table-engine';\n\n// ****** TextStyle Options *******\nexport type TextOverflow = string /* a char */; //设置一行的省略形式,另外还有clip。如果autoWrapText设置了自动换行,这个无效\nexport type LineClamp = number | 'auto'; //设置单元格显示的行数,如果不设置的话 默认全部展示直到超过了显示范围,会截断暂时文本,如果设置了auto,显示不了的文本会出现省略号\nexport type TextAlignType = 'center' | 'end' | 'left' | 'right' | 'start'; // 设置单元格内文字的水平对齐方式\nexport type TextBaselineType = 'alphabetic' | 'bottom' | 'middle' | 'top'; // 设置单元格内文字的垂直对齐方式\n\nexport interface StylePropertyFunctionArg {\n row: number;\n col: number;\n /** 表格实例 */\n table: BaseTableAPI;\n /**有format的话 格式化后或者计算后的值 */\n value?: FieldData;\n /**原始值 */\n dataValue?: FieldData;\n /** progressbar类型特有,表示当前数值在总体数据范围的比例 */\n percentile?: number;\n /** 单元格的表头路径信息 */\n cellHeaderPaths: ICellHeaderPaths;\n}\nexport type ColorPropertyDefine =\n | string\n | ((args: StylePropertyFunctionArg) => string)\n | ((args: StylePropertyFunctionArg) => CanvasGradient)\n | ((args: StylePropertyFunctionArg) => CanvasPattern);\n\nexport type ColorsPropertyDefine =\n | ColorPropertyDefine\n | (string | null)[]\n | ((args: StylePropertyFunctionArg) => (string | null)[]);\n\nexport type LineWidthPropertyDefine = number | ((args: StylePropertyFunctionArg) => number);\n\nexport type LineWidthsPropertyDefine =\n | LineWidthPropertyDefine\n | (number | null)[]\n | ((args: StylePropertyFunctionArg) => (number | null)[]);\n\nexport type LineDashPropertyDefine = Array<number> | ((args: StylePropertyFunctionArg) => Array<number>);\n\nexport type LineDashsPropertyDefine =\n | LineDashPropertyDefine\n | (Array<number> | null)[]\n | ((args: StylePropertyFunctionArg) => (Array<number> | null)[]);\n\n// export type FontPropertyDefine = string | ((args: StylePropertyFunctionArg) => string);\nexport type FontSizePropertyDefine = number | ((args: StylePropertyFunctionArg) => number);\nexport type FontFamilyPropertyDefine = string | ((args: StylePropertyFunctionArg) => string);\nexport type FontWeightPropertyDefine = string | number | ((args: StylePropertyFunctionArg) => string | number);\nexport type FontVariantPropertyDefine = string | ((args: StylePropertyFunctionArg) => string);\nexport type FontStylePropertyDefine = string | ((args: StylePropertyFunctionArg) => string);\n\nexport type TagPropertyDefine = string | ((args: StylePropertyFunctionArg) => string);\n\nexport type CursorPropertyDefine = string | ((args: StylePropertyFunctionArg) => string);\n\nexport type IconPropertyDefine =\n | string\n | ColumnIconOption\n | ((args: StylePropertyFunctionArg) => string | ColumnIconOption);\n\nexport type UnderlinePropertyDefine = boolean | ((args: StylePropertyFunctionArg) => boolean);\nexport type LineThroughPropertyDefine = boolean | ((args: StylePropertyFunctionArg) => boolean);\n\nexport type PaddingPropertyDefine = number | ((args: StylePropertyFunctionArg) => number);\n\nexport type PaddingsPropertyDefine =\n | PaddingPropertyDefine\n | (number | null)[]\n | ((args: StylePropertyFunctionArg) => (number | null)[]);\n\nexport type MarkedPropertyDefine = boolean | ((args: StylePropertyFunctionArg) => boolean);\n\nexport type CellStyle = {\n textAlign: CanvasTextAlign;\n padding: PaddingsDef;\n textBaseline: CanvasTextBaseline;\n color: CanvasRenderingContext2D['fillStyle'];\n bgColor: CanvasRenderingContext2D['fillStyle'];\n // font: string;\n fontSize: number;\n fontFamily: string;\n fontWeight: string | number;\n fontVariant: string;\n fontStyle: string;\n // lineHeight: string | number;\n lineHeight: number;\n autoWrapText: boolean;\n lineClamp: LineClamp;\n textOverflow: TextOverflow;\n borderColor: ColorsDef;\n borderLineWidth: LineWidthsDef;\n borderLineDash: LineDashsDef;\n underline: boolean;\n // underlineColor: CanvasRenderingContext2D['strokeStyle'];\n underlineWidth: number;\n // underlineDash: number[];\n lineThrough: boolean;\n // lineThroughColor: CanvasRenderingContext2D['strokeStyle'];\n // lineThroughDash: number[];\n lineThroughLineWidth: number;\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visactor/vtable",
|
|
3
|
-
"version": "0.11.1-alpha.
|
|
3
|
+
"version": "0.11.1-alpha.10",
|
|
4
4
|
"description": "canvas table width high performance",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"grid",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@visactor/vrender": "0.15.
|
|
39
|
-
"@visactor/vrender-components": "0.15.
|
|
38
|
+
"@visactor/vrender": "0.15.4",
|
|
39
|
+
"@visactor/vrender-components": "0.15.4",
|
|
40
40
|
"@visactor/vutils": "~0.15.7",
|
|
41
41
|
"@visactor/vscale": "~0.15.7",
|
|
42
42
|
"@visactor/vdataset": "~0.15.7",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"core-js": "3.31.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@visactor/vchart": "1.
|
|
47
|
+
"@visactor/vchart": "1.4.1",
|
|
48
48
|
"@rushstack/eslint-patch": "~1.1.4",
|
|
49
49
|
"react": "^18.0.0",
|
|
50
50
|
"react-dom": "^18.0.0",
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { IGroup } from '@visactor/vrender';
|
|
2
|
-
import type { MenuListItem } from '../../ts-types';
|
|
3
|
-
import { Group } from '../graphic/group';
|
|
4
|
-
import type { BaseTableAPI } from '../../ts-types/base-table';
|
|
5
|
-
export declare enum MenuType {
|
|
6
|
-
'dropDown' = "dropDown",
|
|
7
|
-
'contextmenu' = "contextmenu",
|
|
8
|
-
'custom' = "custom"
|
|
9
|
-
}
|
|
10
|
-
type MenuInfo = MenuListItem[];
|
|
11
|
-
export declare class MenuHandler {
|
|
12
|
-
private _table;
|
|
13
|
-
private _menuInstance;
|
|
14
|
-
private _menuInfo;
|
|
15
|
-
constructor(table: BaseTableAPI);
|
|
16
|
-
bindTableComponent(componentGroup: Group): void;
|
|
17
|
-
release(): void;
|
|
18
|
-
attach(x: number, y: number, col: number, row: number, type: MenuType, menuInfo?: MenuInfo): void;
|
|
19
|
-
updateMenuInfo(col: number, row: number, type: MenuType, menuInfo: MenuListItem[], highlightIndex: number): void;
|
|
20
|
-
checkDropDownMenuChange(col: number, row: number): boolean;
|
|
21
|
-
checkContextMenuChange(x: number, y: number): boolean;
|
|
22
|
-
updateMenuInstance(menuInfo: MenuInfo, highlightIndex: number): void;
|
|
23
|
-
updatePosition(x: number, y: number): void;
|
|
24
|
-
addToScene(): void;
|
|
25
|
-
detach(): void;
|
|
26
|
-
getMenuInfo(col: number, row: number, type: MenuType): {
|
|
27
|
-
menuInfo: MenuListItem[];
|
|
28
|
-
highlightIndex: number;
|
|
29
|
-
};
|
|
30
|
-
bindEvent(): void;
|
|
31
|
-
getEventInfo(target: IGroup): {
|
|
32
|
-
col: number;
|
|
33
|
-
row: number;
|
|
34
|
-
menuKey: string;
|
|
35
|
-
dropDownIndex: number;
|
|
36
|
-
text: string;
|
|
37
|
-
highlight: boolean;
|
|
38
|
-
};
|
|
39
|
-
get bounds(): import("@visactor/vutils").IBounds;
|
|
40
|
-
}
|
|
41
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { IGroup } from '@visactor/vrender';
|
|
2
|
-
import type { MenuListItem } from '../../ts-types';
|
|
3
|
-
import { Group } from '../graphic/group';
|
|
4
|
-
import type { BaseTableAPI } from '../../ts-types/base-table';
|
|
5
|
-
export declare enum MenuType {
|
|
6
|
-
'dropDown' = "dropDown",
|
|
7
|
-
'contextmenu' = "contextmenu",
|
|
8
|
-
'custom' = "custom"
|
|
9
|
-
}
|
|
10
|
-
type MenuInfo = MenuListItem[];
|
|
11
|
-
export declare class MenuHandler {
|
|
12
|
-
private _table;
|
|
13
|
-
private _menuInstance;
|
|
14
|
-
private _menuInfo;
|
|
15
|
-
constructor(table: BaseTableAPI);
|
|
16
|
-
bindTableComponent(componentGroup: Group): void;
|
|
17
|
-
release(): void;
|
|
18
|
-
attach(x: number, y: number, col: number, row: number, type: MenuType, menuInfo?: MenuInfo): void;
|
|
19
|
-
updateMenuInfo(col: number, row: number, type: MenuType, menuInfo: MenuListItem[], highlightIndex: number): void;
|
|
20
|
-
checkDropDownMenuChange(col: number, row: number): boolean;
|
|
21
|
-
checkContextMenuChange(x: number, y: number): boolean;
|
|
22
|
-
updateMenuInstance(menuInfo: MenuInfo, highlightIndex: number): void;
|
|
23
|
-
updatePosition(x: number, y: number): void;
|
|
24
|
-
addToScene(): void;
|
|
25
|
-
detach(): void;
|
|
26
|
-
getMenuInfo(col: number, row: number, type: MenuType): {
|
|
27
|
-
menuInfo: MenuListItem[];
|
|
28
|
-
highlightIndex: number;
|
|
29
|
-
};
|
|
30
|
-
bindEvent(): void;
|
|
31
|
-
getEventInfo(target: IGroup): {
|
|
32
|
-
col: number;
|
|
33
|
-
row: number;
|
|
34
|
-
menuKey: string;
|
|
35
|
-
dropDownIndex: number;
|
|
36
|
-
text: string;
|
|
37
|
-
highlight: boolean;
|
|
38
|
-
};
|
|
39
|
-
get bounds(): import("@visactor/vutils").IBounds;
|
|
40
|
-
}
|
|
41
|
-
export {};
|