@visactor/vtable-gantt 1.20.3 → 1.21.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 (73) hide show
  1. package/cjs/Gantt.d.ts +15 -0
  2. package/cjs/Gantt.js +47 -7
  3. package/cjs/Gantt.js.map +1 -1
  4. package/cjs/event/scroll.js +7 -2
  5. package/cjs/event/scroll.js.map +1 -1
  6. package/cjs/index.d.ts +1 -1
  7. package/cjs/index.js +1 -1
  8. package/cjs/index.js.map +1 -1
  9. package/cjs/state/gantt-table-sync.js +3 -3
  10. package/cjs/state/gantt-table-sync.js.map +1 -1
  11. package/cjs/state/state-manager.d.ts +2 -0
  12. package/cjs/state/state-manager.js +5 -2
  13. package/cjs/state/state-manager.js.map +1 -1
  14. package/cjs/ts-types/EVENT_TYPE.d.ts +1 -0
  15. package/cjs/ts-types/EVENT_TYPE.js +2 -1
  16. package/cjs/ts-types/EVENT_TYPE.js.map +1 -1
  17. package/cjs/ts-types/events.d.ts +3 -0
  18. package/cjs/ts-types/events.js.map +1 -1
  19. package/cjs/ts-types/gantt-engine.d.ts +2 -0
  20. package/cjs/ts-types/gantt-engine.js.map +1 -1
  21. package/cjs/ts-types/index.d.ts +1 -0
  22. package/cjs/ts-types/index.js +2 -1
  23. package/cjs/ts-types/index.js.map +1 -1
  24. package/cjs/ts-types/zoom-scale.d.ts +32 -0
  25. package/cjs/ts-types/zoom-scale.js +6 -0
  26. package/cjs/ts-types/zoom-scale.js.map +1 -0
  27. package/cjs/zoom-scale/DataZoomIntegration.d.ts +50 -0
  28. package/cjs/zoom-scale/DataZoomIntegration.js +261 -0
  29. package/cjs/zoom-scale/DataZoomIntegration.js.map +1 -0
  30. package/cjs/zoom-scale/ZoomScaleManager.d.ts +55 -0
  31. package/cjs/zoom-scale/ZoomScaleManager.js +327 -0
  32. package/cjs/zoom-scale/ZoomScaleManager.js.map +1 -0
  33. package/cjs/zoom-scale/index.d.ts +4 -0
  34. package/cjs/zoom-scale/index.js +24 -0
  35. package/cjs/zoom-scale/index.js.map +1 -0
  36. package/dist/vtable-gantt.js +2066 -207
  37. package/dist/vtable-gantt.min.js +2 -2
  38. package/es/Gantt.d.ts +15 -0
  39. package/es/Gantt.js +48 -7
  40. package/es/Gantt.js.map +1 -1
  41. package/es/event/scroll.js +7 -2
  42. package/es/event/scroll.js.map +1 -1
  43. package/es/index.d.ts +1 -1
  44. package/es/index.js +1 -1
  45. package/es/index.js.map +1 -1
  46. package/es/state/gantt-table-sync.js +2 -4
  47. package/es/state/gantt-table-sync.js.map +1 -1
  48. package/es/state/state-manager.d.ts +2 -0
  49. package/es/state/state-manager.js +5 -2
  50. package/es/state/state-manager.js.map +1 -1
  51. package/es/ts-types/EVENT_TYPE.d.ts +1 -0
  52. package/es/ts-types/EVENT_TYPE.js +2 -1
  53. package/es/ts-types/EVENT_TYPE.js.map +1 -1
  54. package/es/ts-types/events.d.ts +3 -0
  55. package/es/ts-types/events.js.map +1 -1
  56. package/es/ts-types/gantt-engine.d.ts +2 -0
  57. package/es/ts-types/gantt-engine.js.map +1 -1
  58. package/es/ts-types/index.d.ts +1 -0
  59. package/es/ts-types/index.js +2 -0
  60. package/es/ts-types/index.js.map +1 -1
  61. package/es/ts-types/zoom-scale.d.ts +32 -0
  62. package/es/ts-types/zoom-scale.js +2 -0
  63. package/es/ts-types/zoom-scale.js.map +1 -0
  64. package/es/zoom-scale/DataZoomIntegration.d.ts +50 -0
  65. package/es/zoom-scale/DataZoomIntegration.js +253 -0
  66. package/es/zoom-scale/DataZoomIntegration.js.map +1 -0
  67. package/es/zoom-scale/ZoomScaleManager.d.ts +55 -0
  68. package/es/zoom-scale/ZoomScaleManager.js +321 -0
  69. package/es/zoom-scale/ZoomScaleManager.js.map +1 -0
  70. package/es/zoom-scale/index.d.ts +4 -0
  71. package/es/zoom-scale/index.js +4 -0
  72. package/es/zoom-scale/index.js.map +1 -0
  73. package/package.json +5 -5
@@ -49,7 +49,8 @@
49
49
  CLICK_MARKLINE_CREATE: 'click_markline_create',
50
50
  CLICK_MARKLINE_CONTENT: 'click_markline_content',
51
51
  MOVE_END_TASK_BAR: 'move_end_task_bar',
52
- PROGRESS_UPDATE: 'progress_update'
52
+ PROGRESS_UPDATE: 'progress_update',
53
+ ZOOM: 'zoom'
53
54
  };
54
55
 
55
56
  var index$4 = /*#__PURE__*/Object.freeze({
@@ -717,17 +718,17 @@
717
718
  }
718
719
  }
719
720
 
720
- var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
721
+ var __decorate$1a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
721
722
  var d,
722
723
  c = arguments.length,
723
724
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
724
725
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
725
726
  return c > 3 && r && Object.defineProperty(target, key, r), r;
726
727
  },
727
- __metadata$O = undefined && undefined.__metadata || function (k, v) {
728
+ __metadata$Q = undefined && undefined.__metadata || function (k, v) {
728
729
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
729
730
  },
730
- __param$B = undefined && undefined.__param || function (paramIndex, decorator) {
731
+ __param$D = undefined && undefined.__param || function (paramIndex, decorator) {
731
732
  return function (target, key) {
732
733
  decorator(target, key, paramIndex);
733
734
  };
@@ -936,7 +937,7 @@
936
937
  return this._env || this.setEnv("browser"), this.envContribution.copyToClipBoard(text);
937
938
  }
938
939
  };
939
- DefaultGlobal = __decorate$18([injectable(), __param$B(0, inject(ContributionProvider)), __param$B(0, named(EnvContribution)), __metadata$O("design:paramtypes", [Object])], DefaultGlobal);
940
+ DefaultGlobal = __decorate$1a([injectable(), __param$D(0, inject(ContributionProvider)), __param$D(0, named(EnvContribution)), __metadata$Q("design:paramtypes", [Object])], DefaultGlobal);
940
941
 
941
942
  var MeasureModeEnum;
942
943
  !function (MeasureModeEnum) {
@@ -5204,7 +5205,7 @@
5204
5205
  return result.width += space, result;
5205
5206
  }
5206
5207
 
5207
- var __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5208
+ var __decorate$19 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5208
5209
  var d,
5209
5210
  c = arguments.length,
5210
5211
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -5597,9 +5598,9 @@
5597
5598
  return data.str = data.result, data.width += suffixWidth, data;
5598
5599
  }
5599
5600
  };
5600
- ATextMeasure = __decorate$17([injectable()], ATextMeasure);
5601
+ ATextMeasure = __decorate$19([injectable()], ATextMeasure);
5601
5602
 
5602
- var __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5603
+ var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
5603
5604
  var d,
5604
5605
  c = arguments.length,
5605
5606
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -5612,7 +5613,7 @@
5612
5613
  super(...arguments), this.id = "DefaultTextMeasureContribution";
5613
5614
  }
5614
5615
  };
5615
- DefaultTextMeasureContribution = __decorate$16([injectable()], DefaultTextMeasureContribution);
5616
+ DefaultTextMeasureContribution = __decorate$18([injectable()], DefaultTextMeasureContribution);
5616
5617
 
5617
5618
  const CanvasFactory = Symbol.for("CanvasFactory");
5618
5619
  const Context2dFactory = Symbol.for("Context2dFactory");
@@ -6021,14 +6022,14 @@
6021
6022
  }
6022
6023
  const canvasAllocate = new DefaultCanvasAllocate();
6023
6024
 
6024
- var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
6025
+ var __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
6025
6026
  var d,
6026
6027
  c = arguments.length,
6027
6028
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
6028
6029
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
6029
6030
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6030
6031
  },
6031
- __metadata$N = undefined && undefined.__metadata || function (k, v) {
6032
+ __metadata$P = undefined && undefined.__metadata || function (k, v) {
6032
6033
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
6033
6034
  };
6034
6035
  const VWindow = Symbol.for("VWindow");
@@ -6165,19 +6166,19 @@
6165
6166
  return this._handler.getTopLeft(baseWindow);
6166
6167
  }
6167
6168
  };
6168
- DefaultWindow = __decorate$15([injectable(), __metadata$N("design:paramtypes", [])], DefaultWindow);
6169
+ DefaultWindow = __decorate$17([injectable(), __metadata$P("design:paramtypes", [])], DefaultWindow);
6169
6170
 
6170
- var __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
6171
+ var __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
6171
6172
  var d,
6172
6173
  c = arguments.length,
6173
6174
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
6174
6175
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
6175
6176
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6176
6177
  },
6177
- __metadata$M = undefined && undefined.__metadata || function (k, v) {
6178
+ __metadata$O = undefined && undefined.__metadata || function (k, v) {
6178
6179
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
6179
6180
  },
6180
- __param$A = undefined && undefined.__param || function (paramIndex, decorator) {
6181
+ __param$C = undefined && undefined.__param || function (paramIndex, decorator) {
6181
6182
  return function (target, key) {
6182
6183
  decorator(target, key, paramIndex);
6183
6184
  };
@@ -6275,7 +6276,7 @@
6275
6276
  return c.nativeCanvas ? c.nativeCanvas : null;
6276
6277
  }
6277
6278
  };
6278
- DefaultGraphicUtil = __decorate$14([injectable(), __param$A(0, inject(ContributionProvider)), __param$A(0, named(TextMeasureContribution)), __metadata$M("design:paramtypes", [Object])], DefaultGraphicUtil);
6279
+ DefaultGraphicUtil = __decorate$16([injectable(), __param$C(0, inject(ContributionProvider)), __param$C(0, named(TextMeasureContribution)), __metadata$O("design:paramtypes", [Object])], DefaultGraphicUtil);
6279
6280
  var TransformMode;
6280
6281
  !function (TransformMode) {
6281
6282
  TransformMode[TransformMode.transform = 0] = "transform", TransformMode[TransformMode.matrix = 1] = "matrix";
@@ -6333,7 +6334,7 @@
6333
6334
  return this;
6334
6335
  }
6335
6336
  };
6336
- DefaultTransformUtil = __decorate$14([injectable(), __metadata$M("design:paramtypes", [])], DefaultTransformUtil);
6337
+ DefaultTransformUtil = __decorate$16([injectable(), __metadata$O("design:paramtypes", [])], DefaultTransformUtil);
6337
6338
 
6338
6339
  const defaultThemeObj = {
6339
6340
  arc: DefaultArcAttribute,
@@ -8580,14 +8581,14 @@
8580
8581
  const matrixAllocate = new DefaultMatrixAllocate();
8581
8582
  const mat4Allocate = new DefaultMat4Allocate();
8582
8583
 
8583
- var __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
8584
+ var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
8584
8585
  var d,
8585
8586
  c = arguments.length,
8586
8587
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
8587
8588
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
8588
8589
  return c > 3 && r && Object.defineProperty(target, key, r), r;
8589
8590
  },
8590
- __metadata$L = undefined && undefined.__metadata || function (k, v) {
8591
+ __metadata$N = undefined && undefined.__metadata || function (k, v) {
8591
8592
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
8592
8593
  };
8593
8594
  const initMatrix = new Matrix(1, 0, 0, 1, 0, 0),
@@ -8781,7 +8782,7 @@
8781
8782
  this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
8782
8783
  }
8783
8784
  };
8784
- EmptyContext2d = __decorate$13([injectable(), __metadata$L("design:paramtypes", [Object, Number])], EmptyContext2d);
8785
+ EmptyContext2d = __decorate$15([injectable(), __metadata$N("design:paramtypes", [Object, Number])], EmptyContext2d);
8785
8786
 
8786
8787
  const DefaultConfig$1 = {
8787
8788
  WIDTH: 500,
@@ -10126,14 +10127,14 @@
10126
10127
  const VirtualLayerHandlerContribution = Symbol.for("VirtualLayerHandlerContribution");
10127
10128
 
10128
10129
  var DefaultLayerService_1,
10129
- __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
10130
+ __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
10130
10131
  var d,
10131
10132
  c = arguments.length,
10132
10133
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
10133
10134
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
10134
10135
  return c > 3 && r && Object.defineProperty(target, key, r), r;
10135
10136
  },
10136
- __metadata$K = undefined && undefined.__metadata || function (k, v) {
10137
+ __metadata$M = undefined && undefined.__metadata || function (k, v) {
10137
10138
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
10138
10139
  };
10139
10140
  let DefaultLayerService = DefaultLayerService_1 = class {
@@ -10196,7 +10197,7 @@
10196
10197
  this.layerMap.delete(stage);
10197
10198
  }
10198
10199
  };
10199
- DefaultLayerService.idprefix = "visactor_layer", DefaultLayerService.prefix_count = 0, DefaultLayerService = DefaultLayerService_1 = __decorate$12([injectable(), __metadata$K("design:paramtypes", [])], DefaultLayerService);
10200
+ DefaultLayerService.idprefix = "visactor_layer", DefaultLayerService.prefix_count = 0, DefaultLayerService = DefaultLayerService_1 = __decorate$14([injectable(), __metadata$M("design:paramtypes", [])], DefaultLayerService);
10200
10201
 
10201
10202
  var coreModule = new ContainerModule(bind => {
10202
10203
  bind(VGlobal).to(DefaultGlobal).inSingletonScope(), bind(VWindow).to(DefaultWindow), bind(GraphicUtil).to(DefaultGraphicUtil).inSingletonScope(), bind(TransformUtil).to(DefaultTransformUtil).inSingletonScope(), bind(LayerService).to(DefaultLayerService).inSingletonScope();
@@ -10403,17 +10404,17 @@
10403
10404
  return "middle" === baseline ? -lineHeight / 2 : "top" === baseline ? 0 : "bottom" === baseline ? buf - lineHeight : baseline && "alphabetic" !== baseline ? 0 : (fontSize || (fontSize = lineHeight), -(lineHeight - fontSize) / 2 - .79 * fontSize);
10404
10405
  }
10405
10406
 
10406
- var __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
10407
+ var __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
10407
10408
  var d,
10408
10409
  c = arguments.length,
10409
10410
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
10410
10411
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
10411
10412
  return c > 3 && r && Object.defineProperty(target, key, r), r;
10412
10413
  },
10413
- __metadata$J = undefined && undefined.__metadata || function (k, v) {
10414
+ __metadata$L = undefined && undefined.__metadata || function (k, v) {
10414
10415
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
10415
10416
  },
10416
- __param$z = undefined && undefined.__param || function (paramIndex, decorator) {
10417
+ __param$B = undefined && undefined.__param || function (paramIndex, decorator) {
10417
10418
  return function (target, key) {
10418
10419
  decorator(target, key, paramIndex);
10419
10420
  };
@@ -10593,7 +10594,7 @@
10593
10594
  };
10594
10595
  }
10595
10596
  };
10596
- DefaultGraphicService = __decorate$11([injectable(), __param$z(0, inject(GraphicCreator$1)), __metadata$J("design:paramtypes", [Object])], DefaultGraphicService);
10597
+ DefaultGraphicService = __decorate$13([injectable(), __param$B(0, inject(GraphicCreator$1)), __metadata$L("design:paramtypes", [Object])], DefaultGraphicService);
10597
10598
 
10598
10599
  const updateBoundsOfCommonOuterBorder = (attribute, theme, aabbBounds) => {
10599
10600
  const {
@@ -12718,6 +12719,9 @@
12718
12719
  segments: 1,
12719
12720
  curveType: 1
12720
12721
  }, NOWORK_ANIMATE_ATTR);
12722
+ function createArea(attributes) {
12723
+ return new Area(attributes);
12724
+ }
12721
12725
 
12722
12726
  const ARC_UPDATE_TAG_KEY = ["innerRadius", "outerRadius", "startAngle", "endAngle", "cornerRadius", "padAngle", "padRadius", "cap", ...GRAPHIC_UPDATE_TAG_KEY];
12723
12727
  let Arc$1 = class Arc extends Graphic {
@@ -13051,17 +13055,17 @@
13051
13055
  return text || (text = graphicCreator.CreateGraphic("text", {})), text.initAttributes(params), text.AABBBounds;
13052
13056
  }
13053
13057
 
13054
- var __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13058
+ var __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13055
13059
  var d,
13056
13060
  c = arguments.length,
13057
13061
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
13058
13062
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
13059
13063
  return c > 3 && r && Object.defineProperty(target, key, r), r;
13060
13064
  },
13061
- __metadata$I = undefined && undefined.__metadata || function (k, v) {
13065
+ __metadata$K = undefined && undefined.__metadata || function (k, v) {
13062
13066
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
13063
13067
  },
13064
- __param$y = undefined && undefined.__param || function (paramIndex, decorator) {
13068
+ __param$A = undefined && undefined.__param || function (paramIndex, decorator) {
13065
13069
  return function (target, key) {
13066
13070
  decorator(target, key, paramIndex);
13067
13071
  };
@@ -13166,7 +13170,7 @@
13166
13170
  });
13167
13171
  }
13168
13172
  };
13169
- DefaultBaseInteractiveRenderContribution = __decorate$10([injectable(), __param$y(0, inject(ContributionProvider)), __param$y(0, named(InteractiveSubRenderContribution)), __metadata$I("design:paramtypes", [Object])], DefaultBaseInteractiveRenderContribution);
13173
+ DefaultBaseInteractiveRenderContribution = __decorate$12([injectable(), __param$A(0, inject(ContributionProvider)), __param$A(0, named(InteractiveSubRenderContribution)), __metadata$K("design:paramtypes", [Object])], DefaultBaseInteractiveRenderContribution);
13170
13174
  class DefaultBaseClipRenderBeforeContribution {
13171
13175
  constructor() {
13172
13176
  this.time = BaseRenderContributionTime.beforeFillStroke, this.useStyle = !0, this.order = 0;
@@ -13596,7 +13600,7 @@
13596
13600
  return !edgeCb && path.closePath(), path;
13597
13601
  }
13598
13602
 
13599
- var __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13603
+ var __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13600
13604
  var d,
13601
13605
  c = arguments.length,
13602
13606
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -13661,7 +13665,7 @@
13661
13665
  Array.isArray(stroke) && stroke.some(s => !1 === s) && (doFillOrStroke.doStroke = !1);
13662
13666
  }
13663
13667
  };
13664
- SplitRectBeforeRenderContribution$1 = __decorate$$([injectable()], SplitRectBeforeRenderContribution$1);
13668
+ SplitRectBeforeRenderContribution$1 = __decorate$11([injectable()], SplitRectBeforeRenderContribution$1);
13665
13669
  let SplitRectAfterRenderContribution$1 = class SplitRectAfterRenderContribution {
13666
13670
  constructor() {
13667
13671
  this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
@@ -13698,7 +13702,7 @@
13698
13702
  }
13699
13703
  }
13700
13704
  };
13701
- SplitRectAfterRenderContribution$1 = __decorate$$([injectable()], SplitRectAfterRenderContribution$1);
13705
+ SplitRectAfterRenderContribution$1 = __decorate$11([injectable()], SplitRectAfterRenderContribution$1);
13702
13706
  const defaultRectRenderContribution = new DefaultRectRenderContribution();
13703
13707
  const defaultRectTextureRenderContribution = defaultBaseTextureRenderContribution;
13704
13708
  const defaultRectBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
@@ -13968,17 +13972,17 @@
13968
13972
  }
13969
13973
  }
13970
13974
 
13971
- var __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13975
+ var __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13972
13976
  var d,
13973
13977
  c = arguments.length,
13974
13978
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
13975
13979
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
13976
13980
  return c > 3 && r && Object.defineProperty(target, key, r), r;
13977
13981
  },
13978
- __metadata$H = undefined && undefined.__metadata || function (k, v) {
13982
+ __metadata$J = undefined && undefined.__metadata || function (k, v) {
13979
13983
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
13980
13984
  },
13981
- __param$x = undefined && undefined.__param || function (paramIndex, decorator) {
13985
+ __param$z = undefined && undefined.__param || function (paramIndex, decorator) {
13982
13986
  return function (target, key) {
13983
13987
  decorator(target, key, paramIndex);
13984
13988
  };
@@ -14138,19 +14142,19 @@
14138
14142
  this._draw(arc, arcAttribute, !1, drawContext, params, arcAttribute);
14139
14143
  }
14140
14144
  };
14141
- DefaultCanvasArcRender = __decorate$_([injectable(), __param$x(0, inject(ContributionProvider)), __param$x(0, named(ArcRenderContribution)), __metadata$H("design:paramtypes", [Object])], DefaultCanvasArcRender);
14145
+ DefaultCanvasArcRender = __decorate$10([injectable(), __param$z(0, inject(ContributionProvider)), __param$z(0, named(ArcRenderContribution)), __metadata$J("design:paramtypes", [Object])], DefaultCanvasArcRender);
14142
14146
 
14143
- var __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14147
+ var __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14144
14148
  var d,
14145
14149
  c = arguments.length,
14146
14150
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
14147
14151
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
14148
14152
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14149
14153
  },
14150
- __metadata$G = undefined && undefined.__metadata || function (k, v) {
14154
+ __metadata$I = undefined && undefined.__metadata || function (k, v) {
14151
14155
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
14152
14156
  },
14153
- __param$w = undefined && undefined.__param || function (paramIndex, decorator) {
14157
+ __param$y = undefined && undefined.__param || function (paramIndex, decorator) {
14154
14158
  return function (target, key) {
14155
14159
  decorator(target, key, paramIndex);
14156
14160
  };
@@ -14191,7 +14195,7 @@
14191
14195
  this._draw(circle, circleAttribute, !1, drawContext, params);
14192
14196
  }
14193
14197
  };
14194
- DefaultCanvasCircleRender = __decorate$Z([injectable(), __param$w(0, inject(ContributionProvider)), __param$w(0, named(CircleRenderContribution)), __metadata$G("design:paramtypes", [Object])], DefaultCanvasCircleRender);
14198
+ DefaultCanvasCircleRender = __decorate$$([injectable(), __param$y(0, inject(ContributionProvider)), __param$y(0, named(CircleRenderContribution)), __metadata$I("design:paramtypes", [Object])], DefaultCanvasCircleRender);
14195
14199
 
14196
14200
  function drawSegItem(ctx, curve, endPercent, params) {
14197
14201
  if (!curve.p1) return;
@@ -14315,7 +14319,7 @@
14315
14319
  });
14316
14320
  }
14317
14321
 
14318
- var __decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14322
+ var __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14319
14323
  var d,
14320
14324
  c = arguments.length,
14321
14325
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -14460,7 +14464,7 @@
14460
14464
  } else this.drawSegmentItem(context, line.cache, !!fill, !!stroke, fillOpacity, strokeOpacity, line.attribute, lineAttribute, clipRange, clipRangeByDimension, x, y, line, fillCb, strokeCb);
14461
14465
  }
14462
14466
  };
14463
- DefaultCanvasLineRender = __decorate$Y([injectable()], DefaultCanvasLineRender);
14467
+ DefaultCanvasLineRender = __decorate$_([injectable()], DefaultCanvasLineRender);
14464
14468
 
14465
14469
  function drawAreaSegments(path, segPath, percent, params) {
14466
14470
  var _a;
@@ -14527,17 +14531,17 @@
14527
14531
  const defaultAreaTextureRenderContribution = new DefaultAreaTextureRenderContribution();
14528
14532
  const defaultAreaBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
14529
14533
 
14530
- var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14534
+ var __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14531
14535
  var d,
14532
14536
  c = arguments.length,
14533
14537
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
14534
14538
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
14535
14539
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14536
14540
  },
14537
- __metadata$F = undefined && undefined.__metadata || function (k, v) {
14541
+ __metadata$H = undefined && undefined.__metadata || function (k, v) {
14538
14542
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
14539
14543
  },
14540
- __param$v = undefined && undefined.__param || function (paramIndex, decorator) {
14544
+ __param$x = undefined && undefined.__param || function (paramIndex, decorator) {
14541
14545
  return function (target, key) {
14542
14546
  decorator(target, key, paramIndex);
14543
14547
  };
@@ -14766,22 +14770,22 @@
14766
14770
  })(), !1;
14767
14771
  }
14768
14772
  };
14769
- DefaultCanvasAreaRender = __decorate$X([injectable(), __param$v(0, inject(ContributionProvider)), __param$v(0, named(AreaRenderContribution)), __metadata$F("design:paramtypes", [Object])], DefaultCanvasAreaRender);
14773
+ DefaultCanvasAreaRender = __decorate$Z([injectable(), __param$x(0, inject(ContributionProvider)), __param$x(0, named(AreaRenderContribution)), __metadata$H("design:paramtypes", [Object])], DefaultCanvasAreaRender);
14770
14774
 
14771
14775
  const defaultPathTextureRenderContribution = defaultBaseTextureRenderContribution;
14772
14776
  const defaultPathBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
14773
14777
 
14774
- var __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14778
+ var __decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14775
14779
  var d,
14776
14780
  c = arguments.length,
14777
14781
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
14778
14782
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
14779
14783
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14780
14784
  },
14781
- __metadata$E = undefined && undefined.__metadata || function (k, v) {
14785
+ __metadata$G = undefined && undefined.__metadata || function (k, v) {
14782
14786
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
14783
14787
  },
14784
- __param$u = undefined && undefined.__param || function (paramIndex, decorator) {
14788
+ __param$w = undefined && undefined.__param || function (paramIndex, decorator) {
14785
14789
  return function (target, key) {
14786
14790
  decorator(target, key, paramIndex);
14787
14791
  };
@@ -14825,19 +14829,19 @@
14825
14829
  this.tempTheme = pathAttribute, this._draw(path, pathAttribute, !1, drawContext, params), this.tempTheme = null;
14826
14830
  }
14827
14831
  };
14828
- DefaultCanvasPathRender = __decorate$W([injectable(), __param$u(0, inject(ContributionProvider)), __param$u(0, named(PathRenderContribution)), __metadata$E("design:paramtypes", [Object])], DefaultCanvasPathRender);
14832
+ DefaultCanvasPathRender = __decorate$Y([injectable(), __param$w(0, inject(ContributionProvider)), __param$w(0, named(PathRenderContribution)), __metadata$G("design:paramtypes", [Object])], DefaultCanvasPathRender);
14829
14833
 
14830
- var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14834
+ var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14831
14835
  var d,
14832
14836
  c = arguments.length,
14833
14837
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
14834
14838
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
14835
14839
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14836
14840
  },
14837
- __metadata$D = undefined && undefined.__metadata || function (k, v) {
14841
+ __metadata$F = undefined && undefined.__metadata || function (k, v) {
14838
14842
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
14839
14843
  },
14840
- __param$t = undefined && undefined.__param || function (paramIndex, decorator) {
14844
+ __param$v = undefined && undefined.__param || function (paramIndex, decorator) {
14841
14845
  return function (target, key) {
14842
14846
  decorator(target, key, paramIndex);
14843
14847
  };
@@ -14896,19 +14900,19 @@
14896
14900
  this._draw(rect, rectAttribute, !1, drawContext, params, rectAttribute);
14897
14901
  }
14898
14902
  };
14899
- DefaultCanvasRectRender = __decorate$V([injectable(), __param$t(0, inject(ContributionProvider)), __param$t(0, named(RectRenderContribution)), __metadata$D("design:paramtypes", [Object])], DefaultCanvasRectRender);
14903
+ DefaultCanvasRectRender = __decorate$X([injectable(), __param$v(0, inject(ContributionProvider)), __param$v(0, named(RectRenderContribution)), __metadata$F("design:paramtypes", [Object])], DefaultCanvasRectRender);
14900
14904
 
14901
- var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14905
+ var __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
14902
14906
  var d,
14903
14907
  c = arguments.length,
14904
14908
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
14905
14909
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
14906
14910
  return c > 3 && r && Object.defineProperty(target, key, r), r;
14907
14911
  },
14908
- __metadata$C = undefined && undefined.__metadata || function (k, v) {
14912
+ __metadata$E = undefined && undefined.__metadata || function (k, v) {
14909
14913
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
14910
14914
  },
14911
- __param$s = undefined && undefined.__param || function (paramIndex, decorator) {
14915
+ __param$u = undefined && undefined.__param || function (paramIndex, decorator) {
14912
14916
  return function (target, key) {
14913
14917
  decorator(target, key, paramIndex);
14914
14918
  };
@@ -14978,7 +14982,7 @@
14978
14982
  this._draw(symbol, symbolAttribute, !1, drawContext, params);
14979
14983
  }
14980
14984
  };
14981
- DefaultCanvasSymbolRender = __decorate$U([injectable(), __param$s(0, inject(ContributionProvider)), __param$s(0, named(SymbolRenderContribution)), __metadata$C("design:paramtypes", [Object])], DefaultCanvasSymbolRender);
14985
+ DefaultCanvasSymbolRender = __decorate$W([injectable(), __param$u(0, inject(ContributionProvider)), __param$u(0, named(SymbolRenderContribution)), __metadata$E("design:paramtypes", [Object])], DefaultCanvasSymbolRender);
14982
14986
 
14983
14987
  class DefaultBoundsAllocate {
14984
14988
  constructor() {
@@ -15069,17 +15073,17 @@
15069
15073
  }
15070
15074
  const defaultTextBackgroundRenderContribution = new DefaultTextBackgroundRenderContribution();
15071
15075
 
15072
- var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15076
+ var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15073
15077
  var d,
15074
15078
  c = arguments.length,
15075
15079
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
15076
15080
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
15077
15081
  return c > 3 && r && Object.defineProperty(target, key, r), r;
15078
15082
  },
15079
- __metadata$B = undefined && undefined.__metadata || function (k, v) {
15083
+ __metadata$D = undefined && undefined.__metadata || function (k, v) {
15080
15084
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
15081
15085
  },
15082
- __param$r = undefined && undefined.__param || function (paramIndex, decorator) {
15086
+ __param$t = undefined && undefined.__param || function (paramIndex, decorator) {
15083
15087
  return function (target, key) {
15084
15088
  decorator(target, key, paramIndex);
15085
15089
  };
@@ -15218,7 +15222,7 @@
15218
15222
  }
15219
15223
  }
15220
15224
  };
15221
- DefaultCanvasTextRender = __decorate$T([injectable(), __param$r(0, inject(ContributionProvider)), __param$r(0, named(TextRenderContribution)), __metadata$B("design:paramtypes", [Object])], DefaultCanvasTextRender);
15225
+ DefaultCanvasTextRender = __decorate$V([injectable(), __param$t(0, inject(ContributionProvider)), __param$t(0, named(TextRenderContribution)), __metadata$D("design:paramtypes", [Object])], DefaultCanvasTextRender);
15222
15226
 
15223
15227
  function drawPolygon(path, points, x, y) {
15224
15228
  if (points && points.length) {
@@ -15275,17 +15279,17 @@
15275
15279
  const defaultPolygonTextureRenderContribution = defaultBaseTextureRenderContribution;
15276
15280
  const defaultPolygonBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
15277
15281
 
15278
- var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15282
+ var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15279
15283
  var d,
15280
15284
  c = arguments.length,
15281
15285
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
15282
15286
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
15283
15287
  return c > 3 && r && Object.defineProperty(target, key, r), r;
15284
15288
  },
15285
- __metadata$A = undefined && undefined.__metadata || function (k, v) {
15289
+ __metadata$C = undefined && undefined.__metadata || function (k, v) {
15286
15290
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
15287
15291
  },
15288
- __param$q = undefined && undefined.__param || function (paramIndex, decorator) {
15292
+ __param$s = undefined && undefined.__param || function (paramIndex, decorator) {
15289
15293
  return function (target, key) {
15290
15294
  decorator(target, key, paramIndex);
15291
15295
  };
@@ -15326,19 +15330,19 @@
15326
15330
  this._draw(polygon, polygonAttribute, !1, drawContext, params);
15327
15331
  }
15328
15332
  };
15329
- DefaultCanvasPolygonRender = __decorate$S([injectable(), __param$q(0, inject(ContributionProvider)), __param$q(0, named(PolygonRenderContribution)), __metadata$A("design:paramtypes", [Object])], DefaultCanvasPolygonRender);
15333
+ DefaultCanvasPolygonRender = __decorate$U([injectable(), __param$s(0, inject(ContributionProvider)), __param$s(0, named(PolygonRenderContribution)), __metadata$C("design:paramtypes", [Object])], DefaultCanvasPolygonRender);
15330
15334
 
15331
- var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15335
+ var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15332
15336
  var d,
15333
15337
  c = arguments.length,
15334
15338
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
15335
15339
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
15336
15340
  return c > 3 && r && Object.defineProperty(target, key, r), r;
15337
15341
  },
15338
- __metadata$z = undefined && undefined.__metadata || function (k, v) {
15342
+ __metadata$B = undefined && undefined.__metadata || function (k, v) {
15339
15343
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
15340
15344
  },
15341
- __param$p = undefined && undefined.__param || function (paramIndex, decorator) {
15345
+ __param$r = undefined && undefined.__param || function (paramIndex, decorator) {
15342
15346
  return function (target, key) {
15343
15347
  decorator(target, key, paramIndex);
15344
15348
  };
@@ -15473,19 +15477,19 @@
15473
15477
  }) : clip ? context.restore() : context.highPerformanceRestore();
15474
15478
  }
15475
15479
  };
15476
- DefaultCanvasGroupRender = __decorate$R([injectable(), __param$p(0, inject(ContributionProvider)), __param$p(0, named(GroupRenderContribution)), __metadata$z("design:paramtypes", [Object])], DefaultCanvasGroupRender);
15480
+ DefaultCanvasGroupRender = __decorate$T([injectable(), __param$r(0, inject(ContributionProvider)), __param$r(0, named(GroupRenderContribution)), __metadata$B("design:paramtypes", [Object])], DefaultCanvasGroupRender);
15477
15481
 
15478
- var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15482
+ var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15479
15483
  var d,
15480
15484
  c = arguments.length,
15481
15485
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
15482
15486
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
15483
15487
  return c > 3 && r && Object.defineProperty(target, key, r), r;
15484
15488
  },
15485
- __metadata$y = undefined && undefined.__metadata || function (k, v) {
15489
+ __metadata$A = undefined && undefined.__metadata || function (k, v) {
15486
15490
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
15487
15491
  },
15488
- __param$o = undefined && undefined.__param || function (paramIndex, decorator) {
15492
+ __param$q = undefined && undefined.__param || function (paramIndex, decorator) {
15489
15493
  return function (target, key) {
15490
15494
  decorator(target, key, paramIndex);
15491
15495
  };
@@ -15554,10 +15558,11 @@
15554
15558
  this._draw(image, imageAttribute, !1, drawContext);
15555
15559
  }
15556
15560
  };
15557
- DefaultCanvasImageRender = __decorate$Q([injectable(), __param$o(0, inject(ContributionProvider)), __param$o(0, named(ImageRenderContribution)), __metadata$y("design:paramtypes", [Object])], DefaultCanvasImageRender);
15561
+ DefaultCanvasImageRender = __decorate$S([injectable(), __param$q(0, inject(ContributionProvider)), __param$q(0, named(ImageRenderContribution)), __metadata$A("design:paramtypes", [Object])], DefaultCanvasImageRender);
15558
15562
 
15559
15563
  const IncrementalDrawContribution = Symbol.for("IncrementalDrawContribution");
15560
15564
  const ArcRender = Symbol.for("ArcRender");
15565
+ const AreaRender = Symbol.for("AreaRender");
15561
15566
  const CircleRender = Symbol.for("CircleRender");
15562
15567
  const GraphicRender = Symbol.for("GraphicRender");
15563
15568
  const GroupRender = Symbol.for("GroupRender");
@@ -15616,14 +15621,14 @@
15616
15621
  return result;
15617
15622
  };
15618
15623
 
15619
- var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15624
+ var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15620
15625
  var d,
15621
15626
  c = arguments.length,
15622
15627
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
15623
15628
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
15624
15629
  return c > 3 && r && Object.defineProperty(target, key, r), r;
15625
15630
  },
15626
- __metadata$x = undefined && undefined.__metadata || function (k, v) {
15631
+ __metadata$z = undefined && undefined.__metadata || function (k, v) {
15627
15632
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
15628
15633
  };
15629
15634
  const DrawItemInterceptor = Symbol.for("DrawItemInterceptor");
@@ -15684,7 +15689,7 @@
15684
15689
  return !1;
15685
15690
  }
15686
15691
  };
15687
- CommonDrawItemInterceptorContribution = __decorate$P([injectable(), __metadata$x("design:paramtypes", [])], CommonDrawItemInterceptorContribution);
15692
+ CommonDrawItemInterceptorContribution = __decorate$R([injectable(), __metadata$z("design:paramtypes", [])], CommonDrawItemInterceptorContribution);
15688
15693
  class InteractiveDrawItemInterceptorContribution {
15689
15694
  constructor() {
15690
15695
  this.order = 1;
@@ -15775,17 +15780,17 @@
15775
15780
  }
15776
15781
  }
15777
15782
 
15778
- var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15783
+ var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15779
15784
  var d,
15780
15785
  c = arguments.length,
15781
15786
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
15782
15787
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
15783
15788
  return c > 3 && r && Object.defineProperty(target, key, r), r;
15784
15789
  },
15785
- __metadata$w = undefined && undefined.__metadata || function (k, v) {
15790
+ __metadata$y = undefined && undefined.__metadata || function (k, v) {
15786
15791
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
15787
15792
  },
15788
- __param$n = undefined && undefined.__param || function (paramIndex, decorator) {
15793
+ __param$p = undefined && undefined.__param || function (paramIndex, decorator) {
15789
15794
  return function (target, key) {
15790
15795
  decorator(target, key, paramIndex);
15791
15796
  };
@@ -15824,7 +15829,7 @@
15824
15829
  this.prepare(updateBounds), this.prepareRenderList(), this.beforeDraw(params), this.draw(params), this.afterDraw(params), this.drawParams = null;
15825
15830
  }
15826
15831
  };
15827
- DefaultRenderService = __decorate$O([injectable(), __param$n(0, inject(DrawContribution)), __metadata$w("design:paramtypes", [Object])], DefaultRenderService);
15832
+ DefaultRenderService = __decorate$Q([injectable(), __param$p(0, inject(DrawContribution)), __metadata$y("design:paramtypes", [Object])], DefaultRenderService);
15828
15833
 
15829
15834
  var renderModule$1 = new ContainerModule(bind => {
15830
15835
  bind(RenderService).to(DefaultRenderService);
@@ -15835,7 +15840,7 @@
15835
15840
  const PickItemInterceptor = Symbol.for("PickItemInterceptor");
15836
15841
  const PickServiceInterceptor = Symbol.for("PickServiceInterceptor");
15837
15842
 
15838
- var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15843
+ var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15839
15844
  var d,
15840
15845
  c = arguments.length,
15841
15846
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -15857,7 +15862,7 @@
15857
15862
  return result;
15858
15863
  }
15859
15864
  };
15860
- ShadowPickServiceInterceptorContribution = __decorate$N([injectable()], ShadowPickServiceInterceptorContribution);
15865
+ ShadowPickServiceInterceptorContribution = __decorate$P([injectable()], ShadowPickServiceInterceptorContribution);
15861
15866
  let ShadowRootPickItemInterceptorContribution = class {
15862
15867
  constructor() {
15863
15868
  this.order = 1;
@@ -15888,7 +15893,7 @@
15888
15893
  return context.highPerformanceRestore(), !result.graphic && result.group && "full" === shadowPickMode && (result.graphic = result.group), result;
15889
15894
  }
15890
15895
  };
15891
- ShadowRootPickItemInterceptorContribution = __decorate$N([injectable()], ShadowRootPickItemInterceptorContribution);
15896
+ ShadowRootPickItemInterceptorContribution = __decorate$P([injectable()], ShadowRootPickItemInterceptorContribution);
15892
15897
  let InteractivePickItemInterceptorContribution = class {
15893
15898
  constructor() {
15894
15899
  this.order = 1;
@@ -15907,7 +15912,7 @@
15907
15912
  return null;
15908
15913
  }
15909
15914
  };
15910
- InteractivePickItemInterceptorContribution = __decorate$N([injectable()], InteractivePickItemInterceptorContribution);
15915
+ InteractivePickItemInterceptorContribution = __decorate$P([injectable()], InteractivePickItemInterceptorContribution);
15911
15916
  let Canvas3DPickItemInterceptor = class {
15912
15917
  constructor() {
15913
15918
  this.order = 1;
@@ -15927,7 +15932,7 @@
15927
15932
  context.setTransformForCurrent();
15928
15933
  }
15929
15934
  };
15930
- Canvas3DPickItemInterceptor = __decorate$N([injectable()], Canvas3DPickItemInterceptor);
15935
+ Canvas3DPickItemInterceptor = __decorate$P([injectable()], Canvas3DPickItemInterceptor);
15931
15936
 
15932
15937
  var pickModule = new ContainerModule((bind, unbind, isBound) => {
15933
15938
  isBound(PickerService) || (bind(GlobalPickerService).toSelf(), bind(PickerService).toService(GlobalPickerService)), bind(Canvas3DPickItemInterceptor).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(Canvas3DPickItemInterceptor), bind(ShadowRootPickItemInterceptorContribution).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(ShadowRootPickItemInterceptorContribution), bind(InteractivePickItemInterceptorContribution).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(InteractivePickItemInterceptorContribution), bindContributionProvider(bind, PickItemInterceptor), bind(ShadowPickServiceInterceptorContribution).toSelf().inSingletonScope(), bind(PickServiceInterceptor).toService(ShadowPickServiceInterceptorContribution), bindContributionProvider(bind, PickServiceInterceptor);
@@ -15940,17 +15945,17 @@
15940
15945
  const AutoEnablePlugins = Symbol.for("AutoEnablePlugins");
15941
15946
  const PluginService = Symbol.for("PluginService");
15942
15947
 
15943
- var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15948
+ var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
15944
15949
  var d,
15945
15950
  c = arguments.length,
15946
15951
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
15947
15952
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
15948
15953
  return c > 3 && r && Object.defineProperty(target, key, r), r;
15949
15954
  },
15950
- __metadata$v = undefined && undefined.__metadata || function (k, v) {
15955
+ __metadata$x = undefined && undefined.__metadata || function (k, v) {
15951
15956
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
15952
15957
  },
15953
- __param$m = undefined && undefined.__param || function (paramIndex, decorator) {
15958
+ __param$o = undefined && undefined.__param || function (paramIndex, decorator) {
15954
15959
  return function (target, key) {
15955
15960
  decorator(target, key, paramIndex);
15956
15961
  };
@@ -15990,7 +15995,7 @@
15990
15995
  }), this.onRegisterPlugin = [];
15991
15996
  }
15992
15997
  };
15993
- DefaultPluginService = __decorate$M([injectable(), __param$m(0, inject(ContributionProvider)), __param$m(0, named(AutoEnablePlugins)), __metadata$v("design:paramtypes", [Object])], DefaultPluginService);
15998
+ DefaultPluginService = __decorate$O([injectable(), __param$o(0, inject(ContributionProvider)), __param$o(0, named(AutoEnablePlugins)), __metadata$x("design:paramtypes", [Object])], DefaultPluginService);
15994
15999
 
15995
16000
  var pluginModule = new ContainerModule(bind => {
15996
16001
  bind(PluginService).to(DefaultPluginService), bindContributionProviderNoSingletonScope(bind, AutoEnablePlugins);
@@ -16004,14 +16009,14 @@
16004
16009
  bind(TextMeasureContribution).to(DefaultTextMeasureContribution).inSingletonScope(), bindContributionProvider(bind, TextMeasureContribution);
16005
16010
  });
16006
16011
 
16007
- var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16012
+ var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16008
16013
  var d,
16009
16014
  c = arguments.length,
16010
16015
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16011
16016
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
16012
16017
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16013
16018
  },
16014
- __metadata$u = undefined && undefined.__metadata || function (k, v) {
16019
+ __metadata$w = undefined && undefined.__metadata || function (k, v) {
16015
16020
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16016
16021
  };
16017
16022
  let CanvasLayerHandlerContribution = class {
@@ -16081,7 +16086,7 @@
16081
16086
  this.canvas.release();
16082
16087
  }
16083
16088
  };
16084
- CanvasLayerHandlerContribution = __decorate$L([injectable(), __metadata$u("design:paramtypes", [])], CanvasLayerHandlerContribution);
16089
+ CanvasLayerHandlerContribution = __decorate$N([injectable(), __metadata$w("design:paramtypes", [])], CanvasLayerHandlerContribution);
16085
16090
 
16086
16091
  var layerHandlerModules = new ContainerModule(bind => {
16087
16092
  bind(CanvasLayerHandlerContribution).toSelf(), bind(StaticLayerHandlerContribution).toService(CanvasLayerHandlerContribution);
@@ -16196,17 +16201,17 @@
16196
16201
  return result;
16197
16202
  }
16198
16203
 
16199
- var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16204
+ var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16200
16205
  var d,
16201
16206
  c = arguments.length,
16202
16207
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16203
16208
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
16204
16209
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16205
16210
  },
16206
- __metadata$t = undefined && undefined.__metadata || function (k, v) {
16211
+ __metadata$v = undefined && undefined.__metadata || function (k, v) {
16207
16212
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16208
16213
  },
16209
- __param$l = undefined && undefined.__param || function (paramIndex, decorator) {
16214
+ __param$n = undefined && undefined.__param || function (paramIndex, decorator) {
16210
16215
  return function (target, key) {
16211
16216
  decorator(target, key, paramIndex);
16212
16217
  };
@@ -16415,9 +16420,9 @@
16415
16420
  }
16416
16421
  afterDraw(renderService, drawParams) {}
16417
16422
  };
16418
- DefaultDrawContribution = __decorate$K([injectable(), __param$l(0, multiInject(GraphicRender)), __param$l(1, inject(ContributionProvider)), __param$l(1, named(DrawItemInterceptor)), __metadata$t("design:paramtypes", [Array, Object])], DefaultDrawContribution);
16423
+ DefaultDrawContribution = __decorate$M([injectable(), __param$n(0, multiInject(GraphicRender)), __param$n(1, inject(ContributionProvider)), __param$n(1, named(DrawItemInterceptor)), __metadata$v("design:paramtypes", [Array, Object])], DefaultDrawContribution);
16419
16424
 
16420
- var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16425
+ var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16421
16426
  var d,
16422
16427
  c = arguments.length,
16423
16428
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -16468,9 +16473,9 @@
16468
16473
  }), context.setShadowBlendStyle && context.setShadowBlendStyle(line, attribute, defaultAttribute), context.setStrokeStyle(line, attribute, offsetX, offsetY, defaultAttribute), context.stroke());
16469
16474
  }
16470
16475
  };
16471
- DefaultIncrementalCanvasLineRender = __decorate$J([injectable()], DefaultIncrementalCanvasLineRender);
16476
+ DefaultIncrementalCanvasLineRender = __decorate$L([injectable()], DefaultIncrementalCanvasLineRender);
16472
16477
 
16473
- var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16478
+ var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16474
16479
  var d,
16475
16480
  c = arguments.length,
16476
16481
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -16513,20 +16518,20 @@
16513
16518
  }), context.setShadowBlendStyle && context.setShadowBlendStyle(area, attribute, defaultAttribute), context.setCommonStyle(area, attribute, offsetX, offsetY, defaultAttribute), context.fill());
16514
16519
  }
16515
16520
  };
16516
- DefaultIncrementalCanvasAreaRender = __decorate$I([injectable()], DefaultIncrementalCanvasAreaRender);
16521
+ DefaultIncrementalCanvasAreaRender = __decorate$K([injectable()], DefaultIncrementalCanvasAreaRender);
16517
16522
 
16518
16523
  var STATUS,
16519
- __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16524
+ __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
16520
16525
  var d,
16521
16526
  c = arguments.length,
16522
16527
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
16523
16528
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
16524
16529
  return c > 3 && r && Object.defineProperty(target, key, r), r;
16525
16530
  },
16526
- __metadata$s = undefined && undefined.__metadata || function (k, v) {
16531
+ __metadata$u = undefined && undefined.__metadata || function (k, v) {
16527
16532
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
16528
16533
  },
16529
- __param$k = undefined && undefined.__param || function (paramIndex, decorator) {
16534
+ __param$m = undefined && undefined.__param || function (paramIndex, decorator) {
16530
16535
  return function (target, key) {
16531
16536
  decorator(target, key, paramIndex);
16532
16537
  };
@@ -16656,7 +16661,7 @@
16656
16661
  });
16657
16662
  }
16658
16663
  };
16659
- DefaultIncrementalDrawContribution = __decorate$H([injectable(), __param$k(0, multiInject(GraphicRender)), __param$k(1, inject(DefaultIncrementalCanvasLineRender)), __param$k(2, inject(DefaultIncrementalCanvasAreaRender)), __param$k(3, inject(ContributionProvider)), __param$k(3, named(DrawItemInterceptor)), __metadata$s("design:paramtypes", [Array, Object, Object, Object])], DefaultIncrementalDrawContribution);
16664
+ DefaultIncrementalDrawContribution = __decorate$J([injectable(), __param$m(0, multiInject(GraphicRender)), __param$m(1, inject(DefaultIncrementalCanvasLineRender)), __param$m(2, inject(DefaultIncrementalCanvasAreaRender)), __param$m(3, inject(ContributionProvider)), __param$m(3, named(DrawItemInterceptor)), __metadata$u("design:paramtypes", [Array, Object, Object, Object])], DefaultIncrementalDrawContribution);
16660
16665
 
16661
16666
  var renderModule = new ContainerModule(bind => {
16662
16667
  bind(DefaultBaseBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultBaseTextureRenderContribution).toSelf().inSingletonScope(), bind(DrawContribution).to(DefaultDrawContribution), bind(IncrementalDrawContribution).to(DefaultIncrementalDrawContribution), bind(GroupRender).to(DefaultCanvasGroupRender).inSingletonScope(), bind(GraphicRender).toService(GroupRender), bindContributionProvider(bind, GroupRenderContribution), bind(DefaultBaseInteractiveRenderContribution).toSelf().inSingletonScope(), bindContributionProvider(bind, InteractiveSubRenderContribution), bindContributionProvider(bind, GraphicRender), bind(CommonDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(CommonDrawItemInterceptorContribution), bindContributionProvider(bind, DrawItemInterceptor);
@@ -17377,7 +17382,7 @@
17377
17382
  return new Stage(params);
17378
17383
  }
17379
17384
 
17380
- var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17385
+ var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17381
17386
  var d,
17382
17387
  c = arguments.length,
17383
17388
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -17491,16 +17496,16 @@
17491
17496
  return Promise.resolve(null);
17492
17497
  }
17493
17498
  };
17494
- BaseEnvContribution = __decorate$G([injectable()], BaseEnvContribution);
17499
+ BaseEnvContribution = __decorate$I([injectable()], BaseEnvContribution);
17495
17500
 
17496
- var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17501
+ var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17497
17502
  var d,
17498
17503
  c = arguments.length,
17499
17504
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17500
17505
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
17501
17506
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17502
17507
  },
17503
- __metadata$r = undefined && undefined.__metadata || function (k, v) {
17508
+ __metadata$t = undefined && undefined.__metadata || function (k, v) {
17504
17509
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17505
17510
  };
17506
17511
  let BaseWindowHandlerContribution = class {
@@ -17539,19 +17544,19 @@
17539
17544
  return this.modelMatrix;
17540
17545
  }
17541
17546
  };
17542
- BaseWindowHandlerContribution = __decorate$F([injectable(), __metadata$r("design:paramtypes", [])], BaseWindowHandlerContribution);
17547
+ BaseWindowHandlerContribution = __decorate$H([injectable(), __metadata$t("design:paramtypes", [])], BaseWindowHandlerContribution);
17543
17548
 
17544
- var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17549
+ var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17545
17550
  var d,
17546
17551
  c = arguments.length,
17547
17552
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17548
17553
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
17549
17554
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17550
17555
  },
17551
- __metadata$q = undefined && undefined.__metadata || function (k, v) {
17556
+ __metadata$s = undefined && undefined.__metadata || function (k, v) {
17552
17557
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17553
17558
  },
17554
- __param$j = undefined && undefined.__param || function (paramIndex, decorator) {
17559
+ __param$l = undefined && undefined.__param || function (paramIndex, decorator) {
17555
17560
  return function (target, key) {
17556
17561
  decorator(target, key, paramIndex);
17557
17562
  };
@@ -17659,7 +17664,21 @@
17659
17664
  return picker || null;
17660
17665
  }
17661
17666
  };
17662
- DefaultPickService = __decorate$E([injectable(), __param$j(0, inject(ContributionProvider)), __param$j(0, named(PickItemInterceptor)), __param$j(1, inject(ContributionProvider)), __param$j(1, named(PickServiceInterceptor)), __metadata$q("design:paramtypes", [Object, Object])], DefaultPickService);
17667
+ DefaultPickService = __decorate$G([injectable(), __param$l(0, inject(ContributionProvider)), __param$l(0, named(PickItemInterceptor)), __param$l(1, inject(ContributionProvider)), __param$l(1, named(PickServiceInterceptor)), __metadata$s("design:paramtypes", [Object, Object])], DefaultPickService);
17668
+
17669
+ function simplifyRadialDist(points, sqTolerance) {
17670
+ let deltaX,
17671
+ deltaY,
17672
+ lastX = points[0].x,
17673
+ lastY = points[0].y;
17674
+ const newPoints = [points[0]];
17675
+ for (let i = 1, len = points.length; i < len; i++) deltaX = points[i].x - lastX, deltaY = points[i].y - lastY, deltaX * deltaX + deltaY * deltaY > sqTolerance && (lastX = points[i].x, lastY = points[i].y, newPoints.push(points[i]));
17676
+ return points[points.length - 1].x === lastX && points[points.length - 1].y === lastY || newPoints.push(points[points.length - 1]), newPoints;
17677
+ }
17678
+ function flatten_simplify(points, tolerance, highestQuality) {
17679
+ if (points.length <= 10) return points;
17680
+ return points = highestQuality ? points : simplifyRadialDist(points, void 0 !== tolerance ? tolerance * tolerance : 1);
17681
+ }
17663
17682
 
17664
17683
  function diff(oldAttrs, newAttrs, getAttr) {
17665
17684
  const diffObj = {};
@@ -17686,6 +17705,11 @@
17686
17705
  loadLineModule || (loadLineModule = !0, bind(DefaultCanvasLineRender).toSelf().inSingletonScope(), bind(DefaultIncrementalCanvasLineRender).toSelf().inSingletonScope(), bind(LineRender).to(DefaultCanvasLineRender).inSingletonScope(), bind(GraphicRender).toService(LineRender));
17687
17706
  });
17688
17707
 
17708
+ let loadAreaModule = !1;
17709
+ const areaModule = new ContainerModule(bind => {
17710
+ loadAreaModule || (loadAreaModule = !0, bind(DefaultCanvasAreaRender).toSelf().inSingletonScope(), bind(AreaRender).to(DefaultCanvasAreaRender).inSingletonScope(), bind(GraphicRender).toService(AreaRender), bind(AreaRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, AreaRenderContribution), bind(DefaultIncrementalCanvasAreaRender).toSelf().inSingletonScope());
17711
+ });
17712
+
17689
17713
  let loadSymbolModule = !1;
17690
17714
  const symbolModule = new ContainerModule(bind => {
17691
17715
  loadSymbolModule || (loadSymbolModule = !0, bind(DefaultCanvasSymbolRender).toSelf().inSingletonScope(), bind(SymbolRender).to(DefaultCanvasSymbolRender).inSingletonScope(), bind(GraphicRender).toService(SymbolRender), bind(SymbolRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, SymbolRenderContribution));
@@ -17711,14 +17735,14 @@
17711
17735
  loadPolygonModule || (loadPolygonModule = !0, bind(PolygonRender).to(DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bind(PolygonRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PolygonRenderContribution));
17712
17736
  });
17713
17737
 
17714
- var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17738
+ var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
17715
17739
  var d,
17716
17740
  c = arguments.length,
17717
17741
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
17718
17742
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
17719
17743
  return c > 3 && r && Object.defineProperty(target, key, r), r;
17720
17744
  },
17721
- __metadata$p = undefined && undefined.__metadata || function (k, v) {
17745
+ __metadata$r = undefined && undefined.__metadata || function (k, v) {
17722
17746
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
17723
17747
  };
17724
17748
  let DefaultCanvasRichTextRender = class extends BaseRender {
@@ -17772,7 +17796,7 @@
17772
17796
  this._draw(richtext, richtextAttribute, !1, drawContext);
17773
17797
  }
17774
17798
  };
17775
- DefaultCanvasRichTextRender = __decorate$D([injectable(), __metadata$p("design:paramtypes", [])], DefaultCanvasRichTextRender);
17799
+ DefaultCanvasRichTextRender = __decorate$F([injectable(), __metadata$r("design:paramtypes", [])], DefaultCanvasRichTextRender);
17776
17800
 
17777
17801
  let loadRichtextModule = !1;
17778
17802
  const richtextModule = new ContainerModule(bind => {
@@ -17788,6 +17812,10 @@
17788
17812
  graphicCreator.RegisterGraphicCreator("arc", createArc);
17789
17813
  }
17790
17814
 
17815
+ function registerAreaGraphic() {
17816
+ graphicCreator.RegisterGraphicCreator("area", createArea);
17817
+ }
17818
+
17791
17819
  function registerCircleGraphic() {
17792
17820
  graphicCreator.RegisterGraphicCreator("circle", createCircle);
17793
17821
  }
@@ -18163,6 +18191,7 @@
18163
18191
 
18164
18192
  const MathPickerContribution = Symbol.for("MathPickerContribution");
18165
18193
  const MathArcPicker = Symbol.for("MathArcPicker");
18194
+ const MathAreaPicker = Symbol.for("MathAreaPicker");
18166
18195
  const MathCirclePicker = Symbol.for("MathCirclePicker");
18167
18196
  const MathImagePicker = Symbol.for("MathImagePicker");
18168
18197
  const MathLinePicker = Symbol.for("MathLinePicker");
@@ -18172,6 +18201,7 @@
18172
18201
  const MathTextPicker = Symbol.for("MathTextPicker");
18173
18202
  const MathPolygonPicker = Symbol.for("MathPolygonPicker");
18174
18203
  const CanvasArcPicker = Symbol.for("CanvasArcPicker");
18204
+ const CanvasAreaPicker = Symbol.for("CanvasAreaPicker");
18175
18205
  const CanvasCirclePicker = Symbol.for("CanvasCirclePicker");
18176
18206
  const CanvasImagePicker = Symbol.for("CanvasImagePicker");
18177
18207
  const CanvasLinePicker = Symbol.for("CanvasLinePicker");
@@ -18451,14 +18481,14 @@
18451
18481
  }
18452
18482
  }
18453
18483
 
18454
- var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18484
+ var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18455
18485
  var d,
18456
18486
  c = arguments.length,
18457
18487
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
18458
18488
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
18459
18489
  return c > 3 && r && Object.defineProperty(target, key, r), r;
18460
18490
  },
18461
- __metadata$o = undefined && undefined.__metadata || function (k, v) {
18491
+ __metadata$q = undefined && undefined.__metadata || function (k, v) {
18462
18492
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
18463
18493
  };
18464
18494
  const outP = [0, 0, 0],
@@ -18960,16 +18990,16 @@
18960
18990
  this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
18961
18991
  }
18962
18992
  };
18963
- BrowserContext2d.env = "browser", BrowserContext2d = __decorate$C([injectable(), __metadata$o("design:paramtypes", [Object, Number])], BrowserContext2d);
18993
+ BrowserContext2d.env = "browser", BrowserContext2d = __decorate$E([injectable(), __metadata$q("design:paramtypes", [Object, Number])], BrowserContext2d);
18964
18994
 
18965
- var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18995
+ var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
18966
18996
  var d,
18967
18997
  c = arguments.length,
18968
18998
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
18969
18999
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
18970
19000
  return c > 3 && r && Object.defineProperty(target, key, r), r;
18971
19001
  },
18972
- __metadata$n = undefined && undefined.__metadata || function (k, v) {
19002
+ __metadata$p = undefined && undefined.__metadata || function (k, v) {
18973
19003
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
18974
19004
  };
18975
19005
  let BrowserCanvas = class extends BaseCanvas {
@@ -19031,7 +19061,7 @@
19031
19061
  this._context.dpr = this._dpr;
19032
19062
  }
19033
19063
  };
19034
- BrowserCanvas.env = "browser", BrowserCanvas = __decorate$B([injectable(), __metadata$n("design:paramtypes", [Object])], BrowserCanvas);
19064
+ BrowserCanvas.env = "browser", BrowserCanvas = __decorate$D([injectable(), __metadata$p("design:paramtypes", [Object])], BrowserCanvas);
19035
19065
 
19036
19066
  function createModule(CanvasConstructor, ContextConstructor) {
19037
19067
  return new ContainerModule(bind => {
@@ -19041,17 +19071,17 @@
19041
19071
 
19042
19072
  const browserCanvasModule = createModule(BrowserCanvas, BrowserContext2d);
19043
19073
 
19044
- var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19074
+ var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19045
19075
  var d,
19046
19076
  c = arguments.length,
19047
19077
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19048
19078
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
19049
19079
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19050
19080
  },
19051
- __metadata$m = undefined && undefined.__metadata || function (k, v) {
19081
+ __metadata$o = undefined && undefined.__metadata || function (k, v) {
19052
19082
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19053
19083
  },
19054
- __param$i = undefined && undefined.__param || function (paramIndex, decorator) {
19084
+ __param$k = undefined && undefined.__param || function (paramIndex, decorator) {
19055
19085
  return function (target, key) {
19056
19086
  decorator(target, key, paramIndex);
19057
19087
  };
@@ -19102,9 +19132,9 @@
19102
19132
  return data;
19103
19133
  }
19104
19134
  };
19105
- DefaultCanvasPickerService = __decorate$A([injectable(), __param$i(0, inject(ContributionProvider)), __param$i(0, named(CanvasPickerContribution)), __param$i(1, inject(DrawContribution)), __param$i(2, inject(ContributionProvider)), __param$i(2, named(PickItemInterceptor)), __param$i(3, inject(ContributionProvider)), __param$i(3, named(PickServiceInterceptor)), __metadata$m("design:paramtypes", [Object, Object, Object, Object])], DefaultCanvasPickerService);
19135
+ DefaultCanvasPickerService = __decorate$C([injectable(), __param$k(0, inject(ContributionProvider)), __param$k(0, named(CanvasPickerContribution)), __param$k(1, inject(DrawContribution)), __param$k(2, inject(ContributionProvider)), __param$k(2, named(PickItemInterceptor)), __param$k(3, inject(ContributionProvider)), __param$k(3, named(PickServiceInterceptor)), __metadata$o("design:paramtypes", [Object, Object, Object, Object])], DefaultCanvasPickerService);
19106
19136
 
19107
- var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19137
+ var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19108
19138
  var d,
19109
19139
  c = arguments.length,
19110
19140
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -19119,7 +19149,7 @@
19119
19149
  return !1;
19120
19150
  }
19121
19151
  };
19122
- DefaultCanvasGroupPicker = __decorate$z([injectable()], DefaultCanvasGroupPicker);
19152
+ DefaultCanvasGroupPicker = __decorate$B([injectable()], DefaultCanvasGroupPicker);
19123
19153
 
19124
19154
  const m = new ContainerModule((bind, unbind, isBound, rebind) => {
19125
19155
  m.__vloaded || (m.__vloaded = !0, bind(CanvasGroupPicker).to(DefaultCanvasGroupPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGroupPicker), bindContributionProvider(bind, CanvasPickerContribution));
@@ -19135,14 +19165,14 @@
19135
19165
  }
19136
19166
 
19137
19167
  var BrowserWindowHandlerContribution_1,
19138
- __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19168
+ __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19139
19169
  var d,
19140
19170
  c = arguments.length,
19141
19171
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19142
19172
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
19143
19173
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19144
19174
  },
19145
- __metadata$l = undefined && undefined.__metadata || function (k, v) {
19175
+ __metadata$n = undefined && undefined.__metadata || function (k, v) {
19146
19176
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19147
19177
  };
19148
19178
  let BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = class extends BaseWindowHandlerContribution {
@@ -19299,19 +19329,19 @@
19299
19329
  return this.global.getElementTopLeft(this.canvas.nativeCanvas, baseWindow);
19300
19330
  }
19301
19331
  };
19302
- BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = __decorate$y([injectable(), __metadata$l("design:paramtypes", [])], BrowserWindowHandlerContribution);
19332
+ BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = __decorate$A([injectable(), __metadata$n("design:paramtypes", [])], BrowserWindowHandlerContribution);
19303
19333
  const browserWindowModule = new ContainerModule(bind => {
19304
19334
  bind(BrowserWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(BrowserWindowHandlerContribution)).whenTargetNamed(BrowserWindowHandlerContribution.env);
19305
19335
  });
19306
19336
 
19307
- var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19337
+ var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19308
19338
  var d,
19309
19339
  c = arguments.length,
19310
19340
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19311
19341
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
19312
19342
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19313
19343
  },
19314
- __metadata$k = undefined && undefined.__metadata || function (k, v) {
19344
+ __metadata$m = undefined && undefined.__metadata || function (k, v) {
19315
19345
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19316
19346
  },
19317
19347
  __awaiter$8 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
@@ -19557,7 +19587,7 @@
19557
19587
  return navigator.clipboard.writeText(text).then(() => {}).catch(err => {});
19558
19588
  }
19559
19589
  };
19560
- BrowserEnvContribution = __decorate$x([injectable(), __metadata$k("design:paramtypes", [])], BrowserEnvContribution);
19590
+ BrowserEnvContribution = __decorate$z([injectable(), __metadata$m("design:paramtypes", [])], BrowserEnvContribution);
19561
19591
 
19562
19592
  const browserEnvModule = new ContainerModule(bind => {
19563
19593
  browserEnvModule.isBrowserBound || (browserEnvModule.isBrowserBound = !0, bind(BrowserEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(BrowserEnvContribution));
@@ -19599,17 +19629,17 @@
19599
19629
  }
19600
19630
  }
19601
19631
 
19602
- var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19632
+ var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19603
19633
  var d,
19604
19634
  c = arguments.length,
19605
19635
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19606
19636
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
19607
19637
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19608
19638
  },
19609
- __metadata$j = undefined && undefined.__metadata || function (k, v) {
19639
+ __metadata$l = undefined && undefined.__metadata || function (k, v) {
19610
19640
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19611
19641
  },
19612
- __param$h = undefined && undefined.__param || function (paramIndex, decorator) {
19642
+ __param$j = undefined && undefined.__param || function (paramIndex, decorator) {
19613
19643
  return function (target, key) {
19614
19644
  decorator(target, key, paramIndex);
19615
19645
  };
@@ -19619,24 +19649,51 @@
19619
19649
  super(), this.canvasRenderer = canvasRenderer, this.type = "arc", this.numberType = ARC_NUMBER_TYPE;
19620
19650
  }
19621
19651
  };
19622
- DefaultMathArcPicker = __decorate$w([injectable(), __param$h(0, inject(ArcRender)), __metadata$j("design:paramtypes", [Object])], DefaultMathArcPicker);
19652
+ DefaultMathArcPicker = __decorate$y([injectable(), __param$j(0, inject(ArcRender)), __metadata$l("design:paramtypes", [Object])], DefaultMathArcPicker);
19623
19653
 
19624
19654
  let loadArcPick$1 = !1;
19625
19655
  const arcMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
19626
19656
  loadArcPick$1 || (loadArcPick$1 = !0, bind(MathArcPicker).to(DefaultMathArcPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathArcPicker));
19627
19657
  });
19628
19658
 
19629
- var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19659
+ var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19630
19660
  var d,
19631
19661
  c = arguments.length,
19632
19662
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19633
19663
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
19634
19664
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19635
19665
  },
19636
- __metadata$i = undefined && undefined.__metadata || function (k, v) {
19666
+ __metadata$k = undefined && undefined.__metadata || function (k, v) {
19637
19667
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19638
19668
  },
19639
- __param$g = undefined && undefined.__param || function (paramIndex, decorator) {
19669
+ __param$i = undefined && undefined.__param || function (paramIndex, decorator) {
19670
+ return function (target, key) {
19671
+ decorator(target, key, paramIndex);
19672
+ };
19673
+ };
19674
+ let DefaultMathAreaPicker = class extends PickerBase {
19675
+ constructor(canvasRenderer) {
19676
+ super(), this.canvasRenderer = canvasRenderer, this.type = "area", this.numberType = AREA_NUMBER_TYPE;
19677
+ }
19678
+ };
19679
+ DefaultMathAreaPicker = __decorate$x([injectable(), __param$i(0, inject(AreaRender)), __metadata$k("design:paramtypes", [Object])], DefaultMathAreaPicker);
19680
+
19681
+ let loadAreaPick$1 = !1;
19682
+ const areaMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
19683
+ loadAreaPick$1 || (loadAreaPick$1 = !0, bind(MathAreaPicker).to(DefaultMathAreaPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathAreaPicker));
19684
+ });
19685
+
19686
+ var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19687
+ var d,
19688
+ c = arguments.length,
19689
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19690
+ if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
19691
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19692
+ },
19693
+ __metadata$j = undefined && undefined.__metadata || function (k, v) {
19694
+ if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19695
+ },
19696
+ __param$h = undefined && undefined.__param || function (paramIndex, decorator) {
19640
19697
  return function (target, key) {
19641
19698
  decorator(target, key, paramIndex);
19642
19699
  };
@@ -19646,14 +19703,14 @@
19646
19703
  super(), this.canvasRenderer = canvasRenderer, this.type = "circle", this.numberType = CIRCLE_NUMBER_TYPE;
19647
19704
  }
19648
19705
  };
19649
- DefaultMathCirclePicker = __decorate$v([injectable(), __param$g(0, inject(CircleRender)), __metadata$i("design:paramtypes", [Object])], DefaultMathCirclePicker);
19706
+ DefaultMathCirclePicker = __decorate$w([injectable(), __param$h(0, inject(CircleRender)), __metadata$j("design:paramtypes", [Object])], DefaultMathCirclePicker);
19650
19707
 
19651
19708
  let loadCirclePick$1 = !1;
19652
19709
  const circleMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
19653
19710
  loadCirclePick$1 || (loadCirclePick$1 = !0, bind(MathCirclePicker).to(DefaultMathCirclePicker).inSingletonScope(), bind(MathPickerContribution).toService(MathCirclePicker));
19654
19711
  });
19655
19712
 
19656
- var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19713
+ var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19657
19714
  var d,
19658
19715
  c = arguments.length,
19659
19716
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -19671,24 +19728,24 @@
19671
19728
  return !!pickContext && !!image.AABBBounds.containsPoint(point);
19672
19729
  }
19673
19730
  };
19674
- DefaultMathImagePicker = __decorate$u([injectable()], DefaultMathImagePicker);
19731
+ DefaultMathImagePicker = __decorate$v([injectable()], DefaultMathImagePicker);
19675
19732
 
19676
19733
  let loadImagePick$1 = !1;
19677
19734
  const imageMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
19678
19735
  loadImagePick$1 || (loadImagePick$1 = !0, bind(MathImagePicker).to(DefaultMathImagePicker).inSingletonScope(), bind(DefaultMathImagePicker).toService(MathImagePicker));
19679
19736
  });
19680
19737
 
19681
- var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19738
+ var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19682
19739
  var d,
19683
19740
  c = arguments.length,
19684
19741
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19685
19742
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
19686
19743
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19687
19744
  },
19688
- __metadata$h = undefined && undefined.__metadata || function (k, v) {
19745
+ __metadata$i = undefined && undefined.__metadata || function (k, v) {
19689
19746
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19690
19747
  },
19691
- __param$f = undefined && undefined.__param || function (paramIndex, decorator) {
19748
+ __param$g = undefined && undefined.__param || function (paramIndex, decorator) {
19692
19749
  return function (target, key) {
19693
19750
  decorator(target, key, paramIndex);
19694
19751
  };
@@ -19698,24 +19755,24 @@
19698
19755
  super(), this.canvasRenderer = canvasRenderer, this.type = "line", this.numberType = LINE_NUMBER_TYPE;
19699
19756
  }
19700
19757
  };
19701
- DefaultMathLinePicker = __decorate$t([injectable(), __param$f(0, inject(LineRender)), __metadata$h("design:paramtypes", [Object])], DefaultMathLinePicker);
19758
+ DefaultMathLinePicker = __decorate$u([injectable(), __param$g(0, inject(LineRender)), __metadata$i("design:paramtypes", [Object])], DefaultMathLinePicker);
19702
19759
 
19703
19760
  let loadLinePick$1 = !1;
19704
19761
  const lineMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
19705
19762
  loadLinePick$1 || (loadLinePick$1 = !0, bind(MathLinePicker).to(DefaultMathLinePicker).inSingletonScope(), bind(MathPickerContribution).toService(MathLinePicker));
19706
19763
  });
19707
19764
 
19708
- var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19765
+ var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19709
19766
  var d,
19710
19767
  c = arguments.length,
19711
19768
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19712
19769
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
19713
19770
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19714
19771
  },
19715
- __metadata$g = undefined && undefined.__metadata || function (k, v) {
19772
+ __metadata$h = undefined && undefined.__metadata || function (k, v) {
19716
19773
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19717
19774
  },
19718
- __param$e = undefined && undefined.__param || function (paramIndex, decorator) {
19775
+ __param$f = undefined && undefined.__param || function (paramIndex, decorator) {
19719
19776
  return function (target, key) {
19720
19777
  decorator(target, key, paramIndex);
19721
19778
  };
@@ -19725,24 +19782,24 @@
19725
19782
  super(), this.canvasRenderer = canvasRenderer, this.type = "polygon", this.numberType = POLYGON_NUMBER_TYPE;
19726
19783
  }
19727
19784
  };
19728
- DefaultMathPolygonPicker = __decorate$s([injectable(), __param$e(0, inject(PolygonRender)), __metadata$g("design:paramtypes", [Object])], DefaultMathPolygonPicker);
19785
+ DefaultMathPolygonPicker = __decorate$t([injectable(), __param$f(0, inject(PolygonRender)), __metadata$h("design:paramtypes", [Object])], DefaultMathPolygonPicker);
19729
19786
 
19730
19787
  let loadPolygonPick$1 = !1;
19731
19788
  const polygonMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
19732
19789
  loadPolygonPick$1 || (loadPolygonPick$1 = !0, bind(MathPolygonPicker).to(DefaultMathPolygonPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathPolygonPicker));
19733
19790
  });
19734
19791
 
19735
- var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19792
+ var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19736
19793
  var d,
19737
19794
  c = arguments.length,
19738
19795
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19739
19796
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
19740
19797
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19741
19798
  },
19742
- __metadata$f = undefined && undefined.__metadata || function (k, v) {
19799
+ __metadata$g = undefined && undefined.__metadata || function (k, v) {
19743
19800
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19744
19801
  },
19745
- __param$d = undefined && undefined.__param || function (paramIndex, decorator) {
19802
+ __param$e = undefined && undefined.__param || function (paramIndex, decorator) {
19746
19803
  return function (target, key) {
19747
19804
  decorator(target, key, paramIndex);
19748
19805
  };
@@ -19752,7 +19809,7 @@
19752
19809
  super(), this.canvasRenderer = canvasRenderer, this.type = "path", this.numberType = PATH_NUMBER_TYPE;
19753
19810
  }
19754
19811
  };
19755
- DefaultMathPathPicker = __decorate$r([injectable(), __param$d(0, inject(PathRender)), __metadata$f("design:paramtypes", [Object])], DefaultMathPathPicker);
19812
+ DefaultMathPathPicker = __decorate$s([injectable(), __param$e(0, inject(PathRender)), __metadata$g("design:paramtypes", [Object])], DefaultMathPathPicker);
19756
19813
 
19757
19814
  let loadPathPick$1 = !1;
19758
19815
  const pathMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -19807,17 +19864,17 @@
19807
19864
  }
19808
19865
  }
19809
19866
 
19810
- var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19867
+ var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19811
19868
  var d,
19812
19869
  c = arguments.length,
19813
19870
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19814
19871
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
19815
19872
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19816
19873
  },
19817
- __metadata$e = undefined && undefined.__metadata || function (k, v) {
19874
+ __metadata$f = undefined && undefined.__metadata || function (k, v) {
19818
19875
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19819
19876
  },
19820
- __param$c = undefined && undefined.__param || function (paramIndex, decorator) {
19877
+ __param$d = undefined && undefined.__param || function (paramIndex, decorator) {
19821
19878
  return function (target, key) {
19822
19879
  decorator(target, key, paramIndex);
19823
19880
  };
@@ -19827,7 +19884,7 @@
19827
19884
  super(), this.canvasRenderer = canvasRenderer;
19828
19885
  }
19829
19886
  };
19830
- DefaultMathRectPicker = __decorate$q([injectable(), __param$c(0, inject(RectRender)), __metadata$e("design:paramtypes", [Object])], DefaultMathRectPicker);
19887
+ DefaultMathRectPicker = __decorate$r([injectable(), __param$d(0, inject(RectRender)), __metadata$f("design:paramtypes", [Object])], DefaultMathRectPicker);
19831
19888
 
19832
19889
  let loadRectPick$1 = !1;
19833
19890
  const rectMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -19839,17 +19896,17 @@
19839
19896
  loadRichTextPick || (loadRichTextPick = !0, bind(MathImagePicker).to(DefaultMathImagePicker).inSingletonScope(), bind(DefaultMathImagePicker).toService(MathImagePicker));
19840
19897
  });
19841
19898
 
19842
- var __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19899
+ var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19843
19900
  var d,
19844
19901
  c = arguments.length,
19845
19902
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19846
19903
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
19847
19904
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19848
19905
  },
19849
- __metadata$d = undefined && undefined.__metadata || function (k, v) {
19906
+ __metadata$e = undefined && undefined.__metadata || function (k, v) {
19850
19907
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19851
19908
  },
19852
- __param$b = undefined && undefined.__param || function (paramIndex, decorator) {
19909
+ __param$c = undefined && undefined.__param || function (paramIndex, decorator) {
19853
19910
  return function (target, key) {
19854
19911
  decorator(target, key, paramIndex);
19855
19912
  };
@@ -19859,14 +19916,14 @@
19859
19916
  super(), this.canvasRenderer = canvasRenderer, this.type = "symbol", this.numberType = SYMBOL_NUMBER_TYPE;
19860
19917
  }
19861
19918
  };
19862
- DefaultMathSymbolPicker = __decorate$p([injectable(), __param$b(0, inject(SymbolRender)), __metadata$d("design:paramtypes", [Object])], DefaultMathSymbolPicker);
19919
+ DefaultMathSymbolPicker = __decorate$q([injectable(), __param$c(0, inject(SymbolRender)), __metadata$e("design:paramtypes", [Object])], DefaultMathSymbolPicker);
19863
19920
 
19864
19921
  let loadSymbolPick$1 = !1;
19865
19922
  const symbolMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
19866
19923
  loadSymbolPick$1 || (loadSymbolPick$1 = !0, bind(MathSymbolPicker).to(DefaultMathSymbolPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathSymbolPicker));
19867
19924
  });
19868
19925
 
19869
- var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19926
+ var __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19870
19927
  var d,
19871
19928
  c = arguments.length,
19872
19929
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -19881,21 +19938,21 @@
19881
19938
  return !!text.AABBBounds.containsPoint(point);
19882
19939
  }
19883
19940
  };
19884
- DefaultMathTextPicker = __decorate$o([injectable()], DefaultMathTextPicker);
19941
+ DefaultMathTextPicker = __decorate$p([injectable()], DefaultMathTextPicker);
19885
19942
 
19886
19943
  let loadTextPick$1 = !1;
19887
19944
  const textMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
19888
19945
  loadTextPick$1 || (loadTextPick$1 = !0, bind(MathTextPicker).to(DefaultMathTextPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathTextPicker));
19889
19946
  });
19890
19947
 
19891
- var __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19948
+ var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19892
19949
  var d,
19893
19950
  c = arguments.length,
19894
19951
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19895
19952
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
19896
19953
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19897
19954
  },
19898
- __metadata$c = undefined && undefined.__metadata || function (k, v) {
19955
+ __metadata$d = undefined && undefined.__metadata || function (k, v) {
19899
19956
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19900
19957
  };
19901
19958
  let NodeContext2d = class extends BrowserContext2d {
@@ -19907,16 +19964,16 @@
19907
19964
  }
19908
19965
  release(...params) {}
19909
19966
  };
19910
- NodeContext2d.env = "node", NodeContext2d = __decorate$n([injectable(), __metadata$c("design:paramtypes", [Object, Number])], NodeContext2d);
19967
+ NodeContext2d.env = "node", NodeContext2d = __decorate$o([injectable(), __metadata$d("design:paramtypes", [Object, Number])], NodeContext2d);
19911
19968
 
19912
- var __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19969
+ var __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19913
19970
  var d,
19914
19971
  c = arguments.length,
19915
19972
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19916
19973
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
19917
19974
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19918
19975
  },
19919
- __metadata$b = undefined && undefined.__metadata || function (k, v) {
19976
+ __metadata$c = undefined && undefined.__metadata || function (k, v) {
19920
19977
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19921
19978
  };
19922
19979
  let NodeCanvas = class extends BaseCanvas {
@@ -19930,21 +19987,21 @@
19930
19987
  this._nativeCanvas.release && isFunction$7(this._nativeCanvas.release) && this._nativeCanvas.release();
19931
19988
  }
19932
19989
  };
19933
- NodeCanvas.env = "node", NodeCanvas = __decorate$m([injectable(), __metadata$b("design:paramtypes", [Object])], NodeCanvas);
19990
+ NodeCanvas.env = "node", NodeCanvas = __decorate$n([injectable(), __metadata$c("design:paramtypes", [Object])], NodeCanvas);
19934
19991
 
19935
19992
  const nodeCanvasModule = createModule(NodeCanvas, NodeContext2d);
19936
19993
 
19937
- var __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19994
+ var __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
19938
19995
  var d,
19939
19996
  c = arguments.length,
19940
19997
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
19941
19998
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
19942
19999
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19943
20000
  },
19944
- __metadata$a = undefined && undefined.__metadata || function (k, v) {
20001
+ __metadata$b = undefined && undefined.__metadata || function (k, v) {
19945
20002
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
19946
20003
  },
19947
- __param$a = undefined && undefined.__param || function (paramIndex, decorator) {
20004
+ __param$b = undefined && undefined.__param || function (paramIndex, decorator) {
19948
20005
  return function (target, key) {
19949
20006
  decorator(target, key, paramIndex);
19950
20007
  };
@@ -20036,12 +20093,12 @@
20036
20093
  }
20037
20094
  clearViewBox(color) {}
20038
20095
  };
20039
- NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$l([injectable(), __param$a(0, inject(VGlobal)), __metadata$a("design:paramtypes", [Object])], NodeWindowHandlerContribution);
20096
+ NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$m([injectable(), __param$b(0, inject(VGlobal)), __metadata$b("design:paramtypes", [Object])], NodeWindowHandlerContribution);
20040
20097
  const nodeWindowModule = new ContainerModule(bind => {
20041
20098
  bind(NodeWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(NodeWindowHandlerContribution)).whenTargetNamed(NodeWindowHandlerContribution.env);
20042
20099
  });
20043
20100
 
20044
- var __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20101
+ var __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20045
20102
  var d,
20046
20103
  c = arguments.length,
20047
20104
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
@@ -20127,7 +20184,7 @@
20127
20184
  release(...params) {}
20128
20185
  createOffscreenCanvas(params) {}
20129
20186
  };
20130
- NodeEnvContribution = __decorate$k([injectable()], NodeEnvContribution);
20187
+ NodeEnvContribution = __decorate$l([injectable()], NodeEnvContribution);
20131
20188
 
20132
20189
  const nodeEnvModule = new ContainerModule(bind => {
20133
20190
  nodeEnvModule.isNodeBound || (nodeEnvModule.isNodeBound = !0, bind(NodeEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(NodeEnvContribution));
@@ -20138,17 +20195,17 @@
20138
20195
  }
20139
20196
  loadNodeEnv.__loaded = !1;
20140
20197
 
20141
- var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20198
+ var __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20142
20199
  var d,
20143
20200
  c = arguments.length,
20144
20201
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
20145
20202
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
20146
20203
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20147
20204
  },
20148
- __metadata$9 = undefined && undefined.__metadata || function (k, v) {
20205
+ __metadata$a = undefined && undefined.__metadata || function (k, v) {
20149
20206
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
20150
20207
  },
20151
- __param$9 = undefined && undefined.__param || function (paramIndex, decorator) {
20208
+ __param$a = undefined && undefined.__param || function (paramIndex, decorator) {
20152
20209
  return function (target, key) {
20153
20210
  decorator(target, key, paramIndex);
20154
20211
  };
@@ -20158,24 +20215,24 @@
20158
20215
  super(), this.canvasRenderer = canvasRenderer, this.type = "arc", this.numberType = ARC_NUMBER_TYPE;
20159
20216
  }
20160
20217
  };
20161
- DefaultCanvasArcPicker = __decorate$j([injectable(), __param$9(0, inject(ArcRender)), __metadata$9("design:paramtypes", [Object])], DefaultCanvasArcPicker);
20218
+ DefaultCanvasArcPicker = __decorate$k([injectable(), __param$a(0, inject(ArcRender)), __metadata$a("design:paramtypes", [Object])], DefaultCanvasArcPicker);
20162
20219
 
20163
20220
  let loadArcPick = !1;
20164
20221
  const arcCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
20165
20222
  loadArcPick || (loadArcPick = !0, bind(CanvasArcPicker).to(DefaultCanvasArcPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasArcPicker));
20166
20223
  });
20167
20224
 
20168
- var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20225
+ var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20169
20226
  var d,
20170
20227
  c = arguments.length,
20171
20228
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
20172
20229
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
20173
20230
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20174
20231
  },
20175
- __metadata$8 = undefined && undefined.__metadata || function (k, v) {
20232
+ __metadata$9 = undefined && undefined.__metadata || function (k, v) {
20176
20233
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
20177
20234
  },
20178
- __param$8 = undefined && undefined.__param || function (paramIndex, decorator) {
20235
+ __param$9 = undefined && undefined.__param || function (paramIndex, decorator) {
20179
20236
  return function (target, key) {
20180
20237
  decorator(target, key, paramIndex);
20181
20238
  };
@@ -20185,7 +20242,7 @@
20185
20242
  super(), this.canvasRenderer = canvasRenderer;
20186
20243
  }
20187
20244
  };
20188
- DefaultCanvasRectPicker = __decorate$i([injectable(), __param$8(0, inject(RectRender)), __metadata$8("design:paramtypes", [Object])], DefaultCanvasRectPicker);
20245
+ DefaultCanvasRectPicker = __decorate$j([injectable(), __param$9(0, inject(RectRender)), __metadata$9("design:paramtypes", [Object])], DefaultCanvasRectPicker);
20189
20246
 
20190
20247
  let loadRectPick = !1;
20191
20248
  const rectCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
@@ -20227,17 +20284,17 @@
20227
20284
  }
20228
20285
  }
20229
20286
 
20230
- var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20287
+ var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20231
20288
  var d,
20232
20289
  c = arguments.length,
20233
20290
  r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
20234
20291
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
20235
20292
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20236
20293
  },
20237
- __metadata$7 = undefined && undefined.__metadata || function (k, v) {
20294
+ __metadata$8 = undefined && undefined.__metadata || function (k, v) {
20238
20295
  if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
20239
20296
  },
20240
- __param$7 = undefined && undefined.__param || function (paramIndex, decorator) {
20297
+ __param$8 = undefined && undefined.__param || function (paramIndex, decorator) {
20241
20298
  return function (target, key) {
20242
20299
  decorator(target, key, paramIndex);
20243
20300
  };
@@ -20247,13 +20304,40 @@
20247
20304
  super(), this.canvasRenderer = canvasRenderer, this.type = "line", this.numberType = LINE_NUMBER_TYPE;
20248
20305
  }
20249
20306
  };
20250
- DefaultCanvasLinePicker = __decorate$h([injectable(), __param$7(0, inject(LineRender)), __metadata$7("design:paramtypes", [Object])], DefaultCanvasLinePicker);
20307
+ DefaultCanvasLinePicker = __decorate$i([injectable(), __param$8(0, inject(LineRender)), __metadata$8("design:paramtypes", [Object])], DefaultCanvasLinePicker);
20251
20308
 
20252
20309
  let loadLinePick = !1;
20253
20310
  const lineCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
20254
20311
  loadLinePick || (loadLinePick = !0, bind(CanvasLinePicker).to(DefaultCanvasLinePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasLinePicker));
20255
20312
  });
20256
20313
 
20314
+ var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
20315
+ var d,
20316
+ c = arguments.length,
20317
+ r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
20318
+ if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
20319
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
20320
+ },
20321
+ __metadata$7 = undefined && undefined.__metadata || function (k, v) {
20322
+ if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
20323
+ },
20324
+ __param$7 = undefined && undefined.__param || function (paramIndex, decorator) {
20325
+ return function (target, key) {
20326
+ decorator(target, key, paramIndex);
20327
+ };
20328
+ };
20329
+ let DefaultCanvasAreaPicker = class extends PickerBase {
20330
+ constructor(canvasRenderer) {
20331
+ super(), this.canvasRenderer = canvasRenderer, this.type = "area", this.numberType = AREA_NUMBER_TYPE;
20332
+ }
20333
+ };
20334
+ DefaultCanvasAreaPicker = __decorate$h([injectable(), __param$7(0, inject(AreaRender)), __metadata$7("design:paramtypes", [Object])], DefaultCanvasAreaPicker);
20335
+
20336
+ let loadAreaPick = !1;
20337
+ const areaCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
20338
+ loadAreaPick || (loadAreaPick = !0, bind(CanvasAreaPicker).to(DefaultCanvasAreaPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasAreaPicker));
20339
+ });
20340
+
20257
20341
  class Base3dPicker extends BaseRender {
20258
20342
  contains(graphic, point, params) {
20259
20343
  const {
@@ -21151,6 +21235,12 @@
21151
21235
  _registerArc.__loaded = !1;
21152
21236
  const registerArc = _registerArc;
21153
21237
 
21238
+ function _registerArea() {
21239
+ _registerArea.__loaded || (_registerArea.__loaded = !0, registerAreaGraphic(), container.load(areaModule), container.load(browser$1 ? areaCanvasPickModule : areaMathPickModule));
21240
+ }
21241
+ _registerArea.__loaded = !1;
21242
+ const registerArea = _registerArea;
21243
+
21154
21244
  function _registerCircle() {
21155
21245
  _registerCircle.__loaded || (_registerCircle.__loaded = !0, registerCircleGraphic(), container.load(circleModule), container.load(browser$1 ? circleCanvasPickModule : circleMathPickModule));
21156
21246
  }
@@ -21253,7 +21343,7 @@
21253
21343
  return "browser" === vglobal.env ? ["pointerup", "pointerleave", "pointercancel"] : ["pointerup", "pointerleave", "pointerupoutside"];
21254
21344
  }
21255
21345
 
21256
- const delayMap = {
21346
+ const delayMap$1 = {
21257
21347
  debounce: debounce$2,
21258
21348
  throttle: throttle$2
21259
21349
  };
@@ -21334,7 +21424,7 @@
21334
21424
  const preScrollRange = this.getScrollRange(),
21335
21425
  [currentPos, currentScrollValue] = this._computeScrollValue(e);
21336
21426
  this.setScrollRange([preScrollRange[0] + currentScrollValue, preScrollRange[1] + currentScrollValue], !0), this._prePos = currentPos;
21337
- }, this._onSliderPointerMoveWithDelay = 0 === this.attribute.delayTime ? this._onSliderPointerMove : delayMap[this.attribute.delayType](this._onSliderPointerMove, this.attribute.delayTime), this._onSliderPointerUp = e => {
21427
+ }, this._onSliderPointerMoveWithDelay = 0 === this.attribute.delayTime ? this._onSliderPointerMove : delayMap$1[this.attribute.delayType](this._onSliderPointerMove, this.attribute.delayTime), this._onSliderPointerUp = e => {
21338
21428
  const {
21339
21429
  range: preRange,
21340
21430
  limitRange = [0, 1]
@@ -21383,7 +21473,7 @@
21383
21473
  delayType = "throttle",
21384
21474
  delayTime = 0
21385
21475
  } = this.attribute;
21386
- this._rail && this._rail.addEventListener("pointerdown", delayMap[delayType](this._onRailPointerDown, delayTime)), this._slider && this._slider.addEventListener("pointerdown", this._onSliderPointerDown), ("browser" === vglobal.env ? vglobal : this.stage).addEventListener("touchmove", this._handleTouchMove, {
21476
+ this._rail && this._rail.addEventListener("pointerdown", delayMap$1[delayType](this._onRailPointerDown, delayTime)), this._slider && this._slider.addEventListener("pointerdown", this._onSliderPointerDown), ("browser" === vglobal.env ? vglobal : this.stage).addEventListener("touchmove", this._handleTouchMove, {
21387
21477
  passive: !1
21388
21478
  });
21389
21479
  }
@@ -21630,7 +21720,7 @@
21630
21720
  registerGroup(), registerRect(), registerSymbol(), registerRichtext(), registerText();
21631
21721
  }
21632
21722
 
21633
- var __rest$5 = undefined && undefined.__rest || function (s, e) {
21723
+ var __rest$6 = undefined && undefined.__rest || function (s, e) {
21634
21724
  var t = {};
21635
21725
  for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
21636
21726
  if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
@@ -21684,7 +21774,7 @@
21684
21774
  const {
21685
21775
  visible: shapeVisible
21686
21776
  } = shape,
21687
- shapeStyle = __rest$5(shape, ["visible"]);
21777
+ shapeStyle = __rest$6(shape, ["visible"]);
21688
21778
  if (isBoolean$6(shapeVisible)) {
21689
21779
  const size = (null == shapeStyle ? void 0 : shapeStyle.size) || 10,
21690
21780
  maxSize = isNumber$6(size) ? size : Math.max(size[0], size[1]);
@@ -21785,7 +21875,7 @@
21785
21875
  const {
21786
21876
  visible: bgVisible
21787
21877
  } = panel,
21788
- backgroundStyle = __rest$5(panel, ["visible"]);
21878
+ backgroundStyle = __rest$6(panel, ["visible"]);
21789
21879
  if (visible && isBoolean$6(bgVisible)) {
21790
21880
  const bgRect = this.createOrUpdateChild("tag-panel", Object.assign(Object.assign({}, backgroundStyle), {
21791
21881
  visible: bgVisible && !!text,
@@ -21867,7 +21957,7 @@
21867
21957
  merge$2(theme$2.poptip, DEFAULT_THEME, defaultPoptipTheme);
21868
21958
  }
21869
21959
 
21870
- var __rest$4 = undefined && undefined.__rest || function (s, e) {
21960
+ var __rest$5 = undefined && undefined.__rest || function (s, e) {
21871
21961
  var t = {};
21872
21962
  for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
21873
21963
  if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
@@ -21976,7 +22066,7 @@
21976
22066
  visible: bgVisible,
21977
22067
  square: square
21978
22068
  } = panel,
21979
- backgroundStyle = __rest$4(panel, ["visible", "square"]);
22069
+ backgroundStyle = __rest$5(panel, ["visible", "square"]);
21980
22070
  if (square) {
21981
22071
  const maxWH = max(popTipWidth, poptipHeight);
21982
22072
  popTipWidth = maxWH;
@@ -29116,7 +29206,7 @@
29116
29206
  loadBasicAxis(), registerRect();
29117
29207
  }
29118
29208
 
29119
- var __rest$3 = undefined && undefined.__rest || function (s, e) {
29209
+ var __rest$4 = undefined && undefined.__rest || function (s, e) {
29120
29210
  var t = {};
29121
29211
  for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
29122
29212
  if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
@@ -29204,7 +29294,7 @@
29204
29294
  style: style,
29205
29295
  state: state
29206
29296
  } = _a,
29207
- restLineAttrs = __rest$3(_a, ["startSymbol", "endSymbol", "style", "state"]),
29297
+ restLineAttrs = __rest$4(_a, ["startSymbol", "endSymbol", "style", "state"]),
29208
29298
  lineAttrs = Object.assign({
29209
29299
  startSymbol: startSymbol,
29210
29300
  endSymbol: endSymbol,
@@ -29245,7 +29335,7 @@
29245
29335
  state = {},
29246
29336
  maxWidth: maxWidth
29247
29337
  } = _d,
29248
- restAttrs = __rest$3(_d, ["position", "space", "textStyle", "autoRotate", "shape", "background", "state", "maxWidth"]);
29338
+ restAttrs = __rest$4(_d, ["position", "space", "textStyle", "autoRotate", "shape", "background", "state", "maxWidth"]);
29249
29339
  let percent = .5;
29250
29340
  "start" === position ? percent = 0 : "end" === position && (percent = 1);
29251
29341
  const {
@@ -30377,6 +30467,845 @@
30377
30467
  return convertDomainToTickData(scale.domain());
30378
30468
  };
30379
30469
 
30470
+ const DEFAULT_HANDLER_PATH = "M -0.0544 0.25 C -0.0742 0.25 -0.0901 0.234 -0.0901 0.2143 L -0.0901 -0.1786 C -0.0901 -0.1983 -0.0742 -0.2143 -0.0544 -0.2143 L -0.0187 -0.2143 L -0.0187 -0.5 L 0.017 -0.5 L 0.017 -0.2143 L 0.0527 -0.2143 C 0.0724 -0.2143 0.0884 -0.1983 0.0884 -0.1786 L 0.0884 0.2143 C 0.0884 0.234 0.0724 0.25 0.0527 0.25 L 0.017 0.25 L 0.017 0.5 L -0.0187 0.5 L -0.0187 0.25 L -0.0544 0.25 Z M -0.0187 -0.1429 L -0.0544 -0.1429 L -0.0544 0.1786 L -0.0187 0.1786 L -0.0187 -0.1429 Z M 0.0527 -0.1429 L 0.017 -0.1429 L 0.017 0.1786 L 0.0527 0.1786 L 0.0527 -0.1429 Z";
30471
+ const DEFAULT_DATA_ZOOM_ATTRIBUTES = {
30472
+ orient: "bottom",
30473
+ showDetail: "auto",
30474
+ brushSelect: !0,
30475
+ zoomLock: !1,
30476
+ minSpan: 0,
30477
+ maxSpan: 1,
30478
+ delayType: "throttle",
30479
+ delayTime: 0,
30480
+ realTime: !0,
30481
+ backgroundStyle: {
30482
+ fill: "white",
30483
+ stroke: "#D1DBEE",
30484
+ lineWidth: 1,
30485
+ cornerRadius: 2
30486
+ },
30487
+ dragMaskStyle: {
30488
+ fill: "#B0C8F9",
30489
+ fillOpacity: .2
30490
+ },
30491
+ backgroundChartStyle: {
30492
+ area: {
30493
+ visible: !0,
30494
+ stroke: "#D1DBEE",
30495
+ lineWidth: 1,
30496
+ fill: "#F6F8FC"
30497
+ },
30498
+ line: {
30499
+ visible: !0,
30500
+ stroke: "#D1DBEE",
30501
+ lineWidth: 1
30502
+ }
30503
+ },
30504
+ selectedBackgroundStyle: {
30505
+ fill: "#B0C8F9",
30506
+ fillOpacity: .5
30507
+ },
30508
+ selectedBackgroundChartStyle: {
30509
+ area: {
30510
+ visible: !0,
30511
+ stroke: "#B0C8F9",
30512
+ lineWidth: 1,
30513
+ fill: "#fbb934"
30514
+ },
30515
+ line: {
30516
+ visible: !0,
30517
+ stroke: "#fbb934",
30518
+ lineWidth: 1
30519
+ }
30520
+ },
30521
+ middleHandlerStyle: {
30522
+ visible: !0,
30523
+ background: {
30524
+ size: 8,
30525
+ style: {
30526
+ fill: "white",
30527
+ stroke: "#B0C8F9",
30528
+ cornerRadius: 2
30529
+ }
30530
+ },
30531
+ icon: {
30532
+ size: 6,
30533
+ fill: "white",
30534
+ stroke: "#B0C8F9",
30535
+ symbolType: "M 0.3 -0.5 C 0.41 -0.5 0.5 -0.41 0.5 -0.3 C 0.5 -0.3 0.5 0.3 0.5 0.3 C 0.5 0.41 0.41 0.5 0.3 0.5 C 0.3 0.5 -0.3 0.5 -0.3 0.5 C -0.41 0.5 -0.5 0.41 -0.5 0.3 C -0.5 0.3 -0.5 -0.3 -0.5 -0.3 C -0.5 -0.41 -0.41 -0.5 -0.3 -0.5 C -0.3 -0.5 0.3 -0.5 0.3 -0.5 Z",
30536
+ lineWidth: .5
30537
+ }
30538
+ },
30539
+ startHandlerStyle: {
30540
+ visible: !0,
30541
+ triggerMinSize: 0,
30542
+ symbolType: DEFAULT_HANDLER_PATH,
30543
+ fill: "white",
30544
+ stroke: "#B0C8F9",
30545
+ lineWidth: .5
30546
+ },
30547
+ endHandlerStyle: {
30548
+ visible: !0,
30549
+ triggerMinSize: 0,
30550
+ symbolType: DEFAULT_HANDLER_PATH,
30551
+ fill: "white",
30552
+ stroke: "#B0C8F9",
30553
+ lineWidth: .5
30554
+ },
30555
+ startTextStyle: {
30556
+ padding: 4,
30557
+ textStyle: {
30558
+ fontSize: 10,
30559
+ fill: "#6F6F6F"
30560
+ }
30561
+ },
30562
+ endTextStyle: {
30563
+ padding: 4,
30564
+ textStyle: {
30565
+ fontSize: 10,
30566
+ fill: "#6F6F6F"
30567
+ }
30568
+ }
30569
+ };
30570
+ const DEFAULT_HANDLER_ATTR_MAP = {
30571
+ horizontal: {
30572
+ angle: 0,
30573
+ strokeBoundsBuffer: 0,
30574
+ boundsPadding: 2,
30575
+ pickMode: "imprecise",
30576
+ cursor: "ew-resize"
30577
+ },
30578
+ vertical: {
30579
+ angle: Math.PI / 180 * 90,
30580
+ cursor: "ns-resize",
30581
+ boundsPadding: 2,
30582
+ pickMode: "imprecise",
30583
+ strokeBoundsBuffer: 0
30584
+ }
30585
+ };
30586
+
30587
+ var DataZoomActiveTag;
30588
+ !function (DataZoomActiveTag) {
30589
+ DataZoomActiveTag.startHandler = "startHandler", DataZoomActiveTag.endHandler = "endHandler", DataZoomActiveTag.middleHandler = "middleHandler", DataZoomActiveTag.background = "background";
30590
+ }(DataZoomActiveTag || (DataZoomActiveTag = {}));
30591
+
30592
+ function loadDataZoomComponent() {
30593
+ loadTagComponent(), registerRect(), registerSymbol(), registerArea(), registerLine();
30594
+ }
30595
+
30596
+ var __rest$3 = undefined && undefined.__rest || function (s, e) {
30597
+ var t = {};
30598
+ for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
30599
+ if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
30600
+ var i = 0;
30601
+ for (p = Object.getOwnPropertySymbols(s); i < p.length; i++) e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]) && (t[p[i]] = s[p[i]]);
30602
+ }
30603
+ return t;
30604
+ };
30605
+ const delayMap = {
30606
+ debounce: debounce$2,
30607
+ throttle: throttle$2
30608
+ };
30609
+ loadDataZoomComponent();
30610
+ class DataZoom extends AbstractComponent {
30611
+ setPropsFromAttrs() {
30612
+ const {
30613
+ start: start,
30614
+ end: end,
30615
+ orient: orient,
30616
+ previewData: previewData,
30617
+ previewPointsX: previewPointsX,
30618
+ previewPointsY: previewPointsY,
30619
+ previewPointsX1: previewPointsX1,
30620
+ previewPointsY1: previewPointsY1
30621
+ } = this.attribute;
30622
+ start && (this.state.start = start), end && (this.state.end = end);
30623
+ const {
30624
+ width: width,
30625
+ height: height
30626
+ } = this.getLayoutAttrFromConfig();
30627
+ this._spanCache = this.state.end - this.state.start, this._isHorizontal = "top" === orient || "bottom" === orient, this._layoutCache.max = this._isHorizontal ? width : height, this._layoutCache.attPos = this._isHorizontal ? "x" : "y", this._layoutCache.attSize = this._isHorizontal ? "width" : "height", previewData && (this._previewData = previewData), isFunction$7(previewPointsX) && (this._previewPointsX = previewPointsX), isFunction$7(previewPointsY) && (this._previewPointsY = previewPointsY), isFunction$7(previewPointsX1) && (this._previewPointsX1 = previewPointsX1), isFunction$7(previewPointsY1) && (this._previewPointsY1 = previewPointsY1);
30628
+ }
30629
+ constructor(attributes, options) {
30630
+ super((null == options ? void 0 : options.skipDefault) ? attributes : merge$2({}, DataZoom.defaultAttributes, attributes)), this.name = "dataZoom", this._previewData = [], this._activeState = !1, this._activeCache = {
30631
+ startPos: {
30632
+ x: 0,
30633
+ y: 0
30634
+ },
30635
+ lastPos: {
30636
+ x: 0,
30637
+ y: 0
30638
+ }
30639
+ }, this._layoutCache = {
30640
+ attPos: "x",
30641
+ attSize: "width",
30642
+ max: 0
30643
+ }, this.state = {
30644
+ start: 0,
30645
+ end: 1
30646
+ }, this._statePointToData = state => state, this._handleTouchMove = e => {
30647
+ this._activeState && e.preventDefault();
30648
+ }, this._onHandlerPointerDown = (e, tag) => {
30649
+ this._clearDragEvents(), "start" === tag ? (this._activeTag = DataZoomActiveTag.startHandler, this._activeItem = this._startHandlerMask) : "end" === tag ? (this._activeTag = DataZoomActiveTag.endHandler, this._activeItem = this._endHandlerMask) : "middleRect" === tag ? (this._activeTag = DataZoomActiveTag.middleHandler, this._activeItem = this._middleHandlerRect) : "middleSymbol" === tag ? (this._activeTag = DataZoomActiveTag.middleHandler, this._activeItem = this._middleHandlerSymbol) : "background" === tag && (this._activeTag = DataZoomActiveTag.background, this._activeItem = this._background), this._activeState = !0, this._activeCache.startPos = this.eventPosToStagePos(e), this._activeCache.lastPos = this.eventPosToStagePos(e);
30650
+ const evtTarget = "browser" === vglobal.env ? vglobal : this.stage,
30651
+ triggers = getEndTriggersOfDrag();
30652
+ evtTarget.addEventListener("pointermove", this._onHandlerPointerMove, {
30653
+ capture: !0
30654
+ }), this.addEventListener("pointermove", this._onHandlerPointerMove, {
30655
+ capture: !0
30656
+ }), triggers.forEach(trigger => {
30657
+ evtTarget.addEventListener(trigger, this._onHandlerPointerUp);
30658
+ });
30659
+ }, this._pointerMove = e => {
30660
+ const {
30661
+ start: startAttr,
30662
+ end: endAttr,
30663
+ brushSelect: brushSelect,
30664
+ realTime = !0
30665
+ } = this.attribute,
30666
+ pos = this.eventPosToStagePos(e),
30667
+ {
30668
+ attPos: attPos,
30669
+ max: max
30670
+ } = this._layoutCache,
30671
+ dis = (pos[attPos] - this._activeCache.lastPos[attPos]) / max;
30672
+ let {
30673
+ start: start,
30674
+ end: end
30675
+ } = this.state;
30676
+ this._activeState && (this._activeTag === DataZoomActiveTag.middleHandler ? this.moveZoomWithMiddle((this.state.start + this.state.end) / 2 + dis) : this._activeTag === DataZoomActiveTag.startHandler ? start + dis > end ? (start = end, end = start + dis, this._activeTag = DataZoomActiveTag.endHandler) : start += dis : this._activeTag === DataZoomActiveTag.endHandler && (end + dis < start ? (end = start, start = end + dis, this._activeTag = DataZoomActiveTag.startHandler) : end += dis), this._activeCache.lastPos = pos, brushSelect && this.renderDragMask()), start = Math.min(Math.max(start, 0), 1), end = Math.min(Math.max(end, 0), 1), startAttr === start && endAttr === end || (this.setStateAttr(start, end, !0), realTime && this._dispatchEvent("change", {
30677
+ start: start,
30678
+ end: end,
30679
+ tag: this._activeTag
30680
+ }));
30681
+ }, this._onHandlerPointerMove = 0 === this.attribute.delayTime ? this._pointerMove : delayMap[this.attribute.delayType](this._pointerMove, this.attribute.delayTime), this._onHandlerPointerUp = e => {
30682
+ const {
30683
+ start: start,
30684
+ end: end,
30685
+ brushSelect: brushSelect,
30686
+ realTime = !0
30687
+ } = this.attribute;
30688
+ if (this._activeState && this._activeTag === DataZoomActiveTag.background) {
30689
+ const pos = this.eventPosToStagePos(e);
30690
+ this.backgroundDragZoom(this._activeCache.startPos, pos);
30691
+ }
30692
+ this._activeState = !1, brushSelect && this.renderDragMask(), this._dispatchEvent("change", {
30693
+ start: this.state.start,
30694
+ end: this.state.end,
30695
+ tag: this._activeTag
30696
+ }), this._clearDragEvents();
30697
+ };
30698
+ const {
30699
+ position: position,
30700
+ showDetail: showDetail
30701
+ } = attributes;
30702
+ this._activeCache.startPos = position, this._activeCache.lastPos = position, this._showText = "auto" !== showDetail && showDetail, this.setPropsFromAttrs();
30703
+ }
30704
+ setAttributes(params, forceUpdateTag) {
30705
+ super.setAttributes(params, forceUpdateTag), this.setPropsFromAttrs();
30706
+ }
30707
+ bindEvents() {
30708
+ if (this.attribute.disableTriggerEvent) return void this.setAttribute("childrenPickable", !1);
30709
+ const {
30710
+ showDetail: showDetail,
30711
+ brushSelect: brushSelect
30712
+ } = this.attribute;
30713
+ this._startHandlerMask && this._startHandlerMask.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "start")), this._endHandlerMask && this._endHandlerMask.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "end")), this._middleHandlerSymbol && this._middleHandlerSymbol.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "middleSymbol")), this._middleHandlerRect && this._middleHandlerRect.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "middleRect"));
30714
+ const selectedTag = brushSelect ? "background" : "middleRect";
30715
+ this._selectedBackground && this._selectedBackground.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, selectedTag)), brushSelect && this._background && this._background.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "background")), brushSelect && this._previewGroup && this._previewGroup.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "background")), this._selectedPreviewGroup && this._selectedPreviewGroup.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, selectedTag)), "auto" === showDetail && (this.addEventListener("pointerenter", this._onHandlerPointerEnter), this.addEventListener("pointerleave", this._onHandlerPointerLeave)), ("browser" === vglobal.env ? vglobal : this.stage).addEventListener("touchmove", this._handleTouchMove, {
30716
+ passive: !1
30717
+ });
30718
+ }
30719
+ dragMaskSize() {
30720
+ const {
30721
+ position: position
30722
+ } = this.attribute,
30723
+ {
30724
+ attPos: attPos,
30725
+ max: max
30726
+ } = this._layoutCache;
30727
+ return this._activeCache.lastPos[attPos] - position[attPos] > max ? max + position[attPos] - this._activeCache.startPos[attPos] : this._activeCache.lastPos[attPos] - position[attPos] < 0 ? position[attPos] - this._activeCache.startPos[attPos] : this._activeCache.lastPos[attPos] - this._activeCache.startPos[attPos];
30728
+ }
30729
+ setStateAttr(start, end, shouldRender) {
30730
+ const {
30731
+ zoomLock = !1,
30732
+ minSpan = 0,
30733
+ maxSpan = 1
30734
+ } = this.attribute,
30735
+ span = end - start;
30736
+ span !== this._spanCache && (zoomLock || span < minSpan || span > maxSpan) || (this._spanCache = span, this.state.start = start, this.state.end = end, shouldRender && this.setAttributes({
30737
+ start: start,
30738
+ end: end
30739
+ }));
30740
+ }
30741
+ _clearDragEvents() {
30742
+ const evtTarget = "browser" === vglobal.env ? vglobal : this.stage,
30743
+ triggers = getEndTriggersOfDrag();
30744
+ evtTarget.removeEventListener("pointermove", this._onHandlerPointerMove, {
30745
+ capture: !0
30746
+ }), triggers.forEach(trigger => {
30747
+ evtTarget.removeEventListener(trigger, this._onHandlerPointerUp);
30748
+ }), this.removeEventListener("pointermove", this._onHandlerPointerMove, {
30749
+ capture: !0
30750
+ });
30751
+ }
30752
+ _onHandlerPointerEnter(e) {
30753
+ this._showText = !0, this.renderText();
30754
+ }
30755
+ _onHandlerPointerLeave(e) {
30756
+ this._showText = !1, this.renderText();
30757
+ }
30758
+ backgroundDragZoom(startPos, endPos) {
30759
+ const {
30760
+ attPos: attPos,
30761
+ max: max
30762
+ } = this._layoutCache,
30763
+ {
30764
+ position: position
30765
+ } = this.attribute,
30766
+ startPosInComponent = startPos[attPos] - position[attPos],
30767
+ endPosInComponent = endPos[attPos] - position[attPos],
30768
+ start = Math.min(Math.max(Math.min(startPosInComponent, endPosInComponent) / max, 0), 1),
30769
+ end = Math.min(Math.max(Math.max(startPosInComponent, endPosInComponent) / max, 0), 1);
30770
+ Math.abs(start - end) < .01 ? this.moveZoomWithMiddle(start) : this.setStateAttr(start, end, !1);
30771
+ }
30772
+ moveZoomWithMiddle(middle) {
30773
+ let offset = middle - (this.state.start + this.state.end) / 2;
30774
+ 0 !== offset && (offset > 0 ? this.state.end + offset > 1 && (offset = 1 - this.state.end) : offset < 0 && this.state.start + offset < 0 && (offset = -this.state.start), this.setStateAttr(this.state.start + offset, this.state.end + offset, !1));
30775
+ }
30776
+ renderDragMask() {
30777
+ const {
30778
+ dragMaskStyle: dragMaskStyle
30779
+ } = this.attribute,
30780
+ {
30781
+ position: position,
30782
+ width: width,
30783
+ height: height
30784
+ } = this.getLayoutAttrFromConfig();
30785
+ this._isHorizontal ? this._dragMask = this._container.createOrUpdateChild("dragMask", Object.assign({
30786
+ x: clamp$3(this.dragMaskSize() < 0 ? this._activeCache.lastPos.x : this._activeCache.startPos.x, position.x, position.x + width),
30787
+ y: position.y,
30788
+ width: this._activeState && this._activeTag === DataZoomActiveTag.background && Math.abs(this.dragMaskSize()) || 0,
30789
+ height: height
30790
+ }, dragMaskStyle), "rect") : this._dragMask = this._container.createOrUpdateChild("dragMask", Object.assign({
30791
+ x: position.x,
30792
+ y: clamp$3(this.dragMaskSize() < 0 ? this._activeCache.lastPos.y : this._activeCache.startPos.y, position.y, position.y + height),
30793
+ width: width,
30794
+ height: this._activeState && this._activeTag === DataZoomActiveTag.background && Math.abs(this.dragMaskSize()) || 0
30795
+ }, dragMaskStyle), "rect");
30796
+ }
30797
+ isTextOverflow(componentBoundsLike, textBounds, layout) {
30798
+ if (!textBounds) return !1;
30799
+ if (this._isHorizontal) {
30800
+ if ("start" === layout) {
30801
+ if (textBounds.x1 < componentBoundsLike.x1) return !0;
30802
+ } else if (textBounds.x2 > componentBoundsLike.x2) return !0;
30803
+ } else if ("start" === layout) {
30804
+ if (textBounds.y1 < componentBoundsLike.y1) return !0;
30805
+ } else if (textBounds.y2 > componentBoundsLike.y2) return !0;
30806
+ return !1;
30807
+ }
30808
+ setTextAttr(startTextBounds, endTextBounds) {
30809
+ var _a, _b, _c, _d, _e, _f, _g, _h;
30810
+ const {
30811
+ startTextStyle: startTextStyle,
30812
+ endTextStyle: endTextStyle
30813
+ } = this.attribute,
30814
+ {
30815
+ formatMethod: startTextFormat
30816
+ } = startTextStyle,
30817
+ restStartTextStyle = __rest$3(startTextStyle, ["formatMethod"]),
30818
+ {
30819
+ formatMethod: endTextFormat
30820
+ } = endTextStyle,
30821
+ restEndTextStyle = __rest$3(endTextStyle, ["formatMethod"]),
30822
+ {
30823
+ start: start,
30824
+ end: end
30825
+ } = this.state;
30826
+ this._startValue = this._statePointToData(start), this._endValue = this._statePointToData(end);
30827
+ const {
30828
+ position: position,
30829
+ width: width,
30830
+ height: height
30831
+ } = this.getLayoutAttrFromConfig(),
30832
+ startTextValue = startTextFormat ? startTextFormat(this._startValue) : this._startValue,
30833
+ endTextValue = endTextFormat ? endTextFormat(this._endValue) : this._endValue,
30834
+ componentBoundsLike = {
30835
+ x1: position.x,
30836
+ y1: position.y,
30837
+ x2: position.x + width,
30838
+ y2: position.y + height
30839
+ };
30840
+ let startTextPosition, endTextPosition, startTextAlignStyle, endTextAlignStyle;
30841
+ this._isHorizontal ? (startTextPosition = {
30842
+ x: position.x + start * width,
30843
+ y: position.y + height / 2
30844
+ }, endTextPosition = {
30845
+ x: position.x + end * width,
30846
+ y: position.y + height / 2
30847
+ }, startTextAlignStyle = {
30848
+ textAlign: this.isTextOverflow(componentBoundsLike, startTextBounds, "start") ? "left" : "right",
30849
+ textBaseline: null !== (_b = null === (_a = null == restStartTextStyle ? void 0 : restStartTextStyle.textStyle) || void 0 === _a ? void 0 : _a.textBaseline) && void 0 !== _b ? _b : "middle"
30850
+ }, endTextAlignStyle = {
30851
+ textAlign: this.isTextOverflow(componentBoundsLike, endTextBounds, "end") ? "right" : "left",
30852
+ textBaseline: null !== (_d = null === (_c = null == restEndTextStyle ? void 0 : restEndTextStyle.textStyle) || void 0 === _c ? void 0 : _c.textBaseline) && void 0 !== _d ? _d : "middle"
30853
+ }) : (startTextPosition = {
30854
+ x: position.x + width / 2,
30855
+ y: position.y + start * height
30856
+ }, endTextPosition = {
30857
+ x: position.x + width / 2,
30858
+ y: position.y + end * height
30859
+ }, startTextAlignStyle = {
30860
+ textAlign: null !== (_f = null === (_e = null == restStartTextStyle ? void 0 : restStartTextStyle.textStyle) || void 0 === _e ? void 0 : _e.textAlign) && void 0 !== _f ? _f : "center",
30861
+ textBaseline: this.isTextOverflow(componentBoundsLike, startTextBounds, "start") ? "top" : "bottom"
30862
+ }, endTextAlignStyle = {
30863
+ textAlign: null !== (_h = null === (_g = null == restEndTextStyle ? void 0 : restEndTextStyle.textStyle) || void 0 === _g ? void 0 : _g.textAlign) && void 0 !== _h ? _h : "center",
30864
+ textBaseline: this.isTextOverflow(componentBoundsLike, endTextBounds, "end") ? "bottom" : "top"
30865
+ }), this._startText = this.maybeAddLabel(this._container, merge$2({}, restStartTextStyle, {
30866
+ text: startTextValue,
30867
+ x: startTextPosition.x,
30868
+ y: startTextPosition.y,
30869
+ visible: this._showText,
30870
+ pickable: !1,
30871
+ childrenPickable: !1,
30872
+ textStyle: startTextAlignStyle
30873
+ }), `data-zoom-start-text-${position}`), this._endText = this.maybeAddLabel(this._container, merge$2({}, restEndTextStyle, {
30874
+ text: endTextValue,
30875
+ x: endTextPosition.x,
30876
+ y: endTextPosition.y,
30877
+ visible: this._showText,
30878
+ pickable: !1,
30879
+ childrenPickable: !1,
30880
+ textStyle: endTextAlignStyle
30881
+ }), `data-zoom-end-text-${position}`);
30882
+ }
30883
+ renderText() {
30884
+ let startTextBounds = null,
30885
+ endTextBounds = null;
30886
+ this.setTextAttr(startTextBounds, endTextBounds), startTextBounds = this._startText.AABBBounds, endTextBounds = this._endText.AABBBounds, this.setTextAttr(startTextBounds, endTextBounds), startTextBounds = this._startText.AABBBounds, endTextBounds = this._endText.AABBBounds;
30887
+ const {
30888
+ x1: x1,
30889
+ x2: x2,
30890
+ y1: y1,
30891
+ y2: y2
30892
+ } = startTextBounds,
30893
+ {
30894
+ dx: startTextDx = 0,
30895
+ dy: startTextDy = 0
30896
+ } = this.attribute.startTextStyle;
30897
+ if (new Bounds$1().set(x1, y1, x2, y2).intersects(endTextBounds)) {
30898
+ const direction = "bottom" === this.attribute.orient || "right" === this.attribute.orient ? -1 : 1;
30899
+ if (this._isHorizontal) {
30900
+ const boundsYDiff = Math.abs(endTextBounds.y1 - endTextBounds.y2);
30901
+ this._startText.setAttribute("dy", startTextDy + direction * (Number.isFinite(boundsYDiff) ? boundsYDiff : 0));
30902
+ } else {
30903
+ const boundsXDiff = Math.abs(endTextBounds.x1 - endTextBounds.x2);
30904
+ this._startText.setAttribute("dx", startTextDx + direction * (Number.isFinite(boundsXDiff) ? boundsXDiff : 0));
30905
+ }
30906
+ } else this._isHorizontal ? this._startText.setAttribute("dy", startTextDy) : this._startText.setAttribute("dx", startTextDx);
30907
+ }
30908
+ getLayoutAttrFromConfig() {
30909
+ var _a, _b, _c, _d, _e, _f;
30910
+ if (this._layoutAttrFromConfig) return this._layoutAttrFromConfig;
30911
+ const {
30912
+ position: positionConfig,
30913
+ size: size,
30914
+ orient: orient,
30915
+ middleHandlerStyle = {},
30916
+ startHandlerStyle = {},
30917
+ endHandlerStyle = {},
30918
+ backgroundStyle = {}
30919
+ } = this.attribute,
30920
+ {
30921
+ width: widthConfig,
30922
+ height: heightConfig
30923
+ } = size,
30924
+ middleHandlerSize = null !== (_b = null === (_a = middleHandlerStyle.background) || void 0 === _a ? void 0 : _a.size) && void 0 !== _b ? _b : 10;
30925
+ let width, height, position;
30926
+ middleHandlerStyle.visible ? this._isHorizontal ? (width = widthConfig, height = heightConfig - middleHandlerSize, position = {
30927
+ x: positionConfig.x,
30928
+ y: positionConfig.y + middleHandlerSize
30929
+ }) : (width = widthConfig - middleHandlerSize, height = heightConfig, position = {
30930
+ x: positionConfig.x + ("left" === orient ? middleHandlerSize : 0),
30931
+ y: positionConfig.y
30932
+ }) : (width = widthConfig, height = heightConfig, position = positionConfig);
30933
+ const startHandlerSize = null !== (_c = startHandlerStyle.size) && void 0 !== _c ? _c : this._isHorizontal ? height : width,
30934
+ endHandlerSize = null !== (_d = endHandlerStyle.size) && void 0 !== _d ? _d : this._isHorizontal ? height : width;
30935
+ return startHandlerStyle.visible && (this._isHorizontal ? (width -= (startHandlerSize + endHandlerSize) / 2, position = {
30936
+ x: position.x + startHandlerSize / 2,
30937
+ y: position.y
30938
+ }) : (height -= (startHandlerSize + endHandlerSize) / 2, position = {
30939
+ x: position.x,
30940
+ y: position.y + startHandlerSize / 2
30941
+ })), height += null !== (_e = backgroundStyle.lineWidth / 2) && void 0 !== _e ? _e : 1, width += null !== (_f = backgroundStyle.lineWidth / 2) && void 0 !== _f ? _f : 1, this._layoutAttrFromConfig = {
30942
+ position: position,
30943
+ width: width,
30944
+ height: height
30945
+ }, this._layoutAttrFromConfig;
30946
+ }
30947
+ render() {
30948
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9;
30949
+ this._layoutAttrFromConfig = null;
30950
+ const {
30951
+ orient: orient,
30952
+ backgroundStyle: backgroundStyle,
30953
+ backgroundChartStyle = {},
30954
+ selectedBackgroundStyle = {},
30955
+ selectedBackgroundChartStyle = {},
30956
+ middleHandlerStyle = {},
30957
+ startHandlerStyle = {},
30958
+ endHandlerStyle = {},
30959
+ brushSelect: brushSelect,
30960
+ zoomLock: zoomLock
30961
+ } = this.attribute,
30962
+ {
30963
+ start: start,
30964
+ end: end
30965
+ } = this.state,
30966
+ {
30967
+ position: position,
30968
+ width: width,
30969
+ height: height
30970
+ } = this.getLayoutAttrFromConfig(),
30971
+ startHandlerMinSize = null !== (_a = startHandlerStyle.triggerMinSize) && void 0 !== _a ? _a : 40,
30972
+ endHandlerMinSize = null !== (_b = endHandlerStyle.triggerMinSize) && void 0 !== _b ? _b : 40,
30973
+ group = this.createOrUpdateChild("dataZoom-container", {}, "group");
30974
+ if (this._container = group, this._background = group.createOrUpdateChild("background", Object.assign(Object.assign({
30975
+ x: position.x,
30976
+ y: position.y,
30977
+ width: width,
30978
+ height: height,
30979
+ cursor: brushSelect ? "crosshair" : "auto"
30980
+ }, backgroundStyle), {
30981
+ pickable: !zoomLock && (null === (_c = backgroundStyle.pickable) || void 0 === _c || _c)
30982
+ }), "rect"), (null === (_d = backgroundChartStyle.line) || void 0 === _d ? void 0 : _d.visible) && this.setPreviewAttributes("line", group), (null === (_e = backgroundChartStyle.area) || void 0 === _e ? void 0 : _e.visible) && this.setPreviewAttributes("area", group), brushSelect && this.renderDragMask(), this._isHorizontal ? this._selectedBackground = group.createOrUpdateChild("selectedBackground", Object.assign(Object.assign({
30983
+ x: position.x + start * width,
30984
+ y: position.y,
30985
+ width: (end - start) * width,
30986
+ height: height,
30987
+ cursor: brushSelect ? "crosshair" : "move"
30988
+ }, selectedBackgroundStyle), {
30989
+ pickable: !zoomLock && (null === (_f = selectedBackgroundChartStyle.pickable) || void 0 === _f || _f)
30990
+ }), "rect") : this._selectedBackground = group.createOrUpdateChild("selectedBackground", Object.assign(Object.assign({
30991
+ x: position.x,
30992
+ y: position.y + start * height,
30993
+ width: width,
30994
+ height: (end - start) * height,
30995
+ cursor: brushSelect ? "crosshair" : "move"
30996
+ }, selectedBackgroundStyle), {
30997
+ pickable: !zoomLock && (null === (_g = selectedBackgroundStyle.pickable) || void 0 === _g || _g)
30998
+ }), "rect"), (null === (_h = selectedBackgroundChartStyle.line) || void 0 === _h ? void 0 : _h.visible) && this.setSelectedPreviewAttributes("line", group), (null === (_j = selectedBackgroundChartStyle.area) || void 0 === _j ? void 0 : _j.visible) && this.setSelectedPreviewAttributes("area", group), this._isHorizontal) {
30999
+ if (middleHandlerStyle.visible) {
31000
+ const middleHandlerBackgroundSize = (null === (_k = middleHandlerStyle.background) || void 0 === _k ? void 0 : _k.size) || 10;
31001
+ this._middleHandlerRect = group.createOrUpdateChild("middleHandlerRect", Object.assign(Object.assign({
31002
+ x: position.x + start * width,
31003
+ y: position.y - middleHandlerBackgroundSize,
31004
+ width: (end - start) * width,
31005
+ height: middleHandlerBackgroundSize
31006
+ }, null === (_l = middleHandlerStyle.background) || void 0 === _l ? void 0 : _l.style), {
31007
+ pickable: !zoomLock && (null === (_p = null === (_o = null === (_m = middleHandlerStyle.background) || void 0 === _m ? void 0 : _m.style) || void 0 === _o ? void 0 : _o.pickable) || void 0 === _p || _p)
31008
+ }), "rect"), this._middleHandlerSymbol = group.createOrUpdateChild("middleHandlerSymbol", Object.assign(Object.assign({
31009
+ x: position.x + (start + end) / 2 * width,
31010
+ y: position.y - middleHandlerBackgroundSize / 2,
31011
+ strokeBoundsBuffer: 0,
31012
+ angle: 0,
31013
+ symbolType: null !== (_r = null === (_q = middleHandlerStyle.icon) || void 0 === _q ? void 0 : _q.symbolType) && void 0 !== _r ? _r : "square"
31014
+ }, middleHandlerStyle.icon), {
31015
+ pickable: !zoomLock && (null === (_s = middleHandlerStyle.icon.pickable) || void 0 === _s || _s)
31016
+ }), "symbol");
31017
+ }
31018
+ this._startHandler = group.createOrUpdateChild("startHandler", Object.assign(Object.assign(Object.assign({
31019
+ x: position.x + start * width,
31020
+ y: position.y + height / 2,
31021
+ size: height,
31022
+ symbolType: null !== (_t = startHandlerStyle.symbolType) && void 0 !== _t ? _t : "square"
31023
+ }, DEFAULT_HANDLER_ATTR_MAP.horizontal), startHandlerStyle), {
31024
+ pickable: !zoomLock && (null === (_u = startHandlerStyle.pickable) || void 0 === _u || _u)
31025
+ }), "symbol"), this._endHandler = group.createOrUpdateChild("endHandler", Object.assign(Object.assign(Object.assign({
31026
+ x: position.x + end * width,
31027
+ y: position.y + height / 2,
31028
+ size: height,
31029
+ symbolType: null !== (_v = endHandlerStyle.symbolType) && void 0 !== _v ? _v : "square"
31030
+ }, DEFAULT_HANDLER_ATTR_MAP.horizontal), endHandlerStyle), {
31031
+ pickable: !zoomLock && (null === (_w = endHandlerStyle.pickable) || void 0 === _w || _w)
31032
+ }), "symbol");
31033
+ const startHandlerWidth = Math.max(this._startHandler.AABBBounds.width(), startHandlerMinSize),
31034
+ startHandlerHeight = Math.max(this._startHandler.AABBBounds.height(), startHandlerMinSize),
31035
+ endHandlerWidth = Math.max(this._endHandler.AABBBounds.width(), endHandlerMinSize),
31036
+ endHandlerHeight = Math.max(this._endHandler.AABBBounds.height(), endHandlerMinSize);
31037
+ this._startHandlerMask = group.createOrUpdateChild("startHandlerMask", Object.assign(Object.assign({
31038
+ x: position.x + start * width - startHandlerWidth / 2,
31039
+ y: position.y + height / 2 - startHandlerHeight / 2,
31040
+ width: startHandlerWidth,
31041
+ height: startHandlerHeight,
31042
+ fill: "white",
31043
+ fillOpacity: 0,
31044
+ zIndex: 999
31045
+ }, DEFAULT_HANDLER_ATTR_MAP.horizontal), {
31046
+ pickable: !zoomLock
31047
+ }), "rect"), this._endHandlerMask = group.createOrUpdateChild("endHandlerMask", Object.assign(Object.assign({
31048
+ x: position.x + end * width - endHandlerWidth / 2,
31049
+ y: position.y + height / 2 - endHandlerHeight / 2,
31050
+ width: endHandlerWidth,
31051
+ height: endHandlerHeight,
31052
+ fill: "white",
31053
+ fillOpacity: 0,
31054
+ zIndex: 999
31055
+ }, DEFAULT_HANDLER_ATTR_MAP.horizontal), {
31056
+ pickable: !zoomLock
31057
+ }), "rect");
31058
+ } else {
31059
+ if (middleHandlerStyle.visible) {
31060
+ const middleHandlerBackgroundSize = (null === (_x = middleHandlerStyle.background) || void 0 === _x ? void 0 : _x.size) || 10;
31061
+ this._middleHandlerRect = group.createOrUpdateChild("middleHandlerRect", Object.assign(Object.assign({
31062
+ x: "left" === orient ? position.x - middleHandlerBackgroundSize : position.x + width,
31063
+ y: position.y + start * height,
31064
+ width: middleHandlerBackgroundSize,
31065
+ height: (end - start) * height
31066
+ }, null === (_y = middleHandlerStyle.background) || void 0 === _y ? void 0 : _y.style), {
31067
+ pickable: !zoomLock && (null === (_1 = null === (_0 = null === (_z = middleHandlerStyle.background) || void 0 === _z ? void 0 : _z.style) || void 0 === _0 ? void 0 : _0.pickable) || void 0 === _1 || _1)
31068
+ }), "rect"), this._middleHandlerSymbol = group.createOrUpdateChild("middleHandlerSymbol", Object.assign(Object.assign({
31069
+ x: "left" === orient ? position.x - middleHandlerBackgroundSize / 2 : position.x + width + middleHandlerBackgroundSize / 2,
31070
+ y: position.y + (start + end) / 2 * height,
31071
+ angle: Math.PI / 180 * 90,
31072
+ symbolType: null !== (_3 = null === (_2 = middleHandlerStyle.icon) || void 0 === _2 ? void 0 : _2.symbolType) && void 0 !== _3 ? _3 : "square",
31073
+ strokeBoundsBuffer: 0
31074
+ }, middleHandlerStyle.icon), {
31075
+ pickable: !zoomLock && (null === (_5 = null === (_4 = middleHandlerStyle.icon) || void 0 === _4 ? void 0 : _4.pickable) || void 0 === _5 || _5)
31076
+ }), "symbol");
31077
+ }
31078
+ this._startHandler = group.createOrUpdateChild("startHandler", Object.assign(Object.assign(Object.assign({
31079
+ x: position.x + width / 2,
31080
+ y: position.y + start * height,
31081
+ size: width,
31082
+ symbolType: null !== (_6 = startHandlerStyle.symbolType) && void 0 !== _6 ? _6 : "square"
31083
+ }, DEFAULT_HANDLER_ATTR_MAP.vertical), startHandlerStyle), {
31084
+ pickable: !zoomLock && (null === (_7 = startHandlerStyle.pickable) || void 0 === _7 || _7)
31085
+ }), "symbol"), this._endHandler = group.createOrUpdateChild("endHandler", Object.assign(Object.assign(Object.assign({
31086
+ x: position.x + width / 2,
31087
+ y: position.y + end * height,
31088
+ size: width,
31089
+ symbolType: null !== (_8 = endHandlerStyle.symbolType) && void 0 !== _8 ? _8 : "square"
31090
+ }, DEFAULT_HANDLER_ATTR_MAP.vertical), endHandlerStyle), {
31091
+ pickable: !zoomLock && (null === (_9 = endHandlerStyle.pickable) || void 0 === _9 || _9)
31092
+ }), "symbol");
31093
+ const startHandlerWidth = Math.max(this._startHandler.AABBBounds.width(), startHandlerMinSize),
31094
+ startHandlerHeight = Math.max(this._startHandler.AABBBounds.height(), startHandlerMinSize),
31095
+ endHandlerWidth = Math.max(this._endHandler.AABBBounds.width(), endHandlerMinSize),
31096
+ endHandlerHeight = Math.max(this._endHandler.AABBBounds.height(), endHandlerMinSize);
31097
+ this._startHandlerMask = group.createOrUpdateChild("startHandlerMask", Object.assign(Object.assign({
31098
+ x: position.x + width / 2 + startHandlerWidth / 2,
31099
+ y: position.y + start * height - startHandlerHeight / 2,
31100
+ width: endHandlerHeight,
31101
+ height: endHandlerWidth,
31102
+ fill: "white",
31103
+ fillOpacity: 0,
31104
+ zIndex: 999
31105
+ }, DEFAULT_HANDLER_ATTR_MAP.vertical), {
31106
+ pickable: !zoomLock
31107
+ }), "rect"), this._endHandlerMask = group.createOrUpdateChild("endHandlerMask", Object.assign(Object.assign({
31108
+ x: position.x + width / 2 + endHandlerWidth / 2,
31109
+ y: position.y + end * height - endHandlerHeight / 2,
31110
+ width: endHandlerHeight,
31111
+ height: endHandlerWidth,
31112
+ fill: "white",
31113
+ fillOpacity: 0,
31114
+ zIndex: 999
31115
+ }, DEFAULT_HANDLER_ATTR_MAP.vertical), {
31116
+ pickable: !zoomLock
31117
+ }), "rect");
31118
+ }
31119
+ this._showText && this.renderText();
31120
+ }
31121
+ computeBasePoints() {
31122
+ const {
31123
+ orient: orient
31124
+ } = this.attribute,
31125
+ {
31126
+ position: position,
31127
+ width: width,
31128
+ height: height
31129
+ } = this.getLayoutAttrFromConfig();
31130
+ let basePointStart, basePointEnd;
31131
+ return this._isHorizontal ? (basePointStart = [{
31132
+ x: position.x,
31133
+ y: position.y + height
31134
+ }], basePointEnd = [{
31135
+ x: position.x + width,
31136
+ y: position.y + height
31137
+ }]) : "left" === orient ? (basePointStart = [{
31138
+ x: position.x + width,
31139
+ y: position.y
31140
+ }], basePointEnd = [{
31141
+ x: position.x + width,
31142
+ y: position.y + height
31143
+ }]) : (basePointStart = [{
31144
+ x: position.x,
31145
+ y: position.y + height
31146
+ }], basePointEnd = [{
31147
+ x: position.x,
31148
+ y: position.y
31149
+ }]), {
31150
+ basePointStart: basePointStart,
31151
+ basePointEnd: basePointEnd
31152
+ };
31153
+ }
31154
+ simplifyPoints(points) {
31155
+ var _a;
31156
+ if (points.length > 1e4) {
31157
+ const tolerance = null !== (_a = this.attribute.tolerance) && void 0 !== _a ? _a : this._previewData.length / 1e4;
31158
+ return flatten_simplify(points, tolerance, !1);
31159
+ }
31160
+ return points;
31161
+ }
31162
+ getPreviewLinePoints() {
31163
+ let previewPoints = this._previewData.map(d => ({
31164
+ x: this._previewPointsX && this._previewPointsX(d),
31165
+ y: this._previewPointsY && this._previewPointsY(d)
31166
+ }));
31167
+ if (0 === previewPoints.length) return previewPoints;
31168
+ previewPoints = this.simplifyPoints(previewPoints);
31169
+ const {
31170
+ basePointStart: basePointStart,
31171
+ basePointEnd: basePointEnd
31172
+ } = this.computeBasePoints();
31173
+ return basePointStart.concat(previewPoints).concat(basePointEnd);
31174
+ }
31175
+ getPreviewAreaPoints() {
31176
+ let previewPoints = this._previewData.map(d => ({
31177
+ x: this._previewPointsX && this._previewPointsX(d),
31178
+ y: this._previewPointsY && this._previewPointsY(d),
31179
+ x1: this._previewPointsX1 && this._previewPointsX1(d),
31180
+ y1: this._previewPointsY1 && this._previewPointsY1(d)
31181
+ }));
31182
+ if (0 === previewPoints.length) return previewPoints;
31183
+ previewPoints = this.simplifyPoints(previewPoints);
31184
+ const {
31185
+ basePointStart: basePointStart,
31186
+ basePointEnd: basePointEnd
31187
+ } = this.computeBasePoints();
31188
+ return basePointStart.concat(previewPoints).concat(basePointEnd);
31189
+ }
31190
+ setPreviewAttributes(type, group) {
31191
+ this._previewGroup || (this._previewGroup = group.createOrUpdateChild("previewGroup", {
31192
+ pickable: !1
31193
+ }, "group")), "line" === type ? this._previewLine = this._previewGroup.createOrUpdateChild("previewLine", {}, "line") : this._previewArea = this._previewGroup.createOrUpdateChild("previewArea", {
31194
+ curveType: "basis"
31195
+ }, "area");
31196
+ const {
31197
+ backgroundChartStyle = {}
31198
+ } = this.attribute;
31199
+ "line" === type && this._previewLine.setAttributes(Object.assign({
31200
+ points: this.getPreviewLinePoints(),
31201
+ curveType: "basis",
31202
+ pickable: !1
31203
+ }, backgroundChartStyle.line)), "area" === type && this._previewArea.setAttributes(Object.assign({
31204
+ points: this.getPreviewAreaPoints(),
31205
+ curveType: "basis",
31206
+ pickable: !1
31207
+ }, backgroundChartStyle.area));
31208
+ }
31209
+ setSelectedPreviewAttributes(type, group) {
31210
+ this._selectedPreviewGroupClip || (this._selectedPreviewGroupClip = group.createOrUpdateChild("selectedPreviewGroupClip", {
31211
+ pickable: !1
31212
+ }, "group"), this._selectedPreviewGroup = this._selectedPreviewGroupClip.createOrUpdateChild("selectedPreviewGroup", {}, "group")), "line" === type ? this._selectedPreviewLine = this._selectedPreviewGroup.createOrUpdateChild("selectedPreviewLine", {}, "line") : this._selectedPreviewArea = this._selectedPreviewGroup.createOrUpdateChild("selectedPreviewArea", {
31213
+ curveType: "basis"
31214
+ }, "area");
31215
+ const {
31216
+ selectedBackgroundChartStyle = {}
31217
+ } = this.attribute,
31218
+ {
31219
+ start: start,
31220
+ end: end
31221
+ } = this.state,
31222
+ {
31223
+ position: position,
31224
+ width: width,
31225
+ height: height
31226
+ } = this.getLayoutAttrFromConfig();
31227
+ this._selectedPreviewGroupClip.setAttributes({
31228
+ x: this._isHorizontal ? position.x + start * width : position.x,
31229
+ y: this._isHorizontal ? position.y : position.y + start * height,
31230
+ width: this._isHorizontal ? (end - start) * width : width,
31231
+ height: this._isHorizontal ? height : (end - start) * height,
31232
+ clip: !0,
31233
+ pickable: !1
31234
+ }), this._selectedPreviewGroup.setAttributes({
31235
+ x: -(this._isHorizontal ? position.x + start * width : position.x),
31236
+ y: -(this._isHorizontal ? position.y : position.y + start * height),
31237
+ width: this._isHorizontal ? (end - start) * width : width,
31238
+ height: this._isHorizontal ? height : (end - start) * height,
31239
+ pickable: !1
31240
+ }), "line" === type && this._selectedPreviewLine.setAttributes(Object.assign({
31241
+ points: this.getPreviewLinePoints(),
31242
+ curveType: "basis",
31243
+ pickable: !1
31244
+ }, selectedBackgroundChartStyle.line)), "area" === type && this._selectedPreviewArea.setAttributes(Object.assign({
31245
+ points: this.getPreviewAreaPoints(),
31246
+ curveType: "basis",
31247
+ pickable: !1
31248
+ }, selectedBackgroundChartStyle.area));
31249
+ }
31250
+ maybeAddLabel(container, attributes, name) {
31251
+ let labelShape = this.find(node => node.name === name, !0);
31252
+ return labelShape ? labelShape.setAttributes(attributes) : (labelShape = new Tag$1(attributes), labelShape.name = name), container.add(labelShape), labelShape;
31253
+ }
31254
+ setStartAndEnd(start, end) {
31255
+ const {
31256
+ start: startAttr,
31257
+ end: endAttr
31258
+ } = this.attribute;
31259
+ isValid$5(start) && isValid$5(end) && (start !== this.state.start || end !== this.state.end) && (this.state.start = start, this.state.end = end, startAttr === this.state.start && endAttr === this.state.end || (this.setStateAttr(start, end, !0), this._dispatchEvent("change", {
31260
+ start: start,
31261
+ end: end,
31262
+ tag: this._activeTag
31263
+ })));
31264
+ }
31265
+ setPreviewData(data) {
31266
+ this._previewData = data;
31267
+ }
31268
+ setText(text, tag) {
31269
+ "start" === tag ? this._startText.setAttribute("text", text) : this._endText.setAttribute("text", text);
31270
+ }
31271
+ getStartValue() {
31272
+ return this._startValue;
31273
+ }
31274
+ getEndTextValue() {
31275
+ return this._endValue;
31276
+ }
31277
+ getMiddleHandlerSize() {
31278
+ var _a, _b, _c, _d;
31279
+ const {
31280
+ middleHandlerStyle = {}
31281
+ } = this.attribute,
31282
+ middleHandlerRectSize = null !== (_b = null === (_a = middleHandlerStyle.background) || void 0 === _a ? void 0 : _a.size) && void 0 !== _b ? _b : 10,
31283
+ middleHandlerSymbolSize = null !== (_d = null === (_c = middleHandlerStyle.icon) || void 0 === _c ? void 0 : _c.size) && void 0 !== _d ? _d : 10;
31284
+ return Math.max(middleHandlerRectSize, ...array$1(middleHandlerSymbolSize));
31285
+ }
31286
+ setPreviewPointsX(callback) {
31287
+ isFunction$7(callback) && (this._previewPointsX = callback);
31288
+ }
31289
+ setPreviewPointsY(callback) {
31290
+ isFunction$7(callback) && (this._previewPointsY = callback);
31291
+ }
31292
+ setPreviewPointsX1(callback) {
31293
+ isFunction$7(callback) && (this._previewPointsX1 = callback);
31294
+ }
31295
+ setPreviewPointsY1(callback) {
31296
+ isFunction$7(callback) && (this._previewPointsY1 = callback);
31297
+ }
31298
+ setStatePointToData(callback) {
31299
+ isFunction$7(callback) && (this._statePointToData = callback);
31300
+ }
31301
+ release(all) {
31302
+ super.release(all), ("browser" === vglobal.env ? vglobal : this.stage).addEventListener("touchmove", this._handleTouchMove, {
31303
+ passive: !1
31304
+ }), this._clearDragEvents();
31305
+ }
31306
+ }
31307
+ DataZoom.defaultAttributes = DEFAULT_DATA_ZOOM_ATTRIBUTES;
31308
+
30380
31309
  function loadPagerComponent() {
30381
31310
  registerGroup(), registerSymbol(), registerText();
30382
31311
  }
@@ -34656,6 +35585,19 @@
34656
35585
 
34657
35586
  function handleWhell$1(event, state, gantt, isWheelEvent = true) {
34658
35587
  let { deltaX, deltaY } = event;
35588
+ if (event.ctrlKey) {
35589
+ event.preventDefault();
35590
+ if (!gantt.zoomScaleManager) {
35591
+ return;
35592
+ }
35593
+ const rect = gantt.element.getBoundingClientRect();
35594
+ const mouseX = event.clientX - rect.left;
35595
+ const zoomIn = event.deltaY < 0;
35596
+ const zoomStep = gantt.parsedOptions.zoom?.step || 0.015;
35597
+ const factor = zoomIn ? 1 + zoomStep : 1 - zoomStep;
35598
+ gantt.zoomByFactor(factor, true, mouseX);
35599
+ return;
35600
+ }
34659
35601
  if (event.shiftKey && event.deltaY) {
34660
35602
  deltaX = deltaY;
34661
35603
  deltaY = 0;
@@ -58119,7 +59061,7 @@
58119
59061
  }
58120
59062
  constructor(container, options = {}) {
58121
59063
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
58122
- if (super(), this.showFrozenIcon = !0, this.version = "1.20.3", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container, container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
59064
+ if (super(), this.showFrozenIcon = !0, this.version = "1.21.0", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container, container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
58123
59065
  this.pluginManager = new PluginManager$1(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
58124
59066
  options: options,
58125
59067
  container: container
@@ -72782,6 +73724,9 @@
72782
73724
  gantt.taskListTableInstance.setCanvasSize(gantt.taskTableWidth, gantt.tableNoFrameHeight + gantt.parsedOptions.outerFrameStyle.borderLineWidth * 2);
72783
73725
  gantt._updateSize();
72784
73726
  updateSplitLineAndResizeLine(gantt);
73727
+ if (gantt.zoomScaleManager) {
73728
+ gantt.zoomScaleManager.handleTableWidthChange();
73729
+ }
72785
73730
  }
72786
73731
 
72787
73732
  class StateManager {
@@ -73439,6 +74384,9 @@
73439
74384
  }
73440
74385
  endResizeTableWidth() {
73441
74386
  this.resizeTableWidth.resizing = false;
74387
+ if (this._gantt.zoomScaleManager) {
74388
+ this._gantt.zoomScaleManager.handleTableWidthChange();
74389
+ }
73442
74390
  }
73443
74391
  dealResizeTableWidth(e) {
73444
74392
  if (!this.resizeTableWidth.resizing) {
@@ -73463,6 +74411,14 @@
73463
74411
  : '0px';
73464
74412
  this._gantt._resize();
73465
74413
  this.resizeTableWidth.lastX = e.pageX;
74414
+ if (this._gantt.zoomScaleManager && !this.resizeTableWidth.updateTimeout) {
74415
+ this.resizeTableWidth.updateTimeout = setTimeout(() => {
74416
+ if (this._gantt.zoomScaleManager) {
74417
+ this._gantt.zoomScaleManager.handleTableWidthChange();
74418
+ }
74419
+ this.resizeTableWidth.updateTimeout = null;
74420
+ }, 50);
74421
+ }
73466
74422
  }
73467
74423
  }
73468
74424
  showTaskBarHover() {
@@ -74020,6 +74976,843 @@
74020
74976
  }
74021
74977
  }
74022
74978
 
74979
+ class DataZoomIntegration {
74980
+ gantt;
74981
+ dataZoomAxis;
74982
+ stage;
74983
+ canvas;
74984
+ isUpdatingFromDataZoom = false;
74985
+ isUpdatingFromGantt = false;
74986
+ lastDataZoomState = { start: 0.2, end: 0.5 };
74987
+ cleanupCallbacks = [];
74988
+ resizeTimeout = null;
74989
+ isInitializing = true;
74990
+ constructor(gantt, config) {
74991
+ this.gantt = gantt;
74992
+ this.initializeDataZoom(config);
74993
+ this.setupEventListeners();
74994
+ this.updateDataZoomLimits();
74995
+ }
74996
+ getContainerId(providedId) {
74997
+ if (providedId) {
74998
+ return providedId;
74999
+ }
75000
+ const ganttContainer = this.gantt.container;
75001
+ if (ganttContainer?.id) {
75002
+ return ganttContainer.id;
75003
+ }
75004
+ const ganttElements = document.querySelectorAll('[id*="gantt"], [id*="table"], [class*="gantt"], [class*="vtable"]');
75005
+ if (ganttElements.length > 0) {
75006
+ const element = ganttElements[0];
75007
+ if (element.id) {
75008
+ return element.id;
75009
+ }
75010
+ }
75011
+ return 'vTable';
75012
+ }
75013
+ initializeDataZoom(config) {
75014
+ const containerId = this.getContainerId(config.containerId);
75015
+ const container = document.getElementById(containerId);
75016
+ if (!container) {
75017
+ throw new Error(`DataZoom container with ID "${containerId}" not found`);
75018
+ }
75019
+ const ganttContainer = this.gantt.container;
75020
+ if (!ganttContainer) {
75021
+ throw new Error('Gantt container not found');
75022
+ }
75023
+ const taskTableWidth = this.gantt.taskTableWidth || 0;
75024
+ const ganttContainerWidth = ganttContainer.offsetWidth || 1000;
75025
+ const defaultWidth = ganttContainerWidth - taskTableWidth;
75026
+ const defaultX = this.gantt.taskTableWidth || 0;
75027
+ const { start = 0.2, end = 0.5, width = defaultWidth, height = 30, x = defaultX, y = 0, delayTime = 10 } = config;
75028
+ const containerStyle = window.getComputedStyle(ganttContainer);
75029
+ if (containerStyle.position === 'static') {
75030
+ ganttContainer.style.position = 'relative';
75031
+ }
75032
+ const dataZoomWrapper = document.createElement('div');
75033
+ dataZoomWrapper.id = 'dataZoomWrapper';
75034
+ dataZoomWrapper.style.cssText = `
75035
+ width: 100%;
75036
+ height: ${height}px;
75037
+ position: absolute;
75038
+ bottom: ${y}px;
75039
+ left: 0px;
75040
+ background: transparent;
75041
+ overflow: visible;
75042
+ pointer-events: none;
75043
+ z-index: 1000;
75044
+ `;
75045
+ this.canvas = document.createElement('canvas');
75046
+ this.canvas.id = 'dataZoomCanvas';
75047
+ this.canvas.width = width;
75048
+ this.canvas.height = height;
75049
+ this.canvas.style.cssText = `
75050
+ width: ${width}px;
75051
+ height: ${height}px;
75052
+ position: absolute;
75053
+ top: 0px;
75054
+ left: ${x}px;
75055
+ pointer-events: auto;
75056
+ `;
75057
+ dataZoomWrapper.appendChild(this.canvas);
75058
+ ganttContainer.appendChild(dataZoomWrapper);
75059
+ this.stage = createStage({
75060
+ canvas: this.canvas,
75061
+ width,
75062
+ height,
75063
+ autoRender: true
75064
+ });
75065
+ this.dataZoomAxis = new DataZoom({
75066
+ start,
75067
+ end,
75068
+ position: { x: 0, y: 0 },
75069
+ size: { width, height: height - 1 },
75070
+ showDetail: false,
75071
+ delayTime,
75072
+ brushSelect: false,
75073
+ backgroundChartStyle: {
75074
+ line: { visible: true, stroke: '#ddd' },
75075
+ area: { visible: true, fill: '#f5f5f5' }
75076
+ },
75077
+ startHandlerStyle: {
75078
+ symbolType: 'M-0.5-2.4h0.9c0.4,0,0.7,0.3,0.7,0.7v3.3c0,0.4-0.3,0.7-0.7,0.7h-0.9c-0.4,0-0.7-0.3-0.7-0.7v-3.3\n' +
75079
+ 'C-1.2-2-0.9-2.4-0.5-2.4z M-0.4-1.4L-0.4-1.4c0,0,0,0.1,0,0.1v2.6c0,0.1,0,0.1,0,0.1l0,0c0,0,0-0.1,0-0.1' +
75080
+ 'v-2.6\nC-0.4-1.4-0.4-1.4-0.4-1.4z M0.3-1.4L0.3-1.4c0,0,0,0.1,0,0.1v2.6c0,0.1,0,0.1,0,0.1l0,0c0,0,' +
75081
+ '0-0.1,0-0.1v-2.6\nC0.3-1.4,0.3-1.4,0.3-1.4z;',
75082
+ fill: '#fff',
75083
+ size: config.width ?? 30,
75084
+ stroke: '#c2c8cf',
75085
+ lineWidth: 1
75086
+ },
75087
+ endHandlerStyle: {
75088
+ symbolType: 'M-0.5-2.4h0.9c0.4,0,0.7,0.3,0.7,0.7v3.3c0,0.4-0.3,0.7-0.7,0.7h-0.9c-0.4,0-0.7-0.3-0.7-0.7v-3.3\n' +
75089
+ 'C-1.2-2-0.9-2.4-0.5-2.4z M-0.4-1.4L-0.4-1.4c0,0,0,0.1,0,0.1v2.6c0,0.1,0,0.1,0,0.1l0,0c0,0,0-0.1,0-0.1' +
75090
+ 'v-2.6\nC-0.4-1.4-0.4-1.4-0.4-1.4z M0.3-1.4L0.3-1.4c0,0,0,0.1,0,0.1v2.6c0,0.1,0,0.1,0,0.1l0,0c0,0,' +
75091
+ '0-0.1,0-0.1v-2.6\nC0.3-1.4,0.3-1.4,0.3-1.4z;',
75092
+ fill: '#fff',
75093
+ size: config.width ?? 30,
75094
+ stroke: '#c2c8cf',
75095
+ lineWidth: 1
75096
+ },
75097
+ middleHandlerStyle: {
75098
+ visible: false
75099
+ }
75100
+ });
75101
+ this.stage.defaultLayer.add(this.dataZoomAxis);
75102
+ requestAnimationFrame(() => {
75103
+ if (this.isInitializing) {
75104
+ const boundaries = this.getGanttViewBoundaries();
75105
+ this.dataZoomAxis.setStartAndEnd(boundaries.startRatio, boundaries.endRatio);
75106
+ this.isInitializing = false;
75107
+ }
75108
+ this.stage.render();
75109
+ });
75110
+ this.lastDataZoomState = { start, end };
75111
+ }
75112
+ setupEventListeners() {
75113
+ const dataZoomChangeHandler = (event) => {
75114
+ if (this.isUpdatingFromGantt) {
75115
+ return;
75116
+ }
75117
+ this.isUpdatingFromDataZoom = true;
75118
+ let start = event.start ?? event.detail?.start ?? event.currentTarget?.attribute?.start;
75119
+ let end = event.end ?? event.detail?.end ?? event.currentTarget?.attribute?.end;
75120
+ if (start === undefined || end === undefined) {
75121
+ start = this.dataZoomAxis.attribute.start;
75122
+ end = this.dataZoomAxis.attribute.end;
75123
+ }
75124
+ if (start !== undefined && end !== undefined && !isNaN(start) && !isNaN(end)) {
75125
+ this.applyDataZoomRangeToGantt(start, end);
75126
+ }
75127
+ setTimeout(() => {
75128
+ this.isUpdatingFromDataZoom = false;
75129
+ }, 50);
75130
+ };
75131
+ this.dataZoomAxis.addEventListener('change', dataZoomChangeHandler);
75132
+ this.cleanupCallbacks.push(() => {
75133
+ this.dataZoomAxis.removeEventListener('change', dataZoomChangeHandler);
75134
+ });
75135
+ const ganttScrollHandler = (event) => {
75136
+ if (this.isUpdatingFromDataZoom) {
75137
+ return;
75138
+ }
75139
+ if (event.scrollDirection !== 'horizontal') {
75140
+ return;
75141
+ }
75142
+ this.isUpdatingFromGantt = true;
75143
+ const boundaries = this.getGanttViewBoundaries();
75144
+ this.dataZoomAxis.setStartAndEnd(boundaries.startRatio, boundaries.endRatio);
75145
+ this.stage.render();
75146
+ setTimeout(() => {
75147
+ this.dataZoomAxis.setAttribute('disableTriggerEvent', false);
75148
+ this.isUpdatingFromGantt = false;
75149
+ }, 10);
75150
+ };
75151
+ this.gantt.addEventListener('scroll', ganttScrollHandler);
75152
+ this.cleanupCallbacks.push(() => {
75153
+ this.gantt.removeEventListener('scroll', ganttScrollHandler);
75154
+ });
75155
+ const windowResizeHandler = () => {
75156
+ clearTimeout(this.resizeTimeout);
75157
+ this.resizeTimeout = setTimeout(() => {
75158
+ this.updateResponsive();
75159
+ this.updateDataZoomLimits();
75160
+ }, 50);
75161
+ };
75162
+ window.addEventListener('resize', windowResizeHandler);
75163
+ this.cleanupCallbacks.push(() => {
75164
+ window.removeEventListener('resize', windowResizeHandler);
75165
+ if (this.resizeTimeout) {
75166
+ clearTimeout(this.resizeTimeout);
75167
+ }
75168
+ });
75169
+ const ganttZoomHandler = () => {
75170
+ setTimeout(() => {
75171
+ this.updateDataZoomLimits();
75172
+ if (!this.isUpdatingFromDataZoom) {
75173
+ this.syncToDataZoom();
75174
+ }
75175
+ }, 50);
75176
+ };
75177
+ this.gantt.addEventListener('zoom', ganttZoomHandler);
75178
+ this.cleanupCallbacks.push(() => {
75179
+ this.gantt.removeEventListener('zoom', ganttZoomHandler);
75180
+ });
75181
+ }
75182
+ calculateDataZoomLimits() {
75183
+ let minMillisecondsPerPixel;
75184
+ let maxMillisecondsPerPixel;
75185
+ if (this.gantt.zoomScaleManager) {
75186
+ minMillisecondsPerPixel = this.gantt.zoomScaleManager.getGlobalMinMillisecondsPerPixel?.() || 1000;
75187
+ maxMillisecondsPerPixel = this.gantt.zoomScaleManager.getGlobalMaxMillisecondsPerPixel?.() || 6000000;
75188
+ }
75189
+ else {
75190
+ minMillisecondsPerPixel = this.gantt.parsedOptions.zoom?.minMillisecondsPerPixel ?? 1000;
75191
+ maxMillisecondsPerPixel = this.gantt.parsedOptions.zoom?.maxMillisecondsPerPixel ?? 6000000;
75192
+ }
75193
+ const viewportWidth = this.gantt.tableNoFrameWidth;
75194
+ const totalTimeRange = this.gantt.parsedOptions._maxDateTime - this.gantt.parsedOptions._minDateTime;
75195
+ const minViewTimeRange = minMillisecondsPerPixel * viewportWidth;
75196
+ const minRangeRatio = Math.min(1.0, minViewTimeRange / totalTimeRange);
75197
+ const maxViewTimeRange = maxMillisecondsPerPixel * viewportWidth;
75198
+ const maxRangeRatio = Math.min(1.0, maxViewTimeRange / totalTimeRange);
75199
+ const finalMinRangeRatio = Math.min(minRangeRatio, maxRangeRatio);
75200
+ const finalMaxRangeRatio = Math.max(minRangeRatio, maxRangeRatio);
75201
+ return {
75202
+ minRangeRatio: finalMinRangeRatio,
75203
+ maxRangeRatio: finalMaxRangeRatio,
75204
+ minMillisecondsPerPixel,
75205
+ maxMillisecondsPerPixel
75206
+ };
75207
+ }
75208
+ updateDataZoomLimits() {
75209
+ const limits = this.calculateDataZoomLimits();
75210
+ this.dataZoomAxis.setAttributes({
75211
+ minSpan: limits.minRangeRatio,
75212
+ maxSpan: limits.maxRangeRatio
75213
+ });
75214
+ this.stage.render();
75215
+ }
75216
+ getGanttViewBoundaries() {
75217
+ const scrollLeft = this.gantt.stateManager.scrollLeft;
75218
+ const totalWidth = this.gantt.getAllDateColsWidth();
75219
+ const viewportWidth = this.gantt.tableNoFrameWidth;
75220
+ const startRatio = Math.max(0, Math.min(1, scrollLeft / totalWidth));
75221
+ const endRatio = Math.max(0, Math.min(1, (scrollLeft + viewportWidth) / totalWidth));
75222
+ return {
75223
+ scrollLeft,
75224
+ totalWidth,
75225
+ viewportWidth,
75226
+ startRatio,
75227
+ endRatio
75228
+ };
75229
+ }
75230
+ applyDataZoomRangeToGantt(start, end) {
75231
+ if (start === undefined || end === undefined || isNaN(start) || isNaN(end)) {
75232
+ return;
75233
+ }
75234
+ this.lastDataZoomState = { start, end };
75235
+ const currentViewportWidth = this.gantt.tableNoFrameWidth;
75236
+ const currentMillisecondsPerPixel = this.gantt.getCurrentMillisecondsPerPixel();
75237
+ const rangeRatio = end - start;
75238
+ const totalTimeRange = this.gantt.parsedOptions._maxDateTime - this.gantt.parsedOptions._minDateTime;
75239
+ const selectedTimeRange = totalTimeRange * rangeRatio;
75240
+ const targetMillisecondsPerPixel = selectedTimeRange / currentViewportWidth;
75241
+ if (Math.abs(targetMillisecondsPerPixel - currentMillisecondsPerPixel) > currentMillisecondsPerPixel * 0.01) {
75242
+ if (this.gantt.zoomScaleManager) {
75243
+ const targetLevel = this.gantt.zoomScaleManager.findOptimalLevel(targetMillisecondsPerPixel);
75244
+ const currentLevel = this.gantt.zoomScaleManager.getCurrentLevel();
75245
+ if (targetLevel !== currentLevel) {
75246
+ this.gantt.zoomScaleManager.switchToLevel(targetLevel);
75247
+ }
75248
+ this.gantt.setMillisecondsPerPixel(targetMillisecondsPerPixel);
75249
+ }
75250
+ else {
75251
+ this.gantt.setMillisecondsPerPixel(targetMillisecondsPerPixel);
75252
+ }
75253
+ }
75254
+ const newTotalWidth = this.gantt.getAllDateColsWidth();
75255
+ const targetScrollLeft = start * newTotalWidth;
75256
+ this.gantt.stateManager.setScrollLeft(targetScrollLeft);
75257
+ }
75258
+ syncInitialPosition() {
75259
+ setTimeout(() => {
75260
+ const boundaries = this.getGanttViewBoundaries();
75261
+ if (boundaries.startRatio > 0 || boundaries.endRatio < 1) {
75262
+ this.dataZoomAxis.setStartAndEnd(boundaries.startRatio, boundaries.endRatio);
75263
+ }
75264
+ }, 100);
75265
+ }
75266
+ syncToGantt() {
75267
+ const start = this.dataZoomAxis.attribute.start || 0;
75268
+ const end = this.dataZoomAxis.attribute.end || 1;
75269
+ this.applyDataZoomRangeToGantt(start, end);
75270
+ }
75271
+ syncToDataZoom() {
75272
+ const boundaries = this.getGanttViewBoundaries();
75273
+ this.dataZoomAxis.setStartAndEnd(boundaries.startRatio, boundaries.endRatio);
75274
+ }
75275
+ syncToGanttWithState(start, end) {
75276
+ this.isUpdatingFromDataZoom = true;
75277
+ this.applyDataZoomRangeToGantt(start, end);
75278
+ setTimeout(() => {
75279
+ this.isUpdatingFromDataZoom = false;
75280
+ }, 50);
75281
+ }
75282
+ setRange(start, end) {
75283
+ this.dataZoomAxis.setStartAndEnd(start, end);
75284
+ }
75285
+ getRange() {
75286
+ return {
75287
+ start: this.dataZoomAxis.attribute.start || 0,
75288
+ end: this.dataZoomAxis.attribute.end || 1
75289
+ };
75290
+ }
75291
+ resize(width, height) {
75292
+ if (width === undefined) {
75293
+ const ganttContainer = this.gantt.container;
75294
+ if (ganttContainer) {
75295
+ const taskTableWidth = this.gantt.taskTableWidth || 0;
75296
+ width = ganttContainer.offsetWidth - taskTableWidth;
75297
+ }
75298
+ else {
75299
+ width = 1000;
75300
+ }
75301
+ }
75302
+ if (height === undefined) {
75303
+ height = 30;
75304
+ }
75305
+ this.canvas.width = width;
75306
+ this.canvas.height = height;
75307
+ this.canvas.style.width = `${width}px`;
75308
+ this.canvas.style.height = `${height}px`;
75309
+ this.stage.resize(width, height);
75310
+ this.dataZoomAxis.setAttributes({
75311
+ size: { width, height: height - 1 }
75312
+ });
75313
+ this.stage.render();
75314
+ }
75315
+ updateResponsive() {
75316
+ const ganttContainer = this.gantt.container;
75317
+ if (!ganttContainer) {
75318
+ return;
75319
+ }
75320
+ const taskTableWidth = this.gantt.taskTableWidth || 0;
75321
+ const newWidth = ganttContainer.offsetWidth - taskTableWidth;
75322
+ this.resize(newWidth);
75323
+ const defaultX = this.gantt.taskTableWidth || 0;
75324
+ this.updatePosition(defaultX, 0);
75325
+ setTimeout(() => {
75326
+ this.syncToDataZoom();
75327
+ }, 10);
75328
+ }
75329
+ updatePosition(x, y) {
75330
+ const xPos = x ?? this.gantt.taskTableWidth ?? 0;
75331
+ this.canvas.style.left = `${xPos}px`;
75332
+ }
75333
+ destroy() {
75334
+ this.cleanupCallbacks.forEach(cleanup => cleanup());
75335
+ this.cleanupCallbacks = [];
75336
+ if (this.canvas && this.canvas.parentNode) {
75337
+ const wrapper = this.canvas.parentNode;
75338
+ if (wrapper && wrapper.id === 'dataZoomWrapper' && wrapper.parentNode) {
75339
+ wrapper.parentNode.removeChild(wrapper);
75340
+ }
75341
+ else {
75342
+ wrapper.removeChild(this.canvas);
75343
+ }
75344
+ }
75345
+ if (this.stage) {
75346
+ this.stage.release();
75347
+ }
75348
+ }
75349
+ }
75350
+
75351
+ class ZoomScaleManager {
75352
+ gantt;
75353
+ config;
75354
+ currentLevelIndex = 0;
75355
+ levelBoundaries = [];
75356
+ globalMinMillisecondsPerPixel = 0;
75357
+ globalMaxMillisecondsPerPixel = 0;
75358
+ dataZoomIntegration = null;
75359
+ constructor(gantt, config) {
75360
+ this.gantt = gantt;
75361
+ const finalConfig = {
75362
+ enabled: true,
75363
+ levels: [],
75364
+ ...config
75365
+ };
75366
+ this.config = finalConfig;
75367
+ this.initializeZoomLimits();
75368
+ this.sortLevelsByCoarseness();
75369
+ this.calculateGlobalMillisecondsPerPixelRange();
75370
+ this.calculateLevelBoundaries();
75371
+ this.updateZoomLimits();
75372
+ if (this.config.levels.length > 0) {
75373
+ const initialMillisecondsPerPixel = this.calculateInitialMillisecondsPerPixel();
75374
+ this.initializeWithMillisecondsPerPixel(initialMillisecondsPerPixel);
75375
+ }
75376
+ this.initializeDataZoomIfNeeded();
75377
+ }
75378
+ initializeZoomLimits() {
75379
+ const existingZoom = this.gantt.parsedOptions.zoom;
75380
+ const zoomScaleConfig = this.config;
75381
+ this.gantt.parsedOptions.zoom = {
75382
+ minMillisecondsPerPixel: existingZoom?.minMillisecondsPerPixel ?? zoomScaleConfig.minMillisecondsPerPixel ?? 1000,
75383
+ maxMillisecondsPerPixel: existingZoom?.maxMillisecondsPerPixel ?? zoomScaleConfig.maxMillisecondsPerPixel ?? 6000000,
75384
+ step: zoomScaleConfig.step ?? 0.015
75385
+ };
75386
+ }
75387
+ initializeDataZoomIfNeeded() {
75388
+ const dataZoomConfig = this.config.dataZoomAxis;
75389
+ if (!dataZoomConfig?.enabled) {
75390
+ return;
75391
+ }
75392
+ const finalConfig = {
75393
+ containerId: dataZoomConfig.containerId,
75394
+ width: dataZoomConfig.width,
75395
+ height: dataZoomConfig.height ?? 30,
75396
+ x: dataZoomConfig.x,
75397
+ y: dataZoomConfig.y ?? 0,
75398
+ delayTime: dataZoomConfig.delayTime ?? 10
75399
+ };
75400
+ try {
75401
+ this.dataZoomIntegration = new DataZoomIntegration(this.gantt, finalConfig);
75402
+ }
75403
+ catch (error) {
75404
+ }
75405
+ }
75406
+ handleTableWidthChange() {
75407
+ if (this.dataZoomIntegration) {
75408
+ this.dataZoomIntegration.updateResponsive();
75409
+ }
75410
+ }
75411
+ sortLevelsByCoarseness() {
75412
+ if (this.config.levels.length <= 1) {
75413
+ return;
75414
+ }
75415
+ this.config.levels.sort((levelA, levelB) => {
75416
+ const minUnitA = this.findMinTimeUnit(levelA);
75417
+ const minUnitB = this.findMinTimeUnit(levelB);
75418
+ const unitMsA = this.getUnitMilliseconds(minUnitA.unit, minUnitA.step);
75419
+ const unitMsB = this.getUnitMilliseconds(minUnitB.unit, minUnitB.step);
75420
+ return unitMsB - unitMsA;
75421
+ });
75422
+ }
75423
+ calculateGlobalMillisecondsPerPixelRange() {
75424
+ const levels = this.config.levels;
75425
+ if (levels.length === 0) {
75426
+ return;
75427
+ }
75428
+ const maxZoomInColumnWidth = 120;
75429
+ const maxZoomOutColumnWidth = 150;
75430
+ let maxMinUnit = null;
75431
+ let maxMinUnitMs = 0;
75432
+ let minMinUnit = null;
75433
+ let minMinUnitMs = Infinity;
75434
+ for (const level of levels) {
75435
+ const minUnit = this.findMinTimeUnit(level);
75436
+ const unitMs = this.getUnitMilliseconds(minUnit.unit, minUnit.step);
75437
+ if (unitMs > maxMinUnitMs) {
75438
+ maxMinUnitMs = unitMs;
75439
+ maxMinUnit = minUnit;
75440
+ }
75441
+ if (unitMs < minMinUnitMs) {
75442
+ minMinUnitMs = unitMs;
75443
+ minMinUnit = minUnit;
75444
+ }
75445
+ }
75446
+ if (!maxMinUnit || !minMinUnit) {
75447
+ return;
75448
+ }
75449
+ this.globalMinMillisecondsPerPixel = minMinUnitMs / maxZoomInColumnWidth;
75450
+ this.globalMaxMillisecondsPerPixel = maxMinUnitMs / maxZoomOutColumnWidth;
75451
+ if (this.globalMinMillisecondsPerPixel > this.globalMaxMillisecondsPerPixel) {
75452
+ const temp = this.globalMinMillisecondsPerPixel;
75453
+ this.globalMinMillisecondsPerPixel = this.globalMaxMillisecondsPerPixel;
75454
+ this.globalMaxMillisecondsPerPixel = temp;
75455
+ }
75456
+ }
75457
+ calculateLevelBoundaries() {
75458
+ const levelCount = this.config.levels.length;
75459
+ if (levelCount === 0) {
75460
+ return;
75461
+ }
75462
+ this.levelBoundaries = [];
75463
+ const idealBoundaries = [];
75464
+ idealBoundaries[levelCount] = this.globalMinMillisecondsPerPixel;
75465
+ for (let i = levelCount - 1; i >= 1; i--) {
75466
+ const currentLevel = this.config.levels[i];
75467
+ const currentMinUnit = this.findMinTimeUnit(currentLevel);
75468
+ const currentUnitMs = this.getUnitMilliseconds(currentMinUnit.unit, currentMinUnit.step);
75469
+ const minColWidth = this.getMinColWidthForUnit(currentMinUnit.unit, currentMinUnit.step);
75470
+ const idealBoundary = currentUnitMs / minColWidth;
75471
+ idealBoundaries[i] = idealBoundary;
75472
+ }
75473
+ idealBoundaries[0] = this.globalMaxMillisecondsPerPixel;
75474
+ this.levelBoundaries = [...idealBoundaries];
75475
+ for (let i = 1; i < levelCount; i++) {
75476
+ if (this.levelBoundaries[i] >= this.levelBoundaries[i - 1]) {
75477
+ const prevBoundary = this.levelBoundaries[i - 1];
75478
+ const nextBoundary = this.levelBoundaries[i + 1] || this.globalMinMillisecondsPerPixel;
75479
+ this.levelBoundaries[i] = (prevBoundary + nextBoundary) / 2;
75480
+ }
75481
+ this.levelBoundaries[i] = Math.max(this.globalMinMillisecondsPerPixel, Math.min(this.globalMaxMillisecondsPerPixel, this.levelBoundaries[i]));
75482
+ }
75483
+ }
75484
+ updateZoomLimits() {
75485
+ if (!this.gantt.parsedOptions.zoom) {
75486
+ this.gantt.parsedOptions.zoom = {};
75487
+ }
75488
+ this.gantt.parsedOptions.zoom.minMillisecondsPerPixel = this.globalMinMillisecondsPerPixel;
75489
+ this.gantt.parsedOptions.zoom.maxMillisecondsPerPixel = this.globalMaxMillisecondsPerPixel;
75490
+ }
75491
+ getGlobalMinMillisecondsPerPixel() {
75492
+ return this.globalMinMillisecondsPerPixel;
75493
+ }
75494
+ getGlobalMaxMillisecondsPerPixel() {
75495
+ return this.globalMaxMillisecondsPerPixel;
75496
+ }
75497
+ calculateInitialMillisecondsPerPixel() {
75498
+ return (this.globalMinMillisecondsPerPixel +
75499
+ (this.globalMaxMillisecondsPerPixel - this.globalMinMillisecondsPerPixel) * 0.4);
75500
+ }
75501
+ initializeWithMillisecondsPerPixel(millisecondsPerPixel) {
75502
+ if (this.config.levels.length === 0) {
75503
+ return;
75504
+ }
75505
+ const optimalLevel = this.findOptimalLevel(millisecondsPerPixel);
75506
+ this.setInitialLevel(optimalLevel);
75507
+ }
75508
+ setInitialLevel(levelIndex) {
75509
+ if (levelIndex < 0 || levelIndex >= this.config.levels.length) {
75510
+ return;
75511
+ }
75512
+ const levelScales = this.config.levels[levelIndex];
75513
+ if (!levelScales || levelScales.length === 0) {
75514
+ return;
75515
+ }
75516
+ this.gantt.options.timelineHeader.scales = [...levelScales];
75517
+ this.currentLevelIndex = levelIndex;
75518
+ }
75519
+ findOptimalLevel(millisecondsPerPixel) {
75520
+ const clampedMillisecondsPerPixel = Math.max(this.globalMinMillisecondsPerPixel, Math.min(this.globalMaxMillisecondsPerPixel, millisecondsPerPixel));
75521
+ for (let i = 0; i < this.levelBoundaries.length - 1; i++) {
75522
+ if (clampedMillisecondsPerPixel <= this.levelBoundaries[i] &&
75523
+ clampedMillisecondsPerPixel > this.levelBoundaries[i + 1]) {
75524
+ return i;
75525
+ }
75526
+ }
75527
+ return this.config.levels.length - 1;
75528
+ }
75529
+ switchToLevel(levelIndex) {
75530
+ if (levelIndex < 0 || levelIndex >= this.config.levels.length) {
75531
+ return false;
75532
+ }
75533
+ if (this.currentLevelIndex === levelIndex) {
75534
+ return true;
75535
+ }
75536
+ const levelScales = this.config.levels[levelIndex];
75537
+ if (!levelScales || levelScales.length === 0) {
75538
+ return false;
75539
+ }
75540
+ try {
75541
+ this.gantt.updateScales([...levelScales]);
75542
+ this.currentLevelIndex = levelIndex;
75543
+ this.gantt.recalculateTimeScale();
75544
+ return true;
75545
+ }
75546
+ catch (error) {
75547
+ return false;
75548
+ }
75549
+ }
75550
+ findMinTimeUnit(scales) {
75551
+ let minUnit = scales[0];
75552
+ let minUnitMs = this.getUnitMilliseconds(minUnit.unit, minUnit.step);
75553
+ for (const scale of scales) {
75554
+ const unitMs = this.getUnitMilliseconds(scale.unit, scale.step);
75555
+ if (unitMs < minUnitMs) {
75556
+ minUnitMs = unitMs;
75557
+ minUnit = scale;
75558
+ }
75559
+ }
75560
+ return minUnit;
75561
+ }
75562
+ getUnitMilliseconds(unit, step) {
75563
+ const unitMs = {
75564
+ second: 1000,
75565
+ minute: 60 * 1000,
75566
+ hour: 60 * 60 * 1000,
75567
+ day: 24 * 60 * 60 * 1000,
75568
+ week: 7 * 24 * 60 * 60 * 1000,
75569
+ month: 30 * 24 * 60 * 60 * 1000,
75570
+ quarter: 90 * 24 * 60 * 60 * 1000,
75571
+ year: 365 * 24 * 60 * 60 * 1000
75572
+ };
75573
+ return (unitMs[unit] || unitMs.day) * step;
75574
+ }
75575
+ getMinColWidthForUnit(unit, step) {
75576
+ switch (unit) {
75577
+ case 'hour':
75578
+ return step > 1 ? 120 : 60;
75579
+ case 'minute':
75580
+ return 80;
75581
+ case 'second':
75582
+ return 100;
75583
+ case 'day':
75584
+ case 'week':
75585
+ case 'month':
75586
+ case 'quarter':
75587
+ case 'year':
75588
+ default:
75589
+ return 60;
75590
+ }
75591
+ }
75592
+ getCurrentLevel() {
75593
+ return this.currentLevelIndex;
75594
+ }
75595
+ getInitialMillisecondsPerPixel() {
75596
+ return this.calculateInitialMillisecondsPerPixel();
75597
+ }
75598
+ getCurrentZoomState() {
75599
+ if (this.config.levels.length === 0) {
75600
+ return null;
75601
+ }
75602
+ const currentLevel = this.config.levels[this.currentLevelIndex];
75603
+ const minUnit = this.findMinTimeUnit(currentLevel);
75604
+ const currentMillisecondsPerPixel = this.gantt.getCurrentMillisecondsPerPixel();
75605
+ const unitMs = this.getUnitMilliseconds(minUnit.unit, minUnit.step);
75606
+ const currentColWidth = unitMs / currentMillisecondsPerPixel;
75607
+ return {
75608
+ minUnit: minUnit.unit,
75609
+ step: minUnit.step,
75610
+ levelNum: this.currentLevelIndex,
75611
+ currentColWidth: Math.round(currentColWidth * 10) / 10
75612
+ };
75613
+ }
75614
+ setZoomPosition(params) {
75615
+ if (this.config.levels.length === 0) {
75616
+ return false;
75617
+ }
75618
+ const { minUnit, step, levelNum, colWidth } = params;
75619
+ let targetLevelIndex = null;
75620
+ if (minUnit !== undefined && step !== undefined) {
75621
+ targetLevelIndex = this.findLevelByMinUnit(minUnit, step);
75622
+ if (targetLevelIndex === null) {
75623
+ return false;
75624
+ }
75625
+ }
75626
+ else if (levelNum !== undefined) {
75627
+ if (levelNum < 0 || levelNum >= this.config.levels.length) {
75628
+ return false;
75629
+ }
75630
+ targetLevelIndex = levelNum;
75631
+ }
75632
+ else {
75633
+ return false;
75634
+ }
75635
+ let targetMillisecondsPerPixel;
75636
+ if (colWidth !== undefined) {
75637
+ const targetLevel = this.config.levels[targetLevelIndex];
75638
+ const targetMinUnit = this.findMinTimeUnit(targetLevel);
75639
+ const unitMs = this.getUnitMilliseconds(targetMinUnit.unit, targetMinUnit.step);
75640
+ targetMillisecondsPerPixel = unitMs / colWidth;
75641
+ const upperBoundary = this.levelBoundaries[targetLevelIndex];
75642
+ const lowerBoundary = this.levelBoundaries[targetLevelIndex + 1];
75643
+ if (targetMillisecondsPerPixel < lowerBoundary || targetMillisecondsPerPixel > upperBoundary) {
75644
+ targetMillisecondsPerPixel = (upperBoundary + lowerBoundary) / 2;
75645
+ }
75646
+ }
75647
+ else {
75648
+ const upperBoundary = this.levelBoundaries[targetLevelIndex];
75649
+ const lowerBoundary = this.levelBoundaries[targetLevelIndex + 1];
75650
+ targetMillisecondsPerPixel = (upperBoundary + lowerBoundary) / 2;
75651
+ }
75652
+ if (targetLevelIndex !== this.currentLevelIndex) {
75653
+ this.switchToLevel(targetLevelIndex);
75654
+ }
75655
+ this.gantt.setMillisecondsPerPixel(targetMillisecondsPerPixel);
75656
+ return true;
75657
+ }
75658
+ findLevelByMinUnit(unit, step) {
75659
+ for (let i = 0; i < this.config.levels.length; i++) {
75660
+ const level = this.config.levels[i];
75661
+ const minUnit = this.findMinTimeUnit(level);
75662
+ if (minUnit.unit === unit && minUnit.step === step) {
75663
+ return i;
75664
+ }
75665
+ }
75666
+ return null;
75667
+ }
75668
+ zoomIn(factor = 1.1, center = true, centerX) {
75669
+ this.gantt.zoomByFactor(factor, center, centerX);
75670
+ }
75671
+ zoomOut(factor = 0.9, center = true, centerX) {
75672
+ this.gantt.zoomByFactor(factor, center, centerX);
75673
+ }
75674
+ zoomByPercentage(percentage, center = true, centerX) {
75675
+ const currentMillisecondsPerPixel = this.gantt.getCurrentMillisecondsPerPixel();
75676
+ const totalRange = this.globalMaxMillisecondsPerPixel - this.globalMinMillisecondsPerPixel;
75677
+ const deltaMillisecondsPerPixel = (totalRange * percentage) / 100;
75678
+ const targetMillisecondsPerPixel = currentMillisecondsPerPixel - deltaMillisecondsPerPixel;
75679
+ let centerTimePosition;
75680
+ if (center && this.gantt.scenegraph) {
75681
+ if (centerX === undefined) {
75682
+ centerX = this.gantt.scenegraph.width / 2;
75683
+ }
75684
+ centerTimePosition = (this.gantt.stateManager.scroll.horizontalBarPos + centerX) * currentMillisecondsPerPixel;
75685
+ }
75686
+ const targetLevel = this.findOptimalLevel(targetMillisecondsPerPixel);
75687
+ const currentLevel = this.getCurrentLevel();
75688
+ if (targetLevel !== currentLevel) {
75689
+ this.switchToLevel(targetLevel);
75690
+ }
75691
+ this.gantt.setMillisecondsPerPixel(targetMillisecondsPerPixel);
75692
+ if (centerTimePosition !== undefined && centerX !== undefined) {
75693
+ const newScrollLeft = centerTimePosition / this.gantt.getCurrentMillisecondsPerPixel() - centerX;
75694
+ this.gantt.stateManager.setScrollLeft(newScrollLeft);
75695
+ }
75696
+ }
75697
+ getDataZoomIntegration() {
75698
+ return this.dataZoomIntegration;
75699
+ }
75700
+ createDataZoomIntegration(config) {
75701
+ if (this.dataZoomIntegration) {
75702
+ this.dataZoomIntegration.destroy();
75703
+ }
75704
+ this.dataZoomIntegration = new DataZoomIntegration(this.gantt, config);
75705
+ return this.dataZoomIntegration;
75706
+ }
75707
+ destroyDataZoomIntegration() {
75708
+ if (this.dataZoomIntegration) {
75709
+ this.dataZoomIntegration.destroy();
75710
+ this.dataZoomIntegration = null;
75711
+ }
75712
+ }
75713
+ updateDataZoomResponsive() {
75714
+ if (this.dataZoomIntegration) {
75715
+ this.dataZoomIntegration.updateResponsive();
75716
+ }
75717
+ }
75718
+ recalculateTimeScale() {
75719
+ const primaryScale = this.gantt.parsedOptions.reverseSortedTimelineScales[0];
75720
+ if (!primaryScale) {
75721
+ return;
75722
+ }
75723
+ let msPerStep;
75724
+ switch (primaryScale.unit) {
75725
+ case 'second':
75726
+ msPerStep = 1000 * primaryScale.step;
75727
+ break;
75728
+ case 'minute':
75729
+ msPerStep = 60 * 1000 * primaryScale.step;
75730
+ break;
75731
+ case 'hour':
75732
+ msPerStep = 60 * 60 * 1000 * primaryScale.step;
75733
+ break;
75734
+ case 'day':
75735
+ msPerStep = 24 * 60 * 60 * 1000 * primaryScale.step;
75736
+ break;
75737
+ case 'week':
75738
+ msPerStep = 7 * 24 * 60 * 60 * 1000 * primaryScale.step;
75739
+ break;
75740
+ case 'month':
75741
+ msPerStep = 30 * 24 * 60 * 60 * 1000 * primaryScale.step;
75742
+ break;
75743
+ case 'quarter':
75744
+ msPerStep = 90 * 24 * 60 * 60 * 1000 * primaryScale.step;
75745
+ break;
75746
+ case 'year':
75747
+ msPerStep = 365 * 24 * 60 * 60 * 1000 * primaryScale.step;
75748
+ break;
75749
+ default:
75750
+ msPerStep = 24 * 60 * 60 * 1000 * primaryScale.step;
75751
+ }
75752
+ const newTimelineColWidth = msPerStep / this.gantt.getCurrentMillisecondsPerPixel();
75753
+ this.gantt.parsedOptions.timelineColWidth = newTimelineColWidth;
75754
+ this.gantt._generateTimeLineDateMap();
75755
+ if (this.gantt.scenegraph) {
75756
+ this.gantt._updateSize();
75757
+ this.gantt.scenegraph.refreshAll();
75758
+ }
75759
+ }
75760
+ zoomByFactor(factor, keepCenter = true, centerX) {
75761
+ const minMillisecondsPerPixel = this.gantt.parsedOptions.zoom?.minMillisecondsPerPixel ?? 200000;
75762
+ const maxMillisecondsPerPixel = this.gantt.parsedOptions.zoom?.maxMillisecondsPerPixel ?? 3000000;
75763
+ const oldMillisecondsPerPixel = this.gantt.getCurrentMillisecondsPerPixel();
75764
+ const oldWidth = this.gantt.parsedOptions.timelineColWidth;
75765
+ let centerTimePosition;
75766
+ if (keepCenter) {
75767
+ if (centerX === undefined) {
75768
+ centerX = this.gantt.scenegraph.width / 2;
75769
+ }
75770
+ const scrollOffsetMs = (this.gantt.stateManager.scroll.horizontalBarPos + centerX) * oldMillisecondsPerPixel;
75771
+ centerTimePosition = this.gantt.parsedOptions._minDateTime + scrollOffsetMs;
75772
+ }
75773
+ const currentMillisecondsPerPixel = this.gantt.getCurrentMillisecondsPerPixel();
75774
+ let adjustedFactor = factor;
75775
+ const baseMillisecondsPerPixel = 1440000;
75776
+ const zoomRatio = Math.log(currentMillisecondsPerPixel / baseMillisecondsPerPixel) / Math.log(2);
75777
+ if (currentMillisecondsPerPixel < baseMillisecondsPerPixel) {
75778
+ const enhancement = Math.pow(1.2, -zoomRatio);
75779
+ adjustedFactor = Math.pow(factor, enhancement);
75780
+ }
75781
+ else {
75782
+ const dampening = Math.pow(0.9, zoomRatio);
75783
+ adjustedFactor = Math.pow(factor, dampening);
75784
+ }
75785
+ const newMillisecondsPerPixel = this.gantt.getCurrentMillisecondsPerPixel() / adjustedFactor;
75786
+ const clampedMillisecondsPerPixel = Math.max(minMillisecondsPerPixel, Math.min(maxMillisecondsPerPixel, newMillisecondsPerPixel));
75787
+ this.gantt.setMillisecondsPerPixel(clampedMillisecondsPerPixel);
75788
+ const targetLevel = this.findOptimalLevel(clampedMillisecondsPerPixel);
75789
+ const currentLevel = this.getCurrentLevel();
75790
+ if (targetLevel !== currentLevel) {
75791
+ this.switchToLevel(targetLevel);
75792
+ }
75793
+ else {
75794
+ this.recalculateTimeScale();
75795
+ }
75796
+ if (keepCenter && centerTimePosition !== undefined && centerX !== undefined) {
75797
+ const actualMillisecondsPerPixel = this.gantt.getCurrentMillisecondsPerPixel();
75798
+ const newMinDateTime = this.gantt.parsedOptions._minDateTime;
75799
+ const timeOffsetFromNewMin = centerTimePosition - newMinDateTime;
75800
+ const newScrollLeft = timeOffsetFromNewMin / actualMillisecondsPerPixel - centerX;
75801
+ this.gantt.stateManager.setScrollLeft(newScrollLeft);
75802
+ }
75803
+ if (this.gantt.hasListeners(GANTT_EVENT_TYPE.ZOOM)) {
75804
+ const actualMillisecondsPerPixel = this.gantt.getCurrentMillisecondsPerPixel();
75805
+ this.gantt.fireListeners(GANTT_EVENT_TYPE.ZOOM, {
75806
+ oldWidth,
75807
+ newWidth: this.gantt.parsedOptions.timelineColWidth,
75808
+ scale: oldMillisecondsPerPixel / actualMillisecondsPerPixel,
75809
+ oldMillisecondsPerPixel,
75810
+ newMillisecondsPerPixel: actualMillisecondsPerPixel
75811
+ });
75812
+ }
75813
+ }
75814
+ }
75815
+
74023
75816
  function createRootElement(padding, className = 'vtable-gantt') {
74024
75817
  const element = document.createElement('div');
74025
75818
  element.setAttribute('tabindex', '0');
@@ -74055,6 +75848,18 @@
74055
75848
  gridHeight;
74056
75849
  pluginManager;
74057
75850
  parsedOptions = {};
75851
+ millisecondsPerPixel;
75852
+ zoomScaleManager;
75853
+ recalculateTimeScale() {
75854
+ if (this.zoomScaleManager) {
75855
+ this.zoomScaleManager.recalculateTimeScale();
75856
+ }
75857
+ }
75858
+ zoomByFactor(factor, keepCenter = true, centerX) {
75859
+ if (this.zoomScaleManager) {
75860
+ this.zoomScaleManager.zoomByFactor(factor, keepCenter, centerX);
75861
+ }
75862
+ }
74058
75863
  taskTableWidth;
74059
75864
  taskTableColumns;
74060
75865
  records;
@@ -74067,8 +75872,17 @@
74067
75872
  typeof options?.taskListTable?.tableWidth === 'number' ? options?.taskListTable?.tableWidth : -1;
74068
75873
  this.taskTableColumns = options?.taskListTable?.columns ?? [];
74069
75874
  this.records = options?.records ?? [];
75875
+ if (options.timelineHeader?.zoomScale && options.timelineHeader.zoomScale.enabled !== false) {
75876
+ this.zoomScaleManager = new ZoomScaleManager(this, options.timelineHeader.zoomScale);
75877
+ }
74070
75878
  this._sortScales();
74071
75879
  initOptions(this);
75880
+ if (this.zoomScaleManager) {
75881
+ this.millisecondsPerPixel = this.zoomScaleManager.getInitialMillisecondsPerPixel();
75882
+ }
75883
+ else {
75884
+ this.millisecondsPerPixel = (24 * 60 * 60 * 1000) / 60;
75885
+ }
74072
75886
  initProjectTaskTimes(this);
74073
75887
  this.data = new DataSource(this);
74074
75888
  this._generateTimeLineDateMap();
@@ -74094,6 +75908,7 @@
74094
75908
  this.scenegraph.afterCreateSceneGraph();
74095
75909
  this._scrollToMarkLine();
74096
75910
  this.pluginManager = new PluginManager(this, options);
75911
+ this.recalculateTimeScale();
74097
75912
  }
74098
75913
  renderTaskBarsTable() {
74099
75914
  this.scenegraph.updateNextFrame();
@@ -74117,7 +75932,8 @@
74117
75932
  parseInt(computedStyle.paddingBottom || '0px', 20);
74118
75933
  }
74119
75934
  const width1 = (widthWithoutPadding ?? 1) - 1 - this.taskTableWidth;
74120
- const height1 = (heightWithoutPadding ?? 1) - 1;
75935
+ const dataZoomHeight = this.getDataZoomHeight();
75936
+ const height1 = (heightWithoutPadding ?? 1) - 1 - dataZoomHeight;
74121
75937
  element.style.width = (width1 && `${width1}px`) || '0px';
74122
75938
  element.style.height = (height1 && `${height1}px`) || '0px';
74123
75939
  const { canvas } = this;
@@ -74677,6 +76493,22 @@
74677
76493
  this.drawHeight = Math.min(this.getAllRowsHeight(), this.tableNoFrameHeight);
74678
76494
  this.gridHeight = this.drawHeight - this.headerHeight;
74679
76495
  }
76496
+ hasDataZoom() {
76497
+ if (!this.zoomScaleManager) {
76498
+ return false;
76499
+ }
76500
+ const dataZoomConfig = this.zoomScaleManager.config?.dataZoomAxis;
76501
+ if (!dataZoomConfig || dataZoomConfig.enabled === false) {
76502
+ return false;
76503
+ }
76504
+ return this.zoomScaleManager.getDataZoomIntegration() !== null;
76505
+ }
76506
+ getDataZoomHeight() {
76507
+ if (!this.hasDataZoom()) {
76508
+ return 0;
76509
+ }
76510
+ return this.zoomScaleManager?.config?.dataZoomAxis?.height || 30;
76511
+ }
74680
76512
  getContext() {
74681
76513
  return this.context;
74682
76514
  }
@@ -74912,6 +76744,33 @@
74912
76744
  formatDate(date, format) {
74913
76745
  return formatDate(date, format);
74914
76746
  }
76747
+ getCurrentMillisecondsPerPixel() {
76748
+ return this.millisecondsPerPixel;
76749
+ }
76750
+ setMillisecondsPerPixel(millisecondsPerPixel) {
76751
+ const minMillisecondsPerPixel = this.parsedOptions.zoom?.minMillisecondsPerPixel ?? 200000;
76752
+ const maxMillisecondsPerPixel = this.parsedOptions.zoom?.maxMillisecondsPerPixel ?? 3000000;
76753
+ const oldMillisecondsPerPixel = this.millisecondsPerPixel;
76754
+ const oldWidth = this.parsedOptions.timelineColWidth;
76755
+ this.millisecondsPerPixel = Math.max(minMillisecondsPerPixel, Math.min(maxMillisecondsPerPixel, millisecondsPerPixel));
76756
+ this.recalculateTimeScale();
76757
+ this._updateSize();
76758
+ this.scenegraph.refreshAll();
76759
+ const newWidth = this.parsedOptions.timelineColWidth;
76760
+ const scale = newWidth / oldWidth;
76761
+ if (this.hasListeners(GANTT_EVENT_TYPE.ZOOM)) {
76762
+ this.fireListeners(GANTT_EVENT_TYPE.ZOOM, {
76763
+ oldWidth,
76764
+ newWidth,
76765
+ scale,
76766
+ oldMillisecondsPerPixel,
76767
+ newMillisecondsPerPixel: this.millisecondsPerPixel
76768
+ });
76769
+ }
76770
+ }
76771
+ getCurrentZoomScaleLevel() {
76772
+ return this.zoomScaleManager?.getCurrentLevel() ?? -1;
76773
+ }
74915
76774
  }
74916
76775
 
74917
76776
  var index$1 = /*#__PURE__*/Object.freeze({
@@ -74950,7 +76809,7 @@
74950
76809
  PluginManager: PluginManager
74951
76810
  });
74952
76811
 
74953
- const version = "1.20.3";
76812
+ const version = "1.21.0";
74954
76813
 
74955
76814
  exports.Gantt = Gantt;
74956
76815
  exports.TYPES = index$4;