@visactor/vchart 1.13.10-alpha.1 → 1.13.11-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.
Files changed (52) hide show
  1. package/build/es5/index.js +1 -1
  2. package/build/index.es.js +436 -111
  3. package/build/index.js +437 -110
  4. package/build/index.min.js +1 -1
  5. package/build/tsconfig.tsbuildinfo +1 -1
  6. package/cjs/chart/mosaic/mosaic-transformer.js +1 -1
  7. package/cjs/chart/mosaic/mosaic-transformer.js.map +1 -1
  8. package/cjs/component/tooltip/tooltip.js +5 -7
  9. package/cjs/component/tooltip/tooltip.js.map +1 -1
  10. package/cjs/core/index.d.ts +2 -2
  11. package/cjs/core/index.js +12 -2
  12. package/cjs/core/index.js.map +1 -1
  13. package/cjs/env/env.js +1 -1
  14. package/cjs/env/index.js +1 -1
  15. package/cjs/event/event-dispatcher.js +1 -1
  16. package/cjs/event/event.js +1 -1
  17. package/cjs/plugin/components/tooltip-handler/dom-tooltip-handler.d.ts +1 -0
  18. package/cjs/plugin/components/tooltip-handler/dom-tooltip-handler.js +3 -0
  19. package/cjs/plugin/components/tooltip-handler/dom-tooltip-handler.js.map +1 -1
  20. package/cjs/series/mosaic/interface.d.ts +1 -1
  21. package/cjs/series/mosaic/interface.js.map +1 -1
  22. package/cjs/series/mosaic/mosaic.d.ts +2 -2
  23. package/cjs/series/mosaic/mosaic.js +3 -3
  24. package/cjs/series/mosaic/mosaic.js.map +1 -1
  25. package/cjs/typings/tooltip/handler.d.ts +1 -0
  26. package/cjs/typings/tooltip/handler.js.map +1 -1
  27. package/cjs/util/data.js +2 -2
  28. package/cjs/util/data.js.map +1 -1
  29. package/esm/chart/mosaic/mosaic-transformer.js +1 -1
  30. package/esm/chart/mosaic/mosaic-transformer.js.map +1 -1
  31. package/esm/component/tooltip/tooltip.js +5 -7
  32. package/esm/component/tooltip/tooltip.js.map +1 -1
  33. package/esm/core/index.d.ts +2 -2
  34. package/esm/core/index.js +2 -2
  35. package/esm/core/index.js.map +1 -1
  36. package/esm/env/env.js +1 -1
  37. package/esm/env/index.js +1 -1
  38. package/esm/event/event-dispatcher.js +1 -1
  39. package/esm/event/event.js +1 -1
  40. package/esm/plugin/components/tooltip-handler/dom-tooltip-handler.d.ts +1 -0
  41. package/esm/plugin/components/tooltip-handler/dom-tooltip-handler.js +3 -0
  42. package/esm/plugin/components/tooltip-handler/dom-tooltip-handler.js.map +1 -1
  43. package/esm/series/mosaic/interface.d.ts +1 -1
  44. package/esm/series/mosaic/interface.js.map +1 -1
  45. package/esm/series/mosaic/mosaic.d.ts +2 -2
  46. package/esm/series/mosaic/mosaic.js +3 -3
  47. package/esm/series/mosaic/mosaic.js.map +1 -1
  48. package/esm/typings/tooltip/handler.d.ts +1 -0
  49. package/esm/typings/tooltip/handler.js.map +1 -1
  50. package/esm/util/data.js +1 -1
  51. package/esm/util/data.js.map +1 -1
  52. package/package.json +15 -15
package/build/index.js CHANGED
@@ -7846,11 +7846,14 @@
7846
7846
  const ContributionProvider = Symbol("ContributionProvider");
7847
7847
  class ContributionProviderCache {
7848
7848
  constructor(serviceIdentifier, container) {
7849
- this.serviceIdentifier = serviceIdentifier, this.container = container;
7849
+ this.serviceIdentifier = serviceIdentifier, this.container = container, ContributionStore.setStore(this.serviceIdentifier, this);
7850
7850
  }
7851
7851
  getContributions() {
7852
7852
  return this.caches || (this.caches = [], this.container && this.container.isBound(this.serviceIdentifier) && this.caches.push(...this.container.getAll(this.serviceIdentifier))), this.caches;
7853
7853
  }
7854
+ refresh() {
7855
+ this.caches && (this.caches.length = 0, this.container && this.container.isBound(this.serviceIdentifier) && this.caches.push(...this.container.getAll(this.serviceIdentifier)));
7856
+ }
7854
7857
  }
7855
7858
  function bindContributionProvider(bind, id) {
7856
7859
  bind(ContributionProvider).toDynamicValue(_ref => {
@@ -7868,6 +7871,20 @@
7868
7871
  return new ContributionProviderCache(id, container);
7869
7872
  }).whenTargetNamed(id);
7870
7873
  }
7874
+ class ContributionStore {
7875
+ static getStore(id) {
7876
+ return this.store.get(id);
7877
+ }
7878
+ static setStore(id, cache) {
7879
+ this.store.set(id, cache);
7880
+ }
7881
+ static refreshAllContributions() {
7882
+ this.store.forEach(cache => {
7883
+ cache.refresh();
7884
+ });
7885
+ }
7886
+ }
7887
+ ContributionStore.store = new Map();
7871
7888
 
7872
7889
  class Hook {
7873
7890
  constructor(args, name) {
@@ -7934,6 +7951,48 @@
7934
7951
  const VGlobal = Symbol.for("VGlobal");
7935
7952
  const DEFAULT_TEXT_FONT_FAMILY$1 = "PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol";
7936
7953
 
7954
+ class EventListenerManager {
7955
+ constructor() {
7956
+ this._listenerMap = new Map(), this._eventListenerTransformer = event => event;
7957
+ }
7958
+ setEventListenerTransformer(transformer) {
7959
+ this._eventListenerTransformer = transformer || (event => event);
7960
+ }
7961
+ addEventListener(type, listener, options) {
7962
+ if (!listener) return;
7963
+ const wrappedListener = event => {
7964
+ const transformedEvent = this._eventListenerTransformer(event);
7965
+ "function" == typeof listener ? listener(transformedEvent) : listener.handleEvent && listener.handleEvent(transformedEvent);
7966
+ };
7967
+ this._listenerMap.has(type) || this._listenerMap.set(type, new Map()), this._listenerMap.get(type).set(listener, wrappedListener), this._nativeAddEventListener(type, wrappedListener, options);
7968
+ }
7969
+ removeEventListener(type, listener, options) {
7970
+ var _a;
7971
+ if (!listener) return;
7972
+ const wrappedListener = null === (_a = this._listenerMap.get(type)) || void 0 === _a ? void 0 : _a.get(listener);
7973
+ wrappedListener && (this._nativeRemoveEventListener(type, wrappedListener, options), this._listenerMap.get(type).delete(listener), 0 === this._listenerMap.get(type).size && this._listenerMap.delete(type));
7974
+ }
7975
+ dispatchEvent(event) {
7976
+ return this._nativeDispatchEvent(event);
7977
+ }
7978
+ clearAllEventListeners() {
7979
+ this._listenerMap.forEach((listenersMap, type) => {
7980
+ listenersMap.forEach((wrappedListener, originalListener) => {
7981
+ this._nativeRemoveEventListener(type, wrappedListener, void 0);
7982
+ });
7983
+ }), this._listenerMap.clear();
7984
+ }
7985
+ _nativeAddEventListener(type, listener, options) {
7986
+ throw new Error("_nativeAddEventListener must be implemented by derived classes");
7987
+ }
7988
+ _nativeRemoveEventListener(type, listener, options) {
7989
+ throw new Error("_nativeRemoveEventListener must be implemented by derived classes");
7990
+ }
7991
+ _nativeDispatchEvent(event) {
7992
+ throw new Error("_nativeDispatchEvent must be implemented by derived classes");
7993
+ }
7994
+ }
7995
+
7937
7996
  var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
7938
7997
  var d,
7939
7998
  c = arguments.length,
@@ -7974,7 +8033,7 @@
7974
8033
  step((generator = generator.apply(thisArg, _arguments || [])).next());
7975
8034
  });
7976
8035
  };
7977
- let DefaultGlobal = class {
8036
+ let DefaultGlobal = class extends EventListenerManager {
7978
8037
  get env() {
7979
8038
  return this._env;
7980
8039
  }
@@ -8018,10 +8077,19 @@
8018
8077
  this._env || this.setEnv("browser"), this.envContribution.applyStyles = support;
8019
8078
  }
8020
8079
  constructor(contributions) {
8021
- this.contributions = contributions, this._isImageAnonymous = !0, this.id = Generator.GenAutoIncrementId(), this.hooks = {
8080
+ super(), this.contributions = contributions, this._isImageAnonymous = !0, this.eventListenerTransformer = event => event, this.id = Generator.GenAutoIncrementId(), this.hooks = {
8022
8081
  onSetEnv: new SyncHook(["lastEnv", "env", "global"])
8023
8082
  }, this.measureTextMethod = "native", this.optimizeVisible = !1;
8024
8083
  }
8084
+ _nativeAddEventListener(type, listener, options) {
8085
+ return this._env || this.setEnv("browser"), this.envContribution.addEventListener(type, listener, options);
8086
+ }
8087
+ _nativeRemoveEventListener(type, listener, options) {
8088
+ return this._env || this.setEnv("browser"), this.envContribution.removeEventListener(type, listener, options);
8089
+ }
8090
+ _nativeDispatchEvent(event) {
8091
+ return this._env || this.setEnv("browser"), this.envContribution.dispatchEvent(event);
8092
+ }
8025
8093
  bindContribution(params) {
8026
8094
  const promiseArr = [];
8027
8095
  if (this.contributions.getContributions().forEach(contribution => {
@@ -8062,15 +8130,6 @@
8062
8130
  releaseCanvas(canvas) {
8063
8131
  return this._env || this.setEnv("browser"), this.envContribution.releaseCanvas(canvas);
8064
8132
  }
8065
- addEventListener(type, listener, options) {
8066
- return this._env || this.setEnv("browser"), this.envContribution.addEventListener(type, listener, options);
8067
- }
8068
- removeEventListener(type, listener, options) {
8069
- return this._env || this.setEnv("browser"), this.envContribution.removeEventListener(type, listener, options);
8070
- }
8071
- dispatchEvent(event) {
8072
- return this._env || this.setEnv("browser"), this.envContribution.dispatchEvent(event);
8073
- }
8074
8133
  getRequestAnimationFrame() {
8075
8134
  return this._env || this.setEnv("browser"), this.envContribution.getRequestAnimationFrame();
8076
8135
  }
@@ -11099,7 +11158,7 @@
11099
11158
  };
11100
11159
  const VWindow = Symbol.for("VWindow");
11101
11160
  const WindowHandlerContribution = Symbol.for("WindowHandlerContribution");
11102
- let DefaultWindow = class {
11161
+ let DefaultWindow = class extends EventListenerManager {
11103
11162
  get width() {
11104
11163
  if (this._handler) {
11105
11164
  const wh = this._handler.getWH();
@@ -11118,7 +11177,7 @@
11118
11177
  return this._handler.getDpr();
11119
11178
  }
11120
11179
  constructor() {
11121
- this.hooks = {
11180
+ super(), this.hooks = {
11122
11181
  onChange: new SyncHook(["x", "y", "width", "height"])
11123
11182
  }, this.active = () => {
11124
11183
  const global = this.global;
@@ -11126,6 +11185,15 @@
11126
11185
  container.getNamed(WindowHandlerContribution, global.env).configure(this, global), this.actived = !0;
11127
11186
  }, this._uid = Generator.GenAutoIncrementId(), this.global = application.global, this.postInit();
11128
11187
  }
11188
+ _nativeAddEventListener(type, listener, options) {
11189
+ return this._handler.addEventListener(type, listener, options);
11190
+ }
11191
+ _nativeRemoveEventListener(type, listener, options) {
11192
+ return this._handler.removeEventListener(type, listener, options);
11193
+ }
11194
+ _nativeDispatchEvent(event) {
11195
+ return this._handler.dispatchEvent(event);
11196
+ }
11129
11197
  postInit() {
11130
11198
  this.global.hooks.onSetEnv.tap("window", this.active), this.active();
11131
11199
  }
@@ -11165,7 +11233,7 @@
11165
11233
  throw new Error("暂不支持");
11166
11234
  }
11167
11235
  release() {
11168
- return this.global.hooks.onSetEnv.unTap("window", this.active), this._handler.releaseWindow();
11236
+ return this.global.hooks.onSetEnv.unTap("window", this.active), this.clearAllEventListeners(), this._handler.releaseWindow();
11169
11237
  }
11170
11238
  getContext() {
11171
11239
  return this._handler.getContext();
@@ -11176,15 +11244,6 @@
11176
11244
  getImageBuffer(type) {
11177
11245
  return this._handler.getImageBuffer ? this._handler.getImageBuffer(type) : null;
11178
11246
  }
11179
- addEventListener(type, listener, options) {
11180
- return this._handler.addEventListener(type, listener, options);
11181
- }
11182
- removeEventListener(type, listener, options) {
11183
- return this._handler.removeEventListener(type, listener, options);
11184
- }
11185
- dispatchEvent(event) {
11186
- return this._handler.dispatchEvent(event);
11187
- }
11188
11247
  getBoundingClientRect() {
11189
11248
  return this._handler.getBoundingClientRect();
11190
11249
  }
@@ -12393,19 +12452,17 @@
12393
12452
  globalObj: globalObj,
12394
12453
  domElement: domElement
12395
12454
  } = this;
12396
- this.supportsPointerEvents ? (globalObj.getDocument() ? (globalObj.getDocument().addEventListener("pointermove", this.onPointerMove, !0), globalObj.getDocument().addEventListener("pointerup", this.onPointerUp, !0)) : (domElement.addEventListener("pointermove", this.onPointerMove, !0), domElement.addEventListener("pointerup", this.onPointerUp, !0)), domElement.addEventListener("pointerdown", this.onPointerDown, !0), domElement.addEventListener("pointerleave", this.onPointerOverOut, !0), domElement.addEventListener("pointerover", this.onPointerOverOut, !0)) : (globalObj.getDocument() ? (globalObj.getDocument().addEventListener("mousemove", this.onPointerMove, !0), globalObj.getDocument().addEventListener("mouseup", this.onPointerUp, !0)) : (domElement.addEventListener("mousemove", this.onPointerMove, !0), domElement.addEventListener("mouseup", this.onPointerUp, !0)), domElement.addEventListener("mousedown", this.onPointerDown, !0), domElement.addEventListener("mouseout", this.onPointerOverOut, !0), domElement.addEventListener("mouseover", this.onPointerOverOut, !0)), this.supportsTouchEvents && (domElement.addEventListener("touchstart", this.onPointerDown, !0), domElement.addEventListener("touchend", this.onPointerUp, !0), domElement.addEventListener("touchmove", this.onPointerMove, !0)), domElement.addEventListener("wheel", this.onWheel, {
12455
+ this.supportsPointerEvents ? (globalObj.getDocument() ? (globalObj.addEventListener("pointermove", this.onPointerMove, !0), globalObj.addEventListener("pointerup", this.onPointerUp, !0)) : (domElement.addEventListener("pointermove", this.onPointerMove, !0), domElement.addEventListener("pointerup", this.onPointerUp, !0)), domElement.addEventListener("pointerdown", this.onPointerDown, !0), domElement.addEventListener("pointerleave", this.onPointerOverOut, !0), domElement.addEventListener("pointerover", this.onPointerOverOut, !0)) : (globalObj.getDocument() ? (globalObj.addEventListener("mousemove", this.onPointerMove, !0), globalObj.addEventListener("mouseup", this.onPointerUp, !0)) : (domElement.addEventListener("mousemove", this.onPointerMove, !0), domElement.addEventListener("mouseup", this.onPointerUp, !0)), domElement.addEventListener("mousedown", this.onPointerDown, !0), domElement.addEventListener("mouseout", this.onPointerOverOut, !0), domElement.addEventListener("mouseover", this.onPointerOverOut, !0)), this.supportsTouchEvents && (domElement.addEventListener("touchstart", this.onPointerDown, !0), domElement.addEventListener("touchend", this.onPointerUp, !0), domElement.addEventListener("touchmove", this.onPointerMove, !0)), domElement.addEventListener("wheel", this.onWheel, {
12397
12456
  capture: !0
12398
12457
  }), this.eventsAdded = !0;
12399
12458
  }
12400
12459
  removeEvents() {
12401
- var _a;
12402
12460
  if (!this.eventsAdded || !this.domElement) return;
12403
12461
  const {
12404
- globalObj: globalObj,
12405
- domElement: domElement
12406
- } = this,
12407
- globalDocument = null !== (_a = globalObj.getDocument()) && void 0 !== _a ? _a : domElement;
12408
- this.supportsPointerEvents ? (globalDocument.removeEventListener("pointermove", this.onPointerMove, !0), globalDocument.removeEventListener("pointerup", this.onPointerUp, !0), domElement.removeEventListener("pointerdown", this.onPointerDown, !0), domElement.removeEventListener("pointerleave", this.onPointerOverOut, !0), domElement.removeEventListener("pointerover", this.onPointerOverOut, !0)) : (globalDocument.removeEventListener("mousemove", this.onPointerMove, !0), globalDocument.removeEventListener("mouseup", this.onPointerUp, !0), domElement.removeEventListener("mousedown", this.onPointerDown, !0), domElement.removeEventListener("mouseout", this.onPointerOverOut, !0), domElement.removeEventListener("mouseover", this.onPointerOverOut, !0)), this.supportsTouchEvents && (domElement.removeEventListener("touchstart", this.onPointerDown, !0), domElement.removeEventListener("touchend", this.onPointerUp, !0), domElement.removeEventListener("touchmove", this.onPointerMove, !0)), domElement.removeEventListener("wheel", this.onWheel, !0), this.domElement = null, this.eventsAdded = !1;
12462
+ globalObj: globalObj,
12463
+ domElement: domElement
12464
+ } = this;
12465
+ this.supportsPointerEvents ? (globalObj.getDocument() ? (globalObj.removeEventListener("pointermove", this.onPointerMove, !0), globalObj.removeEventListener("pointerup", this.onPointerUp, !0)) : (domElement.removeEventListener("pointermove", this.onPointerMove, !0), domElement.removeEventListener("pointerup", this.onPointerUp, !0)), domElement.removeEventListener("pointerdown", this.onPointerDown, !0), domElement.removeEventListener("pointerleave", this.onPointerOverOut, !0), domElement.removeEventListener("pointerover", this.onPointerOverOut, !0)) : (globalObj.getDocument() ? (globalObj.removeEventListener("mousemove", this.onPointerMove, !0), globalObj.removeEventListener("mouseup", this.onPointerUp, !0)) : (domElement.removeEventListener("mousemove", this.onPointerMove, !0), domElement.removeEventListener("mouseup", this.onPointerUp, !0)), domElement.removeEventListener("mousedown", this.onPointerDown, !0), domElement.removeEventListener("mouseout", this.onPointerOverOut, !0), domElement.removeEventListener("mouseover", this.onPointerOverOut, !0)), this.supportsTouchEvents && (domElement.removeEventListener("touchstart", this.onPointerDown, !0), domElement.removeEventListener("touchend", this.onPointerUp, !0), domElement.removeEventListener("touchmove", this.onPointerMove, !0)), domElement.removeEventListener("wheel", this.onWheel, !0), this.domElement = null, this.eventsAdded = !1;
12409
12466
  }
12410
12467
  mapToViewportPoint(event) {
12411
12468
  return this.domElement.pointTransform ? this.domElement.pointTransform(event.x, event.y) : event;
@@ -12662,6 +12719,60 @@
12662
12719
  }
12663
12720
  }
12664
12721
 
12722
+ class ManualTickHandler {
12723
+ constructor() {
12724
+ this.time = 0;
12725
+ }
12726
+ static Avaliable() {
12727
+ return !0;
12728
+ }
12729
+ avaliable() {
12730
+ return ManualTickHandler.Avaliable();
12731
+ }
12732
+ tick(interval, cb) {
12733
+ this.time = Math.max(0, interval + this.time), cb(this, {
12734
+ once: !0
12735
+ });
12736
+ }
12737
+ tickTo(t, cb) {
12738
+ this.time = Math.max(0, t), cb(this, {
12739
+ once: !0
12740
+ });
12741
+ }
12742
+ release() {
12743
+ this.timerId > 0 && (this.timerId = -1);
12744
+ }
12745
+ getTime() {
12746
+ return this.time;
12747
+ }
12748
+ }
12749
+
12750
+ class ManualTicker extends DefaultTicker {
12751
+ set mode(m) {
12752
+ this.setupTickHandler();
12753
+ }
12754
+ get mode() {
12755
+ return this._mode;
12756
+ }
12757
+ initHandler() {
12758
+ return this.mode = "manual", null;
12759
+ }
12760
+ setupTickHandler() {
12761
+ const handler = new ManualTickHandler();
12762
+ return this._mode = "manual", this.tickerHandler && this.tickerHandler.release(), this.tickerHandler = handler, !0;
12763
+ }
12764
+ tickAt(time) {
12765
+ this.tickerHandler.tick(time - Math.max(this.lastFrameTime, 0), handler => {
12766
+ this.handleTick(handler, {
12767
+ once: !0
12768
+ });
12769
+ });
12770
+ }
12771
+ ifCanStop() {
12772
+ return !1;
12773
+ }
12774
+ }
12775
+
12665
12776
  class Easing {
12666
12777
  constructor() {}
12667
12778
  static linear(t) {
@@ -13371,6 +13482,186 @@
13371
13482
  } else out.text = this.toText.substr(0, count);
13372
13483
  }
13373
13484
  }
13485
+ class StreamLight extends ACustomAnimate {
13486
+ constructor(from, to, duration, easing, params) {
13487
+ super(from, to, duration, easing, params);
13488
+ }
13489
+ getEndProps() {
13490
+ return {};
13491
+ }
13492
+ onStart() {
13493
+ this.target && ("rect" === this.target.type ? this.onStartRect() : "line" === this.target.type ? this.onStartLineOrArea("line") : "area" === this.target.type && this.onStartLineOrArea("area"));
13494
+ }
13495
+ onStartLineOrArea(type) {
13496
+ var _a;
13497
+ const root = this.target.attachShadow(),
13498
+ line = application.graphicService.creator[type](Object.assign({}, null === (_a = this.params) || void 0 === _a ? void 0 : _a.attribute));
13499
+ this[type] = line, line.pathProxy = new CustomPath2D(), root.add(line);
13500
+ }
13501
+ onStartRect() {
13502
+ var _a, _b, _c;
13503
+ const root = this.target.attachShadow(),
13504
+ isHorizontal = null === (_b = null === (_a = this.params) || void 0 === _a ? void 0 : _a.isHorizontal) || void 0 === _b || _b,
13505
+ sizeAttr = isHorizontal ? "height" : "width",
13506
+ otherSizeAttr = isHorizontal ? "width" : "height",
13507
+ size = this.target.AABBBounds[sizeAttr](),
13508
+ y = isHorizontal ? 0 : this.target.AABBBounds.y1,
13509
+ rect = application.graphicService.creator.rect(Object.assign(Object.assign({
13510
+ [sizeAttr]: size,
13511
+ fill: "#bcdeff",
13512
+ shadowBlur: 30,
13513
+ shadowColor: "#bcdeff"
13514
+ }, null === (_c = this.params) || void 0 === _c ? void 0 : _c.attribute), {
13515
+ x: 0,
13516
+ y: y,
13517
+ [otherSizeAttr]: 0
13518
+ }));
13519
+ this.rect = rect, root.add(rect);
13520
+ }
13521
+ onBind() {}
13522
+ onEnd() {
13523
+ this.target.detachShadow();
13524
+ }
13525
+ onUpdate(end, ratio, out) {
13526
+ return this.rect ? this.onUpdateRect(end, ratio, out) : this.line || this.area ? this.onUpdateLineOrArea(end, ratio, out) : void 0;
13527
+ }
13528
+ onUpdateRect(end, ratio, out) {
13529
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
13530
+ const isHorizontal = null === (_b = null === (_a = this.params) || void 0 === _a ? void 0 : _a.isHorizontal) || void 0 === _b || _b,
13531
+ parentAttr = this.target.attribute;
13532
+ if (isHorizontal) {
13533
+ const parentWidth = null !== (_d = null !== (_c = parentAttr.width) && void 0 !== _c ? _c : Math.abs(parentAttr.x1 - parentAttr.x)) && void 0 !== _d ? _d : 250,
13534
+ streamLength = null !== (_f = null === (_e = this.params) || void 0 === _e ? void 0 : _e.streamLength) && void 0 !== _f ? _f : parentWidth,
13535
+ maxLength = null !== (_j = null === (_h = null === (_g = this.params) || void 0 === _g ? void 0 : _g.attribute) || void 0 === _h ? void 0 : _h.width) && void 0 !== _j ? _j : 60,
13536
+ startX = -maxLength,
13537
+ currentX = startX + (streamLength - startX) * ratio,
13538
+ x = Math.max(currentX, 0),
13539
+ w = Math.min(Math.min(currentX + maxLength, maxLength), streamLength - currentX),
13540
+ width = w + x > parentWidth ? Math.max(parentWidth - x, 0) : w;
13541
+ this.rect.setAttributes({
13542
+ x: x,
13543
+ width: width,
13544
+ dx: Math.min(parentAttr.x1 - parentAttr.x, 0)
13545
+ }, !1, {
13546
+ type: AttributeUpdateType.ANIMATE_PLAY,
13547
+ animationState: {
13548
+ ratio: ratio,
13549
+ end: end
13550
+ }
13551
+ });
13552
+ } else {
13553
+ const parentHeight = null !== (_l = null !== (_k = parentAttr.height) && void 0 !== _k ? _k : Math.abs(parentAttr.y1 - parentAttr.y)) && void 0 !== _l ? _l : 250,
13554
+ streamLength = null !== (_o = null === (_m = this.params) || void 0 === _m ? void 0 : _m.streamLength) && void 0 !== _o ? _o : parentHeight,
13555
+ maxLength = null !== (_r = null === (_q = null === (_p = this.params) || void 0 === _p ? void 0 : _p.attribute) || void 0 === _q ? void 0 : _q.height) && void 0 !== _r ? _r : 60,
13556
+ currentY = parentHeight - (streamLength + maxLength) * ratio;
13557
+ let y = Math.min(currentY, parentHeight);
13558
+ const h = Math.min(parentHeight - currentY, maxLength);
13559
+ let height;
13560
+ y <= 0 ? (height = Math.max(y + h, 0), y = 0) : height = h, this.rect.setAttributes({
13561
+ y: y,
13562
+ height: height,
13563
+ dy: Math.min(parentAttr.y1 - parentAttr.y, 0)
13564
+ }, !1, {
13565
+ type: AttributeUpdateType.ANIMATE_PLAY,
13566
+ animationState: {
13567
+ ratio: ratio,
13568
+ end: end
13569
+ }
13570
+ });
13571
+ }
13572
+ }
13573
+ onUpdateLineOrArea(end, ratio, out) {
13574
+ const target = this.line || this.area;
13575
+ if (!target) return;
13576
+ const customPath = target.pathProxy,
13577
+ targetLine = this.target;
13578
+ targetLine.cache || targetLine.cacheArea ? this._onUpdateLineOrAreaWithCache(customPath, targetLine, end, ratio, out) : this._onUpdateLineWithoutCache(customPath, targetLine, end, ratio, out);
13579
+ const targetAttrs = targetLine.attribute;
13580
+ target.setAttributes(Object.assign({
13581
+ stroke: targetAttrs.stroke
13582
+ }, target.attribute)), target.addUpdateBoundTag();
13583
+ }
13584
+ _onUpdateLineOrAreaWithCache(customPath, g, end, ratio, out) {
13585
+ var _a, _b;
13586
+ if (customPath.clear(), "line" === g.type) {
13587
+ let cache = g.cache;
13588
+ Array.isArray(cache) || (cache = [cache]);
13589
+ const totalLen = cache.reduce((l, c) => l + c.getLength(), 0),
13590
+ curves = [];
13591
+ return cache.forEach(c => {
13592
+ c.curves.forEach(ci => curves.push(ci));
13593
+ }), this._updateCurves(customPath, curves, totalLen, ratio);
13594
+ }
13595
+ if ("area" === g.type && (null === (_b = null === (_a = g.cacheArea) || void 0 === _a ? void 0 : _a.top) || void 0 === _b ? void 0 : _b.curves)) {
13596
+ const cache = g.cacheArea,
13597
+ totalLen = cache.top.curves.reduce((a, b) => a + b.getLength(), 0);
13598
+ return this._updateCurves(customPath, cache.top.curves, totalLen, ratio);
13599
+ }
13600
+ }
13601
+ _updateCurves(customPath, curves, totalLen, ratio) {
13602
+ var _a, _b;
13603
+ const startLen = totalLen * ratio,
13604
+ endLen = Math.min(null !== (_b = startLen + (null === (_a = this.params) || void 0 === _a ? void 0 : _a.streamLength)) && void 0 !== _b ? _b : 10, totalLen);
13605
+ let lastLen = 0,
13606
+ start = !1;
13607
+ for (let i = 0; i < curves.length; i++) if (!1 !== curves[i].defined) {
13608
+ const curveItem = curves[i],
13609
+ len = curveItem.getLength(),
13610
+ startPercent = 1 - (lastLen + len - startLen) / len;
13611
+ let curveForStart,
13612
+ endPercent = 1 - (lastLen + len - endLen) / len;
13613
+ if (lastLen < startLen && lastLen + len > startLen) if (start = !0, curveItem.p2 && curveItem.p3) {
13614
+ const [_, curve2] = divideCubic(curveItem, startPercent);
13615
+ customPath.moveTo(curve2.p0.x, curve2.p0.y), curveForStart = curve2;
13616
+ } else {
13617
+ const p = curveItem.getPointAt(startPercent);
13618
+ customPath.moveTo(p.x, p.y);
13619
+ }
13620
+ if (lastLen < endLen && lastLen + len > endLen) {
13621
+ if (curveItem.p2 && curveItem.p3) {
13622
+ curveForStart && (endPercent = (endLen - startLen) / curveForStart.getLength());
13623
+ const [curve1] = divideCubic(curveForStart || curveItem, endPercent);
13624
+ customPath.bezierCurveTo(curve1.p1.x, curve1.p1.y, curve1.p2.x, curve1.p2.y, curve1.p3.x, curve1.p3.y);
13625
+ } else {
13626
+ const p = curveItem.getPointAt(endPercent);
13627
+ customPath.lineTo(p.x, p.y);
13628
+ }
13629
+ break;
13630
+ }
13631
+ if (start) if (curveItem.p2 && curveItem.p3) {
13632
+ const curve = curveForStart || curveItem;
13633
+ customPath.bezierCurveTo(curve.p1.x, curve.p1.y, curve.p2.x, curve.p2.y, curve.p3.x, curve.p3.y);
13634
+ } else customPath.lineTo(curveItem.p1.x, curveItem.p1.y);
13635
+ lastLen += len;
13636
+ }
13637
+ }
13638
+ _onUpdateLineWithoutCache(customPath, line, end, ratio, out) {
13639
+ var _a, _b;
13640
+ const {
13641
+ points: points,
13642
+ curveType: curveType
13643
+ } = line.attribute;
13644
+ if (!points || points.length < 2 || "linear" !== curveType) return;
13645
+ let totalLen = 0;
13646
+ for (let i = 1; i < points.length; i++) totalLen += PointService.distancePP(points[i], points[i - 1]);
13647
+ const startLen = totalLen * ratio,
13648
+ endLen = Math.min(null !== (_b = startLen + (null === (_a = this.params) || void 0 === _a ? void 0 : _a.streamLength)) && void 0 !== _b ? _b : 10, totalLen),
13649
+ nextPoints = [];
13650
+ let lastLen = 0;
13651
+ for (let i = 1; i < points.length; i++) {
13652
+ const len = PointService.distancePP(points[i], points[i - 1]);
13653
+ if (lastLen < startLen && lastLen + len > startLen && nextPoints.push(PointService.pointAtPP(points[i - 1], points[i], 1 - (lastLen + len - startLen) / len)), lastLen < endLen && lastLen + len > endLen) {
13654
+ nextPoints.push(PointService.pointAtPP(points[i - 1], points[i], 1 - (lastLen + len - endLen) / len));
13655
+ break;
13656
+ }
13657
+ nextPoints.length && nextPoints.push(points[i]), lastLen += len;
13658
+ }
13659
+ if (nextPoints.length && !(nextPoints.length < 2)) {
13660
+ customPath.clear(), customPath.moveTo(nextPoints[0].x, nextPoints[0].y);
13661
+ for (let i = 1; i < nextPoints.length; i++) customPath.lineTo(nextPoints[i].x, nextPoints[i].y);
13662
+ }
13663
+ }
13664
+ }
13374
13665
  class TagPointsUpdate extends ACustomAnimate {
13375
13666
  constructor(from, to, duration, easing, params) {
13376
13667
  var _a, _b;
@@ -13425,23 +13716,27 @@
13425
13716
  isValidNumber$1(lastClipRange * this.clipRange) && (this.clipRange *= lastClipRange);
13426
13717
  }
13427
13718
  onUpdate(end, ratio, out) {
13428
- if (this.points = this.points.map((point, index) => {
13429
- const newPoint = pointInterpolation(this.interpolatePoints[index][0], this.interpolatePoints[index][1], ratio);
13430
- return newPoint.context = point.context, newPoint;
13431
- }), this.clipRange) {
13432
- if (this.shrinkClipRange) return void (end ? (out.points = this.toPoints, out.clipRange = 1) : (out.points = this.fromPoints, out.clipRange = this.clipRange - (this.clipRange - this.shrinkClipRange) * ratio));
13433
- out.clipRange = this.clipRange + (1 - this.clipRange) * ratio;
13434
- }
13435
- if (this.segmentsCache && this.to.segments) {
13436
- let start = 0;
13437
- out.segments = this.to.segments.map((segment, index) => {
13438
- const end = start + this.segmentsCache[index],
13439
- points = this.points.slice(start, end);
13440
- return start = end, Object.assign(Object.assign({}, segment), {
13441
- points: points
13719
+ if (end) Object.keys(this.to).forEach(k => {
13720
+ out[k] = this.to[k];
13721
+ });else {
13722
+ if (this.points = this.points.map((point, index) => {
13723
+ const newPoint = pointInterpolation(this.interpolatePoints[index][0], this.interpolatePoints[index][1], ratio);
13724
+ return newPoint.context = point.context, newPoint;
13725
+ }), this.clipRange) {
13726
+ if (this.shrinkClipRange) return void (end ? (out.points = this.toPoints, out.clipRange = 1) : (out.points = this.fromPoints, out.clipRange = this.clipRange - (this.clipRange - this.shrinkClipRange) * ratio));
13727
+ out.clipRange = this.clipRange + (1 - this.clipRange) * ratio;
13728
+ }
13729
+ if (this.segmentsCache && this.to.segments) {
13730
+ let start = 0;
13731
+ out.segments = this.to.segments.map((segment, index) => {
13732
+ const end = start + this.segmentsCache[index],
13733
+ points = this.points.slice(start, end);
13734
+ return start = end, Object.assign(Object.assign({}, segment), {
13735
+ points: points
13736
+ });
13442
13737
  });
13443
- });
13444
- } else out.points = this.points;
13738
+ } else out.points = this.points;
13739
+ }
13445
13740
  }
13446
13741
  }
13447
13742
  class ClipGraphicAnimate extends ACustomAnimate {
@@ -20846,6 +21141,9 @@
20846
21141
  init(contributions) {
20847
21142
  contributions && (this._renderContribitions = contributions.getContributions()), this._renderContribitions || (this._renderContribitions = []), this.builtinContributions || (this.builtinContributions = []), this.builtinContributions.push(defaultBaseClipRenderBeforeContribution), this.builtinContributions.push(defaultBaseClipRenderAfterContribution), this.builtinContributions.forEach(item => this._renderContribitions.push(item)), this._renderContribitions.length && (this._renderContribitions.sort((a, b) => b.order - a.order), this._beforeRenderContribitions = this._renderContribitions.filter(c => c.time === BaseRenderContributionTime.beforeFillStroke), this._afterRenderContribitions = this._renderContribitions.filter(c => c.time === BaseRenderContributionTime.afterFillStroke));
20848
21143
  }
21144
+ reInit() {
21145
+ this.init(this.graphicRenderContributions);
21146
+ }
20849
21147
  beforeRenderStep(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, graphicAttribute, drawContext, fillCb, strokeCb, params) {
20850
21148
  this._beforeRenderContribitions && this._beforeRenderContribitions.forEach(c => {
20851
21149
  if (c.supportedAppName && graphic.stage && graphic.stage.params && graphic.stage.params.context && graphic.stage.params.context.appName) {
@@ -21015,8 +21313,8 @@
21015
21313
  };
21016
21314
  };
21017
21315
  let DefaultCanvasArcRender = class extends BaseRender {
21018
- constructor(arcRenderContribitions) {
21019
- super(), this.arcRenderContribitions = arcRenderContribitions, this.numberType = ARC_NUMBER_TYPE, this.builtinContributions = [defaultArcRenderContribution, defaultArcBackgroundRenderContribution, defaultArcTextureRenderContribution], this.init(arcRenderContribitions);
21316
+ constructor(graphicRenderContributions) {
21317
+ super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = ARC_NUMBER_TYPE, this.builtinContributions = [defaultArcRenderContribution, defaultArcBackgroundRenderContribution, defaultArcTextureRenderContribution], this.init(graphicRenderContributions);
21020
21318
  }
21021
21319
  drawArcTailCapPath(arc, context, cx, cy, outerRadius, innerRadius, _sa, _ea) {
21022
21320
  const capAngle = _ea - _sa,
@@ -21191,8 +21489,8 @@
21191
21489
  };
21192
21490
  };
21193
21491
  let DefaultCanvasCircleRender = class extends BaseRender {
21194
- constructor(circleRenderContribitions) {
21195
- super(), this.circleRenderContribitions = circleRenderContribitions, this.numberType = CIRCLE_NUMBER_TYPE, this.builtinContributions = [defaultCircleRenderContribution, defaultCircleBackgroundRenderContribution, defaultCircleTextureRenderContribution], this.init(circleRenderContribitions);
21492
+ constructor(graphicRenderContributions) {
21493
+ super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = CIRCLE_NUMBER_TYPE, this.builtinContributions = [defaultCircleRenderContribution, defaultCircleBackgroundRenderContribution, defaultCircleTextureRenderContribution], this.init(graphicRenderContributions);
21196
21494
  }
21197
21495
  drawShape(circle, context, x, y, drawContext, params, fillCb, strokeCb) {
21198
21496
  const circleAttribute = getTheme$1(circle, null == params ? void 0 : params.theme).circle,
@@ -21578,8 +21876,8 @@
21578
21876
  };
21579
21877
  };
21580
21878
  let DefaultCanvasAreaRender = class extends BaseRender {
21581
- constructor(areaRenderContribitions) {
21582
- super(), this.areaRenderContribitions = areaRenderContribitions, this.numberType = AREA_NUMBER_TYPE, this.builtinContributions = [defaultAreaTextureRenderContribution, defaultAreaBackgroundRenderContribution], this.init(areaRenderContribitions);
21879
+ constructor(graphicRenderContributions) {
21880
+ super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = AREA_NUMBER_TYPE, this.builtinContributions = [defaultAreaTextureRenderContribution, defaultAreaBackgroundRenderContribution], this.init(graphicRenderContributions);
21583
21881
  }
21584
21882
  drawLinearAreaHighPerformance(area, context, fill, stroke, fillOpacity, strokeOpacity, offsetX, offsetY, areaAttribute, drawContext, params, fillCb, strokeCb) {
21585
21883
  var _a, _b, _c;
@@ -21822,8 +22120,8 @@
21822
22120
  };
21823
22121
  };
21824
22122
  let DefaultCanvasPathRender = class extends BaseRender {
21825
- constructor(pathRenderContribitions) {
21826
- super(), this.pathRenderContribitions = pathRenderContribitions, this.numberType = PATH_NUMBER_TYPE, this.builtinContributions = [defaultPathBackgroundRenderContribution, defaultPathTextureRenderContribution], this.init(pathRenderContribitions);
22123
+ constructor(graphicRenderContributions) {
22124
+ super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = PATH_NUMBER_TYPE, this.builtinContributions = [defaultPathBackgroundRenderContribution, defaultPathTextureRenderContribution], this.init(graphicRenderContributions);
21827
22125
  }
21828
22126
  drawShape(path, context, x, y, drawContext, params, fillCb, strokeCb) {
21829
22127
  var _a, _b, _c;
@@ -21878,8 +22176,8 @@
21878
22176
  };
21879
22177
  };
21880
22178
  let DefaultCanvasRectRender = class extends BaseRender {
21881
- constructor(rectRenderContribitions) {
21882
- super(), this.rectRenderContribitions = rectRenderContribitions, this.type = "rect", this.numberType = RECT_NUMBER_TYPE, this.builtinContributions = [defaultRectRenderContribution, defaultRectBackgroundRenderContribution, defaultRectTextureRenderContribution], this.init(rectRenderContribitions);
22179
+ constructor(graphicRenderContributions) {
22180
+ super(), this.graphicRenderContributions = graphicRenderContributions, this.type = "rect", this.numberType = RECT_NUMBER_TYPE, this.builtinContributions = [defaultRectRenderContribution, defaultRectBackgroundRenderContribution, defaultRectTextureRenderContribution], this.init(graphicRenderContributions);
21883
22181
  }
21884
22182
  drawShape(rect, context, x, y, drawContext, params, fillCb, strokeCb) {
21885
22183
  var _a;
@@ -21950,8 +22248,8 @@
21950
22248
  };
21951
22249
  };
21952
22250
  let DefaultCanvasSymbolRender = class extends BaseRender {
21953
- constructor(symbolRenderContribitions) {
21954
- super(), this.symbolRenderContribitions = symbolRenderContribitions, this.numberType = SYMBOL_NUMBER_TYPE, this.builtinContributions = [defaultSymbolRenderContribution, defaultSymbolBackgroundRenderContribution, defaultSymbolTextureRenderContribution, defaultSymbolClipRangeStrokeRenderContribution], this.init(symbolRenderContribitions);
22251
+ constructor(graphicRenderContributions) {
22252
+ super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = SYMBOL_NUMBER_TYPE, this.builtinContributions = [defaultSymbolRenderContribution, defaultSymbolBackgroundRenderContribution, defaultSymbolTextureRenderContribution, defaultSymbolClipRangeStrokeRenderContribution], this.init(graphicRenderContributions);
21955
22253
  }
21956
22254
  drawShape(symbol, context, x, y, drawContext, params, fillCb, strokeCb) {
21957
22255
  var _a;
@@ -22122,8 +22420,8 @@
22122
22420
  };
22123
22421
  };
22124
22422
  let DefaultCanvasTextRender = class extends BaseRender {
22125
- constructor(textRenderContribitions) {
22126
- super(), this.textRenderContribitions = textRenderContribitions, this.numberType = TEXT_NUMBER_TYPE, this.builtinContributions = [defaultTextBackgroundRenderContribution], this.init(textRenderContribitions);
22423
+ constructor(graphicRenderContributions) {
22424
+ super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = TEXT_NUMBER_TYPE, this.builtinContributions = [defaultTextBackgroundRenderContribution], this.init(graphicRenderContributions);
22127
22425
  }
22128
22426
  drawShape(text, context, x, y, drawContext, params, fillCb, strokeCb) {
22129
22427
  var _a, _b, _c;
@@ -22327,8 +22625,8 @@
22327
22625
  };
22328
22626
  };
22329
22627
  let DefaultCanvasPolygonRender = class extends BaseRender {
22330
- constructor(polygonRenderContribitions) {
22331
- super(), this.polygonRenderContribitions = polygonRenderContribitions, this.numberType = POLYGON_NUMBER_TYPE, this.builtinContributions = [defaultPolygonBackgroundRenderContribution, defaultPolygonTextureRenderContribution], this.init(polygonRenderContribitions);
22628
+ constructor(graphicRenderContributions) {
22629
+ super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = POLYGON_NUMBER_TYPE, this.builtinContributions = [defaultPolygonBackgroundRenderContribution, defaultPolygonTextureRenderContribution], this.init(graphicRenderContributions);
22332
22630
  }
22333
22631
  drawShape(polygon, context, x, y, drawContext, params, fillCb, strokeCb) {
22334
22632
  const polygonAttribute = getTheme$1(polygon, null == params ? void 0 : params.theme).polygon,
@@ -22383,6 +22681,9 @@
22383
22681
  constructor(groupRenderContribitions) {
22384
22682
  this.groupRenderContribitions = groupRenderContribitions, this.numberType = GROUP_NUMBER_TYPE;
22385
22683
  }
22684
+ reInit() {
22685
+ this._groupRenderContribitions = this.groupRenderContribitions.getContributions() || [], this._groupRenderContribitions.push(defaultGroupBackgroundRenderContribution);
22686
+ }
22386
22687
  drawShape(group, context, x, y, drawContext, params, fillCb, strokeCb) {
22387
22688
  const groupAttribute = getTheme$1(group, null == params ? void 0 : params.theme).group,
22388
22689
  {
@@ -22513,8 +22814,8 @@
22513
22814
  };
22514
22815
  const repeatStr = ["", "repeat-x", "repeat-y", "repeat"];
22515
22816
  let DefaultCanvasImageRender = class extends BaseRender {
22516
- constructor(imageRenderContribitions) {
22517
- super(), this.imageRenderContribitions = imageRenderContribitions, this.numberType = IMAGE_NUMBER_TYPE, this.builtinContributions = [defaultImageRenderContribution, defaultImageBackgroundRenderContribution], this.init(imageRenderContribitions);
22817
+ constructor(graphicRenderContributions) {
22818
+ super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = IMAGE_NUMBER_TYPE, this.builtinContributions = [defaultImageRenderContribution, defaultImageBackgroundRenderContribution], this.init(graphicRenderContributions);
22518
22819
  }
22519
22820
  drawShape(image, context, x, y, drawContext, params, fillCb, strokeCb) {
22520
22821
  const imageAttribute = getTheme$1(image).image,
@@ -22841,6 +23142,9 @@
22841
23142
  afterDraw(params) {
22842
23143
  this.drawContribution.afterDraw && this.drawContribution.afterDraw(this, Object.assign({}, this.drawParams));
22843
23144
  }
23145
+ reInit() {
23146
+ this.drawContribution.reInit();
23147
+ }
22844
23148
  render(groups, params) {
22845
23149
  this.renderTreeRoots = groups, this.drawParams = params;
22846
23150
  const updateBounds = params.updateBounds;
@@ -23242,6 +23546,11 @@
23242
23546
  constructor(contributions, drawItemInterceptorContributions) {
23243
23547
  this.contributions = contributions, this.drawItemInterceptorContributions = drawItemInterceptorContributions, this.currentRenderMap = new Map(), this.defaultRenderMap = new Map(), this.styleRenderMap = new Map(), this.dirtyBounds = new Bounds(), this.backupDirtyBounds = new Bounds(), this.global = application.global, this.layerService = application.layerService, isArray$1(this.contributions) || (this.contributions = [this.contributions]), this.init();
23244
23548
  }
23549
+ reInit() {
23550
+ this.init(), this.contributions.forEach(item => {
23551
+ item.reInit();
23552
+ });
23553
+ }
23245
23554
  init() {
23246
23555
  this.contributions.forEach(item => {
23247
23556
  if (item.style) {
@@ -24361,6 +24670,9 @@
24361
24670
  getPickerService() {
24362
24671
  return this.pickerService || (this.pickerService = container.get(PickerService)), this.pickerService;
24363
24672
  }
24673
+ reInit() {
24674
+ this.renderService.reInit(), this.pickerService.reInit();
24675
+ }
24364
24676
  }
24365
24677
 
24366
24678
  function createStage(params) {
@@ -24958,6 +25270,9 @@
24958
25270
  constructor(pickItemInterceptorContributions, pickServiceInterceptorContributions) {
24959
25271
  this.pickItemInterceptorContributions = pickItemInterceptorContributions, this.pickServiceInterceptorContributions = pickServiceInterceptorContributions, this.type = "default", this.global = application.global;
24960
25272
  }
25273
+ reInit() {
25274
+ this._init();
25275
+ }
24961
25276
  _init() {
24962
25277
  this.InterceptorContributions = this.pickItemInterceptorContributions.getContributions().sort((a, b) => a.order - b.order), this.pickerServiceInterceptorContributions = this.pickServiceInterceptorContributions.getContributions().sort((a, b) => a.order - b.order);
24963
25278
  }
@@ -25126,6 +25441,7 @@
25126
25441
  constructor() {
25127
25442
  this.numberType = GLYPH_NUMBER_TYPE;
25128
25443
  }
25444
+ reInit() {}
25129
25445
  drawShape(glyph, context, x, y, drawContext, params, fillCb, strokeCb) {
25130
25446
  drawContext.drawContribution && glyph.getSubGraphic().forEach(item => {
25131
25447
  const renderer = drawContext.drawContribution.getRenderContribution(item);
@@ -48443,9 +48759,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
48443
48759
  var _a, _b;
48444
48760
  const groupValues = stackCache.nodes[group];
48445
48761
  let value;
48446
- if (s.bandField) {
48762
+ if (s.bandWidthField) {
48447
48763
  value =
48448
- (_b = (_a = groupValues.values.find(v => isValid$1(v[s.bandField]))) === null || _a === void 0 ? void 0 : _a[s.bandField]) !== null && _b !== void 0 ? _b : groupValues.total;
48764
+ (_b = (_a = groupValues.values.find(v => isValid$1(v[s.bandWidthField]))) === null || _a === void 0 ? void 0 : _a[s.bandWidthField]) !== null && _b !== void 0 ? _b : groupValues.total;
48449
48765
  }
48450
48766
  else {
48451
48767
  value = groupValues.total;
@@ -49333,6 +49649,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49333
49649
  if (prev === next) return !0;
49334
49650
  if (typeof prev != typeof next) return !1;
49335
49651
  if (isString$1(prev)) return !1;
49652
+ if (isArray$1(prev)) return prev.length === next.length && prev.every((prevEntry, index) => isColorAttrEqual(prevEntry, next[index]));
49336
49653
  if (prev.gradient !== next.gradient) return !1;
49337
49654
  const prevKeys = Object.keys(prev),
49338
49655
  nextKeys = Object.keys(next);
@@ -49930,7 +50247,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
49930
50247
  if (element) {
49931
50248
  const hasActiveElement = this._marks && this._marks.includes(element.mark);
49932
50249
  "view" !== this._resetType || hasActiveElement ? "self" === this._resetType && hasActiveElement && this.resetAll() : this.resetAll();
49933
- }
50250
+ } else "view" === this._resetType && this.resetAll();
49934
50251
  }, this.options = Object.assign({}, ElementHighlight.defaultOptions, options), this._marks = view.getMarksBySelector(this.options.selector), this._stateMarks = groupMarksByState(this._marks, [this.options.highlightState, this.options.blurState]);
49935
50252
  }
49936
50253
  getStartState() {
@@ -55912,26 +56229,29 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
55912
56229
  points: getCenterPoints(element, options)
55913
56230
  }
55914
56231
  });
55915
- const changePointsX = (element, options, animationParameters) => element.getGraphicAttribute("points", !1).map(point => {
56232
+ const changePointsX = (element, options, animationParameters) => {
55916
56233
  var _a;
55917
- if (options && "negative" === options.orient) {
55918
- let groupRight = animationParameters.width;
55919
- return animationParameters.group && (groupRight = null !== (_a = animationParameters.groupWidth) && void 0 !== _a ? _a : animationParameters.group.getBounds().width(), animationParameters.groupWidth = groupRight), Object.assign(Object.assign({}, point), {
55920
- x: groupRight,
56234
+ return (null !== (_a = element.getGraphicAttribute("points", !1)) && void 0 !== _a ? _a : []).map(point => {
56235
+ var _a;
56236
+ if (options && "negative" === options.orient) {
56237
+ let groupRight = animationParameters.width;
56238
+ return animationParameters.group && (groupRight = null !== (_a = animationParameters.groupWidth) && void 0 !== _a ? _a : animationParameters.group.getBounds().width(), animationParameters.groupWidth = groupRight), Object.assign(Object.assign({}, point), {
56239
+ x: groupRight,
56240
+ y: point.y,
56241
+ x1: groupRight,
56242
+ y1: point.y1,
56243
+ defined: !1 !== point.defined
56244
+ });
56245
+ }
56246
+ return Object.assign(Object.assign({}, point), {
56247
+ x: 0,
55921
56248
  y: point.y,
55922
- x1: groupRight,
56249
+ x1: 0,
55923
56250
  y1: point.y1,
55924
56251
  defined: !1 !== point.defined
55925
56252
  });
55926
- }
55927
- return Object.assign(Object.assign({}, point), {
55928
- x: 0,
55929
- y: point.y,
55930
- x1: 0,
55931
- y1: point.y1,
55932
- defined: !1 !== point.defined
55933
56253
  });
55934
- });
56254
+ };
55935
56255
  const growPointsXIn = (element, options, animationParameters) => ({
55936
56256
  from: {
55937
56257
  points: changePointsX(element, options, animationParameters)
@@ -55948,26 +56268,29 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
55948
56268
  points: changePointsX(element, options, animationParameters)
55949
56269
  }
55950
56270
  });
55951
- const changePointsY = (element, options, animationParameters) => element.getGraphicAttribute("points", !1).map(point => {
56271
+ const changePointsY = (element, options, animationParameters) => {
55952
56272
  var _a;
55953
- if (options && "negative" === options.orient) {
55954
- let groupBottom = animationParameters.height;
55955
- return animationParameters.group && (groupBottom = null !== (_a = animationParameters.groupHeight) && void 0 !== _a ? _a : animationParameters.group.getBounds().height(), animationParameters.groupHeight = groupBottom), Object.assign(Object.assign({}, point), {
56273
+ return (null !== (_a = element.getGraphicAttribute("points", !1)) && void 0 !== _a ? _a : []).map(point => {
56274
+ var _a;
56275
+ if (options && "negative" === options.orient) {
56276
+ let groupBottom = animationParameters.height;
56277
+ return animationParameters.group && (groupBottom = null !== (_a = animationParameters.groupHeight) && void 0 !== _a ? _a : animationParameters.group.getBounds().height(), animationParameters.groupHeight = groupBottom), Object.assign(Object.assign({}, point), {
56278
+ x: point.x,
56279
+ y: groupBottom,
56280
+ x1: point.x1,
56281
+ y1: groupBottom,
56282
+ defined: !1 !== point.defined
56283
+ });
56284
+ }
56285
+ return Object.assign(Object.assign({}, point), {
55956
56286
  x: point.x,
55957
- y: groupBottom,
56287
+ y: 0,
55958
56288
  x1: point.x1,
55959
- y1: groupBottom,
56289
+ y1: 0,
55960
56290
  defined: !1 !== point.defined
55961
56291
  });
55962
- }
55963
- return Object.assign(Object.assign({}, point), {
55964
- x: point.x,
55965
- y: 0,
55966
- x1: point.x1,
55967
- y1: 0,
55968
- defined: !1 !== point.defined
55969
56292
  });
55970
- });
56293
+ };
55971
56294
  const growPointsYIn = (element, options, animationParameters) => ({
55972
56295
  from: {
55973
56296
  points: changePointsY(element, options, animationParameters)
@@ -63882,7 +64205,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
63882
64205
  };
63883
64206
  registerVChartCore();
63884
64207
 
63885
- const version = "1.13.10-alpha.1";
64208
+ const version = "1.13.11-alpha.0";
63886
64209
 
63887
64210
  const addVChartProperty = (data, op) => {
63888
64211
  const context = op.beforeCall();
@@ -90018,8 +90341,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
90018
90341
  this.type = exports.SeriesTypeEnum.mosaic;
90019
90342
  this.transformerConstructor = BarSeriesSpecTransformer;
90020
90343
  }
90021
- get bandField() {
90022
- return this._bandField;
90344
+ get bandWidthField() {
90345
+ return this._bandWidthField;
90023
90346
  }
90024
90347
  getStack() {
90025
90348
  return true;
@@ -90049,8 +90372,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
90049
90372
  this.setFieldX(MOSAIC_CAT_END_PERCENT);
90050
90373
  this.setFieldX2(MOSAIC_CAT_START_PERCENT);
90051
90374
  }
90052
- if (this._spec.bandField) {
90053
- this._bandField = this._spec.bandField;
90375
+ if (this._spec.bandWidthField) {
90376
+ this._bandWidthField = this._spec.bandWidthField;
90054
90377
  }
90055
90378
  }
90056
90379
  parseLabelStyle(labelStyle, labelSpec) {
@@ -94277,18 +94600,17 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
94277
94600
  if (!this._needInitEventOfTooltip) {
94278
94601
  return;
94279
94602
  }
94280
- const container = (_b = (_a = this.tooltipHandler).getTooltipContainer) === null || _b === void 0 ? void 0 : _b.call(_a);
94281
- const element = container === null || container === void 0 ? void 0 : container.firstChild;
94282
- if (element) {
94283
- element.addEventListener('pointerenter', () => {
94603
+ const container = (_b = (_a = this.tooltipHandler).getRootDom) === null || _b === void 0 ? void 0 : _b.call(_a);
94604
+ if (container) {
94605
+ container.addEventListener('pointerenter', () => {
94284
94606
  var _a;
94285
94607
  if (!this._enterable) {
94286
94608
  return;
94287
94609
  }
94288
94610
  this._isEnterTooltip = true;
94289
- const rect = (_a = element.getBoundingClientRect) === null || _a === void 0 ? void 0 : _a.call(element);
94611
+ const rect = (_a = container.getBoundingClientRect) === null || _a === void 0 ? void 0 : _a.call(container);
94290
94612
  if (rect) {
94291
- this._cacheEnterableRect = { x: rect.x, y: rect.y, width: rect.width, height: rect.height };
94613
+ this._cacheEnterableRect = { width: rect.width, height: rect.height };
94292
94614
  }
94293
94615
  if (this._outTimer) {
94294
94616
  clearTimeout(this._outTimer);
@@ -94299,14 +94621,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
94299
94621
  this._showTimer = null;
94300
94622
  }
94301
94623
  });
94302
- element.addEventListener('pointerleave', () => {
94624
+ container.addEventListener('pointerleave', () => {
94303
94625
  var _a, _b, _c;
94304
94626
  if (!this._enterable) {
94305
94627
  return;
94306
94628
  }
94307
94629
  this._isEnterTooltip = false;
94308
94630
  if (this._cacheEnterableRect) {
94309
- const newRect = (_a = element.getBoundingClientRect) === null || _a === void 0 ? void 0 : _a.call(element);
94631
+ const newRect = (_a = container.getBoundingClientRect) === null || _a === void 0 ? void 0 : _a.call(container);
94310
94632
  if (newRect &&
94311
94633
  Object.keys(this._cacheEnterableRect).every(k => this._cacheEnterableRect[k] === newRect[k])) {
94312
94634
  this._cacheEnterableRect = null;
@@ -102720,6 +103042,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
102720
103042
  this._rootDom.style.visibility = _value ? 'visible' : 'hidden';
102721
103043
  }
102722
103044
  }
103045
+ getRootDom() {
103046
+ return this._rootDom;
103047
+ }
102723
103048
  constructor() {
102724
103049
  super(DomTooltipHandler.type);
102725
103050
  this.type = TooltipHandlerType.dom;
@@ -103653,7 +103978,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
103653
103978
  'barMinHeight',
103654
103979
  'stackCornerRadius',
103655
103980
  'bar',
103656
- 'bandField'
103981
+ 'bandWidthField'
103657
103982
  ]);
103658
103983
  }
103659
103984
  transformSpec(spec) {
@@ -104216,6 +104541,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
104216
104541
  exports.MOSAIC_CAT_START_PERCENT = MOSAIC_CAT_START_PERCENT;
104217
104542
  exports.MOSAIC_VALUE_END_PERCENT = MOSAIC_VALUE_END_PERCENT;
104218
104543
  exports.MOSAIC_VALUE_START_PERCENT = MOSAIC_VALUE_START_PERCENT;
104544
+ exports.ManualTicker = ManualTicker;
104219
104545
  exports.MapChart = MapChart;
104220
104546
  exports.MapLabelComponent = MapLabelComponent;
104221
104547
  exports.MapSeries = MapSeries;
@@ -104276,6 +104602,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
104276
104602
  exports.ScatterSeries = ScatterSeries;
104277
104603
  exports.ScrollBar = ScrollBar;
104278
104604
  exports.SequenceChart = SequenceChart;
104605
+ exports.StreamLight = StreamLight;
104279
104606
  exports.SunburstChart = SunburstChart;
104280
104607
  exports.SunburstSeries = SunburstSeries;
104281
104608
  exports.SymbolMark = SymbolMark;