@visactor/vchart 1.13.10 → 1.13.11-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/es5/index.js +1 -1
- package/build/index.es.js +148 -66
- package/build/index.js +148 -66
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/core/index.d.ts +1 -1
- package/cjs/core/index.js +3 -2
- package/cjs/core/index.js.map +1 -1
- package/cjs/core/interface.js +1 -2
- package/esm/core/index.d.ts +1 -1
- package/esm/core/index.js +3 -2
- package/esm/core/index.js.map +1 -1
- package/esm/core/interface.js +1 -2
- package/package.json +13 -13
package/build/index.js
CHANGED
|
@@ -7846,11 +7846,14 @@
|
|
|
7846
7846
|
const ContributionProvider = Symbol("ContributionProvider");
|
|
7847
7847
|
class ContributionProviderCache {
|
|
7848
7848
|
constructor(serviceIdentifier, container) {
|
|
7849
|
-
this.serviceIdentifier = serviceIdentifier, this.container = container;
|
|
7849
|
+
this.serviceIdentifier = serviceIdentifier, this.container = container, ContributionStore.setStore(this.serviceIdentifier, this);
|
|
7850
7850
|
}
|
|
7851
7851
|
getContributions() {
|
|
7852
7852
|
return this.caches || (this.caches = [], this.container && this.container.isBound(this.serviceIdentifier) && this.caches.push(...this.container.getAll(this.serviceIdentifier))), this.caches;
|
|
7853
7853
|
}
|
|
7854
|
+
refresh() {
|
|
7855
|
+
this.caches && (this.caches.length = 0, this.container && this.container.isBound(this.serviceIdentifier) && this.caches.push(...this.container.getAll(this.serviceIdentifier)));
|
|
7856
|
+
}
|
|
7854
7857
|
}
|
|
7855
7858
|
function bindContributionProvider(bind, id) {
|
|
7856
7859
|
bind(ContributionProvider).toDynamicValue(_ref => {
|
|
@@ -7868,6 +7871,20 @@
|
|
|
7868
7871
|
return new ContributionProviderCache(id, container);
|
|
7869
7872
|
}).whenTargetNamed(id);
|
|
7870
7873
|
}
|
|
7874
|
+
class ContributionStore {
|
|
7875
|
+
static getStore(id) {
|
|
7876
|
+
return this.store.get(id);
|
|
7877
|
+
}
|
|
7878
|
+
static setStore(id, cache) {
|
|
7879
|
+
this.store.set(id, cache);
|
|
7880
|
+
}
|
|
7881
|
+
static refreshAllContributions() {
|
|
7882
|
+
this.store.forEach(cache => {
|
|
7883
|
+
cache.refresh();
|
|
7884
|
+
});
|
|
7885
|
+
}
|
|
7886
|
+
}
|
|
7887
|
+
ContributionStore.store = new Map();
|
|
7871
7888
|
|
|
7872
7889
|
class Hook {
|
|
7873
7890
|
constructor(args, name) {
|
|
@@ -7934,6 +7951,48 @@
|
|
|
7934
7951
|
const VGlobal = Symbol.for("VGlobal");
|
|
7935
7952
|
const DEFAULT_TEXT_FONT_FAMILY$1 = "PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol";
|
|
7936
7953
|
|
|
7954
|
+
class EventListenerManager {
|
|
7955
|
+
constructor() {
|
|
7956
|
+
this._listenerMap = new Map(), this._eventListenerTransformer = event => event;
|
|
7957
|
+
}
|
|
7958
|
+
setEventListenerTransformer(transformer) {
|
|
7959
|
+
this._eventListenerTransformer = transformer || (event => event);
|
|
7960
|
+
}
|
|
7961
|
+
addEventListener(type, listener, options) {
|
|
7962
|
+
if (!listener) return;
|
|
7963
|
+
const wrappedListener = event => {
|
|
7964
|
+
const transformedEvent = this._eventListenerTransformer(event);
|
|
7965
|
+
"function" == typeof listener ? listener(transformedEvent) : listener.handleEvent && listener.handleEvent(transformedEvent);
|
|
7966
|
+
};
|
|
7967
|
+
this._listenerMap.has(type) || this._listenerMap.set(type, new Map()), this._listenerMap.get(type).set(listener, wrappedListener), this._nativeAddEventListener(type, wrappedListener, options);
|
|
7968
|
+
}
|
|
7969
|
+
removeEventListener(type, listener, options) {
|
|
7970
|
+
var _a;
|
|
7971
|
+
if (!listener) return;
|
|
7972
|
+
const wrappedListener = null === (_a = this._listenerMap.get(type)) || void 0 === _a ? void 0 : _a.get(listener);
|
|
7973
|
+
wrappedListener && (this._nativeRemoveEventListener(type, wrappedListener, options), this._listenerMap.get(type).delete(listener), 0 === this._listenerMap.get(type).size && this._listenerMap.delete(type));
|
|
7974
|
+
}
|
|
7975
|
+
dispatchEvent(event) {
|
|
7976
|
+
return this._nativeDispatchEvent(event);
|
|
7977
|
+
}
|
|
7978
|
+
clearAllEventListeners() {
|
|
7979
|
+
this._listenerMap.forEach((listenersMap, type) => {
|
|
7980
|
+
listenersMap.forEach((wrappedListener, originalListener) => {
|
|
7981
|
+
this._nativeRemoveEventListener(type, wrappedListener, void 0);
|
|
7982
|
+
});
|
|
7983
|
+
}), this._listenerMap.clear();
|
|
7984
|
+
}
|
|
7985
|
+
_nativeAddEventListener(type, listener, options) {
|
|
7986
|
+
throw new Error("_nativeAddEventListener must be implemented by derived classes");
|
|
7987
|
+
}
|
|
7988
|
+
_nativeRemoveEventListener(type, listener, options) {
|
|
7989
|
+
throw new Error("_nativeRemoveEventListener must be implemented by derived classes");
|
|
7990
|
+
}
|
|
7991
|
+
_nativeDispatchEvent(event) {
|
|
7992
|
+
throw new Error("_nativeDispatchEvent must be implemented by derived classes");
|
|
7993
|
+
}
|
|
7994
|
+
}
|
|
7995
|
+
|
|
7937
7996
|
var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
7938
7997
|
var d,
|
|
7939
7998
|
c = arguments.length,
|
|
@@ -7974,7 +8033,7 @@
|
|
|
7974
8033
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
7975
8034
|
});
|
|
7976
8035
|
};
|
|
7977
|
-
let DefaultGlobal = class {
|
|
8036
|
+
let DefaultGlobal = class extends EventListenerManager {
|
|
7978
8037
|
get env() {
|
|
7979
8038
|
return this._env;
|
|
7980
8039
|
}
|
|
@@ -8018,10 +8077,19 @@
|
|
|
8018
8077
|
this._env || this.setEnv("browser"), this.envContribution.applyStyles = support;
|
|
8019
8078
|
}
|
|
8020
8079
|
constructor(contributions) {
|
|
8021
|
-
this.contributions = contributions, this._isImageAnonymous = !0, this.id = Generator.GenAutoIncrementId(), this.hooks = {
|
|
8080
|
+
super(), this.contributions = contributions, this._isImageAnonymous = !0, this.eventListenerTransformer = event => event, this.id = Generator.GenAutoIncrementId(), this.hooks = {
|
|
8022
8081
|
onSetEnv: new SyncHook(["lastEnv", "env", "global"])
|
|
8023
8082
|
}, this.measureTextMethod = "native", this.optimizeVisible = !1;
|
|
8024
8083
|
}
|
|
8084
|
+
_nativeAddEventListener(type, listener, options) {
|
|
8085
|
+
return this._env || this.setEnv("browser"), this.envContribution.addEventListener(type, listener, options);
|
|
8086
|
+
}
|
|
8087
|
+
_nativeRemoveEventListener(type, listener, options) {
|
|
8088
|
+
return this._env || this.setEnv("browser"), this.envContribution.removeEventListener(type, listener, options);
|
|
8089
|
+
}
|
|
8090
|
+
_nativeDispatchEvent(event) {
|
|
8091
|
+
return this._env || this.setEnv("browser"), this.envContribution.dispatchEvent(event);
|
|
8092
|
+
}
|
|
8025
8093
|
bindContribution(params) {
|
|
8026
8094
|
const promiseArr = [];
|
|
8027
8095
|
if (this.contributions.getContributions().forEach(contribution => {
|
|
@@ -8062,15 +8130,6 @@
|
|
|
8062
8130
|
releaseCanvas(canvas) {
|
|
8063
8131
|
return this._env || this.setEnv("browser"), this.envContribution.releaseCanvas(canvas);
|
|
8064
8132
|
}
|
|
8065
|
-
addEventListener(type, listener, options) {
|
|
8066
|
-
return this._env || this.setEnv("browser"), this.envContribution.addEventListener(type, listener, options);
|
|
8067
|
-
}
|
|
8068
|
-
removeEventListener(type, listener, options) {
|
|
8069
|
-
return this._env || this.setEnv("browser"), this.envContribution.removeEventListener(type, listener, options);
|
|
8070
|
-
}
|
|
8071
|
-
dispatchEvent(event) {
|
|
8072
|
-
return this._env || this.setEnv("browser"), this.envContribution.dispatchEvent(event);
|
|
8073
|
-
}
|
|
8074
8133
|
getRequestAnimationFrame() {
|
|
8075
8134
|
return this._env || this.setEnv("browser"), this.envContribution.getRequestAnimationFrame();
|
|
8076
8135
|
}
|
|
@@ -11099,7 +11158,7 @@
|
|
|
11099
11158
|
};
|
|
11100
11159
|
const VWindow = Symbol.for("VWindow");
|
|
11101
11160
|
const WindowHandlerContribution = Symbol.for("WindowHandlerContribution");
|
|
11102
|
-
let DefaultWindow = class {
|
|
11161
|
+
let DefaultWindow = class extends EventListenerManager {
|
|
11103
11162
|
get width() {
|
|
11104
11163
|
if (this._handler) {
|
|
11105
11164
|
const wh = this._handler.getWH();
|
|
@@ -11118,7 +11177,7 @@
|
|
|
11118
11177
|
return this._handler.getDpr();
|
|
11119
11178
|
}
|
|
11120
11179
|
constructor() {
|
|
11121
|
-
this.hooks = {
|
|
11180
|
+
super(), this.hooks = {
|
|
11122
11181
|
onChange: new SyncHook(["x", "y", "width", "height"])
|
|
11123
11182
|
}, this.active = () => {
|
|
11124
11183
|
const global = this.global;
|
|
@@ -11126,6 +11185,15 @@
|
|
|
11126
11185
|
container.getNamed(WindowHandlerContribution, global.env).configure(this, global), this.actived = !0;
|
|
11127
11186
|
}, this._uid = Generator.GenAutoIncrementId(), this.global = application.global, this.postInit();
|
|
11128
11187
|
}
|
|
11188
|
+
_nativeAddEventListener(type, listener, options) {
|
|
11189
|
+
return this._handler.addEventListener(type, listener, options);
|
|
11190
|
+
}
|
|
11191
|
+
_nativeRemoveEventListener(type, listener, options) {
|
|
11192
|
+
return this._handler.removeEventListener(type, listener, options);
|
|
11193
|
+
}
|
|
11194
|
+
_nativeDispatchEvent(event) {
|
|
11195
|
+
return this._handler.dispatchEvent(event);
|
|
11196
|
+
}
|
|
11129
11197
|
postInit() {
|
|
11130
11198
|
this.global.hooks.onSetEnv.tap("window", this.active), this.active();
|
|
11131
11199
|
}
|
|
@@ -11165,7 +11233,7 @@
|
|
|
11165
11233
|
throw new Error("暂不支持");
|
|
11166
11234
|
}
|
|
11167
11235
|
release() {
|
|
11168
|
-
return this.global.hooks.onSetEnv.unTap("window", this.active), this._handler.releaseWindow();
|
|
11236
|
+
return this.global.hooks.onSetEnv.unTap("window", this.active), this.clearAllEventListeners(), this._handler.releaseWindow();
|
|
11169
11237
|
}
|
|
11170
11238
|
getContext() {
|
|
11171
11239
|
return this._handler.getContext();
|
|
@@ -11176,15 +11244,6 @@
|
|
|
11176
11244
|
getImageBuffer(type) {
|
|
11177
11245
|
return this._handler.getImageBuffer ? this._handler.getImageBuffer(type) : null;
|
|
11178
11246
|
}
|
|
11179
|
-
addEventListener(type, listener, options) {
|
|
11180
|
-
return this._handler.addEventListener(type, listener, options);
|
|
11181
|
-
}
|
|
11182
|
-
removeEventListener(type, listener, options) {
|
|
11183
|
-
return this._handler.removeEventListener(type, listener, options);
|
|
11184
|
-
}
|
|
11185
|
-
dispatchEvent(event) {
|
|
11186
|
-
return this._handler.dispatchEvent(event);
|
|
11187
|
-
}
|
|
11188
11247
|
getBoundingClientRect() {
|
|
11189
11248
|
return this._handler.getBoundingClientRect();
|
|
11190
11249
|
}
|
|
@@ -12393,19 +12452,17 @@
|
|
|
12393
12452
|
globalObj: globalObj,
|
|
12394
12453
|
domElement: domElement
|
|
12395
12454
|
} = this;
|
|
12396
|
-
this.supportsPointerEvents ? (globalObj.getDocument() ? (globalObj.
|
|
12455
|
+
this.supportsPointerEvents ? (globalObj.getDocument() ? (globalObj.addEventListener("pointermove", this.onPointerMove, !0), globalObj.addEventListener("pointerup", this.onPointerUp, !0)) : (domElement.addEventListener("pointermove", this.onPointerMove, !0), domElement.addEventListener("pointerup", this.onPointerUp, !0)), domElement.addEventListener("pointerdown", this.onPointerDown, !0), domElement.addEventListener("pointerleave", this.onPointerOverOut, !0), domElement.addEventListener("pointerover", this.onPointerOverOut, !0)) : (globalObj.getDocument() ? (globalObj.addEventListener("mousemove", this.onPointerMove, !0), globalObj.addEventListener("mouseup", this.onPointerUp, !0)) : (domElement.addEventListener("mousemove", this.onPointerMove, !0), domElement.addEventListener("mouseup", this.onPointerUp, !0)), domElement.addEventListener("mousedown", this.onPointerDown, !0), domElement.addEventListener("mouseout", this.onPointerOverOut, !0), domElement.addEventListener("mouseover", this.onPointerOverOut, !0)), this.supportsTouchEvents && (domElement.addEventListener("touchstart", this.onPointerDown, !0), domElement.addEventListener("touchend", this.onPointerUp, !0), domElement.addEventListener("touchmove", this.onPointerMove, !0)), domElement.addEventListener("wheel", this.onWheel, {
|
|
12397
12456
|
capture: !0
|
|
12398
12457
|
}), this.eventsAdded = !0;
|
|
12399
12458
|
}
|
|
12400
12459
|
removeEvents() {
|
|
12401
|
-
var _a;
|
|
12402
12460
|
if (!this.eventsAdded || !this.domElement) return;
|
|
12403
12461
|
const {
|
|
12404
|
-
|
|
12405
|
-
|
|
12406
|
-
|
|
12407
|
-
|
|
12408
|
-
this.supportsPointerEvents ? (globalDocument.removeEventListener("pointermove", this.onPointerMove, !0), globalDocument.removeEventListener("pointerup", this.onPointerUp, !0), domElement.removeEventListener("pointerdown", this.onPointerDown, !0), domElement.removeEventListener("pointerleave", this.onPointerOverOut, !0), domElement.removeEventListener("pointerover", this.onPointerOverOut, !0)) : (globalDocument.removeEventListener("mousemove", this.onPointerMove, !0), globalDocument.removeEventListener("mouseup", this.onPointerUp, !0), domElement.removeEventListener("mousedown", this.onPointerDown, !0), domElement.removeEventListener("mouseout", this.onPointerOverOut, !0), domElement.removeEventListener("mouseover", this.onPointerOverOut, !0)), this.supportsTouchEvents && (domElement.removeEventListener("touchstart", this.onPointerDown, !0), domElement.removeEventListener("touchend", this.onPointerUp, !0), domElement.removeEventListener("touchmove", this.onPointerMove, !0)), domElement.removeEventListener("wheel", this.onWheel, !0), this.domElement = null, this.eventsAdded = !1;
|
|
12462
|
+
globalObj: globalObj,
|
|
12463
|
+
domElement: domElement
|
|
12464
|
+
} = this;
|
|
12465
|
+
this.supportsPointerEvents ? (globalObj.getDocument() ? (globalObj.removeEventListener("pointermove", this.onPointerMove, !0), globalObj.removeEventListener("pointerup", this.onPointerUp, !0)) : (domElement.removeEventListener("pointermove", this.onPointerMove, !0), domElement.removeEventListener("pointerup", this.onPointerUp, !0)), domElement.removeEventListener("pointerdown", this.onPointerDown, !0), domElement.removeEventListener("pointerleave", this.onPointerOverOut, !0), domElement.removeEventListener("pointerover", this.onPointerOverOut, !0)) : (globalObj.getDocument() ? (globalObj.removeEventListener("mousemove", this.onPointerMove, !0), globalObj.removeEventListener("mouseup", this.onPointerUp, !0)) : (domElement.removeEventListener("mousemove", this.onPointerMove, !0), domElement.removeEventListener("mouseup", this.onPointerUp, !0)), domElement.removeEventListener("mousedown", this.onPointerDown, !0), domElement.removeEventListener("mouseout", this.onPointerOverOut, !0), domElement.removeEventListener("mouseover", this.onPointerOverOut, !0)), this.supportsTouchEvents && (domElement.removeEventListener("touchstart", this.onPointerDown, !0), domElement.removeEventListener("touchend", this.onPointerUp, !0), domElement.removeEventListener("touchmove", this.onPointerMove, !0)), domElement.removeEventListener("wheel", this.onWheel, !0), this.domElement = null, this.eventsAdded = !1;
|
|
12409
12466
|
}
|
|
12410
12467
|
mapToViewportPoint(event) {
|
|
12411
12468
|
return this.domElement.pointTransform ? this.domElement.pointTransform(event.x, event.y) : event;
|
|
@@ -13659,23 +13716,27 @@
|
|
|
13659
13716
|
isValidNumber$1(lastClipRange * this.clipRange) && (this.clipRange *= lastClipRange);
|
|
13660
13717
|
}
|
|
13661
13718
|
onUpdate(end, ratio, out) {
|
|
13662
|
-
if (
|
|
13663
|
-
|
|
13664
|
-
|
|
13665
|
-
|
|
13666
|
-
|
|
13667
|
-
|
|
13668
|
-
|
|
13669
|
-
|
|
13670
|
-
|
|
13671
|
-
|
|
13672
|
-
|
|
13673
|
-
|
|
13674
|
-
|
|
13675
|
-
|
|
13719
|
+
if (end) Object.keys(this.to).forEach(k => {
|
|
13720
|
+
out[k] = this.to[k];
|
|
13721
|
+
});else {
|
|
13722
|
+
if (this.points = this.points.map((point, index) => {
|
|
13723
|
+
const newPoint = pointInterpolation(this.interpolatePoints[index][0], this.interpolatePoints[index][1], ratio);
|
|
13724
|
+
return newPoint.context = point.context, newPoint;
|
|
13725
|
+
}), this.clipRange) {
|
|
13726
|
+
if (this.shrinkClipRange) return void (end ? (out.points = this.toPoints, out.clipRange = 1) : (out.points = this.fromPoints, out.clipRange = this.clipRange - (this.clipRange - this.shrinkClipRange) * ratio));
|
|
13727
|
+
out.clipRange = this.clipRange + (1 - this.clipRange) * ratio;
|
|
13728
|
+
}
|
|
13729
|
+
if (this.segmentsCache && this.to.segments) {
|
|
13730
|
+
let start = 0;
|
|
13731
|
+
out.segments = this.to.segments.map((segment, index) => {
|
|
13732
|
+
const end = start + this.segmentsCache[index],
|
|
13733
|
+
points = this.points.slice(start, end);
|
|
13734
|
+
return start = end, Object.assign(Object.assign({}, segment), {
|
|
13735
|
+
points: points
|
|
13736
|
+
});
|
|
13676
13737
|
});
|
|
13677
|
-
}
|
|
13678
|
-
}
|
|
13738
|
+
} else out.points = this.points;
|
|
13739
|
+
}
|
|
13679
13740
|
}
|
|
13680
13741
|
}
|
|
13681
13742
|
class ClipGraphicAnimate extends ACustomAnimate {
|
|
@@ -21080,6 +21141,9 @@
|
|
|
21080
21141
|
init(contributions) {
|
|
21081
21142
|
contributions && (this._renderContribitions = contributions.getContributions()), this._renderContribitions || (this._renderContribitions = []), this.builtinContributions || (this.builtinContributions = []), this.builtinContributions.push(defaultBaseClipRenderBeforeContribution), this.builtinContributions.push(defaultBaseClipRenderAfterContribution), this.builtinContributions.forEach(item => this._renderContribitions.push(item)), this._renderContribitions.length && (this._renderContribitions.sort((a, b) => b.order - a.order), this._beforeRenderContribitions = this._renderContribitions.filter(c => c.time === BaseRenderContributionTime.beforeFillStroke), this._afterRenderContribitions = this._renderContribitions.filter(c => c.time === BaseRenderContributionTime.afterFillStroke));
|
|
21082
21143
|
}
|
|
21144
|
+
reInit() {
|
|
21145
|
+
this.init(this.graphicRenderContributions);
|
|
21146
|
+
}
|
|
21083
21147
|
beforeRenderStep(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, graphicAttribute, drawContext, fillCb, strokeCb, params) {
|
|
21084
21148
|
this._beforeRenderContribitions && this._beforeRenderContribitions.forEach(c => {
|
|
21085
21149
|
if (c.supportedAppName && graphic.stage && graphic.stage.params && graphic.stage.params.context && graphic.stage.params.context.appName) {
|
|
@@ -21249,8 +21313,8 @@
|
|
|
21249
21313
|
};
|
|
21250
21314
|
};
|
|
21251
21315
|
let DefaultCanvasArcRender = class extends BaseRender {
|
|
21252
|
-
constructor(
|
|
21253
|
-
super(), this.
|
|
21316
|
+
constructor(graphicRenderContributions) {
|
|
21317
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = ARC_NUMBER_TYPE, this.builtinContributions = [defaultArcRenderContribution, defaultArcBackgroundRenderContribution, defaultArcTextureRenderContribution], this.init(graphicRenderContributions);
|
|
21254
21318
|
}
|
|
21255
21319
|
drawArcTailCapPath(arc, context, cx, cy, outerRadius, innerRadius, _sa, _ea) {
|
|
21256
21320
|
const capAngle = _ea - _sa,
|
|
@@ -21425,8 +21489,8 @@
|
|
|
21425
21489
|
};
|
|
21426
21490
|
};
|
|
21427
21491
|
let DefaultCanvasCircleRender = class extends BaseRender {
|
|
21428
|
-
constructor(
|
|
21429
|
-
super(), this.
|
|
21492
|
+
constructor(graphicRenderContributions) {
|
|
21493
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = CIRCLE_NUMBER_TYPE, this.builtinContributions = [defaultCircleRenderContribution, defaultCircleBackgroundRenderContribution, defaultCircleTextureRenderContribution], this.init(graphicRenderContributions);
|
|
21430
21494
|
}
|
|
21431
21495
|
drawShape(circle, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
21432
21496
|
const circleAttribute = getTheme$1(circle, null == params ? void 0 : params.theme).circle,
|
|
@@ -21812,8 +21876,8 @@
|
|
|
21812
21876
|
};
|
|
21813
21877
|
};
|
|
21814
21878
|
let DefaultCanvasAreaRender = class extends BaseRender {
|
|
21815
|
-
constructor(
|
|
21816
|
-
super(), this.
|
|
21879
|
+
constructor(graphicRenderContributions) {
|
|
21880
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = AREA_NUMBER_TYPE, this.builtinContributions = [defaultAreaTextureRenderContribution, defaultAreaBackgroundRenderContribution], this.init(graphicRenderContributions);
|
|
21817
21881
|
}
|
|
21818
21882
|
drawLinearAreaHighPerformance(area, context, fill, stroke, fillOpacity, strokeOpacity, offsetX, offsetY, areaAttribute, drawContext, params, fillCb, strokeCb) {
|
|
21819
21883
|
var _a, _b, _c;
|
|
@@ -22056,8 +22120,8 @@
|
|
|
22056
22120
|
};
|
|
22057
22121
|
};
|
|
22058
22122
|
let DefaultCanvasPathRender = class extends BaseRender {
|
|
22059
|
-
constructor(
|
|
22060
|
-
super(), this.
|
|
22123
|
+
constructor(graphicRenderContributions) {
|
|
22124
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = PATH_NUMBER_TYPE, this.builtinContributions = [defaultPathBackgroundRenderContribution, defaultPathTextureRenderContribution], this.init(graphicRenderContributions);
|
|
22061
22125
|
}
|
|
22062
22126
|
drawShape(path, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
22063
22127
|
var _a, _b, _c;
|
|
@@ -22112,8 +22176,8 @@
|
|
|
22112
22176
|
};
|
|
22113
22177
|
};
|
|
22114
22178
|
let DefaultCanvasRectRender = class extends BaseRender {
|
|
22115
|
-
constructor(
|
|
22116
|
-
super(), this.
|
|
22179
|
+
constructor(graphicRenderContributions) {
|
|
22180
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.type = "rect", this.numberType = RECT_NUMBER_TYPE, this.builtinContributions = [defaultRectRenderContribution, defaultRectBackgroundRenderContribution, defaultRectTextureRenderContribution], this.init(graphicRenderContributions);
|
|
22117
22181
|
}
|
|
22118
22182
|
drawShape(rect, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
22119
22183
|
var _a;
|
|
@@ -22184,8 +22248,8 @@
|
|
|
22184
22248
|
};
|
|
22185
22249
|
};
|
|
22186
22250
|
let DefaultCanvasSymbolRender = class extends BaseRender {
|
|
22187
|
-
constructor(
|
|
22188
|
-
super(), this.
|
|
22251
|
+
constructor(graphicRenderContributions) {
|
|
22252
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = SYMBOL_NUMBER_TYPE, this.builtinContributions = [defaultSymbolRenderContribution, defaultSymbolBackgroundRenderContribution, defaultSymbolTextureRenderContribution, defaultSymbolClipRangeStrokeRenderContribution], this.init(graphicRenderContributions);
|
|
22189
22253
|
}
|
|
22190
22254
|
drawShape(symbol, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
22191
22255
|
var _a;
|
|
@@ -22356,8 +22420,8 @@
|
|
|
22356
22420
|
};
|
|
22357
22421
|
};
|
|
22358
22422
|
let DefaultCanvasTextRender = class extends BaseRender {
|
|
22359
|
-
constructor(
|
|
22360
|
-
super(), this.
|
|
22423
|
+
constructor(graphicRenderContributions) {
|
|
22424
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = TEXT_NUMBER_TYPE, this.builtinContributions = [defaultTextBackgroundRenderContribution], this.init(graphicRenderContributions);
|
|
22361
22425
|
}
|
|
22362
22426
|
drawShape(text, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
22363
22427
|
var _a, _b, _c;
|
|
@@ -22561,8 +22625,8 @@
|
|
|
22561
22625
|
};
|
|
22562
22626
|
};
|
|
22563
22627
|
let DefaultCanvasPolygonRender = class extends BaseRender {
|
|
22564
|
-
constructor(
|
|
22565
|
-
super(), this.
|
|
22628
|
+
constructor(graphicRenderContributions) {
|
|
22629
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = POLYGON_NUMBER_TYPE, this.builtinContributions = [defaultPolygonBackgroundRenderContribution, defaultPolygonTextureRenderContribution], this.init(graphicRenderContributions);
|
|
22566
22630
|
}
|
|
22567
22631
|
drawShape(polygon, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
22568
22632
|
const polygonAttribute = getTheme$1(polygon, null == params ? void 0 : params.theme).polygon,
|
|
@@ -22617,6 +22681,9 @@
|
|
|
22617
22681
|
constructor(groupRenderContribitions) {
|
|
22618
22682
|
this.groupRenderContribitions = groupRenderContribitions, this.numberType = GROUP_NUMBER_TYPE;
|
|
22619
22683
|
}
|
|
22684
|
+
reInit() {
|
|
22685
|
+
this._groupRenderContribitions = this.groupRenderContribitions.getContributions() || [], this._groupRenderContribitions.push(defaultGroupBackgroundRenderContribution);
|
|
22686
|
+
}
|
|
22620
22687
|
drawShape(group, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
22621
22688
|
const groupAttribute = getTheme$1(group, null == params ? void 0 : params.theme).group,
|
|
22622
22689
|
{
|
|
@@ -22747,8 +22814,8 @@
|
|
|
22747
22814
|
};
|
|
22748
22815
|
const repeatStr = ["", "repeat-x", "repeat-y", "repeat"];
|
|
22749
22816
|
let DefaultCanvasImageRender = class extends BaseRender {
|
|
22750
|
-
constructor(
|
|
22751
|
-
super(), this.
|
|
22817
|
+
constructor(graphicRenderContributions) {
|
|
22818
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = IMAGE_NUMBER_TYPE, this.builtinContributions = [defaultImageRenderContribution, defaultImageBackgroundRenderContribution], this.init(graphicRenderContributions);
|
|
22752
22819
|
}
|
|
22753
22820
|
drawShape(image, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
22754
22821
|
const imageAttribute = getTheme$1(image).image,
|
|
@@ -23075,6 +23142,9 @@
|
|
|
23075
23142
|
afterDraw(params) {
|
|
23076
23143
|
this.drawContribution.afterDraw && this.drawContribution.afterDraw(this, Object.assign({}, this.drawParams));
|
|
23077
23144
|
}
|
|
23145
|
+
reInit() {
|
|
23146
|
+
this.drawContribution.reInit();
|
|
23147
|
+
}
|
|
23078
23148
|
render(groups, params) {
|
|
23079
23149
|
this.renderTreeRoots = groups, this.drawParams = params;
|
|
23080
23150
|
const updateBounds = params.updateBounds;
|
|
@@ -23476,6 +23546,11 @@
|
|
|
23476
23546
|
constructor(contributions, drawItemInterceptorContributions) {
|
|
23477
23547
|
this.contributions = contributions, this.drawItemInterceptorContributions = drawItemInterceptorContributions, this.currentRenderMap = new Map(), this.defaultRenderMap = new Map(), this.styleRenderMap = new Map(), this.dirtyBounds = new Bounds(), this.backupDirtyBounds = new Bounds(), this.global = application.global, this.layerService = application.layerService, isArray$1(this.contributions) || (this.contributions = [this.contributions]), this.init();
|
|
23478
23548
|
}
|
|
23549
|
+
reInit() {
|
|
23550
|
+
this.init(), this.contributions.forEach(item => {
|
|
23551
|
+
item.reInit();
|
|
23552
|
+
});
|
|
23553
|
+
}
|
|
23479
23554
|
init() {
|
|
23480
23555
|
this.contributions.forEach(item => {
|
|
23481
23556
|
if (item.style) {
|
|
@@ -24595,6 +24670,9 @@
|
|
|
24595
24670
|
getPickerService() {
|
|
24596
24671
|
return this.pickerService || (this.pickerService = container.get(PickerService)), this.pickerService;
|
|
24597
24672
|
}
|
|
24673
|
+
reInit() {
|
|
24674
|
+
this.renderService.reInit(), this.pickerService.reInit();
|
|
24675
|
+
}
|
|
24598
24676
|
}
|
|
24599
24677
|
|
|
24600
24678
|
function createStage(params) {
|
|
@@ -25192,6 +25270,9 @@
|
|
|
25192
25270
|
constructor(pickItemInterceptorContributions, pickServiceInterceptorContributions) {
|
|
25193
25271
|
this.pickItemInterceptorContributions = pickItemInterceptorContributions, this.pickServiceInterceptorContributions = pickServiceInterceptorContributions, this.type = "default", this.global = application.global;
|
|
25194
25272
|
}
|
|
25273
|
+
reInit() {
|
|
25274
|
+
this._init();
|
|
25275
|
+
}
|
|
25195
25276
|
_init() {
|
|
25196
25277
|
this.InterceptorContributions = this.pickItemInterceptorContributions.getContributions().sort((a, b) => a.order - b.order), this.pickerServiceInterceptorContributions = this.pickServiceInterceptorContributions.getContributions().sort((a, b) => a.order - b.order);
|
|
25197
25278
|
}
|
|
@@ -25360,6 +25441,7 @@
|
|
|
25360
25441
|
constructor() {
|
|
25361
25442
|
this.numberType = GLYPH_NUMBER_TYPE;
|
|
25362
25443
|
}
|
|
25444
|
+
reInit() {}
|
|
25363
25445
|
drawShape(glyph, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
25364
25446
|
drawContext.drawContribution && glyph.getSubGraphic().forEach(item => {
|
|
25365
25447
|
const renderer = drawContext.drawContribution.getRenderContribution(item);
|
|
@@ -64123,7 +64205,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
64123
64205
|
};
|
|
64124
64206
|
registerVChartCore();
|
|
64125
64207
|
|
|
64126
|
-
const version = "1.13.
|
|
64208
|
+
const version = "1.13.11-alpha.0";
|
|
64127
64209
|
|
|
64128
64210
|
const addVChartProperty = (data, op) => {
|
|
64129
64211
|
const context = op.beforeCall();
|