@visactor/vtable-calendar 1.17.3-alpha.11 → 1.17.3-alpha.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vtable-calendar.js +484 -306
- package/dist/vtable-calendar.min.js +1 -1
- package/package.json +4 -4
package/dist/vtable-calendar.js
CHANGED
|
@@ -577,7 +577,7 @@
|
|
|
577
577
|
const VGlobal = Symbol.for("VGlobal");
|
|
578
578
|
const DEFAULT_TEXT_FONT_FAMILY$2 = "PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol";
|
|
579
579
|
|
|
580
|
-
var __decorate$
|
|
580
|
+
var __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
581
581
|
var d,
|
|
582
582
|
c = arguments.length,
|
|
583
583
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -783,7 +783,7 @@
|
|
|
783
783
|
return this._env || this.setEnv("browser"), this.envContribution.getElementTopLeft(dom, baseWindow);
|
|
784
784
|
}
|
|
785
785
|
};
|
|
786
|
-
DefaultGlobal = __decorate$
|
|
786
|
+
DefaultGlobal = __decorate$16([injectable(), __param$A(0, inject(ContributionProvider)), __param$A(0, named(EnvContribution)), __metadata$M("design:paramtypes", [Object])], DefaultGlobal);
|
|
787
787
|
|
|
788
788
|
var MeasureModeEnum;
|
|
789
789
|
!function (MeasureModeEnum) {
|
|
@@ -4863,7 +4863,7 @@
|
|
|
4863
4863
|
return "number" != typeof measurement.actualBoundingBoxAscent || "number" != typeof measurement.actualBoundingBoxDescent ? (result.width = Math.floor(measurement.width), result.height = character.fontSize || 0, result.ascent = result.height, result.descent = 0) : (result.width = Math.floor(measurement.width), result.height = Math.floor(measurement.actualBoundingBoxAscent + measurement.actualBoundingBoxDescent), result.ascent = Math.floor(measurement.actualBoundingBoxAscent), result.descent = result.height - result.ascent), result;
|
|
4864
4864
|
}
|
|
4865
4865
|
|
|
4866
|
-
var __decorate$
|
|
4866
|
+
var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
4867
4867
|
var d,
|
|
4868
4868
|
c = arguments.length,
|
|
4869
4869
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -5255,9 +5255,9 @@
|
|
|
5255
5255
|
return data.str = data.result, data.width += suffixWidth, data;
|
|
5256
5256
|
}
|
|
5257
5257
|
};
|
|
5258
|
-
ATextMeasure = __decorate$
|
|
5258
|
+
ATextMeasure = __decorate$15([injectable()], ATextMeasure);
|
|
5259
5259
|
|
|
5260
|
-
var __decorate$
|
|
5260
|
+
var __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
5261
5261
|
var d,
|
|
5262
5262
|
c = arguments.length,
|
|
5263
5263
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -5266,7 +5266,7 @@
|
|
|
5266
5266
|
};
|
|
5267
5267
|
const TextMeasureContribution = Symbol.for("TextMeasureContribution");
|
|
5268
5268
|
let DefaultTextMeasureContribution = class extends ATextMeasure {};
|
|
5269
|
-
DefaultTextMeasureContribution = __decorate$
|
|
5269
|
+
DefaultTextMeasureContribution = __decorate$14([injectable()], DefaultTextMeasureContribution);
|
|
5270
5270
|
|
|
5271
5271
|
const container = new Container$1();
|
|
5272
5272
|
|
|
@@ -5328,7 +5328,7 @@
|
|
|
5328
5328
|
}
|
|
5329
5329
|
const canvasAllocate = new DefaultCanvasAllocate();
|
|
5330
5330
|
|
|
5331
|
-
var __decorate$
|
|
5331
|
+
var __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
5332
5332
|
var d,
|
|
5333
5333
|
c = arguments.length,
|
|
5334
5334
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -5472,9 +5472,9 @@
|
|
|
5472
5472
|
return this._handler.getTopLeft(baseWindow);
|
|
5473
5473
|
}
|
|
5474
5474
|
};
|
|
5475
|
-
DefaultWindow = __decorate$
|
|
5475
|
+
DefaultWindow = __decorate$13([injectable(), __metadata$L("design:paramtypes", [])], DefaultWindow);
|
|
5476
5476
|
|
|
5477
|
-
var __decorate$
|
|
5477
|
+
var __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
5478
5478
|
var d,
|
|
5479
5479
|
c = arguments.length,
|
|
5480
5480
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -5579,7 +5579,7 @@
|
|
|
5579
5579
|
return c.nativeCanvas ? c.nativeCanvas : null;
|
|
5580
5580
|
}
|
|
5581
5581
|
};
|
|
5582
|
-
DefaultGraphicUtil = __decorate$
|
|
5582
|
+
DefaultGraphicUtil = __decorate$12([injectable(), __param$z(0, inject(ContributionProvider)), __param$z(0, named(TextMeasureContribution)), __metadata$K("design:paramtypes", [Object])], DefaultGraphicUtil);
|
|
5583
5583
|
var TransformMode;
|
|
5584
5584
|
!function (TransformMode) {
|
|
5585
5585
|
TransformMode[TransformMode.transform = 0] = "transform", TransformMode[TransformMode.matrix = 1] = "matrix";
|
|
@@ -5637,7 +5637,7 @@
|
|
|
5637
5637
|
return this;
|
|
5638
5638
|
}
|
|
5639
5639
|
};
|
|
5640
|
-
DefaultTransformUtil = __decorate$
|
|
5640
|
+
DefaultTransformUtil = __decorate$12([injectable(), __metadata$K("design:paramtypes", [])], DefaultTransformUtil);
|
|
5641
5641
|
|
|
5642
5642
|
const defaultThemeObj = {
|
|
5643
5643
|
arc: DefaultArcAttribute,
|
|
@@ -9056,7 +9056,7 @@
|
|
|
9056
9056
|
const VirtualLayerHandlerContribution = Symbol.for("VirtualLayerHandlerContribution");
|
|
9057
9057
|
|
|
9058
9058
|
var DefaultLayerService_1,
|
|
9059
|
-
__decorate$
|
|
9059
|
+
__decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
9060
9060
|
var d,
|
|
9061
9061
|
c = arguments.length,
|
|
9062
9062
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -9127,7 +9127,7 @@
|
|
|
9127
9127
|
this.layerMap.delete(stage);
|
|
9128
9128
|
}
|
|
9129
9129
|
};
|
|
9130
|
-
DefaultLayerService.idprefix = "visactor_layer", DefaultLayerService.prefix_count = 0, DefaultLayerService = DefaultLayerService_1 = __decorate$
|
|
9130
|
+
DefaultLayerService.idprefix = "visactor_layer", DefaultLayerService.prefix_count = 0, DefaultLayerService = DefaultLayerService_1 = __decorate$11([injectable(), __metadata$J("design:paramtypes", [])], DefaultLayerService);
|
|
9131
9131
|
|
|
9132
9132
|
var coreModule = new ContainerModule(bind => {
|
|
9133
9133
|
bind(VGlobal).to(DefaultGlobal).inSingletonScope(), bind(VWindow).to(DefaultWindow), bind(GraphicUtil).to(DefaultGraphicUtil).inSingletonScope(), bind(TransformUtil).to(DefaultTransformUtil).inSingletonScope(), bind(LayerService).to(DefaultLayerService).inSingletonScope();
|
|
@@ -9633,7 +9633,7 @@
|
|
|
9633
9633
|
const matrixAllocate = new DefaultMatrixAllocate();
|
|
9634
9634
|
const mat4Allocate = new DefaultMat4Allocate();
|
|
9635
9635
|
|
|
9636
|
-
var __decorate
|
|
9636
|
+
var __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
9637
9637
|
var d,
|
|
9638
9638
|
c = arguments.length,
|
|
9639
9639
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -9823,7 +9823,7 @@
|
|
|
9823
9823
|
};
|
|
9824
9824
|
}
|
|
9825
9825
|
};
|
|
9826
|
-
DefaultGraphicService = __decorate
|
|
9826
|
+
DefaultGraphicService = __decorate$10([injectable(), __param$y(0, inject(GraphicCreator$1)), __metadata$I("design:paramtypes", [Object])], DefaultGraphicService);
|
|
9827
9827
|
|
|
9828
9828
|
const result = {
|
|
9829
9829
|
x: 0,
|
|
@@ -9963,7 +9963,7 @@
|
|
|
9963
9963
|
}
|
|
9964
9964
|
}
|
|
9965
9965
|
|
|
9966
|
-
var __decorate
|
|
9966
|
+
var __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
9967
9967
|
var d,
|
|
9968
9968
|
c = arguments.length,
|
|
9969
9969
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -10047,7 +10047,7 @@
|
|
|
10047
10047
|
});
|
|
10048
10048
|
}
|
|
10049
10049
|
};
|
|
10050
|
-
DefaultBaseInteractiveRenderContribution = __decorate
|
|
10050
|
+
DefaultBaseInteractiveRenderContribution = __decorate$$([injectable(), __param$x(0, inject(ContributionProvider)), __param$x(0, named(InteractiveSubRenderContribution)), __metadata$H("design:paramtypes", [Object])], DefaultBaseInteractiveRenderContribution);
|
|
10051
10051
|
|
|
10052
10052
|
class DefaultBaseTextureRenderContribution {
|
|
10053
10053
|
constructor() {
|
|
@@ -10345,7 +10345,7 @@
|
|
|
10345
10345
|
return !edgeCb && path.closePath(), path;
|
|
10346
10346
|
}
|
|
10347
10347
|
|
|
10348
|
-
var __decorate$
|
|
10348
|
+
var __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
10349
10349
|
var d,
|
|
10350
10350
|
c = arguments.length,
|
|
10351
10351
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -10409,7 +10409,7 @@
|
|
|
10409
10409
|
Array.isArray(stroke) && stroke.some(s => !1 === s) && (doFillOrStroke.doStroke = !1);
|
|
10410
10410
|
}
|
|
10411
10411
|
};
|
|
10412
|
-
SplitRectBeforeRenderContribution$1 = __decorate$
|
|
10412
|
+
SplitRectBeforeRenderContribution$1 = __decorate$_([injectable()], SplitRectBeforeRenderContribution$1);
|
|
10413
10413
|
let SplitRectAfterRenderContribution$1 = class SplitRectAfterRenderContribution {
|
|
10414
10414
|
constructor() {
|
|
10415
10415
|
this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
@@ -10445,7 +10445,7 @@
|
|
|
10445
10445
|
}
|
|
10446
10446
|
}
|
|
10447
10447
|
};
|
|
10448
|
-
SplitRectAfterRenderContribution$1 = __decorate$
|
|
10448
|
+
SplitRectAfterRenderContribution$1 = __decorate$_([injectable()], SplitRectAfterRenderContribution$1);
|
|
10449
10449
|
const defaultRectRenderContribution = new DefaultRectRenderContribution();
|
|
10450
10450
|
const defaultRectTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
10451
10451
|
const defaultRectBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
@@ -10523,7 +10523,7 @@
|
|
|
10523
10523
|
}
|
|
10524
10524
|
}
|
|
10525
10525
|
|
|
10526
|
-
var __decorate$
|
|
10526
|
+
var __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
10527
10527
|
var d,
|
|
10528
10528
|
c = arguments.length,
|
|
10529
10529
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -10697,9 +10697,9 @@
|
|
|
10697
10697
|
this._draw(arc, arcAttribute, !1, drawContext, params);
|
|
10698
10698
|
}
|
|
10699
10699
|
};
|
|
10700
|
-
DefaultCanvasArcRender = __decorate$
|
|
10700
|
+
DefaultCanvasArcRender = __decorate$Z([injectable(), __param$w(0, inject(ContributionProvider)), __param$w(0, named(ArcRenderContribution)), __metadata$G("design:paramtypes", [Object])], DefaultCanvasArcRender);
|
|
10701
10701
|
|
|
10702
|
-
var __decorate$
|
|
10702
|
+
var __decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
10703
10703
|
var d,
|
|
10704
10704
|
c = arguments.length,
|
|
10705
10705
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -10750,7 +10750,7 @@
|
|
|
10750
10750
|
this._draw(circle, circleAttribute, !1, drawContext, params);
|
|
10751
10751
|
}
|
|
10752
10752
|
};
|
|
10753
|
-
DefaultCanvasCircleRender = __decorate$
|
|
10753
|
+
DefaultCanvasCircleRender = __decorate$Y([injectable(), __param$v(0, inject(ContributionProvider)), __param$v(0, named(CircleRenderContribution)), __metadata$F("design:paramtypes", [Object])], DefaultCanvasCircleRender);
|
|
10754
10754
|
|
|
10755
10755
|
function drawSegItem(ctx, curve, endPercent, params) {
|
|
10756
10756
|
if (!curve.p1) return;
|
|
@@ -10874,7 +10874,7 @@
|
|
|
10874
10874
|
});
|
|
10875
10875
|
}
|
|
10876
10876
|
|
|
10877
|
-
var __decorate$
|
|
10877
|
+
var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
10878
10878
|
var d,
|
|
10879
10879
|
c = arguments.length,
|
|
10880
10880
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -11035,7 +11035,7 @@
|
|
|
11035
11035
|
} else this.drawSegmentItem(context, line.cache, !!fill, !!stroke, fillOpacity, strokeOpacity, line.attribute, lineAttribute, clipRange, clipRangeByDimension, x, y, line, fillCb, strokeCb);
|
|
11036
11036
|
}
|
|
11037
11037
|
};
|
|
11038
|
-
DefaultCanvasLineRender = __decorate$
|
|
11038
|
+
DefaultCanvasLineRender = __decorate$X([injectable()], DefaultCanvasLineRender);
|
|
11039
11039
|
|
|
11040
11040
|
function drawAreaSegments(path, segPath, percent, params) {
|
|
11041
11041
|
var _a;
|
|
@@ -11164,7 +11164,7 @@
|
|
|
11164
11164
|
const defaultAreaTextureRenderContribution = new DefaultAreaTextureRenderContribution();
|
|
11165
11165
|
const defaultAreaBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
11166
11166
|
|
|
11167
|
-
var __decorate$
|
|
11167
|
+
var __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
11168
11168
|
var d,
|
|
11169
11169
|
c = arguments.length,
|
|
11170
11170
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -11417,12 +11417,12 @@
|
|
|
11417
11417
|
})(), !1;
|
|
11418
11418
|
}
|
|
11419
11419
|
};
|
|
11420
|
-
DefaultCanvasAreaRender = __decorate$
|
|
11420
|
+
DefaultCanvasAreaRender = __decorate$W([injectable(), __param$u(0, inject(ContributionProvider)), __param$u(0, named(AreaRenderContribution)), __metadata$E("design:paramtypes", [Object])], DefaultCanvasAreaRender);
|
|
11421
11421
|
|
|
11422
11422
|
const defaultPathTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
11423
11423
|
const defaultPathBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
11424
11424
|
|
|
11425
|
-
var __decorate$
|
|
11425
|
+
var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
11426
11426
|
var d,
|
|
11427
11427
|
c = arguments.length,
|
|
11428
11428
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -11476,9 +11476,9 @@
|
|
|
11476
11476
|
this.tempTheme = pathAttribute, this._draw(path, pathAttribute, !1, drawContext, params), this.tempTheme = null;
|
|
11477
11477
|
}
|
|
11478
11478
|
};
|
|
11479
|
-
DefaultCanvasPathRender = __decorate$
|
|
11479
|
+
DefaultCanvasPathRender = __decorate$V([injectable(), __param$t(0, inject(ContributionProvider)), __param$t(0, named(PathRenderContribution)), __metadata$D("design:paramtypes", [Object])], DefaultCanvasPathRender);
|
|
11480
11480
|
|
|
11481
|
-
var __decorate$
|
|
11481
|
+
var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
11482
11482
|
var d,
|
|
11483
11483
|
c = arguments.length,
|
|
11484
11484
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -11547,9 +11547,9 @@
|
|
|
11547
11547
|
this.tempTheme = rectAttribute, this._draw(rect, rectAttribute, !1, drawContext, params), this.tempTheme = null;
|
|
11548
11548
|
}
|
|
11549
11549
|
};
|
|
11550
|
-
DefaultCanvasRectRender = __decorate$
|
|
11550
|
+
DefaultCanvasRectRender = __decorate$U([injectable(), __param$s(0, inject(ContributionProvider)), __param$s(0, named(RectRenderContribution)), __metadata$C("design:paramtypes", [Object])], DefaultCanvasRectRender);
|
|
11551
11551
|
|
|
11552
|
-
var __decorate$
|
|
11552
|
+
var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
11553
11553
|
var d,
|
|
11554
11554
|
c = arguments.length,
|
|
11555
11555
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -11627,7 +11627,7 @@
|
|
|
11627
11627
|
this._draw(symbol, symbolAttribute, !1, drawContext, params);
|
|
11628
11628
|
}
|
|
11629
11629
|
};
|
|
11630
|
-
DefaultCanvasSymbolRender = __decorate$
|
|
11630
|
+
DefaultCanvasSymbolRender = __decorate$T([injectable(), __param$r(0, inject(ContributionProvider)), __param$r(0, named(SymbolRenderContribution)), __metadata$B("design:paramtypes", [Object])], DefaultCanvasSymbolRender);
|
|
11631
11631
|
|
|
11632
11632
|
class DefaultBoundsAllocate {
|
|
11633
11633
|
constructor() {
|
|
@@ -11732,7 +11732,7 @@
|
|
|
11732
11732
|
}
|
|
11733
11733
|
const defaultTextBackgroundRenderContribution = new DefaultTextBackgroundRenderContribution();
|
|
11734
11734
|
|
|
11735
|
-
var __decorate$
|
|
11735
|
+
var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
11736
11736
|
var d,
|
|
11737
11737
|
c = arguments.length,
|
|
11738
11738
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -11881,7 +11881,7 @@
|
|
|
11881
11881
|
}
|
|
11882
11882
|
}
|
|
11883
11883
|
};
|
|
11884
|
-
DefaultCanvasTextRender = __decorate$
|
|
11884
|
+
DefaultCanvasTextRender = __decorate$S([injectable(), __param$q(0, inject(ContributionProvider)), __param$q(0, named(TextRenderContribution)), __metadata$A("design:paramtypes", [Object])], DefaultCanvasTextRender);
|
|
11885
11885
|
|
|
11886
11886
|
function drawPolygon(path, points, x, y) {
|
|
11887
11887
|
path.moveTo(points[0].x + x, points[0].y + y);
|
|
@@ -11937,7 +11937,7 @@
|
|
|
11937
11937
|
const defaultPolygonTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
11938
11938
|
const defaultPolygonBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
11939
11939
|
|
|
11940
|
-
var __decorate$
|
|
11940
|
+
var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
11941
11941
|
var d,
|
|
11942
11942
|
c = arguments.length,
|
|
11943
11943
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -11988,9 +11988,9 @@
|
|
|
11988
11988
|
this._draw(polygon, polygonAttribute, !1, drawContext, params);
|
|
11989
11989
|
}
|
|
11990
11990
|
};
|
|
11991
|
-
DefaultCanvasPolygonRender = __decorate$
|
|
11991
|
+
DefaultCanvasPolygonRender = __decorate$R([injectable(), __param$p(0, inject(ContributionProvider)), __param$p(0, named(PolygonRenderContribution)), __metadata$z("design:paramtypes", [Object])], DefaultCanvasPolygonRender);
|
|
11992
11992
|
|
|
11993
|
-
var __decorate$
|
|
11993
|
+
var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
11994
11994
|
var d,
|
|
11995
11995
|
c = arguments.length,
|
|
11996
11996
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -12094,9 +12094,9 @@
|
|
|
12094
12094
|
}) : clip ? context.restore() : context.highPerformanceRestore();
|
|
12095
12095
|
}
|
|
12096
12096
|
};
|
|
12097
|
-
DefaultCanvasGroupRender = __decorate$
|
|
12097
|
+
DefaultCanvasGroupRender = __decorate$Q([injectable(), __param$o(0, inject(ContributionProvider)), __param$o(0, named(GroupRenderContribution)), __metadata$y("design:paramtypes", [Object])], DefaultCanvasGroupRender);
|
|
12098
12098
|
|
|
12099
|
-
var __decorate$
|
|
12099
|
+
var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
12100
12100
|
var d,
|
|
12101
12101
|
c = arguments.length,
|
|
12102
12102
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -12173,7 +12173,7 @@
|
|
|
12173
12173
|
this._draw(image, imageAttribute, !1, drawContext);
|
|
12174
12174
|
}
|
|
12175
12175
|
};
|
|
12176
|
-
DefaultCanvasImageRender = __decorate$
|
|
12176
|
+
DefaultCanvasImageRender = __decorate$P([injectable(), __param$n(0, inject(ContributionProvider)), __param$n(0, named(ImageRenderContribution)), __metadata$x("design:paramtypes", [Object])], DefaultCanvasImageRender);
|
|
12177
12177
|
|
|
12178
12178
|
const IncrementalDrawContribution = Symbol.for("IncrementalDrawContribution");
|
|
12179
12179
|
const ArcRender = Symbol.for("ArcRender");
|
|
@@ -12235,7 +12235,7 @@
|
|
|
12235
12235
|
return result;
|
|
12236
12236
|
};
|
|
12237
12237
|
|
|
12238
|
-
var __decorate$
|
|
12238
|
+
var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
12239
12239
|
var d,
|
|
12240
12240
|
c = arguments.length,
|
|
12241
12241
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -12302,7 +12302,7 @@
|
|
|
12302
12302
|
return !1;
|
|
12303
12303
|
}
|
|
12304
12304
|
};
|
|
12305
|
-
CommonDrawItemInterceptorContribution = __decorate$
|
|
12305
|
+
CommonDrawItemInterceptorContribution = __decorate$O([injectable(), __metadata$w("design:paramtypes", [])], CommonDrawItemInterceptorContribution);
|
|
12306
12306
|
class InteractiveDrawItemInterceptorContribution {
|
|
12307
12307
|
constructor() {
|
|
12308
12308
|
this.order = 1;
|
|
@@ -12393,7 +12393,7 @@
|
|
|
12393
12393
|
}
|
|
12394
12394
|
}
|
|
12395
12395
|
|
|
12396
|
-
var __decorate$
|
|
12396
|
+
var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
12397
12397
|
var d,
|
|
12398
12398
|
c = arguments.length,
|
|
12399
12399
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -12440,7 +12440,7 @@
|
|
|
12440
12440
|
this.prepare(updateBounds), this.prepareRenderList(), this.beforeDraw(params), this.draw(params), this.afterDraw(params), this.drawParams = null;
|
|
12441
12441
|
}
|
|
12442
12442
|
};
|
|
12443
|
-
DefaultRenderService = __decorate$
|
|
12443
|
+
DefaultRenderService = __decorate$N([injectable(), __param$m(0, inject(DrawContribution)), __metadata$v("design:paramtypes", [Object])], DefaultRenderService);
|
|
12444
12444
|
|
|
12445
12445
|
var renderModule$1 = new ContainerModule(bind => {
|
|
12446
12446
|
bind(RenderService).to(DefaultRenderService);
|
|
@@ -15131,7 +15131,7 @@
|
|
|
15131
15131
|
return new ShadowRoot(graphic);
|
|
15132
15132
|
}
|
|
15133
15133
|
|
|
15134
|
-
var __decorate$
|
|
15134
|
+
var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15135
15135
|
var d,
|
|
15136
15136
|
c = arguments.length,
|
|
15137
15137
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -15169,7 +15169,7 @@
|
|
|
15169
15169
|
return context.highPerformanceRestore(), !result.graphic && result.group && "full" === shadowPickMode && (result.graphic = result.group), result;
|
|
15170
15170
|
}
|
|
15171
15171
|
};
|
|
15172
|
-
ShadowRootPickItemInterceptorContribution = __decorate$
|
|
15172
|
+
ShadowRootPickItemInterceptorContribution = __decorate$M([injectable()], ShadowRootPickItemInterceptorContribution);
|
|
15173
15173
|
let InteractivePickItemInterceptorContribution = class {
|
|
15174
15174
|
constructor() {
|
|
15175
15175
|
this.order = 1;
|
|
@@ -15188,7 +15188,7 @@
|
|
|
15188
15188
|
return null;
|
|
15189
15189
|
}
|
|
15190
15190
|
};
|
|
15191
|
-
InteractivePickItemInterceptorContribution = __decorate$
|
|
15191
|
+
InteractivePickItemInterceptorContribution = __decorate$M([injectable()], InteractivePickItemInterceptorContribution);
|
|
15192
15192
|
let Canvas3DPickItemInterceptor = class {
|
|
15193
15193
|
constructor() {
|
|
15194
15194
|
this.order = 1;
|
|
@@ -15208,7 +15208,7 @@
|
|
|
15208
15208
|
context.setTransformForCurrent();
|
|
15209
15209
|
}
|
|
15210
15210
|
};
|
|
15211
|
-
Canvas3DPickItemInterceptor = __decorate$
|
|
15211
|
+
Canvas3DPickItemInterceptor = __decorate$M([injectable()], Canvas3DPickItemInterceptor);
|
|
15212
15212
|
|
|
15213
15213
|
var pickModule = new ContainerModule((bind, unbind, isBound) => {
|
|
15214
15214
|
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);
|
|
@@ -15221,7 +15221,7 @@
|
|
|
15221
15221
|
const AutoEnablePlugins = Symbol.for("AutoEnablePlugins");
|
|
15222
15222
|
const PluginService = Symbol.for("PluginService");
|
|
15223
15223
|
|
|
15224
|
-
var __decorate$
|
|
15224
|
+
var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15225
15225
|
var d,
|
|
15226
15226
|
c = arguments.length,
|
|
15227
15227
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -15271,7 +15271,7 @@
|
|
|
15271
15271
|
}), this.onRegisterPlugin = [];
|
|
15272
15272
|
}
|
|
15273
15273
|
};
|
|
15274
|
-
DefaultPluginService = __decorate$
|
|
15274
|
+
DefaultPluginService = __decorate$L([injectable(), __param$l(0, inject(ContributionProvider)), __param$l(0, named(AutoEnablePlugins)), __metadata$u("design:paramtypes", [Object])], DefaultPluginService);
|
|
15275
15275
|
|
|
15276
15276
|
var pluginModule = new ContainerModule(bind => {
|
|
15277
15277
|
bind(PluginService).to(DefaultPluginService), bindContributionProviderNoSingletonScope(bind, AutoEnablePlugins);
|
|
@@ -15285,7 +15285,7 @@
|
|
|
15285
15285
|
bind(TextMeasureContribution).to(DefaultTextMeasureContribution).inSingletonScope(), bindContributionProvider(bind, TextMeasureContribution);
|
|
15286
15286
|
});
|
|
15287
15287
|
|
|
15288
|
-
var __decorate$
|
|
15288
|
+
var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15289
15289
|
var d,
|
|
15290
15290
|
c = arguments.length,
|
|
15291
15291
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -15362,7 +15362,7 @@
|
|
|
15362
15362
|
this.canvas.release();
|
|
15363
15363
|
}
|
|
15364
15364
|
};
|
|
15365
|
-
CanvasLayerHandlerContribution = __decorate$
|
|
15365
|
+
CanvasLayerHandlerContribution = __decorate$K([injectable(), __metadata$t("design:paramtypes", [])], CanvasLayerHandlerContribution);
|
|
15366
15366
|
|
|
15367
15367
|
var layerHandlerModules = new ContainerModule(bind => {
|
|
15368
15368
|
bind(CanvasLayerHandlerContribution).toSelf(), bind(StaticLayerHandlerContribution).toService(CanvasLayerHandlerContribution);
|
|
@@ -15481,7 +15481,7 @@
|
|
|
15481
15481
|
return result;
|
|
15482
15482
|
}
|
|
15483
15483
|
|
|
15484
|
-
var __decorate$
|
|
15484
|
+
var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15485
15485
|
var d,
|
|
15486
15486
|
c = arguments.length,
|
|
15487
15487
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -15690,9 +15690,9 @@
|
|
|
15690
15690
|
}
|
|
15691
15691
|
afterDraw(renderService, drawParams) {}
|
|
15692
15692
|
};
|
|
15693
|
-
DefaultDrawContribution = __decorate$
|
|
15693
|
+
DefaultDrawContribution = __decorate$J([injectable(), __param$k(0, multiInject(GraphicRender)), __param$k(1, inject(ContributionProvider)), __param$k(1, named(DrawItemInterceptor)), __metadata$s("design:paramtypes", [Array, Object])], DefaultDrawContribution);
|
|
15694
15694
|
|
|
15695
|
-
var __decorate$
|
|
15695
|
+
var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15696
15696
|
var d,
|
|
15697
15697
|
c = arguments.length,
|
|
15698
15698
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -15743,9 +15743,9 @@
|
|
|
15743
15743
|
}), context.setShadowBlendStyle && context.setShadowBlendStyle(line, attribute, defaultAttribute), context.setStrokeStyle(line, attribute, offsetX, offsetY, defaultAttribute), context.stroke());
|
|
15744
15744
|
}
|
|
15745
15745
|
};
|
|
15746
|
-
DefaultIncrementalCanvasLineRender = __decorate$
|
|
15746
|
+
DefaultIncrementalCanvasLineRender = __decorate$I([injectable()], DefaultIncrementalCanvasLineRender);
|
|
15747
15747
|
|
|
15748
|
-
var __decorate$
|
|
15748
|
+
var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15749
15749
|
var d,
|
|
15750
15750
|
c = arguments.length,
|
|
15751
15751
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -15788,10 +15788,10 @@
|
|
|
15788
15788
|
}), context.setShadowBlendStyle && context.setShadowBlendStyle(area, attribute, defaultAttribute), context.setCommonStyle(area, attribute, offsetX, offsetY, defaultAttribute), context.fill());
|
|
15789
15789
|
}
|
|
15790
15790
|
};
|
|
15791
|
-
DefaultIncrementalCanvasAreaRender = __decorate$
|
|
15791
|
+
DefaultIncrementalCanvasAreaRender = __decorate$H([injectable()], DefaultIncrementalCanvasAreaRender);
|
|
15792
15792
|
|
|
15793
15793
|
var STATUS,
|
|
15794
|
-
__decorate$
|
|
15794
|
+
__decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15795
15795
|
var d,
|
|
15796
15796
|
c = arguments.length,
|
|
15797
15797
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -15931,7 +15931,7 @@
|
|
|
15931
15931
|
});
|
|
15932
15932
|
}
|
|
15933
15933
|
};
|
|
15934
|
-
DefaultIncrementalDrawContribution = __decorate$
|
|
15934
|
+
DefaultIncrementalDrawContribution = __decorate$G([injectable(), __param$j(0, multiInject(GraphicRender)), __param$j(1, inject(DefaultIncrementalCanvasLineRender)), __param$j(2, inject(DefaultIncrementalCanvasAreaRender)), __param$j(3, inject(ContributionProvider)), __param$j(3, named(DrawItemInterceptor)), __metadata$r("design:paramtypes", [Array, Object, Object, Object])], DefaultIncrementalDrawContribution);
|
|
15935
15935
|
|
|
15936
15936
|
var renderModule = new ContainerModule(bind => {
|
|
15937
15937
|
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);
|
|
@@ -16721,7 +16721,7 @@
|
|
|
16721
16721
|
}
|
|
16722
16722
|
BaseCanvas.env = "browser";
|
|
16723
16723
|
|
|
16724
|
-
var __decorate$
|
|
16724
|
+
var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16725
16725
|
var d,
|
|
16726
16726
|
c = arguments.length,
|
|
16727
16727
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -16829,9 +16829,9 @@
|
|
|
16829
16829
|
});
|
|
16830
16830
|
}
|
|
16831
16831
|
};
|
|
16832
|
-
BaseEnvContribution = __decorate$
|
|
16832
|
+
BaseEnvContribution = __decorate$F([injectable()], BaseEnvContribution);
|
|
16833
16833
|
|
|
16834
|
-
var __decorate$
|
|
16834
|
+
var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16835
16835
|
var d,
|
|
16836
16836
|
c = arguments.length,
|
|
16837
16837
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -16877,9 +16877,9 @@
|
|
|
16877
16877
|
return this.modelMatrix;
|
|
16878
16878
|
}
|
|
16879
16879
|
};
|
|
16880
|
-
BaseWindowHandlerContribution = __decorate$
|
|
16880
|
+
BaseWindowHandlerContribution = __decorate$E([injectable(), __metadata$q("design:paramtypes", [])], BaseWindowHandlerContribution);
|
|
16881
16881
|
|
|
16882
|
-
var __decorate$
|
|
16882
|
+
var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16883
16883
|
var d,
|
|
16884
16884
|
c = arguments.length,
|
|
16885
16885
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -16995,7 +16995,7 @@
|
|
|
16995
16995
|
return picker || null;
|
|
16996
16996
|
}
|
|
16997
16997
|
};
|
|
16998
|
-
DefaultPickService = __decorate$
|
|
16998
|
+
DefaultPickService = __decorate$D([injectable(), __param$i(0, inject(ContributionProvider)), __param$i(0, named(PickItemInterceptor)), __metadata$p("design:paramtypes", [Object])], DefaultPickService);
|
|
16999
16999
|
|
|
17000
17000
|
let loadArcModule = !1;
|
|
17001
17001
|
const arcModule = new ContainerModule(bind => {
|
|
@@ -17037,7 +17037,7 @@
|
|
|
17037
17037
|
loadPolygonModule || (loadPolygonModule = !0, bind(PolygonRender).to(DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bind(PolygonRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PolygonRenderContribution));
|
|
17038
17038
|
});
|
|
17039
17039
|
|
|
17040
|
-
var __decorate$
|
|
17040
|
+
var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17041
17041
|
var d,
|
|
17042
17042
|
c = arguments.length,
|
|
17043
17043
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -17098,7 +17098,7 @@
|
|
|
17098
17098
|
this._draw(richtext, richtextAttribute, !1, drawContext);
|
|
17099
17099
|
}
|
|
17100
17100
|
};
|
|
17101
|
-
DefaultCanvasRichTextRender = __decorate$
|
|
17101
|
+
DefaultCanvasRichTextRender = __decorate$C([injectable(), __metadata$o("design:paramtypes", [])], DefaultCanvasRichTextRender);
|
|
17102
17102
|
|
|
17103
17103
|
let loadRichtextModule = !1;
|
|
17104
17104
|
const richtextModule = new ContainerModule(bind => {
|
|
@@ -17765,7 +17765,7 @@
|
|
|
17765
17765
|
}
|
|
17766
17766
|
}
|
|
17767
17767
|
|
|
17768
|
-
var __decorate$
|
|
17768
|
+
var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17769
17769
|
var d,
|
|
17770
17770
|
c = arguments.length,
|
|
17771
17771
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -18282,9 +18282,9 @@
|
|
|
18282
18282
|
this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
|
|
18283
18283
|
}
|
|
18284
18284
|
};
|
|
18285
|
-
BrowserContext2d.env = "browser", BrowserContext2d = __decorate$
|
|
18285
|
+
BrowserContext2d.env = "browser", BrowserContext2d = __decorate$B([injectable(), __metadata$n("design:paramtypes", [Object, Number])], BrowserContext2d);
|
|
18286
18286
|
|
|
18287
|
-
var __decorate$
|
|
18287
|
+
var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18288
18288
|
var d,
|
|
18289
18289
|
c = arguments.length,
|
|
18290
18290
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -18353,7 +18353,7 @@
|
|
|
18353
18353
|
this._context.dpr = this._dpr;
|
|
18354
18354
|
}
|
|
18355
18355
|
};
|
|
18356
|
-
BrowserCanvas.env = "browser", BrowserCanvas = __decorate$
|
|
18356
|
+
BrowserCanvas.env = "browser", BrowserCanvas = __decorate$A([injectable(), __metadata$m("design:paramtypes", [Object])], BrowserCanvas);
|
|
18357
18357
|
|
|
18358
18358
|
function createModule(CanvasConstructor, ContextConstructor) {
|
|
18359
18359
|
return new ContainerModule(bind => {
|
|
@@ -18363,7 +18363,7 @@
|
|
|
18363
18363
|
|
|
18364
18364
|
const browserCanvasModule = createModule(BrowserCanvas, BrowserContext2d);
|
|
18365
18365
|
|
|
18366
|
-
var __decorate$
|
|
18366
|
+
var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18367
18367
|
var d,
|
|
18368
18368
|
c = arguments.length,
|
|
18369
18369
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -18424,9 +18424,9 @@
|
|
|
18424
18424
|
return data;
|
|
18425
18425
|
}
|
|
18426
18426
|
};
|
|
18427
|
-
DefaultCanvasPickerService = __decorate$
|
|
18427
|
+
DefaultCanvasPickerService = __decorate$z([injectable(), __param$h(0, inject(ContributionProvider)), __param$h(0, named(CanvasPickerContribution)), __param$h(1, inject(DrawContribution)), __param$h(2, inject(ContributionProvider)), __param$h(2, named(PickItemInterceptor)), __metadata$l("design:paramtypes", [Object, Object, Object])], DefaultCanvasPickerService);
|
|
18428
18428
|
|
|
18429
|
-
var __decorate$
|
|
18429
|
+
var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18430
18430
|
var d,
|
|
18431
18431
|
c = arguments.length,
|
|
18432
18432
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -18441,7 +18441,7 @@
|
|
|
18441
18441
|
return !1;
|
|
18442
18442
|
}
|
|
18443
18443
|
};
|
|
18444
|
-
DefaultCanvasGroupPicker = __decorate$
|
|
18444
|
+
DefaultCanvasGroupPicker = __decorate$y([injectable()], DefaultCanvasGroupPicker);
|
|
18445
18445
|
|
|
18446
18446
|
const m = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
18447
18447
|
m.__vloaded || (m.__vloaded = !0, bind(CanvasGroupPicker).to(DefaultCanvasGroupPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGroupPicker), bindContributionProvider(bind, CanvasPickerContribution));
|
|
@@ -18457,7 +18457,7 @@
|
|
|
18457
18457
|
}
|
|
18458
18458
|
|
|
18459
18459
|
var BrowserWindowHandlerContribution_1,
|
|
18460
|
-
__decorate$
|
|
18460
|
+
__decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18461
18461
|
var d,
|
|
18462
18462
|
c = arguments.length,
|
|
18463
18463
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -18621,12 +18621,12 @@
|
|
|
18621
18621
|
return this.global.getElementTopLeft(this.canvas.nativeCanvas, baseWindow);
|
|
18622
18622
|
}
|
|
18623
18623
|
};
|
|
18624
|
-
BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = __decorate$
|
|
18624
|
+
BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = __decorate$x([injectable(), __metadata$k("design:paramtypes", [])], BrowserWindowHandlerContribution);
|
|
18625
18625
|
const browserWindowModule = new ContainerModule(bind => {
|
|
18626
18626
|
bind(BrowserWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(BrowserWindowHandlerContribution)).whenTargetNamed(BrowserWindowHandlerContribution.env);
|
|
18627
18627
|
});
|
|
18628
18628
|
|
|
18629
|
-
var __decorate$
|
|
18629
|
+
var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18630
18630
|
var d,
|
|
18631
18631
|
c = arguments.length,
|
|
18632
18632
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -18869,7 +18869,7 @@
|
|
|
18869
18869
|
});
|
|
18870
18870
|
}
|
|
18871
18871
|
};
|
|
18872
|
-
BrowserEnvContribution = __decorate$
|
|
18872
|
+
BrowserEnvContribution = __decorate$w([injectable(), __metadata$j("design:paramtypes", [])], BrowserEnvContribution);
|
|
18873
18873
|
|
|
18874
18874
|
const browserEnvModule = new ContainerModule(bind => {
|
|
18875
18875
|
browserEnvModule.isBrowserBound || (browserEnvModule.isBrowserBound = !0, bind(BrowserEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(BrowserEnvContribution));
|
|
@@ -18910,7 +18910,7 @@
|
|
|
18910
18910
|
}
|
|
18911
18911
|
}
|
|
18912
18912
|
|
|
18913
|
-
var __decorate$
|
|
18913
|
+
var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18914
18914
|
var d,
|
|
18915
18915
|
c = arguments.length,
|
|
18916
18916
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -18930,14 +18930,14 @@
|
|
|
18930
18930
|
super(), this.canvasRenderer = canvasRenderer, this.type = "arc", this.numberType = ARC_NUMBER_TYPE;
|
|
18931
18931
|
}
|
|
18932
18932
|
};
|
|
18933
|
-
DefaultMathArcPicker = __decorate$
|
|
18933
|
+
DefaultMathArcPicker = __decorate$v([injectable(), __param$g(0, inject(ArcRender)), __metadata$i("design:paramtypes", [Object])], DefaultMathArcPicker);
|
|
18934
18934
|
|
|
18935
18935
|
let loadArcPick$1 = !1;
|
|
18936
18936
|
const arcMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
18937
18937
|
loadArcPick$1 || (loadArcPick$1 = !0, bind(MathArcPicker).to(DefaultMathArcPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathArcPicker));
|
|
18938
18938
|
});
|
|
18939
18939
|
|
|
18940
|
-
var __decorate$
|
|
18940
|
+
var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18941
18941
|
var d,
|
|
18942
18942
|
c = arguments.length,
|
|
18943
18943
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -18957,14 +18957,14 @@
|
|
|
18957
18957
|
super(), this.canvasRenderer = canvasRenderer, this.type = "circle", this.numberType = CIRCLE_NUMBER_TYPE;
|
|
18958
18958
|
}
|
|
18959
18959
|
};
|
|
18960
|
-
DefaultMathCirclePicker = __decorate$
|
|
18960
|
+
DefaultMathCirclePicker = __decorate$u([injectable(), __param$f(0, inject(CircleRender)), __metadata$h("design:paramtypes", [Object])], DefaultMathCirclePicker);
|
|
18961
18961
|
|
|
18962
18962
|
let loadCirclePick$1 = !1;
|
|
18963
18963
|
const circleMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
18964
18964
|
loadCirclePick$1 || (loadCirclePick$1 = !0, bind(MathCirclePicker).to(DefaultMathCirclePicker).inSingletonScope(), bind(MathPickerContribution).toService(MathCirclePicker));
|
|
18965
18965
|
});
|
|
18966
18966
|
|
|
18967
|
-
var __decorate$
|
|
18967
|
+
var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18968
18968
|
var d,
|
|
18969
18969
|
c = arguments.length,
|
|
18970
18970
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -18982,14 +18982,14 @@
|
|
|
18982
18982
|
return !!pickContext && !!image.AABBBounds.containsPoint(point);
|
|
18983
18983
|
}
|
|
18984
18984
|
};
|
|
18985
|
-
DefaultMathImagePicker = __decorate$
|
|
18985
|
+
DefaultMathImagePicker = __decorate$t([injectable()], DefaultMathImagePicker);
|
|
18986
18986
|
|
|
18987
18987
|
let loadImagePick$1 = !1;
|
|
18988
18988
|
const imageMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
18989
18989
|
loadImagePick$1 || (loadImagePick$1 = !0, bind(MathImagePicker).to(DefaultMathImagePicker).inSingletonScope(), bind(DefaultMathImagePicker).toService(MathImagePicker));
|
|
18990
18990
|
});
|
|
18991
18991
|
|
|
18992
|
-
var __decorate$
|
|
18992
|
+
var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18993
18993
|
var d,
|
|
18994
18994
|
c = arguments.length,
|
|
18995
18995
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19009,14 +19009,14 @@
|
|
|
19009
19009
|
super(), this.canvasRenderer = canvasRenderer, this.type = "line", this.numberType = LINE_NUMBER_TYPE;
|
|
19010
19010
|
}
|
|
19011
19011
|
};
|
|
19012
|
-
DefaultMathLinePicker = __decorate$
|
|
19012
|
+
DefaultMathLinePicker = __decorate$s([injectable(), __param$e(0, inject(LineRender)), __metadata$g("design:paramtypes", [Object])], DefaultMathLinePicker);
|
|
19013
19013
|
|
|
19014
19014
|
let loadLinePick$1 = !1;
|
|
19015
19015
|
const lineMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
19016
19016
|
loadLinePick$1 || (loadLinePick$1 = !0, bind(MathLinePicker).to(DefaultMathLinePicker).inSingletonScope(), bind(MathPickerContribution).toService(MathLinePicker));
|
|
19017
19017
|
});
|
|
19018
19018
|
|
|
19019
|
-
var __decorate$
|
|
19019
|
+
var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19020
19020
|
var d,
|
|
19021
19021
|
c = arguments.length,
|
|
19022
19022
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19036,14 +19036,14 @@
|
|
|
19036
19036
|
super(), this.canvasRenderer = canvasRenderer, this.type = "polygon", this.numberType = POLYGON_NUMBER_TYPE;
|
|
19037
19037
|
}
|
|
19038
19038
|
};
|
|
19039
|
-
DefaultMathPolygonPicker = __decorate$
|
|
19039
|
+
DefaultMathPolygonPicker = __decorate$r([injectable(), __param$d(0, inject(PolygonRender)), __metadata$f("design:paramtypes", [Object])], DefaultMathPolygonPicker);
|
|
19040
19040
|
|
|
19041
19041
|
let loadPolygonPick$1 = !1;
|
|
19042
19042
|
const polygonMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
19043
19043
|
loadPolygonPick$1 || (loadPolygonPick$1 = !0, bind(MathPolygonPicker).to(DefaultMathPolygonPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathPolygonPicker));
|
|
19044
19044
|
});
|
|
19045
19045
|
|
|
19046
|
-
var __decorate$
|
|
19046
|
+
var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19047
19047
|
var d,
|
|
19048
19048
|
c = arguments.length,
|
|
19049
19049
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19063,7 +19063,7 @@
|
|
|
19063
19063
|
super(), this.canvasRenderer = canvasRenderer, this.type = "path", this.numberType = PATH_NUMBER_TYPE;
|
|
19064
19064
|
}
|
|
19065
19065
|
};
|
|
19066
|
-
DefaultMathPathPicker = __decorate$
|
|
19066
|
+
DefaultMathPathPicker = __decorate$q([injectable(), __param$c(0, inject(PathRender)), __metadata$e("design:paramtypes", [Object])], DefaultMathPathPicker);
|
|
19067
19067
|
|
|
19068
19068
|
let loadPathPick$1 = !1;
|
|
19069
19069
|
const pathMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -19118,7 +19118,7 @@
|
|
|
19118
19118
|
}
|
|
19119
19119
|
}
|
|
19120
19120
|
|
|
19121
|
-
var __decorate$
|
|
19121
|
+
var __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19122
19122
|
var d,
|
|
19123
19123
|
c = arguments.length,
|
|
19124
19124
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19138,7 +19138,7 @@
|
|
|
19138
19138
|
super(), this.canvasRenderer = canvasRenderer;
|
|
19139
19139
|
}
|
|
19140
19140
|
};
|
|
19141
|
-
DefaultMathRectPicker = __decorate$
|
|
19141
|
+
DefaultMathRectPicker = __decorate$p([injectable(), __param$b(0, inject(RectRender)), __metadata$d("design:paramtypes", [Object])], DefaultMathRectPicker);
|
|
19142
19142
|
|
|
19143
19143
|
let loadRectPick$1 = !1;
|
|
19144
19144
|
const rectMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -19150,7 +19150,7 @@
|
|
|
19150
19150
|
loadRichTextPick || (loadRichTextPick = !0, bind(MathImagePicker).to(DefaultMathImagePicker).inSingletonScope(), bind(DefaultMathImagePicker).toService(MathImagePicker));
|
|
19151
19151
|
});
|
|
19152
19152
|
|
|
19153
|
-
var __decorate$
|
|
19153
|
+
var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19154
19154
|
var d,
|
|
19155
19155
|
c = arguments.length,
|
|
19156
19156
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19170,14 +19170,14 @@
|
|
|
19170
19170
|
super(), this.canvasRenderer = canvasRenderer, this.type = "symbol", this.numberType = SYMBOL_NUMBER_TYPE;
|
|
19171
19171
|
}
|
|
19172
19172
|
};
|
|
19173
|
-
DefaultMathSymbolPicker = __decorate$
|
|
19173
|
+
DefaultMathSymbolPicker = __decorate$o([injectable(), __param$a(0, inject(SymbolRender)), __metadata$c("design:paramtypes", [Object])], DefaultMathSymbolPicker);
|
|
19174
19174
|
|
|
19175
19175
|
let loadSymbolPick$1 = !1;
|
|
19176
19176
|
const symbolMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
19177
19177
|
loadSymbolPick$1 || (loadSymbolPick$1 = !0, bind(MathSymbolPicker).to(DefaultMathSymbolPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathSymbolPicker));
|
|
19178
19178
|
});
|
|
19179
19179
|
|
|
19180
|
-
var __decorate$
|
|
19180
|
+
var __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19181
19181
|
var d,
|
|
19182
19182
|
c = arguments.length,
|
|
19183
19183
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19192,14 +19192,14 @@
|
|
|
19192
19192
|
return !!text.AABBBounds.containsPoint(point);
|
|
19193
19193
|
}
|
|
19194
19194
|
};
|
|
19195
|
-
DefaultMathTextPicker = __decorate$
|
|
19195
|
+
DefaultMathTextPicker = __decorate$n([injectable()], DefaultMathTextPicker);
|
|
19196
19196
|
|
|
19197
19197
|
let loadTextPick$1 = !1;
|
|
19198
19198
|
const textMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
19199
19199
|
loadTextPick$1 || (loadTextPick$1 = !0, bind(MathTextPicker).to(DefaultMathTextPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathTextPicker));
|
|
19200
19200
|
});
|
|
19201
19201
|
|
|
19202
|
-
var __decorate$
|
|
19202
|
+
var __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19203
19203
|
var d,
|
|
19204
19204
|
c = arguments.length,
|
|
19205
19205
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19218,9 +19218,9 @@
|
|
|
19218
19218
|
}
|
|
19219
19219
|
release() {}
|
|
19220
19220
|
};
|
|
19221
|
-
NodeContext2d.env = "node", NodeContext2d = __decorate$
|
|
19221
|
+
NodeContext2d.env = "node", NodeContext2d = __decorate$m([injectable(), __metadata$b("design:paramtypes", [Object, Number])], NodeContext2d);
|
|
19222
19222
|
|
|
19223
|
-
var __decorate$
|
|
19223
|
+
var __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19224
19224
|
var d,
|
|
19225
19225
|
c = arguments.length,
|
|
19226
19226
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19241,11 +19241,11 @@
|
|
|
19241
19241
|
this._nativeCanvas.release && isFunction$5(this._nativeCanvas.release) && this._nativeCanvas.release();
|
|
19242
19242
|
}
|
|
19243
19243
|
};
|
|
19244
|
-
NodeCanvas.env = "node", NodeCanvas = __decorate$
|
|
19244
|
+
NodeCanvas.env = "node", NodeCanvas = __decorate$l([injectable(), __metadata$a("design:paramtypes", [Object])], NodeCanvas);
|
|
19245
19245
|
|
|
19246
19246
|
const nodeCanvasModule = createModule(NodeCanvas, NodeContext2d);
|
|
19247
19247
|
|
|
19248
|
-
var __decorate$
|
|
19248
|
+
var __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19249
19249
|
var d,
|
|
19250
19250
|
c = arguments.length,
|
|
19251
19251
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19346,12 +19346,12 @@
|
|
|
19346
19346
|
}
|
|
19347
19347
|
clearViewBox(color) {}
|
|
19348
19348
|
};
|
|
19349
|
-
NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$
|
|
19349
|
+
NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$k([injectable(), __param$9(0, inject(VGlobal)), __metadata$9("design:paramtypes", [Object])], NodeWindowHandlerContribution);
|
|
19350
19350
|
const nodeWindowModule = new ContainerModule(bind => {
|
|
19351
19351
|
bind(NodeWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(NodeWindowHandlerContribution)).whenTargetNamed(NodeWindowHandlerContribution.env);
|
|
19352
19352
|
});
|
|
19353
19353
|
|
|
19354
|
-
var __decorate$
|
|
19354
|
+
var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19355
19355
|
var d,
|
|
19356
19356
|
c = arguments.length,
|
|
19357
19357
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19437,7 +19437,7 @@
|
|
|
19437
19437
|
release() {}
|
|
19438
19438
|
createOffscreenCanvas(params) {}
|
|
19439
19439
|
};
|
|
19440
|
-
NodeEnvContribution = __decorate$
|
|
19440
|
+
NodeEnvContribution = __decorate$j([injectable()], NodeEnvContribution);
|
|
19441
19441
|
|
|
19442
19442
|
const nodeEnvModule = new ContainerModule(bind => {
|
|
19443
19443
|
nodeEnvModule.isNodeBound || (nodeEnvModule.isNodeBound = !0, bind(NodeEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(NodeEnvContribution));
|
|
@@ -19448,7 +19448,7 @@
|
|
|
19448
19448
|
}
|
|
19449
19449
|
loadNodeEnv.__loaded = !1;
|
|
19450
19450
|
|
|
19451
|
-
var __decorate$
|
|
19451
|
+
var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19452
19452
|
var d,
|
|
19453
19453
|
c = arguments.length,
|
|
19454
19454
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19468,14 +19468,14 @@
|
|
|
19468
19468
|
super(), this.canvasRenderer = canvasRenderer, this.type = "arc", this.numberType = ARC_NUMBER_TYPE;
|
|
19469
19469
|
}
|
|
19470
19470
|
};
|
|
19471
|
-
DefaultCanvasArcPicker = __decorate$
|
|
19471
|
+
DefaultCanvasArcPicker = __decorate$i([injectable(), __param$8(0, inject(ArcRender)), __metadata$8("design:paramtypes", [Object])], DefaultCanvasArcPicker);
|
|
19472
19472
|
|
|
19473
19473
|
let loadArcPick = !1;
|
|
19474
19474
|
const arcCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
19475
19475
|
loadArcPick || (loadArcPick = !0, bind(CanvasArcPicker).to(DefaultCanvasArcPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasArcPicker));
|
|
19476
19476
|
});
|
|
19477
19477
|
|
|
19478
|
-
var __decorate$
|
|
19478
|
+
var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19479
19479
|
var d,
|
|
19480
19480
|
c = arguments.length,
|
|
19481
19481
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19495,7 +19495,7 @@
|
|
|
19495
19495
|
super(), this.canvasRenderer = canvasRenderer;
|
|
19496
19496
|
}
|
|
19497
19497
|
};
|
|
19498
|
-
DefaultCanvasRectPicker = __decorate$
|
|
19498
|
+
DefaultCanvasRectPicker = __decorate$h([injectable(), __param$7(0, inject(RectRender)), __metadata$7("design:paramtypes", [Object])], DefaultCanvasRectPicker);
|
|
19499
19499
|
|
|
19500
19500
|
let loadRectPick = !1;
|
|
19501
19501
|
const rectCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -19537,7 +19537,7 @@
|
|
|
19537
19537
|
}
|
|
19538
19538
|
}
|
|
19539
19539
|
|
|
19540
|
-
var __decorate$
|
|
19540
|
+
var __decorate$g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19541
19541
|
var d,
|
|
19542
19542
|
c = arguments.length,
|
|
19543
19543
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19557,7 +19557,7 @@
|
|
|
19557
19557
|
super(), this.canvasRenderer = canvasRenderer, this.type = "line", this.numberType = LINE_NUMBER_TYPE;
|
|
19558
19558
|
}
|
|
19559
19559
|
};
|
|
19560
|
-
DefaultCanvasLinePicker = __decorate$
|
|
19560
|
+
DefaultCanvasLinePicker = __decorate$g([injectable(), __param$6(0, inject(LineRender)), __metadata$6("design:paramtypes", [Object])], DefaultCanvasLinePicker);
|
|
19561
19561
|
|
|
19562
19562
|
let loadLinePick = !1;
|
|
19563
19563
|
const lineCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -19591,7 +19591,7 @@
|
|
|
19591
19591
|
}
|
|
19592
19592
|
}
|
|
19593
19593
|
|
|
19594
|
-
var __decorate$
|
|
19594
|
+
var __decorate$f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19595
19595
|
var d,
|
|
19596
19596
|
c = arguments.length,
|
|
19597
19597
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19646,14 +19646,14 @@
|
|
|
19646
19646
|
}), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
|
|
19647
19647
|
}
|
|
19648
19648
|
};
|
|
19649
|
-
DefaultCanvasSymbolPicker = __decorate$
|
|
19649
|
+
DefaultCanvasSymbolPicker = __decorate$f([injectable(), __param$5(0, inject(SymbolRender)), __metadata$5("design:paramtypes", [Object])], DefaultCanvasSymbolPicker);
|
|
19650
19650
|
|
|
19651
19651
|
let loadSymbolPick = !1;
|
|
19652
19652
|
const symbolCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
19653
19653
|
loadSymbolPick || (loadSymbolPick = !0, bind(CanvasSymbolPicker).to(DefaultCanvasSymbolPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasSymbolPicker));
|
|
19654
19654
|
});
|
|
19655
19655
|
|
|
19656
|
-
var __decorate$
|
|
19656
|
+
var __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19657
19657
|
var d,
|
|
19658
19658
|
c = arguments.length,
|
|
19659
19659
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19673,14 +19673,14 @@
|
|
|
19673
19673
|
super(), this.canvasRenderer = canvasRenderer, this.type = "circle", this.numberType = CIRCLE_NUMBER_TYPE;
|
|
19674
19674
|
}
|
|
19675
19675
|
};
|
|
19676
|
-
DefaultCanvasCirclePicker = __decorate$
|
|
19676
|
+
DefaultCanvasCirclePicker = __decorate$e([injectable(), __param$4(0, inject(CircleRender)), __metadata$4("design:paramtypes", [Object])], DefaultCanvasCirclePicker);
|
|
19677
19677
|
|
|
19678
19678
|
let loadCirclePick = !1;
|
|
19679
19679
|
const circleCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
19680
19680
|
loadCirclePick || (loadCirclePick = !0, bind(CanvasCirclePicker).to(DefaultCanvasCirclePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasCirclePicker));
|
|
19681
19681
|
});
|
|
19682
19682
|
|
|
19683
|
-
var __decorate$
|
|
19683
|
+
var __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19684
19684
|
var d,
|
|
19685
19685
|
c = arguments.length,
|
|
19686
19686
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19743,14 +19743,14 @@
|
|
|
19743
19743
|
}, (context, symbolAttribute, themeAttribute) => picked), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
|
|
19744
19744
|
}
|
|
19745
19745
|
};
|
|
19746
|
-
DefaultCanvasTextPicker = __decorate$
|
|
19746
|
+
DefaultCanvasTextPicker = __decorate$d([injectable(), __param$3(0, inject(TextRender)), __metadata$3("design:paramtypes", [Object])], DefaultCanvasTextPicker);
|
|
19747
19747
|
|
|
19748
19748
|
let loadTextPick = !1;
|
|
19749
19749
|
const textCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
19750
19750
|
loadTextPick || (loadTextPick = !0, bind(CanvasTextPicker).to(DefaultCanvasTextPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasTextPicker));
|
|
19751
19751
|
});
|
|
19752
19752
|
|
|
19753
|
-
var __decorate$
|
|
19753
|
+
var __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19754
19754
|
var d,
|
|
19755
19755
|
c = arguments.length,
|
|
19756
19756
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19770,14 +19770,14 @@
|
|
|
19770
19770
|
super(), this.canvasRenderer = canvasRenderer, this.type = "path", this.numberType = PATH_NUMBER_TYPE;
|
|
19771
19771
|
}
|
|
19772
19772
|
};
|
|
19773
|
-
DefaultCanvasPathPicker = __decorate$
|
|
19773
|
+
DefaultCanvasPathPicker = __decorate$c([injectable(), __param$2(0, inject(PathRender)), __metadata$2("design:paramtypes", [Object])], DefaultCanvasPathPicker);
|
|
19774
19774
|
|
|
19775
19775
|
let loadPathPick = !1;
|
|
19776
19776
|
const pathCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
19777
19777
|
loadPathPick || (loadPathPick = !0, bind(CanvasPathPicker).to(DefaultCanvasPathPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPathPicker));
|
|
19778
19778
|
});
|
|
19779
19779
|
|
|
19780
|
-
var __decorate$
|
|
19780
|
+
var __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19781
19781
|
var d,
|
|
19782
19782
|
c = arguments.length,
|
|
19783
19783
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19797,14 +19797,14 @@
|
|
|
19797
19797
|
super(), this.canvasRenderer = canvasRenderer, this.type = "polygon", this.numberType = POLYGON_NUMBER_TYPE;
|
|
19798
19798
|
}
|
|
19799
19799
|
};
|
|
19800
|
-
DefaultCanvasPolygonPicker = __decorate$
|
|
19800
|
+
DefaultCanvasPolygonPicker = __decorate$b([injectable(), __param$1(0, inject(PolygonRender)), __metadata$1("design:paramtypes", [Object])], DefaultCanvasPolygonPicker);
|
|
19801
19801
|
|
|
19802
19802
|
let loadPolygonPick = !1;
|
|
19803
19803
|
const polygonCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
19804
19804
|
loadPolygonPick || (loadPolygonPick = !0, bind(CanvasPolygonPicker).to(DefaultCanvasPolygonPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPolygonPicker));
|
|
19805
19805
|
});
|
|
19806
19806
|
|
|
19807
|
-
var __decorate$
|
|
19807
|
+
var __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19808
19808
|
var d,
|
|
19809
19809
|
c = arguments.length,
|
|
19810
19810
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19827,14 +19827,14 @@
|
|
|
19827
19827
|
return !!richtext.AABBBounds.containsPoint(point);
|
|
19828
19828
|
}
|
|
19829
19829
|
};
|
|
19830
|
-
DefaultCanvasRichTextPicker = __decorate$
|
|
19830
|
+
DefaultCanvasRichTextPicker = __decorate$a([injectable(), __param(0, inject(RichTextRender)), __metadata("design:paramtypes", [Object])], DefaultCanvasRichTextPicker);
|
|
19831
19831
|
|
|
19832
19832
|
let loadRichtextPick = !1;
|
|
19833
19833
|
const richtextCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
19834
19834
|
loadRichtextPick || (loadRichtextPick = !0, bind(CanvasRichTextPicker).to(DefaultCanvasRichTextPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasRichTextPicker));
|
|
19835
19835
|
});
|
|
19836
19836
|
|
|
19837
|
-
var __decorate$
|
|
19837
|
+
var __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19838
19838
|
var d,
|
|
19839
19839
|
c = arguments.length,
|
|
19840
19840
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19852,7 +19852,7 @@
|
|
|
19852
19852
|
return !!pickContext && !!image.AABBBounds.containsPoint(point);
|
|
19853
19853
|
}
|
|
19854
19854
|
};
|
|
19855
|
-
DefaultCanvasImagePicker = __decorate$
|
|
19855
|
+
DefaultCanvasImagePicker = __decorate$9([injectable()], DefaultCanvasImagePicker);
|
|
19856
19856
|
|
|
19857
19857
|
let loadImagePick = !1;
|
|
19858
19858
|
const imageCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -21415,7 +21415,7 @@
|
|
|
21415
21415
|
padding: 10
|
|
21416
21416
|
};
|
|
21417
21417
|
|
|
21418
|
-
var __decorate$
|
|
21418
|
+
var __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21419
21419
|
var d,
|
|
21420
21420
|
c = arguments.length,
|
|
21421
21421
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21457,9 +21457,9 @@
|
|
|
21457
21457
|
}), null === (_b = this.poptipComponent.parent) || void 0 === _b || _b.removeChild(this.poptipComponent), this.poptipComponent = null));
|
|
21458
21458
|
}
|
|
21459
21459
|
};
|
|
21460
|
-
PopTipRenderContribution = __decorate$
|
|
21460
|
+
PopTipRenderContribution = __decorate$8([injectable()], PopTipRenderContribution);
|
|
21461
21461
|
|
|
21462
|
-
var __decorate$
|
|
21462
|
+
var __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21463
21463
|
var d,
|
|
21464
21464
|
c = arguments.length,
|
|
21465
21465
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21503,7 +21503,7 @@
|
|
|
21503
21503
|
super(...arguments), this.name = "poptip", this.key = this.name + this._uid;
|
|
21504
21504
|
}
|
|
21505
21505
|
};
|
|
21506
|
-
PopTipPlugin = __decorate$
|
|
21506
|
+
PopTipPlugin = __decorate$7([injectable()], PopTipPlugin);
|
|
21507
21507
|
let PopTipForClipedTextPlugin = class extends PopTipPluginBase {
|
|
21508
21508
|
constructor() {
|
|
21509
21509
|
super(...arguments), this.name = "poptipForText", this.key = this.name + this._uid, this.pointerlave = e => {
|
|
@@ -21533,7 +21533,7 @@
|
|
|
21533
21533
|
super.deactivate(context), stage.removeEventListener("pointerleave", this.pointerlave);
|
|
21534
21534
|
}
|
|
21535
21535
|
};
|
|
21536
|
-
PopTipForClipedTextPlugin = __decorate$
|
|
21536
|
+
PopTipForClipedTextPlugin = __decorate$7([injectable()], PopTipForClipedTextPlugin);
|
|
21537
21537
|
|
|
21538
21538
|
const popTipModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
21539
21539
|
isBound(PopTipRenderContribution) || (bind(PopTipRenderContribution).toSelf().inSingletonScope(), bind(InteractiveSubRenderContribution).toService(PopTipRenderContribution)), isBound(PopTipPlugin) || (bind(PopTipPlugin).toSelf(), bind(AutoEnablePlugins).toService(PopTipPlugin)), isBound(PopTipForClipedTextPlugin) || (bind(PopTipForClipedTextPlugin).toSelf(), bind(AutoEnablePlugins).toService(PopTipForClipedTextPlugin));
|
|
@@ -27723,6 +27723,7 @@
|
|
|
27723
27723
|
AFTER_SORT: "after_sort",
|
|
27724
27724
|
FREEZE_CLICK: "freeze_click",
|
|
27725
27725
|
SCROLL: "scroll",
|
|
27726
|
+
CAN_SCROLL: "can_scroll",
|
|
27726
27727
|
SCROLL_HORIZONTAL_END: "scroll_horizontal_end",
|
|
27727
27728
|
SCROLL_VERTICAL_END: "scroll_vertical_end",
|
|
27728
27729
|
DROPDOWN_MENU_CLICK: "dropdown_menu_click",
|
|
@@ -32238,7 +32239,7 @@
|
|
|
32238
32239
|
}
|
|
32239
32240
|
function getCellCornerRadius(col, row, table) {
|
|
32240
32241
|
const tableCornerRadius = table.theme.frameStyle.cornerRadius;
|
|
32241
|
-
if (Array.isArray(tableCornerRadius)) {
|
|
32242
|
+
if (table.theme.cellInnerBorder) if (Array.isArray(tableCornerRadius)) {
|
|
32242
32243
|
if (0 === col && 0 === row) return [tableCornerRadius[0], 0, 0, 0];
|
|
32243
32244
|
if (col === table.colCount - 1 && 0 === row) return [0, tableCornerRadius[1], 0, 0];
|
|
32244
32245
|
if (0 === col && row === table.rowCount - 1) return [0, 0, 0, tableCornerRadius[3]];
|
|
@@ -32364,7 +32365,7 @@
|
|
|
32364
32365
|
}
|
|
32365
32366
|
updateCustomCell(componentId, isHeaderCustomLayout) {
|
|
32366
32367
|
const table = this.table;
|
|
32367
|
-
if (table.isPivotTable()) {
|
|
32368
|
+
if ("autoWidth" === table.widthMode && table.scenegraph.recalculateColWidths(), (table.isAutoRowHeight() || "auto" === table.internalProps.defaultRowHeight && !isHeaderCustomLayout || "auto" === table.internalProps.defaultHeaderRowHeight && isHeaderCustomLayout) && table.scenegraph.recalculateRowHeights(), table.isPivotTable()) {
|
|
32368
32369
|
const ranges = getUpdateCustomCellRangeInPivotTable(componentId, table, isHeaderCustomLayout);
|
|
32369
32370
|
for (let i = 0; i < ranges.length; i++) {
|
|
32370
32371
|
const range = ranges[i];
|
|
@@ -32374,7 +32375,7 @@
|
|
|
32374
32375
|
const range = getUpdateCustomCellRangeInListTable(componentId, table, isHeaderCustomLayout);
|
|
32375
32376
|
for (let col = range.start.col; col <= range.end.col; col++) for (let row = range.start.row; row <= range.end.row; row++) table.scenegraph.updateCellContent(col, row);
|
|
32376
32377
|
}
|
|
32377
|
-
|
|
32378
|
+
table.scenegraph.renderSceneGraph();
|
|
32378
32379
|
}
|
|
32379
32380
|
getCustomLayoutFunc(col, row) {
|
|
32380
32381
|
var _a;
|
|
@@ -34062,8 +34063,9 @@
|
|
|
34062
34063
|
}
|
|
34063
34064
|
function updateCell$1(col, row, table, addNew, isShadow, forceFastUpdate) {
|
|
34064
34065
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
34065
|
-
const oldCellGroup = table.scenegraph.highPerformanceGetCell(col, row, !0)
|
|
34066
|
-
|
|
34066
|
+
const oldCellGroup = table.scenegraph.highPerformanceGetCell(col, row, !0);
|
|
34067
|
+
if ("cell" !== oldCellGroup.role && !addNew) return;
|
|
34068
|
+
const cellLocation = table.getCellLocation(col, row);
|
|
34067
34069
|
let isMerge,
|
|
34068
34070
|
range,
|
|
34069
34071
|
customStyle,
|
|
@@ -34627,7 +34629,7 @@
|
|
|
34627
34629
|
const layoutMap = table.internalProps.layoutMap;
|
|
34628
34630
|
table.isPivotTable() && (layoutMap.enableUseGetBodyCache(), layoutMap.enableUseHeaderPathCache()), table.defaultHeaderRowHeight, table.defaultHeaderColWidth;
|
|
34629
34631
|
const isDefaultHeaderHasAuto = "auto" === table.defaultHeaderRowHeight || isArray$7(table.defaultHeaderRowHeight) && table.defaultHeaderRowHeight.some(item => "auto" === item),
|
|
34630
|
-
isAllRowsAuto = table.isAutoRowHeight() || "adaptive" === table.heightMode && !1 !== table.options.autoHeightInAdaptiveMode,
|
|
34632
|
+
isAllRowsAuto = table.isAutoRowHeight(rowStart) || "adaptive" === table.heightMode && !1 !== table.options.autoHeightInAdaptiveMode,
|
|
34631
34633
|
isDefaultRowHeightIsAuto = "auto" === table.options.defaultRowHeight;
|
|
34632
34634
|
if (isAllRowsAuto || isDefaultHeaderHasAuto || isDefaultRowHeightIsAuto) {
|
|
34633
34635
|
rowStart = null != rowStart ? rowStart : 0, rowEnd = null != rowEnd ? rowEnd : table.rowCount - 1, (0 === rowStart && rowEnd === table.rowCount - 1 || isClearRowRangeHeightsMap) && table._clearRowRangeHeightsMap();
|
|
@@ -34643,7 +34645,7 @@
|
|
|
34643
34645
|
const height = computeRowHeight(row, 0, table.colCount - 1, table);
|
|
34644
34646
|
update ? newHeights[row] = Math.round(height) : table._setRowHeight(row, height);
|
|
34645
34647
|
}
|
|
34646
|
-
if (rowEnd < table.columnHeaderLevelCount || !isAllRowsAuto && !isDefaultRowHeightIsAuto) ;else if (table.internalProps.transpose || table.isPivotTable() && !table.internalProps.layoutMap.indicatorsAsCol || table.options.customComputeRowHeight || !checkFixedStyleAndNoWrap(table)) {
|
|
34648
|
+
if (rowEnd < table.columnHeaderLevelCount || !isAllRowsAuto && !isDefaultRowHeightIsAuto) ;else if (table.internalProps.transpose || table.isPivotTable() && !table.internalProps.layoutMap.indicatorsAsCol || table.options.customComputeRowHeight || !checkFixedStyleAndNoWrap(table, rowStart)) {
|
|
34647
34649
|
if (table.internalProps.transpose || table.isPivotTable() && !table.internalProps.layoutMap.indicatorsAsCol) for (let row = Math.max(rowStart, table.columnHeaderLevelCount); row <= rowEnd; row++) {
|
|
34648
34650
|
let height;
|
|
34649
34651
|
height = checkFixedStyleAndNoWrapForTranspose(table, row) ? computeRowHeight(row, 0, table.rowHeaderLevelCount, table) : computeRowHeight(row, 0, table.colCount - 1, table), update ? newHeights[row] = Math.round(height) : table._setRowHeight(row, height);
|
|
@@ -34717,7 +34719,7 @@
|
|
|
34717
34719
|
}
|
|
34718
34720
|
function computeRowHeight(row, startCol, endCol, table) {
|
|
34719
34721
|
var _a;
|
|
34720
|
-
if (!(table.isAutoRowHeight() || "adaptive" === table.heightMode && !1 !== table.options.autoHeightInAdaptiveMode) && "auto" !== table.getDefaultRowHeight(row)) return table.getDefaultRowHeight(row);
|
|
34722
|
+
if (!(table.isAutoRowHeight(row) || "adaptive" === table.heightMode && !1 !== table.options.autoHeightInAdaptiveMode) && "auto" !== table.getDefaultRowHeight(row)) return table.getDefaultRowHeight(row);
|
|
34721
34723
|
let maxHeight;
|
|
34722
34724
|
if (table.options.customComputeRowHeight) {
|
|
34723
34725
|
const customRowHeight = table.options.customComputeRowHeight({
|
|
@@ -34755,13 +34757,13 @@
|
|
|
34755
34757
|
const defaultHeight = table.getDefaultRowHeight(row);
|
|
34756
34758
|
return isNumber$4(defaultHeight) ? defaultHeight : table.defaultRowHeight;
|
|
34757
34759
|
}
|
|
34758
|
-
function checkFixedStyleAndNoWrap(table) {
|
|
34760
|
+
function checkFixedStyleAndNoWrap(table, rowStart) {
|
|
34759
34761
|
var _a, _b, _c;
|
|
34760
34762
|
const {
|
|
34761
34763
|
layoutMap: layoutMap
|
|
34762
34764
|
} = table.internalProps,
|
|
34763
34765
|
row = table.columnHeaderLevelCount;
|
|
34764
|
-
if ((table.internalProps.autoWrapText || table.internalProps.enableLineBreak || table.isPivotChart()) && (table.isAutoRowHeight() || "adaptive" === table.options.heightMode)) return !1;
|
|
34766
|
+
if ((table.internalProps.autoWrapText || table.internalProps.enableLineBreak || table.isPivotChart()) && (table.isAutoRowHeight(rowStart) || "adaptive" === table.options.heightMode)) return !1;
|
|
34765
34767
|
for (let col = 0; col < table.colCount; col++) {
|
|
34766
34768
|
const cellDefine = layoutMap.getBody(col, row);
|
|
34767
34769
|
if ("radio" === cellDefine.cellType) return !1;
|
|
@@ -34776,7 +34778,7 @@
|
|
|
34776
34778
|
const {
|
|
34777
34779
|
layoutMap: layoutMap
|
|
34778
34780
|
} = table.internalProps;
|
|
34779
|
-
if ((table.internalProps.autoWrapText || table.internalProps.enableLineBreak) && (table.isAutoRowHeight() || "adaptive" === table.options.heightMode)) return !1;
|
|
34781
|
+
if ((table.internalProps.autoWrapText || table.internalProps.enableLineBreak) && (table.isAutoRowHeight(row) || "adaptive" === table.options.heightMode)) return !1;
|
|
34780
34782
|
const cellDefine = layoutMap.getBody(table.rowHeaderLevelCount, row);
|
|
34781
34783
|
if ("function" == typeof cellDefine.style || "function" == typeof cellDefine.icon || (null === (_a = cellDefine.define) || void 0 === _a ? void 0 : _a.customRender) || (null === (_b = cellDefine.define) || void 0 === _b ? void 0 : _b.customLayout) || "function" == typeof (null === (_c = cellDefine.define) || void 0 === _c ? void 0 : _c.icon)) return !1;
|
|
34782
34784
|
const cellStyle = table._getCellStyle(table.rowHeaderLevelCount, row);
|
|
@@ -34787,7 +34789,7 @@
|
|
|
34787
34789
|
const {
|
|
34788
34790
|
layoutMap: layoutMap
|
|
34789
34791
|
} = table.internalProps;
|
|
34790
|
-
if (table.internalProps.autoWrapText && (table.isAutoRowHeight() || "adaptive" === table.options.heightMode)) return !1;
|
|
34792
|
+
if (table.internalProps.autoWrapText && (table.isAutoRowHeight(row) || "adaptive" === table.options.heightMode)) return !1;
|
|
34791
34793
|
const headerDefine = layoutMap.getHeader(table.rowHeaderLevelCount, row);
|
|
34792
34794
|
if ("function" == typeof headerDefine.style || "function" == typeof headerDefine.icons || (null === (_a = headerDefine.define) || void 0 === _a ? void 0 : _a.headerCustomRender) || (null === (_b = headerDefine.define) || void 0 === _b ? void 0 : _b.headerCustomLayout) || "function" == typeof (null === (_c = headerDefine.define) || void 0 === _c ? void 0 : _c.icon)) return !1;
|
|
34793
34795
|
const headerStyle = table._getCellStyle(table.rowHeaderLevelCount, row);
|
|
@@ -34818,7 +34820,8 @@
|
|
|
34818
34820
|
rect: getCellRect$1(col, row, table),
|
|
34819
34821
|
table: table,
|
|
34820
34822
|
originCol: col,
|
|
34821
|
-
originRow: row
|
|
34823
|
+
originRow: row,
|
|
34824
|
+
forComputation: !0
|
|
34822
34825
|
};
|
|
34823
34826
|
if ("react-custom-layout" === customLayout && (customLayout = (null === (_d = table.reactCustomLayout) || void 0 === _d ? void 0 : _d.getCustomLayoutFunc(col, row)) || emptyCustomLayout), isFunction$5(customLayout)) {
|
|
34824
34827
|
const customLayoutObj = customLayout(arg);
|
|
@@ -36452,7 +36455,7 @@
|
|
|
36452
36455
|
}
|
|
36453
36456
|
|
|
36454
36457
|
const CHART_NUMBER_TYPE = genNumberType();
|
|
36455
|
-
class Chart extends
|
|
36458
|
+
class Chart extends Rect$1 {
|
|
36456
36459
|
constructor(isShareChartSpec, params) {
|
|
36457
36460
|
if (super(params), this.type = "chart", this.numberType = CHART_NUMBER_TYPE, this.isShareChartSpec = isShareChartSpec, params.chartInstance) this.chartInstance = params.chartInstance;else {
|
|
36458
36461
|
const chartInstance = this.chartInstance = new params.ClassType(params.spec, merge$1({}, this.attribute.tableChartOption, {
|
|
@@ -36747,7 +36750,7 @@
|
|
|
36747
36750
|
}), stage.renderTo(window), window;
|
|
36748
36751
|
}
|
|
36749
36752
|
|
|
36750
|
-
var __decorate$
|
|
36753
|
+
var __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
36751
36754
|
var d,
|
|
36752
36755
|
c = arguments.length,
|
|
36753
36756
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -36829,9 +36832,9 @@
|
|
|
36829
36832
|
this._draw(chart, {}, !1, drawContext, params);
|
|
36830
36833
|
}
|
|
36831
36834
|
};
|
|
36832
|
-
DefaultCanvasChartRender = __decorate$
|
|
36835
|
+
DefaultCanvasChartRender = __decorate$6([injectable()], DefaultCanvasChartRender);
|
|
36833
36836
|
|
|
36834
|
-
var __decorate$
|
|
36837
|
+
var __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
36835
36838
|
var d,
|
|
36836
36839
|
c = arguments.length,
|
|
36837
36840
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -36855,7 +36858,7 @@
|
|
|
36855
36858
|
}
|
|
36856
36859
|
}
|
|
36857
36860
|
};
|
|
36858
|
-
BeforeImageRenderContribution = __decorate$
|
|
36861
|
+
BeforeImageRenderContribution = __decorate$5([injectable()], BeforeImageRenderContribution);
|
|
36859
36862
|
let AfterImageRenderContribution = class {
|
|
36860
36863
|
constructor() {
|
|
36861
36864
|
this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
@@ -36867,7 +36870,7 @@
|
|
|
36867
36870
|
"circle" === shape && context.restore();
|
|
36868
36871
|
}
|
|
36869
36872
|
};
|
|
36870
|
-
AfterImageRenderContribution = __decorate$
|
|
36873
|
+
AfterImageRenderContribution = __decorate$5([injectable()], AfterImageRenderContribution);
|
|
36871
36874
|
let BeforeGifImageRenderContribution = class {
|
|
36872
36875
|
constructor() {
|
|
36873
36876
|
this.time = BaseRenderContributionTime.beforeFillStroke, this.useStyle = !0, this.order = 0;
|
|
@@ -36879,7 +36882,7 @@
|
|
|
36879
36882
|
isGif && image.playing && (image.attribute.opacity = 0);
|
|
36880
36883
|
}
|
|
36881
36884
|
};
|
|
36882
|
-
BeforeGifImageRenderContribution = __decorate$
|
|
36885
|
+
BeforeGifImageRenderContribution = __decorate$5([injectable()], BeforeGifImageRenderContribution);
|
|
36883
36886
|
let AfterGifImageRenderContribution = class {
|
|
36884
36887
|
constructor() {
|
|
36885
36888
|
this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
@@ -36891,7 +36894,7 @@
|
|
|
36891
36894
|
isGif && image.playing && (image.attribute.opacity = 1, context.globalAlpha = image.attribute.opacity, image.renderFrame(context, x, y));
|
|
36892
36895
|
}
|
|
36893
36896
|
};
|
|
36894
|
-
AfterGifImageRenderContribution = __decorate$
|
|
36897
|
+
AfterGifImageRenderContribution = __decorate$5([injectable()], AfterGifImageRenderContribution);
|
|
36895
36898
|
|
|
36896
36899
|
function getCellHoverColor(cellGroup, table) {
|
|
36897
36900
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
@@ -37026,7 +37029,7 @@
|
|
|
37026
37029
|
return !1;
|
|
37027
37030
|
}
|
|
37028
37031
|
|
|
37029
|
-
var __decorate$
|
|
37032
|
+
var __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
37030
37033
|
var d,
|
|
37031
37034
|
c = arguments.length,
|
|
37032
37035
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -37046,7 +37049,7 @@
|
|
|
37046
37049
|
stroke && (Array.isArray(strokeArrayWidth) || Array.isArray(strokeArrayColor)) && (doFillOrStroke.doStroke = !1);
|
|
37047
37050
|
}
|
|
37048
37051
|
};
|
|
37049
|
-
SplitGroupBeforeRenderContribution = __decorate$
|
|
37052
|
+
SplitGroupBeforeRenderContribution = __decorate$4([injectable()], SplitGroupBeforeRenderContribution);
|
|
37050
37053
|
let SplitGroupAfterRenderContribution = class {
|
|
37051
37054
|
constructor() {
|
|
37052
37055
|
this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
@@ -37092,7 +37095,7 @@
|
|
|
37092
37095
|
}
|
|
37093
37096
|
}
|
|
37094
37097
|
};
|
|
37095
|
-
SplitGroupAfterRenderContribution = __decorate$
|
|
37098
|
+
SplitGroupAfterRenderContribution = __decorate$4([injectable()], SplitGroupAfterRenderContribution);
|
|
37096
37099
|
function getWidthInfo(widthArray) {
|
|
37097
37100
|
if (!Array.isArray(widthArray)) return {
|
|
37098
37101
|
isSplitDraw: !1,
|
|
@@ -37166,7 +37169,7 @@
|
|
|
37166
37169
|
stroke && Array.isArray(lineDash) && lineDash.length && (null === (_a = lineDash[0]) || void 0 === _a ? void 0 : _a.length) && !Array.isArray(strokeArrayColor) && !Array.isArray(strokeArrayWidth) && (doFillOrStroke.doStroke = !1);
|
|
37167
37170
|
}
|
|
37168
37171
|
};
|
|
37169
|
-
DashGroupBeforeRenderContribution = __decorate$
|
|
37172
|
+
DashGroupBeforeRenderContribution = __decorate$4([injectable()], DashGroupBeforeRenderContribution);
|
|
37170
37173
|
let DashGroupAfterRenderContribution = class {
|
|
37171
37174
|
constructor() {
|
|
37172
37175
|
this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
@@ -37208,7 +37211,7 @@
|
|
|
37208
37211
|
context.setStrokeStyle(group, group.attribute, x, y, groupAttribute), context.beginPath(), context.moveTo(x, y), context.lineTo(x + widthForStroke, y), context.lineDashOffset = context.currentMatrix.e / context.currentMatrix.a, context.setLineDash(null !== (_c = splitLineDash[0]) && void 0 !== _c ? _c : []), context.stroke(), context.beginPath(), context.moveTo(x + widthForStroke, y), context.lineTo(x + widthForStroke, y + heightForStroke), context.lineDashOffset = context.currentMatrix.f / context.currentMatrix.d, context.setLineDash(null !== (_d = splitLineDash[1]) && void 0 !== _d ? _d : []), context.stroke(), context.beginPath(), context.moveTo(x, y + heightForStroke), context.lineTo(x + widthForStroke, y + heightForStroke), context.lineDashOffset = context.currentMatrix.e / context.currentMatrix.a, context.setLineDash(null !== (_e = splitLineDash[2]) && void 0 !== _e ? _e : []), context.stroke(), context.beginPath(), context.moveTo(x, y), context.lineTo(x, y + heightForStroke), context.lineDashOffset = context.currentMatrix.f / context.currentMatrix.d, context.setLineDash(null !== (_f = splitLineDash[3]) && void 0 !== _f ? _f : []), context.stroke(), context.lineDashOffset = 0, context.setLineDash([]);
|
|
37209
37212
|
}
|
|
37210
37213
|
};
|
|
37211
|
-
DashGroupAfterRenderContribution = __decorate$
|
|
37214
|
+
DashGroupAfterRenderContribution = __decorate$4([injectable()], DashGroupAfterRenderContribution);
|
|
37212
37215
|
let AdjustPosGroupBeforeRenderContribution = class {
|
|
37213
37216
|
constructor() {
|
|
37214
37217
|
this.time = BaseRenderContributionTime.beforeFillStroke, this.useStyle = !0, this.order = 0;
|
|
@@ -37225,7 +37228,7 @@
|
|
|
37225
37228
|
!0 !== notAdjustPos && stroke && Array.isArray(lineDash) && !lineDash.length && !Array.isArray(strokeArrayColor) && !Array.isArray(strokeArrayWidth) && 1 & lineWidth && (doFillOrStroke.doStroke = !1);
|
|
37226
37229
|
}
|
|
37227
37230
|
};
|
|
37228
|
-
AdjustPosGroupBeforeRenderContribution = __decorate$
|
|
37231
|
+
AdjustPosGroupBeforeRenderContribution = __decorate$4([injectable()], AdjustPosGroupBeforeRenderContribution);
|
|
37229
37232
|
let AdjustPosGroupAfterRenderContribution = class {
|
|
37230
37233
|
constructor() {
|
|
37231
37234
|
this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
@@ -37265,7 +37268,7 @@
|
|
|
37265
37268
|
}
|
|
37266
37269
|
}
|
|
37267
37270
|
};
|
|
37268
|
-
AdjustPosGroupAfterRenderContribution = __decorate$
|
|
37271
|
+
AdjustPosGroupAfterRenderContribution = __decorate$4([injectable()], AdjustPosGroupAfterRenderContribution);
|
|
37269
37272
|
let AdjustColorGroupBeforeRenderContribution = class {
|
|
37270
37273
|
constructor() {
|
|
37271
37274
|
this.time = BaseRenderContributionTime.beforeFillStroke, this.useStyle = !0, this.order = 0;
|
|
@@ -37283,7 +37286,7 @@
|
|
|
37283
37286
|
}
|
|
37284
37287
|
}
|
|
37285
37288
|
};
|
|
37286
|
-
AdjustColorGroupBeforeRenderContribution = __decorate$
|
|
37289
|
+
AdjustColorGroupBeforeRenderContribution = __decorate$4([injectable()], AdjustColorGroupBeforeRenderContribution);
|
|
37287
37290
|
let AdjustColorGroupAfterRenderContribution = class {
|
|
37288
37291
|
constructor() {
|
|
37289
37292
|
this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
@@ -37295,7 +37298,7 @@
|
|
|
37295
37298
|
}
|
|
37296
37299
|
}
|
|
37297
37300
|
};
|
|
37298
|
-
AdjustColorGroupAfterRenderContribution = __decorate$
|
|
37301
|
+
AdjustColorGroupAfterRenderContribution = __decorate$4([injectable()], AdjustColorGroupAfterRenderContribution);
|
|
37299
37302
|
let ClipBodyGroupBeforeRenderContribution = class {
|
|
37300
37303
|
constructor() {
|
|
37301
37304
|
this.time = BaseRenderContributionTime.beforeFillStroke, this.useStyle = !0, this.order = 0;
|
|
@@ -37324,7 +37327,7 @@
|
|
|
37324
37327
|
}
|
|
37325
37328
|
}
|
|
37326
37329
|
};
|
|
37327
|
-
ClipBodyGroupBeforeRenderContribution = __decorate$
|
|
37330
|
+
ClipBodyGroupBeforeRenderContribution = __decorate$4([injectable()], ClipBodyGroupBeforeRenderContribution);
|
|
37328
37331
|
const precision = Math.pow(2, 24);
|
|
37329
37332
|
function drawClipRect(context, x, y, width, height) {
|
|
37330
37333
|
context.beginPath();
|
|
@@ -37352,7 +37355,7 @@
|
|
|
37352
37355
|
return 1 === lineDash.length ? [lineDash[0], lineDash[0], lineDash[0], lineDash[0]] : 2 === lineDash.length ? [lineDash[0], lineDash[1], lineDash[0], lineDash[1]] : lineDash;
|
|
37353
37356
|
}
|
|
37354
37357
|
|
|
37355
|
-
var __decorate$
|
|
37358
|
+
var __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
37356
37359
|
var d,
|
|
37357
37360
|
c = arguments.length,
|
|
37358
37361
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -37372,7 +37375,7 @@
|
|
|
37372
37375
|
stroke && (Array.isArray(stroke) || Array.isArray(strokeArrayWidth) || Array.isArray(strokeArrayColor)) && (doFillOrStroke.doStroke = !1);
|
|
37373
37376
|
}
|
|
37374
37377
|
};
|
|
37375
|
-
SplitRectBeforeRenderContribution = __decorate$
|
|
37378
|
+
SplitRectBeforeRenderContribution = __decorate$3([injectable()], SplitRectBeforeRenderContribution);
|
|
37376
37379
|
let SplitRectAfterRenderContribution = class {
|
|
37377
37380
|
constructor() {
|
|
37378
37381
|
this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
@@ -37397,7 +37400,7 @@
|
|
|
37397
37400
|
}
|
|
37398
37401
|
}
|
|
37399
37402
|
};
|
|
37400
|
-
SplitRectAfterRenderContribution = __decorate$
|
|
37403
|
+
SplitRectAfterRenderContribution = __decorate$3([injectable()], SplitRectAfterRenderContribution);
|
|
37401
37404
|
function renderStrokeWithCornerRadius(i, x1, y1, x2, y2, rect, context, x, y, rectAttribute, stroke, strokeArrayWidth, strokeArrayColor, width, height) {
|
|
37402
37405
|
var _a, _b, _c, _d;
|
|
37403
37406
|
const group = rect,
|
|
@@ -37406,12 +37409,12 @@
|
|
|
37406
37409
|
isWidthNumber = !Array.isArray(strokeArrayWidth),
|
|
37407
37410
|
isStrokeTrue = !Array.isArray(stroke),
|
|
37408
37411
|
isSplitDraw = Array.isArray(strokeArrayColor) || widthInfo.isSplitDraw;
|
|
37409
|
-
context.setStrokeStyle(rect, rect.attribute, x, y, rectAttribute);
|
|
37412
|
+
context.stroke(), context.setStrokeStyle(rect, rect.attribute, x, y, rectAttribute);
|
|
37410
37413
|
const {
|
|
37411
37414
|
lineDash = groupAttribute.lineDash
|
|
37412
37415
|
} = group.attribute;
|
|
37413
37416
|
let isDash = !1;
|
|
37414
|
-
lineDash.length && lineDash.some(dash => Array.isArray(dash)) && (isDash = !0), context.moveTo(x, y);
|
|
37417
|
+
lineDash.length && lineDash.some(dash => Array.isArray(dash)) && (isDash = !0), context.beginPath(), context.moveTo(x, y);
|
|
37415
37418
|
const strokeTop = (isStrokeTrue || stroke[0]) && (isWidthNumber || strokeArrayWidth[0]),
|
|
37416
37419
|
strokeRight = (isStrokeTrue || stroke[1]) && (isWidthNumber || strokeArrayWidth[1]),
|
|
37417
37420
|
strokeBottom = (isStrokeTrue || stroke[2]) && (isWidthNumber || strokeArrayWidth[2]),
|
|
@@ -37432,10 +37435,10 @@
|
|
|
37432
37435
|
isWidthNumber ? widthInfo.width : strokeArrayWidth[3], isWidthNumber ? widthInfo.width : strokeArrayWidth[3];
|
|
37433
37436
|
context.moveTo(x1, y1), context.lineTo(x2, y2), (isSplitDraw || isDash) && (strokeArrayColor && strokeArrayColor[3] ? context.strokeStyle = strokeArrayColor[3] : strokeArrayColor && !strokeArrayColor[3] && (context.strokeStyle = "transparent"), isWidthNumber || (context.lineWidth = strokeArrayWidth[3]), context.lineDashOffset = context.currentMatrix.f / context.currentMatrix.d, isDash && context.setLineDash(null !== (_d = lineDash[3]) && void 0 !== _d ? _d : []), context.stroke(), context.beginPath(), context.moveTo(x, y));
|
|
37434
37437
|
} else 3 === i && context.moveTo(x, y);
|
|
37435
|
-
isSplitDraw || isDash || (!isWidthNumber && widthInfo.width && (context.lineWidth = widthInfo.width), context.stroke()), context.lineDashOffset = 0, context.setLineDash([]), context.
|
|
37438
|
+
context.closePath(), isSplitDraw || isDash || (!isWidthNumber && widthInfo.width && (context.lineWidth = widthInfo.width), context.stroke()), context.lineDashOffset = 0, context.setLineDash([]), context.beginPath();
|
|
37436
37439
|
}
|
|
37437
37440
|
|
|
37438
|
-
var __decorate$
|
|
37441
|
+
var __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
37439
37442
|
var d,
|
|
37440
37443
|
c = arguments.length,
|
|
37441
37444
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -37457,7 +37460,7 @@
|
|
|
37457
37460
|
return !1;
|
|
37458
37461
|
}
|
|
37459
37462
|
};
|
|
37460
|
-
VTableDrawItemInterceptorContribution = __decorate$
|
|
37463
|
+
VTableDrawItemInterceptorContribution = __decorate$2([injectable()], VTableDrawItemInterceptorContribution);
|
|
37461
37464
|
class ImageDrawItemInterceptorContribution {
|
|
37462
37465
|
constructor() {
|
|
37463
37466
|
this.order = 1;
|
|
@@ -37504,7 +37507,7 @@
|
|
|
37504
37507
|
}
|
|
37505
37508
|
}
|
|
37506
37509
|
|
|
37507
|
-
var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
37510
|
+
var __decorate$1 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
37508
37511
|
var d,
|
|
37509
37512
|
c = arguments.length,
|
|
37510
37513
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -37589,10 +37592,42 @@
|
|
|
37589
37592
|
}
|
|
37590
37593
|
}
|
|
37591
37594
|
};
|
|
37592
|
-
SuffixTextBeforeRenderContribution = __decorate([injectable()], SuffixTextBeforeRenderContribution);
|
|
37595
|
+
SuffixTextBeforeRenderContribution = __decorate$1([injectable()], SuffixTextBeforeRenderContribution);
|
|
37596
|
+
|
|
37597
|
+
var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
37598
|
+
var d,
|
|
37599
|
+
c = arguments.length,
|
|
37600
|
+
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
37601
|
+
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);
|
|
37602
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
37603
|
+
};
|
|
37604
|
+
let VChartPicker = class {
|
|
37605
|
+
constructor() {
|
|
37606
|
+
this.type = "chart", this.numberType = CHART_NUMBER_TYPE;
|
|
37607
|
+
}
|
|
37608
|
+
contains(chart, point, params) {
|
|
37609
|
+
var _a;
|
|
37610
|
+
const vChart = chart.activeChartInstance;
|
|
37611
|
+
if (!vChart) return !1;
|
|
37612
|
+
const matrix = chart.parent.globalTransMatrix.clone(),
|
|
37613
|
+
stageMatrix = chart.stage.window.getViewBoxTransform();
|
|
37614
|
+
matrix.multiply(stageMatrix.a, stageMatrix.b, stageMatrix.c, stageMatrix.d, stageMatrix.e, stageMatrix.f);
|
|
37615
|
+
const nextP = {
|
|
37616
|
+
x: 0,
|
|
37617
|
+
y: 0
|
|
37618
|
+
};
|
|
37619
|
+
matrix.getInverse().transformPoint(point, nextP);
|
|
37620
|
+
const vchartStage = vChart.getStage();
|
|
37621
|
+
null === (_a = vchartStage.dirtyBounds) || void 0 === _a || _a.clear();
|
|
37622
|
+
vchartStage.window.getViewBoxTransform().transformPoint(nextP, nextP);
|
|
37623
|
+
const pick = vchartStage.pick(nextP.x, nextP.y);
|
|
37624
|
+
return (null !== pick.graphic || "root" !== pick.group.name) && pick;
|
|
37625
|
+
}
|
|
37626
|
+
};
|
|
37627
|
+
VChartPicker = __decorate([injectable()], VChartPicker);
|
|
37593
37628
|
|
|
37594
37629
|
var splitModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
37595
|
-
isBound(SplitRectBeforeRenderContribution$1) ? rebind(SplitRectBeforeRenderContribution$1).to(SplitRectBeforeRenderContribution).inSingletonScope() : (bind(SplitRectBeforeRenderContribution).toSelf().inSingletonScope(), bind(RectRenderContribution).toService(SplitRectBeforeRenderContribution)), isBound(SplitRectAfterRenderContribution$1) ? rebind(SplitRectAfterRenderContribution$1).to(SplitRectAfterRenderContribution).inSingletonScope() : (bind(SplitRectAfterRenderContribution).toSelf().inSingletonScope(), bind(RectRenderContribution).toService(SplitRectAfterRenderContribution)), bind(DefaultCanvasChartRender).toSelf().inSingletonScope(), bind(ChartRender).to(DefaultCanvasChartRender), bind(GraphicRender).to(DefaultCanvasChartRender), bind(BeforeImageRenderContribution).toSelf().inSingletonScope(), bind(ImageRenderContribution).toService(BeforeImageRenderContribution), bind(AfterImageRenderContribution).toSelf().inSingletonScope(), bind(ImageRenderContribution).toService(AfterImageRenderContribution), bind(BeforeGifImageRenderContribution).toSelf().inSingletonScope(), bind(ImageRenderContribution).toService(BeforeGifImageRenderContribution), bind(AfterGifImageRenderContribution).toSelf().inSingletonScope(), bind(ImageRenderContribution).toService(AfterGifImageRenderContribution), bind(AdjustColorGroupBeforeRenderContribution).toSelf().inSingletonScope(), bind(GroupRenderContribution).toService(AdjustColorGroupBeforeRenderContribution), bind(AdjustColorGroupAfterRenderContribution).toSelf().inSingletonScope(), bind(GroupRenderContribution).toService(AdjustColorGroupAfterRenderContribution), bind(SplitGroupAfterRenderContribution).toSelf().inSingletonScope(), bind(GroupRenderContribution).toService(SplitGroupAfterRenderContribution), bind(SplitGroupBeforeRenderContribution).toSelf().inSingletonScope(), bind(GroupRenderContribution).toService(SplitGroupBeforeRenderContribution), bind(DashGroupBeforeRenderContribution).toSelf().inSingletonScope(), bind(GroupRenderContribution).toService(DashGroupBeforeRenderContribution), bind(DashGroupAfterRenderContribution).toSelf().inSingletonScope(), bind(GroupRenderContribution).toService(DashGroupAfterRenderContribution), bind(AdjustPosGroupBeforeRenderContribution).toSelf().inSingletonScope(), bind(GroupRenderContribution).toService(AdjustPosGroupBeforeRenderContribution), bind(AdjustPosGroupAfterRenderContribution).toSelf().inSingletonScope(), bind(GroupRenderContribution).toService(AdjustPosGroupAfterRenderContribution), bind(ClipBodyGroupBeforeRenderContribution).toSelf().inSingletonScope(), bind(GroupRenderContribution).toService(ClipBodyGroupBeforeRenderContribution), bind(VTableDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(VTableDrawItemInterceptorContribution), bind(SuffixTextBeforeRenderContribution).toSelf().inSingletonScope(), bind(TextRenderContribution).toService(SuffixTextBeforeRenderContribution);
|
|
37630
|
+
isBound(SplitRectBeforeRenderContribution$1) ? rebind(SplitRectBeforeRenderContribution$1).to(SplitRectBeforeRenderContribution).inSingletonScope() : (bind(SplitRectBeforeRenderContribution).toSelf().inSingletonScope(), bind(RectRenderContribution).toService(SplitRectBeforeRenderContribution)), isBound(SplitRectAfterRenderContribution$1) ? rebind(SplitRectAfterRenderContribution$1).to(SplitRectAfterRenderContribution).inSingletonScope() : (bind(SplitRectAfterRenderContribution).toSelf().inSingletonScope(), bind(RectRenderContribution).toService(SplitRectAfterRenderContribution)), bind(DefaultCanvasChartRender).toSelf().inSingletonScope(), bind(ChartRender).to(DefaultCanvasChartRender), bind(GraphicRender).to(DefaultCanvasChartRender), bind(VChartPicker).toSelf().inSingletonScope(), bind(CanvasPickerContribution).toService(VChartPicker), bind(BeforeImageRenderContribution).toSelf().inSingletonScope(), bind(ImageRenderContribution).toService(BeforeImageRenderContribution), bind(AfterImageRenderContribution).toSelf().inSingletonScope(), bind(ImageRenderContribution).toService(AfterImageRenderContribution), bind(BeforeGifImageRenderContribution).toSelf().inSingletonScope(), bind(ImageRenderContribution).toService(BeforeGifImageRenderContribution), bind(AfterGifImageRenderContribution).toSelf().inSingletonScope(), bind(ImageRenderContribution).toService(AfterGifImageRenderContribution), bind(AdjustColorGroupBeforeRenderContribution).toSelf().inSingletonScope(), bind(GroupRenderContribution).toService(AdjustColorGroupBeforeRenderContribution), bind(AdjustColorGroupAfterRenderContribution).toSelf().inSingletonScope(), bind(GroupRenderContribution).toService(AdjustColorGroupAfterRenderContribution), bind(SplitGroupAfterRenderContribution).toSelf().inSingletonScope(), bind(GroupRenderContribution).toService(SplitGroupAfterRenderContribution), bind(SplitGroupBeforeRenderContribution).toSelf().inSingletonScope(), bind(GroupRenderContribution).toService(SplitGroupBeforeRenderContribution), bind(DashGroupBeforeRenderContribution).toSelf().inSingletonScope(), bind(GroupRenderContribution).toService(DashGroupBeforeRenderContribution), bind(DashGroupAfterRenderContribution).toSelf().inSingletonScope(), bind(GroupRenderContribution).toService(DashGroupAfterRenderContribution), bind(AdjustPosGroupBeforeRenderContribution).toSelf().inSingletonScope(), bind(GroupRenderContribution).toService(AdjustPosGroupBeforeRenderContribution), bind(AdjustPosGroupAfterRenderContribution).toSelf().inSingletonScope(), bind(GroupRenderContribution).toService(AdjustPosGroupAfterRenderContribution), bind(ClipBodyGroupBeforeRenderContribution).toSelf().inSingletonScope(), bind(GroupRenderContribution).toService(ClipBodyGroupBeforeRenderContribution), bind(VTableDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(VTableDrawItemInterceptorContribution), bind(SuffixTextBeforeRenderContribution).toSelf().inSingletonScope(), bind(TextRenderContribution).toService(SuffixTextBeforeRenderContribution);
|
|
37596
37631
|
});
|
|
37597
37632
|
|
|
37598
37633
|
function computeColsWidth(table, colStart, colEnd, update) {
|
|
@@ -37734,7 +37769,8 @@
|
|
|
37734
37769
|
rect: getCellRect(col, row, table),
|
|
37735
37770
|
table: table,
|
|
37736
37771
|
originCol: col,
|
|
37737
|
-
originRow: row
|
|
37772
|
+
originRow: row,
|
|
37773
|
+
forComputation: !0
|
|
37738
37774
|
};
|
|
37739
37775
|
if ("react-custom-layout" === customLayout && (customLayout = (null === (_d = table.reactCustomLayout) || void 0 === _d ? void 0 : _d.getCustomLayoutFunc(col, row)) || emptyCustomLayout), isFunction$5(customLayout)) {
|
|
37740
37776
|
const customLayoutObj = customLayout(arg);
|
|
@@ -38090,7 +38126,7 @@
|
|
|
38090
38126
|
rightBottomCornerGroup: rightBottomCornerGroup
|
|
38091
38127
|
} = table.scenegraph;
|
|
38092
38128
|
let distCol, distRow, distColForCompute, distRowForCompute;
|
|
38093
|
-
proxy.setParamsForRow(), proxy.setParamsForColumn(), "adaptive" === table.widthMode || table.options.autoWrapText && ("adaptive" === table.heightMode || table.isAutoRowHeight()) ? (distColForCompute = table.colCount - 1, distCol = Math.min(proxy.firstScreenColLimit - 1, table.colCount - 1)) : distCol = Math.min(proxy.firstScreenColLimit - 1, table.colCount - 1), "adaptive" === table.heightMode ? (distRowForCompute = table.rowCount - 1, distRow = Math.min(proxy.firstScreenRowLimit - 1, table.rowCount - 1)) : distRow = Math.min(proxy.firstScreenRowLimit - 1, table.rowCount - 1), 0 === table.internalProps._widthResizedColMap.size && computeColsWidth(table, 0, null != distColForCompute ? distColForCompute : distCol), 0 === table.internalProps._heightResizedRowMap.size && computeRowsHeight(table, 0, "auto" === table.options.canvasHeight ? table.rowCount - 1 : null != distRowForCompute ? distRowForCompute : distRow), distCol < table.colCount - table.rightFrozenColCount && computeColsWidth(table, table.colCount - table.rightFrozenColCount, table.colCount - 1), distRow < table.rowCount - table.bottomFrozenRowCount && computeRowsHeight(table, table.rowCount - table.bottomFrozenRowCount, table.rowCount - 1), table.scenegraph.colHeaderGroup.setAttribute("x", table.getFrozenColsWidth()), table.scenegraph.rowHeaderGroup.setAttribute("y", table.getFrozenRowsHeight()), table.scenegraph.bottomFrozenGroup.setAttribute("x", table.getFrozenColsWidth()), table.scenegraph.rightFrozenGroup.setAttribute("y", table.getFrozenRowsHeight()), table.scenegraph.bodyGroup.setAttributes({
|
|
38129
|
+
proxy.setParamsForRow(), proxy.setParamsForColumn(), "adaptive" === table.widthMode || table.options.autoWrapText && ("adaptive" === table.heightMode || table.isAutoRowHeight(table.columnHeaderLevelCount)) ? (distColForCompute = table.colCount - 1, distCol = Math.min(proxy.firstScreenColLimit - 1, table.colCount - 1)) : distCol = Math.min(proxy.firstScreenColLimit - 1, table.colCount - 1), "adaptive" === table.heightMode ? (distRowForCompute = table.rowCount - 1, distRow = Math.min(proxy.firstScreenRowLimit - 1, table.rowCount - 1)) : distRow = Math.min(proxy.firstScreenRowLimit - 1, table.rowCount - 1), 0 === table.internalProps._widthResizedColMap.size && computeColsWidth(table, 0, null != distColForCompute ? distColForCompute : distCol), 0 === table.internalProps._heightResizedRowMap.size && computeRowsHeight(table, 0, "auto" === table.options.canvasHeight ? table.rowCount - 1 : null != distRowForCompute ? distRowForCompute : distRow), distCol < table.colCount - table.rightFrozenColCount && computeColsWidth(table, table.colCount - table.rightFrozenColCount, table.colCount - 1), distRow < table.rowCount - table.bottomFrozenRowCount && computeRowsHeight(table, table.rowCount - table.bottomFrozenRowCount, table.rowCount - 1), table.scenegraph.colHeaderGroup.setAttribute("x", table.getFrozenColsWidth()), table.scenegraph.rowHeaderGroup.setAttribute("y", table.getFrozenRowsHeight()), table.scenegraph.bottomFrozenGroup.setAttribute("x", table.getFrozenColsWidth()), table.scenegraph.rightFrozenGroup.setAttribute("y", table.getFrozenRowsHeight()), table.scenegraph.bodyGroup.setAttributes({
|
|
38094
38130
|
x: table.getFrozenColsWidth(),
|
|
38095
38131
|
y: table.getFrozenRowsHeight()
|
|
38096
38132
|
}), createColGroup(cornerHeaderGroup, xOrigin, yOrigin, 0, table.frozenColCount - 1, 0, table.frozenRowCount - 1, table.isListTable() ? "columnHeader" : "cornerHeader", table), distCol - table.rightFrozenColCount >= table.frozenColCount && createColGroup(colHeaderGroup, xOrigin, yOrigin, table.frozenColCount, distCol - table.rightFrozenColCount, 0, table.frozenRowCount - 1, "columnHeader", table), table.frozenColCount > 0 && (table.leftRowSeriesNumberCount > 0 && createColGroup(rowHeaderGroup, xOrigin, yOrigin, 0, table.leftRowSeriesNumberCount - 1, table.frozenRowCount, distRow - table.bottomFrozenRowCount, "rowHeader", table), table.frozenColCount > table.leftRowSeriesNumberCount && createColGroup(rowHeaderGroup, xOrigin, yOrigin, table.leftRowSeriesNumberCount, Math.min(table.frozenColCount - 1, table.rowHeaderLevelCount + table.leftRowSeriesNumberCount - 1), table.frozenRowCount, distRow - table.bottomFrozenRowCount, "rowHeader", table), table.frozenColCount > table.rowHeaderLevelCount + table.leftRowSeriesNumberCount && createColGroup(rowHeaderGroup, xOrigin, yOrigin, table.rowHeaderLevelCount + table.leftRowSeriesNumberCount, table.frozenColCount - 1, table.frozenRowCount, distRow - table.bottomFrozenRowCount, "body", table)), table.bottomFrozenRowCount > 0 && (table.frozenColCount > 0 && (table.leftRowSeriesNumberCount > 0 && createColGroup(leftBottomCornerGroup, xOrigin, yOrigin, 0, table.leftRowSeriesNumberCount - 1, table.rowCount - 1 - table.bottomFrozenRowCount + 1, table.rowCount - 1, "rowHeader", table), table.rowHeaderLevelCount > 0 && createColGroup(leftBottomCornerGroup, xOrigin, yOrigin, table.leftRowSeriesNumberCount, table.leftRowSeriesNumberCount + table.rowHeaderLevelCount - 1, table.rowCount - 1 - table.bottomFrozenRowCount + 1, table.rowCount - 1, "rowHeader", table), table.frozenColCount > table.rowHeaderLevelCount + table.leftRowSeriesNumberCount && createColGroup(leftBottomCornerGroup, xOrigin, yOrigin, table.rowHeaderLevelCount + table.leftRowSeriesNumberCount, table.frozenColCount - 1, table.rowCount - 1 - table.bottomFrozenRowCount + 1, table.rowCount - 1, "body", table)), distCol - table.rightFrozenColCount >= table.frozenColCount && createColGroup(bottomFrozenGroup, xOrigin, yOrigin, table.frozenColCount, distCol - table.rightFrozenColCount, table.rowCount - 1 - table.bottomFrozenRowCount + 1, table.rowCount - 1, table.isPivotChart() ? "rowHeader" : "body", table)), table.rightFrozenColCount > 0 && (createColGroup(rightTopCornerGroup, xOrigin, yOrigin, table.colCount - 1 - table.rightFrozenColCount + 1, table.colCount - 1, 0, table.frozenRowCount - 1, "columnHeader", table), createColGroup(rightFrozenGroup, xOrigin, yOrigin, table.colCount - 1 - table.rightFrozenColCount + 1, table.colCount - 1, table.frozenRowCount, distRow - table.bottomFrozenRowCount, table.isPivotChart() ? "rowHeader" : "body", table)), table.bottomFrozenRowCount > 0 && table.rightFrozenColCount > 0 && createColGroup(rightBottomCornerGroup, xOrigin, yOrigin, table.colCount - 1 - table.rightFrozenColCount + 1, table.colCount - 1, table.rowCount - 1 - table.bottomFrozenRowCount + 1, table.rowCount - 1, "body", table), distCol - table.rightFrozenColCount >= table.frozenColCount && createColGroup(bodyGroup, xOrigin, yOrigin, table.frozenColCount, distCol - table.rightFrozenColCount, table.frozenRowCount, distRow - table.bottomFrozenRowCount, "body", table), bodyGroup.firstChild || colHeaderGroup.firstChild || cornerHeaderGroup.firstChild || rowHeaderGroup.firstChild ? (proxy.currentRow = null !== (_d = null !== (_b = null === (_a = bodyGroup.firstChild) || void 0 === _a ? void 0 : _a.rowNumber) && void 0 !== _b ? _b : null === (_c = rowHeaderGroup.firstChild) || void 0 === _c ? void 0 : _c.rowNumber) && void 0 !== _d ? _d : proxy.totalRow, proxy.rowEnd = proxy.currentRow, proxy.rowUpdatePos = proxy.rowEnd + 1, proxy.referenceRow = proxy.rowStart + Math.floor((proxy.rowEnd - proxy.rowStart) / 2), proxy.currentCol = null !== (_m = null !== (_k = null !== (_h = null !== (_f = null === (_e = bodyGroup.lastChild) || void 0 === _e ? void 0 : _e.col) && void 0 !== _f ? _f : null === (_g = colHeaderGroup.lastChild) || void 0 === _g ? void 0 : _g.col) && void 0 !== _h ? _h : null === (_j = rowHeaderGroup.lastChild) || void 0 === _j ? void 0 : _j.col) && void 0 !== _k ? _k : null === (_l = cornerHeaderGroup.lastChild) || void 0 === _l ? void 0 : _l.col) && void 0 !== _m ? _m : proxy.totalCol, proxy.colEnd = proxy.currentCol, proxy.colUpdatePos = proxy.colEnd + 1, proxy.referenceCol = proxy.colStart + Math.floor((proxy.colEnd - proxy.colStart) / 2), proxy.progress()) : (proxy.currentRow = proxy.totalRow, proxy.rowEnd = proxy.currentRow, proxy.rowUpdatePos = proxy.rowEnd + 1, proxy.referenceRow = proxy.rowStart + Math.floor((proxy.rowEnd - proxy.rowStart) / 2), proxy.currentCol = proxy.totalCol, proxy.colEnd = proxy.currentCol, proxy.colUpdatePos = proxy.colEnd + 1, proxy.referenceCol = proxy.colStart + Math.floor((proxy.colEnd - proxy.colStart) / 2));
|
|
@@ -38374,20 +38410,20 @@
|
|
|
38374
38410
|
distStartRow = "up" === direction ? proxy.rowEnd + 1 : proxy.rowStart - count,
|
|
38375
38411
|
distEndRow = "up" === direction ? proxy.rowEnd + count : proxy.rowStart - 1;
|
|
38376
38412
|
let syncTopRow, syncBottomRow;
|
|
38377
|
-
if (proxy.table.isAutoRowHeight()) syncTopRow = distStartRow, syncBottomRow = distEndRow;else {
|
|
38413
|
+
if (proxy.table.isAutoRowHeight(startRow)) syncTopRow = distStartRow, syncBottomRow = distEndRow;else {
|
|
38378
38414
|
syncTopRow = Math.max(proxy.bodyTopRow, screenTopRow - 1 * proxy.screenRowCount), syncBottomRow = Math.min(proxy.bodyBottomRow, screenTopRow + 2 * proxy.screenRowCount, proxy.table.rowCount - 1);
|
|
38379
38415
|
}
|
|
38380
38416
|
computeRowsHeight(proxy.table, syncTopRow, syncBottomRow, !1), updatePartRowPosition(startRow, endRow, direction, proxy), proxy.rowStart = "up" === direction ? proxy.rowStart + count : proxy.rowStart - count, proxy.rowEnd = "up" === direction ? proxy.rowEnd + count : proxy.rowEnd - count;
|
|
38381
38417
|
const sync = updateRowContent(syncTopRow, syncBottomRow, proxy, !0);
|
|
38382
|
-
proxy.table.isAutoRowHeight() && (updateAutoRow(proxy.bodyLeftCol, proxy.bodyRightCol, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up", !0), updateAutoRow(0, proxy.table.frozenColCount - 1, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up", !0), updateAutoRow(proxy.table.colCount - proxy.table.rightFrozenColCount, proxy.table.colCount - 1, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up", !0)), proxy.currentRow = "up" === direction ? proxy.currentRow + count : proxy.currentRow - count, proxy.totalRow = Math.max(0, Math.min(proxy.bodyBottomRow, "up" === direction ? proxy.totalRow + count : proxy.totalRow - count, proxy.table.rowCount - 1)), proxy.referenceRow = proxy.rowStart + Math.floor((proxy.rowEnd - proxy.rowStart) / 2), proxy.table.isAutoRowHeight() && sync ? proxy.rowUpdatePos = Math.min(proxy.rowUpdatePos, proxy.rowEnd + 1) : proxy.rowUpdatePos = Math.min(proxy.rowUpdatePos, distStartRow), proxy.rowUpdateDirection = direction, proxy.table.scenegraph.updateNextFrame(), yield proxy.progress();
|
|
38418
|
+
proxy.table.isAutoRowHeight(startRow) && (updateAutoRow(proxy.bodyLeftCol, proxy.bodyRightCol, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up", !0), updateAutoRow(0, proxy.table.frozenColCount - 1, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up", !0), updateAutoRow(proxy.table.colCount - proxy.table.rightFrozenColCount, proxy.table.colCount - 1, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up", !0)), proxy.currentRow = "up" === direction ? proxy.currentRow + count : proxy.currentRow - count, proxy.totalRow = Math.max(0, Math.min(proxy.bodyBottomRow, "up" === direction ? proxy.totalRow + count : proxy.totalRow - count, proxy.table.rowCount - 1)), proxy.referenceRow = proxy.rowStart + Math.floor((proxy.rowEnd - proxy.rowStart) / 2), proxy.table.isAutoRowHeight(startRow) && sync ? proxy.rowUpdatePos = Math.min(proxy.rowUpdatePos, proxy.rowEnd + 1) : proxy.rowUpdatePos = Math.min(proxy.rowUpdatePos, distStartRow), proxy.rowUpdateDirection = direction, proxy.table.scenegraph.updateNextFrame(), yield proxy.progress();
|
|
38383
38419
|
} else {
|
|
38384
38420
|
const distStartRow = "up" === direction ? proxy.rowStart + count : proxy.rowStart - count,
|
|
38385
38421
|
distEndRow = Math.min(proxy.table.rowCount - 1, "up" === direction ? proxy.rowEnd + count : proxy.rowEnd - count),
|
|
38386
38422
|
distStartRowY = proxy.table.getRowsHeight(proxy.bodyTopRow, distStartRow - 1);
|
|
38387
38423
|
let syncTopRow, syncBottomRow;
|
|
38388
|
-
proxy.table.isAutoRowHeight() ? (syncTopRow = distStartRow, syncBottomRow = distEndRow) : (syncTopRow = Math.max(proxy.bodyTopRow, screenTopRow - 1 * proxy.screenRowCount), syncBottomRow = Math.min(proxy.bodyBottomRow, screenTopRow + 2 * proxy.screenRowCount, proxy.table.rowCount - 1)), computeRowsHeight(proxy.table, syncTopRow, syncBottomRow, !1), updateAllRowPosition(distStartRowY, count, direction, proxy), proxy.rowStart = distStartRow, proxy.rowEnd = distEndRow;
|
|
38424
|
+
proxy.table.isAutoRowHeight(distStartRow) ? (syncTopRow = distStartRow, syncBottomRow = distEndRow) : (syncTopRow = Math.max(proxy.bodyTopRow, screenTopRow - 1 * proxy.screenRowCount), syncBottomRow = Math.min(proxy.bodyBottomRow, screenTopRow + 2 * proxy.screenRowCount, proxy.table.rowCount - 1)), computeRowsHeight(proxy.table, syncTopRow, syncBottomRow, !1), updateAllRowPosition(distStartRowY, count, direction, proxy), proxy.rowStart = distStartRow, proxy.rowEnd = distEndRow;
|
|
38389
38425
|
const sync = updateRowContent(syncTopRow, syncBottomRow, proxy, !0);
|
|
38390
|
-
proxy.table.isAutoRowHeight() && (updateAutoRow(proxy.bodyLeftCol, proxy.bodyRightCol, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up"), updateAutoRow(0, proxy.table.frozenColCount - 1, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up"), updateAutoRow(proxy.table.colCount - proxy.table.rightFrozenColCount, proxy.table.colCount - 1, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up")), proxy.currentRow = "up" === direction ? proxy.currentRow + count : proxy.currentRow - count, proxy.totalRow = Math.max(0, Math.min(proxy.bodyBottomRow, "up" === direction ? proxy.totalRow + count : proxy.totalRow - count, proxy.table.rowCount - 1)), proxy.referenceRow = proxy.rowStart + Math.floor((proxy.rowEnd - proxy.rowStart) / 2), proxy.table.isAutoRowHeight() && sync ? proxy.rowUpdatePos = proxy.rowEnd + 1 : proxy.rowUpdatePos = proxy.rowStart, proxy.rowUpdateDirection = distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up", proxy.table.scenegraph.updateNextFrame(), yield proxy.progress();
|
|
38426
|
+
proxy.table.isAutoRowHeight(distStartRow) && (updateAutoRow(proxy.bodyLeftCol, proxy.bodyRightCol, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up"), updateAutoRow(0, proxy.table.frozenColCount - 1, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up"), updateAutoRow(proxy.table.colCount - proxy.table.rightFrozenColCount, proxy.table.colCount - 1, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up")), proxy.currentRow = "up" === direction ? proxy.currentRow + count : proxy.currentRow - count, proxy.totalRow = Math.max(0, Math.min(proxy.bodyBottomRow, "up" === direction ? proxy.totalRow + count : proxy.totalRow - count, proxy.table.rowCount - 1)), proxy.referenceRow = proxy.rowStart + Math.floor((proxy.rowEnd - proxy.rowStart) / 2), proxy.table.isAutoRowHeight(distStartRow) && sync ? proxy.rowUpdatePos = proxy.rowEnd + 1 : proxy.rowUpdatePos = proxy.rowStart, proxy.rowUpdateDirection = distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up", proxy.table.scenegraph.updateNextFrame(), yield proxy.progress();
|
|
38391
38427
|
}
|
|
38392
38428
|
});
|
|
38393
38429
|
}
|
|
@@ -38501,12 +38537,12 @@
|
|
|
38501
38537
|
"group" === colGroup.type && (colGroup.needUpdate = !0, null == colGroup || colGroup.forEachChildren(cellGroup => {
|
|
38502
38538
|
cellGroup.needUpdate = !0;
|
|
38503
38539
|
}));
|
|
38504
|
-
}), proxy.table.isAutoRowHeight() ? (syncTopRow = proxy.rowStart, syncBottomRow = proxy.rowEnd) : (syncTopRow = Math.max(proxy.bodyTopRow, proxy.screenTopRow - 1 * proxy.screenRowCount), syncBottomRow = Math.min(proxy.bodyBottomRow, proxy.screenTopRow + 2 * proxy.screenRowCount, proxy.table.rowCount - 1));
|
|
38540
|
+
}), proxy.table.isAutoRowHeight(proxy.rowStart) ? (syncTopRow = proxy.rowStart, syncBottomRow = proxy.rowEnd) : (syncTopRow = Math.max(proxy.bodyTopRow, proxy.screenTopRow - 1 * proxy.screenRowCount), syncBottomRow = Math.min(proxy.bodyBottomRow, proxy.screenTopRow + 2 * proxy.screenRowCount, proxy.table.rowCount - 1));
|
|
38505
38541
|
const oldBodyHeight = proxy.table.getAllRowsHeight();
|
|
38506
38542
|
computeRowsHeight(proxy.table, syncTopRow, syncBottomRow);
|
|
38507
38543
|
const newBodyHeight = proxy.table.getAllRowsHeight();
|
|
38508
38544
|
oldBodyHeight !== newBodyHeight && proxy.table.scenegraph.updateContainerHeight(proxy.table.frozenRowCount, newBodyHeight - oldBodyHeight);
|
|
38509
|
-
for (let col = 0; null !== (_a =
|
|
38545
|
+
for (let col = 0; col < (null !== (_a = proxy.table.frozenColCount) && void 0 !== _a ? _a : 0); col++) {
|
|
38510
38546
|
const columnGroup = proxy.table.scenegraph.getColGroup(col);
|
|
38511
38547
|
null == columnGroup || columnGroup.setAttribute("chartInstance", void 0);
|
|
38512
38548
|
for (let row = proxy.rowStart; row <= proxy.rowEnd; row++) proxy.table.scenegraph.updateCellContent(col, row);
|
|
@@ -38523,7 +38559,7 @@
|
|
|
38523
38559
|
for (let row = proxy.rowStart; row <= proxy.rowEnd; row++) proxy.table.scenegraph.updateCellContent(col, row);
|
|
38524
38560
|
for (let row = proxy.table.rowCount - proxy.table.bottomFrozenRowCount; row < proxy.table.rowCount; row++) proxy.table.scenegraph.updateCellContent(col, row);
|
|
38525
38561
|
}
|
|
38526
|
-
updateRowContent(syncTopRow, syncBottomRow, proxy), proxy.table.isAutoRowHeight() && updateAutoRow(proxy.bodyLeftCol, proxy.bodyRightCol, syncTopRow, syncBottomRow, proxy.table, proxy.rowEnd > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up"), proxy.rowUpdatePos = proxy.rowStart, proxy.rowUpdateDirection = proxy.rowEnd > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up", proxy.table.scenegraph.updateNextFrame(), proxy.table.isAutoRowHeight() || (yield proxy.progress());
|
|
38562
|
+
updateRowContent(syncTopRow, syncBottomRow, proxy), proxy.table.isAutoRowHeight(syncTopRow) && updateAutoRow(proxy.bodyLeftCol, proxy.bodyRightCol, syncTopRow, syncBottomRow, proxy.table, proxy.rowEnd > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up"), proxy.rowUpdatePos = proxy.rowStart, proxy.rowUpdateDirection = proxy.rowEnd > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? "down" : "up", proxy.table.scenegraph.updateNextFrame(), proxy.table.isAutoRowHeight(proxy.rowStart) || (yield proxy.progress());
|
|
38527
38563
|
});
|
|
38528
38564
|
}
|
|
38529
38565
|
|
|
@@ -38816,7 +38852,7 @@
|
|
|
38816
38852
|
};
|
|
38817
38853
|
class SceneProxy {
|
|
38818
38854
|
constructor(table) {
|
|
38819
|
-
this.isRelease = !1, this.mode = "column", this.rowLimit = 200, this.currentRow = 0, this.rowStart = 0, this.rowEnd = 0, this.referenceRow = 0, this.screenTopRow = 0, this.deltaY = 0, this.deltaHeight = 0, this.colLimit = 100, this.screenLeftCol = 0, this.deltaX = 0, this.deltaWidth = 0, this.cellCache = new Map(), this.table = table, this.table.isPivotChart() ? (this.rowLimit = Math.max(100, Math.ceil(2 * table.tableNoFrameHeight / table.defaultRowHeight)), this.colLimit = Math.max(100, Math.ceil(2 * table.tableNoFrameWidth / table.defaultColWidth))) : this.table.isAutoRowHeight() ? this.rowLimit = Math.max(100, Math.ceil(2 * table.tableNoFrameHeight / table.defaultRowHeight)) : ("autoWidth" === this.table.widthMode || (this.rowLimit = Math.max(200, Math.ceil(2 * table.tableNoFrameHeight / table.defaultRowHeight))), this.colLimit = Math.max(100, Math.ceil(2 * table.tableNoFrameWidth / table.defaultColWidth))), this.table.internalProps.transpose ? this.mode = "row" : this.table.isPivotTable() && (this.mode = "pivot"), this.table.options.maintainedDataCount && (this.rowLimit = this.table.options.maintainedDataCount);
|
|
38855
|
+
this.isRelease = !1, this.mode = "column", this.rowLimit = 200, this.currentRow = 0, this.rowStart = 0, this.rowEnd = 0, this.referenceRow = 0, this.screenTopRow = 0, this.deltaY = 0, this.deltaHeight = 0, this.colLimit = 100, this.screenLeftCol = 0, this.deltaX = 0, this.deltaWidth = 0, this.cellCache = new Map(), this.table = table, this.table.isPivotChart() ? (this.rowLimit = Math.max(100, Math.ceil(2 * table.tableNoFrameHeight / table.defaultRowHeight)), this.colLimit = Math.max(100, Math.ceil(2 * table.tableNoFrameWidth / table.defaultColWidth))) : this.table.isAutoRowHeight(table.columnHeaderLevelCount) ? this.rowLimit = Math.max(100, Math.ceil(2 * table.tableNoFrameHeight / table.defaultRowHeight)) : ("autoWidth" === this.table.widthMode || (this.rowLimit = Math.max(200, Math.ceil(2 * table.tableNoFrameHeight / table.defaultRowHeight))), this.colLimit = Math.max(100, Math.ceil(2 * table.tableNoFrameWidth / table.defaultColWidth))), this.table.internalProps.transpose ? this.mode = "row" : this.table.isPivotTable() && (this.mode = "pivot"), this.table.options.maintainedDataCount && (this.rowLimit = this.table.options.maintainedDataCount), this.table.options.maintainedColumnCount && (this.colLimit = this.table.options.maintainedColumnCount);
|
|
38820
38856
|
}
|
|
38821
38857
|
get bodyLeftCol() {
|
|
38822
38858
|
return this.table.frozenColCount;
|
|
@@ -38989,17 +39025,17 @@
|
|
|
38989
39025
|
}
|
|
38990
39026
|
updateCellGroups(count) {
|
|
38991
39027
|
const distRow = Math.min(this.bodyBottomRow, this.rowUpdatePos + count);
|
|
38992
|
-
this.table.isAutoRowHeight() && computeRowsHeight(this.table, this.rowUpdatePos, distRow, !1), updateRowContent(this.rowUpdatePos, distRow, this), this.table.isAutoRowHeight() && (updateAutoRow(this.bodyLeftCol, this.bodyRightCol, this.rowUpdatePos, distRow, this.table, this.rowUpdateDirection, !0), updateAutoRow(0, this.table.frozenColCount - 1, this.rowUpdatePos, distRow, this.table, this.rowUpdateDirection, !0), updateAutoRow(this.table.colCount - this.table.rightFrozenColCount, this.table.colCount - 1, this.rowUpdatePos, distRow, this.table, this.rowUpdateDirection, !0)), this.rowUpdatePos = distRow + 1;
|
|
39028
|
+
this.table.isAutoRowHeight(this.rowUpdatePos) && computeRowsHeight(this.table, this.rowUpdatePos, distRow, !1), updateRowContent(this.rowUpdatePos, distRow, this), this.table.isAutoRowHeight(this.rowUpdatePos) && (updateAutoRow(this.bodyLeftCol, this.bodyRightCol, this.rowUpdatePos, distRow, this.table, this.rowUpdateDirection, !0), updateAutoRow(0, this.table.frozenColCount - 1, this.rowUpdatePos, distRow, this.table, this.rowUpdateDirection, !0), updateAutoRow(this.table.colCount - this.table.rightFrozenColCount, this.table.colCount - 1, this.rowUpdatePos, distRow, this.table, this.rowUpdateDirection, !0)), this.rowUpdatePos = distRow + 1;
|
|
38993
39029
|
}
|
|
38994
39030
|
updateBottomFrozenCellGroups() {
|
|
38995
39031
|
const startRow = this.table.rowCount - this.table.bottomFrozenRowCount,
|
|
38996
39032
|
endRow = this.table.rowCount - 1;
|
|
38997
|
-
this.table.isAutoRowHeight() && computeRowsHeight(this.table, startRow, endRow, !1), updateRowContent(startRow, endRow, this), this.table.isAutoRowHeight() && (updateAutoRow(this.bodyLeftCol, this.bodyRightCol, startRow, endRow, this.table, this.rowUpdateDirection), updateAutoRow(0, this.table.frozenColCount - 1, startRow, endRow, this.table, this.rowUpdateDirection), updateAutoRow(this.table.colCount - this.table.rightFrozenColCount, this.table.colCount - 1, startRow, endRow, this.table, this.rowUpdateDirection));
|
|
39033
|
+
this.table.isAutoRowHeight(startRow) && computeRowsHeight(this.table, startRow, endRow, !1), updateRowContent(startRow, endRow, this), this.table.isAutoRowHeight(startRow) && (updateAutoRow(this.bodyLeftCol, this.bodyRightCol, startRow, endRow, this.table, this.rowUpdateDirection), updateAutoRow(0, this.table.frozenColCount - 1, startRow, endRow, this.table, this.rowUpdateDirection), updateAutoRow(this.table.colCount - this.table.rightFrozenColCount, this.table.colCount - 1, startRow, endRow, this.table, this.rowUpdateDirection));
|
|
38998
39034
|
}
|
|
38999
39035
|
updateRightFrozenCellGroups() {
|
|
39000
39036
|
const startCol = this.table.colCount - this.table.rightFrozenColCount,
|
|
39001
39037
|
endCol = this.table.colCount - 1;
|
|
39002
|
-
"autoWidth" === this.table.widthMode && computeColsWidth(this.table, startCol, endCol, !1), updateColContent(startCol, endCol, this), this.table.isAutoRowHeight() && updateAutoColumn(startCol, endCol, this.table, this.colUpdateDirection);
|
|
39038
|
+
"autoWidth" === this.table.widthMode && computeColsWidth(this.table, startCol, endCol, !1), updateColContent(startCol, endCol, this), this.table.isAutoRowHeight(this.rowStart) && updateAutoColumn(startCol, endCol, this.table, this.colUpdateDirection);
|
|
39003
39039
|
}
|
|
39004
39040
|
updateColCellGroupsAsync() {
|
|
39005
39041
|
return __awaiter$1(this, void 0, void 0, function* () {
|
|
@@ -39323,7 +39359,7 @@
|
|
|
39323
39359
|
}
|
|
39324
39360
|
isExtend && extendSelectRange();
|
|
39325
39361
|
};
|
|
39326
|
-
ifExtendSelectRange && extendSelectRange(), scene.selectingRangeComponents.forEach((selectComp, key) => {
|
|
39362
|
+
ifExtendSelectRange && (extendSelectRange(), selectRange.start.col > selectRange.end.col ? (selectRange.start.col = Math.max(startCol, endCol), selectRange.end.col = Math.min(startCol, endCol)) : (selectRange.start.col = Math.min(startCol, endCol), selectRange.end.col = Math.max(startCol, endCol)), selectRange.start.row > selectRange.end.row ? (selectRange.start.row = Math.max(startRow, endRow), selectRange.end.row = Math.min(startRow, endRow)) : (selectRange.start.row = Math.min(startRow, endRow), selectRange.end.row = Math.max(startRow, endRow))), scene.selectingRangeComponents.forEach((selectComp, key) => {
|
|
39327
39363
|
var _a;
|
|
39328
39364
|
selectComp.rect.delete(), null === (_a = selectComp.fillhandle) || void 0 === _a || _a.delete();
|
|
39329
39365
|
}), scene.selectingRangeComponents = new Map();
|
|
@@ -39413,7 +39449,7 @@
|
|
|
39413
39449
|
}
|
|
39414
39450
|
|
|
39415
39451
|
function createCellSelectBorder(scene, start_Col, start_Row, end_Col, end_Row, selectRangeType, selectId, strokes) {
|
|
39416
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
39452
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
39417
39453
|
let isHasFillHandleRect = !!(null === (_a = scene.table.options.excelOptions) || void 0 === _a ? void 0 : _a.fillHandle);
|
|
39418
39454
|
if ((null === (_b = scene.table.stateManager.select.ranges) || void 0 === _b ? void 0 : _b.length) > 1) isHasFillHandleRect = !1, scene.removeFillHandleFromSelectComponents();else if (1 === (null === (_c = scene.table.stateManager.select.ranges) || void 0 === _c ? void 0 : _c.length)) {
|
|
39419
39455
|
const maxRow = Math.max(scene.table.stateManager.select.ranges[0].start.row, scene.table.stateManager.select.ranges[0].end.row),
|
|
@@ -39439,7 +39475,8 @@
|
|
|
39439
39475
|
y: firstCellBound.y1 - scene.tableGroup.attribute.y,
|
|
39440
39476
|
width: 0,
|
|
39441
39477
|
height: 0,
|
|
39442
|
-
visible: !0
|
|
39478
|
+
visible: !0,
|
|
39479
|
+
cornerRadius: getCornerRadius(selectRangeType, null === (_j = scene.table.theme.frameStyle) || void 0 === _j ? void 0 : _j.cornerRadius, start_Col, start_Row, end_Col, end_Row, scene.table)
|
|
39443
39480
|
});
|
|
39444
39481
|
let fillhandle;
|
|
39445
39482
|
isHasFillHandleRect && (fillhandle = createRect({
|
|
@@ -39457,6 +39494,15 @@
|
|
|
39457
39494
|
role: selectRangeType
|
|
39458
39495
|
}), scene.tableGroup.insertAfter(rect, "body" === selectRangeType ? scene.bodyGroup : "columnHeader" === selectRangeType ? scene.colHeaderGroup : "rowHeader" === selectRangeType ? scene.rowHeaderGroup : "cornerHeader" === selectRangeType ? scene.cornerHeaderGroup : "rightTopCorner" === selectRangeType ? scene.rightTopCornerGroup : "rightFrozen" === selectRangeType ? scene.rightFrozenGroup : "leftBottomCorner" === selectRangeType ? scene.leftBottomCornerGroup : "bottomFrozen" === selectRangeType ? scene.bottomFrozenGroup : scene.rightBottomCornerGroup), isHasFillHandleRect && scene.tableGroup.insertAfter(fillhandle, "body" === selectRangeType ? scene.bodyGroup : "columnHeader" === selectRangeType ? scene.colHeaderGroup : "rowHeader" === selectRangeType ? scene.rowHeaderGroup : "cornerHeader" === selectRangeType ? scene.cornerHeaderGroup : "rightTopCorner" === selectRangeType ? scene.rightTopCornerGroup : "rightFrozen" === selectRangeType ? scene.rightFrozenGroup : "leftBottomCorner" === selectRangeType ? scene.leftBottomCornerGroup : "bottomFrozen" === selectRangeType ? scene.bottomFrozenGroup : scene.rightBottomCornerGroup);
|
|
39459
39496
|
}
|
|
39497
|
+
function getCornerRadius(selectRangeType, cornerRadius, start_Col, start_Row, end_Col, end_Row, table) {
|
|
39498
|
+
if (!cornerRadius) return;
|
|
39499
|
+
const cornerRadiusArray = Array.isArray(cornerRadius) ? cornerRadius : [cornerRadius, cornerRadius, cornerRadius, cornerRadius],
|
|
39500
|
+
tableEndCol = table.colCount - 1,
|
|
39501
|
+
tableEndRow = table.rowCount - 1,
|
|
39502
|
+
result = [0, 0, 0, 0];
|
|
39503
|
+
let changed = !1;
|
|
39504
|
+
return 0 === start_Col && 0 === start_Row ? (result[0] = cornerRadiusArray[0], changed = !0) : end_Col === tableEndCol && end_Row === tableEndRow ? (result[2] = cornerRadiusArray[2], changed = !0) : 0 === start_Col && end_Row === tableEndRow ? (result[3] = cornerRadiusArray[3], changed = !0) : end_Col === tableEndCol && 0 === start_Row && (result[1] = cornerRadiusArray[1], changed = !0), changed ? result : void 0;
|
|
39505
|
+
}
|
|
39460
39506
|
|
|
39461
39507
|
function moveSelectingRangeComponentsToSelectedRangeComponents(scene) {
|
|
39462
39508
|
scene.selectingRangeComponents.forEach((rangeComponent, key) => {
|
|
@@ -39552,7 +39598,7 @@
|
|
|
39552
39598
|
const minRow = Math.min(...addRows);
|
|
39553
39599
|
scene.proxy.rowUpdatePos = Math.min(minRow, scene.proxy.rowUpdatePos);
|
|
39554
39600
|
}
|
|
39555
|
-
scene.proxy.rowUpdateDirection = "
|
|
39601
|
+
scene.proxy.rowUpdateDirection = "up", scene.proxy.updateCellGroups(2 * scene.proxy.screenRowCount), updateBottomFrozeCellGroups();
|
|
39556
39602
|
} else removeRows.length && (setRowSeriesNumberCellNeedUpdate(removeRows[removeRows.length - 1], scene), scene.proxy.updateCellGroups(2 * scene.proxy.screenRowCount), updateBottomFrozeCellGroups());
|
|
39557
39603
|
scene.proxy.progress();
|
|
39558
39604
|
const newTotalHeight = table.getRowsHeight(table.frozenRowCount, table.rowCount - 1 - table.bottomFrozenRowCount);
|
|
@@ -39709,22 +39755,22 @@
|
|
|
39709
39755
|
beforeCell.mergeStartRow && beforeCell.mergeEndRow && beforeCell.mergeEndRow > beforeRow && (addNeedUpdateTag({
|
|
39710
39756
|
start: {
|
|
39711
39757
|
row: beforeCell.mergeStartRow,
|
|
39712
|
-
col: scene.table.isAutoRowHeight() ? 0 : beforeCell.mergeStartCol
|
|
39758
|
+
col: scene.table.isAutoRowHeight(afterRow) ? 0 : beforeCell.mergeStartCol
|
|
39713
39759
|
},
|
|
39714
39760
|
end: {
|
|
39715
39761
|
row: beforeCell.mergeEndRow,
|
|
39716
|
-
col: scene.table.isAutoRowHeight() ? scene.table.colCount - 1 : beforeCell.mergeEndCol
|
|
39762
|
+
col: scene.table.isAutoRowHeight(afterRow) ? scene.table.colCount - 1 : beforeCell.mergeEndCol
|
|
39717
39763
|
}
|
|
39718
39764
|
}, scene), row = beforeCell.mergeStartRow);
|
|
39719
39765
|
const afterCell = scene.highPerformanceGetCell(col, afterRow);
|
|
39720
39766
|
afterCell.mergeStartRow && afterCell.mergeEndRow && afterCell.mergeStartRow < afterRow && (addNeedUpdateTag({
|
|
39721
39767
|
start: {
|
|
39722
39768
|
row: afterCell.mergeStartRow,
|
|
39723
|
-
col: scene.table.isAutoRowHeight() ? 0 : afterCell.mergeStartCol
|
|
39769
|
+
col: scene.table.isAutoRowHeight(afterRow) ? 0 : afterCell.mergeStartCol
|
|
39724
39770
|
},
|
|
39725
39771
|
end: {
|
|
39726
39772
|
row: afterCell.mergeEndRow,
|
|
39727
|
-
col: scene.table.isAutoRowHeight() ? scene.table.colCount - 1 : afterCell.mergeEndCol
|
|
39773
|
+
col: scene.table.isAutoRowHeight(afterRow) ? scene.table.colCount - 1 : afterCell.mergeEndCol
|
|
39728
39774
|
}
|
|
39729
39775
|
}, scene), row = afterCell.mergeStartRow), isValid$3(row) && (updateRow = isValid$3(updateRow) ? Math.min(updateRow, row) : row);
|
|
39730
39776
|
}
|
|
@@ -39819,7 +39865,7 @@
|
|
|
39819
39865
|
}
|
|
39820
39866
|
|
|
39821
39867
|
function dealFrozen(scene) {
|
|
39822
|
-
var _a, _b;
|
|
39868
|
+
var _a, _b, _c, _d;
|
|
39823
39869
|
if (scene.table.frozenColCount > scene.table.rowHeaderLevelCount) {
|
|
39824
39870
|
scene.rowHeaderGroup.setAttribute("height", scene.bodyGroup.attribute.height), scene.rowHeaderGroup.setAttribute("y", scene.bodyGroup.attribute.y), scene.cornerHeaderGroup.setAttribute("height", scene.colHeaderGroup.attribute.height);
|
|
39825
39871
|
for (let i = 0; i < scene.table.frozenColCount - scene.table.rowHeaderLevelCount; i++) moveColumnFromBodyToRowHeader(scene), moveColumnFromColHeaderToCornerHeader(scene), moveColumnFromBottomToLeftBottomCorner(scene);
|
|
@@ -39827,10 +39873,10 @@
|
|
|
39827
39873
|
scene.bodyGroup.setAttribute("height", scene.rowHeaderGroup.attribute.height), scene.bodyGroup.setAttribute("y", scene.rowHeaderGroup.attribute.y), scene.colHeaderGroup.setAttribute("height", scene.cornerHeaderGroup.attribute.height);
|
|
39828
39874
|
for (let i = 0; i < scene.table.rowHeaderLevelCount - scene.table.frozenColCount; i++) moveColumnFromRowHeaderToBody(scene), moveColumnFromCornerHeaderToColHeader(scene), moveColumnFromLeftBottomCornerToBottom(scene);
|
|
39829
39875
|
}
|
|
39830
|
-
scene.bodyGroup.setAttribute("x", scene.rowHeaderGroup.attribute.width), scene.colHeaderGroup.setAttribute("x", scene.cornerHeaderGroup.attribute.width), scene.updateContainer(), scene.updateBorderSizeAndPosition(), scene.isPivot || scene.table.transpose ? scene.table.options.frozenColCount ? scene.component.setFrozenColumnShadow(scene.table.frozenColCount - 1) : scene.table.options.frozenColCount && scene.component.setRightFrozenColumnShadow(scene.table.colCount - scene.table.rightFrozenColCount) : (scene.component.setFrozenColumnShadow(scene.table.frozenColCount - 1), scene.component.setRightFrozenColumnShadow(scene.table.colCount - scene.table.rightFrozenColCount)), scene.hasFrozen = !0, scene.frozenColCount = scene.table.frozenColCount, scene.frozenRowCount = null !== (_b = null === (_a = scene.colHeaderGroup.firstChild) || void 0 === _a ? void 0 : _a.childrenCount) && void 0 !== _b ? _b : 0;
|
|
39876
|
+
scene.bodyGroup.setAttribute("x", scene.rowHeaderGroup.attribute.width), scene.colHeaderGroup.setAttribute("x", scene.cornerHeaderGroup.attribute.width), scene.updateContainer(), scene.updateBorderSizeAndPosition(), scene.isPivot || scene.table.transpose ? scene.table.options.frozenColCount ? scene.component.setFrozenColumnShadow(scene.table.frozenColCount - 1) : scene.table.options.frozenColCount && scene.component.setRightFrozenColumnShadow(scene.table.colCount - scene.table.rightFrozenColCount) : (scene.component.setFrozenColumnShadow(scene.table.frozenColCount - 1), scene.component.setRightFrozenColumnShadow(scene.table.colCount - scene.table.rightFrozenColCount)), scene.hasFrozen = !0, scene.frozenColCount = scene.table.frozenColCount, scene.frozenRowCount = null !== (_d = null !== (_b = null === (_a = scene.colHeaderGroup.firstChild) || void 0 === _a ? void 0 : _a.childrenCount) && void 0 !== _b ? _b : null === (_c = scene.cornerHeaderGroup.firstChild) || void 0 === _c ? void 0 : _c.childrenCount) && void 0 !== _d ? _d : scene.table.frozenRowCount;
|
|
39831
39877
|
}
|
|
39832
39878
|
function resetFrozen(scene) {
|
|
39833
|
-
var _a, _b, _c, _d;
|
|
39879
|
+
var _a, _b, _c, _d, _e, _f;
|
|
39834
39880
|
if (scene.frozenColCount > scene.table.frozenColCount) {
|
|
39835
39881
|
scene.bodyGroup.setAttribute("height", scene.rowHeaderGroup.attribute.height), scene.bodyGroup.setAttribute("y", scene.rowHeaderGroup.attribute.y), scene.colHeaderGroup.setAttribute("height", scene.cornerHeaderGroup.attribute.height);
|
|
39836
39882
|
for (let i = 0; i < scene.frozenColCount - scene.table.frozenColCount; i++) moveColumnFromRowHeaderToBody(scene), moveColumnFromCornerHeaderToColHeader(scene), moveColumnFromLeftBottomCornerToBottom(scene);
|
|
@@ -39838,7 +39884,7 @@
|
|
|
39838
39884
|
scene.rowHeaderGroup.setAttribute("height", scene.bodyGroup.attribute.height), scene.rowHeaderGroup.setAttribute("y", scene.bodyGroup.attribute.y), scene.cornerHeaderGroup.setAttribute("height", scene.colHeaderGroup.attribute.height);
|
|
39839
39885
|
for (let i = 0; i < scene.table.frozenColCount - scene.frozenColCount; i++) moveColumnFromBodyToRowHeader(scene), moveColumnFromColHeaderToCornerHeader(scene), moveColumnFromBottomToLeftBottomCorner(scene);
|
|
39840
39886
|
}
|
|
39841
|
-
updateReactComponentContainer(scene), scene.recreateAllSelectRangeComponents(), scene.frozenColCount = scene.table.frozenColCount, scene.frozenRowCount = null !== (_b = null === (_a = scene.colHeaderGroup.firstChild) || void 0 === _a ? void 0 : _a.childrenCount) && void 0 !== _b ? _b : 0, scene.proxy.colStart = null !== (
|
|
39887
|
+
updateReactComponentContainer(scene), scene.recreateAllSelectRangeComponents(), scene.frozenColCount = scene.table.frozenColCount, scene.frozenRowCount = null !== (_d = null !== (_b = null === (_a = scene.colHeaderGroup.firstChild) || void 0 === _a ? void 0 : _a.childrenCount) && void 0 !== _b ? _b : null === (_c = scene.cornerHeaderGroup.firstChild) || void 0 === _c ? void 0 : _c.childrenCount) && void 0 !== _d ? _d : scene.table.frozenRowCount, scene.proxy.colStart = null !== (_f = null === (_e = scene.bodyGroup.firstChild) || void 0 === _e ? void 0 : _e.col) && void 0 !== _f ? _f : scene.table.frozenColCount, scene.bodyGroup.setAttribute("x", scene.rowHeaderGroup.attribute.width), scene.colHeaderGroup.setAttribute("x", scene.cornerHeaderGroup.attribute.width), scene.updateContainer(), scene.updateBorderSizeAndPosition(), scene.isPivot || scene.table.transpose ? scene.table.options.frozenColCount ? scene.component.setFrozenColumnShadow(scene.table.frozenColCount - 1) : scene.table.options.rightFrozenColCount && scene.component.setRightFrozenColumnShadow(scene.table.colCount - scene.table.rightFrozenColCount) : (scene.component.setFrozenColumnShadow(scene.table.frozenColCount - 1), scene.component.setRightFrozenColumnShadow(scene.table.colCount - scene.table.rightFrozenColCount)), scene.hasFrozen = !0;
|
|
39842
39888
|
}
|
|
39843
39889
|
function moveColumnFromBodyToRowHeader(scene) {
|
|
39844
39890
|
const column = scene.bodyGroup.firstChild instanceof Group ? scene.bodyGroup.firstChild : null;
|
|
@@ -41396,7 +41442,7 @@
|
|
|
41396
41442
|
const addRows = deduplication$1(addCells.map(cell => cell.row)).sort((a, b) => a - b),
|
|
41397
41443
|
updateRows = deduplication$1(updateCells.map(cell => cell.row)).sort((a, b) => a - b),
|
|
41398
41444
|
isNotFillHeight = this.table.getAllRowsHeight() - [...addRows, ...updateRows].reduce((tolHeight, rowNumber) => tolHeight + this.table.getRowHeight(rowNumber), 0) <= this.table.tableNoFrameHeight;
|
|
41399
|
-
if (updateRow(removeCells, addCells, updateCells, this.table, skipUpdateProxy), recalculateColWidths && this.recalculateColWidths(), "adaptive" === this.table.heightMode || this.table.autoFillHeight && (this.table.getAllRowsHeight() <= this.table.tableNoFrameHeight || isNotFillHeight)) this.table.scenegraph.recalculateRowHeights();else if (this.table.isAutoRowHeight()) for (let i = 0; i < updateRows.length; i++) {
|
|
41445
|
+
if (updateRow(removeCells, addCells, updateCells, this.table, skipUpdateProxy), recalculateColWidths && this.recalculateColWidths(), "adaptive" === this.table.heightMode || this.table.autoFillHeight && (this.table.getAllRowsHeight() <= this.table.tableNoFrameHeight || isNotFillHeight)) this.table.scenegraph.recalculateRowHeights();else if (this.table.isAutoRowHeight(this.table.columnHeaderLevelCount)) for (let i = 0; i < updateRows.length; i++) {
|
|
41400
41446
|
const row = updateRows[i],
|
|
41401
41447
|
oldHeight = this.table.getRowHeight(row),
|
|
41402
41448
|
newHeight = computeRowHeight(row, 0, this.table.colCount - 1, this.table);
|
|
@@ -41690,7 +41736,7 @@
|
|
|
41690
41736
|
} : table.getCellRange(col, row);
|
|
41691
41737
|
currentRange.start.col < cellRange.end.col ? currentRange.end.col = cellRange.end.col : currentRange.start.col > cellRange.start.col && (currentRange.end.col = cellRange.start.col), currentRange.start.row < cellRange.end.row ? currentRange.end.row = cellRange.end.row : currentRange.start.row > cellRange.start.row && (currentRange.end.row = cellRange.start.row), "body" === state.select.headerSelectMode && (table.isRowHeader(col, row) ? (currentRange.start.col = table.rowHeaderLevelCount + table.leftRowSeriesNumberCount, currentRange.end.col = table.colCount - 1) : table.isColumnHeader(col, row) ? (currentRange.start.row = table.columnHeaderLevelCount, currentRange.end.row = table.rowCount - 1) : table.internalProps.layoutMap.isSeriesNumberInBody(col, row) ? (currentRange.start.col = table.leftRowSeriesNumberCount, currentRange.end.col = table.colCount - 1) : table.isCornerHeader(col, row) ? (currentRange.start.col = table.rowHeaderLevelCount + table.leftRowSeriesNumberCount, currentRange.start.row = table.columnHeaderLevelCount, currentRange.end.col = table.colCount - 1, currentRange.end.row = table.rowCount - 1) : table.isSeriesNumber(col, row) && (currentRange.start.col = table.leftRowSeriesNumberCount, currentRange.start.row = table.columnHeaderLevelCount, currentRange.end.col = table.colCount - 1, currentRange.end.row = table.rowCount - 1)), skipBodyMerge && (currentRange.skipBodyMerge = !0);
|
|
41692
41738
|
}
|
|
41693
|
-
scenegraph.updateCellSelectBorder(currentRange, extendSelectRange);
|
|
41739
|
+
currentRange && currentRange.start.row <= table.rowCount - 1 && currentRange.end.row <= table.rowCount - 1 && currentRange.start.col <= table.colCount - 1 && currentRange.end.col <= table.colCount - 1 && scenegraph.updateCellSelectBorder(currentRange, extendSelectRange);
|
|
41694
41740
|
}
|
|
41695
41741
|
}
|
|
41696
41742
|
} else {
|
|
@@ -41888,7 +41934,7 @@
|
|
|
41888
41934
|
}
|
|
41889
41935
|
cellPos.col = col, cellPos.row = row;
|
|
41890
41936
|
const currentRange = null === (_b = state.select.ranges) || void 0 === _b ? void 0 : _b[state.select.ranges.length - 1];
|
|
41891
|
-
currentRange && scenegraph.updateCellSelectBorder(currentRange, extendSelectRange);
|
|
41937
|
+
currentRange && currentRange.start.row <= table.rowCount - 1 && currentRange.end.row <= table.rowCount - 1 && currentRange.start.col <= table.colCount - 1 && currentRange.end.col <= table.colCount - 1 && scenegraph.updateCellSelectBorder(currentRange, extendSelectRange);
|
|
41892
41938
|
}
|
|
41893
41939
|
}
|
|
41894
41940
|
} else cellPos.col = -1, cellPos.row = -1, state.select.ranges = [], scenegraph.deleteAllSelectBorder();
|
|
@@ -42783,7 +42829,7 @@
|
|
|
42783
42829
|
let isSelectAll = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : !1;
|
|
42784
42830
|
let makeSelectCellVisible = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : !0;
|
|
42785
42831
|
let skipBodyMerge = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : !1;
|
|
42786
|
-
-1 !== row && -1 !== row && (this.select.selecting = !0), updateSelectPosition(this, col, row, isShift, isCtrl, isSelectAll, makeSelectCellVisible, skipBodyMerge);
|
|
42832
|
+
-1 !== row && -1 !== row && (this.select.selecting = !0), col < 0 && (col = -1), row < 0 && (row = -1), col > this.table.colCount - 1 && (col = this.table.colCount - 1), row > this.table.rowCount - 1 && (row = this.table.rowCount - 1), updateSelectPosition(this, col, row, isShift, isCtrl, isSelectAll, makeSelectCellVisible, skipBodyMerge);
|
|
42787
42833
|
}
|
|
42788
42834
|
checkCellRangeInSelect(cellPosStart, cellPosEnd) {
|
|
42789
42835
|
return checkMultiCellInSelect(cellPosStart, cellPosEnd, this.select.ranges, this.select.highlightScope);
|
|
@@ -42948,79 +42994,159 @@
|
|
|
42948
42994
|
});
|
|
42949
42995
|
}
|
|
42950
42996
|
updateVerticalScrollBar(yRatio) {
|
|
42951
|
-
var _a, _b;
|
|
42997
|
+
var _a, _b, _c, _d;
|
|
42952
42998
|
const totalHeight = this.table.getAllRowsHeight(),
|
|
42953
42999
|
oldVerticalBarPos = this.scroll.verticalBarPos;
|
|
42954
|
-
|
|
43000
|
+
let verticalBarPos = Math.ceil(yRatio * (totalHeight - this.table.scenegraph.height));
|
|
43001
|
+
isValid$3(verticalBarPos) && !isNaN(verticalBarPos) || (verticalBarPos = 0);
|
|
43002
|
+
const dy = verticalBarPos - this.table.scenegraph.proxy.deltaY - oldVerticalBarPos;
|
|
43003
|
+
if (this.table.fireListeners(TABLE_EVENT_TYPE.CAN_SCROLL, {
|
|
42955
43004
|
event: void 0,
|
|
42956
|
-
scrollTop: this.
|
|
43005
|
+
scrollTop: verticalBarPos - this.table.scenegraph.proxy.deltaY,
|
|
42957
43006
|
scrollLeft: this.scroll.horizontalBarPos,
|
|
42958
43007
|
scrollHeight: null === (_a = this.table.theme.scrollStyle) || void 0 === _a ? void 0 : _a.width,
|
|
42959
43008
|
scrollWidth: null === (_b = this.table.theme.scrollStyle) || void 0 === _b ? void 0 : _b.width,
|
|
42960
43009
|
viewHeight: this.table.tableNoFrameHeight,
|
|
42961
43010
|
viewWidth: this.table.tableNoFrameWidth,
|
|
42962
43011
|
scrollDirection: "vertical",
|
|
42963
|
-
scrollRatioY: yRatio
|
|
43012
|
+
scrollRatioY: yRatio,
|
|
43013
|
+
dy: dy
|
|
43014
|
+
}).some(value => !1 === value)) {
|
|
43015
|
+
const yRatio = this.scroll.verticalBarPos / (totalHeight - this.table.scenegraph.height);
|
|
43016
|
+
this.table.scenegraph.component.updateVerticalScrollBarPos(yRatio);
|
|
43017
|
+
} else this.scroll.verticalBarPos = verticalBarPos, this.table.scenegraph.setY(-this.scroll.verticalBarPos, 1 === yRatio), this.scroll.verticalBarPos -= this.table.scenegraph.proxy.deltaY, this.table.scenegraph.proxy.deltaY = 0, this.updateHoverPos(-1, -1), this.table.fireListeners(TABLE_EVENT_TYPE.SCROLL, {
|
|
43018
|
+
event: void 0,
|
|
43019
|
+
scrollTop: this.scroll.verticalBarPos,
|
|
43020
|
+
scrollLeft: this.scroll.horizontalBarPos,
|
|
43021
|
+
scrollHeight: null === (_c = this.table.theme.scrollStyle) || void 0 === _c ? void 0 : _c.width,
|
|
43022
|
+
scrollWidth: null === (_d = this.table.theme.scrollStyle) || void 0 === _d ? void 0 : _d.width,
|
|
43023
|
+
viewHeight: this.table.tableNoFrameHeight,
|
|
43024
|
+
viewWidth: this.table.tableNoFrameWidth,
|
|
43025
|
+
scrollDirection: "vertical",
|
|
43026
|
+
scrollRatioY: yRatio,
|
|
43027
|
+
dy: dy
|
|
42964
43028
|
}), oldVerticalBarPos !== this.scroll.verticalBarPos && this.checkVerticalScrollBarEnd();
|
|
42965
43029
|
}
|
|
42966
43030
|
updateHorizontalScrollBar(xRatio) {
|
|
42967
|
-
var _a, _b;
|
|
43031
|
+
var _a, _b, _c, _d;
|
|
42968
43032
|
const totalWidth = this.table.getAllColsWidth(),
|
|
42969
43033
|
oldHorizontalBarPos = this.scroll.horizontalBarPos;
|
|
42970
|
-
|
|
43034
|
+
let horizontalBarPos = Math.ceil(xRatio * (totalWidth - this.table.scenegraph.width));
|
|
43035
|
+
isValid$3(horizontalBarPos) && !isNaN(horizontalBarPos) || (horizontalBarPos = 0);
|
|
43036
|
+
const dx = horizontalBarPos - this.table.scenegraph.proxy.deltaX - oldHorizontalBarPos;
|
|
43037
|
+
if (this.table.fireListeners(TABLE_EVENT_TYPE.CAN_SCROLL, {
|
|
42971
43038
|
event: void 0,
|
|
42972
43039
|
scrollTop: this.scroll.verticalBarPos,
|
|
42973
|
-
scrollLeft: this.
|
|
43040
|
+
scrollLeft: horizontalBarPos - this.table.scenegraph.proxy.deltaX,
|
|
42974
43041
|
scrollHeight: null === (_a = this.table.theme.scrollStyle) || void 0 === _a ? void 0 : _a.width,
|
|
42975
43042
|
scrollWidth: null === (_b = this.table.theme.scrollStyle) || void 0 === _b ? void 0 : _b.width,
|
|
42976
43043
|
viewHeight: this.table.tableNoFrameHeight,
|
|
42977
43044
|
viewWidth: this.table.tableNoFrameWidth,
|
|
42978
43045
|
scrollDirection: "horizontal",
|
|
42979
|
-
scrollRatioX: xRatio
|
|
43046
|
+
scrollRatioX: xRatio,
|
|
43047
|
+
dx: dx
|
|
43048
|
+
}).some(value => !1 === value)) {
|
|
43049
|
+
const xRatio = this.scroll.horizontalBarPos / (totalWidth - this.table.scenegraph.width);
|
|
43050
|
+
this.table.scenegraph.component.updateHorizontalScrollBarPos(xRatio);
|
|
43051
|
+
} else this.scroll.horizontalBarPos = horizontalBarPos, this.table.scenegraph.setX(-this.scroll.horizontalBarPos, 1 === xRatio), this.scroll.horizontalBarPos -= this.table.scenegraph.proxy.deltaX, this.table.scenegraph.proxy.deltaX = 0, this.updateHoverPos(-1, -1), this.table.fireListeners(TABLE_EVENT_TYPE.SCROLL, {
|
|
43052
|
+
event: void 0,
|
|
43053
|
+
scrollTop: this.scroll.verticalBarPos,
|
|
43054
|
+
scrollLeft: this.scroll.horizontalBarPos,
|
|
43055
|
+
scrollHeight: null === (_c = this.table.theme.scrollStyle) || void 0 === _c ? void 0 : _c.width,
|
|
43056
|
+
scrollWidth: null === (_d = this.table.theme.scrollStyle) || void 0 === _d ? void 0 : _d.width,
|
|
43057
|
+
viewHeight: this.table.tableNoFrameHeight,
|
|
43058
|
+
viewWidth: this.table.tableNoFrameWidth,
|
|
43059
|
+
scrollDirection: "horizontal",
|
|
43060
|
+
scrollRatioX: xRatio,
|
|
43061
|
+
dx: dx
|
|
42980
43062
|
}), oldHorizontalBarPos !== this.scroll.horizontalBarPos && this.checkHorizontalScrollBarEnd();
|
|
42981
43063
|
}
|
|
42982
43064
|
setScrollTop(top, event) {
|
|
42983
43065
|
let triggerEvent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !0;
|
|
42984
|
-
var _a, _b, _c;
|
|
43066
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
42985
43067
|
const totalHeight = this.table.getAllRowsHeight(),
|
|
42986
43068
|
sizeTolerance = (null === (_a = this.table.options.customConfig) || void 0 === _a ? void 0 : _a._disableColumnAndRowSizeRound) ? 1 : 0;
|
|
42987
|
-
top = Math.max(0, Math.min(top, totalHeight - this.table.scenegraph.height - sizeTolerance)),
|
|
42988
|
-
const oldVerticalBarPos = this.scroll.verticalBarPos
|
|
42989
|
-
|
|
42990
|
-
|
|
42991
|
-
|
|
43069
|
+
top = Math.max(0, Math.min(top, totalHeight - this.table.scenegraph.height - sizeTolerance)), top = Math.ceil(top);
|
|
43070
|
+
const oldVerticalBarPos = this.scroll.verticalBarPos,
|
|
43071
|
+
yRatio = top / (totalHeight - this.table.scenegraph.height);
|
|
43072
|
+
if ((oldVerticalBarPos !== top || !0 === (null === (_c = null === (_b = this.table.options) || void 0 === _b ? void 0 : _b.customConfig) || void 0 === _c ? void 0 : _c.scrollEventAlwaysTrigger)) && triggerEvent) {
|
|
43073
|
+
let verticalBarPos = top;
|
|
43074
|
+
isValid$3(verticalBarPos) && !isNaN(verticalBarPos) || (verticalBarPos = 0);
|
|
43075
|
+
const dy = verticalBarPos - oldVerticalBarPos;
|
|
43076
|
+
if (this.table.fireListeners(TABLE_EVENT_TYPE.CAN_SCROLL, {
|
|
43077
|
+
event: null == event ? void 0 : event.nativeEvent,
|
|
43078
|
+
scrollTop: verticalBarPos,
|
|
43079
|
+
scrollLeft: this.scroll.horizontalBarPos,
|
|
43080
|
+
scrollHeight: null === (_d = this.table.theme.scrollStyle) || void 0 === _d ? void 0 : _d.width,
|
|
43081
|
+
scrollWidth: null === (_e = this.table.theme.scrollStyle) || void 0 === _e ? void 0 : _e.width,
|
|
43082
|
+
viewHeight: this.table.tableNoFrameHeight,
|
|
43083
|
+
viewWidth: this.table.tableNoFrameWidth,
|
|
43084
|
+
scrollDirection: "vertical",
|
|
43085
|
+
scrollRatioY: yRatio,
|
|
43086
|
+
dy: dy
|
|
43087
|
+
}).some(value => !1 === value)) {
|
|
43088
|
+
const yRatio = this.scroll.verticalBarPos / (totalHeight - this.table.scenegraph.height);
|
|
43089
|
+
return void this.table.scenegraph.component.updateVerticalScrollBarPos(yRatio);
|
|
43090
|
+
}
|
|
43091
|
+
}
|
|
43092
|
+
(top !== this.scroll.verticalBarPos || this.table.isPivotChart()) && this.updateHoverPos(-1, -1), this.scroll.verticalBarPos = top, isValid$3(this.scroll.verticalBarPos) && !isNaN(this.scroll.verticalBarPos) || (this.scroll.verticalBarPos = 0), this.table.scenegraph.setY(-top), this.table.scenegraph.component.updateVerticalScrollBarPos(yRatio);
|
|
43093
|
+
const dy = this.scroll.verticalBarPos - oldVerticalBarPos;
|
|
43094
|
+
this.table.fireListeners(TABLE_EVENT_TYPE.SCROLL, {
|
|
42992
43095
|
event: null == event ? void 0 : event.nativeEvent,
|
|
42993
43096
|
scrollTop: this.scroll.verticalBarPos,
|
|
42994
43097
|
scrollLeft: this.scroll.horizontalBarPos,
|
|
42995
|
-
scrollHeight: null === (
|
|
42996
|
-
scrollWidth: null === (
|
|
43098
|
+
scrollHeight: null === (_f = this.table.theme.scrollStyle) || void 0 === _f ? void 0 : _f.width,
|
|
43099
|
+
scrollWidth: null === (_g = this.table.theme.scrollStyle) || void 0 === _g ? void 0 : _g.width,
|
|
42997
43100
|
viewHeight: this.table.tableNoFrameHeight,
|
|
42998
43101
|
viewWidth: this.table.tableNoFrameWidth,
|
|
42999
43102
|
scrollDirection: "vertical",
|
|
43000
|
-
scrollRatioY: yRatio
|
|
43001
|
-
|
|
43103
|
+
scrollRatioY: yRatio,
|
|
43104
|
+
dy: dy
|
|
43105
|
+
}), oldVerticalBarPos !== top && triggerEvent && this.checkVerticalScrollBarEnd();
|
|
43002
43106
|
}
|
|
43003
43107
|
setScrollLeft(left, event) {
|
|
43004
43108
|
let triggerEvent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !0;
|
|
43005
|
-
var _a, _b, _c;
|
|
43109
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
43006
43110
|
this.table.scrollLeft;
|
|
43007
43111
|
const totalWidth = this.table.getAllColsWidth(),
|
|
43008
43112
|
sizeTolerance = (this.table.getFrozenColsWidth(), (null === (_a = this.table.options.customConfig) || void 0 === _a ? void 0 : _a._disableColumnAndRowSizeRound) ? 1 : 0);
|
|
43009
|
-
left = Math.max(0, Math.min(left, totalWidth - this.table.scenegraph.width - sizeTolerance)),
|
|
43010
|
-
const oldHorizontalBarPos = this.scroll.horizontalBarPos
|
|
43011
|
-
|
|
43012
|
-
|
|
43013
|
-
|
|
43113
|
+
left = Math.max(0, Math.min(left, totalWidth - this.table.scenegraph.width - sizeTolerance)), left = Math.ceil(left);
|
|
43114
|
+
const oldHorizontalBarPos = this.scroll.horizontalBarPos,
|
|
43115
|
+
xRatio = left / (totalWidth - this.table.scenegraph.width);
|
|
43116
|
+
if ((oldHorizontalBarPos !== left || !0 === (null === (_c = null === (_b = this.table.options) || void 0 === _b ? void 0 : _b.customConfig) || void 0 === _c ? void 0 : _c.scrollEventAlwaysTrigger)) && triggerEvent) {
|
|
43117
|
+
let horizontalBarPos = left;
|
|
43118
|
+
isValid$3(horizontalBarPos) && !isNaN(horizontalBarPos) || (horizontalBarPos = 0);
|
|
43119
|
+
const dx = horizontalBarPos - oldHorizontalBarPos;
|
|
43120
|
+
if (this.table.fireListeners(TABLE_EVENT_TYPE.CAN_SCROLL, {
|
|
43121
|
+
event: null == event ? void 0 : event.nativeEvent,
|
|
43122
|
+
scrollTop: this.scroll.verticalBarPos,
|
|
43123
|
+
scrollLeft: horizontalBarPos,
|
|
43124
|
+
scrollHeight: null === (_d = this.table.theme.scrollStyle) || void 0 === _d ? void 0 : _d.width,
|
|
43125
|
+
scrollWidth: null === (_e = this.table.theme.scrollStyle) || void 0 === _e ? void 0 : _e.width,
|
|
43126
|
+
viewHeight: this.table.tableNoFrameHeight,
|
|
43127
|
+
viewWidth: this.table.tableNoFrameWidth,
|
|
43128
|
+
scrollDirection: "horizontal",
|
|
43129
|
+
scrollRatioX: xRatio,
|
|
43130
|
+
dx: dx
|
|
43131
|
+
}).some(value => !1 === value)) {
|
|
43132
|
+
const xRatio = this.scroll.horizontalBarPos / (totalWidth - this.table.scenegraph.width);
|
|
43133
|
+
return void this.table.scenegraph.component.updateHorizontalScrollBarPos(xRatio);
|
|
43134
|
+
}
|
|
43135
|
+
}
|
|
43136
|
+
left !== this.scroll.horizontalBarPos && this.updateHoverPos(-1, -1), this.scroll.horizontalBarPos = left, isValid$3(this.scroll.horizontalBarPos) && !isNaN(this.scroll.horizontalBarPos) || (this.scroll.horizontalBarPos = 0), this.table.scenegraph.setX(-left), this.table.scenegraph.component.updateHorizontalScrollBarPos(xRatio);
|
|
43137
|
+
const dx = this.scroll.horizontalBarPos - oldHorizontalBarPos;
|
|
43138
|
+
this.table.fireListeners(TABLE_EVENT_TYPE.SCROLL, {
|
|
43014
43139
|
event: null == event ? void 0 : event.nativeEvent,
|
|
43015
43140
|
scrollTop: this.scroll.verticalBarPos,
|
|
43016
43141
|
scrollLeft: this.scroll.horizontalBarPos,
|
|
43017
|
-
scrollHeight: null === (
|
|
43018
|
-
scrollWidth: null === (
|
|
43142
|
+
scrollHeight: null === (_f = this.table.theme.scrollStyle) || void 0 === _f ? void 0 : _f.width,
|
|
43143
|
+
scrollWidth: null === (_g = this.table.theme.scrollStyle) || void 0 === _g ? void 0 : _g.width,
|
|
43019
43144
|
viewHeight: this.table.tableNoFrameHeight,
|
|
43020
43145
|
viewWidth: this.table.tableNoFrameWidth,
|
|
43021
43146
|
scrollDirection: "horizontal",
|
|
43022
|
-
scrollRatioX: xRatio
|
|
43023
|
-
|
|
43147
|
+
scrollRatioX: xRatio,
|
|
43148
|
+
dx: dx
|
|
43149
|
+
}), oldHorizontalBarPos !== left && triggerEvent && this.checkHorizontalScrollBarEnd();
|
|
43024
43150
|
}
|
|
43025
43151
|
hideVerticalScrollBar() {
|
|
43026
43152
|
this.table.scenegraph.component.hideVerticalScrollBar();
|
|
@@ -43653,7 +43779,7 @@
|
|
|
43653
43779
|
callback: globalPointerdownCallback
|
|
43654
43780
|
}), vglobal.addEventListener("pointerup", globalPointerupCallback), vglobal.addEventListener("pointerdown", globalPointerdownCallback), table.scenegraph.tableGroup.addEventListener("pointerdown", e => {
|
|
43655
43781
|
var _a, _b, _c, _d, _e;
|
|
43656
|
-
table.hasListeners(TABLE_EVENT_TYPE.MOUSEDOWN_TABLE) && table.fireListeners(TABLE_EVENT_TYPE.MOUSEDOWN_TABLE, {
|
|
43782
|
+
if (table.hasListeners(TABLE_EVENT_TYPE.MOUSEDOWN_TABLE) && table.fireListeners(TABLE_EVENT_TYPE.MOUSEDOWN_TABLE, {
|
|
43657
43783
|
event: e.nativeEvent
|
|
43658
43784
|
}), table.eventManager.isDown = !0, table.eventManager.LastBodyPointerXY = {
|
|
43659
43785
|
x: e.x,
|
|
@@ -43661,7 +43787,7 @@
|
|
|
43661
43787
|
}, table.eventManager.LastPointerXY = {
|
|
43662
43788
|
x: e.x,
|
|
43663
43789
|
y: e.y
|
|
43664
|
-
};
|
|
43790
|
+
}, 0 !== e.button) return;
|
|
43665
43791
|
const eventArgsSet = getCellEventArgsSet(e);
|
|
43666
43792
|
if (eventManager.downIcon = void 0, stateManager.interactionState !== InteractionState.default) return;
|
|
43667
43793
|
if (table.isPivotChart() && "chart" !== (null === (_a = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _a ? void 0 : _a.target.type) && table.scenegraph.updateChartState(null), (null === (_b = eventArgsSet.eventArgs) || void 0 === _b ? void 0 : _b.target) !== (null === (_c = stateManager.residentHoverIcon) || void 0 === _c ? void 0 : _c.icon) && stateManager.hideMenu(), "chart" === (null === (_d = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _d ? void 0 : _d.target.type)) return;
|
|
@@ -44237,7 +44363,7 @@
|
|
|
44237
44363
|
}
|
|
44238
44364
|
}), handler.on(table.getElement(), "contextmenu", e => {
|
|
44239
44365
|
var _a;
|
|
44240
|
-
!1 !== (null === (_a = table.eventOptions) || void 0 === _a ? void 0 : _a.preventDefaultContextMenu)
|
|
44366
|
+
!1 !== (null === (_a = table.eventOptions) || void 0 === _a ? void 0 : _a.preventDefaultContextMenu) ? e.preventDefault() : globalPointerupCallback(e);
|
|
44241
44367
|
}), table.options.canvas || handler.on(table.getContainer(), "resize", e => {
|
|
44242
44368
|
var _a;
|
|
44243
44369
|
table.isReleased || 0 === e.width && 0 === e.height || ((table.autoFillWidth || table.autoFillHeight) && (null === (_a = table.editorManager) || void 0 === _a || _a.completeEdit()), isValid$3(table.options.pixelRatio) || table.setPixelRatio(getPixelRatio()), e.windowSizeNotChange || table.resize());
|
|
@@ -44668,6 +44794,75 @@
|
|
|
44668
44794
|
});
|
|
44669
44795
|
}
|
|
44670
44796
|
|
|
44797
|
+
function bindIconClickEvent(table) {
|
|
44798
|
+
table.on(TABLE_EVENT_TYPE.ICON_CLICK, iconInfo => {
|
|
44799
|
+
var _a;
|
|
44800
|
+
const {
|
|
44801
|
+
col: col,
|
|
44802
|
+
row: row,
|
|
44803
|
+
x: x,
|
|
44804
|
+
y: y,
|
|
44805
|
+
funcType: funcType,
|
|
44806
|
+
icon: icon,
|
|
44807
|
+
event: event
|
|
44808
|
+
} = iconInfo,
|
|
44809
|
+
{
|
|
44810
|
+
stateManager: stateManager
|
|
44811
|
+
} = table;
|
|
44812
|
+
if (funcType === IconFuncTypeEnum.dropDown) stateManager.triggerDropDownMenu(col, row, x, y, event);else if (funcType === IconFuncTypeEnum.sort) stateManager.triggerSort(col, row, icon, event);else if (funcType === IconFuncTypeEnum.frozen) stateManager.triggerFreeze(col, row, icon);else if (funcType === IconFuncTypeEnum.drillDown) drillClick(table);else if (funcType === IconFuncTypeEnum.collapse || funcType === IconFuncTypeEnum.expand) {
|
|
44813
|
+
const isHasSelected = !!(null === (_a = stateManager.select.ranges) || void 0 === _a ? void 0 : _a.length);
|
|
44814
|
+
stateManager.updateSelectPos(-1, -1), stateManager.endSelectCells(!0, isHasSelected), table.toggleHierarchyState(col, row);
|
|
44815
|
+
}
|
|
44816
|
+
});
|
|
44817
|
+
}
|
|
44818
|
+
|
|
44819
|
+
function bindDropdownMenuClickEvent(table) {
|
|
44820
|
+
table.on(TABLE_EVENT_TYPE.DROPDOWN_MENU_CLICK, () => {
|
|
44821
|
+
table.stateManager.hideMenu();
|
|
44822
|
+
});
|
|
44823
|
+
}
|
|
44824
|
+
|
|
44825
|
+
function bindDBClickAutoColumnWidthEvent(table) {
|
|
44826
|
+
table.on(TABLE_EVENT_TYPE.DBLCLICK_CELL, e => {
|
|
44827
|
+
var _a, _b, _c;
|
|
44828
|
+
if (e.federatedEvent) {
|
|
44829
|
+
const eventArgsSet = getCellEventArgsSet(e.federatedEvent),
|
|
44830
|
+
resizeCol = table.scenegraph.getResizeColAt(eventArgsSet.abstractPos.x, eventArgsSet.abstractPos.y, null === (_a = eventArgsSet.eventArgs) || void 0 === _a ? void 0 : _a.targetCell),
|
|
44831
|
+
disableDblclickAutoResizeColWidth = null !== (_b = table.options.disableDblclickAutoResizeColWidth) && void 0 !== _b ? _b : null === (_c = table.options.resize) || void 0 === _c ? void 0 : _c.disableDblclickAutoResizeColWidth;
|
|
44832
|
+
if (table.eventManager.checkCellFillhandle(eventArgsSet)) table.fireListeners(TABLE_EVENT_TYPE.DBLCLICK_FILL_HANDLE, {});else if (table._canResizeColumn(resizeCol.col, resizeCol.row) && resizeCol.col >= 0 && !disableDblclickAutoResizeColWidth) {
|
|
44833
|
+
table.scenegraph.updateAutoColWidth(resizeCol.col), table.internalProps._widthResizedColMap.add(resizeCol.col), table.scenegraph.updateChartSizeForResizeColWidth(resizeCol.col);
|
|
44834
|
+
const state = table.stateManager;
|
|
44835
|
+
state.columnResize.col < state.table.frozenColCount && !state.table.isPivotTable() && !state.table.transpose && state.table.scenegraph.component.setFrozenColumnShadow(state.table.frozenColCount - 1, state.columnResize.isRightFrozen);
|
|
44836
|
+
const colWidths = [];
|
|
44837
|
+
for (let col = 0; col < table.colCount; col++) colWidths.push(table.getColWidth(col));
|
|
44838
|
+
table.fireListeners(TABLE_EVENT_TYPE.RESIZE_COLUMN_END, {
|
|
44839
|
+
col: resizeCol.col,
|
|
44840
|
+
colWidths: colWidths
|
|
44841
|
+
});
|
|
44842
|
+
}
|
|
44843
|
+
}
|
|
44844
|
+
});
|
|
44845
|
+
}
|
|
44846
|
+
|
|
44847
|
+
function rightButtonClickEvent(table) {
|
|
44848
|
+
table.on(TABLE_EVENT_TYPE.CONTEXTMENU_CELL, e => {
|
|
44849
|
+
const {
|
|
44850
|
+
col: col,
|
|
44851
|
+
row: row
|
|
44852
|
+
} = e,
|
|
44853
|
+
ranges = table.getSelectedCellRanges();
|
|
44854
|
+
let cellInRange = !1;
|
|
44855
|
+
if (ranges.length > 0) for (let i = 0; i < ranges.length; i++) {
|
|
44856
|
+
const range = ranges[i];
|
|
44857
|
+
if (col >= range.start.col && col <= range.end.col && row >= range.start.row && row <= range.end.row) {
|
|
44858
|
+
cellInRange = !0;
|
|
44859
|
+
break;
|
|
44860
|
+
}
|
|
44861
|
+
}
|
|
44862
|
+
cellInRange || table.selectCell(col, row);
|
|
44863
|
+
});
|
|
44864
|
+
}
|
|
44865
|
+
|
|
44671
44866
|
class EventManager {
|
|
44672
44867
|
constructor(table) {
|
|
44673
44868
|
this.isDown = !1, this.isDraging = !1, this.globalEventListeners = [], this._enableTableScroll = !0, this.table = table, this.handleTextStickBindId = [], this.inertiaScroll = new InertiaScroll(table.stateManager), "node" === Env.mode || table.options.disableInteraction || (this.bindOuterEvent(), setTimeout(() => {
|
|
@@ -44692,44 +44887,7 @@
|
|
|
44692
44887
|
}, 0);
|
|
44693
44888
|
}
|
|
44694
44889
|
bindSelfEvent() {
|
|
44695
|
-
|
|
44696
|
-
const stateManager = this.table.stateManager;
|
|
44697
|
-
this.table.on(TABLE_EVENT_TYPE.ICON_CLICK, iconInfo => {
|
|
44698
|
-
var _a;
|
|
44699
|
-
const {
|
|
44700
|
-
col: col,
|
|
44701
|
-
row: row,
|
|
44702
|
-
x: x,
|
|
44703
|
-
y: y,
|
|
44704
|
-
funcType: funcType,
|
|
44705
|
-
icon: icon,
|
|
44706
|
-
event: event
|
|
44707
|
-
} = iconInfo;
|
|
44708
|
-
if (funcType === IconFuncTypeEnum.dropDown) stateManager.triggerDropDownMenu(col, row, x, y, event);else if (funcType === IconFuncTypeEnum.sort) stateManager.triggerSort(col, row, icon, event);else if (funcType === IconFuncTypeEnum.frozen) stateManager.triggerFreeze(col, row, icon);else if (funcType === IconFuncTypeEnum.drillDown) drillClick(this.table);else if (funcType === IconFuncTypeEnum.collapse || funcType === IconFuncTypeEnum.expand) {
|
|
44709
|
-
const isHasSelected = !!(null === (_a = stateManager.select.ranges) || void 0 === _a ? void 0 : _a.length);
|
|
44710
|
-
stateManager.updateSelectPos(-1, -1), stateManager.endSelectCells(!0, isHasSelected), this.table.toggleHierarchyState(col, row);
|
|
44711
|
-
}
|
|
44712
|
-
}), this.table.on(TABLE_EVENT_TYPE.DROPDOWN_MENU_CLICK, () => {
|
|
44713
|
-
stateManager.hideMenu();
|
|
44714
|
-
}), this.updateEventBinder(), bindMediaClick(this.table), this.table.on(TABLE_EVENT_TYPE.DBLCLICK_CELL, e => {
|
|
44715
|
-
var _a, _b, _c;
|
|
44716
|
-
if (e.federatedEvent) {
|
|
44717
|
-
const eventArgsSet = getCellEventArgsSet(e.federatedEvent),
|
|
44718
|
-
resizeCol = this.table.scenegraph.getResizeColAt(eventArgsSet.abstractPos.x, eventArgsSet.abstractPos.y, null === (_a = eventArgsSet.eventArgs) || void 0 === _a ? void 0 : _a.targetCell),
|
|
44719
|
-
disableDblclickAutoResizeColWidth = null !== (_b = this.table.options.disableDblclickAutoResizeColWidth) && void 0 !== _b ? _b : null === (_c = this.table.options.resize) || void 0 === _c ? void 0 : _c.disableDblclickAutoResizeColWidth;
|
|
44720
|
-
if (this.table.eventManager.checkCellFillhandle(eventArgsSet)) this.table.fireListeners(TABLE_EVENT_TYPE.DBLCLICK_FILL_HANDLE, {});else if (this.table._canResizeColumn(resizeCol.col, resizeCol.row) && resizeCol.col >= 0 && !disableDblclickAutoResizeColWidth) {
|
|
44721
|
-
this.table.scenegraph.updateAutoColWidth(resizeCol.col), this.table.internalProps._widthResizedColMap.add(resizeCol.col), this.table.scenegraph.updateChartSizeForResizeColWidth(resizeCol.col);
|
|
44722
|
-
const state = this.table.stateManager;
|
|
44723
|
-
state.columnResize.col < state.table.frozenColCount && !state.table.isPivotTable() && !state.table.transpose && state.table.scenegraph.component.setFrozenColumnShadow(state.table.frozenColCount - 1, state.columnResize.isRightFrozen);
|
|
44724
|
-
const colWidths = [];
|
|
44725
|
-
for (let col = 0; col < this.table.colCount; col++) colWidths.push(this.table.getColWidth(col));
|
|
44726
|
-
this.table.fireListeners(TABLE_EVENT_TYPE.RESIZE_COLUMN_END, {
|
|
44727
|
-
col: resizeCol.col,
|
|
44728
|
-
colWidths: colWidths
|
|
44729
|
-
});
|
|
44730
|
-
}
|
|
44731
|
-
}
|
|
44732
|
-
}), this.table.isPivotTable() && checkHaveDrill(this.table) && bindDrillEvent(this.table), bindSparklineHoverEvent(this.table), bindAxisClickEvent(this.table), bindAxisHoverEvent(this.table), bindGroupTitleCheckboxChange(this.table), bindButtonClickEvent(this.table);
|
|
44890
|
+
this.table.isReleased || (bindIconClickEvent(this.table), bindDropdownMenuClickEvent(this.table), this.updateEventBinder(), bindMediaClick(this.table), bindDBClickAutoColumnWidthEvent(this.table), this.table.isPivotTable() && checkHaveDrill(this.table) && bindDrillEvent(this.table), bindSparklineHoverEvent(this.table), bindAxisClickEvent(this.table), bindAxisHoverEvent(this.table), bindGroupTitleCheckboxChange(this.table), bindButtonClickEvent(this.table), rightButtonClickEvent(this.table));
|
|
44733
44891
|
}
|
|
44734
44892
|
dealTableHover(eventArgsSet) {
|
|
44735
44893
|
if (!eventArgsSet) return void this.table.stateManager.updateHoverPos(-1, -1);
|
|
@@ -47181,15 +47339,14 @@
|
|
|
47181
47339
|
} = getAxisOption(col, row, position, layout),
|
|
47182
47340
|
range = getAxisRange(layout.dataset.collectedValues, indicatorKeys, isZeroAlign, path, null != seriesIndice ? seriesIndice : index);
|
|
47183
47341
|
if (!range) return;
|
|
47184
|
-
|
|
47185
|
-
|
|
47186
|
-
|
|
47187
|
-
|
|
47188
|
-
|
|
47189
|
-
|
|
47190
|
-
|
|
47191
|
-
|
|
47192
|
-
}
|
|
47342
|
+
isPercent && (range.min = range.min < 0 ? -1 : 0, range.max = range.max > 0 ? 1 : 0), ((null == axisOption ? void 0 : axisOption.zero) || range.min === range.max) && (range.min = Math.min(range.min, 0), range.max = Math.max(range.max, 0));
|
|
47343
|
+
const getAxisDomainRangeAndLabels = Factory.getFunction("getAxisDomainRangeAndLabels"),
|
|
47344
|
+
{
|
|
47345
|
+
range: axisRange,
|
|
47346
|
+
ticks: selfTicks
|
|
47347
|
+
} = getAxisDomainRangeAndLabels(range.min, range.max, axisOption, isZeroAlign, "bottom" === position || "top" === position ? layout._table.getColWidth(col) || layout._table.tableNoFrameWidth : layout._table.getRowHeight(row) || layout._table.tableNoFrameHeight);
|
|
47348
|
+
(null == axisOption ? void 0 : axisOption.nice) && (range.min = axisRange[0], range.max = axisRange[1]);
|
|
47349
|
+
const ticks = selfTicks;
|
|
47193
47350
|
return isNumber$4(null == axisOption ? void 0 : axisOption.min) && (range.min = axisOption.min), isNumber$4(null == axisOption ? void 0 : axisOption.max) && (range.max = axisOption.max), {
|
|
47194
47351
|
index: null != seriesIndice ? seriesIndice : index,
|
|
47195
47352
|
range: range,
|
|
@@ -47481,7 +47638,7 @@
|
|
|
47481
47638
|
constructor(container) {
|
|
47482
47639
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
47483
47640
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
47484
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.17.3-alpha.
|
|
47641
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.17.3-alpha.13", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
|
|
47485
47642
|
!1 === (null === (_a = options.customConfig) || void 0 === _a ? void 0 : _a.imageAnonymous) && (vglobal.isImageAnonymous = !1);
|
|
47486
47643
|
const {
|
|
47487
47644
|
frozenColCount = 0,
|
|
@@ -47529,7 +47686,7 @@
|
|
|
47529
47686
|
right: 0,
|
|
47530
47687
|
left: 0,
|
|
47531
47688
|
bottom: 0
|
|
47532
|
-
}, padding && ("number" == typeof padding ? (this.padding.top = padding, this.padding.left = padding, this.padding.bottom = padding, this.padding.right = padding) : (padding.top && (this.padding.top = padding.top), padding.bottom && (this.padding.bottom = padding.bottom), padding.left && (this.padding.left = padding.left), padding.right && (this.padding.right = padding.right))), isValid$3(canvasHeight)
|
|
47689
|
+
}, padding && ("number" == typeof padding ? (this.padding.top = padding, this.padding.left = padding, this.padding.bottom = padding, this.padding.right = padding) : (padding.top && (this.padding.top = padding.top), padding.bottom && (this.padding.bottom = padding.bottom), padding.left && (this.padding.left = padding.left), padding.right && (this.padding.right = padding.right))), (isValid$3(canvasHeight) || isValid$3(canvasWidth)) && (this.canvasSizeSeted = !0), this.tableNoFrameWidth = 0, this.tableNoFrameHeight = 0, this.canvasWidth = isNumber$4(canvasWidth) ? canvasWidth : void 0, this.canvasHeight = isNumber$4(canvasHeight) ? canvasHeight : void 0, this.columnWidthComputeMode = null !== (_b = options.columnWidthComputeMode) && void 0 !== _b ? _b : "normal";
|
|
47533
47690
|
const internalProps = this.internalProps = {};
|
|
47534
47691
|
void 0 !== showFrozenIcon && (this.showFrozenIcon = showFrozenIcon), "number" == typeof allowFrozenColCount && allowFrozenColCount <= 0 && (this.showFrozenIcon = !1), this.options.canvas ? ("node" !== Env.mode && (internalProps.element = this.options.canvas.parentElement, internalProps.element.style.position = "relative"), internalProps.focusControl = new FocusInput(this, internalProps.element), internalProps.canvas = this.options.canvas, internalProps.context = internalProps.canvas.getContext("2d")) : "node" !== Env.mode && (internalProps.element = createRootElement(this.padding), internalProps.focusControl = new FocusInput(this, internalProps.element), internalProps.canvas = document.createElement("canvas"), internalProps.element.appendChild(internalProps.canvas), internalProps.context = internalProps.canvas.getContext("2d"), (null === (_c = options.customConfig) || void 0 === _c ? void 0 : _c.createReactContainer) && createReactContainer(this)), internalProps.handler = new EventHandler(), isNumber$4(this.options.resizeTime) && (internalProps.handler.resizeTime = this.options.resizeTime), internalProps.pixelRatio = pixelRatio, internalProps.frozenColCount = frozenColCount, internalProps.frozenRowCount = frozenRowCount, internalProps.unfreezeAllOnExceedsMaxWidth = null == unfreezeAllOnExceedsMaxWidth || unfreezeAllOnExceedsMaxWidth, internalProps.defaultRowHeight = defaultRowHeight, internalProps.defaultHeaderRowHeight = null != defaultHeaderRowHeight ? defaultHeaderRowHeight : defaultRowHeight, internalProps.defaultColWidth = defaultColWidth, internalProps.defaultHeaderColWidth = null != defaultHeaderColWidth ? defaultHeaderColWidth : defaultColWidth, internalProps.keyboardOptions = keyboardOptions, internalProps.eventOptions = eventOptions, internalProps.rowSeriesNumber = rowSeriesNumber, internalProps.columnResizeMode = null !== (_d = null == resize ? void 0 : resize.columnResizeMode) && void 0 !== _d ? _d : columnResizeMode, internalProps.rowResizeMode = null !== (_e = null == resize ? void 0 : resize.rowResizeMode) && void 0 !== _e ? _e : rowResizeMode, internalProps.dragHeaderMode = null !== (_g = null !== (_f = null == dragOrder ? void 0 : dragOrder.dragHeaderMode) && void 0 !== _f ? _f : dragHeaderMode) && void 0 !== _g ? _g : "none", internalProps.renderChartAsync = renderChartAsync, setBatchRenderChartCount(renderChartAsyncBatchCount), internalProps.overscrollBehavior = null != overscrollBehavior ? overscrollBehavior : "auto", internalProps._rowHeightsMap = new NumberRangeMap(this), internalProps._rowRangeHeightsMap = new Map(), internalProps._colRangeWidthsMap = new Map(), internalProps._widthResizedColMap = new Set(), internalProps._heightResizedRowMap = new Set(), this.colWidthsMap = new NumberMap(), this.colContentWidthsMap = new NumberMap(), this.colWidthsLimit = {};
|
|
47535
47692
|
const that = this;
|
|
@@ -47836,7 +47993,7 @@
|
|
|
47836
47993
|
}
|
|
47837
47994
|
}
|
|
47838
47995
|
_updateSize() {
|
|
47839
|
-
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;
|
|
47996
|
+
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;
|
|
47840
47997
|
const {
|
|
47841
47998
|
padding: padding
|
|
47842
47999
|
} = this;
|
|
@@ -47846,28 +48003,31 @@
|
|
|
47846
48003
|
const element = this.getElement();
|
|
47847
48004
|
let widthWithoutPadding = 0,
|
|
47848
48005
|
heightWithoutPadding = 0;
|
|
47849
|
-
|
|
48006
|
+
const isDefWidth = isValid$3(this.canvasWidth),
|
|
48007
|
+
isDefHeight = isValid$3(this.canvasHeight);
|
|
48008
|
+
this.canvasSizeSeted && (isDefWidth && (widthWithoutPadding = this.canvasWidth), isDefHeight && (heightWithoutPadding = this.canvasHeight));
|
|
48009
|
+
if ((!isDefWidth || !isDefHeight) && element.parentElement) {
|
|
47850
48010
|
const computedStyle = element.parentElement.style || window.getComputedStyle(element.parentElement);
|
|
47851
|
-
widthWithoutPadding = element.parentElement.offsetWidth - parseInt(computedStyle.paddingLeft
|
|
48011
|
+
isDefWidth || (widthWithoutPadding = element.parentElement.offsetWidth - (parseInt(computedStyle.paddingLeft, 10) || 0) - (parseInt(computedStyle.paddingRight, 10) || 0)), isDefHeight || (heightWithoutPadding = element.parentElement.offsetHeight - parseInt(computedStyle.paddingTop || "0px", 10) - parseInt(computedStyle.paddingBottom || "0px", 20)), widthWithoutPadding = (null != widthWithoutPadding ? widthWithoutPadding : 1) - (this.options.tableSizeAntiJitter ? 1 : 0), heightWithoutPadding = (null != heightWithoutPadding ? heightWithoutPadding : 1) - (this.options.tableSizeAntiJitter ? 1 : 0);
|
|
47852
48012
|
}
|
|
47853
48013
|
element.style.width = widthWithoutPadding && widthWithoutPadding - padding.left - padding.right + "px" || "0px", element.style.height = heightWithoutPadding && heightWithoutPadding - padding.top - padding.bottom + "px" || "0px";
|
|
47854
48014
|
const {
|
|
47855
48015
|
canvas: canvas
|
|
47856
48016
|
} = this.internalProps;
|
|
47857
|
-
widthP = (null !== (_c = null === (_b = canvas.parentElement) || void 0 === _b ? void 0 : _b.offsetWidth) && void 0 !== _c ? _c : 1) - (this.options.tableSizeAntiJitter ? 1 : 0), heightP = (null !== (_e = null === (_d = canvas.parentElement) || void 0 === _d ? void 0 : _d.offsetHeight) && void 0 !== _e ? _e : 1) - (this.options.tableSizeAntiJitter ? 1 : 0), (null === (_f = null == this ? void 0 : this.scenegraph) || void 0 === _f ? void 0 : _f.stage) ? this.scenegraph.stage.resize(widthP, heightP) : (canvas.style.width = "", canvas.style.height = "", canvas.width = widthP, canvas.height = heightP, canvas.style.width = `${widthP}px`, canvas.style.height = `${heightP}px`);
|
|
48017
|
+
widthP = (null !== (_c = null === (_b = canvas.parentElement) || void 0 === _b ? void 0 : _b.offsetWidth) && void 0 !== _c ? _c : 1) - (this.options.tableSizeAntiJitter ? 1 : 0), heightP = (null !== (_e = null === (_d = canvas.parentElement) || void 0 === _d ? void 0 : _d.offsetHeight) && void 0 !== _e ? _e : 1) - (this.options.tableSizeAntiJitter ? 1 : 0), (null === (_f = null == this ? void 0 : this.scenegraph) || void 0 === _f ? void 0 : _f.stage) ? (null === (_g = this.options) || void 0 === _g ? void 0 : _g.viewBox) && !(null === (_h = this.options) || void 0 === _h ? void 0 : _h.canvas) && this.scenegraph.stage.resize(widthP, heightP) : (canvas.style.width = "", canvas.style.height = "", canvas.width = widthP, canvas.height = heightP, canvas.style.width = `${widthP}px`, canvas.style.height = `${heightP}px`), (null === (_j = this.options) || void 0 === _j ? void 0 : _j.viewBox) && (widthP = this.options.viewBox.x2 - this.options.viewBox.x1, heightP = this.options.viewBox.y2 - this.options.viewBox.y1), (null === (_k = null == this ? void 0 : this.scenegraph) || void 0 === _k ? void 0 : _k.stage) && (this.options.viewBox ? this.scenegraph.stage.setViewBox(this.options.viewBox, !1) : this.scenegraph.stage.resize(widthP, heightP));
|
|
47858
48018
|
} else "node" === Env.mode && (widthP = this.canvasWidth - 1, heightP = this.canvasHeight - 1);
|
|
47859
48019
|
const width = Math.floor(widthP - getVerticalScrollBarSize(this.getTheme().scrollStyle)),
|
|
47860
48020
|
height = Math.floor(heightP - getHorizontalScrollBarSize(this.getTheme().scrollStyle));
|
|
47861
|
-
if (null === (
|
|
47862
|
-
const lineWidths = toBoxArray(null !== (
|
|
47863
|
-
shadowWidths = toBoxArray(null !== (
|
|
47864
|
-
(null === (
|
|
48021
|
+
if (null === (_l = this.internalProps.theme) || void 0 === _l ? void 0 : _l.frameStyle) {
|
|
48022
|
+
const lineWidths = toBoxArray(null !== (_o = null === (_m = this.internalProps.theme.frameStyle) || void 0 === _m ? void 0 : _m.borderLineWidth) && void 0 !== _o ? _o : [null]),
|
|
48023
|
+
shadowWidths = toBoxArray(null !== (_q = null === (_p = this.internalProps.theme.frameStyle) || void 0 === _p ? void 0 : _p.shadowBlur) && void 0 !== _q ? _q : [0]);
|
|
48024
|
+
(null === (_r = this.theme.frameStyle) || void 0 === _r ? void 0 : _r.innerBorder) ? (this.tableX = 0, this.tableY = 0, this.tableNoFrameWidth = width - (null !== (_s = shadowWidths[1]) && void 0 !== _s ? _s : 0), this.tableNoFrameHeight = height - (null !== (_t = shadowWidths[2]) && void 0 !== _t ? _t : 0)) : (this.tableX = (null !== (_u = lineWidths[3]) && void 0 !== _u ? _u : 0) + (null !== (_v = shadowWidths[3]) && void 0 !== _v ? _v : 0), this.tableY = (null !== (_w = lineWidths[0]) && void 0 !== _w ? _w : 0) + (null !== (_x = shadowWidths[0]) && void 0 !== _x ? _x : 0), this.tableNoFrameWidth = width - ((null !== (_y = lineWidths[1]) && void 0 !== _y ? _y : 0) + (null !== (_z = shadowWidths[1]) && void 0 !== _z ? _z : 0)) - ((null !== (_0 = lineWidths[3]) && void 0 !== _0 ? _0 : 0) + (null !== (_1 = shadowWidths[3]) && void 0 !== _1 ? _1 : 0)), this.tableNoFrameHeight = height - ((null !== (_2 = lineWidths[0]) && void 0 !== _2 ? _2 : 0) + (null !== (_3 = shadowWidths[0]) && void 0 !== _3 ? _3 : 0)) - ((null !== (_4 = lineWidths[2]) && void 0 !== _4 ? _4 : 0) + (null !== (_5 = shadowWidths[2]) && void 0 !== _5 ? _5 : 0)));
|
|
47865
48025
|
}
|
|
47866
48026
|
}
|
|
47867
48027
|
updateViewBox(newViewBox) {
|
|
47868
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
47869
|
-
const oldWidth = null !== (
|
|
47870
|
-
oldHeight = null !== (
|
|
48028
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
48029
|
+
const oldWidth = (null !== (_c = null === (_b = null === (_a = this.options) || void 0 === _a ? void 0 : _a.viewBox) || void 0 === _b ? void 0 : _b.x2) && void 0 !== _c ? _c : 0) - (null !== (_f = null === (_e = null === (_d = this.options) || void 0 === _d ? void 0 : _d.viewBox) || void 0 === _e ? void 0 : _e.x1) && void 0 !== _f ? _f : 0),
|
|
48030
|
+
oldHeight = (null !== (_j = null === (_h = null === (_g = this.options) || void 0 === _g ? void 0 : _g.viewBox) || void 0 === _h ? void 0 : _h.y2) && void 0 !== _j ? _j : 0) - (null !== (_m = null === (_l = null === (_k = this.options) || void 0 === _k ? void 0 : _k.viewBox) || void 0 === _l ? void 0 : _l.y1) && void 0 !== _m ? _m : 0),
|
|
47871
48031
|
newWidth = newViewBox.x2 - newViewBox.x1,
|
|
47872
48032
|
newHeight = newViewBox.y2 - newViewBox.y1;
|
|
47873
48033
|
this.options.viewBox = newViewBox, oldWidth !== newWidth || oldHeight !== newHeight ? this.resize() : this.scenegraph.stage.setViewBox(this.options.viewBox, !0);
|
|
@@ -47957,7 +48117,7 @@
|
|
|
47957
48117
|
return this._adjustColWidth(col, this._colWidthDefineToPxWidth(width));
|
|
47958
48118
|
}
|
|
47959
48119
|
isAutoRowHeight(row) {
|
|
47960
|
-
return "autoHeight" === this.heightMode || !!this.options.customComputeRowHeight || row >= 0 && row < this.columnHeaderLevelCount
|
|
48120
|
+
return "autoHeight" === this.heightMode || !!this.options.customComputeRowHeight || (row >= 0 && row < this.columnHeaderLevelCount ? "auto" === this.getDefaultRowHeight(row) : "auto" === this.internalProps.defaultRowHeight);
|
|
47961
48121
|
}
|
|
47962
48122
|
getColWidth(col) {
|
|
47963
48123
|
var _a;
|
|
@@ -48607,7 +48767,18 @@
|
|
|
48607
48767
|
var _a;
|
|
48608
48768
|
if (this.internalProps.customMergeCell) {
|
|
48609
48769
|
const customMerge = this.internalProps.customMergeCell(col, row, this);
|
|
48610
|
-
if (customMerge && customMerge.range && (isValid$3(customMerge.text) || customMerge.customLayout || customMerge.customRender))
|
|
48770
|
+
if (customMerge && customMerge.range && (isValid$3(customMerge.text) || customMerge.customLayout || customMerge.customRender)) {
|
|
48771
|
+
return {
|
|
48772
|
+
start: {
|
|
48773
|
+
col: Math.max(customMerge.range.start.col, 0),
|
|
48774
|
+
row: Math.max(customMerge.range.start.row, 0)
|
|
48775
|
+
},
|
|
48776
|
+
end: {
|
|
48777
|
+
col: Math.min(customMerge.range.end.col, this.colCount - 1),
|
|
48778
|
+
row: Math.min(customMerge.range.end.row, this.rowCount - 1)
|
|
48779
|
+
}
|
|
48780
|
+
};
|
|
48781
|
+
}
|
|
48611
48782
|
}
|
|
48612
48783
|
return null === (_a = this.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.getCellRange(col, row);
|
|
48613
48784
|
}
|
|
@@ -50790,9 +50961,9 @@
|
|
|
50790
50961
|
}, null), this._headerObjectsIncludeHided = this._addHeaders(0, columns, []), this._headerObjects = this._headerObjectsIncludeHided.filter(col => !0 !== col.define.hide), this._headerObjectMap = this._headerObjects.reduce((o, e) => (o[e.id] = e, o), {}), this.rowHierarchyType = checkHasTreeDefine(this) ? "tree" : "grid", this._hasAggregation = checkHasAggregation(this), this._hasAggregationOnBottomCount = checkHasAggregationOnBottom(this), this._hasAggregationOnTopCount = checkHasAggregationOnTop(this), this.handleRowSeriesNumber(table.internalProps.rowSeriesNumber);
|
|
50791
50962
|
}
|
|
50792
50963
|
handleRowSeriesNumber(rowSeriesNumber) {
|
|
50793
|
-
var _a
|
|
50964
|
+
var _a;
|
|
50794
50965
|
rowSeriesNumber && (Array.isArray(rowSeriesNumber) ? this.rowSeriesNumberColumn = rowSeriesNumber.map((seriesNumber, index) => {
|
|
50795
|
-
var _a, _b
|
|
50966
|
+
var _a, _b;
|
|
50796
50967
|
return {
|
|
50797
50968
|
id: this.seqId++,
|
|
50798
50969
|
title: seriesNumber.title,
|
|
@@ -50800,11 +50971,11 @@
|
|
|
50800
50971
|
field: "_vtable_rowSeries_number_" + index
|
|
50801
50972
|
}, seriesNumber),
|
|
50802
50973
|
cellType: null !== (_a = seriesNumber.cellType) && void 0 !== _a ? _a : "text",
|
|
50803
|
-
headerType:
|
|
50974
|
+
headerType: "checkbox" === seriesNumber.cellType ? "checkbox" : "text",
|
|
50804
50975
|
style: seriesNumber.style,
|
|
50805
50976
|
width: seriesNumber.width,
|
|
50806
50977
|
format: seriesNumber.format,
|
|
50807
|
-
field: null !== (
|
|
50978
|
+
field: null !== (_b = seriesNumber.field) && void 0 !== _b ? _b : "_vtable_rowSeries_number_" + index,
|
|
50808
50979
|
icon: seriesNumber.icon,
|
|
50809
50980
|
headerIcon: seriesNumber.headerIcon,
|
|
50810
50981
|
isChildNode: !1
|
|
@@ -50816,7 +50987,7 @@
|
|
|
50816
50987
|
field: "_vtable_rowSeries_number"
|
|
50817
50988
|
}, rowSeriesNumber),
|
|
50818
50989
|
cellType: null !== (_a = rowSeriesNumber.cellType) && void 0 !== _a ? _a : "text",
|
|
50819
|
-
headerType:
|
|
50990
|
+
headerType: "checkbox" === rowSeriesNumber.cellType ? "checkbox" : "text",
|
|
50820
50991
|
style: rowSeriesNumber.style,
|
|
50821
50992
|
width: rowSeriesNumber.width,
|
|
50822
50993
|
format: rowSeriesNumber.format,
|
|
@@ -51698,7 +51869,7 @@
|
|
|
51698
51869
|
newWidth = computeColWidth(col, 0, table.rowCount - 1, table, !1);
|
|
51699
51870
|
newWidth !== oldWidth && table.scenegraph.updateColWidth(col, newWidth - oldWidth);
|
|
51700
51871
|
}
|
|
51701
|
-
if ("adaptive" === table.heightMode || table.autoFillHeight && table.getAllRowsHeight() <= table.tableNoFrameHeight) 0 === table.internalProps._heightResizedRowMap.size && table.scenegraph.recalculateRowHeights();else if (table.isAutoRowHeight() && !table.internalProps._heightResizedRowMap.has(row)) {
|
|
51872
|
+
if ("adaptive" === table.heightMode || table.autoFillHeight && table.getAllRowsHeight() <= table.tableNoFrameHeight) 0 === table.internalProps._heightResizedRowMap.size && table.scenegraph.recalculateRowHeights();else if (table.isAutoRowHeight(row) && !table.internalProps._heightResizedRowMap.has(row)) {
|
|
51702
51873
|
const oldHeight = table.getRowHeight(row),
|
|
51703
51874
|
newHeight = computeRowHeight(row, 0, table.colCount - 1, table);
|
|
51704
51875
|
table.scenegraph.updateRowHeight(row, newHeight - oldHeight);
|
|
@@ -51788,7 +51959,7 @@
|
|
|
51788
51959
|
newWidth = computeColWidth(sCol, 0, table.rowCount - 1, table, !1);
|
|
51789
51960
|
newWidth !== oldWidth && table.scenegraph.updateColWidth(sCol, newWidth - oldWidth);
|
|
51790
51961
|
}
|
|
51791
|
-
if ("adaptive" === table.heightMode || table.autoFillHeight && table.getAllRowsHeight() <= table.tableNoFrameHeight) table.scenegraph.recalculateRowHeights();else if (table.isAutoRowHeight()) {
|
|
51962
|
+
if ("adaptive" === table.heightMode || table.autoFillHeight && table.getAllRowsHeight() <= table.tableNoFrameHeight) table.scenegraph.recalculateRowHeights();else if (table.isAutoRowHeight(startRow)) {
|
|
51792
51963
|
const rows = [],
|
|
51793
51964
|
deltaYs = [];
|
|
51794
51965
|
for (let sRow = startRow; sRow <= range.end.row; sRow++) if (table.rowHeightsMap.get(sRow)) {
|
|
@@ -56075,7 +56246,7 @@
|
|
|
56075
56246
|
lineClamp: lineClamp
|
|
56076
56247
|
} = cellStyle,
|
|
56077
56248
|
autoColWidth = "auto" === colWidth,
|
|
56078
|
-
autoRowHeight = table.isAutoRowHeight(),
|
|
56249
|
+
autoRowHeight = table.isAutoRowHeight(row),
|
|
56079
56250
|
attribute = {
|
|
56080
56251
|
maxLineWidth: autoColWidth ? 1 / 0 : cellWidth - (padding[1] + padding[3] + hierarchyOffset) - size - spaceBetweenTextAndIcon,
|
|
56081
56252
|
textAlign: "left",
|
|
@@ -56616,13 +56787,20 @@
|
|
|
56616
56787
|
iconSize = Math.floor(Math.min(width - padding[1] - padding[3], height - padding[2] - padding[0]) / 2),
|
|
56617
56788
|
anchorX = 0 + (width > image.attribute.width ? image.attribute.x - 0 + image.attribute.width / 2 : width / 2),
|
|
56618
56789
|
anchorY = 0 + (height > image.attribute.height ? image.attribute.y - 0 + image.attribute.height / 2 : height / 2),
|
|
56790
|
+
imageGraphic = cellGroup.getChildByName("image", !0),
|
|
56791
|
+
{
|
|
56792
|
+
dx: dx,
|
|
56793
|
+
dy: dy
|
|
56794
|
+
} = imageGraphic.attribute,
|
|
56619
56795
|
playIcon = new Icon({
|
|
56620
56796
|
x: anchorX - iconSize / 2,
|
|
56621
56797
|
y: anchorY - iconSize / 2,
|
|
56622
56798
|
width: iconSize,
|
|
56623
56799
|
height: iconSize,
|
|
56624
56800
|
image: regedIcons.play.svg,
|
|
56625
|
-
cursor: regedIcons.play.cursor
|
|
56801
|
+
cursor: regedIcons.play.cursor,
|
|
56802
|
+
dx: dx,
|
|
56803
|
+
dy: dy
|
|
56626
56804
|
});
|
|
56627
56805
|
playIcon.name = "play-icon", cellGroup.appendChild(playIcon), table.scenegraph.updateNextFrame();
|
|
56628
56806
|
}), video.onerror = () => {
|