@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.es.js
CHANGED
|
@@ -7840,11 +7840,14 @@ class Container {
|
|
|
7840
7840
|
const ContributionProvider = Symbol("ContributionProvider");
|
|
7841
7841
|
class ContributionProviderCache {
|
|
7842
7842
|
constructor(serviceIdentifier, container) {
|
|
7843
|
-
this.serviceIdentifier = serviceIdentifier, this.container = container;
|
|
7843
|
+
this.serviceIdentifier = serviceIdentifier, this.container = container, ContributionStore.setStore(this.serviceIdentifier, this);
|
|
7844
7844
|
}
|
|
7845
7845
|
getContributions() {
|
|
7846
7846
|
return this.caches || (this.caches = [], this.container && this.container.isBound(this.serviceIdentifier) && this.caches.push(...this.container.getAll(this.serviceIdentifier))), this.caches;
|
|
7847
7847
|
}
|
|
7848
|
+
refresh() {
|
|
7849
|
+
this.caches && (this.caches.length = 0, this.container && this.container.isBound(this.serviceIdentifier) && this.caches.push(...this.container.getAll(this.serviceIdentifier)));
|
|
7850
|
+
}
|
|
7848
7851
|
}
|
|
7849
7852
|
function bindContributionProvider(bind, id) {
|
|
7850
7853
|
bind(ContributionProvider).toDynamicValue(_ref => {
|
|
@@ -7862,6 +7865,20 @@ function bindContributionProviderNoSingletonScope(bind, id) {
|
|
|
7862
7865
|
return new ContributionProviderCache(id, container);
|
|
7863
7866
|
}).whenTargetNamed(id);
|
|
7864
7867
|
}
|
|
7868
|
+
class ContributionStore {
|
|
7869
|
+
static getStore(id) {
|
|
7870
|
+
return this.store.get(id);
|
|
7871
|
+
}
|
|
7872
|
+
static setStore(id, cache) {
|
|
7873
|
+
this.store.set(id, cache);
|
|
7874
|
+
}
|
|
7875
|
+
static refreshAllContributions() {
|
|
7876
|
+
this.store.forEach(cache => {
|
|
7877
|
+
cache.refresh();
|
|
7878
|
+
});
|
|
7879
|
+
}
|
|
7880
|
+
}
|
|
7881
|
+
ContributionStore.store = new Map();
|
|
7865
7882
|
|
|
7866
7883
|
class Hook {
|
|
7867
7884
|
constructor(args, name) {
|
|
@@ -7928,6 +7945,48 @@ const EnvContribution = Symbol.for("EnvContribution");
|
|
|
7928
7945
|
const VGlobal = Symbol.for("VGlobal");
|
|
7929
7946
|
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";
|
|
7930
7947
|
|
|
7948
|
+
class EventListenerManager {
|
|
7949
|
+
constructor() {
|
|
7950
|
+
this._listenerMap = new Map(), this._eventListenerTransformer = event => event;
|
|
7951
|
+
}
|
|
7952
|
+
setEventListenerTransformer(transformer) {
|
|
7953
|
+
this._eventListenerTransformer = transformer || (event => event);
|
|
7954
|
+
}
|
|
7955
|
+
addEventListener(type, listener, options) {
|
|
7956
|
+
if (!listener) return;
|
|
7957
|
+
const wrappedListener = event => {
|
|
7958
|
+
const transformedEvent = this._eventListenerTransformer(event);
|
|
7959
|
+
"function" == typeof listener ? listener(transformedEvent) : listener.handleEvent && listener.handleEvent(transformedEvent);
|
|
7960
|
+
};
|
|
7961
|
+
this._listenerMap.has(type) || this._listenerMap.set(type, new Map()), this._listenerMap.get(type).set(listener, wrappedListener), this._nativeAddEventListener(type, wrappedListener, options);
|
|
7962
|
+
}
|
|
7963
|
+
removeEventListener(type, listener, options) {
|
|
7964
|
+
var _a;
|
|
7965
|
+
if (!listener) return;
|
|
7966
|
+
const wrappedListener = null === (_a = this._listenerMap.get(type)) || void 0 === _a ? void 0 : _a.get(listener);
|
|
7967
|
+
wrappedListener && (this._nativeRemoveEventListener(type, wrappedListener, options), this._listenerMap.get(type).delete(listener), 0 === this._listenerMap.get(type).size && this._listenerMap.delete(type));
|
|
7968
|
+
}
|
|
7969
|
+
dispatchEvent(event) {
|
|
7970
|
+
return this._nativeDispatchEvent(event);
|
|
7971
|
+
}
|
|
7972
|
+
clearAllEventListeners() {
|
|
7973
|
+
this._listenerMap.forEach((listenersMap, type) => {
|
|
7974
|
+
listenersMap.forEach((wrappedListener, originalListener) => {
|
|
7975
|
+
this._nativeRemoveEventListener(type, wrappedListener, void 0);
|
|
7976
|
+
});
|
|
7977
|
+
}), this._listenerMap.clear();
|
|
7978
|
+
}
|
|
7979
|
+
_nativeAddEventListener(type, listener, options) {
|
|
7980
|
+
throw new Error("_nativeAddEventListener must be implemented by derived classes");
|
|
7981
|
+
}
|
|
7982
|
+
_nativeRemoveEventListener(type, listener, options) {
|
|
7983
|
+
throw new Error("_nativeRemoveEventListener must be implemented by derived classes");
|
|
7984
|
+
}
|
|
7985
|
+
_nativeDispatchEvent(event) {
|
|
7986
|
+
throw new Error("_nativeDispatchEvent must be implemented by derived classes");
|
|
7987
|
+
}
|
|
7988
|
+
}
|
|
7989
|
+
|
|
7931
7990
|
var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
7932
7991
|
var d,
|
|
7933
7992
|
c = arguments.length,
|
|
@@ -7968,7 +8027,7 @@ var __decorate$1B = undefined && undefined.__decorate || function (decorators, t
|
|
|
7968
8027
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
7969
8028
|
});
|
|
7970
8029
|
};
|
|
7971
|
-
let DefaultGlobal = class {
|
|
8030
|
+
let DefaultGlobal = class extends EventListenerManager {
|
|
7972
8031
|
get env() {
|
|
7973
8032
|
return this._env;
|
|
7974
8033
|
}
|
|
@@ -8012,10 +8071,19 @@ let DefaultGlobal = class {
|
|
|
8012
8071
|
this._env || this.setEnv("browser"), this.envContribution.applyStyles = support;
|
|
8013
8072
|
}
|
|
8014
8073
|
constructor(contributions) {
|
|
8015
|
-
this.contributions = contributions, this._isImageAnonymous = !0, this.id = Generator.GenAutoIncrementId(), this.hooks = {
|
|
8074
|
+
super(), this.contributions = contributions, this._isImageAnonymous = !0, this.eventListenerTransformer = event => event, this.id = Generator.GenAutoIncrementId(), this.hooks = {
|
|
8016
8075
|
onSetEnv: new SyncHook(["lastEnv", "env", "global"])
|
|
8017
8076
|
}, this.measureTextMethod = "native", this.optimizeVisible = !1;
|
|
8018
8077
|
}
|
|
8078
|
+
_nativeAddEventListener(type, listener, options) {
|
|
8079
|
+
return this._env || this.setEnv("browser"), this.envContribution.addEventListener(type, listener, options);
|
|
8080
|
+
}
|
|
8081
|
+
_nativeRemoveEventListener(type, listener, options) {
|
|
8082
|
+
return this._env || this.setEnv("browser"), this.envContribution.removeEventListener(type, listener, options);
|
|
8083
|
+
}
|
|
8084
|
+
_nativeDispatchEvent(event) {
|
|
8085
|
+
return this._env || this.setEnv("browser"), this.envContribution.dispatchEvent(event);
|
|
8086
|
+
}
|
|
8019
8087
|
bindContribution(params) {
|
|
8020
8088
|
const promiseArr = [];
|
|
8021
8089
|
if (this.contributions.getContributions().forEach(contribution => {
|
|
@@ -8056,15 +8124,6 @@ let DefaultGlobal = class {
|
|
|
8056
8124
|
releaseCanvas(canvas) {
|
|
8057
8125
|
return this._env || this.setEnv("browser"), this.envContribution.releaseCanvas(canvas);
|
|
8058
8126
|
}
|
|
8059
|
-
addEventListener(type, listener, options) {
|
|
8060
|
-
return this._env || this.setEnv("browser"), this.envContribution.addEventListener(type, listener, options);
|
|
8061
|
-
}
|
|
8062
|
-
removeEventListener(type, listener, options) {
|
|
8063
|
-
return this._env || this.setEnv("browser"), this.envContribution.removeEventListener(type, listener, options);
|
|
8064
|
-
}
|
|
8065
|
-
dispatchEvent(event) {
|
|
8066
|
-
return this._env || this.setEnv("browser"), this.envContribution.dispatchEvent(event);
|
|
8067
|
-
}
|
|
8068
8127
|
getRequestAnimationFrame() {
|
|
8069
8128
|
return this._env || this.setEnv("browser"), this.envContribution.getRequestAnimationFrame();
|
|
8070
8129
|
}
|
|
@@ -11093,7 +11152,7 @@ var __decorate$1y = undefined && undefined.__decorate || function (decorators, t
|
|
|
11093
11152
|
};
|
|
11094
11153
|
const VWindow = Symbol.for("VWindow");
|
|
11095
11154
|
const WindowHandlerContribution = Symbol.for("WindowHandlerContribution");
|
|
11096
|
-
let DefaultWindow = class {
|
|
11155
|
+
let DefaultWindow = class extends EventListenerManager {
|
|
11097
11156
|
get width() {
|
|
11098
11157
|
if (this._handler) {
|
|
11099
11158
|
const wh = this._handler.getWH();
|
|
@@ -11112,7 +11171,7 @@ let DefaultWindow = class {
|
|
|
11112
11171
|
return this._handler.getDpr();
|
|
11113
11172
|
}
|
|
11114
11173
|
constructor() {
|
|
11115
|
-
this.hooks = {
|
|
11174
|
+
super(), this.hooks = {
|
|
11116
11175
|
onChange: new SyncHook(["x", "y", "width", "height"])
|
|
11117
11176
|
}, this.active = () => {
|
|
11118
11177
|
const global = this.global;
|
|
@@ -11120,6 +11179,15 @@ let DefaultWindow = class {
|
|
|
11120
11179
|
container.getNamed(WindowHandlerContribution, global.env).configure(this, global), this.actived = !0;
|
|
11121
11180
|
}, this._uid = Generator.GenAutoIncrementId(), this.global = application.global, this.postInit();
|
|
11122
11181
|
}
|
|
11182
|
+
_nativeAddEventListener(type, listener, options) {
|
|
11183
|
+
return this._handler.addEventListener(type, listener, options);
|
|
11184
|
+
}
|
|
11185
|
+
_nativeRemoveEventListener(type, listener, options) {
|
|
11186
|
+
return this._handler.removeEventListener(type, listener, options);
|
|
11187
|
+
}
|
|
11188
|
+
_nativeDispatchEvent(event) {
|
|
11189
|
+
return this._handler.dispatchEvent(event);
|
|
11190
|
+
}
|
|
11123
11191
|
postInit() {
|
|
11124
11192
|
this.global.hooks.onSetEnv.tap("window", this.active), this.active();
|
|
11125
11193
|
}
|
|
@@ -11159,7 +11227,7 @@ let DefaultWindow = class {
|
|
|
11159
11227
|
throw new Error("暂不支持");
|
|
11160
11228
|
}
|
|
11161
11229
|
release() {
|
|
11162
|
-
return this.global.hooks.onSetEnv.unTap("window", this.active), this._handler.releaseWindow();
|
|
11230
|
+
return this.global.hooks.onSetEnv.unTap("window", this.active), this.clearAllEventListeners(), this._handler.releaseWindow();
|
|
11163
11231
|
}
|
|
11164
11232
|
getContext() {
|
|
11165
11233
|
return this._handler.getContext();
|
|
@@ -11170,15 +11238,6 @@ let DefaultWindow = class {
|
|
|
11170
11238
|
getImageBuffer(type) {
|
|
11171
11239
|
return this._handler.getImageBuffer ? this._handler.getImageBuffer(type) : null;
|
|
11172
11240
|
}
|
|
11173
|
-
addEventListener(type, listener, options) {
|
|
11174
|
-
return this._handler.addEventListener(type, listener, options);
|
|
11175
|
-
}
|
|
11176
|
-
removeEventListener(type, listener, options) {
|
|
11177
|
-
return this._handler.removeEventListener(type, listener, options);
|
|
11178
|
-
}
|
|
11179
|
-
dispatchEvent(event) {
|
|
11180
|
-
return this._handler.dispatchEvent(event);
|
|
11181
|
-
}
|
|
11182
11241
|
getBoundingClientRect() {
|
|
11183
11242
|
return this._handler.getBoundingClientRect();
|
|
11184
11243
|
}
|
|
@@ -12387,19 +12446,17 @@ class EventSystem {
|
|
|
12387
12446
|
globalObj: globalObj,
|
|
12388
12447
|
domElement: domElement
|
|
12389
12448
|
} = this;
|
|
12390
|
-
this.supportsPointerEvents ? (globalObj.getDocument() ? (globalObj.
|
|
12449
|
+
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, {
|
|
12391
12450
|
capture: !0
|
|
12392
12451
|
}), this.eventsAdded = !0;
|
|
12393
12452
|
}
|
|
12394
12453
|
removeEvents() {
|
|
12395
|
-
var _a;
|
|
12396
12454
|
if (!this.eventsAdded || !this.domElement) return;
|
|
12397
12455
|
const {
|
|
12398
|
-
|
|
12399
|
-
|
|
12400
|
-
|
|
12401
|
-
|
|
12402
|
-
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;
|
|
12456
|
+
globalObj: globalObj,
|
|
12457
|
+
domElement: domElement
|
|
12458
|
+
} = this;
|
|
12459
|
+
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;
|
|
12403
12460
|
}
|
|
12404
12461
|
mapToViewportPoint(event) {
|
|
12405
12462
|
return this.domElement.pointTransform ? this.domElement.pointTransform(event.x, event.y) : event;
|
|
@@ -13653,23 +13710,27 @@ class TagPointsUpdate extends ACustomAnimate {
|
|
|
13653
13710
|
isValidNumber$1(lastClipRange * this.clipRange) && (this.clipRange *= lastClipRange);
|
|
13654
13711
|
}
|
|
13655
13712
|
onUpdate(end, ratio, out) {
|
|
13656
|
-
if (
|
|
13657
|
-
|
|
13658
|
-
|
|
13659
|
-
|
|
13660
|
-
|
|
13661
|
-
|
|
13662
|
-
|
|
13663
|
-
|
|
13664
|
-
|
|
13665
|
-
|
|
13666
|
-
|
|
13667
|
-
|
|
13668
|
-
|
|
13669
|
-
|
|
13713
|
+
if (end) Object.keys(this.to).forEach(k => {
|
|
13714
|
+
out[k] = this.to[k];
|
|
13715
|
+
});else {
|
|
13716
|
+
if (this.points = this.points.map((point, index) => {
|
|
13717
|
+
const newPoint = pointInterpolation(this.interpolatePoints[index][0], this.interpolatePoints[index][1], ratio);
|
|
13718
|
+
return newPoint.context = point.context, newPoint;
|
|
13719
|
+
}), this.clipRange) {
|
|
13720
|
+
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));
|
|
13721
|
+
out.clipRange = this.clipRange + (1 - this.clipRange) * ratio;
|
|
13722
|
+
}
|
|
13723
|
+
if (this.segmentsCache && this.to.segments) {
|
|
13724
|
+
let start = 0;
|
|
13725
|
+
out.segments = this.to.segments.map((segment, index) => {
|
|
13726
|
+
const end = start + this.segmentsCache[index],
|
|
13727
|
+
points = this.points.slice(start, end);
|
|
13728
|
+
return start = end, Object.assign(Object.assign({}, segment), {
|
|
13729
|
+
points: points
|
|
13730
|
+
});
|
|
13670
13731
|
});
|
|
13671
|
-
}
|
|
13672
|
-
}
|
|
13732
|
+
} else out.points = this.points;
|
|
13733
|
+
}
|
|
13673
13734
|
}
|
|
13674
13735
|
}
|
|
13675
13736
|
class ClipGraphicAnimate extends ACustomAnimate {
|
|
@@ -21074,6 +21135,9 @@ class BaseRender {
|
|
|
21074
21135
|
init(contributions) {
|
|
21075
21136
|
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));
|
|
21076
21137
|
}
|
|
21138
|
+
reInit() {
|
|
21139
|
+
this.init(this.graphicRenderContributions);
|
|
21140
|
+
}
|
|
21077
21141
|
beforeRenderStep(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, graphicAttribute, drawContext, fillCb, strokeCb, params) {
|
|
21078
21142
|
this._beforeRenderContribitions && this._beforeRenderContribitions.forEach(c => {
|
|
21079
21143
|
if (c.supportedAppName && graphic.stage && graphic.stage.params && graphic.stage.params.context && graphic.stage.params.context.appName) {
|
|
@@ -21243,8 +21307,8 @@ var __decorate$1s = undefined && undefined.__decorate || function (decorators, t
|
|
|
21243
21307
|
};
|
|
21244
21308
|
};
|
|
21245
21309
|
let DefaultCanvasArcRender = class extends BaseRender {
|
|
21246
|
-
constructor(
|
|
21247
|
-
super(), this.
|
|
21310
|
+
constructor(graphicRenderContributions) {
|
|
21311
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = ARC_NUMBER_TYPE, this.builtinContributions = [defaultArcRenderContribution, defaultArcBackgroundRenderContribution, defaultArcTextureRenderContribution], this.init(graphicRenderContributions);
|
|
21248
21312
|
}
|
|
21249
21313
|
drawArcTailCapPath(arc, context, cx, cy, outerRadius, innerRadius, _sa, _ea) {
|
|
21250
21314
|
const capAngle = _ea - _sa,
|
|
@@ -21419,8 +21483,8 @@ var __decorate$1r = undefined && undefined.__decorate || function (decorators, t
|
|
|
21419
21483
|
};
|
|
21420
21484
|
};
|
|
21421
21485
|
let DefaultCanvasCircleRender = class extends BaseRender {
|
|
21422
|
-
constructor(
|
|
21423
|
-
super(), this.
|
|
21486
|
+
constructor(graphicRenderContributions) {
|
|
21487
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = CIRCLE_NUMBER_TYPE, this.builtinContributions = [defaultCircleRenderContribution, defaultCircleBackgroundRenderContribution, defaultCircleTextureRenderContribution], this.init(graphicRenderContributions);
|
|
21424
21488
|
}
|
|
21425
21489
|
drawShape(circle, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
21426
21490
|
const circleAttribute = getTheme$1(circle, null == params ? void 0 : params.theme).circle,
|
|
@@ -21806,8 +21870,8 @@ var __decorate$1p = undefined && undefined.__decorate || function (decorators, t
|
|
|
21806
21870
|
};
|
|
21807
21871
|
};
|
|
21808
21872
|
let DefaultCanvasAreaRender = class extends BaseRender {
|
|
21809
|
-
constructor(
|
|
21810
|
-
super(), this.
|
|
21873
|
+
constructor(graphicRenderContributions) {
|
|
21874
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = AREA_NUMBER_TYPE, this.builtinContributions = [defaultAreaTextureRenderContribution, defaultAreaBackgroundRenderContribution], this.init(graphicRenderContributions);
|
|
21811
21875
|
}
|
|
21812
21876
|
drawLinearAreaHighPerformance(area, context, fill, stroke, fillOpacity, strokeOpacity, offsetX, offsetY, areaAttribute, drawContext, params, fillCb, strokeCb) {
|
|
21813
21877
|
var _a, _b, _c;
|
|
@@ -22050,8 +22114,8 @@ var __decorate$1o = undefined && undefined.__decorate || function (decorators, t
|
|
|
22050
22114
|
};
|
|
22051
22115
|
};
|
|
22052
22116
|
let DefaultCanvasPathRender = class extends BaseRender {
|
|
22053
|
-
constructor(
|
|
22054
|
-
super(), this.
|
|
22117
|
+
constructor(graphicRenderContributions) {
|
|
22118
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = PATH_NUMBER_TYPE, this.builtinContributions = [defaultPathBackgroundRenderContribution, defaultPathTextureRenderContribution], this.init(graphicRenderContributions);
|
|
22055
22119
|
}
|
|
22056
22120
|
drawShape(path, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
22057
22121
|
var _a, _b, _c;
|
|
@@ -22106,8 +22170,8 @@ var __decorate$1n = undefined && undefined.__decorate || function (decorators, t
|
|
|
22106
22170
|
};
|
|
22107
22171
|
};
|
|
22108
22172
|
let DefaultCanvasRectRender = class extends BaseRender {
|
|
22109
|
-
constructor(
|
|
22110
|
-
super(), this.
|
|
22173
|
+
constructor(graphicRenderContributions) {
|
|
22174
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.type = "rect", this.numberType = RECT_NUMBER_TYPE, this.builtinContributions = [defaultRectRenderContribution, defaultRectBackgroundRenderContribution, defaultRectTextureRenderContribution], this.init(graphicRenderContributions);
|
|
22111
22175
|
}
|
|
22112
22176
|
drawShape(rect, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
22113
22177
|
var _a;
|
|
@@ -22178,8 +22242,8 @@ var __decorate$1m = undefined && undefined.__decorate || function (decorators, t
|
|
|
22178
22242
|
};
|
|
22179
22243
|
};
|
|
22180
22244
|
let DefaultCanvasSymbolRender = class extends BaseRender {
|
|
22181
|
-
constructor(
|
|
22182
|
-
super(), this.
|
|
22245
|
+
constructor(graphicRenderContributions) {
|
|
22246
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = SYMBOL_NUMBER_TYPE, this.builtinContributions = [defaultSymbolRenderContribution, defaultSymbolBackgroundRenderContribution, defaultSymbolTextureRenderContribution, defaultSymbolClipRangeStrokeRenderContribution], this.init(graphicRenderContributions);
|
|
22183
22247
|
}
|
|
22184
22248
|
drawShape(symbol, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
22185
22249
|
var _a;
|
|
@@ -22350,8 +22414,8 @@ var __decorate$1l = undefined && undefined.__decorate || function (decorators, t
|
|
|
22350
22414
|
};
|
|
22351
22415
|
};
|
|
22352
22416
|
let DefaultCanvasTextRender = class extends BaseRender {
|
|
22353
|
-
constructor(
|
|
22354
|
-
super(), this.
|
|
22417
|
+
constructor(graphicRenderContributions) {
|
|
22418
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = TEXT_NUMBER_TYPE, this.builtinContributions = [defaultTextBackgroundRenderContribution], this.init(graphicRenderContributions);
|
|
22355
22419
|
}
|
|
22356
22420
|
drawShape(text, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
22357
22421
|
var _a, _b, _c;
|
|
@@ -22555,8 +22619,8 @@ var __decorate$1k = undefined && undefined.__decorate || function (decorators, t
|
|
|
22555
22619
|
};
|
|
22556
22620
|
};
|
|
22557
22621
|
let DefaultCanvasPolygonRender = class extends BaseRender {
|
|
22558
|
-
constructor(
|
|
22559
|
-
super(), this.
|
|
22622
|
+
constructor(graphicRenderContributions) {
|
|
22623
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = POLYGON_NUMBER_TYPE, this.builtinContributions = [defaultPolygonBackgroundRenderContribution, defaultPolygonTextureRenderContribution], this.init(graphicRenderContributions);
|
|
22560
22624
|
}
|
|
22561
22625
|
drawShape(polygon, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
22562
22626
|
const polygonAttribute = getTheme$1(polygon, null == params ? void 0 : params.theme).polygon,
|
|
@@ -22611,6 +22675,9 @@ let DefaultCanvasGroupRender = class {
|
|
|
22611
22675
|
constructor(groupRenderContribitions) {
|
|
22612
22676
|
this.groupRenderContribitions = groupRenderContribitions, this.numberType = GROUP_NUMBER_TYPE;
|
|
22613
22677
|
}
|
|
22678
|
+
reInit() {
|
|
22679
|
+
this._groupRenderContribitions = this.groupRenderContribitions.getContributions() || [], this._groupRenderContribitions.push(defaultGroupBackgroundRenderContribution);
|
|
22680
|
+
}
|
|
22614
22681
|
drawShape(group, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
22615
22682
|
const groupAttribute = getTheme$1(group, null == params ? void 0 : params.theme).group,
|
|
22616
22683
|
{
|
|
@@ -22741,8 +22808,8 @@ var __decorate$1i = undefined && undefined.__decorate || function (decorators, t
|
|
|
22741
22808
|
};
|
|
22742
22809
|
const repeatStr = ["", "repeat-x", "repeat-y", "repeat"];
|
|
22743
22810
|
let DefaultCanvasImageRender = class extends BaseRender {
|
|
22744
|
-
constructor(
|
|
22745
|
-
super(), this.
|
|
22811
|
+
constructor(graphicRenderContributions) {
|
|
22812
|
+
super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = IMAGE_NUMBER_TYPE, this.builtinContributions = [defaultImageRenderContribution, defaultImageBackgroundRenderContribution], this.init(graphicRenderContributions);
|
|
22746
22813
|
}
|
|
22747
22814
|
drawShape(image, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
22748
22815
|
const imageAttribute = getTheme$1(image).image,
|
|
@@ -23069,6 +23136,9 @@ let DefaultRenderService = class {
|
|
|
23069
23136
|
afterDraw(params) {
|
|
23070
23137
|
this.drawContribution.afterDraw && this.drawContribution.afterDraw(this, Object.assign({}, this.drawParams));
|
|
23071
23138
|
}
|
|
23139
|
+
reInit() {
|
|
23140
|
+
this.drawContribution.reInit();
|
|
23141
|
+
}
|
|
23072
23142
|
render(groups, params) {
|
|
23073
23143
|
this.renderTreeRoots = groups, this.drawParams = params;
|
|
23074
23144
|
const updateBounds = params.updateBounds;
|
|
@@ -23470,6 +23540,11 @@ let DefaultDrawContribution = class {
|
|
|
23470
23540
|
constructor(contributions, drawItemInterceptorContributions) {
|
|
23471
23541
|
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();
|
|
23472
23542
|
}
|
|
23543
|
+
reInit() {
|
|
23544
|
+
this.init(), this.contributions.forEach(item => {
|
|
23545
|
+
item.reInit();
|
|
23546
|
+
});
|
|
23547
|
+
}
|
|
23473
23548
|
init() {
|
|
23474
23549
|
this.contributions.forEach(item => {
|
|
23475
23550
|
if (item.style) {
|
|
@@ -24589,6 +24664,9 @@ class Stage extends Group$1 {
|
|
|
24589
24664
|
getPickerService() {
|
|
24590
24665
|
return this.pickerService || (this.pickerService = container.get(PickerService)), this.pickerService;
|
|
24591
24666
|
}
|
|
24667
|
+
reInit() {
|
|
24668
|
+
this.renderService.reInit(), this.pickerService.reInit();
|
|
24669
|
+
}
|
|
24592
24670
|
}
|
|
24593
24671
|
|
|
24594
24672
|
function createStage(params) {
|
|
@@ -25186,6 +25264,9 @@ let DefaultPickService = class {
|
|
|
25186
25264
|
constructor(pickItemInterceptorContributions, pickServiceInterceptorContributions) {
|
|
25187
25265
|
this.pickItemInterceptorContributions = pickItemInterceptorContributions, this.pickServiceInterceptorContributions = pickServiceInterceptorContributions, this.type = "default", this.global = application.global;
|
|
25188
25266
|
}
|
|
25267
|
+
reInit() {
|
|
25268
|
+
this._init();
|
|
25269
|
+
}
|
|
25189
25270
|
_init() {
|
|
25190
25271
|
this.InterceptorContributions = this.pickItemInterceptorContributions.getContributions().sort((a, b) => a.order - b.order), this.pickerServiceInterceptorContributions = this.pickServiceInterceptorContributions.getContributions().sort((a, b) => a.order - b.order);
|
|
25191
25272
|
}
|
|
@@ -25354,6 +25435,7 @@ let DefaultCanvasGlyphRender = class {
|
|
|
25354
25435
|
constructor() {
|
|
25355
25436
|
this.numberType = GLYPH_NUMBER_TYPE;
|
|
25356
25437
|
}
|
|
25438
|
+
reInit() {}
|
|
25357
25439
|
drawShape(glyph, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
25358
25440
|
drawContext.drawContribution && glyph.getSubGraphic().forEach(item => {
|
|
25359
25441
|
const renderer = drawContext.drawContribution.getRenderContribution(item);
|
|
@@ -64117,7 +64199,7 @@ const registerVChartCore = () => {
|
|
|
64117
64199
|
};
|
|
64118
64200
|
registerVChartCore();
|
|
64119
64201
|
|
|
64120
|
-
const version = "1.13.
|
|
64202
|
+
const version = "1.13.11-alpha.0";
|
|
64121
64203
|
|
|
64122
64204
|
const addVChartProperty = (data, op) => {
|
|
64123
64205
|
const context = op.beforeCall();
|