@visactor/vtable 0.19.0 → 0.19.1-alpha.0
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/PivotChart.d.ts +1 -1
- package/cjs/components/axis/axis.js +12 -7
- package/cjs/components/axis/axis.js.map +1 -1
- package/cjs/core/BaseTable.js +1 -1
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/layout/chart-helper/get-axis-config.d.ts +1 -1
- package/cjs/scenegraph/scenegraph.js +2 -1
- package/cjs/state/state.js +1 -2
- package/cjs/themes/component.d.ts +5 -5
- package/cjs/ts-types/component/axis.d.ts +2 -15
- package/cjs/ts-types/component/axis.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +10 -6
- package/dist/vtable.min.js +2 -2
- package/es/PivotChart.d.ts +1 -1
- package/es/components/axis/axis.js +12 -7
- package/es/components/axis/axis.js.map +1 -1
- package/es/core/BaseTable.js +1 -1
- package/es/core/BaseTable.js.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/layout/chart-helper/get-axis-config.d.ts +1 -1
- package/es/scenegraph/scenegraph.js +2 -1
- package/es/state/state.js +1 -2
- package/es/themes/component.d.ts +5 -5
- package/es/ts-types/component/axis.d.ts +2 -15
- package/es/ts-types/component/axis.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +4 -4
package/cjs/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { updateCell } from './scenegraph/group-creater/cell-helper';
|
|
|
15
15
|
import { renderChart } from './scenegraph/graphic/contributions/chart-render-helper';
|
|
16
16
|
export { getDataCellPath } from './tools/get-data-path';
|
|
17
17
|
export * from './render/jsx';
|
|
18
|
-
export declare const version = "0.19.0";
|
|
18
|
+
export declare const version = "0.19.1-alpha.0";
|
|
19
19
|
export { TYPES, core, ListTable, ListTableConstructorOptions, PivotTable, PivotTableConstructorOptions, PivotChartConstructorOptions, PivotChart, IHeaderTreeDefine, IDimension, IIndicator, ITitleDefine, ICornerDefine, ColumnsDefine, ColumnDefine, LinkColumnDefine, ChartColumnDefine, ImageColumnDefine, SparklineColumnDefine, ProgressbarColumnDefine, TextColumnDefine, GroupColumnDefine, TextAlignType, TextBaselineType, themes, data, MousePointerCellEvent, getIcons, clearGlobal, register, DataStatistics, CustomLayout, updateCell, renderChart, graphicUtil };
|
|
20
20
|
declare function getIcons(): {
|
|
21
21
|
[key: string]: TYPES.ColumnIconOption;
|
package/cjs/index.js
CHANGED
|
@@ -128,6 +128,6 @@ Object.defineProperty(exports, "getDataCellPath", {
|
|
|
128
128
|
get: function() {
|
|
129
129
|
return get_data_path_1.getDataCellPath;
|
|
130
130
|
}
|
|
131
|
-
}), __exportStar(require("./render/jsx"), exports), exports.version = "0.19.0",
|
|
131
|
+
}), __exportStar(require("./render/jsx"), exports), exports.version = "0.19.1-alpha.0",
|
|
132
132
|
exports.getIcons = getIcons, exports.clearGlobal = clearGlobal, TYPES.AggregationType;
|
|
133
133
|
//# sourceMappingURL=index.js.map
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,uCAA4D;AA6F1D,4FA7FO,qBAAW,OA6FP;AA5Fb,IAAA,4BAAkB,GAAE,CAAC;AAErB,kDAAoC;AAoDlC,sBAAK;AAnDP,6CAA+B;AAoD7B,oBAAI;AAnDN,6CAA+B;AA2E7B,oBAAI;AA1EN,+CAAiC;AACjC,qDAAuC;AA8ErC,4BAAQ;AA7EV,iDAAmC;AAuEjC,wBAAM;AAtER,yEAA2D;AAgFzD,wCAAc;AA1DhB,2CAAwC;AA0BtC,0FA1BO,qBAAS,OA0BP;AAzBX,6CAA0C;AA2BxC,2FA3BO,uBAAU,OA2B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import { graphicUtil, registerForVrender } from './vrender';\nregisterForVrender();\n\nimport * as TYPES from './ts-types';\nimport * as core from './core';\nimport * as data from './data';\nimport * as icons from './icons';\nimport * as register from './register';\nimport * as themes from './themes';\nimport * as DataStatistics from './dataset/DataStatistics';\nimport type {\n ColumnDefine,\n ColumnsDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n ListTableConstructorOptions,\n PivotTableConstructorOptions,\n PivotChartConstructorOptions,\n IHeaderTreeDefine,\n IDimension,\n IIndicator,\n ITitleDefine,\n ICornerDefine,\n TextAlignType,\n TextBaselineType\n} from './ts-types';\nimport { ListTable } from './ListTable';\nimport { PivotTable } from './PivotTable';\nimport { PivotChart } from './PivotChart';\nimport type { MousePointerCellEvent } from './ts-types/events';\nimport * as CustomLayout from './render/layout';\n\nimport { updateCell } from './scenegraph/group-creater/cell-helper';\nimport { renderChart } from './scenegraph/graphic/contributions/chart-render-helper';\n\n// import { container, loadCanvasPicker } from '@src/vrender';\n// loadCanvasPicker(container);\n\nexport { getDataCellPath } from './tools/get-data-path';\nexport * from './render/jsx';\n\nexport const version = \"0.19.1-alpha.0\";\n/**\n * @namespace VTable\n */\nexport {\n /**\n * Types\n * @namespace VTable.TYPES\n */\n TYPES,\n core,\n ListTable,\n ListTableConstructorOptions,\n PivotTable,\n PivotTableConstructorOptions,\n PivotChartConstructorOptions,\n PivotChart,\n IHeaderTreeDefine,\n IDimension,\n IIndicator,\n ITitleDefine,\n ICornerDefine,\n ColumnsDefine,\n ColumnDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n TextAlignType,\n TextBaselineType,\n themes,\n data,\n MousePointerCellEvent,\n getIcons,\n clearGlobal,\n //plugin registers\n register,\n /**\n * 暂不推荐使用\n */\n DataStatistics,\n CustomLayout,\n updateCell,\n renderChart,\n graphicUtil\n};\n\n/** @private */\nfunction getIcons(): {\n [key: string]: TYPES.ColumnIconOption;\n} {\n return icons.get();\n}\n/** 清理内部的全局变量 如注册的icon theme等 以及共享的header column类实例 */\nfunction clearGlobal() {\n register.clearAll();\n // headers.type.clearGlobal();\n // columns.type.clearGlobal();\n}\nTYPES.AggregationType;\n"]}
|
|
@@ -8,7 +8,7 @@ export declare function getAxisOption(col: number, row: number, orient: string,
|
|
|
8
8
|
seriesIndice: any;
|
|
9
9
|
theme: any;
|
|
10
10
|
} | {
|
|
11
|
-
axisOption:
|
|
11
|
+
axisOption: any;
|
|
12
12
|
isPercent: boolean;
|
|
13
13
|
isZeroAlign: boolean;
|
|
14
14
|
theme: any;
|
package/cjs/state/state.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { RequiredTableThemeDefine } from '../ts-types';
|
|
2
2
|
export declare function getAxisStyle(axisStyle: RequiredTableThemeDefine['axisStyle']): {
|
|
3
|
-
defaultAxisStyle: Omit<
|
|
4
|
-
leftAxisStyle: Omit<
|
|
5
|
-
rightAxisStyle: Omit<
|
|
6
|
-
topAxisStyle: Omit<
|
|
7
|
-
bottomAxisStyle: Omit<
|
|
3
|
+
defaultAxisStyle: Omit<any, "type" | "domain" | "range" | "orient" | "__ticksForVTable">;
|
|
4
|
+
leftAxisStyle: Omit<any, "type" | "domain" | "range" | "orient" | "__ticksForVTable">;
|
|
5
|
+
rightAxisStyle: Omit<any, "type" | "domain" | "range" | "orient" | "__ticksForVTable">;
|
|
6
|
+
topAxisStyle: Omit<any, "type" | "domain" | "range" | "orient" | "__ticksForVTable">;
|
|
7
|
+
bottomAxisStyle: Omit<any, "type" | "domain" | "range" | "orient" | "__ticksForVTable">;
|
|
8
8
|
};
|
|
9
9
|
export declare const defalutPoptipStyle: {
|
|
10
10
|
visible: boolean;
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export type
|
|
3
|
-
type: 'band';
|
|
4
|
-
domain: (number | string)[];
|
|
5
|
-
__vtableChartTheme?: any;
|
|
6
|
-
} | {
|
|
7
|
-
type: 'linear' | 'time';
|
|
8
|
-
range: {
|
|
9
|
-
min: number;
|
|
10
|
-
max: number;
|
|
11
|
-
};
|
|
12
|
-
__ticksForVTable?: number[];
|
|
13
|
-
__vtableChartTheme?: any;
|
|
14
|
-
});
|
|
15
|
-
export type ITableAxisOption = ICartesianAxisSpec;
|
|
1
|
+
export type ICellAxisOption = any;
|
|
2
|
+
export type ITableAxisOption = ICellAxisOption;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ts-types/component/axis.ts"],"names":[],"mappings":"","file":"axis.js","sourcesContent":["import type { ICartesianAxisSpec } from '@visactor/vchart';\n\
|
|
1
|
+
{"version":3,"sources":["../src/ts-types/component/axis.ts"],"names":[],"mappings":"","file":"axis.js","sourcesContent":["// import type { ICartesianAxisSpec } from '@visactor/vchart';\n\n// export type ICellAxisOption = Omit<ICartesianAxisSpec, 'type'> &\n// (\n// | {\n// type: 'band';\n// domain: (number | string)[];\n// __vtableChartTheme?: any;\n// }\n// | {\n// type: 'linear' | 'time';\n// range: {\n// min: number;\n// max: number;\n// };\n// __ticksForVTable?: number[];\n// __vtableChartTheme?: any;\n// }\n// );\nexport type ICellAxisOption = any;\nexport type ITableAxisOption = ICellAxisOption;\n"]}
|
package/cjs/vrender.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/vrender.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kCAAgC;AAChC,yDAA8F;AAC9F,yDAAqE;AACrE,yDAmBgC;AAIhC,IAAI,QAAQ,GAAG,KAAK,CAAC;AACrB,SAAgB,kBAAkB;IAChC,IAAI,QAAQ,EAAE;QACZ,OAAO;KACR;IACD,QAAQ,GAAG,IAAI,CAAC;IAEhB,IAAA,+BAAgB,GAAE,CAAC;IAEnB,IAAI,IAAA,2BAAY,GAAE,EAAE;QAClB,IAAA,6BAAc,EAAC,wBAAS,CAAC,CAAC;KAC3B;SAAM,IAAI,IAAA,wBAAS,GAAE,EAAE;QACtB,IAAA,0BAAW,EAAC,wBAAS,CAAC,CAAC;KACxB;IACD,IAAA,0BAAW,GAAE,CAAC;IACd,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,8BAAe,GAAE,CAAC;IAClB,IAAA,gCAAiB,GAAE,CAAC;IACpB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,+BAAgB,GAAE,CAAC;IACnB,IAAA,iCAAkB,GAAE,CAAC;IACrB,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,+BAAgB,GAAE,CAAC;AACrB,CAAC;AA/BD,gDA+BC;AAED,yDAAuC;AACvC,yDAAuC","file":"vrender.js","sourcesContent":["import '@visactor/vrender-core';\nimport { container, isBrowserEnv, isNodeEnv, preLoadAllModule } from '@visactor/vrender-core';\nimport { loadBrowserEnv, loadNodeEnv } from '@visactor/vrender-kits';\nimport {\n registerArc,\n registerArc3d,\n registerArea,\n registerCircle,\n registerGlyph,\n registerGroup,\n registerImage,\n registerLine,\n registerPath,\n registerPolygon,\n registerPyramid3d,\n registerRect,\n registerRect3d,\n registerRichtext,\n registerShadowRoot,\n registerSymbol,\n registerText,\n registerWrapText\n} from '@visactor/vrender-kits';\n// 导出版本号\n// export const version = \"0.19.0\";\n\nlet registed = false;\nexport function registerForVrender() {\n if (registed) {\n return;\n }\n registed = true;\n // 注册内置组件\n preLoadAllModule();\n\n if (isBrowserEnv()) {\n loadBrowserEnv(container);\n } else if (isNodeEnv()) {\n loadNodeEnv(container);\n }\n registerArc();\n registerArc3d();\n registerArea();\n registerCircle();\n registerGlyph();\n registerGroup();\n registerImage();\n registerLine();\n registerPath();\n registerPolygon();\n registerPyramid3d();\n registerRect();\n registerRect3d();\n registerRichtext();\n registerShadowRoot();\n registerSymbol();\n registerText();\n registerWrapText();\n}\n\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/vrender.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kCAAgC;AAChC,yDAA8F;AAC9F,yDAAqE;AACrE,yDAmBgC;AAIhC,IAAI,QAAQ,GAAG,KAAK,CAAC;AACrB,SAAgB,kBAAkB;IAChC,IAAI,QAAQ,EAAE;QACZ,OAAO;KACR;IACD,QAAQ,GAAG,IAAI,CAAC;IAEhB,IAAA,+BAAgB,GAAE,CAAC;IAEnB,IAAI,IAAA,2BAAY,GAAE,EAAE;QAClB,IAAA,6BAAc,EAAC,wBAAS,CAAC,CAAC;KAC3B;SAAM,IAAI,IAAA,wBAAS,GAAE,EAAE;QACtB,IAAA,0BAAW,EAAC,wBAAS,CAAC,CAAC;KACxB;IACD,IAAA,0BAAW,GAAE,CAAC;IACd,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,8BAAe,GAAE,CAAC;IAClB,IAAA,gCAAiB,GAAE,CAAC;IACpB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,+BAAgB,GAAE,CAAC;IACnB,IAAA,iCAAkB,GAAE,CAAC;IACrB,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,+BAAgB,GAAE,CAAC;AACrB,CAAC;AA/BD,gDA+BC;AAED,yDAAuC;AACvC,yDAAuC","file":"vrender.js","sourcesContent":["import '@visactor/vrender-core';\nimport { container, isBrowserEnv, isNodeEnv, preLoadAllModule } from '@visactor/vrender-core';\nimport { loadBrowserEnv, loadNodeEnv } from '@visactor/vrender-kits';\nimport {\n registerArc,\n registerArc3d,\n registerArea,\n registerCircle,\n registerGlyph,\n registerGroup,\n registerImage,\n registerLine,\n registerPath,\n registerPolygon,\n registerPyramid3d,\n registerRect,\n registerRect3d,\n registerRichtext,\n registerShadowRoot,\n registerSymbol,\n registerText,\n registerWrapText\n} from '@visactor/vrender-kits';\n// 导出版本号\n// export const version = \"0.19.1-alpha.0\";\n\nlet registed = false;\nexport function registerForVrender() {\n if (registed) {\n return;\n }\n registed = true;\n // 注册内置组件\n preLoadAllModule();\n\n if (isBrowserEnv()) {\n loadBrowserEnv(container);\n } else if (isNodeEnv()) {\n loadNodeEnv(container);\n }\n registerArc();\n registerArc3d();\n registerArea();\n registerCircle();\n registerGlyph();\n registerGroup();\n registerImage();\n registerLine();\n registerPath();\n registerPolygon();\n registerPyramid3d();\n registerRect();\n registerRect3d();\n registerRichtext();\n registerShadowRoot();\n registerSymbol();\n registerText();\n registerWrapText();\n}\n\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\n"]}
|
package/dist/vtable.js
CHANGED
|
@@ -30606,14 +30606,18 @@
|
|
|
30606
30606
|
this.type = option.type ?? 'band';
|
|
30607
30607
|
this.option = merge({}, getCommonAxis(option.__vtableChartTheme), getTableAxisTheme(this.orient, table.theme), getChartSpecAxisTheme(this.orient, this.type, option.__vtableChartTheme), option);
|
|
30608
30608
|
if (this.orient === 'left' || this.orient === 'right') {
|
|
30609
|
+
const innerOffsetTop = this.option.innerOffset?.top ?? 0;
|
|
30610
|
+
const innerOffsetBottom = this.option.innerOffset?.bottom ?? 0;
|
|
30609
30611
|
this.width = width;
|
|
30610
|
-
this.height = height - padding[2];
|
|
30611
|
-
this.y = padding[0];
|
|
30612
|
+
this.height = height - padding[2] - innerOffsetBottom;
|
|
30613
|
+
this.y = padding[0] + innerOffsetTop;
|
|
30612
30614
|
}
|
|
30613
30615
|
else if (this.orient === 'top' || this.orient === 'bottom') {
|
|
30614
|
-
|
|
30616
|
+
const innerOffsetLeft = this.option.innerOffset?.left ?? 0;
|
|
30617
|
+
const innerOffsetRight = this.option.innerOffset?.right ?? 0;
|
|
30618
|
+
this.width = width - padding[1] - innerOffsetRight;
|
|
30615
30619
|
this.height = height;
|
|
30616
|
-
this.x = padding[3];
|
|
30620
|
+
this.x = padding[3] + innerOffsetLeft;
|
|
30617
30621
|
}
|
|
30618
30622
|
this.visible = option.visible ?? true;
|
|
30619
30623
|
this.inverse = 'inverse' in option ? !!option.inverse : false;
|
|
@@ -51627,7 +51631,7 @@
|
|
|
51627
51631
|
return TABLE_EVENT_TYPE;
|
|
51628
51632
|
}
|
|
51629
51633
|
options;
|
|
51630
|
-
version = "0.19.0";
|
|
51634
|
+
version = "0.19.1-alpha.0";
|
|
51631
51635
|
pagination;
|
|
51632
51636
|
id = `VTable${Date.now()}`;
|
|
51633
51637
|
headerStyleCache;
|
|
@@ -62987,7 +62991,7 @@
|
|
|
62987
62991
|
}
|
|
62988
62992
|
|
|
62989
62993
|
registerForVrender();
|
|
62990
|
-
const version = "0.19.0";
|
|
62994
|
+
const version = "0.19.1-alpha.0";
|
|
62991
62995
|
function getIcons() {
|
|
62992
62996
|
return get$1();
|
|
62993
62997
|
}
|