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