@visactor/vtable 1.22.8-alpha.2 → 1.22.8-alpha.3

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/index.d.ts CHANGED
@@ -24,7 +24,7 @@ export { getTargetCell } from './event/util';
24
24
  export { toBoxArray } from './tools/helper';
25
25
  export { Icon } from './scenegraph/graphic/icon';
26
26
  export { CUSTOM_MERGE_PRE_NAME, CUSTOM_CONTAINER_NAME } from './scenegraph/component/custom';
27
- export declare const version = "1.22.8-alpha.2";
27
+ export declare const version = "1.22.8-alpha.3";
28
28
  export { TYPES, core, ListTable, ListTableSimple, BaseTableAPI, ListTableConstructorOptions, PivotTable, PivotTableSimple, PivotTableConstructorOptions, PivotChartConstructorOptions, PivotChart, IHeaderTreeDefine, IDimension, IIndicator, ITitleDefine, ICornerDefine, ColumnsDefine, ColumnDefine, LinkColumnDefine, ChartColumnDefine, ImageColumnDefine, SparklineColumnDefine, ProgressbarColumnDefine, TextColumnDefine, GroupColumnDefine, TextAlignType, TextBaselineType, textMeasure, themes, data, MousePointerCellEvent, getIcons, clearGlobal, register, DataStatistics, CustomLayout, updateCell, renderChart, graphicUtil, setCustomAlphabetCharSet, restoreMeasureText, pluginsDefinition };
29
29
  declare function getIcons(): {
30
30
  [key: string]: TYPES.ColumnIconOption;
package/cjs/index.js CHANGED
@@ -210,7 +210,7 @@ Object.defineProperty(exports, "CUSTOM_MERGE_PRE_NAME", {
210
210
  get: function() {
211
211
  return custom_1.CUSTOM_CONTAINER_NAME;
212
212
  }
213
- }), exports.version = "1.22.8-alpha.2", exports.getIcons = getIcons, exports.clearGlobal = clearGlobal,
213
+ }), exports.version = "1.22.8-alpha.3", exports.getIcons = getIcons, exports.clearGlobal = clearGlobal,
214
214
  TYPES.AggregationType, __exportStar(require("./components"), exports), __exportStar(require("./scenegraph/group-creater/cell-type"), exports);
215
215
 
216
216
  var TABLE_EVENT_TYPE_1 = require("./core/TABLE_EVENT_TYPE");
package/cjs/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,uCAA4D;AA8G1D,4FA9GO,qBAAW,OA8GP;AA7Gb,IAAA,4BAAkB,GAAE,CAAC;AAErB,kDAAoC;AAiElC,sBAAK;AAhEP,6CAA+B;AAiE7B,oBAAI;AAhEN,6CAA+B;AA4F7B,oBAAI;AA3FN,+CAAiC;AACjC,qDAAuC;AA+FrC,4BAAQ;AA9FV,iDAAmC;AAwFjC,wBAAM;AAvFR,yEAA2D;AAiGzD,wCAAc;AAhGhB,6DAA+C;AAuG7C,8CAAiB;AAjFnB,mDAA4D;AAsC1D,0FAtCuB,4BAAS,OAsCvB;AArCX,yDAAqD;AAsCnD,gGAtCO,kCAAe,OAsCP;AApCjB,qDAA+D;AAuC7D,2FAvCwB,8BAAU,OAuCxB;AAtCZ,2DAAuD;AAuCrD,iGAvCO,oCAAgB,OAuCP;AAtClB,6CAA0C;AAyCxC,2FAzCO,uBAAU,OAyCP;AAvCZ,8DAAgD;AAoE9C,oCAAY;AAlEd,wEAAoE;AAmElE,2FAnEO,wBAAU,OAmEP;AAlEZ,gGAAqF;AAmEnF,4FAnEO,iCAAW,OAmEP;AAlEb,kEAA4G;AAqE1G,mGArEO,iCAAkB,OAqEP;AADlB,yGApE2B,uCAAwB,OAoE3B;AAhBxB,4FApDqD,0BAAW,OAoDrD;AA9Cb,uDAAwD;AAA/C,gHAAA,eAAe,OAAA;AACxB,+CAA6B;AAC7B,qCAA6C;AAApC,qGAAA,aAAa,OAAA;AACtB,yCAA4C;AAAnC,oGAAA,UAAU,OAAA;AACnB,kDAAiD;AAAxC,4FAAA,IAAI,OAAA;AACb,wDAA6F;AAApF,+GAAA,qBAAqB,OAAA;AAAE,+GAAA,qBAAqB,OAAA;AAKxC,QAAA,OAAO,GAAG,gBAAgB,CAAC;AA2DxC,SAAS,QAAQ;IAGf,OAAO,KAAK,CAAC,GAAG,EAAE,CAAC;AACrB,CAAC;AAvBC,4BAAQ;AAyBV,SAAS,WAAW;IAClB,QAAQ,CAAC,QAAQ,EAAE,CAAC;AAGtB,CAAC;AA5BC,kCAAW;AA6Bb,KAAK,CAAC,eAAe,CAAC;AAEtB,+CAA6B;AAC7B,uEAAqD;AAErD,4DAA2D;AAAlD,oHAAA,gBAAgB,OAAA;AACzB,wFAA+G;AAAtG,gIAAA,sBAAsB,OAAA;AAAE,gIAAA,sBAAsB,OAAA;AAEvD,mDAAkD;AAAzC,0GAAA,WAAW,OAAA","file":"index.js","sourcesContent":["/* eslint-disable sort-imports */\nimport { 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 * as pluginsDefinition from './plugins';\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 { ListTableAll as ListTable } from './ListTable-all';\nimport { ListTableSimple } from './ListTable-simple';\n// import { PivotTable } from './PivotTable';\nimport { PivotTableAll as PivotTable } from './PivotTable-all';\nimport { PivotTableSimple } from './PivotTable-simple';\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';\nimport { restoreMeasureText, setCustomAlphabetCharSet, textMeasure } from './scenegraph/utils/text-measure';\nimport type { BaseTableAPI } from './ts-types/base-table';\n\n// import { container, loadCanvasPicker } from '@src/vrender';\n// loadCanvasPicker(container);\n\nexport { getDataCellPath } from './tools/get-data-path';\nexport * from './render/jsx';\nexport { getTargetCell } from './event/util';\nexport { toBoxArray } from './tools/helper';\nexport { Icon } from './scenegraph/graphic/icon';\nexport { CUSTOM_MERGE_PRE_NAME, CUSTOM_CONTAINER_NAME } from './scenegraph/component/custom';\n\n// export * as VRender from './vrender';\n// import * as VRender from './vrender';\n\nexport const version = \"1.22.8-alpha.2\";\n/**\n * @namespace VTable\n */\nexport {\n /**\n * Types\n * @namespace VTable.TYPES\n */\n TYPES,\n core,\n ListTable,\n ListTableSimple,\n BaseTableAPI,\n ListTableConstructorOptions,\n PivotTable,\n PivotTableSimple,\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 textMeasure,\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 setCustomAlphabetCharSet,\n restoreMeasureText,\n pluginsDefinition\n // VRender // should use import {xxx} from '@visactor/vtable/es/vrender'\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\nexport * from './components';\nexport * from './scenegraph/group-creater/cell-type';\n\nexport { TABLE_EVENT_TYPE } from './core/TABLE_EVENT_TYPE';\nexport { PIVOT_CHART_EVENT_TYPE, PIVOT_TABLE_EVENT_TYPE } from './ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE';\n\nexport { EventTarget } from './event/EventTarget';\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,uCAA4D;AA8G1D,4FA9GO,qBAAW,OA8GP;AA7Gb,IAAA,4BAAkB,GAAE,CAAC;AAErB,kDAAoC;AAiElC,sBAAK;AAhEP,6CAA+B;AAiE7B,oBAAI;AAhEN,6CAA+B;AA4F7B,oBAAI;AA3FN,+CAAiC;AACjC,qDAAuC;AA+FrC,4BAAQ;AA9FV,iDAAmC;AAwFjC,wBAAM;AAvFR,yEAA2D;AAiGzD,wCAAc;AAhGhB,6DAA+C;AAuG7C,8CAAiB;AAjFnB,mDAA4D;AAsC1D,0FAtCuB,4BAAS,OAsCvB;AArCX,yDAAqD;AAsCnD,gGAtCO,kCAAe,OAsCP;AApCjB,qDAA+D;AAuC7D,2FAvCwB,8BAAU,OAuCxB;AAtCZ,2DAAuD;AAuCrD,iGAvCO,oCAAgB,OAuCP;AAtClB,6CAA0C;AAyCxC,2FAzCO,uBAAU,OAyCP;AAvCZ,8DAAgD;AAoE9C,oCAAY;AAlEd,wEAAoE;AAmElE,2FAnEO,wBAAU,OAmEP;AAlEZ,gGAAqF;AAmEnF,4FAnEO,iCAAW,OAmEP;AAlEb,kEAA4G;AAqE1G,mGArEO,iCAAkB,OAqEP;AADlB,yGApE2B,uCAAwB,OAoE3B;AAhBxB,4FApDqD,0BAAW,OAoDrD;AA9Cb,uDAAwD;AAA/C,gHAAA,eAAe,OAAA;AACxB,+CAA6B;AAC7B,qCAA6C;AAApC,qGAAA,aAAa,OAAA;AACtB,yCAA4C;AAAnC,oGAAA,UAAU,OAAA;AACnB,kDAAiD;AAAxC,4FAAA,IAAI,OAAA;AACb,wDAA6F;AAApF,+GAAA,qBAAqB,OAAA;AAAE,+GAAA,qBAAqB,OAAA;AAKxC,QAAA,OAAO,GAAG,gBAAgB,CAAC;AA2DxC,SAAS,QAAQ;IAGf,OAAO,KAAK,CAAC,GAAG,EAAE,CAAC;AACrB,CAAC;AAvBC,4BAAQ;AAyBV,SAAS,WAAW;IAClB,QAAQ,CAAC,QAAQ,EAAE,CAAC;AAGtB,CAAC;AA5BC,kCAAW;AA6Bb,KAAK,CAAC,eAAe,CAAC;AAEtB,+CAA6B;AAC7B,uEAAqD;AAErD,4DAA2D;AAAlD,oHAAA,gBAAgB,OAAA;AACzB,wFAA+G;AAAtG,gIAAA,sBAAsB,OAAA;AAAE,gIAAA,sBAAsB,OAAA;AAEvD,mDAAkD;AAAzC,0GAAA,WAAW,OAAA","file":"index.js","sourcesContent":["/* eslint-disable sort-imports */\nimport { 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 * as pluginsDefinition from './plugins';\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 { ListTableAll as ListTable } from './ListTable-all';\nimport { ListTableSimple } from './ListTable-simple';\n// import { PivotTable } from './PivotTable';\nimport { PivotTableAll as PivotTable } from './PivotTable-all';\nimport { PivotTableSimple } from './PivotTable-simple';\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';\nimport { restoreMeasureText, setCustomAlphabetCharSet, textMeasure } from './scenegraph/utils/text-measure';\nimport type { BaseTableAPI } from './ts-types/base-table';\n\n// import { container, loadCanvasPicker } from '@src/vrender';\n// loadCanvasPicker(container);\n\nexport { getDataCellPath } from './tools/get-data-path';\nexport * from './render/jsx';\nexport { getTargetCell } from './event/util';\nexport { toBoxArray } from './tools/helper';\nexport { Icon } from './scenegraph/graphic/icon';\nexport { CUSTOM_MERGE_PRE_NAME, CUSTOM_CONTAINER_NAME } from './scenegraph/component/custom';\n\n// export * as VRender from './vrender';\n// import * as VRender from './vrender';\n\nexport const version = \"1.22.8-alpha.3\";\n/**\n * @namespace VTable\n */\nexport {\n /**\n * Types\n * @namespace VTable.TYPES\n */\n TYPES,\n core,\n ListTable,\n ListTableSimple,\n BaseTableAPI,\n ListTableConstructorOptions,\n PivotTable,\n PivotTableSimple,\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 textMeasure,\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 setCustomAlphabetCharSet,\n restoreMeasureText,\n pluginsDefinition\n // VRender // should use import {xxx} from '@visactor/vtable/es/vrender'\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\nexport * from './components';\nexport * from './scenegraph/group-creater/cell-type';\n\nexport { TABLE_EVENT_TYPE } from './core/TABLE_EVENT_TYPE';\nexport { PIVOT_CHART_EVENT_TYPE, PIVOT_TABLE_EVENT_TYPE } from './ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE';\n\nexport { EventTarget } from './event/EventTarget';\n"]}
@@ -110,4 +110,4 @@ const registerCustomCellStylePlugin = () => {
110
110
  };
111
111
 
112
112
  exports.registerCustomCellStylePlugin = registerCustomCellStylePlugin;
113
- //# sourceMappingURL=custom-cell-style.js.map
113
+ //# sourceMappingURL=custom-cell-style.js.map
@@ -21,4 +21,4 @@ Object.defineProperty(exports, "CustomCellStylePlugin", {
21
21
  return custom_cell_style_1.CustomCellStylePlugin;
22
22
  }
23
23
  });
24
- //# sourceMappingURL=index.js.map
24
+ //# sourceMappingURL=index.js.map
@@ -959,4 +959,4 @@ class Scenegraph {
959
959
  }
960
960
 
961
961
  exports.Scenegraph = Scenegraph;
962
- //# sourceMappingURL=scenegraph.js.map
962
+ //# sourceMappingURL=scenegraph.js.map
@@ -828,4 +828,4 @@ class StateManager {
828
828
  }
829
829
 
830
830
  exports.StateManager = StateManager;
831
- //# sourceMappingURL=state.js.map
831
+ //# sourceMappingURL=state.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/vrender.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAA0D;AAC1D,kCAAgC;AAChC,yDAAwH;AACxH,yDAqBgC;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;IAGd,IAAA,6BAAc,GAAE,CAAC;IAEjB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,2BAAY,GAAE,CAAC;IAIf,IAAA,2BAAY,GAAE,CAAC;IAEf,IAAA,+BAAgB,GAAE,CAAC;IACnB,IAAA,iCAAkB,GAAE,CAAC;IACrB,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,uCAAwB,GAAE,CAAC;IAE3B,IAAA,+BAAU,GAAE,CAAC;IAEb,IAAA,uCAAwB,GAAE,CAAC;AAC7B,CAAC;AAnCD,gDAmCC;AAOD,yDAAuC;AACvC,yDAAuC;AACvC,+DAA6C;AAC7C,4DAA0C","file":"vrender.js","sourcesContent":["import { loadPoptip } from '@visactor/vrender-components';\nimport '@visactor/vrender-core';\nimport { container, isBrowserEnv, isNodeEnv, preLoadAllModule, registerFlexLayoutPlugin } from '@visactor/vrender-core';\nimport {\n loadBrowserEnv,\n loadNodeEnv,\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 = \"1.22.8-alpha.2\";\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 registerFlexLayoutPlugin();\n // registerWrapText();\n loadPoptip();\n\n registerFlexLayoutPlugin();\n}\n\nexport type { Direction } from '@visactor/vrender-core';\nexport type { State } from '@visactor/vrender-components';\n// export { GroupFadeIn } from '@visactor/vrender-core';\n// export { GroupFadeOut } from '@visactor/vrender-core';\n\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\nexport * from '@visactor/vrender-components';\nexport * from '@visactor/vrender-animate';\n"]}
1
+ {"version":3,"sources":["../src/vrender.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAA0D;AAC1D,kCAAgC;AAChC,yDAAwH;AACxH,yDAqBgC;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;IAGd,IAAA,6BAAc,GAAE,CAAC;IAEjB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,2BAAY,GAAE,CAAC;IAIf,IAAA,2BAAY,GAAE,CAAC;IAEf,IAAA,+BAAgB,GAAE,CAAC;IACnB,IAAA,iCAAkB,GAAE,CAAC;IACrB,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,uCAAwB,GAAE,CAAC;IAE3B,IAAA,+BAAU,GAAE,CAAC;IAEb,IAAA,uCAAwB,GAAE,CAAC;AAC7B,CAAC;AAnCD,gDAmCC;AAOD,yDAAuC;AACvC,yDAAuC;AACvC,+DAA6C;AAC7C,4DAA0C","file":"vrender.js","sourcesContent":["import { loadPoptip } from '@visactor/vrender-components';\nimport '@visactor/vrender-core';\nimport { container, isBrowserEnv, isNodeEnv, preLoadAllModule, registerFlexLayoutPlugin } from '@visactor/vrender-core';\nimport {\n loadBrowserEnv,\n loadNodeEnv,\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 = \"1.22.8-alpha.3\";\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 registerFlexLayoutPlugin();\n // registerWrapText();\n loadPoptip();\n\n registerFlexLayoutPlugin();\n}\n\nexport type { Direction } from '@visactor/vrender-core';\nexport type { State } from '@visactor/vrender-components';\n// export { GroupFadeIn } from '@visactor/vrender-core';\n// export { GroupFadeOut } from '@visactor/vrender-core';\n\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\nexport * from '@visactor/vrender-components';\nexport * from '@visactor/vrender-animate';\n"]}
package/dist/vtable.js CHANGED
@@ -627,28 +627,59 @@
627
627
  }
628
628
  addEventListener(type, listener, options) {
629
629
  if (!listener) return;
630
+ const capture = this._resolveCapture(options),
631
+ once = this._resolveOnce(options),
632
+ listenerTypeMap = this._getOrCreateListenerTypeMap(type),
633
+ wrappedMap = this._getOrCreateWrappedMap(listenerTypeMap, listener);
634
+ if (wrappedMap.has(capture)) return;
630
635
  const wrappedListener = event => {
631
636
  const transformedEvent = this._eventListenerTransformer(event);
632
- "function" == typeof listener ? listener(transformedEvent) : listener.handleEvent && listener.handleEvent(transformedEvent);
637
+ "function" == typeof listener ? listener(transformedEvent) : listener.handleEvent && listener.handleEvent(transformedEvent), once && this._deleteListenerRecord(type, listener, capture);
633
638
  };
634
- this._listenerMap.has(type) || this._listenerMap.set(type, new Map()), this._listenerMap.get(type).set(listener, wrappedListener), this._nativeAddEventListener(type, wrappedListener, options);
639
+ wrappedMap.set(capture, {
640
+ wrappedListener: wrappedListener,
641
+ options: options
642
+ }), this._nativeAddEventListener(type, wrappedListener, options);
635
643
  }
636
644
  removeEventListener(type, listener, options) {
637
- var _a;
645
+ var _a, _b;
638
646
  if (!listener) return;
639
- const wrappedListener = null === (_a = this._listenerMap.get(type)) || void 0 === _a ? void 0 : _a.get(listener);
640
- wrappedListener && (this._nativeRemoveEventListener(type, wrappedListener, options), this._listenerMap.get(type).delete(listener), 0 === this._listenerMap.get(type).size && this._listenerMap.delete(type));
647
+ const capture = this._resolveCapture(options),
648
+ wrappedRecord = null === (_b = null === (_a = this._listenerMap.get(type)) || void 0 === _a ? void 0 : _a.get(listener)) || void 0 === _b ? void 0 : _b.get(capture);
649
+ wrappedRecord && (this._nativeRemoveEventListener(type, wrappedRecord.wrappedListener, capture), this._deleteListenerRecord(type, listener, capture));
641
650
  }
642
651
  dispatchEvent(event) {
643
652
  return this._nativeDispatchEvent(event);
644
653
  }
645
654
  clearAllEventListeners() {
646
- this._listenerMap.forEach((listenersMap, type) => {
647
- listenersMap.forEach((wrappedListener, originalListener) => {
648
- this._nativeRemoveEventListener(type, wrappedListener, void 0);
655
+ this._listenerMap.forEach((listenerMap, type) => {
656
+ listenerMap.forEach(wrappedMap => {
657
+ wrappedMap.forEach((wrappedRecord, capture) => {
658
+ this._nativeRemoveEventListener(type, wrappedRecord.wrappedListener, capture);
659
+ });
649
660
  });
650
661
  }), this._listenerMap.clear();
651
662
  }
663
+ _resolveCapture(options) {
664
+ return "boolean" == typeof options ? options : !!(null == options ? void 0 : options.capture);
665
+ }
666
+ _resolveOnce(options) {
667
+ return "object" == typeof options && !!(null == options ? void 0 : options.once);
668
+ }
669
+ _getOrCreateListenerTypeMap(type) {
670
+ let listenerTypeMap = this._listenerMap.get(type);
671
+ return listenerTypeMap || (listenerTypeMap = new Map(), this._listenerMap.set(type, listenerTypeMap)), listenerTypeMap;
672
+ }
673
+ _getOrCreateWrappedMap(listenerTypeMap, listener) {
674
+ let wrappedMap = listenerTypeMap.get(listener);
675
+ return wrappedMap || (wrappedMap = new Map(), listenerTypeMap.set(listener, wrappedMap)), wrappedMap;
676
+ }
677
+ _deleteListenerRecord(type, listener, capture) {
678
+ const listenerTypeMap = this._listenerMap.get(type);
679
+ if (!listenerTypeMap) return;
680
+ const wrappedMap = listenerTypeMap.get(listener);
681
+ wrappedMap && (wrappedMap.delete(capture), 0 === wrappedMap.size && listenerTypeMap.delete(listener), 0 === listenerTypeMap.size && this._listenerMap.delete(type));
682
+ }
652
683
  _nativeAddEventListener(type, listener, options) {
653
684
  throw new Error("_nativeAddEventListener must be implemented by derived classes");
654
685
  }
@@ -7134,7 +7165,9 @@
7134
7165
  var _a;
7135
7166
  if (event.manager !== this) throw new Error("It is illegal to free an event not managed by this EventManager!");
7136
7167
  const constructor = event.constructor;
7137
- this.eventPool.has(constructor) || this.eventPool.set(constructor, []), null === (_a = this.eventPool.get(constructor)) || void 0 === _a || _a.push(event);
7168
+ this.eventPool.has(constructor) || (this.eventPool.get(constructor).forEach(e => {
7169
+ e.eventPhase = event.NONE, e.currentTarget = null, e.path = [], e.detailPath = [], e.target = null;
7170
+ }), this.eventPool.set(constructor, [])), null === (_a = this.eventPool.get(constructor)) || void 0 === _a || _a.push(event);
7138
7171
  }
7139
7172
  notifyListeners(e, type) {
7140
7173
  const listeners = e.currentTarget._events[type];
@@ -9554,6 +9587,7 @@
9554
9587
  var _a;
9555
9588
  if (!states.length) return void this.clearStates(hasAnimation);
9556
9589
  if (!((null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) !== states.length || states.some((stateName, index) => this.currentStates[index] !== stateName))) return;
9590
+ this.stateSort && (states = states.sort(this.stateSort));
9557
9591
  const stateAttrs = {};
9558
9592
  states.forEach(stateName => {
9559
9593
  var _a;
@@ -9737,7 +9771,7 @@
9737
9771
  });
9738
9772
  }
9739
9773
  release() {
9740
- this.releaseStatus = "released", this.stopAnimates(), application.graphicService.onRelease(this);
9774
+ this.releaseStatus = "released", this.stopAnimates(), application.graphicService.onRelease(this), super.release();
9741
9775
  }
9742
9776
  _emitCustomEvent(type, context) {
9743
9777
  var _a, _b;
@@ -17144,12 +17178,12 @@
17144
17178
  throw new Error("暂不支持");
17145
17179
  }
17146
17180
  release() {
17147
- var _a, _b;
17181
+ var _a, _b, _d;
17148
17182
  super.release(), this.hooks.beforeRender.unTap("constructor", this.beforeRender), this.hooks.afterRender.unTap("constructor", this.afterRender), this.eventSystem && this.eventSystem.release(), this.layerService.releaseStage(this), this.pluginService.release(), this.forEach(layer => {
17149
17183
  layer.release();
17150
17184
  }), this.interactiveLayer && (this.interactiveLayer.forEachChildren(item => {
17151
17185
  item.setStage && item.setStage(null, null), this.interactiveLayer.removeChild(item);
17152
- }), this.interactiveLayer.release()), this.window.release(), null === (_a = this._ticker) || void 0 === _a || _a.remTimeline(null == this ? void 0 : this.timeline), null === (_b = this._ticker) || void 0 === _b || _b.removeListener("tick", this.afterTickCb), this.renderService.renderTreeRoots = [];
17186
+ }), this.interactiveLayer.release()), this.window.release(), null === (_a = this._ticker) || void 0 === _a || _a.remTimeline(null == this ? void 0 : this.timeline), null === (_b = this._ticker) || void 0 === _b || _b.removeListener("tick", this.afterTickCb), this.params.ticker || null === (_d = this._ticker) || void 0 === _d || _d.release(), this.renderService.renderTreeRoots = [];
17153
17187
  }
17154
17188
  setStage(stage) {}
17155
17189
  dirty(b, matrix) {
@@ -18390,9 +18424,11 @@
18390
18424
  }
18391
18425
  emitEvent(type, e) {
18392
18426
  if (!this.element) return;
18393
- const listeners = this.element._events[WILDCARD];
18427
+ const events = this.element._events;
18428
+ this._callListeners(type, e, events[WILDCARD]), this._callListeners(type, e, events[type]), this.emit(type, e);
18429
+ }
18430
+ _callListeners(type, e, listeners) {
18394
18431
  if (listeners) if ("fn" in listeners) listeners.fn.call(listeners.context, e, type);else for (let i = 0, j = listeners.length; i < j && !e.propagationImmediatelyStopped; i++) listeners[i].fn.call(listeners[i].context, e, type);
18395
- this.emit(type, e);
18396
18432
  }
18397
18433
  }
18398
18434
 
@@ -18526,7 +18562,7 @@
18526
18562
  return !!this._inuse;
18527
18563
  }
18528
18564
  set inuse(use) {
18529
- use !== !!this._inuse && (this._inuse = use, use ? (this.nativeContext.save(), this.reset()) : this.nativeContext.restore());
18565
+ use !== !!this._inuse && (this._inuse = use, use ? (this.nativeContext.save(), this.reset()) : (this.nativeContext.restore(), this._font = ""));
18530
18566
  }
18531
18567
  constructor(canvas, dpr) {
18532
18568
  this.fillAttributes = Object.assign(Object.assign({}, DefaultFillStyle), {
@@ -21263,14 +21299,20 @@
21263
21299
  x: x,
21264
21300
  y: y
21265
21301
  } = this.stage.eventPointTransform(e);
21266
- let currentScrollValue,
21267
- currentPos,
21302
+ let currentPos,
21303
+ currentScrollValue = 0,
21268
21304
  delta = 0;
21269
21305
  const {
21270
- width: width,
21271
- height: height
21272
- } = this.getSliderRenderBounds();
21273
- return "vertical" === direction ? (currentPos = y, delta = currentPos - this._prePos, currentScrollValue = delta / height) : (currentPos = x, delta = currentPos - this._prePos, currentScrollValue = delta / width), [currentPos, currentScrollValue];
21306
+ width: width,
21307
+ height: height
21308
+ } = this.getSliderRenderBounds(),
21309
+ track = "vertical" === direction ? height : width,
21310
+ travel = Math.max(track - this._sliderSize, 0),
21311
+ {
21312
+ range: range
21313
+ } = this.attribute,
21314
+ ratio = clamp$3(range[1] - range[0], 0, 1);
21315
+ return "vertical" === direction ? (currentPos = y, delta = currentPos - this._prePos) : (currentPos = x, delta = currentPos - this._prePos), currentScrollValue = travel > 0 && ratio < 1 ? delta / travel * (1 - ratio) : 0, [currentPos, currentScrollValue];
21274
21316
  }, this._onSliderPointerMove = e => {
21275
21317
  const {
21276
21318
  stopSliderMovePropagation = !0
@@ -21414,15 +21456,24 @@
21414
21456
  }
21415
21457
  _getSliderPos(range) {
21416
21458
  const {
21417
- direction: direction
21459
+ direction: direction,
21460
+ minSliderSize = 0
21418
21461
  } = this.attribute,
21419
21462
  {
21420
21463
  width: width,
21421
21464
  height: height,
21422
21465
  x1: x1,
21423
21466
  y1: y1
21424
- } = this.getSliderRenderBounds();
21425
- return "horizontal" === direction ? [width * range[0] + x1, width * range[1] + x1] : [height * range[0] + y1, height * range[1] + y1];
21467
+ } = this.getSliderRenderBounds(),
21468
+ track = "horizontal" === direction ? width : height,
21469
+ origin = "horizontal" === direction ? x1 : y1,
21470
+ start = clamp$3(range[0], 0, 1),
21471
+ end = clamp$3(range[1], 0, 1),
21472
+ ratio = clamp$3(end - start, 0, 1),
21473
+ L = Math.max(ratio * track, minSliderSize),
21474
+ T = Math.max(track - L, 0),
21475
+ pStart = origin + start / Math.max(1 - ratio, 1e-12) * T;
21476
+ return [pStart, pStart + L];
21426
21477
  }
21427
21478
  _getScrollRange() {
21428
21479
  if (this._sliderLimitRange) return this._sliderLimitRange;
@@ -21453,7 +21504,7 @@
21453
21504
  this._sliderRenderBounds = null, this._sliderLimitRange = null;
21454
21505
  }
21455
21506
  release(all) {
21456
- super.release(all), ("browser" === vglobal.env ? vglobal : this.stage).addEventListener("touchmove", this._handleTouchMove, {
21507
+ super.release(all), ("browser" === vglobal.env ? vglobal : this.stage).removeEventListener("touchmove", this._handleTouchMove, {
21457
21508
  passive: !1
21458
21509
  }), this._clearDragEvents();
21459
21510
  }
@@ -21462,6 +21513,7 @@
21462
21513
  direction: "horizontal",
21463
21514
  round: !0,
21464
21515
  sliderSize: 20,
21516
+ minSliderSize: 0,
21465
21517
  sliderStyle: {
21466
21518
  fill: "rgba(0, 0, 0, .5)"
21467
21519
  },
@@ -23035,17 +23087,21 @@
23035
23087
  } = this.attribute.label;
23036
23088
  textStyle = isFunction$7(textStyle) ? merge$2({}, DEFAULT_AXIS_THEME.label.style, textStyle(tickDatum, index, tickData, layer)) : textStyle;
23037
23089
  const labelAlign = this.getLabelAlign(vector, inside, textStyle.angle);
23038
- return textStyle = merge$2(labelAlign, textStyle), isFunction$7(textStyle.text) && (textStyle.text = textStyle.text({
23090
+ textStyle = merge$2(labelAlign, textStyle), isFunction$7(textStyle.text) && (textStyle.text = textStyle.text({
23039
23091
  label: tickDatum.label,
23040
23092
  value: tickDatum.rawValue,
23041
23093
  index: tickDatum.index,
23042
23094
  layer: layer
23043
- })), Object.assign(Object.assign(Object.assign({}, this.getLabelPosition(point, vector, textContent, textStyle)), {
23095
+ }));
23096
+ let reactStyle = textStyle.react;
23097
+ return isFunction$7(reactStyle) && (reactStyle = reactStyle(tickDatum, index, tickData, layer)), Object.assign(Object.assign(Object.assign(Object.assign({}, this.getLabelPosition(point, vector, textContent, textStyle)), {
23044
23098
  text: null != text ? text : textContent,
23045
23099
  _originText: tickDatum.label,
23046
23100
  lineHeight: null == textStyle ? void 0 : textStyle.fontSize,
23047
23101
  type: type
23048
- }), textStyle);
23102
+ }), textStyle), {
23103
+ react: reactStyle
23104
+ });
23049
23105
  }
23050
23106
  getLabelPosition(point, vector, text, style) {
23051
23107
  return point;
@@ -23191,9 +23247,10 @@
23191
23247
  } = rotateConfig;
23192
23248
  if (0 === labelRotateAngle.length || items.some(item => !!item.attribute.angle)) return;
23193
23249
  let i = 0,
23194
- n = 0;
23195
- for (labelRotateAngle && labelRotateAngle.length > 0 && (n = labelRotateAngle.length); i < n;) {
23196
- const angle = labelRotateAngle[i++];
23250
+ n = 0,
23251
+ testAngle = labelRotateAngle;
23252
+ for (items.length > 2 && ("bottom" === orient || "top" === orient ? Math.abs(items[1].attribute.x - items[0].attribute.x) < items[0].attribute.fontSize / 2 && (testAngle = [labelRotateAngle[labelRotateAngle.length - 1]]) : Math.abs(items[1].attribute.y - items[0].attribute.y) < items[0].attribute.fontSize / 2 && (testAngle = [labelRotateAngle[labelRotateAngle.length - 1]])), testAngle && testAngle.length > 0 && (n = testAngle.length); i < n;) {
23253
+ const angle = testAngle[i++];
23197
23254
  if (items.forEach(item => {
23198
23255
  item.attribute.angle = degreeToRadian$1(angle);
23199
23256
  }), tryRotate(orient, items), !hasIntersect(items)) break;
@@ -24073,6 +24130,8 @@
24073
24130
  this.status === STATUS$1.RUNNING && (this.tickCounts++, this.timelines.forEach(timeline => {
24074
24131
  timeline.tick(delta);
24075
24132
  }), this.emit("tick", delta));
24133
+ }, this._handleGraphTick = () => {
24134
+ this.initHandler(!1);
24076
24135
  }, this.init(), this.lastFrameTime = -1, this.tickCounts = 0, this.stage = stage, this.autoStop = !0, this.interval = 16, this.computeTimeOffsetAndJitter();
24077
24136
  }
24078
24137
  bindStage(stage) {
@@ -24082,9 +24141,7 @@
24082
24141
  this.timeOffset = Math.floor(Math.random() * this.interval), this._jitter = Math.min(Math.max(.2 * this.interval, 6), .7 * this.interval);
24083
24142
  }
24084
24143
  init() {
24085
- this.interval = 16, this.status = STATUS$1.INITIAL, application.global.hooks.onSetEnv.tap("graph-ticker", () => {
24086
- this.initHandler(!1);
24087
- }), application.global.env && this.initHandler(!1);
24144
+ this.interval = 16, this.status = STATUS$1.INITIAL, application.global.hooks.onSetEnv.tap("graph-ticker", this._handleGraphTick), application.global.env && this.initHandler(!1);
24088
24145
  }
24089
24146
  addTimeline(timeline) {
24090
24147
  this.timelines.push(timeline);
@@ -24157,7 +24214,7 @@
24157
24214
  }
24158
24215
  release() {
24159
24216
  var _a;
24160
- this.stop(), this.timelines = [], null === (_a = this.tickerHandler) || void 0 === _a || _a.release(), this.tickerHandler = null, this.lastFrameTime = -1;
24217
+ this.stop(), this.timelines = [], null === (_a = this.tickerHandler) || void 0 === _a || _a.release(), this.tickerHandler = null, this.lastFrameTime = -1, application.global.hooks.onSetEnv.unTap("graph-ticker", this._handleGraphTick);
24161
24218
  }
24162
24219
  checkSkip(delta) {
24163
24220
  var _a, _b, _c;
@@ -24263,6 +24320,18 @@
24263
24320
  }
24264
24321
  AnimationTransitionRegistry.getInstance();
24265
24322
 
24323
+ function getCustomType(custom) {
24324
+ if (!custom || !isFunction$7(custom)) return 0;
24325
+ const functionStr = Function.prototype.toString.call(custom);
24326
+ if (/^class\s/.test(functionStr)) return 1;
24327
+ if (!custom.prototype) return 2;
24328
+ if (custom.prototype.constructor === custom) {
24329
+ const descriptor = Object.getOwnPropertyDescriptor(custom, "prototype");
24330
+ if (descriptor && !descriptor.writable) return 1;
24331
+ }
24332
+ return 2;
24333
+ }
24334
+
24266
24335
  class AnimateExecutor {
24267
24336
  static registerBuiltInAnimate(name, animate) {
24268
24337
  AnimateExecutor.builtInAnimateMap[name] = animate;
@@ -24292,8 +24361,8 @@
24292
24361
  }
24293
24362
  parseParams(params, isTimeline, child) {
24294
24363
  var _a, _b;
24295
- const totalTime = this.resolveValue(params.totalTime, void 0, void 0),
24296
- startTime = this.resolveValue(params.startTime, void 0, 0),
24364
+ const totalTime = this.resolveValue(params.totalTime, child, void 0),
24365
+ startTime = this.resolveValue(params.startTime, child, 0),
24297
24366
  parsedParams = Object.assign({}, params);
24298
24367
  parsedParams.oneByOneDelay = 0, parsedParams.startTime = startTime, parsedParams.totalTime = totalTime;
24299
24368
  const oneByOne = this.resolveValue(params.oneByOne, child, !1);
@@ -24327,7 +24396,7 @@
24327
24396
  effects: effects.map(effect => {
24328
24397
  var _a, _b;
24329
24398
  const custom = null !== (_a = effect.custom) && void 0 !== _a ? _a : AnimateExecutor.builtInAnimateMap[null !== (_b = effect.type) && void 0 !== _b ? _b : "fromTo"],
24330
- customType = custom && isFunction$7(custom) ? /^class\s/.test(Function.prototype.toString.call(custom)) ? 1 : 2 : 0;
24399
+ customType = getCustomType(custom);
24331
24400
  return Object.assign(Object.assign({}, effect), {
24332
24401
  custom: custom,
24333
24402
  customType: customType
@@ -24341,12 +24410,11 @@
24341
24410
  duration = this.resolveValue(params.duration, child, 300);
24342
24411
  let oneByOneDelay = 0;
24343
24412
  oneByOne && (oneByOneDelay = "number" == typeof oneByOne ? oneByOne : oneByOne ? delay + delayAfter + duration : 0), parsedParams.oneByOneDelay = oneByOneDelay, parsedParams.custom = null !== (_a = params.custom) && void 0 !== _a ? _a : AnimateExecutor.builtInAnimateMap[null !== (_b = params.type) && void 0 !== _b ? _b : "fromTo"];
24344
- const customType = parsedParams.custom && isFunction$7(parsedParams.custom) ? /^class\s/.test(Function.prototype.toString.call(parsedParams.custom)) ? 1 : 2 : 0;
24345
- if (parsedParams.customType = customType, totalTime) {
24346
- const _totalTime = delay + delayAfter + duration + oneByOneDelay * (this._target.count - 2),
24347
- scale = totalTime ? totalTime / _totalTime : 1;
24348
- parsedParams.delay = delay * scale, parsedParams.delayAfter = delayAfter * scale, parsedParams.duration = duration * scale, parsedParams.oneByOneDelay = oneByOneDelay * scale, parsedParams.startTime = startTime;
24349
- }
24413
+ const customType = getCustomType(parsedParams.custom);
24414
+ parsedParams.customType = customType;
24415
+ const _totalTime = delay + delayAfter + duration + oneByOneDelay * (this._target.count - 2),
24416
+ scale = isValidNumber$3(totalTime) ? totalTime / _totalTime : 1;
24417
+ parsedParams.delay = delay * scale, parsedParams.delayAfter = delayAfter * scale, parsedParams.duration = duration * scale, parsedParams.oneByOneDelay = oneByOneDelay * scale, parsedParams.startTime = startTime;
24350
24418
  }
24351
24419
  return parsedParams;
24352
24420
  }
@@ -24406,7 +24474,7 @@
24406
24474
  let parsedFromProps = null,
24407
24475
  props = params.to,
24408
24476
  from = params.from;
24409
- props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), from = parsedFromProps.from), this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic);
24477
+ props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), from = parsedFromProps.from), parsedFromProps.attrOutChannel && graphic.setAttributes(parsedFromProps.attrOutChannel), this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic);
24410
24478
  let totalDelay = 0;
24411
24479
  oneByOneDelay && (totalDelay = oneByOneDelay * (count - index - 1));
24412
24480
  const delayAfterValue = isFunction$7(delayAfter) ? delayAfter(null === (_h = null === (_g = graphic.context) || void 0 === _g ? void 0 : _g.data) || void 0 === _h ? void 0 : _h[0], graphic, {}) : delayAfter;
@@ -24415,6 +24483,7 @@
24415
24483
  _handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic) {
24416
24484
  var _a, _b, _c, _d, _e, _f, _g, _h;
24417
24485
  if (custom && customType) {
24486
+ customType = getCustomType(custom);
24418
24487
  let customParams = this.resolveValue(customParameters, graphic);
24419
24488
  "function" == typeof customParams && (customParams = customParams(null === (_b = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.data) || void 0 === _b ? void 0 : _b[0], graphic, {})), customParams = Object.assign({
24420
24489
  width: (null === (_c = graphic.stage) || void 0 === _c ? void 0 : _c.width) || 0,
@@ -24468,9 +24537,9 @@
24468
24537
  let parsedFromProps = null,
24469
24538
  props = effect.to,
24470
24539
  from = effect.from;
24471
- props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), from = parsedFromProps.from);
24540
+ props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), from = parsedFromProps.from), parsedFromProps.attrOutChannel && graphic.setAttributes(parsedFromProps.attrOutChannel);
24472
24541
  const custom = null !== (_a = effect.custom) && void 0 !== _a ? _a : AnimateExecutor.builtInAnimateMap[type],
24473
- customType = effect.customType;
24542
+ customType = effect.custom ? effect.customType : getCustomType(custom);
24474
24543
  this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic);
24475
24544
  }), delayAfterValue > 0 && animate.wait(delayAfterValue);
24476
24545
  }
@@ -24487,22 +24556,31 @@
24487
24556
  animate.play(customAnimate);
24488
24557
  }
24489
24558
  createPropsFromChannel(channel, graphic) {
24559
+ var _a;
24490
24560
  const props = {};
24491
24561
  let from = null;
24492
- return channel ? (Array.isArray(channel) ? channel.forEach(key => {
24493
- var _a, _b;
24494
- const value = null === (_b = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.diffAttrs) || void 0 === _b ? void 0 : _b[key];
24495
- void 0 !== value && (props[key] = value);
24496
- }) : Object.keys(channel).forEach(key => {
24562
+ if (!channel) return {
24563
+ from: from,
24564
+ props: props,
24565
+ attrOutChannel: null
24566
+ };
24567
+ const attrOutChannel = {};
24568
+ let hasAttrs = !1;
24569
+ const diffAttrs = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.diffAttrs;
24570
+ if (Array.isArray(channel) && (channel = channel.reduce((res, key) => (void 0 === diffAttrs[key] || (res[key] = {
24571
+ to: diffAttrs[key]
24572
+ }), res), {})), Object.keys(channel).forEach(key => {
24497
24573
  var _a, _b, _c, _d;
24498
24574
  const config = channel[key];
24499
24575
  void 0 !== config.to && ("function" == typeof config.to ? props[key] = config.to(null === (_b = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.data) || void 0 === _b ? void 0 : _b[0], graphic, {}) : props[key] = config.to), void 0 !== config.from && (from || (from = {}), "function" == typeof config.from ? from[key] = config.from(null === (_d = null === (_c = graphic.context) || void 0 === _c ? void 0 : _c.data) || void 0 === _d ? void 0 : _d[0], graphic, {}) : from[key] = config.from);
24500
- }), {
24501
- from: from,
24502
- props: props
24503
- }) : {
24576
+ }), diffAttrs) for (const key in diffAttrs) {
24577
+ const value = diffAttrs[key];
24578
+ void 0 !== value && (props.hasOwnProperty(key) || (attrOutChannel[key] = value, hasAttrs = !0));
24579
+ }
24580
+ return {
24504
24581
  from: from,
24505
- props: props
24582
+ props: props,
24583
+ attrOutChannel: hasAttrs ? attrOutChannel : null
24506
24584
  };
24507
24585
  }
24508
24586
  resolveValue(value, graphic, defaultValue) {
@@ -24786,7 +24864,7 @@
24786
24864
  }
24787
24865
  class AStageAnimate extends ACustomAnimate {
24788
24866
  constructor(customFrom, customTo, duration, easing, params) {
24789
- super(customFrom, customTo, duration, easing, params), this.willCallBeforeStageRender = !0, this.willCallAfterStageRender = !0, this._beforeStageRender = () => {
24867
+ super(customFrom, customTo, duration, easing, params), this.willCallBeforeStageRender = !0, this.willCallAfterStageRender = !0, this.checkStatusAfterRender = !0, this._beforeStageRender = () => {
24790
24868
  if (!this.willCallBeforeStageRender) return;
24791
24869
  this.willCallBeforeStageRender = !1;
24792
24870
  const stage = this.target.stage,
@@ -24799,7 +24877,7 @@
24799
24877
  const stage = this.target.stage,
24800
24878
  canvas = stage.window.getContext().canvas.nativeCanvas,
24801
24879
  outputCanvas = this.afterStageRender(stage, canvas);
24802
- outputCanvas && this.renderToStage(stage, outputCanvas);
24880
+ outputCanvas && this.renderToStage(stage, outputCanvas), this.checkStatusAfterRender && this.animate.status === AnimateStatus.END && this.animate.timeline.removeAnimate(this.animate);
24803
24881
  }, this.props = {};
24804
24882
  }
24805
24883
  beforeStageRender(stage, canvas) {
@@ -29260,8 +29338,9 @@
29260
29338
  let tickLength = 0;
29261
29339
  (null === (_b = this.attribute.tick) || void 0 === _b ? void 0 : _b.visible) && !1 === this.attribute.tick.inside && (tickLength = this.attribute.tick.length || 4), (null === (_c = this.attribute.subTick) || void 0 === _c ? void 0 : _c.visible) && !1 === this.attribute.subTick.inside && (tickLength = Math.max(tickLength, this.attribute.subTick.length || 2));
29262
29340
  const offset = tickLength + labelLength + space,
29263
- titlePoint = this.getVerticalCoord(point, offset, !1),
29264
- vector = this.getVerticalVector(offset, !1, {
29341
+ actualOffset = this.getActualOffset(offset),
29342
+ titlePoint = this.getVerticalCoord(point, actualOffset, !1),
29343
+ vector = this.getVerticalVector(actualOffset, !1, {
29265
29344
  x: 0,
29266
29345
  y: 0
29267
29346
  });
@@ -29290,11 +29369,11 @@
29290
29369
  if (angle !== Math.PI / 2) {
29291
29370
  const cosValue = Math.abs(Math.cos(null != angle ? angle : 0));
29292
29371
  maxTagWidth = cosValue < 1e-6 ? 1 / 0 : this.attribute.end.x / cosValue;
29293
- } else maxTagWidth = limitSize - offset;
29372
+ } else maxTagWidth = limitSize - actualOffset;
29294
29373
  } else if (angle && 0 !== angle) {
29295
29374
  const sinValue = Math.abs(Math.sin(angle));
29296
29375
  maxTagWidth = sinValue < 1e-6 ? 1 / 0 : this.attribute.end.y / sinValue;
29297
- } else maxTagWidth = limitSize - offset;
29376
+ } else maxTagWidth = limitSize - actualOffset;
29298
29377
  }
29299
29378
  }
29300
29379
  const attrs = Object.assign(Object.assign(Object.assign({}, titlePoint), restAttrs), {
@@ -29599,6 +29678,10 @@
29599
29678
  visibleAll: !1
29600
29679
  });
29601
29680
  }
29681
+ getActualOffset(offset) {
29682
+ const orient = this.attribute.orient;
29683
+ return "left" === orient || "right" === orient ? this.attribute.width ? this.attribute.width : (this.attribute.maxWidth && (offset = Math.min(offset, this.attribute.maxWidth)), this.attribute.minWidth && (offset = Math.max(offset, this.attribute.minWidth)), offset) : offset;
29684
+ }
29602
29685
  release() {
29603
29686
  super.release(), this._breaks = null;
29604
29687
  }
@@ -32124,7 +32207,7 @@
32124
32207
  };
32125
32208
  }
32126
32209
  release(all) {
32127
- super.release(all), ("browser" === vglobal.env ? vglobal : this.stage).addEventListener("touchmove", this._handleTouchMove, {
32210
+ super.release(all), ("browser" === vglobal.env ? vglobal : this.stage).removeEventListener("touchmove", this._handleTouchMove, {
32128
32211
  passive: !1
32129
32212
  }), this._clearAllDragEvents();
32130
32213
  }
@@ -70188,7 +70271,7 @@
70188
70271
  return TABLE_EVENT_TYPE;
70189
70272
  }
70190
70273
  options;
70191
- version = "1.22.8-alpha.2";
70274
+ version = "1.22.8-alpha.3";
70192
70275
  pagination;
70193
70276
  id = `VTable${Date.now()}`;
70194
70277
  headerStyleCache;
@@ -71748,6 +71831,11 @@
71748
71831
  this.release();
71749
71832
  }
71750
71833
  release() {
71834
+ this.scenegraph?.component?.vScrollBar?.release();
71835
+ this.scenegraph?.component?.hScrollBar?.release();
71836
+ this.animationManager.clear();
71837
+ this.animationManager.ticker.release();
71838
+ this.scenegraph?.stage?.ticker?.release();
71751
71839
  const internalProps = this.internalProps;
71752
71840
  if (this.isReleased) {
71753
71841
  return;
@@ -94940,7 +95028,7 @@
94940
95028
  }
94941
95029
 
94942
95030
  registerForVrender();
94943
- const version = "1.22.8-alpha.2";
95031
+ const version = "1.22.8-alpha.3";
94944
95032
  function getIcons() {
94945
95033
  return get$2();
94946
95034
  }