@visactor/vtable 0.10.3-alpha.3 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/ListTable.js +1 -1
- package/cjs/ListTable.js.map +1 -1
- package/cjs/PivotChart.js +1 -3
- package/cjs/PivotChart.js.map +1 -1
- package/cjs/core/BaseTable.d.ts +10 -4
- package/cjs/core/BaseTable.js +53 -14
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/event/event.js +1 -0
- package/cjs/event/event.js.map +1 -1
- package/cjs/event/listener/table-group.js +6 -8
- package/cjs/event/listener/table-group.js.map +1 -1
- package/cjs/event/media-click.js +5 -5
- package/cjs/event/media-click.js.map +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/layout/pivot-header-layout.d.ts +1 -0
- package/cjs/layout/pivot-header-layout.js +3 -0
- package/cjs/layout/pivot-header-layout.js.map +1 -1
- package/cjs/layout/pivot-layout.d.ts +1 -0
- package/cjs/layout/pivot-layout.js +1 -0
- package/cjs/layout/pivot-layout.js.map +1 -1
- package/cjs/layout/simple-header-layout.d.ts +1 -0
- package/cjs/layout/simple-header-layout.js +3 -0
- package/cjs/layout/simple-header-layout.js.map +1 -1
- package/cjs/scenegraph/graphic/chart.js +4 -6
- package/cjs/scenegraph/graphic/chart.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/proxy.js +6 -6
- package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -1
- package/cjs/scenegraph/layout/compute-col-width.js +1 -1
- package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
- package/cjs/scenegraph/layout/compute-row-height.js +13 -0
- package/cjs/scenegraph/layout/compute-row-height.js.map +1 -1
- package/cjs/scenegraph/scenegraph.js +12 -0
- package/cjs/scenegraph/scenegraph.js.map +1 -1
- package/cjs/scenegraph/stick-text/index.js +7 -9
- package/cjs/scenegraph/stick-text/index.js.map +1 -1
- package/cjs/scenegraph/utils/text-icon-layout.js +1 -1
- package/cjs/scenegraph/utils/text-icon-layout.js.map +1 -1
- package/cjs/state/sort/index.js +2 -1
- package/cjs/state/sort/index.js.map +1 -1
- package/cjs/state/spark-line/index.d.ts +1 -1
- package/cjs/state/spark-line/index.js +2 -1
- package/cjs/state/spark-line/index.js.map +1 -1
- package/cjs/state/state.d.ts +1 -1
- package/cjs/state/state.js +8 -6
- package/cjs/state/state.js.map +1 -1
- package/cjs/ts-types/base-table.d.ts +6 -0
- package/cjs/ts-types/base-table.js.map +1 -1
- package/cjs/ts-types/list-table/define/Composite-define.d.ts +21 -0
- package/cjs/ts-types/list-table/define/Composite-define.js +6 -0
- package/cjs/ts-types/list-table/define/Composite-define.js.map +1 -0
- package/cjs/ts-types/list-table/define/index.d.ts +3 -1
- package/cjs/ts-types/list-table/define/index.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/composite-indicator.d.ts +21 -0
- package/cjs/ts-types/pivot-table/indicator/composite-indicator.js +6 -0
- package/cjs/ts-types/pivot-table/indicator/composite-indicator.js.map +1 -0
- package/cjs/ts-types/pivot-table/indicator/index.d.ts +2 -1
- package/cjs/ts-types/pivot-table/indicator/index.js.map +1 -1
- package/dist/vtable.js +706 -397
- package/dist/vtable.min.js +3 -3
- package/es/ListTable.js +1 -1
- package/es/ListTable.js.map +1 -1
- package/es/PivotChart.js +1 -3
- package/es/PivotChart.js.map +1 -1
- package/es/core/BaseTable.d.ts +10 -4
- package/es/core/BaseTable.js +53 -12
- package/es/core/BaseTable.js.map +1 -1
- package/es/event/event.js +1 -0
- package/es/event/event.js.map +1 -1
- package/es/event/listener/table-group.js +6 -8
- package/es/event/listener/table-group.js.map +1 -1
- package/es/event/media-click.js +5 -5
- package/es/event/media-click.js.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/layout/pivot-header-layout.d.ts +1 -0
- package/es/layout/pivot-header-layout.js +3 -0
- package/es/layout/pivot-header-layout.js.map +1 -1
- package/es/layout/pivot-layout.d.ts +1 -0
- package/es/layout/pivot-layout.js +1 -0
- package/es/layout/pivot-layout.js.map +1 -1
- package/es/layout/simple-header-layout.d.ts +1 -0
- package/es/layout/simple-header-layout.js +3 -0
- package/es/layout/simple-header-layout.js.map +1 -1
- package/es/scenegraph/graphic/chart.js +4 -6
- package/es/scenegraph/graphic/chart.js.map +1 -1
- package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/es/scenegraph/group-creater/progress/proxy.js +3 -3
- package/es/scenegraph/group-creater/progress/proxy.js.map +1 -1
- package/es/scenegraph/layout/compute-col-width.js +1 -1
- package/es/scenegraph/layout/compute-col-width.js.map +1 -1
- package/es/scenegraph/layout/compute-row-height.js +13 -0
- package/es/scenegraph/layout/compute-row-height.js.map +1 -1
- package/es/scenegraph/scenegraph.js +12 -0
- package/es/scenegraph/scenegraph.js.map +1 -1
- package/es/scenegraph/stick-text/index.js +7 -9
- package/es/scenegraph/stick-text/index.js.map +1 -1
- package/es/scenegraph/utils/text-icon-layout.js +2 -2
- package/es/scenegraph/utils/text-icon-layout.js.map +1 -1
- package/es/state/sort/index.js +2 -1
- package/es/state/sort/index.js.map +1 -1
- package/es/state/spark-line/index.d.ts +1 -1
- package/es/state/spark-line/index.js +2 -1
- package/es/state/spark-line/index.js.map +1 -1
- package/es/state/state.d.ts +1 -1
- package/es/state/state.js +8 -6
- package/es/state/state.js.map +1 -1
- package/es/ts-types/base-table.d.ts +6 -0
- package/es/ts-types/base-table.js.map +1 -1
- package/es/ts-types/list-table/define/Composite-define.d.ts +21 -0
- package/es/ts-types/list-table/define/Composite-define.js +2 -0
- package/es/ts-types/list-table/define/Composite-define.js.map +1 -0
- package/es/ts-types/list-table/define/index.d.ts +3 -1
- package/es/ts-types/list-table/define/index.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/composite-indicator.d.ts +21 -0
- package/es/ts-types/pivot-table/indicator/composite-indicator.js +2 -0
- package/es/ts-types/pivot-table/indicator/composite-indicator.js.map +1 -0
- package/es/ts-types/pivot-table/indicator/index.d.ts +2 -1
- package/es/ts-types/pivot-table/indicator/index.js.map +1 -1
- package/package.json +6 -6
- package/cjs/scenegraph/layout/update-cell.d.ts +0 -3
- package/cjs/scenegraph/layout/update-cell.js +0 -56
- package/cjs/scenegraph/layout/update-cell.js.map +0 -1
- package/cjs/tools/text-width.d.ts +0 -1
- package/cjs/tools/text-width.js +0 -17
- package/cjs/tools/text-width.js.map +0 -1
- package/es/scenegraph/layout/update-cell.d.ts +0 -3
- package/es/scenegraph/layout/update-cell.js +0 -57
- package/es/scenegraph/layout/update-cell.js.map +0 -1
- package/es/tools/text-width.d.ts +0 -1
- package/es/tools/text-width.js +0 -9
- package/es/tools/text-width.js.map +0 -1
package/dist/vtable.js
CHANGED
|
@@ -4474,6 +4474,12 @@
|
|
|
4474
4474
|
for (let i = 0; i < a.length; i++) if (a[i] !== b[i]) return !1;
|
|
4475
4475
|
return !0;
|
|
4476
4476
|
}
|
|
4477
|
+
function flattenArray(arr) {
|
|
4478
|
+
if (!isArray(arr)) return [arr];
|
|
4479
|
+
const result = [];
|
|
4480
|
+
for (const value of arr) result.push(...flattenArray(value));
|
|
4481
|
+
return result;
|
|
4482
|
+
}
|
|
4477
4483
|
|
|
4478
4484
|
function range(start, stop, step) {
|
|
4479
4485
|
isValid(stop) || (stop = start, start = 0), isValid(step) || (step = 1);
|
|
@@ -10574,7 +10580,7 @@
|
|
|
10574
10580
|
const EnvContribution = Symbol.for("EnvContribution");
|
|
10575
10581
|
const VGlobal = Symbol.for("VGlobal");
|
|
10576
10582
|
|
|
10577
|
-
var __decorate$
|
|
10583
|
+
var __decorate$1M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
10578
10584
|
var d,
|
|
10579
10585
|
c = arguments.length,
|
|
10580
10586
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -10726,7 +10732,7 @@
|
|
|
10726
10732
|
return this._env || this.setEnv("browser"), this.envContribution.getElementTopLeft(dom, baseWindow);
|
|
10727
10733
|
}
|
|
10728
10734
|
};
|
|
10729
|
-
DefaultGlobal = __decorate$
|
|
10735
|
+
DefaultGlobal = __decorate$1M([injectable(), __param$S(0, inject(ContributionProvider)), __param$S(0, named(EnvContribution)), __metadata$15("design:paramtypes", [Object])], DefaultGlobal);
|
|
10730
10736
|
|
|
10731
10737
|
const circleThreshold = tau$1 - 1e-8;
|
|
10732
10738
|
class BoundsContext {
|
|
@@ -11813,6 +11819,7 @@
|
|
|
11813
11819
|
angle: 0,
|
|
11814
11820
|
alpha: 0,
|
|
11815
11821
|
beta: 0,
|
|
11822
|
+
scaleCenter: [0, 0],
|
|
11816
11823
|
anchor: [0, 0],
|
|
11817
11824
|
anchor3d: [0, 0],
|
|
11818
11825
|
postMatrix: new Matrix()
|
|
@@ -11892,7 +11899,8 @@
|
|
|
11892
11899
|
pickMode: "accurate",
|
|
11893
11900
|
customPickShape: null,
|
|
11894
11901
|
boundsMode: "accurate",
|
|
11895
|
-
keepDirIn3d: !0
|
|
11902
|
+
keepDirIn3d: !0,
|
|
11903
|
+
shadowRootIdx: 1
|
|
11896
11904
|
}, DefaultStyle), DefaultTransform);
|
|
11897
11905
|
const DefaultArcAttribute = Object.assign(Object.assign({}, DefaultAttribute), {
|
|
11898
11906
|
startAngle: 0,
|
|
@@ -11909,7 +11917,8 @@
|
|
|
11909
11917
|
points: [],
|
|
11910
11918
|
segments: [],
|
|
11911
11919
|
curveType: "linear",
|
|
11912
|
-
clipRange: 1
|
|
11920
|
+
clipRange: 1,
|
|
11921
|
+
closePath: !1
|
|
11913
11922
|
});
|
|
11914
11923
|
const DefaultCircleAttribute = Object.assign(Object.assign({}, DefaultAttribute), {
|
|
11915
11924
|
radius: 1,
|
|
@@ -11942,7 +11951,8 @@
|
|
|
11942
11951
|
segments: [],
|
|
11943
11952
|
curveType: "linear",
|
|
11944
11953
|
clipRange: 1,
|
|
11945
|
-
clipRangeByDimension: "default"
|
|
11954
|
+
clipRangeByDimension: "default",
|
|
11955
|
+
closePath: !1
|
|
11946
11956
|
});
|
|
11947
11957
|
const DefaultPathAttribute = Object.assign(Object.assign({}, DefaultAttribute), {
|
|
11948
11958
|
path: new CustomPath2D(),
|
|
@@ -12131,7 +12141,7 @@
|
|
|
12131
12141
|
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;
|
|
12132
12142
|
}
|
|
12133
12143
|
|
|
12134
|
-
var __decorate$
|
|
12144
|
+
var __decorate$1L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
12135
12145
|
var d,
|
|
12136
12146
|
c = arguments.length,
|
|
12137
12147
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -12311,9 +12321,9 @@
|
|
|
12311
12321
|
return data.str += suffix, data.width += suffixWidth, data;
|
|
12312
12322
|
}
|
|
12313
12323
|
};
|
|
12314
|
-
ATextMeasure = __decorate$
|
|
12324
|
+
ATextMeasure = __decorate$1L([injectable()], ATextMeasure);
|
|
12315
12325
|
|
|
12316
|
-
var __decorate$
|
|
12326
|
+
var __decorate$1K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
12317
12327
|
var d,
|
|
12318
12328
|
c = arguments.length,
|
|
12319
12329
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -12322,7 +12332,7 @@
|
|
|
12322
12332
|
};
|
|
12323
12333
|
const TextMeasureContribution = Symbol.for("TextMeasureContribution");
|
|
12324
12334
|
let DefaultTextMeasureContribution = class extends ATextMeasure {};
|
|
12325
|
-
DefaultTextMeasureContribution = __decorate$
|
|
12335
|
+
DefaultTextMeasureContribution = __decorate$1K([injectable()], DefaultTextMeasureContribution);
|
|
12326
12336
|
|
|
12327
12337
|
const container = new Container$2();
|
|
12328
12338
|
|
|
@@ -12694,7 +12704,7 @@
|
|
|
12694
12704
|
return containPath(commands, lineWidth, !0, x, y);
|
|
12695
12705
|
}
|
|
12696
12706
|
|
|
12697
|
-
var __decorate$
|
|
12707
|
+
var __decorate$1J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
12698
12708
|
var d,
|
|
12699
12709
|
c = arguments.length,
|
|
12700
12710
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -12757,7 +12767,7 @@
|
|
|
12757
12767
|
}, null != option ? option : {}), textSpec);
|
|
12758
12768
|
}
|
|
12759
12769
|
};
|
|
12760
|
-
DefaultGraphicUtil = __decorate$
|
|
12770
|
+
DefaultGraphicUtil = __decorate$1J([injectable(), __param$R(0, inject(ContributionProvider)), __param$R(0, named(TextMeasureContribution)), __param$R(1, inject(VGlobal)), __metadata$14("design:paramtypes", [Object, Object])], DefaultGraphicUtil);
|
|
12761
12771
|
var TransformMode;
|
|
12762
12772
|
!function (TransformMode) {
|
|
12763
12773
|
TransformMode[TransformMode.transform = 0] = "transform", TransformMode[TransformMode.matrix = 1] = "matrix";
|
|
@@ -12784,9 +12794,23 @@
|
|
|
12784
12794
|
} else this.outTargetMatrix.scale(sx, sy);
|
|
12785
12795
|
return this.outTargetMatrix.multiply(_matrix.a, _matrix.b, _matrix.c, _matrix.d, _matrix.e, _matrix.f), this;
|
|
12786
12796
|
}
|
|
12797
|
+
rotateMatrix(angle, center) {
|
|
12798
|
+
const sMatrix = this.outSourceMatrix;
|
|
12799
|
+
if (_matrix.setValue(sMatrix.a, sMatrix.b, sMatrix.c, sMatrix.d, sMatrix.e, sMatrix.f), this.outTargetMatrix.reset(), center) {
|
|
12800
|
+
const {
|
|
12801
|
+
x: x,
|
|
12802
|
+
y: y
|
|
12803
|
+
} = center;
|
|
12804
|
+
this.outTargetMatrix.translate(x, y), this.outTargetMatrix.rotate(angle), this.outTargetMatrix.translate(-x, -y);
|
|
12805
|
+
} else this.outTargetMatrix.rotate(angle);
|
|
12806
|
+
return this.outTargetMatrix.multiply(_matrix.a, _matrix.b, _matrix.c, _matrix.d, _matrix.e, _matrix.f), this;
|
|
12807
|
+
}
|
|
12787
12808
|
scale(sx, sy, center) {
|
|
12788
12809
|
return this.mode === TransformMode.matrix ? this.scaleMatrix(sx, sy, center) : this;
|
|
12789
12810
|
}
|
|
12811
|
+
rotate(angle, center) {
|
|
12812
|
+
return this.mode === TransformMode.matrix ? this.rotateMatrix(angle, center) : this;
|
|
12813
|
+
}
|
|
12790
12814
|
translateMatrix(dx, dy) {
|
|
12791
12815
|
const sMatrix = this.outSourceMatrix;
|
|
12792
12816
|
return _matrix.setValue(sMatrix.a, sMatrix.b, sMatrix.c, sMatrix.d, sMatrix.e, sMatrix.f), this.outTargetMatrix.reset(), this.outTargetMatrix.translate(dx, dy), this.outTargetMatrix.multiply(_matrix.a, _matrix.b, _matrix.c, _matrix.d, _matrix.e, _matrix.f), this;
|
|
@@ -12801,7 +12825,7 @@
|
|
|
12801
12825
|
return this;
|
|
12802
12826
|
}
|
|
12803
12827
|
};
|
|
12804
|
-
DefaultTransformUtil = __decorate$
|
|
12828
|
+
DefaultTransformUtil = __decorate$1J([injectable(), __metadata$14("design:paramtypes", [])], DefaultTransformUtil);
|
|
12805
12829
|
|
|
12806
12830
|
const defaultThemeObj = {
|
|
12807
12831
|
arc: DefaultArcAttribute,
|
|
@@ -13533,10 +13557,10 @@
|
|
|
13533
13557
|
const mappers = this.mappingTable[e.type];
|
|
13534
13558
|
let target;
|
|
13535
13559
|
const cacheKey = `${e.canvasX}-${e.canvasY}`;
|
|
13536
|
-
if ((null === (_a = this._prePointTargetCache) || void 0 === _a ? void 0 : _a[cacheKey]) && (null === (_c = null === (_b = this._prePointTargetCache) || void 0 === _b ? void 0 : _b[cacheKey]) || void 0 === _c ? void 0 : _c.stage.renderCount) === (null === (_d = this._prePointTargetCache) || void 0 === _d ? void 0 : _d.stageRenderCount) ? target = this._prePointTargetCache[cacheKey] : (target = this.pickTarget(e.canvasX, e.canvasY), this._prePointTargetCache = {
|
|
13560
|
+
if ((null === (_a = this._prePointTargetCache) || void 0 === _a ? void 0 : _a[cacheKey]) && (null === (_c = null === (_b = this._prePointTargetCache) || void 0 === _b ? void 0 : _b[cacheKey]) || void 0 === _c ? void 0 : _c.stage.renderCount) === (null === (_d = this._prePointTargetCache) || void 0 === _d ? void 0 : _d.stageRenderCount) ? target = this._prePointTargetCache[cacheKey] : (target = this.pickTarget(e.canvasX, e.canvasY, e), e.pickParams || (this._prePointTargetCache = {
|
|
13537
13561
|
[cacheKey]: target,
|
|
13538
13562
|
stageRenderCount: null !== (_e = null == target ? void 0 : target.stage.renderCount) && void 0 !== _e ? _e : -1
|
|
13539
|
-
}), mappers) for (let i = 0, j = mappers.length; i < j; i++) mappers[i].fn(e, target);else console.warn(`[EventManager]: Event mapping not defined for ${e.type}`);
|
|
13563
|
+
})), mappers) for (let i = 0, j = mappers.length; i < j; i++) mappers[i].fn(e, target);else console.warn(`[EventManager]: Event mapping not defined for ${e.type}`);
|
|
13540
13564
|
}
|
|
13541
13565
|
propagate(e, type) {
|
|
13542
13566
|
if (!e.target) return;
|
|
@@ -13569,11 +13593,11 @@
|
|
|
13569
13593
|
}
|
|
13570
13594
|
createPointerEvent(from, type, target) {
|
|
13571
13595
|
const event = this.allocateEvent(FederatedPointerEvent);
|
|
13572
|
-
return this.copyPointerData(from, event), this.copyMouseData(from, event), this.copyData(from, event), event.nativeEvent = from.nativeEvent, event.originalEvent = from, event.target = target || this.pickTarget(event.global.x, event.global.y), "string" == typeof type && (event.type = type), event;
|
|
13596
|
+
return this.copyPointerData(from, event), this.copyMouseData(from, event), this.copyData(from, event), event.nativeEvent = from.nativeEvent, event.originalEvent = from, event.target = target || this.pickTarget(event.global.x, event.global.y, event), "string" == typeof type && (event.type = type), event;
|
|
13573
13597
|
}
|
|
13574
13598
|
createWheelEvent(from, target) {
|
|
13575
13599
|
const event = this.allocateEvent(FederatedWheelEvent);
|
|
13576
|
-
return this.copyWheelData(from, event), this.copyMouseData(from, event), this.copyData(from, event), event.nativeEvent = from.nativeEvent, event.originalEvent = from, event.target = target || this.pickTarget(event.global.x, event.global.y), event;
|
|
13600
|
+
return this.copyWheelData(from, event), this.copyMouseData(from, event), this.copyData(from, event), event.nativeEvent = from.nativeEvent, event.originalEvent = from, event.target = target || this.pickTarget(event.global.x, event.global.y, event), event;
|
|
13577
13601
|
}
|
|
13578
13602
|
clonePointerEvent(from, type) {
|
|
13579
13603
|
const event = this.allocateEvent(FederatedPointerEvent);
|
|
@@ -13589,7 +13613,7 @@
|
|
|
13589
13613
|
from instanceof FederatedMouseEvent && to instanceof FederatedMouseEvent && (to.altKey = from.altKey, to.button = from.button, to.buttons = from.buttons, to.client.copyFrom(from.client), to.ctrlKey = from.ctrlKey, to.shiftKey = from.shiftKey, to.metaKey = from.metaKey, to.movement.copyFrom(from.movement), to.canvas.copyFrom(from.canvas), to.screen.copyFrom(from.screen), to.global.copyFrom(from.global), to.offset.copyFrom(from.offset), to.viewport.copyFrom(from.viewport));
|
|
13590
13614
|
}
|
|
13591
13615
|
copyData(from, to) {
|
|
13592
|
-
to.isTrusted = from.isTrusted, to.srcElement = from.srcElement, to.timeStamp = clock.now(), to.type = from.type, to.detail = from.detail, to.view = from.view, to.which = from.which, to.layer.copyFrom(from.layer), to.page.copyFrom(from.page);
|
|
13616
|
+
to.isTrusted = from.isTrusted, to.srcElement = from.srcElement, to.timeStamp = clock.now(), to.type = from.type, to.detail = from.detail, to.view = from.view, to.which = from.which, to.layer.copyFrom(from.layer), to.page.copyFrom(from.page), to.pickParams = from.pickParams;
|
|
13593
13617
|
}
|
|
13594
13618
|
trackingData(id) {
|
|
13595
13619
|
return this.mappingState.trackingData[id] || (this.mappingState.trackingData[id] = {
|
|
@@ -13623,10 +13647,10 @@
|
|
|
13623
13647
|
const listeners = e.currentTarget._events[WILDCARD];
|
|
13624
13648
|
if (listeners) if ("fn" in listeners) listeners.fn.call(listeners.context, e, type);else for (let i = 0, j = listeners.length; i < j && !e.propagationImmediatelyStopped; i++) listeners[i].fn.call(listeners[i].context, e, type);
|
|
13625
13649
|
}
|
|
13626
|
-
pickTarget(x, y) {
|
|
13650
|
+
pickTarget(x, y, e) {
|
|
13627
13651
|
let target;
|
|
13628
13652
|
const pickResult = this.rootTarget.pick(x, y);
|
|
13629
|
-
return target = pickResult && pickResult.graphic ? pickResult.graphic : pickResult && pickResult.group ? pickResult.group : x >= 0 && x <= get$3(this.rootTarget, "width") && y >= 0 && y <= get$3(this.rootTarget, "height") ? this.rootTarget : null, target;
|
|
13653
|
+
return target = pickResult && pickResult.graphic ? pickResult.graphic : pickResult && pickResult.group ? pickResult.group : x >= 0 && x <= get$3(this.rootTarget, "width") && y >= 0 && y <= get$3(this.rootTarget, "height") ? this.rootTarget : null, e && (e.pickParams = pickResult.params), target;
|
|
13630
13654
|
}
|
|
13631
13655
|
}
|
|
13632
13656
|
|
|
@@ -15293,16 +15317,25 @@
|
|
|
15293
15317
|
}, this.attribute, tempConstantScaleXYKey, context);
|
|
15294
15318
|
return params ? (this._setAttributes(params, !1, context), this) : (attribute.scaleX = scaleX, attribute.scaleY = scaleY, this.addUpdatePositionTag(), this.addUpdateBoundTag(), this.addUpdateLayoutTag(), this.onAttributeUpdate(context), this);
|
|
15295
15319
|
}
|
|
15296
|
-
rotate(angle) {
|
|
15320
|
+
rotate(angle, rotateCenter) {
|
|
15297
15321
|
var _a;
|
|
15298
15322
|
if (0 === angle) return this;
|
|
15299
15323
|
const context = {
|
|
15300
15324
|
type: AttributeUpdateType.ROTATE
|
|
15301
15325
|
},
|
|
15302
|
-
params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(
|
|
15303
|
-
|
|
15326
|
+
params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate({
|
|
15327
|
+
angle: angle,
|
|
15328
|
+
rotateCenter: rotateCenter
|
|
15329
|
+
}, this.attribute, tempConstantAngleKey, context);
|
|
15330
|
+
params && (delete params.angle, this._setAttributes(params, !1, context));
|
|
15304
15331
|
const attribute = this.attribute;
|
|
15305
|
-
|
|
15332
|
+
if (rotateCenter) {
|
|
15333
|
+
let {
|
|
15334
|
+
postMatrix: postMatrix
|
|
15335
|
+
} = this.attribute;
|
|
15336
|
+
postMatrix || (postMatrix = new Matrix(), attribute.postMatrix = postMatrix), application.transformUtil.fromMatrix(postMatrix, postMatrix).rotate(angle, rotateCenter);
|
|
15337
|
+
} else attribute.angle = (null !== (_a = attribute.angle) && void 0 !== _a ? _a : DefaultTransform.angle) + angle;
|
|
15338
|
+
return this.addUpdatePositionTag(), this.addUpdateBoundTag(), this.addUpdateLayoutTag(), this.onAttributeUpdate(context), this;
|
|
15306
15339
|
}
|
|
15307
15340
|
rotateTo(angle) {
|
|
15308
15341
|
const attribute = this.attribute;
|
|
@@ -15452,6 +15485,7 @@
|
|
|
15452
15485
|
scaleX = DefaultTransform.scaleX,
|
|
15453
15486
|
scaleY = DefaultTransform.scaleY,
|
|
15454
15487
|
angle = DefaultTransform.angle,
|
|
15488
|
+
scaleCenter: scaleCenter,
|
|
15455
15489
|
anchor: anchor,
|
|
15456
15490
|
postMatrix: postMatrix
|
|
15457
15491
|
} = this.attribute,
|
|
@@ -15468,7 +15502,13 @@
|
|
|
15468
15502
|
_anchor[1] = bounds.x1 + (bounds.x2 - bounds.x1) * ratio;
|
|
15469
15503
|
} else _anchor[1] = anchor[1];
|
|
15470
15504
|
}
|
|
15471
|
-
normalTransform(this._transMatrix, this._transMatrix.reset(), x, y, scaleX, scaleY, angle, anchor && _anchor);
|
|
15505
|
+
if (!scaleCenter || 1 === scaleX && 1 === scaleY) normalTransform(this._transMatrix, this._transMatrix.reset(), x, y, scaleX, scaleY, angle, anchor && _anchor);else {
|
|
15506
|
+
const m = this._transMatrix;
|
|
15507
|
+
m.reset(), m.translate(_anchor[0], _anchor[1]), m.rotate(angle), m.translate(-_anchor[0], -_anchor[1]), m.translate(x, y), application.transformUtil.fromMatrix(m, m).scale(scaleX, scaleY, {
|
|
15508
|
+
x: scaleCenter[0],
|
|
15509
|
+
y: scaleCenter[1]
|
|
15510
|
+
});
|
|
15511
|
+
}
|
|
15472
15512
|
const p = this.getOffsetXY(DefaultTransform);
|
|
15473
15513
|
if (this._transMatrix.e += p.x, this._transMatrix.f += p.y, postMatrix) {
|
|
15474
15514
|
const m1 = tempMatrix.setValue(postMatrix.a, postMatrix.b, postMatrix.c, postMatrix.d, postMatrix.e, postMatrix.f),
|
|
@@ -17885,7 +17925,7 @@
|
|
|
17885
17925
|
}
|
|
17886
17926
|
}
|
|
17887
17927
|
|
|
17888
|
-
var __decorate$
|
|
17928
|
+
var __decorate$1I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17889
17929
|
var d,
|
|
17890
17930
|
c = arguments.length,
|
|
17891
17931
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -17933,9 +17973,9 @@
|
|
|
17933
17973
|
return "browser" === this.global.env ? 10 : 0;
|
|
17934
17974
|
}
|
|
17935
17975
|
};
|
|
17936
|
-
DefaultLayerService = __decorate$
|
|
17976
|
+
DefaultLayerService = __decorate$1I([injectable(), __param$Q(0, inject(VGlobal)), __metadata$13("design:paramtypes", [Object])], DefaultLayerService);
|
|
17937
17977
|
|
|
17938
|
-
var __decorate$
|
|
17978
|
+
var __decorate$1H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17939
17979
|
var d,
|
|
17940
17980
|
c = arguments.length,
|
|
17941
17981
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -18048,7 +18088,7 @@
|
|
|
18048
18088
|
return this._handler.getTopLeft(baseWindow);
|
|
18049
18089
|
}
|
|
18050
18090
|
};
|
|
18051
|
-
__decorate$
|
|
18091
|
+
__decorate$1H([postConstruct(), __metadata$12("design:type", Function), __metadata$12("design:paramtypes", []), __metadata$12("design:returntype", void 0)], DefaultWindow.prototype, "postInit", null), DefaultWindow = __decorate$1H([injectable(), __param$P(0, inject(VGlobal)), __metadata$12("design:paramtypes", [Object])], DefaultWindow);
|
|
18052
18092
|
|
|
18053
18093
|
const TransformUtil = Symbol.for("TransformUtil");
|
|
18054
18094
|
const GraphicUtil = Symbol.for("GraphicUtil");
|
|
@@ -18343,7 +18383,7 @@
|
|
|
18343
18383
|
const TextRenderContribution = Symbol.for("TextRenderContribution");
|
|
18344
18384
|
const InteractiveSubRenderContribution = Symbol.for("InteractiveSubRenderContribution");
|
|
18345
18385
|
|
|
18346
|
-
var __decorate$
|
|
18386
|
+
var __decorate$1G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18347
18387
|
var d,
|
|
18348
18388
|
c = arguments.length,
|
|
18349
18389
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -18565,9 +18605,9 @@
|
|
|
18565
18605
|
drawPathProxy(arc, context, x, y, drawContext, params) || this.drawShape(arc, context, x, y, drawContext, params), context.highPerformanceRestore();
|
|
18566
18606
|
}
|
|
18567
18607
|
};
|
|
18568
|
-
DefaultCanvasArcRender = __decorate$
|
|
18608
|
+
DefaultCanvasArcRender = __decorate$1G([injectable(), __param$O(0, inject(ContributionProvider)), __param$O(0, named(ArcRenderContribution)), __metadata$11("design:paramtypes", [Object])], DefaultCanvasArcRender);
|
|
18569
18609
|
|
|
18570
|
-
var __decorate$
|
|
18610
|
+
var __decorate$1F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18571
18611
|
var d,
|
|
18572
18612
|
c = arguments.length,
|
|
18573
18613
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -18631,7 +18671,7 @@
|
|
|
18631
18671
|
drawPathProxy(circle, context, x, y, drawContext, params) || this.drawShape(circle, context, x, y, drawContext, params), context.highPerformanceRestore();
|
|
18632
18672
|
}
|
|
18633
18673
|
};
|
|
18634
|
-
DefaultCanvasCircleRender = __decorate$
|
|
18674
|
+
DefaultCanvasCircleRender = __decorate$1F([injectable(), __param$N(0, inject(ContributionProvider)), __param$N(0, named(CircleRenderContribution)), __metadata$10("design:paramtypes", [Object])], DefaultCanvasCircleRender);
|
|
18635
18675
|
|
|
18636
18676
|
const CIRCLE_UPDATE_TAG_KEY = ["radius", "startAngle", "endAngle", ...GRAPHIC_UPDATE_TAG_KEY];
|
|
18637
18677
|
let Circle$1 = class Circle extends Graphic {
|
|
@@ -21073,7 +21113,7 @@
|
|
|
21073
21113
|
}
|
|
21074
21114
|
}
|
|
21075
21115
|
|
|
21076
|
-
var __decorate$
|
|
21116
|
+
var __decorate$1E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21077
21117
|
var d,
|
|
21078
21118
|
c = arguments.length,
|
|
21079
21119
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21097,9 +21137,9 @@
|
|
|
21097
21137
|
return aabbBounds;
|
|
21098
21138
|
}
|
|
21099
21139
|
};
|
|
21100
|
-
DefaultOuterBorderBoundsContribution = __decorate$
|
|
21140
|
+
DefaultOuterBorderBoundsContribution = __decorate$1E([injectable()], DefaultOuterBorderBoundsContribution);
|
|
21101
21141
|
|
|
21102
|
-
var __decorate$
|
|
21142
|
+
var __decorate$1D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21103
21143
|
var d,
|
|
21104
21144
|
c = arguments.length,
|
|
21105
21145
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21108,9 +21148,9 @@
|
|
|
21108
21148
|
};
|
|
21109
21149
|
const RectBoundsContribution = Symbol.for("RectBoundsContribution");
|
|
21110
21150
|
let DefaultRectOuterBorderBoundsContribution = class extends DefaultOuterBorderBoundsContribution {};
|
|
21111
|
-
DefaultRectOuterBorderBoundsContribution = __decorate$
|
|
21151
|
+
DefaultRectOuterBorderBoundsContribution = __decorate$1D([injectable()], DefaultRectOuterBorderBoundsContribution);
|
|
21112
21152
|
|
|
21113
|
-
var __decorate$
|
|
21153
|
+
var __decorate$1C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21114
21154
|
var d,
|
|
21115
21155
|
c = arguments.length,
|
|
21116
21156
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21136,9 +21176,9 @@
|
|
|
21136
21176
|
return aabbBounds;
|
|
21137
21177
|
}
|
|
21138
21178
|
};
|
|
21139
|
-
DefaultSymbolOuterBorderBoundsContribution = __decorate$
|
|
21179
|
+
DefaultSymbolOuterBorderBoundsContribution = __decorate$1C([injectable()], DefaultSymbolOuterBorderBoundsContribution);
|
|
21140
21180
|
|
|
21141
|
-
var __decorate$
|
|
21181
|
+
var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21142
21182
|
var d,
|
|
21143
21183
|
c = arguments.length,
|
|
21144
21184
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21147,9 +21187,9 @@
|
|
|
21147
21187
|
};
|
|
21148
21188
|
const CircleBoundsContribution = Symbol.for("CircleBoundsContribution");
|
|
21149
21189
|
let DefaultCircleOuterBorderBoundsContribution = class extends DefaultOuterBorderBoundsContribution {};
|
|
21150
|
-
DefaultCircleOuterBorderBoundsContribution = __decorate$
|
|
21190
|
+
DefaultCircleOuterBorderBoundsContribution = __decorate$1B([injectable()], DefaultCircleOuterBorderBoundsContribution);
|
|
21151
21191
|
|
|
21152
|
-
var __decorate$
|
|
21192
|
+
var __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21153
21193
|
var d,
|
|
21154
21194
|
c = arguments.length,
|
|
21155
21195
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21158,9 +21198,9 @@
|
|
|
21158
21198
|
};
|
|
21159
21199
|
const ArcBoundsContribution = Symbol.for("ArcBoundsContribution");
|
|
21160
21200
|
let DefaultArcOuterBorderBoundsContribution = class extends DefaultOuterBorderBoundsContribution {};
|
|
21161
|
-
DefaultArcOuterBorderBoundsContribution = __decorate$
|
|
21201
|
+
DefaultArcOuterBorderBoundsContribution = __decorate$1A([injectable()], DefaultArcOuterBorderBoundsContribution);
|
|
21162
21202
|
|
|
21163
|
-
var __decorate$
|
|
21203
|
+
var __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21164
21204
|
var d,
|
|
21165
21205
|
c = arguments.length,
|
|
21166
21206
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21169,7 +21209,7 @@
|
|
|
21169
21209
|
};
|
|
21170
21210
|
const PathBoundsContribution = Symbol.for("PathBoundsContribution");
|
|
21171
21211
|
let DefaultPathOuterBorderBoundsContribution = class extends DefaultOuterBorderBoundsContribution {};
|
|
21172
|
-
DefaultPathOuterBorderBoundsContribution = __decorate$
|
|
21212
|
+
DefaultPathOuterBorderBoundsContribution = __decorate$1z([injectable()], DefaultPathOuterBorderBoundsContribution);
|
|
21173
21213
|
|
|
21174
21214
|
function createMat4() {
|
|
21175
21215
|
return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|
|
@@ -21229,7 +21269,7 @@
|
|
|
21229
21269
|
const matrixAllocate = new DefaultMatrixAllocate();
|
|
21230
21270
|
const mat4Allocate = new DefaultMat4Allocate();
|
|
21231
21271
|
|
|
21232
|
-
var __decorate$
|
|
21272
|
+
var __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21233
21273
|
var d,
|
|
21234
21274
|
c = arguments.length,
|
|
21235
21275
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21776,7 +21816,7 @@
|
|
|
21776
21816
|
this.combindShadowAABBBounds(aabbBounds, graphic), transformBoundsWithMatrix(aabbBounds, aabbBounds, graphic.transMatrix);
|
|
21777
21817
|
}
|
|
21778
21818
|
};
|
|
21779
|
-
DefaultGraphicService = __decorate$
|
|
21819
|
+
DefaultGraphicService = __decorate$1y([injectable(), __param$M(0, inject(GraphicCreator)), __param$M(1, inject(ContributionProvider)), __param$M(1, named(RectBoundsContribution)), __param$M(2, inject(ContributionProvider)), __param$M(2, named(SymbolBoundsContribution)), __param$M(3, inject(ContributionProvider)), __param$M(3, named(CircleBoundsContribution)), __param$M(4, inject(ContributionProvider)), __param$M(4, named(ArcBoundsContribution)), __param$M(5, inject(ContributionProvider)), __param$M(5, named(PathBoundsContribution)), __metadata$$("design:paramtypes", [Object, Object, Object, Object, Object, Object])], DefaultGraphicService);
|
|
21780
21820
|
|
|
21781
21821
|
class ShadowRoot extends Group$1 {
|
|
21782
21822
|
constructor(graphic) {
|
|
@@ -21881,7 +21921,7 @@
|
|
|
21881
21921
|
}
|
|
21882
21922
|
createRichText({});
|
|
21883
21923
|
|
|
21884
|
-
var __decorate$
|
|
21924
|
+
var __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21885
21925
|
var d,
|
|
21886
21926
|
c = arguments.length,
|
|
21887
21927
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21965,7 +22005,7 @@
|
|
|
21965
22005
|
context.translate(p.x, p.y, !1), context.scale(scaleX, scaleY, !1), context.rotate(angle, !1), context.translate(-p.x, -p.y, !1), context.setTransformForCurrent();
|
|
21966
22006
|
}
|
|
21967
22007
|
};
|
|
21968
|
-
BaseRender = __decorate$
|
|
22008
|
+
BaseRender = __decorate$1x([injectable()], BaseRender);
|
|
21969
22009
|
|
|
21970
22010
|
function drawSegments(path, segPath, percent, clipRangeByDimension, params) {
|
|
21971
22011
|
var _a;
|
|
@@ -22103,7 +22143,7 @@
|
|
|
22103
22143
|
}
|
|
22104
22144
|
}
|
|
22105
22145
|
|
|
22106
|
-
var __decorate$
|
|
22146
|
+
var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
22107
22147
|
var d,
|
|
22108
22148
|
c = arguments.length,
|
|
22109
22149
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -22185,20 +22225,46 @@
|
|
|
22185
22225
|
if (!(fVisible || sVisible || fillCb || strokeCb)) return;
|
|
22186
22226
|
if (line.shouldUpdateShape()) {
|
|
22187
22227
|
const {
|
|
22188
|
-
|
|
22189
|
-
|
|
22190
|
-
|
|
22191
|
-
|
|
22192
|
-
|
|
22228
|
+
points: points,
|
|
22229
|
+
segments: segments,
|
|
22230
|
+
closePath: closePath
|
|
22231
|
+
} = line.attribute;
|
|
22232
|
+
let {
|
|
22233
|
+
curveType = lineAttribute.curveType
|
|
22234
|
+
} = line.attribute;
|
|
22235
|
+
closePath && "linear" === curveType && (curveType = "linearClosed");
|
|
22236
|
+
const _points = points;
|
|
22193
22237
|
if (segments && segments.length) {
|
|
22194
22238
|
let startPoint, lastSeg;
|
|
22195
|
-
line.cache = segments.map((seg, index) =>
|
|
22196
|
-
|
|
22197
|
-
|
|
22198
|
-
|
|
22199
|
-
|
|
22200
|
-
|
|
22201
|
-
|
|
22239
|
+
if (line.cache = segments.map((seg, index) => {
|
|
22240
|
+
if (seg.points.length <= 1 && 0 === index) return seg.points[0] && (lastSeg = {
|
|
22241
|
+
endX: seg.points[0].x,
|
|
22242
|
+
endY: seg.points[0].y,
|
|
22243
|
+
curves: [{
|
|
22244
|
+
defined: !1 !== seg.points[0].defined
|
|
22245
|
+
}]
|
|
22246
|
+
}), null;
|
|
22247
|
+
1 === index ? startPoint = {
|
|
22248
|
+
x: lastSeg.endX,
|
|
22249
|
+
y: lastSeg.endY,
|
|
22250
|
+
defined: lastSeg.curves[lastSeg.curves.length - 1].defined
|
|
22251
|
+
} : index > 1 && (startPoint.x = lastSeg.endX, startPoint.y = lastSeg.endY, startPoint.defined = lastSeg.curves[lastSeg.curves.length - 1].defined);
|
|
22252
|
+
const data = calcLineCache$1(seg.points, curveType, {
|
|
22253
|
+
startPoint: startPoint
|
|
22254
|
+
});
|
|
22255
|
+
return lastSeg = data, data;
|
|
22256
|
+
}).filter(item => !!item), "linearClosed" === curveType) {
|
|
22257
|
+
let startP;
|
|
22258
|
+
for (let i = 0; i < line.cache.length; i++) {
|
|
22259
|
+
const cacheItem = line.cache[i];
|
|
22260
|
+
for (let i = 0; i < cacheItem.curves.length; i++) if (cacheItem.curves[i].defined) {
|
|
22261
|
+
startP = cacheItem.curves[i].p0;
|
|
22262
|
+
break;
|
|
22263
|
+
}
|
|
22264
|
+
if (startP) break;
|
|
22265
|
+
}
|
|
22266
|
+
line.cache[line.cache.length - 1] && line.cache[line.cache.length - 1].lineTo(startP.x, startP.y, !0);
|
|
22267
|
+
}
|
|
22202
22268
|
} else {
|
|
22203
22269
|
if (!points || !points.length) return line.cache = null, void line.clearUpdateShapeTag();
|
|
22204
22270
|
line.cache = calcLineCache$1(_points, curveType);
|
|
@@ -22210,10 +22276,11 @@
|
|
|
22210
22276
|
clipRangeByDimension = lineAttribute.clipRangeByDimension
|
|
22211
22277
|
} = line.attribute;
|
|
22212
22278
|
if (Array.isArray(line.cache)) {
|
|
22213
|
-
|
|
22279
|
+
const segments = line.attribute.segments.filter(item => item.points.length);
|
|
22280
|
+
if (1 === segments[0].points.length && segments.shift(), 1 === clipRange) {
|
|
22214
22281
|
let skip = !1;
|
|
22215
22282
|
line.cache.forEach((cache, index) => {
|
|
22216
|
-
skip || (skip = this.drawSegmentItem(context, cache, !!fill, !!stroke, fillOpacity, strokeOpacity,
|
|
22283
|
+
skip || (skip = this.drawSegmentItem(context, cache, !!fill, !!stroke, fillOpacity, strokeOpacity, segments[index], [lineAttribute, line.attribute], clipRange, clipRangeByDimension, x, y, line, fillCb, strokeCb));
|
|
22217
22284
|
});
|
|
22218
22285
|
} else {
|
|
22219
22286
|
const totalLength = line.cache.reduce((l, c) => l + c.getLength(), 0),
|
|
@@ -22224,13 +22291,13 @@
|
|
|
22224
22291
|
if (skip) return;
|
|
22225
22292
|
const curSegLength = cache.getLength(),
|
|
22226
22293
|
_cr = (totalDrawLength - drawedLengthUntilLast) / curSegLength;
|
|
22227
|
-
drawedLengthUntilLast += curSegLength, _cr > 0 && (skip = this.drawSegmentItem(context, cache, !!fill, !!stroke, fillOpacity, strokeOpacity,
|
|
22294
|
+
drawedLengthUntilLast += curSegLength, _cr > 0 && (skip = this.drawSegmentItem(context, cache, !!fill, !!stroke, fillOpacity, strokeOpacity, segments[index], [lineAttribute, line.attribute], min(_cr, 1), clipRangeByDimension, x, y, line, fillCb, strokeCb));
|
|
22228
22295
|
});
|
|
22229
22296
|
}
|
|
22230
22297
|
} else this.drawSegmentItem(context, line.cache, !!fill, !!stroke, fillOpacity, strokeOpacity, line.attribute, lineAttribute, clipRange, clipRangeByDimension, x, y, line, fillCb, strokeCb);
|
|
22231
22298
|
}
|
|
22232
22299
|
};
|
|
22233
|
-
DefaultCanvasLineRender = __decorate$
|
|
22300
|
+
DefaultCanvasLineRender = __decorate$1w([injectable()], DefaultCanvasLineRender);
|
|
22234
22301
|
|
|
22235
22302
|
function drawAreaSegments(path, segPath, percent, params) {
|
|
22236
22303
|
var _a;
|
|
@@ -22370,7 +22437,7 @@
|
|
|
22370
22437
|
}
|
|
22371
22438
|
}
|
|
22372
22439
|
|
|
22373
|
-
var __decorate$
|
|
22440
|
+
var __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
22374
22441
|
var d,
|
|
22375
22442
|
c = arguments.length,
|
|
22376
22443
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -22438,16 +22505,27 @@
|
|
|
22438
22505
|
const {
|
|
22439
22506
|
points: points,
|
|
22440
22507
|
segments: segments,
|
|
22508
|
+
closePath: closePath
|
|
22509
|
+
} = area.attribute;
|
|
22510
|
+
let {
|
|
22441
22511
|
curveType = areaAttribute.curveType
|
|
22442
22512
|
} = area.attribute;
|
|
22443
|
-
if (segments && segments.length) {
|
|
22513
|
+
if (closePath && "linear" === curveType && (curveType = "linearClosed"), segments && segments.length) {
|
|
22444
22514
|
let startPoint, lastTopSeg;
|
|
22445
|
-
const topCaches = segments.map((seg, index) =>
|
|
22446
|
-
|
|
22447
|
-
|
|
22448
|
-
|
|
22449
|
-
|
|
22450
|
-
|
|
22515
|
+
const topCaches = segments.map((seg, index) => {
|
|
22516
|
+
if (seg.points.length <= 1 && 0 === index) return seg.points[0] && (lastTopSeg = {
|
|
22517
|
+
endX: seg.points[0].x,
|
|
22518
|
+
endY: seg.points[0].y
|
|
22519
|
+
}), null;
|
|
22520
|
+
1 === index ? startPoint = {
|
|
22521
|
+
x: lastTopSeg.endX,
|
|
22522
|
+
y: lastTopSeg.endY
|
|
22523
|
+
} : index > 1 && (startPoint.x = lastTopSeg.endX, startPoint.y = lastTopSeg.endY);
|
|
22524
|
+
const data = calcLineCache(seg.points, curveType, {
|
|
22525
|
+
startPoint: startPoint
|
|
22526
|
+
});
|
|
22527
|
+
return lastTopSeg = data, data;
|
|
22528
|
+
}).filter(item => !!item);
|
|
22451
22529
|
let lastBottomSeg;
|
|
22452
22530
|
const bottomCaches = [];
|
|
22453
22531
|
for (let i = segments.length - 1; i >= 0; i--) {
|
|
@@ -22491,10 +22569,11 @@
|
|
|
22491
22569
|
area.clearUpdateShapeTag();
|
|
22492
22570
|
}
|
|
22493
22571
|
if (Array.isArray(area.cacheArea)) {
|
|
22494
|
-
|
|
22572
|
+
const segments = area.attribute.segments.filter(item => item.points.length);
|
|
22573
|
+
if (1 === segments[0].points.length && segments.shift(), 1 === clipRange) {
|
|
22495
22574
|
let skip = !1;
|
|
22496
22575
|
area.cacheArea.forEach((cache, index) => {
|
|
22497
|
-
skip || (skip = this.drawSegmentItem(context, cache, doFill, fillOpacity, doStroke, strokeOpacity,
|
|
22576
|
+
skip || (skip = this.drawSegmentItem(context, cache, doFill, fillOpacity, doStroke, strokeOpacity, segments[index], [areaAttribute, area.attribute], clipRange, x, y, z, area, drawContext, fillCb, strokeCb));
|
|
22498
22577
|
});
|
|
22499
22578
|
} else {
|
|
22500
22579
|
const totalLength = area.cacheArea.reduce((l, c) => l + c.top.getLength(), 0),
|
|
@@ -22505,7 +22584,7 @@
|
|
|
22505
22584
|
if (skip) return;
|
|
22506
22585
|
const curSegLength = cache.top.getLength(),
|
|
22507
22586
|
_cr = (totalDrawLength - drawedLengthUntilLast) / curSegLength;
|
|
22508
|
-
drawedLengthUntilLast += curSegLength, _cr > 0 && (skip = this.drawSegmentItem(context, cache, doFill, fillOpacity, doStroke, strokeOpacity,
|
|
22587
|
+
drawedLengthUntilLast += curSegLength, _cr > 0 && (skip = this.drawSegmentItem(context, cache, doFill, fillOpacity, doStroke, strokeOpacity, segments[index], [areaAttribute, area.attribute], min(_cr, 1), x, y, z, area, drawContext, fillCb, strokeCb));
|
|
22509
22588
|
});
|
|
22510
22589
|
}
|
|
22511
22590
|
} else this.drawSegmentItem(context, area.cacheArea, doFill, fillOpacity, doStroke, strokeOpacity, area.attribute, areaAttribute, clipRange, x, y, z, area, drawContext, fillCb, strokeCb);
|
|
@@ -22591,9 +22670,9 @@
|
|
|
22591
22670
|
return !1;
|
|
22592
22671
|
}
|
|
22593
22672
|
};
|
|
22594
|
-
DefaultCanvasAreaRender = __decorate$
|
|
22673
|
+
DefaultCanvasAreaRender = __decorate$1v([injectable(), __param$L(0, inject(ContributionProvider)), __param$L(0, named(AreaRenderContribution)), __metadata$_("design:paramtypes", [Object])], DefaultCanvasAreaRender);
|
|
22595
22674
|
|
|
22596
|
-
var __decorate$
|
|
22675
|
+
var __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
22597
22676
|
var d,
|
|
22598
22677
|
c = arguments.length,
|
|
22599
22678
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -22661,7 +22740,7 @@
|
|
|
22661
22740
|
this.z = z, drawPathProxy(path, context, x, y, drawContext, params) || (this.drawShape(path, context, x, y, drawContext, params), this.z = 0, context.modelMatrix !== lastModelMatrix && mat4Allocate.free(context.modelMatrix), context.modelMatrix = lastModelMatrix), context.highPerformanceRestore();
|
|
22662
22741
|
}
|
|
22663
22742
|
};
|
|
22664
|
-
DefaultCanvasPathRender = __decorate$
|
|
22743
|
+
DefaultCanvasPathRender = __decorate$1u([injectable(), __param$K(0, inject(ContributionProvider)), __param$K(0, named(PathRenderContribution)), __metadata$Z("design:paramtypes", [Object])], DefaultCanvasPathRender);
|
|
22665
22744
|
|
|
22666
22745
|
const halfPi$1 = pi$1 / 2;
|
|
22667
22746
|
function createRectPath(path, x, y, width, height, rectCornerRadius) {
|
|
@@ -22718,7 +22797,7 @@
|
|
|
22718
22797
|
return path.closePath(), path;
|
|
22719
22798
|
}
|
|
22720
22799
|
|
|
22721
|
-
var __decorate$
|
|
22800
|
+
var __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
22722
22801
|
var d,
|
|
22723
22802
|
c = arguments.length,
|
|
22724
22803
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -22790,9 +22869,9 @@
|
|
|
22790
22869
|
drawPathProxy(rect, context, x, y, drawContext, params) || this.drawShape(rect, context, x, y, drawContext, params), context.highPerformanceRestore();
|
|
22791
22870
|
}
|
|
22792
22871
|
};
|
|
22793
|
-
DefaultCanvasRectRender = __decorate$
|
|
22872
|
+
DefaultCanvasRectRender = __decorate$1t([injectable(), __param$J(0, inject(ContributionProvider)), __param$J(0, named(RectRenderContribution)), __metadata$Y("design:paramtypes", [Object])], DefaultCanvasRectRender);
|
|
22794
22873
|
|
|
22795
|
-
var __decorate$
|
|
22874
|
+
var __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
22796
22875
|
var d,
|
|
22797
22876
|
c = arguments.length,
|
|
22798
22877
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -22874,9 +22953,9 @@
|
|
|
22874
22953
|
this.z = z, drawPathProxy(symbol, context, x, y, drawContext, params) || (this.drawShape(symbol, context, x, y, drawContext, params), this.z = 0, context.modelMatrix !== lastModelMatrix && mat4Allocate.free(context.modelMatrix), context.modelMatrix = lastModelMatrix), context.highPerformanceRestore();
|
|
22875
22954
|
}
|
|
22876
22955
|
};
|
|
22877
|
-
DefaultCanvasSymbolRender = __decorate$
|
|
22956
|
+
DefaultCanvasSymbolRender = __decorate$1s([injectable(), __param$I(0, inject(ContributionProvider)), __param$I(0, named(SymbolRenderContribution)), __metadata$X("design:paramtypes", [Object])], DefaultCanvasSymbolRender);
|
|
22878
22957
|
|
|
22879
|
-
var __decorate$
|
|
22958
|
+
var __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
22880
22959
|
var d,
|
|
22881
22960
|
c = arguments.length,
|
|
22882
22961
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -23097,9 +23176,9 @@
|
|
|
23097
23176
|
}
|
|
23098
23177
|
}
|
|
23099
23178
|
};
|
|
23100
|
-
DefaultCanvasTextRender = __decorate$
|
|
23179
|
+
DefaultCanvasTextRender = __decorate$1r([injectable(), __param$H(0, inject(ContributionProvider)), __param$H(0, named(TextRenderContribution)), __metadata$W("design:paramtypes", [Object])], DefaultCanvasTextRender);
|
|
23101
23180
|
|
|
23102
|
-
var __decorate$
|
|
23181
|
+
var __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
23103
23182
|
var d,
|
|
23104
23183
|
c = arguments.length,
|
|
23105
23184
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -23107,7 +23186,7 @@
|
|
|
23107
23186
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23108
23187
|
};
|
|
23109
23188
|
let AbstractGraphicRender = class {};
|
|
23110
|
-
AbstractGraphicRender = __decorate$
|
|
23189
|
+
AbstractGraphicRender = __decorate$1q([injectable()], AbstractGraphicRender);
|
|
23111
23190
|
|
|
23112
23191
|
function drawPolygon(path, points, x, y) {
|
|
23113
23192
|
path.moveTo(points[0].x + x, points[0].y + y);
|
|
@@ -23154,7 +23233,7 @@
|
|
|
23154
23233
|
};
|
|
23155
23234
|
}
|
|
23156
23235
|
|
|
23157
|
-
var __decorate$
|
|
23236
|
+
var __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
23158
23237
|
var d,
|
|
23159
23238
|
c = arguments.length,
|
|
23160
23239
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -23217,9 +23296,9 @@
|
|
|
23217
23296
|
drawPathProxy(polygon, context, x, y, drawContext, params) || this.drawShape(polygon, context, x, y, drawContext, params), context.highPerformanceRestore();
|
|
23218
23297
|
}
|
|
23219
23298
|
};
|
|
23220
|
-
DefaultCanvasPolygonRender = __decorate$
|
|
23299
|
+
DefaultCanvasPolygonRender = __decorate$1p([injectable(), __param$G(0, inject(ContributionProvider)), __param$G(0, named(PolygonRenderContribution)), __metadata$V("design:paramtypes", [Object])], DefaultCanvasPolygonRender);
|
|
23221
23300
|
|
|
23222
|
-
var __decorate$
|
|
23301
|
+
var __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
23223
23302
|
var d,
|
|
23224
23303
|
c = arguments.length,
|
|
23225
23304
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -23299,7 +23378,7 @@
|
|
|
23299
23378
|
}
|
|
23300
23379
|
}
|
|
23301
23380
|
};
|
|
23302
|
-
DefaultCanvasImageRender = __decorate$
|
|
23381
|
+
DefaultCanvasImageRender = __decorate$1o([injectable(), __param$F(0, inject(ContributionProvider)), __param$F(0, named(ImageRenderContribution)), __metadata$U("design:paramtypes", [Object])], DefaultCanvasImageRender);
|
|
23303
23382
|
|
|
23304
23383
|
const IncrementalDrawContribution = Symbol.for("IncrementalDrawContribution");
|
|
23305
23384
|
const ArcRender = Symbol.for("ArcRender");
|
|
@@ -23447,7 +23526,7 @@
|
|
|
23447
23526
|
}
|
|
23448
23527
|
const canvasAllocate = new DefaultCanvasAllocate();
|
|
23449
23528
|
|
|
23450
|
-
var __decorate$
|
|
23529
|
+
var __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
23451
23530
|
var d,
|
|
23452
23531
|
c = arguments.length,
|
|
23453
23532
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -23487,7 +23566,7 @@
|
|
|
23487
23566
|
} else context.highPerformanceSave(), context.setCommonStyle(graphic, graphic.attribute, x, y, graphicAttribute), context.fillStyle = background, context.fill(), context.highPerformanceRestore();
|
|
23488
23567
|
}
|
|
23489
23568
|
};
|
|
23490
|
-
DefaultBaseBackgroundRenderContribution = __decorate$
|
|
23569
|
+
DefaultBaseBackgroundRenderContribution = __decorate$1n([injectable()], DefaultBaseBackgroundRenderContribution);
|
|
23491
23570
|
let DefaultBaseInteractiveRenderContribution = class {
|
|
23492
23571
|
constructor(subRenderContribitions) {
|
|
23493
23572
|
this.subRenderContribitions = subRenderContribitions, this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
@@ -23498,7 +23577,7 @@
|
|
|
23498
23577
|
});
|
|
23499
23578
|
}
|
|
23500
23579
|
};
|
|
23501
|
-
DefaultBaseInteractiveRenderContribution = __decorate$
|
|
23580
|
+
DefaultBaseInteractiveRenderContribution = __decorate$1n([injectable(), __param$E(0, inject(ContributionProvider)), __param$E(0, named(InteractiveSubRenderContribution)), __metadata$T("design:paramtypes", [Object])], DefaultBaseInteractiveRenderContribution);
|
|
23502
23581
|
let DefaultBaseTextureRenderContribution = class {
|
|
23503
23582
|
constructor() {
|
|
23504
23583
|
this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 10;
|
|
@@ -23611,9 +23690,9 @@
|
|
|
23611
23690
|
pattern && (context.highPerformanceSave(), context.setCommonStyle(graphic, graphic.attribute, x, y, graphicAttribute), context.fillStyle = pattern, context.fill(), context.highPerformanceRestore());
|
|
23612
23691
|
}
|
|
23613
23692
|
};
|
|
23614
|
-
DefaultBaseTextureRenderContribution = __decorate$
|
|
23693
|
+
DefaultBaseTextureRenderContribution = __decorate$1n([injectable()], DefaultBaseTextureRenderContribution);
|
|
23615
23694
|
|
|
23616
|
-
var __decorate$
|
|
23695
|
+
var __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
23617
23696
|
var d,
|
|
23618
23697
|
c = arguments.length,
|
|
23619
23698
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -23685,21 +23764,21 @@
|
|
|
23685
23764
|
});
|
|
23686
23765
|
}
|
|
23687
23766
|
};
|
|
23688
|
-
DefaultArcRenderContribution = __decorate$
|
|
23767
|
+
DefaultArcRenderContribution = __decorate$1m([injectable()], DefaultArcRenderContribution);
|
|
23689
23768
|
let DefaultArcBackgroundRenderContribution = class extends DefaultBaseBackgroundRenderContribution {
|
|
23690
23769
|
constructor() {
|
|
23691
23770
|
super(...arguments), this.time = BaseRenderContributionTime.beforeFillStroke;
|
|
23692
23771
|
}
|
|
23693
23772
|
};
|
|
23694
|
-
DefaultArcBackgroundRenderContribution = __decorate$
|
|
23773
|
+
DefaultArcBackgroundRenderContribution = __decorate$1m([injectable()], DefaultArcBackgroundRenderContribution);
|
|
23695
23774
|
let DefaultArcTextureRenderContribution = class extends DefaultBaseTextureRenderContribution {
|
|
23696
23775
|
constructor() {
|
|
23697
23776
|
super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke;
|
|
23698
23777
|
}
|
|
23699
23778
|
};
|
|
23700
|
-
DefaultArcTextureRenderContribution = __decorate$
|
|
23779
|
+
DefaultArcTextureRenderContribution = __decorate$1m([injectable()], DefaultArcTextureRenderContribution);
|
|
23701
23780
|
|
|
23702
|
-
var __decorate$
|
|
23781
|
+
var __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
23703
23782
|
var d,
|
|
23704
23783
|
c = arguments.length,
|
|
23705
23784
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -23752,21 +23831,21 @@
|
|
|
23752
23831
|
}
|
|
23753
23832
|
}
|
|
23754
23833
|
};
|
|
23755
|
-
DefaultCircleRenderContribution = __decorate$
|
|
23834
|
+
DefaultCircleRenderContribution = __decorate$1l([injectable()], DefaultCircleRenderContribution);
|
|
23756
23835
|
let DefaultCircleBackgroundRenderContribution = class extends DefaultBaseBackgroundRenderContribution {
|
|
23757
23836
|
constructor() {
|
|
23758
23837
|
super(...arguments), this.time = BaseRenderContributionTime.beforeFillStroke;
|
|
23759
23838
|
}
|
|
23760
23839
|
};
|
|
23761
|
-
DefaultCircleBackgroundRenderContribution = __decorate$
|
|
23840
|
+
DefaultCircleBackgroundRenderContribution = __decorate$1l([injectable()], DefaultCircleBackgroundRenderContribution);
|
|
23762
23841
|
let DefaultCircleTextureRenderContribution = class extends DefaultBaseTextureRenderContribution {
|
|
23763
23842
|
constructor() {
|
|
23764
23843
|
super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke;
|
|
23765
23844
|
}
|
|
23766
23845
|
};
|
|
23767
|
-
DefaultCircleTextureRenderContribution = __decorate$
|
|
23846
|
+
DefaultCircleTextureRenderContribution = __decorate$1l([injectable()], DefaultCircleTextureRenderContribution);
|
|
23768
23847
|
|
|
23769
|
-
var __decorate$
|
|
23848
|
+
var __decorate$1k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
23770
23849
|
var d,
|
|
23771
23850
|
c = arguments.length,
|
|
23772
23851
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -23790,9 +23869,9 @@
|
|
|
23790
23869
|
} else context.highPerformanceSave(), context.fillStyle = background, context.fill(), context.highPerformanceRestore();
|
|
23791
23870
|
}
|
|
23792
23871
|
};
|
|
23793
|
-
DefaultGroupBackgroundRenderContribution = __decorate$
|
|
23872
|
+
DefaultGroupBackgroundRenderContribution = __decorate$1k([injectable()], DefaultGroupBackgroundRenderContribution);
|
|
23794
23873
|
|
|
23795
|
-
var __decorate$
|
|
23874
|
+
var __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
23796
23875
|
var d,
|
|
23797
23876
|
c = arguments.length,
|
|
23798
23877
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -23847,7 +23926,7 @@
|
|
|
23847
23926
|
}
|
|
23848
23927
|
}
|
|
23849
23928
|
};
|
|
23850
|
-
DefaultImageBackgroundRenderContribution = __decorate$
|
|
23929
|
+
DefaultImageBackgroundRenderContribution = __decorate$1j([injectable()], DefaultImageBackgroundRenderContribution);
|
|
23851
23930
|
function getActualPosition(graphic) {
|
|
23852
23931
|
const boundsPadding = parsePadding(graphic.attribute.boundsPadding),
|
|
23853
23932
|
bounds = graphic.AABBBounds;
|
|
@@ -23863,7 +23942,7 @@
|
|
|
23863
23942
|
};
|
|
23864
23943
|
}
|
|
23865
23944
|
|
|
23866
|
-
var __decorate$
|
|
23945
|
+
var __decorate$1i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
23867
23946
|
var d,
|
|
23868
23947
|
c = arguments.length,
|
|
23869
23948
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -23922,19 +24001,19 @@
|
|
|
23922
24001
|
}
|
|
23923
24002
|
}
|
|
23924
24003
|
};
|
|
23925
|
-
DefaultRectRenderContribution = __decorate$
|
|
24004
|
+
DefaultRectRenderContribution = __decorate$1i([injectable()], DefaultRectRenderContribution);
|
|
23926
24005
|
let DefaultRectBackgroundRenderContribution = class extends DefaultBaseBackgroundRenderContribution {
|
|
23927
24006
|
constructor() {
|
|
23928
24007
|
super(...arguments), this.time = BaseRenderContributionTime.beforeFillStroke;
|
|
23929
24008
|
}
|
|
23930
24009
|
};
|
|
23931
|
-
DefaultRectBackgroundRenderContribution = __decorate$
|
|
24010
|
+
DefaultRectBackgroundRenderContribution = __decorate$1i([injectable()], DefaultRectBackgroundRenderContribution);
|
|
23932
24011
|
let DefaultRectTextureRenderContribution = class extends DefaultBaseTextureRenderContribution {
|
|
23933
24012
|
constructor() {
|
|
23934
24013
|
super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke;
|
|
23935
24014
|
}
|
|
23936
24015
|
};
|
|
23937
|
-
DefaultRectTextureRenderContribution = __decorate$
|
|
24016
|
+
DefaultRectTextureRenderContribution = __decorate$1i([injectable()], DefaultRectTextureRenderContribution);
|
|
23938
24017
|
let SplitRectBeforeRenderContribution$1 = class SplitRectBeforeRenderContribution {
|
|
23939
24018
|
constructor() {
|
|
23940
24019
|
this.time = BaseRenderContributionTime.beforeFillStroke, this.useStyle = !0, this.order = 0;
|
|
@@ -23946,7 +24025,7 @@
|
|
|
23946
24025
|
Array.isArray(stroke) && stroke.some(s => !1 === s) && (doFillOrStroke.doStroke = !1);
|
|
23947
24026
|
}
|
|
23948
24027
|
};
|
|
23949
|
-
SplitRectBeforeRenderContribution$1 = __decorate$
|
|
24028
|
+
SplitRectBeforeRenderContribution$1 = __decorate$1i([injectable()], SplitRectBeforeRenderContribution$1);
|
|
23950
24029
|
let SplitRectAfterRenderContribution$1 = class SplitRectAfterRenderContribution {
|
|
23951
24030
|
constructor() {
|
|
23952
24031
|
this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
@@ -23966,9 +24045,9 @@
|
|
|
23966
24045
|
}
|
|
23967
24046
|
}
|
|
23968
24047
|
};
|
|
23969
|
-
SplitRectAfterRenderContribution$1 = __decorate$
|
|
24048
|
+
SplitRectAfterRenderContribution$1 = __decorate$1i([injectable()], SplitRectAfterRenderContribution$1);
|
|
23970
24049
|
|
|
23971
|
-
var __decorate$
|
|
24050
|
+
var __decorate$1h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
23972
24051
|
var d,
|
|
23973
24052
|
c = arguments.length,
|
|
23974
24053
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -24021,7 +24100,7 @@
|
|
|
24021
24100
|
}
|
|
24022
24101
|
}
|
|
24023
24102
|
};
|
|
24024
|
-
DefaultSymbolRenderContribution = __decorate$
|
|
24103
|
+
DefaultSymbolRenderContribution = __decorate$1h([injectable()], DefaultSymbolRenderContribution);
|
|
24025
24104
|
class DefaultSymbolBackgroundRenderContribution extends DefaultBaseBackgroundRenderContribution {
|
|
24026
24105
|
constructor() {
|
|
24027
24106
|
super(...arguments), this.time = BaseRenderContributionTime.beforeFillStroke;
|
|
@@ -24033,7 +24112,7 @@
|
|
|
24033
24112
|
}
|
|
24034
24113
|
}
|
|
24035
24114
|
|
|
24036
|
-
var __decorate$
|
|
24115
|
+
var __decorate$1g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24037
24116
|
var d,
|
|
24038
24117
|
c = arguments.length,
|
|
24039
24118
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -24080,7 +24159,7 @@
|
|
|
24080
24159
|
this.prepare(updateBounds), this.prepareRenderList(), this.beforeDraw(params), this.draw(params), this.afterDraw(params);
|
|
24081
24160
|
}
|
|
24082
24161
|
};
|
|
24083
|
-
DefaultRenderService = __decorate$
|
|
24162
|
+
DefaultRenderService = __decorate$1g([injectable(), __param$D(0, inject(DrawContribution)), __metadata$S("design:paramtypes", [Object])], DefaultRenderService);
|
|
24084
24163
|
|
|
24085
24164
|
var renderModule$1 = new ContainerModule(bind => {
|
|
24086
24165
|
bind(DefaultRenderService).toSelf(), bind(RenderService).toService(DefaultRenderService);
|
|
@@ -24192,7 +24271,7 @@
|
|
|
24192
24271
|
return result;
|
|
24193
24272
|
}
|
|
24194
24273
|
|
|
24195
|
-
var __decorate$
|
|
24274
|
+
var __decorate$1f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24196
24275
|
var d,
|
|
24197
24276
|
c = arguments.length,
|
|
24198
24277
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -24200,6 +24279,35 @@
|
|
|
24200
24279
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24201
24280
|
};
|
|
24202
24281
|
const PickItemInterceptor = Symbol.for("PickItemInterceptor");
|
|
24282
|
+
let ShadowRootPickItemInterceptorContribution = class {
|
|
24283
|
+
constructor() {
|
|
24284
|
+
this.order = 1;
|
|
24285
|
+
}
|
|
24286
|
+
afterPickItem(graphic, pickerService, point, pickParams, params) {
|
|
24287
|
+
return (graphic.attribute.shadowRootIdx > 0 || !graphic.attribute.shadowRootIdx) && this._pickItem(graphic, pickerService, point, pickParams, params);
|
|
24288
|
+
}
|
|
24289
|
+
beforePickItem(graphic, pickerService, point, pickParams, params) {
|
|
24290
|
+
return graphic.attribute.shadowRootIdx < 0 && this._pickItem(graphic, pickerService, point, pickParams, params);
|
|
24291
|
+
}
|
|
24292
|
+
_pickItem(graphic, pickerService, point, pickParams, params) {
|
|
24293
|
+
if (!graphic.shadowRoot) return !1;
|
|
24294
|
+
const {
|
|
24295
|
+
parentMatrix: parentMatrix
|
|
24296
|
+
} = params || {};
|
|
24297
|
+
if (!parentMatrix) return !1;
|
|
24298
|
+
const context = pickerService.pickContext;
|
|
24299
|
+
context.highPerformanceSave();
|
|
24300
|
+
const g = graphic.shadowRoot,
|
|
24301
|
+
currentGroupMatrix = matrixAllocate.allocateByObj(parentMatrix),
|
|
24302
|
+
newPoint = new Point(point.x, point.y);
|
|
24303
|
+
parentMatrix.transformPoint(newPoint, newPoint);
|
|
24304
|
+
const transMatrix = graphic.transMatrix;
|
|
24305
|
+
currentGroupMatrix.multiply(transMatrix.a, transMatrix.b, transMatrix.c, transMatrix.d, transMatrix.e, transMatrix.f);
|
|
24306
|
+
const result = pickerService.pickGroup(g, newPoint.clone(), currentGroupMatrix, pickParams);
|
|
24307
|
+
return context.highPerformanceRestore(), result;
|
|
24308
|
+
}
|
|
24309
|
+
};
|
|
24310
|
+
ShadowRootPickItemInterceptorContribution = __decorate$1f([injectable()], ShadowRootPickItemInterceptorContribution);
|
|
24203
24311
|
let Canvas3DPickItemInterceptor = class {
|
|
24204
24312
|
constructor() {
|
|
24205
24313
|
this.order = 1;
|
|
@@ -24259,9 +24367,9 @@
|
|
|
24259
24367
|
context.setTransformForCurrent();
|
|
24260
24368
|
}
|
|
24261
24369
|
};
|
|
24262
|
-
Canvas3DPickItemInterceptor = __decorate$
|
|
24370
|
+
Canvas3DPickItemInterceptor = __decorate$1f([injectable()], Canvas3DPickItemInterceptor);
|
|
24263
24371
|
|
|
24264
|
-
var __decorate$
|
|
24372
|
+
var __decorate$1e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24265
24373
|
var d,
|
|
24266
24374
|
c = arguments.length,
|
|
24267
24375
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -24299,11 +24407,18 @@
|
|
|
24299
24407
|
this.pickContext && (this.pickContext.inuse = !0), params.pickContext = this.pickContext, this.pickContext && this.pickContext.clearMatrix(!0, 1);
|
|
24300
24408
|
const parentMatrix = new Matrix(1, 0, 0, 1, offsetX, offsetY);
|
|
24301
24409
|
let group;
|
|
24302
|
-
for (let i = graphics.length - 1; i >= 0 && (graphics[i].isContainer ? result = this.pickGroup(graphics[i], point, parentMatrix, params) : result.graphic = this.pickItem(graphics[i], point, params), !result.graphic); i--) group || (group = result.group);
|
|
24303
|
-
|
|
24410
|
+
for (let i = graphics.length - 1; i >= 0 && (graphics[i].isContainer ? result = this.pickGroup(graphics[i], point, parentMatrix, params) : result.graphic = this.pickItem(graphics[i], point, parentMatrix, params), !result.graphic); i--) group || (group = result.group);
|
|
24411
|
+
if (result.graphic || (result.group = group), this.pickContext && (this.pickContext.inuse = !1), result.graphic) {
|
|
24412
|
+
let g = result.graphic;
|
|
24413
|
+
for (; g.parent;) g = g.parent;
|
|
24414
|
+
g.shadowHost && (result.params = {
|
|
24415
|
+
shadowTarget: result.graphic
|
|
24416
|
+
}, result.graphic = g.shadowHost);
|
|
24417
|
+
}
|
|
24418
|
+
return result;
|
|
24304
24419
|
}
|
|
24305
24420
|
containsPoint(graphic, point, params) {
|
|
24306
|
-
return !!this.pickItem(graphic, point, params);
|
|
24421
|
+
return !!this.pickItem(graphic, point, null, params);
|
|
24307
24422
|
}
|
|
24308
24423
|
pickGroup(group, point, parentMatrix, params) {
|
|
24309
24424
|
let result = {
|
|
@@ -24338,8 +24453,10 @@
|
|
|
24338
24453
|
currentGroupMatrix.transformPoint(newPoint, newPoint);
|
|
24339
24454
|
const insideGroup = group.AABBBounds.containsPoint(newPoint);
|
|
24340
24455
|
if (!insideGroup && !group.stage.camera) return result;
|
|
24456
|
+
const pickedItem = this.pickItem(group, newPoint.clone(), parentMatrix, params);
|
|
24457
|
+
pickedItem && (result.graphic = pickedItem);
|
|
24341
24458
|
const groupPicked = !1 !== group.attribute.pickable && insideGroup;
|
|
24342
|
-
return currentGroupMatrix.multiply(transMatrix.a, transMatrix.b, transMatrix.c, transMatrix.d, transMatrix.e, transMatrix.f), !1
|
|
24459
|
+
return currentGroupMatrix.multiply(transMatrix.a, transMatrix.b, transMatrix.c, transMatrix.d, transMatrix.e, transMatrix.f), !1 === group.attribute.childrenPickable || pickedItem || foreach(group, DefaultAttribute.zIndex, graphic => {
|
|
24343
24460
|
if (graphic.isContainer) {
|
|
24344
24461
|
const newPoint = new Point(point.x, point.y),
|
|
24345
24462
|
theme = getTheme(group).group,
|
|
@@ -24357,7 +24474,7 @@
|
|
|
24357
24474
|
scrollY = theme.scrollY
|
|
24358
24475
|
} = group.attribute;
|
|
24359
24476
|
newPoint.x -= scrollX, newPoint.y -= scrollY;
|
|
24360
|
-
const pickedItem = this.pickItem(graphic, newPoint, params);
|
|
24477
|
+
const pickedItem = this.pickItem(graphic, newPoint, parentMatrix, params);
|
|
24361
24478
|
result.graphic = pickedItem;
|
|
24362
24479
|
}
|
|
24363
24480
|
return !!result.graphic || !!result.group;
|
|
@@ -24368,9 +24485,9 @@
|
|
|
24368
24485
|
return picker || null;
|
|
24369
24486
|
}
|
|
24370
24487
|
};
|
|
24371
|
-
DefaultPickService = __decorate$
|
|
24488
|
+
DefaultPickService = __decorate$1e([injectable(), __param$C(0, inject(VGlobal)), __param$C(1, inject(ContributionProvider)), __param$C(1, named(PickItemInterceptor)), __metadata$R("design:paramtypes", [Object, Object])], DefaultPickService);
|
|
24372
24489
|
|
|
24373
|
-
var __decorate$
|
|
24490
|
+
var __decorate$1d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24374
24491
|
var d,
|
|
24375
24492
|
c = arguments.length,
|
|
24376
24493
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -24400,11 +24517,18 @@
|
|
|
24400
24517
|
};
|
|
24401
24518
|
const parentMatrix = new Matrix(1, 0, 0, 1, 0, 0);
|
|
24402
24519
|
let group;
|
|
24403
|
-
for (let i = 0; i < graphics.length && (graphics[i].isContainer ? result = this.pickGroup(graphics[i], point, parentMatrix, params) : result.graphic = this.pickItem(graphics[i], point, params), !result.graphic); i++) group || (group = result.group);
|
|
24404
|
-
|
|
24520
|
+
for (let i = 0; i < graphics.length && (graphics[i].isContainer ? result = this.pickGroup(graphics[i], point, parentMatrix, params) : result.graphic = this.pickItem(graphics[i], point, parentMatrix, params), !result.graphic); i++) group || (group = result.group);
|
|
24521
|
+
if (result.graphic || (result.group = group), result.graphic) {
|
|
24522
|
+
let g = result.graphic;
|
|
24523
|
+
for (; g.parent;) g = g.parent;
|
|
24524
|
+
g.shadowHost && (result.params = {
|
|
24525
|
+
shadowTarget: result.graphic
|
|
24526
|
+
}, result.graphic = g.shadowHost);
|
|
24527
|
+
}
|
|
24528
|
+
return result;
|
|
24405
24529
|
}
|
|
24406
24530
|
containsPoint(graphic, point, params) {
|
|
24407
|
-
return !!this.pickItem(graphic, point, params);
|
|
24531
|
+
return !!this.pickItem(graphic, point, null, params);
|
|
24408
24532
|
}
|
|
24409
24533
|
pickGroup(group, point, parentMatrix, params) {
|
|
24410
24534
|
let result = {
|
|
@@ -24421,16 +24545,16 @@
|
|
|
24421
24545
|
return parentMatrix.multiply(transMatrix.a, transMatrix.b, transMatrix.c, transMatrix.d, transMatrix.e, transMatrix.f), !1 !== group.attribute.childrenPickable && group.forEachChildren(graphic => {
|
|
24422
24546
|
if (graphic.isContainer) result = this.pickGroup(graphic, point, parentMatrix, params);else {
|
|
24423
24547
|
const newPoint = new Point(point.x, point.y);
|
|
24424
|
-
parentMatrix.transformPoint(newPoint, newPoint), result.graphic = this.pickItem(graphic, newPoint, params);
|
|
24548
|
+
parentMatrix.transformPoint(newPoint, newPoint), result.graphic = this.pickItem(graphic, newPoint, parentMatrix, params);
|
|
24425
24549
|
}
|
|
24426
24550
|
return !!result.graphic || !!result.group;
|
|
24427
24551
|
}), result.graphic || result.group || !groupPicked || (result.group = group), result;
|
|
24428
24552
|
}
|
|
24429
|
-
pickItem(graphic, point, params) {
|
|
24553
|
+
pickItem(graphic, point, parentMatrix, params) {
|
|
24430
24554
|
return !1 === graphic.attribute.pickable ? null : graphic.AABBBounds.containsPoint(point) ? graphic : null;
|
|
24431
24555
|
}
|
|
24432
24556
|
};
|
|
24433
|
-
DefaultGlobalPickerService = __decorate$
|
|
24557
|
+
DefaultGlobalPickerService = __decorate$1d([injectable(), __param$B(0, inject(VGlobal)), __metadata$Q("design:paramtypes", [Object])], DefaultGlobalPickerService);
|
|
24434
24558
|
|
|
24435
24559
|
function lookAt(out, eye, center, up) {
|
|
24436
24560
|
let x0, x1, x2, y0, y1, y2, z0, z1, z2, len;
|
|
@@ -24547,7 +24671,7 @@
|
|
|
24547
24671
|
}
|
|
24548
24672
|
}
|
|
24549
24673
|
|
|
24550
|
-
var __decorate$
|
|
24674
|
+
var __decorate$1c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24551
24675
|
var d,
|
|
24552
24676
|
c = arguments.length,
|
|
24553
24677
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -25056,9 +25180,9 @@
|
|
|
25056
25180
|
this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
|
|
25057
25181
|
}
|
|
25058
25182
|
};
|
|
25059
|
-
BrowserContext2d.env = "browser", BrowserContext2d = __decorate$
|
|
25183
|
+
BrowserContext2d.env = "browser", BrowserContext2d = __decorate$1c([injectable(), __metadata$P("design:paramtypes", [Object, Number])], BrowserContext2d);
|
|
25060
25184
|
|
|
25061
|
-
var __decorate$
|
|
25185
|
+
var __decorate$1b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25062
25186
|
var d,
|
|
25063
25187
|
c = arguments.length,
|
|
25064
25188
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -25202,7 +25326,7 @@
|
|
|
25202
25326
|
this.controled && this._nativeCanvas.parentElement && this._nativeCanvas.parentElement.removeChild(this._nativeCanvas);
|
|
25203
25327
|
}
|
|
25204
25328
|
};
|
|
25205
|
-
BrowserCanvas.env = "browser", BrowserCanvas = __decorate$
|
|
25329
|
+
BrowserCanvas.env = "browser", BrowserCanvas = __decorate$1b([injectable(), __metadata$O("design:paramtypes", [Object])], BrowserCanvas);
|
|
25206
25330
|
|
|
25207
25331
|
const CanvasArcPicker = Symbol.for("CanvasArcPicker");
|
|
25208
25332
|
const CanvasArc3dPicker = Symbol.for("CanvasArc3dPicker");
|
|
@@ -25219,6 +25343,7 @@
|
|
|
25219
25343
|
const CanvasPyramid3dPicker = Symbol.for("CanvasPyramid3dPicker");
|
|
25220
25344
|
const CanvasRichTextPicker = Symbol.for("CanvasRichTextPicker");
|
|
25221
25345
|
const CanvasGlyphPicker = Symbol.for("CanvasGlyphPicker");
|
|
25346
|
+
const CanvasGroupPicker = Symbol.for("CanvasGroupPicker");
|
|
25222
25347
|
const CanvasPickerContribution = Symbol.for("CanvasPickerContribution");
|
|
25223
25348
|
const MathArcPicker = Symbol.for("MathArcPicker");
|
|
25224
25349
|
const MathAreaPicker = Symbol.for("MathAreaPicker");
|
|
@@ -25232,7 +25357,7 @@
|
|
|
25232
25357
|
const MathGlyphPicker = Symbol.for("MathGlyphPicker");
|
|
25233
25358
|
const MathPickerContribution = Symbol.for("MathPickerContribution");
|
|
25234
25359
|
|
|
25235
|
-
var __decorate$
|
|
25360
|
+
var __decorate$1a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25236
25361
|
var d,
|
|
25237
25362
|
c = arguments.length,
|
|
25238
25363
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -25270,19 +25395,36 @@
|
|
|
25270
25395
|
};
|
|
25271
25396
|
this.pickCanvas = new BrowserCanvas(options), this.pickContext = this.pickCanvas.getContext("2d");
|
|
25272
25397
|
}
|
|
25273
|
-
pickItem(graphic, point, params) {
|
|
25398
|
+
pickItem(graphic, point, parentMatrix, params) {
|
|
25274
25399
|
if (!1 === graphic.attribute.pickable) return null;
|
|
25275
25400
|
if (this.InterceptorContributions.length) for (let i = 0; i < this.InterceptorContributions.length; i++) {
|
|
25276
25401
|
const drawContribution = this.InterceptorContributions[i];
|
|
25277
|
-
if (drawContribution.beforePickItem
|
|
25402
|
+
if (drawContribution.beforePickItem) {
|
|
25403
|
+
const ret = drawContribution.beforePickItem(graphic, this, point, params, {
|
|
25404
|
+
parentMatrix: parentMatrix
|
|
25405
|
+
});
|
|
25406
|
+
if (ret) return !0 === ret ? graphic : ret.graphic;
|
|
25407
|
+
}
|
|
25278
25408
|
}
|
|
25279
25409
|
const picker = this.pickerMap.get(graphic.numberType);
|
|
25280
|
-
|
|
25410
|
+
if (!picker) return null;
|
|
25411
|
+
const data = picker.contains(graphic, point, params) ? graphic : null;
|
|
25412
|
+
if (data) return data;
|
|
25413
|
+
if (this.InterceptorContributions.length) for (let i = 0; i < this.InterceptorContributions.length; i++) {
|
|
25414
|
+
const drawContribution = this.InterceptorContributions[i];
|
|
25415
|
+
if (drawContribution.afterPickItem) {
|
|
25416
|
+
const ret = drawContribution.afterPickItem(graphic, this, point, params, {
|
|
25417
|
+
parentMatrix: parentMatrix
|
|
25418
|
+
});
|
|
25419
|
+
if (ret) return !0 === ret ? graphic : ret.graphic;
|
|
25420
|
+
}
|
|
25421
|
+
}
|
|
25422
|
+
return data;
|
|
25281
25423
|
}
|
|
25282
25424
|
};
|
|
25283
|
-
__decorate$
|
|
25425
|
+
__decorate$1a([postConstruct(), __metadata$N("design:type", Function), __metadata$N("design:paramtypes", []), __metadata$N("design:returntype", void 0)], DefaultCanvasPickerService.prototype, "init", null), DefaultCanvasPickerService = __decorate$1a([injectable(), __param$A(0, inject(ContributionProvider)), __param$A(0, named(CanvasPickerContribution)), __param$A(1, inject(CanvasCirclePicker)), __param$A(2, inject(CanvasRectPicker)), __param$A(3, inject(CanvasArcPicker)), __param$A(4, inject(CanvasAreaPicker)), __param$A(5, inject(CanvasImagePicker)), __param$A(6, inject(CanvasLinePicker)), __param$A(7, inject(CanvasPathPicker)), __param$A(8, inject(CanvasSymbolPicker)), __param$A(9, inject(CanvasTextPicker)), __param$A(10, inject(CanvasPolygonPicker)), __param$A(11, inject(CanvasRichTextPicker)), __param$A(12, inject(DrawContribution)), __param$A(13, inject(VGlobal)), __param$A(14, inject(ContributionProvider)), __param$A(14, named(PickItemInterceptor)), __metadata$N("design:paramtypes", [Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])], DefaultCanvasPickerService);
|
|
25284
25426
|
|
|
25285
|
-
var __decorate$
|
|
25427
|
+
var __decorate$19 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25286
25428
|
var d,
|
|
25287
25429
|
c = arguments.length,
|
|
25288
25430
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -25496,9 +25638,9 @@
|
|
|
25496
25638
|
this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
|
|
25497
25639
|
}
|
|
25498
25640
|
};
|
|
25499
|
-
EmptyContext2d = __decorate$
|
|
25641
|
+
EmptyContext2d = __decorate$19([injectable(), __metadata$M("design:paramtypes", [Object, Number])], EmptyContext2d);
|
|
25500
25642
|
|
|
25501
|
-
var __decorate$
|
|
25643
|
+
var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25502
25644
|
var d,
|
|
25503
25645
|
c = arguments.length,
|
|
25504
25646
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -25527,16 +25669,16 @@
|
|
|
25527
25669
|
configure(global, env) {
|
|
25528
25670
|
this.pickContext = new EmptyContext2d(null, 1);
|
|
25529
25671
|
}
|
|
25530
|
-
pickItem(graphic, point, params) {
|
|
25672
|
+
pickItem(graphic, point, parentMatrix, params) {
|
|
25531
25673
|
if (!1 === graphic.attribute.pickable) return null;
|
|
25532
25674
|
const picker = this.pickerMap.get(graphic.numberType);
|
|
25533
25675
|
return picker && picker.contains(graphic, point, params) ? graphic : null;
|
|
25534
25676
|
}
|
|
25535
25677
|
};
|
|
25536
|
-
__decorate$
|
|
25678
|
+
__decorate$18([postConstruct(), __metadata$L("design:type", Function), __metadata$L("design:paramtypes", []), __metadata$L("design:returntype", void 0)], DefaultMathPickerService.prototype, "init", null), DefaultMathPickerService = __decorate$18([injectable(), __param$z(0, inject(ContributionProvider)), __param$z(0, named(MathPickerContribution)), __param$z(1, inject(VGlobal)), __param$z(2, inject(ContributionProvider)), __param$z(2, named(PickItemInterceptor)), __metadata$L("design:paramtypes", [Object, Object, Object])], DefaultMathPickerService);
|
|
25537
25679
|
|
|
25538
25680
|
var pickModule = new ContainerModule(bind => {
|
|
25539
|
-
bind(DefaultCanvasPickerService).toSelf().inSingletonScope(), bind(DefaultMathPickerService).toSelf().inSingletonScope(), bind(PickerService).toService(DefaultCanvasPickerService), bind(DefaultGlobalPickerService).toSelf().inSingletonScope(), bind(GlobalPickerService).toService(DefaultGlobalPickerService), bind(Canvas3DPickItemInterceptor).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(Canvas3DPickItemInterceptor), bindContributionProvider(bind, PickItemInterceptor);
|
|
25681
|
+
bind(DefaultCanvasPickerService).toSelf().inSingletonScope(), bind(DefaultMathPickerService).toSelf().inSingletonScope(), bind(PickerService).toService(DefaultCanvasPickerService), bind(DefaultGlobalPickerService).toSelf().inSingletonScope(), bind(GlobalPickerService).toService(DefaultGlobalPickerService), bind(Canvas3DPickItemInterceptor).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(Canvas3DPickItemInterceptor), bind(ShadowRootPickItemInterceptorContribution).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(ShadowRootPickItemInterceptorContribution), bindContributionProvider(bind, PickItemInterceptor);
|
|
25540
25682
|
});
|
|
25541
25683
|
|
|
25542
25684
|
var graphicModule = new ContainerModule(bind => {
|
|
@@ -25546,7 +25688,7 @@
|
|
|
25546
25688
|
const AutoEnablePlugins = Symbol.for("AutoEnablePlugins");
|
|
25547
25689
|
const PluginService = Symbol.for("PluginService");
|
|
25548
25690
|
|
|
25549
|
-
var __decorate$
|
|
25691
|
+
var __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25550
25692
|
var d,
|
|
25551
25693
|
c = arguments.length,
|
|
25552
25694
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -25593,13 +25735,13 @@
|
|
|
25593
25735
|
}), this.onRegisterPlugin = [];
|
|
25594
25736
|
}
|
|
25595
25737
|
};
|
|
25596
|
-
DefaultPluginService = __decorate$
|
|
25738
|
+
DefaultPluginService = __decorate$17([injectable(), __param$y(0, inject(ContributionProvider)), __param$y(0, named(AutoEnablePlugins)), __metadata$K("design:paramtypes", [Object])], DefaultPluginService);
|
|
25597
25739
|
|
|
25598
25740
|
var pluginModule = new ContainerModule(bind => {
|
|
25599
25741
|
bind(DefaultPluginService).toSelf(), bind(PluginService).toService(DefaultPluginService), bindContributionProviderNoSingletonScope(bind, AutoEnablePlugins);
|
|
25600
25742
|
});
|
|
25601
25743
|
|
|
25602
|
-
var __decorate$
|
|
25744
|
+
var __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25603
25745
|
var d,
|
|
25604
25746
|
c = arguments.length,
|
|
25605
25747
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -25672,9 +25814,9 @@
|
|
|
25672
25814
|
};
|
|
25673
25815
|
}
|
|
25674
25816
|
};
|
|
25675
|
-
BaseEnvContribution = __decorate$
|
|
25817
|
+
BaseEnvContribution = __decorate$16([injectable()], BaseEnvContribution);
|
|
25676
25818
|
|
|
25677
|
-
var __decorate$
|
|
25819
|
+
var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25678
25820
|
var d,
|
|
25679
25821
|
c = arguments.length,
|
|
25680
25822
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -25868,7 +26010,7 @@
|
|
|
25868
26010
|
};
|
|
25869
26011
|
}
|
|
25870
26012
|
};
|
|
25871
|
-
BrowserEnvContribution = __decorate$
|
|
26013
|
+
BrowserEnvContribution = __decorate$15([injectable(), __metadata$J("design:paramtypes", [])], BrowserEnvContribution);
|
|
25872
26014
|
|
|
25873
26015
|
function loadFeishuContributions() {
|
|
25874
26016
|
container.rebind(PickerService).toService(DefaultMathPickerService);
|
|
@@ -25877,7 +26019,7 @@
|
|
|
25877
26019
|
container.rebind(PickerService).toService(DefaultMathPickerService);
|
|
25878
26020
|
}
|
|
25879
26021
|
|
|
25880
|
-
var __decorate$
|
|
26022
|
+
var __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25881
26023
|
var d,
|
|
25882
26024
|
c = arguments.length,
|
|
25883
26025
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -25981,9 +26123,9 @@
|
|
|
25981
26123
|
return (null === (_a = null == event ? void 0 : event.type) || void 0 === _a ? void 0 : _a.startsWith("mouse")) ? event : null;
|
|
25982
26124
|
}
|
|
25983
26125
|
};
|
|
25984
|
-
FeishuEnvContribution = __decorate$
|
|
26126
|
+
FeishuEnvContribution = __decorate$14([injectable(), __metadata$I("design:paramtypes", [])], FeishuEnvContribution);
|
|
25985
26127
|
|
|
25986
|
-
var __decorate$
|
|
26128
|
+
var __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25987
26129
|
var d,
|
|
25988
26130
|
c = arguments.length,
|
|
25989
26131
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26115,9 +26257,9 @@
|
|
|
26115
26257
|
}
|
|
26116
26258
|
release() {}
|
|
26117
26259
|
};
|
|
26118
|
-
TaroEnvContribution = __decorate$
|
|
26260
|
+
TaroEnvContribution = __decorate$13([injectable(), __metadata$H("design:paramtypes", [])], TaroEnvContribution);
|
|
26119
26261
|
|
|
26120
|
-
var __decorate$
|
|
26262
|
+
var __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26121
26263
|
var d,
|
|
26122
26264
|
c = arguments.length,
|
|
26123
26265
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26237,9 +26379,9 @@
|
|
|
26237
26379
|
}
|
|
26238
26380
|
release() {}
|
|
26239
26381
|
};
|
|
26240
|
-
LynxEnvContribution = __decorate$
|
|
26382
|
+
LynxEnvContribution = __decorate$12([injectable(), __metadata$G("design:paramtypes", [])], LynxEnvContribution);
|
|
26241
26383
|
|
|
26242
|
-
var __decorate$
|
|
26384
|
+
var __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26243
26385
|
var d,
|
|
26244
26386
|
c = arguments.length,
|
|
26245
26387
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26325,9 +26467,9 @@
|
|
|
26325
26467
|
release() {}
|
|
26326
26468
|
createOffscreenCanvas(params) {}
|
|
26327
26469
|
};
|
|
26328
|
-
NodeEnvContribution = __decorate$
|
|
26470
|
+
NodeEnvContribution = __decorate$11([injectable()], NodeEnvContribution);
|
|
26329
26471
|
|
|
26330
|
-
var __decorate
|
|
26472
|
+
var __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26331
26473
|
var d,
|
|
26332
26474
|
c = arguments.length,
|
|
26333
26475
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26450,13 +26592,13 @@
|
|
|
26450
26592
|
return (null === (_a = null == event ? void 0 : event.type) || void 0 === _a ? void 0 : _a.startsWith("mouse")) ? event : null;
|
|
26451
26593
|
}
|
|
26452
26594
|
};
|
|
26453
|
-
WxEnvContribution = __decorate
|
|
26595
|
+
WxEnvContribution = __decorate$10([injectable(), __metadata$F("design:paramtypes", [])], WxEnvContribution);
|
|
26454
26596
|
|
|
26455
26597
|
var envModules = new ContainerModule(bind => {
|
|
26456
26598
|
bind(BrowserEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(BrowserEnvContribution), bind(FeishuEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(FeishuEnvContribution), bind(TaroEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TaroEnvContribution), bind(LynxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(LynxEnvContribution), bind(WxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(WxEnvContribution), bind(NodeEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(NodeEnvContribution), bindContributionProvider(bind, EnvContribution);
|
|
26457
26599
|
});
|
|
26458
26600
|
|
|
26459
|
-
var __decorate
|
|
26601
|
+
var __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26460
26602
|
var d,
|
|
26461
26603
|
c = arguments.length,
|
|
26462
26604
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26490,9 +26632,9 @@
|
|
|
26490
26632
|
};
|
|
26491
26633
|
}
|
|
26492
26634
|
};
|
|
26493
|
-
BaseWindowHandlerContribution = __decorate
|
|
26635
|
+
BaseWindowHandlerContribution = __decorate$$([injectable(), __metadata$E("design:paramtypes", [])], BaseWindowHandlerContribution);
|
|
26494
26636
|
|
|
26495
|
-
var __decorate$
|
|
26637
|
+
var __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26496
26638
|
var d,
|
|
26497
26639
|
c = arguments.length,
|
|
26498
26640
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26546,7 +26688,7 @@
|
|
|
26546
26688
|
this._canvasIsIntersecting = this.isElementVisible(this.canvas.nativeCanvas);
|
|
26547
26689
|
const observer = new IntersectionObserver((entries, observer) => {
|
|
26548
26690
|
entries.forEach(entry => {
|
|
26549
|
-
this._canvasIsIntersecting !== entry.isIntersecting ? (this._canvasIsIntersecting = entry.isIntersecting, this._onVisibleChangeCb(entry.isIntersecting)) : this._canvasIsIntersecting = entry.isIntersecting;
|
|
26691
|
+
this._canvasIsIntersecting !== entry.isIntersecting ? (this._canvasIsIntersecting = entry.isIntersecting, this._onVisibleChangeCb && this._onVisibleChangeCb(entry.isIntersecting)) : this._canvasIsIntersecting = entry.isIntersecting;
|
|
26550
26692
|
});
|
|
26551
26693
|
});
|
|
26552
26694
|
observer && observer.observe(this.canvas.nativeCanvas);
|
|
@@ -26657,9 +26799,9 @@
|
|
|
26657
26799
|
return this.global.getElementTopLeft(this.canvas.nativeCanvas, baseWindow);
|
|
26658
26800
|
}
|
|
26659
26801
|
};
|
|
26660
|
-
BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution = __decorate$
|
|
26802
|
+
BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution = __decorate$_([injectable(), __param$x(0, inject(VGlobal)), __metadata$D("design:paramtypes", [Object])], BrowserWindowHandlerContribution);
|
|
26661
26803
|
|
|
26662
|
-
var __decorate$
|
|
26804
|
+
var __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26663
26805
|
var d,
|
|
26664
26806
|
c = arguments.length,
|
|
26665
26807
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26704,9 +26846,9 @@
|
|
|
26704
26846
|
return null;
|
|
26705
26847
|
}
|
|
26706
26848
|
};
|
|
26707
|
-
FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$
|
|
26849
|
+
FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$Z([injectable()], FeishuContext2d);
|
|
26708
26850
|
|
|
26709
|
-
var __decorate$
|
|
26851
|
+
var __decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26710
26852
|
var d,
|
|
26711
26853
|
c = arguments.length,
|
|
26712
26854
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26811,9 +26953,9 @@
|
|
|
26811
26953
|
}
|
|
26812
26954
|
release() {}
|
|
26813
26955
|
};
|
|
26814
|
-
FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$
|
|
26956
|
+
FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$Y([injectable(), __metadata$C("design:paramtypes", [Object])], FeishuCanvas);
|
|
26815
26957
|
|
|
26816
|
-
var __decorate$
|
|
26958
|
+
var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26817
26959
|
var d,
|
|
26818
26960
|
c = arguments.length,
|
|
26819
26961
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26958,9 +27100,9 @@
|
|
|
26958
27100
|
context.nativeContext.save(), context.nativeContext.setTransform(dpr, 0, 0, dpr, 0, 0), context.clearRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1), color && (context.fillStyle = color, context.fillRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1)), context.nativeContext.restore();
|
|
26959
27101
|
}
|
|
26960
27102
|
};
|
|
26961
|
-
FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$
|
|
27103
|
+
FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$X([injectable(), __param$w(0, inject(VGlobal)), __metadata$B("design:paramtypes", [Object])], FeishuWindowHandlerContribution);
|
|
26962
27104
|
|
|
26963
|
-
var __decorate$
|
|
27105
|
+
var __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26964
27106
|
var d,
|
|
26965
27107
|
c = arguments.length,
|
|
26966
27108
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27024,9 +27166,9 @@
|
|
|
27024
27166
|
return null;
|
|
27025
27167
|
}
|
|
27026
27168
|
};
|
|
27027
|
-
TaroContext2d.env = "taro", TaroContext2d = __decorate$
|
|
27169
|
+
TaroContext2d.env = "taro", TaroContext2d = __decorate$W([injectable()], TaroContext2d);
|
|
27028
27170
|
|
|
27029
|
-
var __decorate$
|
|
27171
|
+
var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27030
27172
|
var d,
|
|
27031
27173
|
c = arguments.length,
|
|
27032
27174
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27131,9 +27273,9 @@
|
|
|
27131
27273
|
}
|
|
27132
27274
|
release() {}
|
|
27133
27275
|
};
|
|
27134
|
-
TaroCanvas.env = "taro", TaroCanvas = __decorate$
|
|
27276
|
+
TaroCanvas.env = "taro", TaroCanvas = __decorate$V([injectable(), __metadata$A("design:paramtypes", [Object])], TaroCanvas);
|
|
27135
27277
|
|
|
27136
|
-
var __decorate$
|
|
27278
|
+
var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27137
27279
|
var d,
|
|
27138
27280
|
c = arguments.length,
|
|
27139
27281
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27288,9 +27430,9 @@
|
|
|
27288
27430
|
context.nativeContext.save(), context.nativeContext.setTransform(dpr, 0, 0, dpr, 0, 0), context.clearRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1), color && (context.fillStyle = color, context.fillRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1)), context.nativeContext.restore();
|
|
27289
27431
|
}
|
|
27290
27432
|
};
|
|
27291
|
-
TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$
|
|
27433
|
+
TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$U([injectable(), __param$v(0, inject(VGlobal)), __metadata$z("design:paramtypes", [Object])], TaroWindowHandlerContribution);
|
|
27292
27434
|
|
|
27293
|
-
var __decorate$
|
|
27435
|
+
var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27294
27436
|
var d,
|
|
27295
27437
|
c = arguments.length,
|
|
27296
27438
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27344,9 +27486,9 @@
|
|
|
27344
27486
|
});
|
|
27345
27487
|
}
|
|
27346
27488
|
};
|
|
27347
|
-
LynxContext2d.env = "lynx", LynxContext2d = __decorate$
|
|
27489
|
+
LynxContext2d.env = "lynx", LynxContext2d = __decorate$T([injectable()], LynxContext2d);
|
|
27348
27490
|
|
|
27349
|
-
var __decorate$
|
|
27491
|
+
var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27350
27492
|
var d,
|
|
27351
27493
|
c = arguments.length,
|
|
27352
27494
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27451,9 +27593,9 @@
|
|
|
27451
27593
|
}
|
|
27452
27594
|
release() {}
|
|
27453
27595
|
};
|
|
27454
|
-
LynxCanvas.env = "lynx", LynxCanvas = __decorate$
|
|
27596
|
+
LynxCanvas.env = "lynx", LynxCanvas = __decorate$S([injectable(), __metadata$y("design:paramtypes", [Object])], LynxCanvas);
|
|
27455
27597
|
|
|
27456
|
-
var __decorate$
|
|
27598
|
+
var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27457
27599
|
var d,
|
|
27458
27600
|
c = arguments.length,
|
|
27459
27601
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27598,9 +27740,9 @@
|
|
|
27598
27740
|
context.nativeContext.save(), context.nativeContext.setTransform(dpr, 0, 0, dpr, 0, 0), context.clearRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1), color && (context.fillStyle = color, context.fillRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1)), context.nativeContext.restore();
|
|
27599
27741
|
}
|
|
27600
27742
|
};
|
|
27601
|
-
LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$
|
|
27743
|
+
LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$R([injectable(), __param$u(0, inject(VGlobal)), __metadata$x("design:paramtypes", [Object])], LynxWindowHandlerContribution);
|
|
27602
27744
|
|
|
27603
|
-
var __decorate$
|
|
27745
|
+
var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27604
27746
|
var d,
|
|
27605
27747
|
c = arguments.length,
|
|
27606
27748
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27619,9 +27761,9 @@
|
|
|
27619
27761
|
}
|
|
27620
27762
|
release() {}
|
|
27621
27763
|
};
|
|
27622
|
-
NodeContext2d.env = "node", NodeContext2d = __decorate$
|
|
27764
|
+
NodeContext2d.env = "node", NodeContext2d = __decorate$Q([injectable(), __metadata$w("design:paramtypes", [Object, Number])], NodeContext2d);
|
|
27623
27765
|
|
|
27624
|
-
var __decorate$
|
|
27766
|
+
var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27625
27767
|
var d,
|
|
27626
27768
|
c = arguments.length,
|
|
27627
27769
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27720,9 +27862,9 @@
|
|
|
27720
27862
|
this._nativeCanvas.release && isFunction(this._nativeCanvas.release) && this._nativeCanvas.release();
|
|
27721
27863
|
}
|
|
27722
27864
|
};
|
|
27723
|
-
NodeCanvas.env = "node", NodeCanvas = __decorate$
|
|
27865
|
+
NodeCanvas.env = "node", NodeCanvas = __decorate$P([injectable(), __metadata$v("design:paramtypes", [Object])], NodeCanvas);
|
|
27724
27866
|
|
|
27725
|
-
var __decorate$
|
|
27867
|
+
var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27726
27868
|
var d,
|
|
27727
27869
|
c = arguments.length,
|
|
27728
27870
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27823,9 +27965,9 @@
|
|
|
27823
27965
|
}
|
|
27824
27966
|
clearViewBox(vb, color) {}
|
|
27825
27967
|
};
|
|
27826
|
-
NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$
|
|
27968
|
+
NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$O([injectable(), __param$t(0, inject(VGlobal)), __metadata$u("design:paramtypes", [Object])], NodeWindowHandlerContribution);
|
|
27827
27969
|
|
|
27828
|
-
var __decorate$
|
|
27970
|
+
var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27829
27971
|
var d,
|
|
27830
27972
|
c = arguments.length,
|
|
27831
27973
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27838,9 +27980,9 @@
|
|
|
27838
27980
|
return null;
|
|
27839
27981
|
}
|
|
27840
27982
|
};
|
|
27841
|
-
WxContext2d.env = "wx", WxContext2d = __decorate$
|
|
27983
|
+
WxContext2d.env = "wx", WxContext2d = __decorate$N([injectable()], WxContext2d);
|
|
27842
27984
|
|
|
27843
|
-
var __decorate$
|
|
27985
|
+
var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27844
27986
|
var d,
|
|
27845
27987
|
c = arguments.length,
|
|
27846
27988
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27945,9 +28087,9 @@
|
|
|
27945
28087
|
}
|
|
27946
28088
|
release() {}
|
|
27947
28089
|
};
|
|
27948
|
-
WxCanvas.env = "wx", WxCanvas = __decorate$
|
|
28090
|
+
WxCanvas.env = "wx", WxCanvas = __decorate$M([injectable(), __metadata$t("design:paramtypes", [Object])], WxCanvas);
|
|
27949
28091
|
|
|
27950
|
-
var __decorate$
|
|
28092
|
+
var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27951
28093
|
var d,
|
|
27952
28094
|
c = arguments.length,
|
|
27953
28095
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28093,7 +28235,7 @@
|
|
|
28093
28235
|
context.nativeContext.save(), context.nativeContext.setTransform(dpr, 0, 0, dpr, 0, 0), context.clearRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1), color && (context.fillStyle = color, context.fillRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1)), context.nativeContext.restore();
|
|
28094
28236
|
}
|
|
28095
28237
|
};
|
|
28096
|
-
WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$
|
|
28238
|
+
WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$L([injectable(), __param$s(0, inject(VGlobal)), __metadata$s("design:paramtypes", [Object])], WxWindowHandlerContribution);
|
|
28097
28239
|
|
|
28098
28240
|
var windowModules = new ContainerModule(bind => {
|
|
28099
28241
|
bind(BrowserWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(BrowserWindowHandlerContribution)).whenTargetNamed(BrowserWindowHandlerContribution.env), bind(FeishuWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(FeishuWindowHandlerContribution)).whenTargetNamed(FeishuWindowHandlerContribution.env), bind(TaroWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(TaroWindowHandlerContribution)).whenTargetNamed(TaroWindowHandlerContribution.env), bind(LynxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(LynxWindowHandlerContribution)).whenTargetNamed(LynxWindowHandlerContribution.env), bind(WxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(WxWindowHandlerContribution)).whenTargetNamed(WxWindowHandlerContribution.env), bind(NodeWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(NodeWindowHandlerContribution)).whenTargetNamed(NodeWindowHandlerContribution.env);
|
|
@@ -28103,7 +28245,7 @@
|
|
|
28103
28245
|
bind(DefaultTextMeasureContribution).toSelf().inSingletonScope(), bind(TextMeasureContribution).toService(DefaultTextMeasureContribution), bindContributionProvider(bind, TextMeasureContribution);
|
|
28104
28246
|
});
|
|
28105
28247
|
|
|
28106
|
-
var __decorate$
|
|
28248
|
+
var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28107
28249
|
var d,
|
|
28108
28250
|
c = arguments.length,
|
|
28109
28251
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28184,9 +28326,9 @@
|
|
|
28184
28326
|
this.canvas.release();
|
|
28185
28327
|
}
|
|
28186
28328
|
};
|
|
28187
|
-
CanvasLayerHandlerContribution = __decorate$
|
|
28329
|
+
CanvasLayerHandlerContribution = __decorate$K([injectable(), __param$r(0, inject(VGlobal)), __metadata$r("design:paramtypes", [Object])], CanvasLayerHandlerContribution);
|
|
28188
28330
|
|
|
28189
|
-
var __decorate$
|
|
28331
|
+
var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28190
28332
|
var d,
|
|
28191
28333
|
c = arguments.length,
|
|
28192
28334
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28260,7 +28402,7 @@
|
|
|
28260
28402
|
}
|
|
28261
28403
|
merge(layerHandlers) {}
|
|
28262
28404
|
};
|
|
28263
|
-
OffscreenLayerHandlerContribution = __decorate$
|
|
28405
|
+
OffscreenLayerHandlerContribution = __decorate$J([injectable(), __param$q(0, inject(VGlobal)), __metadata$q("design:paramtypes", [Object])], OffscreenLayerHandlerContribution);
|
|
28264
28406
|
|
|
28265
28407
|
var layerHandlerModules = new ContainerModule(bind => {
|
|
28266
28408
|
bind(CanvasLayerHandlerContribution).toSelf(), bind(OffscreenLayerHandlerContribution).toSelf(), bind(LayerHandlerContribution).toService(CanvasLayerHandlerContribution);
|
|
@@ -28270,7 +28412,7 @@
|
|
|
28270
28412
|
container.load(envModules), container.load(windowModules), container.load(textMeasureModules), container.load(layerHandlerModules);
|
|
28271
28413
|
}
|
|
28272
28414
|
|
|
28273
|
-
var __decorate$
|
|
28415
|
+
var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28274
28416
|
var d,
|
|
28275
28417
|
c = arguments.length,
|
|
28276
28418
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28284,6 +28426,12 @@
|
|
|
28284
28426
|
this.order = 1;
|
|
28285
28427
|
}
|
|
28286
28428
|
afterDrawItem(graphic, renderService, drawContext, drawContribution, params) {
|
|
28429
|
+
return (graphic.attribute.shadowRootIdx > 0 || !graphic.attribute.shadowRootIdx) && this.drawItem(graphic, renderService, drawContext, drawContribution, params), !1;
|
|
28430
|
+
}
|
|
28431
|
+
beforeDrawItem(graphic, renderService, drawContext, drawContribution, params) {
|
|
28432
|
+
return graphic.attribute.shadowRootIdx < 0 && this.drawItem(graphic, renderService, drawContext, drawContribution, params), !1;
|
|
28433
|
+
}
|
|
28434
|
+
drawItem(graphic, renderService, drawContext, drawContribution, params) {
|
|
28287
28435
|
if (!graphic.shadowRoot) return !1;
|
|
28288
28436
|
const {
|
|
28289
28437
|
context: context
|
|
@@ -28296,7 +28444,7 @@
|
|
|
28296
28444
|
return drawContribution.renderGroup(graphic.shadowRoot, drawContext), context.highPerformanceRestore(), drawContribution.dirtyBounds && drawContribution.backupDirtyBounds && drawContribution.dirtyBounds.copy(tempDirtyBounds), !0;
|
|
28297
28445
|
}
|
|
28298
28446
|
};
|
|
28299
|
-
ShadowRootDrawItemInterceptorContribution = __decorate$
|
|
28447
|
+
ShadowRootDrawItemInterceptorContribution = __decorate$I([injectable()], ShadowRootDrawItemInterceptorContribution);
|
|
28300
28448
|
let Canvas3DDrawItemInterceptor = class {
|
|
28301
28449
|
constructor() {
|
|
28302
28450
|
this.order = 1;
|
|
@@ -28369,9 +28517,9 @@
|
|
|
28369
28517
|
context.setTransformForCurrent();
|
|
28370
28518
|
}
|
|
28371
28519
|
};
|
|
28372
|
-
Canvas3DDrawItemInterceptor = __decorate$
|
|
28520
|
+
Canvas3DDrawItemInterceptor = __decorate$I([injectable()], Canvas3DDrawItemInterceptor);
|
|
28373
28521
|
|
|
28374
|
-
var __decorate$
|
|
28522
|
+
var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28375
28523
|
var d,
|
|
28376
28524
|
c = arguments.length,
|
|
28377
28525
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28543,9 +28691,9 @@
|
|
|
28543
28691
|
}
|
|
28544
28692
|
afterDraw(renderService, drawParams) {}
|
|
28545
28693
|
};
|
|
28546
|
-
__decorate$
|
|
28694
|
+
__decorate$H([inject(VGlobal), __metadata$p("design:type", Object)], DefaultDrawContribution.prototype, "global", void 0), __decorate$H([postConstruct(), __metadata$p("design:type", Function), __metadata$p("design:paramtypes", []), __metadata$p("design:returntype", void 0)], DefaultDrawContribution.prototype, "init", null), DefaultDrawContribution = __decorate$H([injectable(), __param$p(0, multiInject(GraphicRender)), __param$p(1, inject(RenderSelector)), __param$p(2, inject(LayerService)), __param$p(3, inject(ContributionProvider)), __param$p(3, named(DrawItemInterceptor)), __metadata$p("design:paramtypes", [Array, Object, Object, Object])], DefaultDrawContribution);
|
|
28547
28695
|
|
|
28548
|
-
var __decorate$
|
|
28696
|
+
var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28549
28697
|
var d,
|
|
28550
28698
|
c = arguments.length,
|
|
28551
28699
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28557,9 +28705,9 @@
|
|
|
28557
28705
|
return null;
|
|
28558
28706
|
}
|
|
28559
28707
|
};
|
|
28560
|
-
DefaultRenderSelector = __decorate$
|
|
28708
|
+
DefaultRenderSelector = __decorate$G([injectable()], DefaultRenderSelector);
|
|
28561
28709
|
|
|
28562
|
-
var __decorate$
|
|
28710
|
+
var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28563
28711
|
var d,
|
|
28564
28712
|
c = arguments.length,
|
|
28565
28713
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28650,9 +28798,9 @@
|
|
|
28650
28798
|
}) : clip ? context.restore() : context.highPerformanceRestore();
|
|
28651
28799
|
}
|
|
28652
28800
|
};
|
|
28653
|
-
DefaultCanvasGroupRender = __decorate$
|
|
28801
|
+
DefaultCanvasGroupRender = __decorate$F([injectable(), __param$o(0, inject(ContributionProvider)), __param$o(0, named(GroupRenderContribution)), __metadata$o("design:paramtypes", [Object])], DefaultCanvasGroupRender);
|
|
28654
28802
|
|
|
28655
|
-
var __decorate$
|
|
28803
|
+
var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28656
28804
|
var d,
|
|
28657
28805
|
c = arguments.length,
|
|
28658
28806
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28703,9 +28851,9 @@
|
|
|
28703
28851
|
}), context.setShadowStyle && context.setShadowStyle(line, attribute, defaultAttribute), context.setStrokeStyle(line, attribute, offsetX, offsetY, defaultAttribute), context.stroke());
|
|
28704
28852
|
}
|
|
28705
28853
|
};
|
|
28706
|
-
DefaultIncrementalCanvasLineRender = __decorate$
|
|
28854
|
+
DefaultIncrementalCanvasLineRender = __decorate$E([injectable()], DefaultIncrementalCanvasLineRender);
|
|
28707
28855
|
|
|
28708
|
-
var __decorate$
|
|
28856
|
+
var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28709
28857
|
var d,
|
|
28710
28858
|
c = arguments.length,
|
|
28711
28859
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28748,10 +28896,10 @@
|
|
|
28748
28896
|
}), context.setShadowStyle && context.setShadowStyle(area, attribute, defaultAttribute), context.setCommonStyle(area, attribute, offsetX, offsetY, defaultAttribute), context.fill());
|
|
28749
28897
|
}
|
|
28750
28898
|
};
|
|
28751
|
-
DefaultIncrementalCanvasAreaRender = __decorate$
|
|
28899
|
+
DefaultIncrementalCanvasAreaRender = __decorate$D([injectable()], DefaultIncrementalCanvasAreaRender);
|
|
28752
28900
|
|
|
28753
28901
|
var STATUS,
|
|
28754
|
-
__decorate$
|
|
28902
|
+
__decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28755
28903
|
var d,
|
|
28756
28904
|
c = arguments.length,
|
|
28757
28905
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28895,9 +29043,9 @@
|
|
|
28895
29043
|
});
|
|
28896
29044
|
}
|
|
28897
29045
|
};
|
|
28898
|
-
__decorate$
|
|
29046
|
+
__decorate$C([inject(VGlobal), __metadata$n("design:type", Object)], DefaultIncrementalDrawContribution.prototype, "global", void 0), DefaultIncrementalDrawContribution = __decorate$C([injectable(), __param$n(0, multiInject(GraphicRender)), __param$n(1, inject(RenderSelector)), __param$n(2, inject(DefaultIncrementalCanvasLineRender)), __param$n(3, inject(DefaultIncrementalCanvasAreaRender)), __param$n(4, inject(LayerService)), __param$n(5, inject(ContributionProvider)), __param$n(5, named(DrawItemInterceptor)), __metadata$n("design:paramtypes", [Array, Object, Object, Object, Object, Object])], DefaultIncrementalDrawContribution);
|
|
28899
29047
|
|
|
28900
|
-
var __decorate$
|
|
29048
|
+
var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28901
29049
|
var d,
|
|
28902
29050
|
c = arguments.length,
|
|
28903
29051
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29028,9 +29176,9 @@
|
|
|
29028
29176
|
this.z = z, this.drawShape(rect, context, x, y, drawContext), this.z = 0, context.modelMatrix !== lastModelMatrix && mat4Allocate.free(context.modelMatrix), context.modelMatrix = lastModelMatrix, context.highPerformanceRestore();
|
|
29029
29177
|
}
|
|
29030
29178
|
};
|
|
29031
|
-
DefaultCanvasRect3dRender = __decorate$
|
|
29179
|
+
DefaultCanvasRect3dRender = __decorate$B([injectable()], DefaultCanvasRect3dRender);
|
|
29032
29180
|
|
|
29033
|
-
var __decorate$
|
|
29181
|
+
var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29034
29182
|
var d,
|
|
29035
29183
|
c = arguments.length,
|
|
29036
29184
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29100,9 +29248,9 @@
|
|
|
29100
29248
|
this.drawShape(richtext, context, x, y, drawContext), context.highPerformanceRestore();
|
|
29101
29249
|
}
|
|
29102
29250
|
};
|
|
29103
|
-
DefaultCanvasRichTextRender = __decorate$
|
|
29251
|
+
DefaultCanvasRichTextRender = __decorate$A([injectable()], DefaultCanvasRichTextRender);
|
|
29104
29252
|
|
|
29105
|
-
var __decorate$
|
|
29253
|
+
var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29106
29254
|
var d,
|
|
29107
29255
|
c = arguments.length,
|
|
29108
29256
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29134,9 +29282,9 @@
|
|
|
29134
29282
|
}), context.highPerformanceRestore();
|
|
29135
29283
|
}
|
|
29136
29284
|
};
|
|
29137
|
-
DefaultCanvasGlyphRender = __decorate$
|
|
29285
|
+
DefaultCanvasGlyphRender = __decorate$z([injectable()], DefaultCanvasGlyphRender);
|
|
29138
29286
|
|
|
29139
|
-
var __decorate$
|
|
29287
|
+
var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29140
29288
|
var d,
|
|
29141
29289
|
c = arguments.length,
|
|
29142
29290
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29276,9 +29424,9 @@
|
|
|
29276
29424
|
this.z = z, drawPathProxy(arc, context, x, y, drawContext, params) || (this.drawShape(arc, context, x, y, drawContext, params), this.z = 0, context.modelMatrix !== lastModelMatrix && mat4Allocate.free(context.modelMatrix), context.modelMatrix = lastModelMatrix), context.restore();
|
|
29277
29425
|
}
|
|
29278
29426
|
};
|
|
29279
|
-
DefaultCanvasArc3DRender = __decorate$
|
|
29427
|
+
DefaultCanvasArc3DRender = __decorate$y([injectable()], DefaultCanvasArc3DRender);
|
|
29280
29428
|
|
|
29281
|
-
var __decorate$
|
|
29429
|
+
var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29282
29430
|
var d,
|
|
29283
29431
|
c = arguments.length,
|
|
29284
29432
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29410,9 +29558,9 @@
|
|
|
29410
29558
|
this.z = z, this.drawShape(pyramid3d, context, x, y, drawContext), this.z = 0, context.modelMatrix !== lastModelMatrix && mat4Allocate.free(context.modelMatrix), context.modelMatrix = lastModelMatrix, context.highPerformanceRestore();
|
|
29411
29559
|
}
|
|
29412
29560
|
};
|
|
29413
|
-
DefaultCanvasPyramid3dRender = __decorate$
|
|
29561
|
+
DefaultCanvasPyramid3dRender = __decorate$x([injectable()], DefaultCanvasPyramid3dRender);
|
|
29414
29562
|
|
|
29415
|
-
var __decorate$
|
|
29563
|
+
var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29416
29564
|
var d,
|
|
29417
29565
|
c = arguments.length,
|
|
29418
29566
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29424,15 +29572,15 @@
|
|
|
29424
29572
|
super(...arguments), this.time = BaseRenderContributionTime.beforeFillStroke;
|
|
29425
29573
|
}
|
|
29426
29574
|
};
|
|
29427
|
-
DefaultPolygonBackgroundRenderContribution = __decorate$
|
|
29575
|
+
DefaultPolygonBackgroundRenderContribution = __decorate$w([injectable()], DefaultPolygonBackgroundRenderContribution);
|
|
29428
29576
|
let DefaultPolygonTextureRenderContribution = class extends DefaultBaseTextureRenderContribution {
|
|
29429
29577
|
constructor() {
|
|
29430
29578
|
super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke;
|
|
29431
29579
|
}
|
|
29432
29580
|
};
|
|
29433
|
-
DefaultPolygonTextureRenderContribution = __decorate$
|
|
29581
|
+
DefaultPolygonTextureRenderContribution = __decorate$w([injectable()], DefaultPolygonTextureRenderContribution);
|
|
29434
29582
|
|
|
29435
|
-
var __decorate$
|
|
29583
|
+
var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29436
29584
|
var d,
|
|
29437
29585
|
c = arguments.length,
|
|
29438
29586
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29444,15 +29592,15 @@
|
|
|
29444
29592
|
super(...arguments), this.time = BaseRenderContributionTime.beforeFillStroke;
|
|
29445
29593
|
}
|
|
29446
29594
|
};
|
|
29447
|
-
DefaultPathBackgroundRenderContribution = __decorate$
|
|
29595
|
+
DefaultPathBackgroundRenderContribution = __decorate$v([injectable()], DefaultPathBackgroundRenderContribution);
|
|
29448
29596
|
let DefaultPathTextureRenderContribution = class extends DefaultBaseTextureRenderContribution {
|
|
29449
29597
|
constructor() {
|
|
29450
29598
|
super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke;
|
|
29451
29599
|
}
|
|
29452
29600
|
};
|
|
29453
|
-
DefaultPathTextureRenderContribution = __decorate$
|
|
29601
|
+
DefaultPathTextureRenderContribution = __decorate$v([injectable()], DefaultPathTextureRenderContribution);
|
|
29454
29602
|
|
|
29455
|
-
var __decorate$
|
|
29603
|
+
var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29456
29604
|
var d,
|
|
29457
29605
|
c = arguments.length,
|
|
29458
29606
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29464,7 +29612,7 @@
|
|
|
29464
29612
|
super(...arguments), this.time = BaseRenderContributionTime.beforeFillStroke;
|
|
29465
29613
|
}
|
|
29466
29614
|
};
|
|
29467
|
-
DefaultAreaBackgroundRenderContribution = __decorate$
|
|
29615
|
+
DefaultAreaBackgroundRenderContribution = __decorate$u([injectable()], DefaultAreaBackgroundRenderContribution);
|
|
29468
29616
|
let DefaultAreaTextureRenderContribution = class extends DefaultBaseTextureRenderContribution {
|
|
29469
29617
|
constructor() {
|
|
29470
29618
|
super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke;
|
|
@@ -29511,7 +29659,7 @@
|
|
|
29511
29659
|
pattern && (context.highPerformanceSave(), context.setCommonStyle(graphic, graphic.attribute, x, y, graphicAttribute), context.fillStyle = pattern, context.fill(), context.highPerformanceRestore());
|
|
29512
29660
|
}
|
|
29513
29661
|
};
|
|
29514
|
-
DefaultAreaTextureRenderContribution = __decorate$
|
|
29662
|
+
DefaultAreaTextureRenderContribution = __decorate$u([injectable()], DefaultAreaTextureRenderContribution);
|
|
29515
29663
|
|
|
29516
29664
|
var renderModule = new ContainerModule(bind => {
|
|
29517
29665
|
bind(DefaultDrawContribution).toSelf(), bind(DrawContribution).toService(DefaultDrawContribution), bind(DefaultIncrementalDrawContribution).toSelf(), bind(IncrementalDrawContribution).toService(DefaultIncrementalDrawContribution), bind(DefaultRenderSelector).toSelf(), bind(RenderSelector).toService(DefaultRenderSelector), bind(DefaultCanvasCircleRender).toSelf().inSingletonScope(), bind(CircleRender).to(DefaultCanvasCircleRender), bind(GraphicRender).to(DefaultCanvasCircleRender), bind(DefaultCircleRenderContribution).toSelf().inSingletonScope(), bind(DefaultCircleBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultCircleTextureRenderContribution).toSelf().inSingletonScope(), bind(CircleRenderContribution).toService(DefaultCircleRenderContribution), bind(CircleRenderContribution).toService(DefaultCircleBackgroundRenderContribution), bind(CircleRenderContribution).toService(DefaultCircleTextureRenderContribution), bindContributionProvider(bind, CircleRenderContribution), bind(DefaultCanvasRectRender).toSelf().inSingletonScope(), bind(RectRender).to(DefaultCanvasRectRender), bind(GraphicRender).to(DefaultCanvasRectRender), bind(DefaultCanvasRect3dRender).toSelf().inSingletonScope(), bind(Rect3DRender).toService(DefaultCanvasRect3dRender), bind(GraphicRender).toService(Rect3DRender), bind(DefaultRectRenderContribution).toSelf().inSingletonScope(), bind(DefaultRectBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultRectTextureRenderContribution).toSelf().inSingletonScope(), bind(SplitRectBeforeRenderContribution$1).toSelf().inSingletonScope(), bind(SplitRectAfterRenderContribution$1).toSelf().inSingletonScope(), bind(RectRenderContribution).toService(DefaultRectRenderContribution), bind(RectRenderContribution).toService(DefaultRectBackgroundRenderContribution), bind(RectRenderContribution).toService(DefaultRectTextureRenderContribution), bind(RectRenderContribution).toService(SplitRectBeforeRenderContribution$1), bind(RectRenderContribution).toService(SplitRectAfterRenderContribution$1), bindContributionProvider(bind, RectRenderContribution), bind(DefaultCanvasTextRender).toSelf().inSingletonScope(), bind(TextRender).to(DefaultCanvasTextRender), bind(GraphicRender).to(DefaultCanvasTextRender), bindContributionProvider(bind, TextRenderContribution), bind(DefaultCanvasPathRender).toSelf().inSingletonScope(), bind(PathRender).to(DefaultCanvasPathRender), bind(GraphicRender).to(DefaultCanvasPathRender), bind(DefaultPathBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultPathTextureRenderContribution).toSelf().inSingletonScope(), bind(PathRenderContribution).toService(DefaultPathBackgroundRenderContribution), bind(PathRenderContribution).toService(DefaultPathTextureRenderContribution), bindContributionProvider(bind, PathRenderContribution), bind(DefaultCanvasSymbolRender).toSelf().inSingletonScope(), bind(SymbolRender).to(DefaultCanvasSymbolRender), bind(GraphicRender).to(DefaultCanvasSymbolRender), bind(DefaultSymbolRenderContribution).toSelf().inSingletonScope(), bind(DefaultSymbolBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultSymbolTextureRenderContribution).toSelf().inSingletonScope(), bind(SymbolRenderContribution).toService(DefaultSymbolRenderContribution), bind(SymbolRenderContribution).toService(DefaultSymbolBackgroundRenderContribution), bind(SymbolRenderContribution).toService(DefaultSymbolTextureRenderContribution), bindContributionProvider(bind, SymbolRenderContribution), bind(DefaultCanvasArcRender).toSelf().inSingletonScope(), bind(ArcRender).to(DefaultCanvasArcRender), bind(GraphicRender).to(DefaultCanvasArcRender), bind(DefaultCanvasArc3DRender).toSelf().inSingletonScope(), bind(Arc3dRender).toService(DefaultCanvasArc3DRender), bind(GraphicRender).toService(Arc3dRender), bind(DefaultArcRenderContribution).toSelf().inSingletonScope(), bind(DefaultArcBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultArcTextureRenderContribution).toSelf().inSingletonScope(), bind(ArcRenderContribution).toService(DefaultArcRenderContribution), bind(ArcRenderContribution).toService(DefaultArcBackgroundRenderContribution), bind(ArcRenderContribution).toService(DefaultArcTextureRenderContribution), bindContributionProvider(bind, ArcRenderContribution), bind(DefaultCanvasLineRender).toSelf().inSingletonScope(), bind(LineRender).to(DefaultCanvasLineRender), bind(GraphicRender).to(DefaultCanvasLineRender), bind(DefaultIncrementalCanvasLineRender).toSelf().inSingletonScope(), bind(DefaultIncrementalCanvasAreaRender).toSelf().inSingletonScope(), bind(DefaultCanvasAreaRender).toSelf().inSingletonScope(), bind(AreaRender).to(DefaultCanvasAreaRender), bind(GraphicRender).to(DefaultCanvasAreaRender), bind(DefaultAreaBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultAreaTextureRenderContribution).toSelf().inSingletonScope(), bind(AreaRenderContribution).toService(DefaultAreaBackgroundRenderContribution), bind(AreaRenderContribution).toService(DefaultAreaTextureRenderContribution), bindContributionProvider(bind, AreaRenderContribution), bind(DefaultCanvasGroupRender).toSelf().inSingletonScope(), bind(GroupRender).to(DefaultCanvasGroupRender), bind(GraphicRender).to(DefaultCanvasGroupRender), bind(DefaultGroupBackgroundRenderContribution).toSelf().inSingletonScope(), bind(GroupRenderContribution).toService(DefaultGroupBackgroundRenderContribution), bindContributionProvider(bind, GroupRenderContribution), bind(DefaultCanvasPolygonRender).toSelf().inSingletonScope(), bind(PolygonRender).to(DefaultCanvasPolygonRender), bind(GraphicRender).to(DefaultCanvasPolygonRender), bind(DefaultPolygonBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultPolygonTextureRenderContribution).toSelf().inSingletonScope(), bind(PolygonRenderContribution).toService(DefaultPolygonBackgroundRenderContribution), bind(PolygonRenderContribution).toService(DefaultPolygonTextureRenderContribution), bindContributionProvider(bind, PolygonRenderContribution), bind(DefaultCanvasGlyphRender).toSelf().inSingletonScope(), bind(GlyphRender).toService(DefaultCanvasGlyphRender), bind(GraphicRender).toService(GlyphRender), bind(DefaultCanvasImageRender).toSelf().inSingletonScope(), bind(ImageRender).toService(DefaultCanvasImageRender), bind(GraphicRender).toService(ImageRender), bind(DefaultImageBackgroundRenderContribution).toSelf().inSingletonScope(), bind(ImageRenderContribution).toService(DefaultImageBackgroundRenderContribution), bindContributionProvider(bind, ImageRenderContribution), bind(DefaultCanvasRichTextRender).toSelf().inSingletonScope(), bind(RichTextRender).toService(DefaultCanvasRichTextRender), bind(GraphicRender).toService(RichTextRender), bind(DefaultCanvasPyramid3dRender).toSelf().inSingletonScope(), bind(Pyramid3dRender).toService(DefaultCanvasPyramid3dRender), bind(GraphicRender).toService(Pyramid3dRender), bind(DefaultBaseInteractiveRenderContribution).toSelf().inSingletonScope(), bind(TextRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(ArcRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(PathRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(SymbolRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(RectRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(ImageRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(CircleRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(AreaRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bind(PolygonRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, InteractiveSubRenderContribution), bindContributionProvider(bind, GraphicRender), bind(ShadowRootDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(ShadowRootDrawItemInterceptorContribution), bind(Canvas3DDrawItemInterceptor).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(Canvas3DDrawItemInterceptor), bindContributionProvider(bind, DrawItemInterceptor);
|
|
@@ -29521,7 +29669,7 @@
|
|
|
29521
29669
|
container.load(renderModule);
|
|
29522
29670
|
}
|
|
29523
29671
|
|
|
29524
|
-
var __decorate$
|
|
29672
|
+
var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29525
29673
|
var d,
|
|
29526
29674
|
c = arguments.length,
|
|
29527
29675
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29564,9 +29712,9 @@
|
|
|
29564
29712
|
}), pickContext.highPerformanceRestore(), picked;
|
|
29565
29713
|
}
|
|
29566
29714
|
};
|
|
29567
|
-
DefaultCanvasCirclePicker = __decorate$
|
|
29715
|
+
DefaultCanvasCirclePicker = __decorate$t([injectable(), __param$m(0, inject(CircleRender)), __metadata$m("design:paramtypes", [Object])], DefaultCanvasCirclePicker);
|
|
29568
29716
|
|
|
29569
|
-
var __decorate$
|
|
29717
|
+
var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29570
29718
|
var d,
|
|
29571
29719
|
c = arguments.length,
|
|
29572
29720
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29626,9 +29774,9 @@
|
|
|
29626
29774
|
return pickContext.highPerformanceRestore(), picked;
|
|
29627
29775
|
}
|
|
29628
29776
|
};
|
|
29629
|
-
DefaultCanvasRectPicker = __decorate$
|
|
29777
|
+
DefaultCanvasRectPicker = __decorate$s([injectable(), __param$l(0, inject(RectRender)), __metadata$l("design:paramtypes", [Object])], DefaultCanvasRectPicker);
|
|
29630
29778
|
|
|
29631
|
-
var __decorate$
|
|
29779
|
+
var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29632
29780
|
var d,
|
|
29633
29781
|
c = arguments.length,
|
|
29634
29782
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29672,9 +29820,9 @@
|
|
|
29672
29820
|
}), pickContext.highPerformanceRestore(), picked;
|
|
29673
29821
|
}
|
|
29674
29822
|
};
|
|
29675
|
-
DefaultCanvasArcPicker = __decorate$
|
|
29823
|
+
DefaultCanvasArcPicker = __decorate$r([injectable(), __param$k(0, inject(ArcRender)), __metadata$k("design:paramtypes", [Object])], DefaultCanvasArcPicker);
|
|
29676
29824
|
|
|
29677
|
-
var __decorate$
|
|
29825
|
+
var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29678
29826
|
var d,
|
|
29679
29827
|
c = arguments.length,
|
|
29680
29828
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29713,9 +29861,9 @@
|
|
|
29713
29861
|
return this.canvasRenderer.drawShape(area, pickContext, x, y, {}, null, context => !!picked || (picked = context.isPointInPath(point.x, point.y), picked)), pickContext.highPerformanceRestore(), picked;
|
|
29714
29862
|
}
|
|
29715
29863
|
};
|
|
29716
|
-
DefaultCanvasAreaPicker = __decorate$
|
|
29864
|
+
DefaultCanvasAreaPicker = __decorate$q([injectable(), __param$j(0, inject(AreaRender)), __metadata$j("design:paramtypes", [Object])], DefaultCanvasAreaPicker);
|
|
29717
29865
|
|
|
29718
|
-
var __decorate$
|
|
29866
|
+
var __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29719
29867
|
var d,
|
|
29720
29868
|
c = arguments.length,
|
|
29721
29869
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29733,9 +29881,9 @@
|
|
|
29733
29881
|
return !!pickContext && !!image.AABBBounds.containsPoint(point);
|
|
29734
29882
|
}
|
|
29735
29883
|
};
|
|
29736
|
-
DefaultCanvasImagePicker = __decorate$
|
|
29884
|
+
DefaultCanvasImagePicker = __decorate$p([injectable()], DefaultCanvasImagePicker);
|
|
29737
29885
|
|
|
29738
|
-
var __decorate$
|
|
29886
|
+
var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29739
29887
|
var d,
|
|
29740
29888
|
c = arguments.length,
|
|
29741
29889
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29743,9 +29891,9 @@
|
|
|
29743
29891
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29744
29892
|
};
|
|
29745
29893
|
let BasePicker = class extends BaseRender {};
|
|
29746
|
-
BasePicker = __decorate$
|
|
29894
|
+
BasePicker = __decorate$o([injectable()], BasePicker);
|
|
29747
29895
|
|
|
29748
|
-
var __decorate$
|
|
29896
|
+
var __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29749
29897
|
var d,
|
|
29750
29898
|
c = arguments.length,
|
|
29751
29899
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29795,9 +29943,9 @@
|
|
|
29795
29943
|
}), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
|
|
29796
29944
|
}
|
|
29797
29945
|
};
|
|
29798
|
-
DefaultCanvasLinePicker = __decorate$
|
|
29946
|
+
DefaultCanvasLinePicker = __decorate$n([injectable(), __param$i(0, inject(LineRender)), __metadata$i("design:paramtypes", [Object])], DefaultCanvasLinePicker);
|
|
29799
29947
|
|
|
29800
|
-
var __decorate$
|
|
29948
|
+
var __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29801
29949
|
var d,
|
|
29802
29950
|
c = arguments.length,
|
|
29803
29951
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29847,9 +29995,9 @@
|
|
|
29847
29995
|
}), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
|
|
29848
29996
|
}
|
|
29849
29997
|
};
|
|
29850
|
-
DefaultCanvasPathPicker = __decorate$
|
|
29998
|
+
DefaultCanvasPathPicker = __decorate$m([injectable(), __param$h(0, inject(PathRender)), __metadata$h("design:paramtypes", [Object])], DefaultCanvasPathPicker);
|
|
29851
29999
|
|
|
29852
|
-
var __decorate$
|
|
30000
|
+
var __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29853
30001
|
var d,
|
|
29854
30002
|
c = arguments.length,
|
|
29855
30003
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29903,9 +30051,9 @@
|
|
|
29903
30051
|
}), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
|
|
29904
30052
|
}
|
|
29905
30053
|
};
|
|
29906
|
-
DefaultCanvasSymbolPicker = __decorate$
|
|
30054
|
+
DefaultCanvasSymbolPicker = __decorate$l([injectable(), __param$g(0, inject(SymbolRender)), __metadata$g("design:paramtypes", [Object])], DefaultCanvasSymbolPicker);
|
|
29907
30055
|
|
|
29908
|
-
var __decorate$
|
|
30056
|
+
var __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29909
30057
|
var d,
|
|
29910
30058
|
c = arguments.length,
|
|
29911
30059
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29968,9 +30116,9 @@
|
|
|
29968
30116
|
}, (context, symbolAttribute, themeAttribute) => picked), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
|
|
29969
30117
|
}
|
|
29970
30118
|
};
|
|
29971
|
-
DefaultCanvasTextPicker = __decorate$
|
|
30119
|
+
DefaultCanvasTextPicker = __decorate$k([injectable(), __param$f(0, inject(TextRender)), __metadata$f("design:paramtypes", [Object])], DefaultCanvasTextPicker);
|
|
29972
30120
|
|
|
29973
|
-
var __decorate$
|
|
30121
|
+
var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29974
30122
|
var d,
|
|
29975
30123
|
c = arguments.length,
|
|
29976
30124
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -30012,9 +30160,9 @@
|
|
|
30012
30160
|
}), pickContext.highPerformanceRestore(), picked;
|
|
30013
30161
|
}
|
|
30014
30162
|
};
|
|
30015
|
-
DefaultCanvasPolygonPicker = __decorate$
|
|
30163
|
+
DefaultCanvasPolygonPicker = __decorate$j([injectable(), __param$e(0, inject(PolygonRender)), __metadata$e("design:paramtypes", [Object])], DefaultCanvasPolygonPicker);
|
|
30016
30164
|
|
|
30017
|
-
var __decorate$
|
|
30165
|
+
var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30018
30166
|
var d,
|
|
30019
30167
|
c = arguments.length,
|
|
30020
30168
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -30038,9 +30186,9 @@
|
|
|
30038
30186
|
return !!richtext.AABBBounds.containsPoint(point);
|
|
30039
30187
|
}
|
|
30040
30188
|
};
|
|
30041
|
-
DefaultCanvasRichTextPicker = __decorate$
|
|
30189
|
+
DefaultCanvasRichTextPicker = __decorate$i([injectable(), __param$d(0, inject(RichTextRender)), __metadata$d("design:paramtypes", [Object])], DefaultCanvasRichTextPicker);
|
|
30042
30190
|
|
|
30043
|
-
var __decorate$
|
|
30191
|
+
var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30044
30192
|
var d,
|
|
30045
30193
|
c = arguments.length,
|
|
30046
30194
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -30070,15 +30218,15 @@
|
|
|
30070
30218
|
if (pickerService) {
|
|
30071
30219
|
let picked = !1;
|
|
30072
30220
|
return glyph.getSubGraphic().forEach(g => {
|
|
30073
|
-
picked || (picked = !!pickerService.pickItem(g, point, params));
|
|
30221
|
+
picked || (picked = !!pickerService.pickItem(g, point, null, params));
|
|
30074
30222
|
}), picked;
|
|
30075
30223
|
}
|
|
30076
30224
|
return !1;
|
|
30077
30225
|
}
|
|
30078
30226
|
};
|
|
30079
|
-
DefaultCanvasGlyphPicker = __decorate$
|
|
30227
|
+
DefaultCanvasGlyphPicker = __decorate$h([injectable(), __param$c(0, inject(GlyphRender)), __metadata$c("design:paramtypes", [Object])], DefaultCanvasGlyphPicker);
|
|
30080
30228
|
|
|
30081
|
-
var __decorate$
|
|
30229
|
+
var __decorate$g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30082
30230
|
var d,
|
|
30083
30231
|
c = arguments.length,
|
|
30084
30232
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -30123,9 +30271,9 @@
|
|
|
30123
30271
|
return this.canvasRenderer.drawShape(rect, pickContext, x, y, params, null, (context, arc3dAttribute, themeAttribute) => !!picked || (picked = context.isPointInPath(pickPoint.x, pickPoint.y), picked)), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
|
|
30124
30272
|
}
|
|
30125
30273
|
};
|
|
30126
|
-
DefaultCanvasRect3dPicker = __decorate$
|
|
30274
|
+
DefaultCanvasRect3dPicker = __decorate$g([injectable(), __param$b(0, inject(Rect3DRender)), __metadata$b("design:paramtypes", [Object])], DefaultCanvasRect3dPicker);
|
|
30127
30275
|
|
|
30128
|
-
var __decorate$
|
|
30276
|
+
var __decorate$f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30129
30277
|
var d,
|
|
30130
30278
|
c = arguments.length,
|
|
30131
30279
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -30170,9 +30318,9 @@
|
|
|
30170
30318
|
return this.canvasRenderer.drawShape(pyramid3d, pickContext, x, y, {}, null, (context, pyramid3dAttribute, themeAttribute) => !!picked || (picked = context.isPointInPath(pickPoint.x, pickPoint.y), picked), (context, pyramid3dAttribute, themeAttribute) => !1), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
|
|
30171
30319
|
}
|
|
30172
30320
|
};
|
|
30173
|
-
DefaultCanvasPyramid3dPicker = __decorate$
|
|
30321
|
+
DefaultCanvasPyramid3dPicker = __decorate$f([injectable(), __param$a(0, inject(Pyramid3dRender)), __metadata$a("design:paramtypes", [Object])], DefaultCanvasPyramid3dPicker);
|
|
30174
30322
|
|
|
30175
|
-
var __decorate$
|
|
30323
|
+
var __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30176
30324
|
var d,
|
|
30177
30325
|
c = arguments.length,
|
|
30178
30326
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -30217,10 +30365,27 @@
|
|
|
30217
30365
|
return this.canvasRenderer.drawShape(arc3d, pickContext, x, y, params, null, (context, arc3dAttribute, themeAttribute) => !!picked || (picked = context.isPointInPath(pickPoint.x, pickPoint.y), picked)), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
|
|
30218
30366
|
}
|
|
30219
30367
|
};
|
|
30220
|
-
DefaultCanvasArc3dPicker = __decorate$
|
|
30368
|
+
DefaultCanvasArc3dPicker = __decorate$e([injectable(), __param$9(0, inject(Arc3dRender)), __metadata$9("design:paramtypes", [Object])], DefaultCanvasArc3dPicker);
|
|
30369
|
+
|
|
30370
|
+
var __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30371
|
+
var d,
|
|
30372
|
+
c = arguments.length,
|
|
30373
|
+
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
30374
|
+
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);
|
|
30375
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
30376
|
+
};
|
|
30377
|
+
let DefaultCanvasGroupPicker = class {
|
|
30378
|
+
constructor() {
|
|
30379
|
+
this.type = "group", this.numberType = GROUP_NUMBER_TYPE;
|
|
30380
|
+
}
|
|
30381
|
+
contains(group, point, params) {
|
|
30382
|
+
return !1;
|
|
30383
|
+
}
|
|
30384
|
+
};
|
|
30385
|
+
DefaultCanvasGroupPicker = __decorate$d([injectable()], DefaultCanvasGroupPicker);
|
|
30221
30386
|
|
|
30222
30387
|
var canvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
30223
|
-
bind(DefaultCanvasCirclePicker).toSelf().inSingletonScope(), bind(CanvasCirclePicker).toService(DefaultCanvasCirclePicker), bind(CanvasPickerContribution).toService(CanvasCirclePicker), bind(DefaultCanvasRectPicker).toSelf().inSingletonScope(), bind(CanvasRectPicker).toService(DefaultCanvasRectPicker), bind(CanvasPickerContribution).toService(CanvasRectPicker), bind(DefaultCanvasRect3dPicker).toSelf().inSingletonScope(), bind(CanvasRect3dPicker).toService(DefaultCanvasRect3dPicker), bind(CanvasPickerContribution).toService(CanvasRect3dPicker), bind(DefaultCanvasArcPicker).toSelf().inSingletonScope(), bind(CanvasArcPicker).toService(DefaultCanvasArcPicker), bind(CanvasPickerContribution).toService(CanvasArcPicker), bind(DefaultCanvasAreaPicker).toSelf().inSingletonScope(), bind(CanvasAreaPicker).toService(DefaultCanvasAreaPicker), bind(CanvasPickerContribution).toService(CanvasAreaPicker), bind(DefaultCanvasImagePicker).toSelf().inSingletonScope(), bind(CanvasImagePicker).toService(DefaultCanvasImagePicker), bind(CanvasPickerContribution).toService(CanvasImagePicker), bind(DefaultCanvasLinePicker).toSelf().inSingletonScope(), bind(CanvasLinePicker).toService(DefaultCanvasLinePicker), bind(CanvasPickerContribution).toService(CanvasLinePicker), bind(DefaultCanvasPathPicker).toSelf().inSingletonScope(), bind(CanvasPathPicker).toService(DefaultCanvasPathPicker), bind(CanvasPickerContribution).toService(CanvasPathPicker), bind(DefaultCanvasSymbolPicker).toSelf().inSingletonScope(), bind(CanvasSymbolPicker).toService(DefaultCanvasSymbolPicker), bind(CanvasPickerContribution).toService(CanvasSymbolPicker), bind(DefaultCanvasTextPicker).toSelf().inSingletonScope(), bind(CanvasTextPicker).toService(DefaultCanvasTextPicker), bind(CanvasPickerContribution).toService(CanvasTextPicker), bind(DefaultCanvasPolygonPicker).toSelf().inSingletonScope(), bind(CanvasPolygonPicker).toService(DefaultCanvasPolygonPicker), bind(CanvasPickerContribution).toService(CanvasPolygonPicker), bind(DefaultCanvasPyramid3dPicker).toSelf().inSingletonScope(), bind(CanvasPyramid3dPicker).toService(DefaultCanvasPyramid3dPicker), bind(CanvasPickerContribution).toService(CanvasPyramid3dPicker), bind(DefaultCanvasArc3dPicker).toSelf().inSingletonScope(), bind(CanvasArc3dPicker).toService(DefaultCanvasArc3dPicker), bind(CanvasPickerContribution).toService(CanvasArc3dPicker), bind(DefaultCanvasRichTextPicker).toSelf().inSingletonScope(), bind(CanvasRichTextPicker).toService(DefaultCanvasRichTextPicker), bind(CanvasPickerContribution).toService(CanvasRichTextPicker), bind(DefaultCanvasGlyphPicker).toSelf().inSingletonScope(), bind(CanvasGlyphPicker).toService(DefaultCanvasGlyphPicker), bind(CanvasPickerContribution).toService(CanvasGlyphPicker), bindContributionProvider(bind, CanvasPickerContribution);
|
|
30388
|
+
bind(DefaultCanvasCirclePicker).toSelf().inSingletonScope(), bind(CanvasCirclePicker).toService(DefaultCanvasCirclePicker), bind(CanvasPickerContribution).toService(CanvasCirclePicker), bind(DefaultCanvasRectPicker).toSelf().inSingletonScope(), bind(CanvasRectPicker).toService(DefaultCanvasRectPicker), bind(CanvasPickerContribution).toService(CanvasRectPicker), bind(DefaultCanvasRect3dPicker).toSelf().inSingletonScope(), bind(CanvasRect3dPicker).toService(DefaultCanvasRect3dPicker), bind(CanvasPickerContribution).toService(CanvasRect3dPicker), bind(DefaultCanvasArcPicker).toSelf().inSingletonScope(), bind(CanvasArcPicker).toService(DefaultCanvasArcPicker), bind(CanvasPickerContribution).toService(CanvasArcPicker), bind(DefaultCanvasAreaPicker).toSelf().inSingletonScope(), bind(CanvasAreaPicker).toService(DefaultCanvasAreaPicker), bind(CanvasPickerContribution).toService(CanvasAreaPicker), bind(DefaultCanvasImagePicker).toSelf().inSingletonScope(), bind(CanvasImagePicker).toService(DefaultCanvasImagePicker), bind(CanvasPickerContribution).toService(CanvasImagePicker), bind(DefaultCanvasLinePicker).toSelf().inSingletonScope(), bind(CanvasLinePicker).toService(DefaultCanvasLinePicker), bind(CanvasPickerContribution).toService(CanvasLinePicker), bind(DefaultCanvasPathPicker).toSelf().inSingletonScope(), bind(CanvasPathPicker).toService(DefaultCanvasPathPicker), bind(CanvasPickerContribution).toService(CanvasPathPicker), bind(DefaultCanvasSymbolPicker).toSelf().inSingletonScope(), bind(CanvasSymbolPicker).toService(DefaultCanvasSymbolPicker), bind(CanvasPickerContribution).toService(CanvasSymbolPicker), bind(DefaultCanvasTextPicker).toSelf().inSingletonScope(), bind(CanvasTextPicker).toService(DefaultCanvasTextPicker), bind(CanvasPickerContribution).toService(CanvasTextPicker), bind(DefaultCanvasPolygonPicker).toSelf().inSingletonScope(), bind(CanvasPolygonPicker).toService(DefaultCanvasPolygonPicker), bind(CanvasPickerContribution).toService(CanvasPolygonPicker), bind(DefaultCanvasPyramid3dPicker).toSelf().inSingletonScope(), bind(CanvasPyramid3dPicker).toService(DefaultCanvasPyramid3dPicker), bind(CanvasPickerContribution).toService(CanvasPyramid3dPicker), bind(DefaultCanvasArc3dPicker).toSelf().inSingletonScope(), bind(CanvasArc3dPicker).toService(DefaultCanvasArc3dPicker), bind(CanvasPickerContribution).toService(CanvasArc3dPicker), bind(DefaultCanvasRichTextPicker).toSelf().inSingletonScope(), bind(CanvasRichTextPicker).toService(DefaultCanvasRichTextPicker), bind(CanvasPickerContribution).toService(CanvasRichTextPicker), bind(DefaultCanvasGlyphPicker).toSelf().inSingletonScope(), bind(CanvasGlyphPicker).toService(DefaultCanvasGlyphPicker), bind(CanvasPickerContribution).toService(CanvasGlyphPicker), bind(DefaultCanvasGroupPicker).toSelf().inSingletonScope(), bind(CanvasGroupPicker).toService(DefaultCanvasGroupPicker), bind(CanvasPickerContribution).toService(CanvasGroupPicker), bindContributionProvider(bind, CanvasPickerContribution);
|
|
30224
30389
|
});
|
|
30225
30390
|
|
|
30226
30391
|
var __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
@@ -30643,7 +30808,7 @@
|
|
|
30643
30808
|
if (pickerService) {
|
|
30644
30809
|
let picked = !1;
|
|
30645
30810
|
return glyph.getSubGraphic().forEach(g => {
|
|
30646
|
-
picked || (picked = !!pickerService.pickItem(g, point, params));
|
|
30811
|
+
picked || (picked = !!pickerService.pickItem(g, point, null, params));
|
|
30647
30812
|
}), picked;
|
|
30648
30813
|
}
|
|
30649
30814
|
return !1;
|
|
@@ -30810,7 +30975,7 @@
|
|
|
30810
30975
|
}
|
|
30811
30976
|
renderGroupHTML(group) {
|
|
30812
30977
|
this.renderGraphicHTML(group), group.forEachChildren(g => {
|
|
30813
|
-
this.renderGraphicHTML(g);
|
|
30978
|
+
g.isContainer ? this.renderGroupHTML(g) : this.renderGraphicHTML(g);
|
|
30814
30979
|
});
|
|
30815
30980
|
}
|
|
30816
30981
|
renderGraphicHTML(graphic) {
|
|
@@ -31573,7 +31738,7 @@
|
|
|
31573
31738
|
});
|
|
31574
31739
|
}
|
|
31575
31740
|
setAttribute(key, value, forceUpdateTag) {
|
|
31576
|
-
isPlainObject(this.attribute[key])
|
|
31741
|
+
!isPlainObject(this.attribute[key]) || isFunction(this.attribute[key]) || isFunction(value) ? this.attribute[key] = value : merge$2(this.attribute[key], value), GROUP_ATTRIBUTES.includes(key) || this.render(), this.valid = this.isValid(), this.updateShapeAndBoundsTagSetted() || !forceUpdateTag && !this.needUpdateTag(key) ? this.addUpdateBoundTag() : this.addUpdateShapeAndBoundsTag(), this.addUpdatePositionTag(), this.onAttributeUpdate();
|
|
31577
31742
|
}
|
|
31578
31743
|
setAttributes(params, forceUpdateTag) {
|
|
31579
31744
|
const keys = Object.keys(params);
|
|
@@ -31583,7 +31748,7 @@
|
|
|
31583
31748
|
isNil(keys) && (keys = Object.keys(params));
|
|
31584
31749
|
for (let i = 0; i < keys.length; i++) {
|
|
31585
31750
|
const key = keys[i];
|
|
31586
|
-
isPlainObject(this.attribute[key])
|
|
31751
|
+
!isPlainObject(this.attribute[key]) || isFunction(this.attribute[key]) || isFunction(params[key]) ? this.attribute[key] = params[key] : merge$2(this.attribute[key], params[key]);
|
|
31587
31752
|
}
|
|
31588
31753
|
}
|
|
31589
31754
|
bindEvents() {}
|
|
@@ -32383,61 +32548,60 @@
|
|
|
32383
32548
|
}
|
|
32384
32549
|
|
|
32385
32550
|
class Segment extends AbstractComponent {
|
|
32551
|
+
getStartAngle() {
|
|
32552
|
+
return this._startAngle;
|
|
32553
|
+
}
|
|
32554
|
+
getEndAngle() {
|
|
32555
|
+
return this._endAngle;
|
|
32556
|
+
}
|
|
32557
|
+
getMainSegmentPoints() {
|
|
32558
|
+
return this._mainSegmentPoints;
|
|
32559
|
+
}
|
|
32386
32560
|
constructor(attributes) {
|
|
32387
32561
|
super(merge$2({}, Segment.defaultAttributes, attributes)), this.name = "segment";
|
|
32388
32562
|
}
|
|
32389
|
-
computeLineAngle() {
|
|
32390
|
-
const {
|
|
32391
|
-
points: points
|
|
32392
|
-
} = this.attribute,
|
|
32393
|
-
start = points[0],
|
|
32394
|
-
startInside = points[1],
|
|
32395
|
-
endInside = points[points.length - 2],
|
|
32396
|
-
end = points[points.length - 1],
|
|
32397
|
-
startVector = [start.x - startInside.x, start.y - startInside.y],
|
|
32398
|
-
startAngle = Math.atan2(startVector[1], startVector[0]),
|
|
32399
|
-
endVector = [end.x - endInside.x, end.y - endInside.y],
|
|
32400
|
-
endAngle = Math.atan2(endVector[1], endVector[0]);
|
|
32401
|
-
this._startAngle = startAngle, this._endAngle = endAngle;
|
|
32402
|
-
}
|
|
32403
32563
|
render() {
|
|
32404
|
-
this.removeAllChild();
|
|
32564
|
+
this.removeAllChild(), this._reset();
|
|
32405
32565
|
const {
|
|
32406
|
-
points: points,
|
|
32407
32566
|
startSymbol: startSymbol,
|
|
32408
32567
|
endSymbol: endSymbol,
|
|
32409
32568
|
lineStyle: lineStyle,
|
|
32410
32569
|
state: state,
|
|
32411
|
-
visible = !0
|
|
32570
|
+
visible = !0,
|
|
32571
|
+
multiSegment: multiSegment,
|
|
32572
|
+
mainSegmentIndex: mainSegmentIndex
|
|
32412
32573
|
} = this.attribute;
|
|
32413
32574
|
if (!visible) return;
|
|
32414
|
-
|
|
32415
|
-
const startSymbolShape = this.
|
|
32416
|
-
endSymbolShape = this.
|
|
32417
|
-
this.startSymbol = startSymbolShape, this.endSymbol = endSymbolShape
|
|
32418
|
-
|
|
32419
|
-
|
|
32420
|
-
|
|
32421
|
-
|
|
32422
|
-
|
|
32423
|
-
|
|
32424
|
-
|
|
32425
|
-
|
|
32426
|
-
|
|
32427
|
-
|
|
32428
|
-
|
|
32429
|
-
|
|
32430
|
-
|
|
32431
|
-
|
|
32432
|
-
|
|
32575
|
+
this._computeLineAngle();
|
|
32576
|
+
const startSymbolShape = this._renderSymbol(startSymbol, "start"),
|
|
32577
|
+
endSymbolShape = this._renderSymbol(endSymbol, "end");
|
|
32578
|
+
if (this.startSymbol = startSymbolShape, this.endSymbol = endSymbolShape, multiSegment) {
|
|
32579
|
+
const points = [...this.attribute.points];
|
|
32580
|
+
if (isValidNumber(mainSegmentIndex)) points[mainSegmentIndex] = this._clipPoints(points[mainSegmentIndex]);else {
|
|
32581
|
+
const clipPoints = this._clipPoints(flattenArray(points));
|
|
32582
|
+
points[0][0] = clipPoints[0], points[points.length - 1][points[points.length - 1].length - 1] = clipPoints[clipPoints.length - 1];
|
|
32583
|
+
}
|
|
32584
|
+
points.forEach((point, index) => {
|
|
32585
|
+
var _a, _b;
|
|
32586
|
+
const line = createLine(Object.assign(Object.assign({
|
|
32587
|
+
points: point
|
|
32588
|
+
}, isArray(lineStyle) ? null !== (_a = lineStyle[index]) && void 0 !== _a ? _a : lineStyle[lineStyle.length - 1] : lineStyle), {
|
|
32589
|
+
fill: !1
|
|
32590
|
+
}));
|
|
32591
|
+
line.name = `${this.name}-line`, line.id = this._getNodeId("line" + index), isEmpty(null == state ? void 0 : state.line) || (line.states = isArray(state.line) ? null !== (_b = state.line[index]) && void 0 !== _b ? _b : state.line[state.line.length - 1] : state.line), this.add(line);
|
|
32592
|
+
});
|
|
32593
|
+
} else {
|
|
32594
|
+
const line = createLine(Object.assign(Object.assign({
|
|
32595
|
+
points: this._clipPoints(this.attribute.points)
|
|
32596
|
+
}, array$1(lineStyle)[0]), {
|
|
32597
|
+
fill: !1
|
|
32598
|
+
}));
|
|
32599
|
+
line.name = `${this.name}-line`, line.id = this._getNodeId("line"), isEmpty(null == state ? void 0 : state.line) || (line.states = [].concat(state.line)[0]), this.add(line);
|
|
32433
32600
|
}
|
|
32434
|
-
const line = createLine(Object.assign({
|
|
32435
|
-
points: pointsAfterClip,
|
|
32436
|
-
fill: !1
|
|
32437
|
-
}, lineStyle));
|
|
32438
|
-
line.name = "line", line.id = this._getNodeId("line"), isEmpty(null == state ? void 0 : state.line) || (line.states = state.line), this.line = line, this.add(line);
|
|
32439
32601
|
}
|
|
32440
|
-
|
|
32602
|
+
_renderSymbol(attribute, dim) {
|
|
32603
|
+
const points = this._getMainSegmentPoints();
|
|
32604
|
+
if (!points.length) return;
|
|
32441
32605
|
const {
|
|
32442
32606
|
autoRotate = !0
|
|
32443
32607
|
} = attribute;
|
|
@@ -32446,7 +32610,6 @@
|
|
|
32446
32610
|
const startAngle = this._startAngle,
|
|
32447
32611
|
endAngle = this._endAngle,
|
|
32448
32612
|
{
|
|
32449
|
-
points: points,
|
|
32450
32613
|
state: state
|
|
32451
32614
|
} = this.attribute,
|
|
32452
32615
|
start = points[0],
|
|
@@ -32461,25 +32624,68 @@
|
|
|
32461
32624
|
} = attribute;
|
|
32462
32625
|
let position, rotate;
|
|
32463
32626
|
"start" === dim ? (position = {
|
|
32464
|
-
x: start.x + (startAngle ? refX * Math.cos(startAngle) + refY * Math.cos(startAngle - Math.PI / 2) : 0),
|
|
32465
|
-
y: start.y + (startAngle ? refX * Math.sin(startAngle) + refY * Math.sin(startAngle - Math.PI / 2) : 0)
|
|
32627
|
+
x: start.x + (isValidNumber(startAngle) ? refX * Math.cos(startAngle) + refY * Math.cos(startAngle - Math.PI / 2) : 0),
|
|
32628
|
+
y: start.y + (isValidNumber(startAngle) ? refX * Math.sin(startAngle) + refY * Math.sin(startAngle - Math.PI / 2) : 0)
|
|
32466
32629
|
}, rotate = startAngle + Math.PI / 2) : (position = {
|
|
32467
|
-
x: end.x + (endAngle ? refX * Math.cos(endAngle) + refY * Math.cos(endAngle - Math.PI / 2) : 0),
|
|
32468
|
-
y: end.y + (endAngle ? refX * Math.sin(endAngle) + refY * Math.sin(endAngle - Math.PI / 2) : 0)
|
|
32630
|
+
x: end.x + (isValidNumber(endAngle) ? refX * Math.cos(endAngle) + refY * Math.cos(endAngle - Math.PI / 2) : 0),
|
|
32631
|
+
y: end.y + (isValidNumber(endAngle) ? refX * Math.sin(endAngle) + refY * Math.sin(endAngle - Math.PI / 2) : 0)
|
|
32469
32632
|
}, rotate = endAngle + Math.PI / 2), symbol = createSymbol(Object.assign(Object.assign(Object.assign({}, position), {
|
|
32470
32633
|
symbolType: symbolType,
|
|
32471
32634
|
size: size,
|
|
32472
32635
|
angle: autoRotate ? rotate + refAngle : 0,
|
|
32473
32636
|
strokeBoundsBuffer: 0
|
|
32474
|
-
}), style)), symbol.name = `${dim}-symbol`, symbol.id = this._getNodeId(`${dim}-symbol`), isEmpty(null == state ? void 0 : state.symbol) || (symbol.states = state.symbol), this.add(symbol);
|
|
32637
|
+
}), style)), symbol.name = `${this.name}-${dim}-symbol`, symbol.id = this._getNodeId(`${dim}-symbol`), isEmpty(null == state ? void 0 : state.symbol) || (symbol.states = state.symbol), this.add(symbol);
|
|
32475
32638
|
}
|
|
32476
32639
|
return symbol;
|
|
32477
32640
|
}
|
|
32478
|
-
|
|
32479
|
-
return this.
|
|
32641
|
+
_getMainSegmentPoints() {
|
|
32642
|
+
if (this._mainSegmentPoints) return this._mainSegmentPoints;
|
|
32643
|
+
const {
|
|
32644
|
+
points: originPoints,
|
|
32645
|
+
multiSegment: multiSegment,
|
|
32646
|
+
mainSegmentIndex: mainSegmentIndex
|
|
32647
|
+
} = this.attribute;
|
|
32648
|
+
let points;
|
|
32649
|
+
return points = multiSegment ? isValidNumber(mainSegmentIndex) ? originPoints[mainSegmentIndex] : flattenArray(originPoints) : originPoints, this._mainSegmentPoints = points, points;
|
|
32480
32650
|
}
|
|
32481
|
-
|
|
32482
|
-
|
|
32651
|
+
_clipPoints(points) {
|
|
32652
|
+
const {
|
|
32653
|
+
startSymbol: startSymbol,
|
|
32654
|
+
endSymbol: endSymbol
|
|
32655
|
+
} = this.attribute;
|
|
32656
|
+
let pointsAfterClip = points;
|
|
32657
|
+
if (null == startSymbol ? void 0 : startSymbol.visible) {
|
|
32658
|
+
const startSize = (null == startSymbol ? void 0 : startSymbol.clip) ? (null == startSymbol ? void 0 : startSymbol.size) || 10 : 0;
|
|
32659
|
+
pointsAfterClip = [{
|
|
32660
|
+
x: points[0].x - startSize / 2 * (Math.cos(this._startAngle) || 0),
|
|
32661
|
+
y: points[0].y - startSize / 2 * (Math.sin(this._startAngle) || 0)
|
|
32662
|
+
}, ...pointsAfterClip.slice(1)];
|
|
32663
|
+
}
|
|
32664
|
+
if (null == endSymbol ? void 0 : endSymbol.visible) {
|
|
32665
|
+
const endSize = (null == endSymbol ? void 0 : endSymbol.clip) ? (null == endSymbol ? void 0 : endSymbol.size) || 10 : 0,
|
|
32666
|
+
pointsEnd = {
|
|
32667
|
+
x: points[points.length - 1].x - endSize / 2 * (Math.cos(this._endAngle) || 0),
|
|
32668
|
+
y: points[points.length - 1].y - endSize / 2 * (Math.sin(this._endAngle) || 0)
|
|
32669
|
+
};
|
|
32670
|
+
pointsAfterClip = [...pointsAfterClip.slice(0, pointsAfterClip.length - 1), pointsEnd];
|
|
32671
|
+
}
|
|
32672
|
+
return pointsAfterClip;
|
|
32673
|
+
}
|
|
32674
|
+
_computeLineAngle() {
|
|
32675
|
+
const points = this._getMainSegmentPoints();
|
|
32676
|
+
if (points.length <= 1) return;
|
|
32677
|
+
const start = points[0],
|
|
32678
|
+
startInside = points[1],
|
|
32679
|
+
endInside = points[points.length - 2],
|
|
32680
|
+
end = points[points.length - 1],
|
|
32681
|
+
startVector = [start.x - startInside.x, start.y - startInside.y],
|
|
32682
|
+
startAngle = Math.atan2(startVector[1], startVector[0]),
|
|
32683
|
+
endVector = [end.x - endInside.x, end.y - endInside.y],
|
|
32684
|
+
endAngle = Math.atan2(endVector[1], endVector[0]);
|
|
32685
|
+
this._startAngle = startAngle, this._endAngle = endAngle;
|
|
32686
|
+
}
|
|
32687
|
+
_reset() {
|
|
32688
|
+
this.startSymbol = null, this.endSymbol = null, this._startAngle = null, this._endAngle = null, this._mainSegmentPoints = null;
|
|
32483
32689
|
}
|
|
32484
32690
|
}
|
|
32485
32691
|
Segment.defaultAttributes = {
|
|
@@ -33305,7 +33511,7 @@
|
|
|
33305
33511
|
const {
|
|
33306
33512
|
flush = !1
|
|
33307
33513
|
} = this.attribute.label || {};
|
|
33308
|
-
if (flush) {
|
|
33514
|
+
if (flush && labelShapes.length) {
|
|
33309
33515
|
const {
|
|
33310
33516
|
orient: orient,
|
|
33311
33517
|
start: start,
|
|
@@ -33490,7 +33696,8 @@
|
|
|
33490
33696
|
const changeEvent = new CustomEvent("toPrev", {
|
|
33491
33697
|
current: this._current,
|
|
33492
33698
|
total: this._total,
|
|
33493
|
-
direction: "pre"
|
|
33699
|
+
direction: "pre",
|
|
33700
|
+
event: e
|
|
33494
33701
|
});
|
|
33495
33702
|
changeEvent.manager = null === (_a = this.stage) || void 0 === _a ? void 0 : _a.eventSystem.manager, this.dispatchEvent(changeEvent);
|
|
33496
33703
|
}
|
|
@@ -33500,7 +33707,8 @@
|
|
|
33500
33707
|
const changeEvent = new CustomEvent("toNext", {
|
|
33501
33708
|
current: this._current,
|
|
33502
33709
|
total: this._total,
|
|
33503
|
-
direction: "next"
|
|
33710
|
+
direction: "next",
|
|
33711
|
+
event: e
|
|
33504
33712
|
});
|
|
33505
33713
|
changeEvent.manager = null === (_b = this.stage) || void 0 === _b ? void 0 : _b.eventSystem.manager, this.dispatchEvent(changeEvent);
|
|
33506
33714
|
}
|
|
@@ -33696,9 +33904,9 @@
|
|
|
33696
33904
|
const target = e.target;
|
|
33697
33905
|
if (null === (_a = null == target ? void 0 : target.name) || void 0 === _a ? void 0 : _a.startsWith(LEGEND_ELEMENT_NAME.item)) {
|
|
33698
33906
|
const legendItem = target.delegate;
|
|
33699
|
-
legendItem.hasState(LegendStateValue.selected) ? this._setLegendItemState(legendItem, LegendStateValue.selectedHover) : this._setLegendItemState(legendItem, LegendStateValue.unSelectedHover);
|
|
33907
|
+
legendItem.hasState(LegendStateValue.selected) ? this._setLegendItemState(legendItem, LegendStateValue.selectedHover, e) : this._setLegendItemState(legendItem, LegendStateValue.unSelectedHover, e);
|
|
33700
33908
|
const focusButton = legendItem.getChildren()[0].find(node => node.name === LEGEND_ELEMENT_NAME.focus, !1);
|
|
33701
|
-
focusButton && focusButton.setAttribute("visible", !0), this._dispatchEvent(LegendEvent.legendItemHover, legendItem);
|
|
33909
|
+
focusButton && focusButton.setAttribute("visible", !0), this._dispatchEvent(LegendEvent.legendItemHover, legendItem, e);
|
|
33702
33910
|
}
|
|
33703
33911
|
}, this._onUnHover = e => {
|
|
33704
33912
|
var _a;
|
|
@@ -33710,7 +33918,7 @@
|
|
|
33710
33918
|
attributeUpdate || !child.hasState(LegendStateValue.unSelectedHover) && !child.hasState(LegendStateValue.selectedHover) || (attributeUpdate = !0), child.removeState(LegendStateValue.unSelectedHover), child.removeState(LegendStateValue.selectedHover);
|
|
33711
33919
|
});
|
|
33712
33920
|
const focusButton = legendItem.getChildren()[0].find(node => node.name === LEGEND_ELEMENT_NAME.focus, !1);
|
|
33713
|
-
focusButton && focusButton.setAttribute("visible", !1), attributeUpdate && this._dispatchEvent(LegendEvent.legendItemAttributeUpdate, legendItem), this._dispatchEvent(LegendEvent.legendItemUnHover, legendItem);
|
|
33921
|
+
focusButton && focusButton.setAttribute("visible", !1), attributeUpdate && this._dispatchEvent(LegendEvent.legendItemAttributeUpdate, legendItem, e), this._dispatchEvent(LegendEvent.legendItemUnHover, legendItem, e);
|
|
33714
33922
|
}
|
|
33715
33923
|
}, this._onClick = e => {
|
|
33716
33924
|
var _a, _b, _c, _d, _e;
|
|
@@ -33720,9 +33928,9 @@
|
|
|
33720
33928
|
if (target.name === LEGEND_ELEMENT_NAME.focus) {
|
|
33721
33929
|
const isFocusSelected = legendItem.hasState(LegendStateValue.focus);
|
|
33722
33930
|
legendItem.toggleState(LegendStateValue.focus), isFocusSelected ? null === (_b = this._itemsContainer) || void 0 === _b || _b.getChildren().forEach(item => {
|
|
33723
|
-
this._removeLegendItemState(item, [LegendStateValue.unSelected, LegendStateValue.unSelectedHover, LegendStateValue.focus]), this._setLegendItemState(item, LegendStateValue.selected);
|
|
33724
|
-
}) : (this._setLegendItemState(legendItem, LegendStateValue.selected), this._removeLegendItemState(legendItem, [LegendStateValue.unSelected, LegendStateValue.unSelectedHover]), null === (_c = this._itemsContainer) || void 0 === _c || _c.getChildren().forEach(item => {
|
|
33725
|
-
legendItem !== item && (this._removeLegendItemState(item, [LegendStateValue.selected, LegendStateValue.selectedHover, LegendStateValue.focus]), this._setLegendItemState(item, LegendStateValue.unSelected));
|
|
33931
|
+
this._removeLegendItemState(item, [LegendStateValue.unSelected, LegendStateValue.unSelectedHover, LegendStateValue.focus], e), this._setLegendItemState(item, LegendStateValue.selected, e);
|
|
33932
|
+
}) : (this._setLegendItemState(legendItem, LegendStateValue.selected, e), this._removeLegendItemState(legendItem, [LegendStateValue.unSelected, LegendStateValue.unSelectedHover], e), null === (_c = this._itemsContainer) || void 0 === _c || _c.getChildren().forEach(item => {
|
|
33933
|
+
legendItem !== item && (this._removeLegendItemState(item, [LegendStateValue.selected, LegendStateValue.selectedHover, LegendStateValue.focus], e), this._setLegendItemState(item, LegendStateValue.unSelected, e));
|
|
33726
33934
|
}));
|
|
33727
33935
|
} else {
|
|
33728
33936
|
null === (_d = this._itemsContainer) || void 0 === _d || _d.getChildren().forEach(item => {
|
|
@@ -33735,13 +33943,13 @@
|
|
|
33735
33943
|
isSelected = legendItem.hasState(LegendStateValue.selected),
|
|
33736
33944
|
currentSelectedItems = this._getSelectedLegends();
|
|
33737
33945
|
if ("multiple" === selectMode) {
|
|
33738
|
-
if (!1 === allowAllCanceled && isSelected && 1 === currentSelectedItems.length) return void this._dispatchEvent(LegendEvent.legendItemClick, legendItem);
|
|
33739
|
-
isSelected ? (this._removeLegendItemState(legendItem, [LegendStateValue.selected, LegendStateValue.selectedHover]), this._setLegendItemState(legendItem, LegendStateValue.unSelected)) : (this._setLegendItemState(legendItem, LegendStateValue.selected), this._removeLegendItemState(legendItem, [LegendStateValue.unSelected, LegendStateValue.unSelectedHover]));
|
|
33740
|
-
} else this._setLegendItemState(legendItem, LegendStateValue.selected), this._removeLegendItemState(legendItem, [LegendStateValue.unSelected, LegendStateValue.unSelectedHover]), null === (_e = this._itemsContainer) || void 0 === _e || _e.getChildren().forEach(item => {
|
|
33741
|
-
legendItem !== item && (this._removeLegendItemState(item, [LegendStateValue.selected, LegendStateValue.selectedHover]), this._setLegendItemState(item, LegendStateValue.unSelected));
|
|
33946
|
+
if (!1 === allowAllCanceled && isSelected && 1 === currentSelectedItems.length) return void this._dispatchEvent(LegendEvent.legendItemClick, legendItem, e);
|
|
33947
|
+
isSelected ? (this._removeLegendItemState(legendItem, [LegendStateValue.selected, LegendStateValue.selectedHover], e), this._setLegendItemState(legendItem, LegendStateValue.unSelected, e)) : (this._setLegendItemState(legendItem, LegendStateValue.selected, e), this._removeLegendItemState(legendItem, [LegendStateValue.unSelected, LegendStateValue.unSelectedHover], e));
|
|
33948
|
+
} else this._setLegendItemState(legendItem, LegendStateValue.selected, e), this._removeLegendItemState(legendItem, [LegendStateValue.unSelected, LegendStateValue.unSelectedHover], e), null === (_e = this._itemsContainer) || void 0 === _e || _e.getChildren().forEach(item => {
|
|
33949
|
+
legendItem !== item && (this._removeLegendItemState(item, [LegendStateValue.selected, LegendStateValue.selectedHover], e), this._setLegendItemState(item, LegendStateValue.unSelected, e));
|
|
33742
33950
|
});
|
|
33743
33951
|
}
|
|
33744
|
-
this._dispatchEvent(LegendEvent.legendItemClick, legendItem);
|
|
33952
|
+
this._dispatchEvent(LegendEvent.legendItemClick, legendItem, e);
|
|
33745
33953
|
}
|
|
33746
33954
|
};
|
|
33747
33955
|
}
|
|
@@ -34012,14 +34220,13 @@
|
|
|
34012
34220
|
};
|
|
34013
34221
|
return this._pager.addEventListener("toPrev", onPaging), this._pager.addEventListener("toNext", onPaging), !0;
|
|
34014
34222
|
}
|
|
34015
|
-
_setLegendItemState(legendItem, stateName) {
|
|
34016
|
-
let keepCurrentStates = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !0;
|
|
34223
|
+
_setLegendItemState(legendItem, stateName, e) {
|
|
34017
34224
|
let attributeUpdate = !1;
|
|
34018
|
-
legendItem.hasState(stateName) || (attributeUpdate = !0), legendItem.addState(stateName,
|
|
34019
|
-
child.name !== LEGEND_ELEMENT_NAME.focus && (attributeUpdate || child.hasState(stateName) || (attributeUpdate = !0), child.addState(stateName,
|
|
34020
|
-
}), attributeUpdate && this._dispatchEvent(LegendEvent.legendItemAttributeUpdate, legendItem);
|
|
34225
|
+
legendItem.hasState(stateName) || (attributeUpdate = !0), legendItem.addState(stateName, true), legendItem.getChildren()[0].getChildren().forEach(child => {
|
|
34226
|
+
child.name !== LEGEND_ELEMENT_NAME.focus && (attributeUpdate || child.hasState(stateName) || (attributeUpdate = !0), child.addState(stateName, true));
|
|
34227
|
+
}), attributeUpdate && this._dispatchEvent(LegendEvent.legendItemAttributeUpdate, legendItem, e);
|
|
34021
34228
|
}
|
|
34022
|
-
_removeLegendItemState(legendItem, stateNames) {
|
|
34229
|
+
_removeLegendItemState(legendItem, stateNames, e) {
|
|
34023
34230
|
let attributeUpdate = !1;
|
|
34024
34231
|
stateNames.forEach(name => {
|
|
34025
34232
|
!attributeUpdate && legendItem.hasState(name) && (attributeUpdate = !0), legendItem.removeState(name);
|
|
@@ -34027,7 +34234,7 @@
|
|
|
34027
34234
|
child.name !== LEGEND_ELEMENT_NAME.focus && stateNames.forEach(name => {
|
|
34028
34235
|
!attributeUpdate && child.hasState(name) && (attributeUpdate = !0), child.removeState(name);
|
|
34029
34236
|
});
|
|
34030
|
-
}), attributeUpdate && this._dispatchEvent(LegendEvent.legendItemAttributeUpdate, legendItem);
|
|
34237
|
+
}), attributeUpdate && this._dispatchEvent(LegendEvent.legendItemAttributeUpdate, legendItem, e);
|
|
34031
34238
|
}
|
|
34032
34239
|
_getSelectedLegends() {
|
|
34033
34240
|
var _a;
|
|
@@ -34040,7 +34247,7 @@
|
|
|
34040
34247
|
let states = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
|
|
34041
34248
|
shape.name = name, shape.data = data, shape.delegate = delegateShape, shape.states = merge$2({}, DEFAULT_STATES, states);
|
|
34042
34249
|
}
|
|
34043
|
-
_dispatchEvent(eventName, legendItem) {
|
|
34250
|
+
_dispatchEvent(eventName, legendItem, event) {
|
|
34044
34251
|
var _a;
|
|
34045
34252
|
const currentSelectedItems = this._getSelectedLegends();
|
|
34046
34253
|
currentSelectedItems.sort((pre, next) => pre.index - next.index);
|
|
@@ -34050,7 +34257,8 @@
|
|
|
34050
34257
|
data: legendItem.data,
|
|
34051
34258
|
selected: legendItem.hasState(LegendStateValue.selected),
|
|
34052
34259
|
currentSelectedItems: currentSelectedItems,
|
|
34053
|
-
currentSelected: currentSelected
|
|
34260
|
+
currentSelected: currentSelected,
|
|
34261
|
+
event: event
|
|
34054
34262
|
});
|
|
34055
34263
|
changeEvent.manager = null === (_a = this.stage) || void 0 === _a ? void 0 : _a.eventSystem.manager, this.dispatchEvent(changeEvent);
|
|
34056
34264
|
}
|
|
@@ -43955,7 +44163,7 @@
|
|
|
43955
44163
|
let absoluteLeftIconWidth = 0;
|
|
43956
44164
|
let absoluteRightIconWidth = 0;
|
|
43957
44165
|
if (!Array.isArray(icons) || icons.length === 0) {
|
|
43958
|
-
if (textStr) {
|
|
44166
|
+
if (isValid(textStr)) {
|
|
43959
44167
|
const text = convertInternal(textStr).replace(/\r?\n/g, '\n').replace(/\r/g, '\n').split('\n');
|
|
43960
44168
|
const hierarchyOffset = getHierarchyOffset(cellGroup.col, cellGroup.row, table);
|
|
43961
44169
|
const attribute = {
|
|
@@ -46096,13 +46304,11 @@
|
|
|
46096
46304
|
this.activeChartInstance.renderSync();
|
|
46097
46305
|
table.internalProps.layoutMap?.updateDataStateToActiveChartInstance?.(this.activeChartInstance);
|
|
46098
46306
|
this.activeChartInstance.on('click', (params) => {
|
|
46099
|
-
console.log('click captured', params);
|
|
46100
46307
|
if (Chart.temp) {
|
|
46101
46308
|
table.scenegraph.updateChartState(params?.datum);
|
|
46102
46309
|
}
|
|
46103
46310
|
});
|
|
46104
46311
|
this.activeChartInstance.on('brushEnd', (params) => {
|
|
46105
|
-
console.log('brushEnd captured', params);
|
|
46106
46312
|
table.scenegraph.updateChartState(params?.value?.inBrushData);
|
|
46107
46313
|
Chart.temp = 0;
|
|
46108
46314
|
setTimeout(() => {
|
|
@@ -46110,14 +46316,12 @@
|
|
|
46110
46316
|
}, 0);
|
|
46111
46317
|
});
|
|
46112
46318
|
table._bindChartEvent?.(this.activeChartInstance);
|
|
46113
|
-
console.log('active');
|
|
46114
46319
|
}
|
|
46115
46320
|
static temp = 1;
|
|
46116
46321
|
deactivate() {
|
|
46117
46322
|
this.active = false;
|
|
46118
46323
|
this.activeChartInstance.release();
|
|
46119
46324
|
this.activeChartInstance = null;
|
|
46120
|
-
console.log('deactivate');
|
|
46121
46325
|
}
|
|
46122
46326
|
updateData(data) {
|
|
46123
46327
|
this.attribute.data = data;
|
|
@@ -47525,7 +47729,7 @@
|
|
|
47525
47729
|
return width;
|
|
47526
47730
|
}
|
|
47527
47731
|
else if (width !== 'auto' && typeof width === 'string') {
|
|
47528
|
-
return
|
|
47732
|
+
return table._adjustColWidth(col, table._colWidthDefineToPxWidth(width));
|
|
47529
47733
|
}
|
|
47530
47734
|
return computeAutoColWidth(width, col, startRow, endRow, forceCompute, table);
|
|
47531
47735
|
}
|
|
@@ -47790,6 +47994,25 @@
|
|
|
47790
47994
|
table.setRowHeight(row, rowHeight, false);
|
|
47791
47995
|
}
|
|
47792
47996
|
}
|
|
47997
|
+
else if (table.autoFillHeight) {
|
|
47998
|
+
table._clearRowRangeHeightsMap();
|
|
47999
|
+
const canvasHeight = table.tableNoFrameHeight;
|
|
48000
|
+
let actualHeight = 0;
|
|
48001
|
+
let actualHeaderHeight = 0;
|
|
48002
|
+
for (let row = 0; row < table.rowCount; row++) {
|
|
48003
|
+
const rowHeight = table.getRowHeight(row);
|
|
48004
|
+
if (row < table.frozenRowCount || row >= table.rowCount - table.bottomFrozenRowCount) {
|
|
48005
|
+
actualHeaderHeight += rowHeight;
|
|
48006
|
+
}
|
|
48007
|
+
actualHeight += rowHeight;
|
|
48008
|
+
}
|
|
48009
|
+
if (actualHeight < canvasHeight && actualHeight - actualHeaderHeight > 0) {
|
|
48010
|
+
const factor = (canvasHeight - actualHeaderHeight) / (actualHeight - actualHeaderHeight);
|
|
48011
|
+
for (let row = table.frozenRowCount; row < table.rowCount - table.bottomFrozenRowCount; row++) {
|
|
48012
|
+
table.setRowHeight(row, table.getRowHeight(row) * factor);
|
|
48013
|
+
}
|
|
48014
|
+
}
|
|
48015
|
+
}
|
|
47793
48016
|
if (update) {
|
|
47794
48017
|
for (let row = 0; row < table.rowCount; row++) {
|
|
47795
48018
|
const newRowHeight = table.getRowHeight(row);
|
|
@@ -49369,8 +49592,8 @@
|
|
|
49369
49592
|
let maxHeight = 0;
|
|
49370
49593
|
for (let col = 0; col < this.table.rowHeaderLevelCount; col++) {
|
|
49371
49594
|
const colGroup = this.table.scenegraph.getColGroup(col);
|
|
49372
|
-
const
|
|
49373
|
-
const { height } = createComplexColumn(colGroup, col, colGroup.attribute.width, this.currentRow + 1, endRow, this.table.scenegraph.mergeMap, this.table.internalProps.defaultRowHeight, this.table,
|
|
49595
|
+
const cellLocation = 'rowHeader';
|
|
49596
|
+
const { height } = createComplexColumn(colGroup, col, colGroup.attribute.width, this.currentRow + 1, endRow, this.table.scenegraph.mergeMap, this.table.internalProps.defaultRowHeight, this.table, cellLocation);
|
|
49374
49597
|
maxHeight = Math.max(maxHeight, height);
|
|
49375
49598
|
this.table.scenegraph.rowHeaderGroup.setAttribute('height', maxHeight);
|
|
49376
49599
|
}
|
|
@@ -49379,8 +49602,8 @@
|
|
|
49379
49602
|
let maxHeight = 0;
|
|
49380
49603
|
for (let col = this.table.colCount - this.table.rightFrozenColCount; col < this.table.colCount; col++) {
|
|
49381
49604
|
const colGroup = this.table.scenegraph.getColGroup(col);
|
|
49382
|
-
const
|
|
49383
|
-
const { height } = createComplexColumn(colGroup, col, colGroup.attribute.width, this.currentRow + 1, endRow, this.table.scenegraph.mergeMap, this.table.internalProps.defaultRowHeight, this.table,
|
|
49605
|
+
const cellLocation = 'rowHeader';
|
|
49606
|
+
const { height } = createComplexColumn(colGroup, col, colGroup.attribute.width, this.currentRow + 1, endRow, this.table.scenegraph.mergeMap, this.table.internalProps.defaultRowHeight, this.table, cellLocation);
|
|
49384
49607
|
maxHeight = Math.max(maxHeight, height);
|
|
49385
49608
|
this.table.scenegraph.rightFrozenGroup.setAttribute('height', maxHeight);
|
|
49386
49609
|
}
|
|
@@ -49388,8 +49611,8 @@
|
|
|
49388
49611
|
let maxHeight = 0;
|
|
49389
49612
|
for (let col = this.bodyLeftCol; col <= this.bodyRightCol; col++) {
|
|
49390
49613
|
const colGroup = this.table.scenegraph.getColGroup(col);
|
|
49391
|
-
const
|
|
49392
|
-
const { height } = createComplexColumn(colGroup, col, colGroup.attribute.width, this.currentRow + 1, endRow, this.table.scenegraph.mergeMap, this.table.internalProps.defaultRowHeight, this.table,
|
|
49614
|
+
const cellLocation = 'body';
|
|
49615
|
+
const { height } = createComplexColumn(colGroup, col, colGroup.attribute.width, this.currentRow + 1, endRow, this.table.scenegraph.mergeMap, this.table.internalProps.defaultRowHeight, this.table, cellLocation);
|
|
49393
49616
|
maxHeight = Math.max(maxHeight, height);
|
|
49394
49617
|
}
|
|
49395
49618
|
this.table.scenegraph.bodyGroup.setAttribute('height', maxHeight);
|
|
@@ -50050,7 +50273,7 @@
|
|
|
50050
50273
|
for (let col = colStart; col <= colEnd; col++) {
|
|
50051
50274
|
if (table._getCellStyle(col, row)?.textStick) {
|
|
50052
50275
|
const cellGroup = table.scenegraph.getCell(col, row);
|
|
50053
|
-
adjustCellContentHorizontalLayout(cellGroup, frozenColsWidth + table.tableX, table.tableNoFrameWidth - table.getRightFrozenColsWidth());
|
|
50276
|
+
adjustCellContentHorizontalLayout(cellGroup, frozenColsWidth + table.tableX, table.tableNoFrameWidth - table.getRightFrozenColsWidth() + table.tableX);
|
|
50054
50277
|
changedCells.push({ col, row });
|
|
50055
50278
|
}
|
|
50056
50279
|
}
|
|
@@ -50063,7 +50286,7 @@
|
|
|
50063
50286
|
if (table._getCellStyle(col, row)?.textStick &&
|
|
50064
50287
|
table.internalProps.layoutMap.rowHierarchyType !== 'tree') {
|
|
50065
50288
|
const cellGroup = table.scenegraph.getCell(col, row);
|
|
50066
|
-
adjustCellContentVerticalLayout(cellGroup, frozenRowsHeight + table.tableY, table.tableNoFrameHeight - table.getBottomFrozenRowsHeight());
|
|
50289
|
+
adjustCellContentVerticalLayout(cellGroup, frozenRowsHeight + table.tableY, table.tableNoFrameHeight - table.getBottomFrozenRowsHeight() + table.tableY);
|
|
50067
50290
|
changedCells.push({ col, row });
|
|
50068
50291
|
}
|
|
50069
50292
|
}
|
|
@@ -50072,8 +50295,8 @@
|
|
|
50072
50295
|
for (let col = colStart; col <= colEnd; col++) {
|
|
50073
50296
|
if (table._getCellStyle(col, row)?.textStick) {
|
|
50074
50297
|
const cellGroup = table.scenegraph.getCell(col, row);
|
|
50075
|
-
adjustCellContentVerticalLayout(cellGroup, frozenRowsHeight + table.tableY, table.tableNoFrameHeight - table.getBottomFrozenRowsHeight());
|
|
50076
|
-
adjustCellContentHorizontalLayout(cellGroup, frozenColsWidth + table.tableX, table.tableNoFrameWidth - table.getRightFrozenColsWidth());
|
|
50298
|
+
adjustCellContentVerticalLayout(cellGroup, frozenRowsHeight + table.tableY, table.tableNoFrameHeight - table.getBottomFrozenRowsHeight() + table.tableY);
|
|
50299
|
+
adjustCellContentHorizontalLayout(cellGroup, frozenColsWidth + table.tableX, table.tableNoFrameWidth - table.getRightFrozenColsWidth() + table.tableX);
|
|
50077
50300
|
changedCells.push({ col, row });
|
|
50078
50301
|
}
|
|
50079
50302
|
}
|
|
@@ -50127,18 +50350,15 @@
|
|
|
50127
50350
|
for (let i = 0; i < headerObjects.length; i++) {
|
|
50128
50351
|
const header = headerObjects[i];
|
|
50129
50352
|
if (header && header.style?.textStick) {
|
|
50130
|
-
console.log('checkHaveTextStick', true);
|
|
50131
50353
|
return true;
|
|
50132
50354
|
}
|
|
50133
50355
|
}
|
|
50134
50356
|
for (let i = 0; i < columnObjects.length; i++) {
|
|
50135
50357
|
const column = columnObjects[i];
|
|
50136
50358
|
if (column && column.style?.textStick) {
|
|
50137
|
-
console.log('checkHaveTextStick', true);
|
|
50138
50359
|
return true;
|
|
50139
50360
|
}
|
|
50140
50361
|
}
|
|
50141
|
-
console.log('checkHaveTextStick', false);
|
|
50142
50362
|
return false;
|
|
50143
50363
|
}
|
|
50144
50364
|
|
|
@@ -51408,6 +51628,24 @@
|
|
|
51408
51628
|
this.setRowHeight(row, rowHeight);
|
|
51409
51629
|
}
|
|
51410
51630
|
}
|
|
51631
|
+
else if (table.autoFillHeight) {
|
|
51632
|
+
const canvasHeight = table.tableNoFrameHeight;
|
|
51633
|
+
let actualHeight = 0;
|
|
51634
|
+
let actualHeaderHeight = 0;
|
|
51635
|
+
for (let row = 0; row < table.rowCount; row++) {
|
|
51636
|
+
const rowHeight = table.getRowHeight(row);
|
|
51637
|
+
if (row < table.frozenRowCount || row >= table.rowCount - table.bottomFrozenRowCount) {
|
|
51638
|
+
actualHeaderHeight += rowHeight;
|
|
51639
|
+
}
|
|
51640
|
+
actualHeight += rowHeight;
|
|
51641
|
+
}
|
|
51642
|
+
if (actualHeight < canvasHeight && actualHeight - actualHeaderHeight > 0) {
|
|
51643
|
+
const factor = (canvasHeight - actualHeaderHeight) / (actualHeight - actualHeaderHeight);
|
|
51644
|
+
for (let row = table.frozenRowCount; row < table.rowCount - table.bottomFrozenRowCount; row++) {
|
|
51645
|
+
this.setRowHeight(row, table.getRowHeight(row) * factor);
|
|
51646
|
+
}
|
|
51647
|
+
}
|
|
51648
|
+
}
|
|
51411
51649
|
}
|
|
51412
51650
|
dealFrozen() {
|
|
51413
51651
|
dealFrozen(this);
|
|
@@ -51976,6 +52214,7 @@
|
|
|
51976
52214
|
if (headerC?.sort) {
|
|
51977
52215
|
executeSort(tableState, table, headerC);
|
|
51978
52216
|
}
|
|
52217
|
+
table.internalProps.layoutMap.clearCellRangeMap();
|
|
51979
52218
|
table.scenegraph.sortCell();
|
|
51980
52219
|
table.stateManeger.updateSelectPos(-1, -1);
|
|
51981
52220
|
}
|
|
@@ -52179,7 +52418,7 @@
|
|
|
52179
52418
|
const line = sparkline?.getChildByName('sparkline-line');
|
|
52180
52419
|
const symbol = sparkline?.getChildByName('sparkline-symbol-group');
|
|
52181
52420
|
if (!line) {
|
|
52182
|
-
return;
|
|
52421
|
+
return false;
|
|
52183
52422
|
}
|
|
52184
52423
|
const bandwidth = line.bandwidth;
|
|
52185
52424
|
const min = line.min;
|
|
@@ -52264,6 +52503,7 @@
|
|
|
52264
52503
|
};
|
|
52265
52504
|
table.fireListeners(TABLE_EVENT_TYPE.MOUSEOVER_CHART_SYMBOL, eventInfo);
|
|
52266
52505
|
}
|
|
52506
|
+
return true;
|
|
52267
52507
|
}
|
|
52268
52508
|
|
|
52269
52509
|
function adjustMoveHeaderTarget(source, target, table) {
|
|
@@ -52810,7 +53050,7 @@
|
|
|
52810
53050
|
isSelecting() {
|
|
52811
53051
|
return this.select.selecting;
|
|
52812
53052
|
}
|
|
52813
|
-
endSelectCells() {
|
|
53053
|
+
endSelectCells(fireListener = true) {
|
|
52814
53054
|
this.select.selecting = false;
|
|
52815
53055
|
if (this.select.ranges.length === 0) {
|
|
52816
53056
|
return;
|
|
@@ -52818,11 +53058,12 @@
|
|
|
52818
53058
|
selectEnd(this.table.scenegraph);
|
|
52819
53059
|
const lastCol = this.select.ranges[this.select.ranges.length - 1].end.col;
|
|
52820
53060
|
const lastRow = this.select.ranges[this.select.ranges.length - 1].end.row;
|
|
52821
|
-
|
|
52822
|
-
|
|
52823
|
-
|
|
52824
|
-
|
|
52825
|
-
|
|
53061
|
+
fireListener &&
|
|
53062
|
+
this.table.fireListeners(TABLE_EVENT_TYPE.SELECTED_CELL, {
|
|
53063
|
+
ranges: this.select.ranges,
|
|
53064
|
+
col: lastCol,
|
|
53065
|
+
row: lastRow
|
|
53066
|
+
});
|
|
52826
53067
|
}
|
|
52827
53068
|
endResizeCol() {
|
|
52828
53069
|
setTimeout(() => {
|
|
@@ -53133,7 +53374,6 @@
|
|
|
53133
53374
|
this.sort.row = cellAddress.row;
|
|
53134
53375
|
const cellGroup = this.table.scenegraph.getCell(this.sort.col, this.sort.row);
|
|
53135
53376
|
const iconMark = cellGroup.getChildByName(name, true);
|
|
53136
|
-
this.table.scenegraph.sortCell();
|
|
53137
53377
|
this.table.scenegraph.updateSortIcon(this.sort.col, this.sort.row, iconMark, this.sort.order, oldSortCol, oldSortRow, this.sort.icon);
|
|
53138
53378
|
}
|
|
53139
53379
|
triggerFreeze(col, row, iconMark) {
|
|
@@ -53159,11 +53399,18 @@
|
|
|
53159
53399
|
if (this.sparkLine.col !== -1 && this.sparkLine.row !== -1) {
|
|
53160
53400
|
clearChartHover(this.sparkLine.col, this.sparkLine.row, this.table);
|
|
53161
53401
|
}
|
|
53402
|
+
let isUpdated = false;
|
|
53162
53403
|
if (col !== -1 && row !== -1) {
|
|
53163
|
-
updateChartHover(col, row, x, y, this.table);
|
|
53404
|
+
isUpdated = updateChartHover(col, row, x, y, this.table);
|
|
53405
|
+
}
|
|
53406
|
+
if (isUpdated) {
|
|
53407
|
+
this.sparkLine.col = col;
|
|
53408
|
+
this.sparkLine.row = row;
|
|
53409
|
+
}
|
|
53410
|
+
else {
|
|
53411
|
+
this.sparkLine.col = -1;
|
|
53412
|
+
this.sparkLine.row = -1;
|
|
53164
53413
|
}
|
|
53165
|
-
this.sparkLine.col = col;
|
|
53166
|
-
this.sparkLine.row = row;
|
|
53167
53414
|
}
|
|
53168
53415
|
}
|
|
53169
53416
|
|
|
@@ -53171,21 +53418,21 @@
|
|
|
53171
53418
|
if (Env.mode === 'browser') {
|
|
53172
53419
|
table.on(TABLE_EVENT_TYPE.CLICK_CELL, (e) => {
|
|
53173
53420
|
const { col, row } = e;
|
|
53174
|
-
let
|
|
53421
|
+
let cellType;
|
|
53175
53422
|
if (table.internalProps.layoutMap.isHeader(col, row)) {
|
|
53176
|
-
|
|
53423
|
+
cellType = table.isPivotTable()
|
|
53177
53424
|
? table._getHeaderLayoutMap(col, row).headerType
|
|
53178
53425
|
: table.getHeaderDefine(col, row).headerType;
|
|
53179
53426
|
}
|
|
53180
53427
|
else {
|
|
53181
|
-
|
|
53428
|
+
cellType = table.getBodyColumnType(col, row);
|
|
53182
53429
|
}
|
|
53183
53430
|
const columnDefine = table.isHeader(col, row)
|
|
53184
53431
|
? table.getHeaderDefine(col, row)
|
|
53185
53432
|
: table.getBodyColumnDefine(col, row);
|
|
53186
53433
|
const cellValue = table.getCellValue(col, row);
|
|
53187
53434
|
const cellOriginValue = table.getCellOriginValue(col, row);
|
|
53188
|
-
if (
|
|
53435
|
+
if (cellType === 'link') {
|
|
53189
53436
|
const linkJump = columnDefine.linkJump !== false;
|
|
53190
53437
|
if (!linkJump) {
|
|
53191
53438
|
return;
|
|
@@ -53215,7 +53462,7 @@
|
|
|
53215
53462
|
}
|
|
53216
53463
|
window.open(url);
|
|
53217
53464
|
}
|
|
53218
|
-
else if (
|
|
53465
|
+
else if (cellType === 'image') {
|
|
53219
53466
|
const overlay = document.createElement('div');
|
|
53220
53467
|
overlay.style.width = '100%';
|
|
53221
53468
|
overlay.style.height = '100%';
|
|
@@ -53240,7 +53487,7 @@
|
|
|
53240
53487
|
overlay.appendChild(image);
|
|
53241
53488
|
document.body.appendChild(overlay);
|
|
53242
53489
|
}
|
|
53243
|
-
else if (
|
|
53490
|
+
else if (cellType === 'video') {
|
|
53244
53491
|
const overlay = document.createElement('div');
|
|
53245
53492
|
overlay.style.width = '100%';
|
|
53246
53493
|
overlay.style.height = '100%';
|
|
@@ -53535,7 +53782,6 @@
|
|
|
53535
53782
|
}
|
|
53536
53783
|
});
|
|
53537
53784
|
table.scenegraph.tableGroup.addEventListener('pointerupoutside', (e) => {
|
|
53538
|
-
console.log('pointerupoutside');
|
|
53539
53785
|
if (stateManeger.isResizeCol()) {
|
|
53540
53786
|
endResizeCol(table);
|
|
53541
53787
|
}
|
|
@@ -53699,7 +53945,6 @@
|
|
|
53699
53945
|
}
|
|
53700
53946
|
});
|
|
53701
53947
|
table.scenegraph.tableGroup.addEventListener('click', (e) => {
|
|
53702
|
-
console.log('click', e.clone());
|
|
53703
53948
|
if (table.stateManeger.columnResize.resizing || table.stateManeger.columnMove.moving) {
|
|
53704
53949
|
return;
|
|
53705
53950
|
}
|
|
@@ -53736,12 +53981,10 @@
|
|
|
53736
53981
|
}
|
|
53737
53982
|
});
|
|
53738
53983
|
table.scenegraph.stage.addEventListener('click', (e) => {
|
|
53739
|
-
console.log('stage click');
|
|
53740
53984
|
const target = e.target;
|
|
53741
53985
|
if (target &&
|
|
53742
53986
|
!target.isDescendantsOf(table.scenegraph.tableGroup) &&
|
|
53743
53987
|
target !== table.scenegraph.tableGroup) {
|
|
53744
|
-
console.log('pointerup outside table');
|
|
53745
53988
|
stateManeger.updateInteractionState(InteractionState.default);
|
|
53746
53989
|
eventManeger.dealTableHover();
|
|
53747
53990
|
eventManeger.dealTableSelect();
|
|
@@ -54239,6 +54482,9 @@
|
|
|
54239
54482
|
bindTouchListener(this);
|
|
54240
54483
|
}
|
|
54241
54484
|
bindSelfEvent() {
|
|
54485
|
+
if (this.table.isReleased) {
|
|
54486
|
+
return;
|
|
54487
|
+
}
|
|
54242
54488
|
const stateManeger = this.table.stateManeger;
|
|
54243
54489
|
this.table.on(TABLE_EVENT_TYPE.ICON_CLICK, iconInfo => {
|
|
54244
54490
|
const { col, row, x, y, funcType, icon } = iconInfo;
|
|
@@ -57445,6 +57691,7 @@
|
|
|
57445
57691
|
_widthMode;
|
|
57446
57692
|
_heightMode;
|
|
57447
57693
|
_autoFillWidth;
|
|
57694
|
+
_autoFillHeight;
|
|
57448
57695
|
customRender;
|
|
57449
57696
|
canvasWidth;
|
|
57450
57697
|
canvasHeight;
|
|
@@ -57457,24 +57704,26 @@
|
|
|
57457
57704
|
return TABLE_EVENT_TYPE;
|
|
57458
57705
|
}
|
|
57459
57706
|
options;
|
|
57460
|
-
version = "0.
|
|
57707
|
+
version = "0.11.0";
|
|
57461
57708
|
pagination;
|
|
57462
57709
|
id = `VTable${Date.now()}`;
|
|
57463
57710
|
headerStyleCache;
|
|
57464
57711
|
bodyStyleCache;
|
|
57465
57712
|
container;
|
|
57713
|
+
isReleased = false;
|
|
57466
57714
|
constructor(container, options = {}) {
|
|
57467
57715
|
super();
|
|
57468
57716
|
if (!container) {
|
|
57469
57717
|
throw new Error("vtable's container is undefined");
|
|
57470
57718
|
}
|
|
57471
|
-
const { frozenColCount = 0, defaultRowHeight = 40, defaultHeaderRowHeight, defaultColWidth = 80, defaultHeaderColWidth, widthMode = 'standard', heightMode = 'standard', autoFillWidth = false, keyboardOptions, columnResizeMode, dragHeaderMode, showFrozenIcon, allowFrozenColCount, padding, hover, menu, select: click, customRender, pixelRatio = defaultPixelRatio, renderChartAsync, renderChartAsyncBatchCount } = options;
|
|
57719
|
+
const { frozenColCount = 0, defaultRowHeight = 40, defaultHeaderRowHeight, defaultColWidth = 80, defaultHeaderColWidth, widthMode = 'standard', heightMode = 'standard', autoFillWidth = false, autoFillHeight = false, keyboardOptions, columnResizeMode, dragHeaderMode, showFrozenIcon, allowFrozenColCount, padding, hover, menu, select: click, customRender, pixelRatio = defaultPixelRatio, renderChartAsync, renderChartAsyncBatchCount } = options;
|
|
57472
57720
|
this.container = container;
|
|
57473
57721
|
this.options = options;
|
|
57474
57722
|
this.options.container = container;
|
|
57475
57723
|
this._widthMode = widthMode;
|
|
57476
57724
|
this._heightMode = heightMode;
|
|
57477
57725
|
this._autoFillWidth = autoFillWidth;
|
|
57726
|
+
this._autoFillHeight = autoFillHeight;
|
|
57478
57727
|
this.customRender = customRender;
|
|
57479
57728
|
this.padding = { top: 0, right: 0, left: 0, bottom: 0 };
|
|
57480
57729
|
if (padding) {
|
|
@@ -57772,6 +58021,14 @@
|
|
|
57772
58021
|
this._autoFillWidth = autoFillWidth;
|
|
57773
58022
|
}
|
|
57774
58023
|
}
|
|
58024
|
+
get autoFillHeight() {
|
|
58025
|
+
return this._autoFillHeight;
|
|
58026
|
+
}
|
|
58027
|
+
set autoFillHeight(autoFillHeight) {
|
|
58028
|
+
if (autoFillHeight !== this._autoFillHeight) {
|
|
58029
|
+
this._autoFillHeight = autoFillHeight;
|
|
58030
|
+
}
|
|
58031
|
+
}
|
|
57775
58032
|
_colWidthDefineToPxWidth(width) {
|
|
57776
58033
|
if (width === 'auto') {
|
|
57777
58034
|
return 0;
|
|
@@ -58387,13 +58644,14 @@
|
|
|
58387
58644
|
if (parentElement) {
|
|
58388
58645
|
parentElement.removeChild(internalProps.element);
|
|
58389
58646
|
}
|
|
58647
|
+
this.isReleased = true;
|
|
58390
58648
|
}
|
|
58391
58649
|
fireListeners(type, event) {
|
|
58392
58650
|
return super.fireListeners(type, event);
|
|
58393
58651
|
}
|
|
58394
58652
|
updateOption(options) {
|
|
58395
58653
|
this.options = options;
|
|
58396
|
-
const { frozenColCount = 0, defaultRowHeight = 40, defaultHeaderRowHeight, defaultColWidth = 80, defaultHeaderColWidth = 80, keyboardOptions, columnResizeMode, dragHeaderMode, showFrozenIcon, allowFrozenColCount, padding, hover, menu, select: click, pixelRatio, widthMode, heightMode, autoFillWidth, customRender, renderChartAsync, renderChartAsyncBatchCount } = options;
|
|
58654
|
+
const { frozenColCount = 0, defaultRowHeight = 40, defaultHeaderRowHeight, defaultColWidth = 80, defaultHeaderColWidth = 80, keyboardOptions, columnResizeMode, dragHeaderMode, showFrozenIcon, allowFrozenColCount, padding, hover, menu, select: click, pixelRatio, widthMode, heightMode, autoFillWidth, autoFillHeight, customRender, renderChartAsync, renderChartAsyncBatchCount } = options;
|
|
58397
58655
|
if (pixelRatio && pixelRatio !== this.internalProps.pixelRatio) {
|
|
58398
58656
|
this.internalProps.pixelRatio = pixelRatio;
|
|
58399
58657
|
}
|
|
@@ -58418,6 +58676,7 @@
|
|
|
58418
58676
|
this.widthMode = widthMode ?? 'standard';
|
|
58419
58677
|
this.heightMode = heightMode ?? 'standard';
|
|
58420
58678
|
this.autoFillWidth = autoFillWidth ?? false;
|
|
58679
|
+
this.autoFillHeight = autoFillHeight ?? false;
|
|
58421
58680
|
this.customRender = customRender;
|
|
58422
58681
|
const internalProps = this.internalProps;
|
|
58423
58682
|
if (Env.mode !== 'node') {
|
|
@@ -58694,6 +58953,18 @@
|
|
|
58694
58953
|
this.stateManeger.updateSelectPos(col, row);
|
|
58695
58954
|
this.stateManeger.endSelectCells();
|
|
58696
58955
|
}
|
|
58956
|
+
selectCells(cellRanges) {
|
|
58957
|
+
const { scrollLeft, scrollTop } = this;
|
|
58958
|
+
cellRanges.forEach((cellRange, index) => {
|
|
58959
|
+
this.stateManeger.updateSelectPos(cellRange.start.col, cellRange.start.row, false, index >= 1);
|
|
58960
|
+
this.stateManeger.updateInteractionState(InteractionState.grabing);
|
|
58961
|
+
this.stateManeger.updateSelectPos(cellRange.end.col, cellRange.end.row, false, index >= 1);
|
|
58962
|
+
this.stateManeger.endSelectCells(false);
|
|
58963
|
+
this.stateManeger.updateInteractionState(InteractionState.default);
|
|
58964
|
+
});
|
|
58965
|
+
this.setScrollTop(scrollTop);
|
|
58966
|
+
this.setScrollLeft(scrollLeft);
|
|
58967
|
+
}
|
|
58697
58968
|
get allowFrozenColCount() {
|
|
58698
58969
|
return this.internalProps.allowFrozenColCount;
|
|
58699
58970
|
}
|
|
@@ -58759,7 +59030,8 @@
|
|
|
58759
59030
|
return body?.define;
|
|
58760
59031
|
}
|
|
58761
59032
|
getBodyColumnType(col, row) {
|
|
58762
|
-
|
|
59033
|
+
const cellType = this.internalProps.layoutMap.getBody(col, row).cellType;
|
|
59034
|
+
return getProp('cellType', { cellType }, col, row, this);
|
|
58763
59035
|
}
|
|
58764
59036
|
getHeaderField(col, row) {
|
|
58765
59037
|
return this.internalProps.layoutMap.getHeaderField(col, row);
|
|
@@ -59406,7 +59678,8 @@
|
|
|
59406
59678
|
}
|
|
59407
59679
|
hasAutoImageColumn() {
|
|
59408
59680
|
return this.internalProps.layoutMap.columnObjects.find((column) => {
|
|
59409
|
-
if (column.cellType === 'image'
|
|
59681
|
+
if ((column.cellType === 'image' || typeof column.cellType === 'function') &&
|
|
59682
|
+
column.define.imageAutoSizing) {
|
|
59410
59683
|
return true;
|
|
59411
59684
|
}
|
|
59412
59685
|
return false;
|
|
@@ -59438,13 +59711,41 @@
|
|
|
59438
59711
|
}
|
|
59439
59712
|
exportCellImg(col, row) {
|
|
59440
59713
|
const isInView = this.cellIsInVisualView(col, row);
|
|
59714
|
+
const { scrollTop, scrollLeft } = this;
|
|
59441
59715
|
if (!isInView) {
|
|
59442
59716
|
this.scrollToCell({ col, row });
|
|
59443
59717
|
}
|
|
59444
59718
|
const cellRect = this.getCellRelativeRect(col, row);
|
|
59445
59719
|
const c = this.scenegraph.stage.toCanvas(false, new AABBBounds().set(cellRect.left + this.tableX + 1, cellRect.top + this.tableY + 1, cellRect.right + this.tableX, cellRect.bottom + this.tableY));
|
|
59720
|
+
if (!isInView) {
|
|
59721
|
+
this.setScrollTop(scrollTop);
|
|
59722
|
+
this.setScrollLeft(scrollLeft);
|
|
59723
|
+
}
|
|
59446
59724
|
return c.toDataURL();
|
|
59447
59725
|
}
|
|
59726
|
+
exportCellRangeImg(cellRange) {
|
|
59727
|
+
const { scrollTop, scrollLeft } = this;
|
|
59728
|
+
const minCol = Math.min(cellRange.start.col, cellRange.end.col);
|
|
59729
|
+
const minRow = Math.min(cellRange.start.row, cellRange.end.row);
|
|
59730
|
+
const maxCol = Math.max(cellRange.start.col, cellRange.end.col);
|
|
59731
|
+
const maxRow = Math.max(cellRange.start.row, cellRange.end.row);
|
|
59732
|
+
const isInView = this.cellIsInVisualView(minCol, minRow);
|
|
59733
|
+
const isMaxCellInView = this.cellIsInVisualView(maxCol, maxRow);
|
|
59734
|
+
if (!isInView || !isMaxCellInView) {
|
|
59735
|
+
this.scrollToCell({ col: minCol, row: minRow });
|
|
59736
|
+
}
|
|
59737
|
+
const cellRect = this.getCellRangeRelativeRect({
|
|
59738
|
+
start: { col: minCol, row: minRow },
|
|
59739
|
+
end: { col: maxCol, row: maxRow }
|
|
59740
|
+
});
|
|
59741
|
+
const c = this.scenegraph.stage.toCanvas(false, new AABBBounds().set(cellRect.left + this.tableX + 1, cellRect.top + this.tableY + 1, cellRect.right + this.tableX, cellRect.bottom + this.tableY));
|
|
59742
|
+
const base64Image = c.toDataURL();
|
|
59743
|
+
if (!isInView || !isMaxCellInView) {
|
|
59744
|
+
this.setScrollTop(scrollTop);
|
|
59745
|
+
this.setScrollLeft(scrollLeft);
|
|
59746
|
+
}
|
|
59747
|
+
return base64Image;
|
|
59748
|
+
}
|
|
59448
59749
|
}
|
|
59449
59750
|
|
|
59450
59751
|
var core = /*#__PURE__*/Object.freeze({
|
|
@@ -60435,6 +60736,9 @@
|
|
|
60435
60736
|
indicatorObject.chartInstance?.release();
|
|
60436
60737
|
});
|
|
60437
60738
|
}
|
|
60739
|
+
clearCellRangeMap() {
|
|
60740
|
+
this._cellRangeMap.clear();
|
|
60741
|
+
}
|
|
60438
60742
|
}
|
|
60439
60743
|
|
|
60440
60744
|
class ListTable extends BaseTable {
|
|
@@ -60878,6 +61182,7 @@
|
|
|
60878
61182
|
}
|
|
60879
61183
|
if (hd?.define?.sort) {
|
|
60880
61184
|
this.dataSource.sort(hd.field, order, sortFunc);
|
|
61185
|
+
this.internalProps.layoutMap.clearCellRangeMap();
|
|
60881
61186
|
this.scenegraph.sortCell();
|
|
60882
61187
|
}
|
|
60883
61188
|
}
|
|
@@ -62447,6 +62752,9 @@
|
|
|
62447
62752
|
}
|
|
62448
62753
|
return undefined;
|
|
62449
62754
|
}
|
|
62755
|
+
clearCellRangeMap() {
|
|
62756
|
+
this._cellRangeMap.clear();
|
|
62757
|
+
}
|
|
62450
62758
|
}
|
|
62451
62759
|
|
|
62452
62760
|
const EMPTY_HEADER = {
|
|
@@ -63700,6 +64008,8 @@
|
|
|
63700
64008
|
indicatorObject.chartInstance?.release();
|
|
63701
64009
|
});
|
|
63702
64010
|
}
|
|
64011
|
+
clearCellRangeMap() {
|
|
64012
|
+
}
|
|
63703
64013
|
}
|
|
63704
64014
|
|
|
63705
64015
|
class FlatDataToObjects {
|
|
@@ -66200,7 +66510,6 @@
|
|
|
66200
66510
|
getChartDatumPosition(datum, cellHeaderPaths) {
|
|
66201
66511
|
const cellAddr = this.getCellAddressByHeaderPaths(cellHeaderPaths);
|
|
66202
66512
|
const cellPosition = this.getCellRelativeRect(cellAddr.col, cellAddr.row);
|
|
66203
|
-
console.log(cellPosition);
|
|
66204
66513
|
const cellGroup = this.scenegraph.getCell(cellAddr.col, cellAddr.row);
|
|
66205
66514
|
let position;
|
|
66206
66515
|
const chartNode = cellGroup?.getChildren()?.[0];
|
|
@@ -66865,7 +67174,7 @@
|
|
|
66865
67174
|
percentCalc: percentCalc
|
|
66866
67175
|
});
|
|
66867
67176
|
|
|
66868
|
-
const version = "0.
|
|
67177
|
+
const version = "0.11.0";
|
|
66869
67178
|
function getIcons() {
|
|
66870
67179
|
return get$1();
|
|
66871
67180
|
}
|