@visactor/vchart 2.1.2-alpha.10 → 2.1.2-alpha.11

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.
Files changed (66) hide show
  1. package/build/tsconfig.tsbuildinfo +1 -1
  2. package/cjs/animation/callback-disappear.d.ts +1 -1
  3. package/cjs/animation/callback-disappear.js.map +1 -1
  4. package/cjs/constant/animate.js +1 -1
  5. package/cjs/constant/attribute.js +1 -1
  6. package/cjs/constant/base.js +1 -1
  7. package/cjs/constant/box-plot.js +1 -1
  8. package/cjs/constant/correlation.js +1 -1
  9. package/cjs/constant/data.js +1 -1
  10. package/cjs/constant/event.js +2 -1
  11. package/cjs/constant/funnel.js +1 -1
  12. package/cjs/constant/gradient.js +1 -1
  13. package/cjs/constant/hierarchy.js +1 -1
  14. package/cjs/constant/label.js +1 -1
  15. package/cjs/constant/layout.js +1 -1
  16. package/cjs/constant/marker.js +1 -1
  17. package/cjs/constant/polar.js +1 -1
  18. package/cjs/core/vchart.js +1 -1
  19. package/cjs/env/env.js +1 -1
  20. package/cjs/env/index.js +1 -1
  21. package/cjs/event/bubble.js +1 -1
  22. package/cjs/event/event-dispatcher.js +1 -1
  23. package/cjs/event/event.js +1 -1
  24. package/cjs/event/index.js +1 -1
  25. package/cjs/event/interface.js +1 -1
  26. package/cjs/interaction/config.js +1 -1
  27. package/cjs/interaction/index.js +1 -1
  28. package/cjs/interaction/interaction.js +1 -1
  29. package/cjs/layout/base-layout.js +1 -1
  30. package/cjs/layout/index.js +1 -1
  31. package/cjs/layout/interface.js +1 -1
  32. package/cjs/layout/layout-item.js +1 -2
  33. package/cjs/layout/util.js +1 -1
  34. package/esm/animation/callback-disappear.d.ts +1 -1
  35. package/esm/animation/callback-disappear.js.map +1 -1
  36. package/esm/constant/animate.js +1 -1
  37. package/esm/constant/attribute.js +1 -1
  38. package/esm/constant/base.js +1 -1
  39. package/esm/constant/box-plot.js +1 -1
  40. package/esm/constant/correlation.js +1 -1
  41. package/esm/constant/data.js +1 -1
  42. package/esm/constant/event.js +2 -1
  43. package/esm/constant/funnel.js +1 -1
  44. package/esm/constant/gradient.js +1 -1
  45. package/esm/constant/hierarchy.js +1 -1
  46. package/esm/constant/label.js +1 -1
  47. package/esm/constant/layout.js +1 -1
  48. package/esm/constant/marker.js +1 -1
  49. package/esm/constant/polar.js +1 -1
  50. package/esm/core/vchart.js +1 -1
  51. package/esm/env/env.js +1 -1
  52. package/esm/env/index.js +1 -1
  53. package/esm/event/bubble.js +1 -1
  54. package/esm/event/event-dispatcher.js +1 -1
  55. package/esm/event/event.js +1 -1
  56. package/esm/event/index.js +1 -1
  57. package/esm/event/interface.js +1 -1
  58. package/esm/interaction/config.js +1 -1
  59. package/esm/interaction/index.js +1 -1
  60. package/esm/interaction/interaction.js +1 -1
  61. package/esm/layout/base-layout.js +1 -1
  62. package/esm/layout/index.js +1 -1
  63. package/esm/layout/interface.js +1 -1
  64. package/esm/layout/layout-item.js +1 -2
  65. package/esm/layout/util.js +1 -1
  66. package/package.json +9 -9
@@ -1,5 +1,5 @@
1
1
  import { AStageAnimate } from '@visactor/vrender-animate/custom/custom-animate';
2
- import { EasingType } from '@visactor/vrender-core';
2
+ import type { EasingType } from '@visactor/vrender-core';
3
3
  export declare class CallbackDisappearAnimate extends AStageAnimate<any> {
4
4
  protected currentAnimationRatio: number;
5
5
  protected animationTime: number;
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/animation/callback-disappear.ts"],"names":[],"mappings":";;;AAAA,oFAAgF;AAMhF,MAAa,wBAAyB,SAAQ,8BAAkB;IAI9D,YAAY,IAAU,EAAE,EAAQ,EAAE,QAAgB,EAAE,MAAkB,EAAE,MAAW;QACjF,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QAJlC,0BAAqB,GAAG,CAAC,CAAC;QAC1B,kBAAa,GAAG,CAAC,CAAC;IAI5B,CAAC;IAED,QAAQ,CAAC,GAAY,EAAE,KAAa,EAAE,GAAQ;QAC5C,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;QAChC,IAAI,CAAC,qBAAqB,GAAG,KAAK,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,KAAK,GAAG,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;IAC3C,CAAC;IAKS,gBAAgB;QACxB,IAAI,IAAI,CAAC,qBAAqB,GAAG,CAAC,EAAE;YAClC,OAAO,IAAI,CAAC,aAAa,CAAC;SAC3B;QACD,OAAO,IAAI,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC;IAC7B,CAAC;IAES,gBAAgB,CAAC,KAAU,EAAE,MAAyB;;QAC9D,OAAO,MAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,QAAQ,mDAAG,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,qBAAqB,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IAChG,CAAC;CACF;AA3BD,4DA2BC","file":"callback-disappear.js","sourcesContent":["import { AStageAnimate } from '@visactor/vrender-animate/custom/custom-animate';\nimport { EasingType } from '@visactor/vrender-core';\n\n/**\n * 特效动画基类,提取公共的WebGL和Canvas 2D操作\n */\nexport class CallbackDisappearAnimate extends AStageAnimate<any> {\n protected currentAnimationRatio = 0;\n protected animationTime = 0;\n\n constructor(from: null, to: null, duration: number, easing: EasingType, params: any) {\n super(from, to, duration, easing, params);\n }\n\n onUpdate(end: boolean, ratio: number, out: any): void {\n super.onUpdate(end, ratio, out);\n this.currentAnimationRatio = ratio;\n this.animationTime = ratio * Math.PI * 2;\n }\n\n /**\n * 获取基于动画进度的时间\n */\n protected getAnimationTime(): number {\n if (this.currentAnimationRatio > 0) {\n return this.animationTime;\n }\n return Date.now() / 1000.0;\n }\n\n protected afterStageRender(stage: any, canvas: HTMLCanvasElement): void {\n return this.params?.callBack?.(stage, canvas, this.currentAnimationRatio, this.animationTime);\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/animation/callback-disappear.ts"],"names":[],"mappings":";;;AAAA,oFAAgF;AAMhF,MAAa,wBAAyB,SAAQ,8BAAkB;IAI9D,YAAY,IAAU,EAAE,EAAQ,EAAE,QAAgB,EAAE,MAAkB,EAAE,MAAW;QACjF,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QAJlC,0BAAqB,GAAG,CAAC,CAAC;QAC1B,kBAAa,GAAG,CAAC,CAAC;IAI5B,CAAC;IAED,QAAQ,CAAC,GAAY,EAAE,KAAa,EAAE,GAAQ;QAC5C,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;QAChC,IAAI,CAAC,qBAAqB,GAAG,KAAK,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,KAAK,GAAG,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;IAC3C,CAAC;IAKS,gBAAgB;QACxB,IAAI,IAAI,CAAC,qBAAqB,GAAG,CAAC,EAAE;YAClC,OAAO,IAAI,CAAC,aAAa,CAAC;SAC3B;QACD,OAAO,IAAI,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC;IAC7B,CAAC;IAES,gBAAgB,CAAC,KAAU,EAAE,MAAyB;;QAC9D,OAAO,MAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,QAAQ,mDAAG,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,qBAAqB,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IAChG,CAAC;CACF;AA3BD,4DA2BC","file":"callback-disappear.js","sourcesContent":["import { AStageAnimate } from '@visactor/vrender-animate/custom/custom-animate';\nimport type { EasingType } from '@visactor/vrender-core';\n\n/**\n * 特效动画基类,提取公共的WebGL和Canvas 2D操作\n */\nexport class CallbackDisappearAnimate extends AStageAnimate<any> {\n protected currentAnimationRatio = 0;\n protected animationTime = 0;\n\n constructor(from: null, to: null, duration: number, easing: EasingType, params: any) {\n super(from, to, duration, easing, params);\n }\n\n onUpdate(end: boolean, ratio: number, out: any): void {\n super.onUpdate(end, ratio, out);\n this.currentAnimationRatio = ratio;\n this.animationTime = ratio * Math.PI * 2;\n }\n\n /**\n * 获取基于动画进度的时间\n */\n protected getAnimationTime(): number {\n if (this.currentAnimationRatio > 0) {\n return this.animationTime;\n }\n return Date.now() / 1000.0;\n }\n\n protected afterStageRender(stage: any, canvas: HTMLCanvasElement): void {\n return this.params?.callBack?.(stage, canvas, this.currentAnimationRatio, this.animationTime);\n }\n}\n"]}
@@ -12,4 +12,4 @@ exports.BuiltIn_DISAPPEAR_ANIMATE_NAME = `${core_1.PREFIX}_BuiltIn_CallBack_Disa
12
12
  function(RenderStateEnum) {
13
13
  RenderStateEnum.render = "render", RenderStateEnum.disappear = "disappear";
14
14
  }(RenderStateEnum = exports.RenderStateEnum || (exports.RenderStateEnum = {}));
15
- //# sourceMappingURL=animate.js.map
15
+ //# sourceMappingURL=animate.js.map
@@ -12,4 +12,4 @@ Object.defineProperty(exports, "__esModule", {
12
12
  AttributeLevel[AttributeLevel.User_Mark = 8] = "User_Mark", AttributeLevel[AttributeLevel.User_SeriesStyle = 9] = "User_SeriesStyle",
13
13
  AttributeLevel[AttributeLevel.Built_In = 99] = "Built_In";
14
14
  }(AttributeLevel = exports.AttributeLevel || (exports.AttributeLevel = {}));
15
- //# sourceMappingURL=attribute.js.map
15
+ //# sourceMappingURL=attribute.js.map
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  }), exports.DEFAULT_CHART_HEIGHT = exports.DEFAULT_CHART_WIDTH = exports.PREFIX = void 0,
6
6
  exports.PREFIX = "__VCHART", exports.DEFAULT_CHART_WIDTH = 500, exports.DEFAULT_CHART_HEIGHT = 500;
7
- //# sourceMappingURL=base.js.map
7
+ //# sourceMappingURL=base.js.map
@@ -14,4 +14,4 @@ function(BOX_PLOT_TOOLTIP_KEYS) {
14
14
  BOX_PLOT_TOOLTIP_KEYS.MEDIAN = "median", BOX_PLOT_TOOLTIP_KEYS.Q1 = "q1", BOX_PLOT_TOOLTIP_KEYS.Q3 = "q3",
15
15
  BOX_PLOT_TOOLTIP_KEYS.SERIES_FIELD = "seriesField";
16
16
  }(BOX_PLOT_TOOLTIP_KEYS = exports.BOX_PLOT_TOOLTIP_KEYS || (exports.BOX_PLOT_TOOLTIP_KEYS = {}));
17
- //# sourceMappingURL=box-plot.js.map
17
+ //# sourceMappingURL=box-plot.js.map
@@ -8,4 +8,4 @@ const base_1 = require("./base");
8
8
 
9
9
  exports.CORRELATION_X = `${base_1.PREFIX}_CORRELATION_X`, exports.CORRELATION_Y = `${base_1.PREFIX}_CORRELATION_Y`,
10
10
  exports.CORRELATION_SIZE = `${base_1.PREFIX}_CORRELATION_SIZE`;
11
- //# sourceMappingURL=correlation.js.map
11
+ //# sourceMappingURL=correlation.js.map
@@ -21,4 +21,4 @@ exports.MOSAIC_CAT_START_PERCENT = `${base_1.PREFIX}_MOSAIC_CAT_START_PERCENT`,
21
21
  exports.MOSAIC_CAT_END_PERCENT = `${base_1.PREFIX}_MOSAIC_CAT_END_PERCENT`, exports.SEGMENT_FIELD_START = `${base_1.PREFIX}_SEGMENT_START`,
22
22
  exports.SEGMENT_FIELD_END = `${base_1.PREFIX}_SEGMENT_END`, exports.DEFAULT_KEY = `${base_1.PREFIX}_KEY`,
23
23
  exports.DEFAULT_MAP_LOOK_UP_KEY = `${base_1.PREFIX}_MAP_LOOK_UP_KEY`;
24
- //# sourceMappingURL=data.js.map
24
+ //# sourceMappingURL=data.js.map
@@ -61,4 +61,5 @@ function(Event_Bubble_Level) {
61
61
  Event_Bubble_Level.vchart = "vchart", Event_Bubble_Level.chart = "chart", Event_Bubble_Level.model = "model",
62
62
  Event_Bubble_Level.mark = "mark";
63
63
  }(Event_Bubble_Level = exports.Event_Bubble_Level || (exports.Event_Bubble_Level = {})),
64
- exports.EventBubbleLevels = [ Event_Bubble_Level.mark, Event_Bubble_Level.model, Event_Bubble_Level.chart, Event_Bubble_Level.vchart ];
64
+ exports.EventBubbleLevels = [ Event_Bubble_Level.mark, Event_Bubble_Level.model, Event_Bubble_Level.chart, Event_Bubble_Level.vchart ];
65
+ //# sourceMappingURL=event.js.map
@@ -13,4 +13,4 @@ exports.FUNNEL_LAST_VALUE = `${base_1.PREFIX}_FUNNEL_LAST_VALUE`, exports.FUNNEL
13
13
  exports.FUNNEL_NEXT_VALUE = `${base_1.PREFIX}_FUNNEL_NEXT_VALUE`, exports.FUNNEL_TRANSFORM_LEVEL = `${base_1.PREFIX}_FUNNEL_TRANSFORM_LEVEL`,
14
14
  exports.FUNNEL_LABEL_LINE_LENGTH = 20, exports.FUNNEL_LABEL_SPACE_WIDTH = 5, exports.FUNNEL_MAX_SIZE = "80%",
15
15
  exports.FUNNEL_MIN_SIZE = 0;
16
- //# sourceMappingURL=funnel.js.map
16
+ //# sourceMappingURL=funnel.js.map
@@ -25,4 +25,4 @@ exports.GradientType = [ "linear", "radial", "conical" ], exports.DEFAULT_LINEAR
25
25
  radial: exports.DEFAULT_RADIAL_GRADIENT_CONFIG,
26
26
  conical: exports.DEFAULT_CONICAL_GRADIENT_CONFIG
27
27
  };
28
- //# sourceMappingURL=gradient.js.map
28
+ //# sourceMappingURL=gradient.js.map
@@ -8,4 +8,4 @@ const base_1 = require("./base");
8
8
 
9
9
  exports.DEFAULT_HIERARCHY_DEPTH = `${base_1.PREFIX}_HIERARCHY_DEPTH`, exports.DEFAULT_HIERARCHY_ROOT = `${base_1.PREFIX}_HIERARCHY_ROOT`,
10
10
  exports.DEFAULT_HIERARCHY_ROOT_INDEX = `${base_1.PREFIX}_HIERARCHY_ROOT_INDEX`;
11
- //# sourceMappingURL=hierarchy.js.map
11
+ //# sourceMappingURL=hierarchy.js.map
@@ -9,4 +9,4 @@ const base_1 = require("./base");
9
9
  exports.DEFAULT_LABEL_LIMIT = `${base_1.PREFIX}_LABEL_LIMIT`, exports.DEFAULT_LABEL_ALIGN = `${base_1.PREFIX}_LABEL_ALIGN`,
10
10
  exports.DEFAULT_LABEL_TEXT = `${base_1.PREFIX}_LABEL_TEXT`, exports.DEFAULT_LABEL_VISIBLE = `${base_1.PREFIX}_LABEL_VISIBLE`,
11
11
  exports.DEFAULT_LABEL_X = `${base_1.PREFIX}_LABEL_X`, exports.DEFAULT_LABEL_Y = `${base_1.PREFIX}_LABEL_Y`;
12
- //# sourceMappingURL=label.js.map
12
+ //# sourceMappingURL=label.js.map
@@ -25,4 +25,4 @@ function(LayoutZIndex) {
25
25
  LayoutLevel[LayoutLevel.Legend = 50] = "Legend", LayoutLevel[LayoutLevel.Title = 70] = "Title",
26
26
  LayoutLevel[LayoutLevel.CustomMark = 70] = "CustomMark";
27
27
  }(LayoutLevel = exports.LayoutLevel || (exports.LayoutLevel = {}));
28
- //# sourceMappingURL=layout.js.map
28
+ //# sourceMappingURL=layout.js.map
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  }), exports.REGRESS_TYPE = exports.AGGR_TYPE = void 0, exports.AGGR_TYPE = [ "sum", "average", "min", "max", "variance", "standardDeviation", "median" ],
6
6
  exports.REGRESS_TYPE = [ "regression" ];
7
- //# sourceMappingURL=marker.js.map
7
+ //# sourceMappingURL=marker.js.map
@@ -12,4 +12,4 @@ exports.ARC_K = `${base_1.PREFIX}_ARC_K`, exports.ARC_MIDDLE_ANGLE = `${base_1.P
12
12
  exports.ARC_QUADRANT = `${base_1.PREFIX}_ARC_QUADRANT`, exports.ARC_RADIAN = `${base_1.PREFIX}_ARC_RADIAN`,
13
13
  exports.POLAR_START_RADIAN = -Math.PI / 2, exports.POLAR_END_RADIAN = 3 * Math.PI / 2,
14
14
  exports.POLAR_START_ANGLE = -90, exports.POLAR_END_ANGLE = 270, exports.POLAR_DEFAULT_RADIUS = .6;
15
- //# sourceMappingURL=polar.js.map
15
+ //# sourceMappingURL=polar.js.map
@@ -975,4 +975,4 @@ const registerVChartCore = () => {
975
975
  };
976
976
 
977
977
  exports.registerVChartCore = registerVChartCore, (0, exports.registerVChartCore)();
978
- //# sourceMappingURL=vchart.js.map
978
+ //# sourceMappingURL=vchart.js.map
package/cjs/env/env.js CHANGED
@@ -57,4 +57,4 @@ const registerHarmonyEnv = () => {
57
57
  };
58
58
 
59
59
  exports.registerHarmonyEnv = registerHarmonyEnv;
60
- //# sourceMappingURL=env.js.map
60
+ //# sourceMappingURL=env.js.map
package/cjs/env/index.js CHANGED
@@ -18,4 +18,4 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
18
18
  Object.defineProperty(exports, "__esModule", {
19
19
  value: !0
20
20
  }), __exportStar(require("./env"), exports);
21
- //# sourceMappingURL=index.js.map
21
+ //# sourceMappingURL=index.js.map
@@ -51,4 +51,4 @@ class Bubble {
51
51
  }
52
52
 
53
53
  exports.Bubble = Bubble;
54
- //# sourceMappingURL=bubble.js.map
54
+ //# sourceMappingURL=bubble.js.map
@@ -213,4 +213,4 @@ class EventDispatcher {
213
213
  }
214
214
 
215
215
  exports.EventDispatcher = EventDispatcher;
216
- //# sourceMappingURL=event-dispatcher.js.map
216
+ //# sourceMappingURL=event-dispatcher.js.map
@@ -87,4 +87,4 @@ class Event {
87
87
  }
88
88
 
89
89
  exports.Event = Event;
90
- //# sourceMappingURL=event.js.map
90
+ //# sourceMappingURL=event.js.map
@@ -38,4 +38,4 @@ Object.defineProperty(exports, "getCartesianDimensionInfo", {
38
38
  return util_1.getDimensionInfoByValue;
39
39
  }
40
40
  });
41
- //# sourceMappingURL=index.js.map
41
+ //# sourceMappingURL=index.js.map
@@ -3,4 +3,4 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  });
6
- //# sourceMappingURL=interface.js.map
6
+ //# sourceMappingURL=interface.js.map
@@ -46,4 +46,4 @@ const parseHoverSelect = (mode, hoverSpec, selectSpec) => {
46
46
  };
47
47
 
48
48
  exports.parseHoverSelect = parseHoverSelect;
49
- //# sourceMappingURL=config.js.map
49
+ //# sourceMappingURL=config.js.map
@@ -94,4 +94,4 @@ Object.defineProperty(exports, "registerElementHighlightByName", {
94
94
  return element_highlight_by_name_1.registerElementHighlightByName;
95
95
  }
96
96
  });
97
- //# sourceMappingURL=index.js.map
97
+ //# sourceMappingURL=index.js.map
@@ -136,4 +136,4 @@ class Interaction {
136
136
  }
137
137
 
138
138
  exports.Interaction = Interaction;
139
- //# sourceMappingURL=interaction.js.map
139
+ //# sourceMappingURL=interaction.js.map
@@ -332,4 +332,4 @@ class Layout {
332
332
  }
333
333
 
334
334
  exports.Layout = Layout, Layout.type = "base";
335
- //# sourceMappingURL=base-layout.js.map
335
+ //# sourceMappingURL=base-layout.js.map
@@ -26,4 +26,4 @@ Object.defineProperty(exports, "GridLayout", {
26
26
  return grid_layout_1.registerGridLayout;
27
27
  }
28
28
  });
29
- //# sourceMappingURL=index.js.map
29
+ //# sourceMappingURL=index.js.map
@@ -3,4 +3,4 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  });
6
- //# sourceMappingURL=interface.js.map
6
+ //# sourceMappingURL=interface.js.map
@@ -233,5 +233,4 @@ class LayoutItem {
233
233
  }
234
234
  }
235
235
 
236
- exports.LayoutItem = LayoutItem;
237
- //# sourceMappingURL=layout-item.js.map
236
+ exports.LayoutItem = LayoutItem;
@@ -201,4 +201,4 @@ function getItemLayoutWithTag(item, layout, recompute, setRectToItem = !0) {
201
201
  exports.layoutLeftInlineItems = layoutLeftInlineItems, exports.layoutRightInlineItems = layoutRightInlineItems,
202
202
  exports.layoutTopInlineItems = layoutTopInlineItems, exports.layoutBottomInlineItems = layoutBottomInlineItems,
203
203
  exports.getItemLayoutWithTag = getItemLayoutWithTag;
204
- //# sourceMappingURL=util.js.map
204
+ //# sourceMappingURL=util.js.map
@@ -1,5 +1,5 @@
1
1
  import { AStageAnimate } from '@visactor/vrender-animate/custom/custom-animate';
2
- import { EasingType } from '@visactor/vrender-core';
2
+ import type { EasingType } from '@visactor/vrender-core';
3
3
  export declare class CallbackDisappearAnimate extends AStageAnimate<any> {
4
4
  protected currentAnimationRatio: number;
5
5
  protected animationTime: number;
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/animation/callback-disappear.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAC;AAMhF,MAAM,OAAO,wBAAyB,SAAQ,aAAkB;IAI9D,YAAY,IAAU,EAAE,EAAQ,EAAE,QAAgB,EAAE,MAAkB,EAAE,MAAW;QACjF,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QAJlC,0BAAqB,GAAG,CAAC,CAAC;QAC1B,kBAAa,GAAG,CAAC,CAAC;IAI5B,CAAC;IAED,QAAQ,CAAC,GAAY,EAAE,KAAa,EAAE,GAAQ;QAC5C,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;QAChC,IAAI,CAAC,qBAAqB,GAAG,KAAK,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,KAAK,GAAG,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;IAC3C,CAAC;IAKS,gBAAgB;QACxB,IAAI,IAAI,CAAC,qBAAqB,GAAG,CAAC,EAAE;YAClC,OAAO,IAAI,CAAC,aAAa,CAAC;SAC3B;QACD,OAAO,IAAI,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC;IAC7B,CAAC;IAES,gBAAgB,CAAC,KAAU,EAAE,MAAyB;;QAC9D,OAAO,MAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,QAAQ,mDAAG,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,qBAAqB,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IAChG,CAAC;CACF","file":"callback-disappear.js","sourcesContent":["import { AStageAnimate } from '@visactor/vrender-animate/custom/custom-animate';\nimport { EasingType } from '@visactor/vrender-core';\n\n/**\n * 特效动画基类,提取公共的WebGL和Canvas 2D操作\n */\nexport class CallbackDisappearAnimate extends AStageAnimate<any> {\n protected currentAnimationRatio = 0;\n protected animationTime = 0;\n\n constructor(from: null, to: null, duration: number, easing: EasingType, params: any) {\n super(from, to, duration, easing, params);\n }\n\n onUpdate(end: boolean, ratio: number, out: any): void {\n super.onUpdate(end, ratio, out);\n this.currentAnimationRatio = ratio;\n this.animationTime = ratio * Math.PI * 2;\n }\n\n /**\n * 获取基于动画进度的时间\n */\n protected getAnimationTime(): number {\n if (this.currentAnimationRatio > 0) {\n return this.animationTime;\n }\n return Date.now() / 1000.0;\n }\n\n protected afterStageRender(stage: any, canvas: HTMLCanvasElement): void {\n return this.params?.callBack?.(stage, canvas, this.currentAnimationRatio, this.animationTime);\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/animation/callback-disappear.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAC;AAMhF,MAAM,OAAO,wBAAyB,SAAQ,aAAkB;IAI9D,YAAY,IAAU,EAAE,EAAQ,EAAE,QAAgB,EAAE,MAAkB,EAAE,MAAW;QACjF,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QAJlC,0BAAqB,GAAG,CAAC,CAAC;QAC1B,kBAAa,GAAG,CAAC,CAAC;IAI5B,CAAC;IAED,QAAQ,CAAC,GAAY,EAAE,KAAa,EAAE,GAAQ;QAC5C,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;QAChC,IAAI,CAAC,qBAAqB,GAAG,KAAK,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,KAAK,GAAG,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;IAC3C,CAAC;IAKS,gBAAgB;QACxB,IAAI,IAAI,CAAC,qBAAqB,GAAG,CAAC,EAAE;YAClC,OAAO,IAAI,CAAC,aAAa,CAAC;SAC3B;QACD,OAAO,IAAI,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC;IAC7B,CAAC;IAES,gBAAgB,CAAC,KAAU,EAAE,MAAyB;;QAC9D,OAAO,MAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,QAAQ,mDAAG,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,qBAAqB,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IAChG,CAAC;CACF","file":"callback-disappear.js","sourcesContent":["import { AStageAnimate } from '@visactor/vrender-animate/custom/custom-animate';\nimport type { EasingType } from '@visactor/vrender-core';\n\n/**\n * 特效动画基类,提取公共的WebGL和Canvas 2D操作\n */\nexport class CallbackDisappearAnimate extends AStageAnimate<any> {\n protected currentAnimationRatio = 0;\n protected animationTime = 0;\n\n constructor(from: null, to: null, duration: number, easing: EasingType, params: any) {\n super(from, to, duration, easing, params);\n }\n\n onUpdate(end: boolean, ratio: number, out: any): void {\n super.onUpdate(end, ratio, out);\n this.currentAnimationRatio = ratio;\n this.animationTime = ratio * Math.PI * 2;\n }\n\n /**\n * 获取基于动画进度的时间\n */\n protected getAnimationTime(): number {\n if (this.currentAnimationRatio > 0) {\n return this.animationTime;\n }\n return Date.now() / 1000.0;\n }\n\n protected afterStageRender(stage: any, canvas: HTMLCanvasElement): void {\n return this.params?.callBack?.(stage, canvas, this.currentAnimationRatio, this.animationTime);\n }\n}\n"]}
@@ -7,4 +7,4 @@ export var RenderStateEnum;
7
7
  !function(RenderStateEnum) {
8
8
  RenderStateEnum.render = "render", RenderStateEnum.disappear = "disappear";
9
9
  }(RenderStateEnum || (RenderStateEnum = {}));
10
- //# sourceMappingURL=animate.js.map
10
+ //# sourceMappingURL=animate.js.map
@@ -8,4 +8,4 @@ export var AttributeLevel;
8
8
  AttributeLevel[AttributeLevel.User_Mark = 8] = "User_Mark", AttributeLevel[AttributeLevel.User_SeriesStyle = 9] = "User_SeriesStyle",
9
9
  AttributeLevel[AttributeLevel.Built_In = 99] = "Built_In";
10
10
  }(AttributeLevel || (AttributeLevel = {}));
11
- //# sourceMappingURL=attribute.js.map
11
+ //# sourceMappingURL=attribute.js.map
@@ -3,4 +3,4 @@ export const PREFIX = "__VCHART";
3
3
  export const DEFAULT_CHART_WIDTH = 500;
4
4
 
5
5
  export const DEFAULT_CHART_HEIGHT = 500;
6
- //# sourceMappingURL=base.js.map
6
+ //# sourceMappingURL=base.js.map
@@ -9,4 +9,4 @@ export var BOX_PLOT_TOOLTIP_KEYS;
9
9
  BOX_PLOT_TOOLTIP_KEYS.MEDIAN = "median", BOX_PLOT_TOOLTIP_KEYS.Q1 = "q1", BOX_PLOT_TOOLTIP_KEYS.Q3 = "q3",
10
10
  BOX_PLOT_TOOLTIP_KEYS.SERIES_FIELD = "seriesField";
11
11
  }(BOX_PLOT_TOOLTIP_KEYS || (BOX_PLOT_TOOLTIP_KEYS = {}));
12
- //# sourceMappingURL=box-plot.js.map
12
+ //# sourceMappingURL=box-plot.js.map
@@ -5,4 +5,4 @@ export const CORRELATION_X = `${PREFIX}_CORRELATION_X`;
5
5
  export const CORRELATION_Y = `${PREFIX}_CORRELATION_Y`;
6
6
 
7
7
  export const CORRELATION_SIZE = `${PREFIX}_CORRELATION_SIZE`;
8
- //# sourceMappingURL=correlation.js.map
8
+ //# sourceMappingURL=correlation.js.map
@@ -47,4 +47,4 @@ export const SEGMENT_FIELD_END = `${PREFIX}_SEGMENT_END`;
47
47
  export const DEFAULT_KEY = `${PREFIX}_KEY`;
48
48
 
49
49
  export const DEFAULT_MAP_LOOK_UP_KEY = `${PREFIX}_MAP_LOOK_UP_KEY`;
50
- //# sourceMappingURL=data.js.map
50
+ //# sourceMappingURL=data.js.map
@@ -69,4 +69,5 @@ export var Event_Bubble_Level;
69
69
  Event_Bubble_Level.mark = "mark";
70
70
  }(Event_Bubble_Level || (Event_Bubble_Level = {}));
71
71
 
72
- export const EventBubbleLevels = [ Event_Bubble_Level.mark, Event_Bubble_Level.model, Event_Bubble_Level.chart, Event_Bubble_Level.vchart ];
72
+ export const EventBubbleLevels = [ Event_Bubble_Level.mark, Event_Bubble_Level.model, Event_Bubble_Level.chart, Event_Bubble_Level.vchart ];
73
+ //# sourceMappingURL=event.js.map
@@ -27,4 +27,4 @@ export const FUNNEL_LABEL_SPACE_WIDTH = 5;
27
27
  export const FUNNEL_MAX_SIZE = "80%";
28
28
 
29
29
  export const FUNNEL_MIN_SIZE = 0;
30
- //# sourceMappingURL=funnel.js.map
30
+ //# sourceMappingURL=funnel.js.map
@@ -28,4 +28,4 @@ export const DEFAULT_GRADIENT_CONFIG = {
28
28
  radial: DEFAULT_RADIAL_GRADIENT_CONFIG,
29
29
  conical: DEFAULT_CONICAL_GRADIENT_CONFIG
30
30
  };
31
- //# sourceMappingURL=gradient.js.map
31
+ //# sourceMappingURL=gradient.js.map
@@ -5,4 +5,4 @@ export const DEFAULT_HIERARCHY_DEPTH = `${PREFIX}_HIERARCHY_DEPTH`;
5
5
  export const DEFAULT_HIERARCHY_ROOT = `${PREFIX}_HIERARCHY_ROOT`;
6
6
 
7
7
  export const DEFAULT_HIERARCHY_ROOT_INDEX = `${PREFIX}_HIERARCHY_ROOT_INDEX`;
8
- //# sourceMappingURL=hierarchy.js.map
8
+ //# sourceMappingURL=hierarchy.js.map
@@ -11,4 +11,4 @@ export const DEFAULT_LABEL_VISIBLE = `${PREFIX}_LABEL_VISIBLE`;
11
11
  export const DEFAULT_LABEL_X = `${PREFIX}_LABEL_X`;
12
12
 
13
13
  export const DEFAULT_LABEL_Y = `${PREFIX}_LABEL_Y`;
14
- //# sourceMappingURL=label.js.map
14
+ //# sourceMappingURL=label.js.map
@@ -29,4 +29,4 @@ export var LayoutLevel;
29
29
  LayoutLevel[LayoutLevel.Legend = 50] = "Legend", LayoutLevel[LayoutLevel.Title = 70] = "Title",
30
30
  LayoutLevel[LayoutLevel.CustomMark = 70] = "CustomMark";
31
31
  }(LayoutLevel || (LayoutLevel = {}));
32
- //# sourceMappingURL=layout.js.map
32
+ //# sourceMappingURL=layout.js.map
@@ -1,4 +1,4 @@
1
1
  export const AGGR_TYPE = [ "sum", "average", "min", "max", "variance", "standardDeviation", "median" ];
2
2
 
3
3
  export const REGRESS_TYPE = [ "regression" ];
4
- //# sourceMappingURL=marker.js.map
4
+ //# sourceMappingURL=marker.js.map
@@ -25,4 +25,4 @@ export const POLAR_START_ANGLE = -90;
25
25
  export const POLAR_END_ANGLE = 270;
26
26
 
27
27
  export const POLAR_DEFAULT_RADIUS = .6;
28
- //# sourceMappingURL=polar.js.map
28
+ //# sourceMappingURL=polar.js.map
@@ -1043,4 +1043,4 @@ export const registerVChartCore = () => {
1043
1043
  Factory.registerRegion("region", Region), Factory.registerLayout("base", Layout),
1044
1044
  registerGroupMark(), registerGesturePlugin(), registerElementHighlight(), registerElementSelect(),
1045
1045
  registerTheme(darkTheme.name, darkTheme);
1046
- //# sourceMappingURL=vchart.js.map
1046
+ //# sourceMappingURL=vchart.js.map
package/esm/env/env.js CHANGED
@@ -37,4 +37,4 @@ export const registerTTEnv = () => {
37
37
  export const registerHarmonyEnv = () => {
38
38
  loadHarmonyEnv(container);
39
39
  };
40
- //# sourceMappingURL=env.js.map
40
+ //# sourceMappingURL=env.js.map
package/esm/env/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  export * from "./env";
2
- //# sourceMappingURL=index.js.map
2
+ //# sourceMappingURL=index.js.map
@@ -43,4 +43,4 @@ export class Bubble {
43
43
  this._map.clear(), this._levelNodes.clear();
44
44
  }
45
45
  }
46
- //# sourceMappingURL=bubble.js.map
46
+ //# sourceMappingURL=bubble.js.map
@@ -211,4 +211,4 @@ export class EventDispatcher {
211
211
  return eType && (interactionType = eType.split(":")[0], interactionType) && Factory.hasInteractionTrigger(interactionType);
212
212
  }
213
213
  }
214
- //# sourceMappingURL=event-dispatcher.js.map
214
+ //# sourceMappingURL=event-dispatcher.js.map
@@ -79,4 +79,4 @@ export class Event {
79
79
  handlerMap && (handlerMap.delete(callback), handlerMap.size || this._eventHandlerMap.delete(eventType));
80
80
  }
81
81
  }
82
- //# sourceMappingURL=event.js.map
82
+ //# sourceMappingURL=event.js.map
@@ -3,4 +3,4 @@ export * from "./event";
3
3
  export * from "./events";
4
4
 
5
5
  export { getCartesianDimensionInfo, getPolarDimensionInfo, getDimensionInfoByValue } from "./events/dimension/util";
6
- //# sourceMappingURL=index.js.map
6
+ //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
1
  export { };
2
- //# sourceMappingURL=interface.js.map
2
+ //# sourceMappingURL=interface.js.map
@@ -40,4 +40,4 @@ export const parseHoverSelect = (mode, hoverSpec, selectSpec) => {
40
40
  hover: finalHoverSpec
41
41
  };
42
42
  };
43
- //# sourceMappingURL=config.js.map
43
+ //# sourceMappingURL=config.js.map
@@ -15,4 +15,4 @@ export { registerElementHighlightByKey } from "./triggers/element-highlight-by-k
15
15
  export { registerElementHighlightByLegend } from "./triggers/element-highlight-by-legend";
16
16
 
17
17
  export { registerElementHighlightByName } from "./triggers/element-highlight-by-name";
18
- //# sourceMappingURL=index.js.map
18
+ //# sourceMappingURL=index.js.map
@@ -127,4 +127,4 @@ export class Interaction {
127
127
  }));
128
128
  }
129
129
  }
130
- //# sourceMappingURL=interaction.js.map
130
+ //# sourceMappingURL=interaction.js.map
@@ -329,4 +329,4 @@ export class Layout {
329
329
  }
330
330
 
331
331
  Layout.type = "base";
332
- //# sourceMappingURL=base-layout.js.map
332
+ //# sourceMappingURL=base-layout.js.map
@@ -3,4 +3,4 @@ import { Layout } from "./base-layout";
3
3
  import { GridLayout, registerGridLayout } from "./grid-layout/grid-layout";
4
4
 
5
5
  export { Layout, GridLayout, registerGridLayout };
6
- //# sourceMappingURL=index.js.map
6
+ //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
1
  export { };
2
- //# sourceMappingURL=interface.js.map
2
+ //# sourceMappingURL=interface.js.map
@@ -225,5 +225,4 @@ export class LayoutItem {
225
225
  clearWillLayoutTag() {
226
226
  this._willLayoutTag = !1;
227
227
  }
228
- }
229
- //# sourceMappingURL=layout-item.js.map
228
+ }
@@ -190,4 +190,4 @@ export function getItemLayoutWithTag(item, layout, recompute, setRectToItem = !0
190
190
  layoutTag: layoutTag
191
191
  };
192
192
  }
193
- //# sourceMappingURL=util.js.map
193
+ //# sourceMappingURL=util.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/vchart",
3
- "version": "2.1.2-alpha.10",
3
+ "version": "2.1.2-alpha.11",
4
4
  "description": "charts lib based @visactor/VGrammar",
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",
@@ -86,21 +86,21 @@
86
86
  "rimraf": "3.0.2",
87
87
  "cross-env": "^7.0.3",
88
88
  "@internal/eslint-config": "0.0.1",
89
- "@internal/typescript-json-schema": "0.0.1",
90
89
  "@internal/ts-config": "0.0.1",
91
- "@internal/bundler": "0.0.1"
90
+ "@internal/bundler": "0.0.1",
91
+ "@internal/typescript-json-schema": "0.0.1"
92
92
  },
93
93
  "dependencies": {
94
94
  "@visactor/vutils": "~1.0.23",
95
95
  "@visactor/vdataset": "~1.0.23",
96
96
  "@visactor/vscale": "~1.0.23",
97
97
  "@visactor/vlayouts": "~1.0.23",
98
- "@visactor/vrender": "1.1.3-alpha.4",
99
- "@visactor/vrender-core": "1.1.3-alpha.4",
100
- "@visactor/vrender-kits": "1.1.3-alpha.4",
101
- "@visactor/vrender-components": "1.1.3-alpha.4",
102
- "@visactor/vrender-animate": "1.1.3-alpha.4",
103
- "@visactor/vutils-extension": "2.1.2-alpha.10"
98
+ "@visactor/vrender": "1.1.3-alpha.5",
99
+ "@visactor/vrender-core": "1.1.3-alpha.5",
100
+ "@visactor/vrender-kits": "1.1.3-alpha.5",
101
+ "@visactor/vrender-components": "1.1.3-alpha.5",
102
+ "@visactor/vrender-animate": "1.1.3-alpha.5",
103
+ "@visactor/vutils-extension": "2.1.2-alpha.11"
104
104
  },
105
105
  "publishConfig": {
106
106
  "access": "public",