@visactor/vchart 1.13.11-alpha.0 → 1.13.11-alpha.2
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 +2 -3
- package/cjs/core/index.js.map +1 -1
- package/cjs/core/interface.js +2 -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 +2 -3
- package/esm/core/index.js.map +1 -1
- package/esm/core/interface.js +2 -1
- package/esm/core/vchart.js +1 -1
- package/esm/core/vchart.js.map +1 -1
- package/package.json +14 -14
package/build/index.js
CHANGED
|
@@ -7846,14 +7846,11 @@
|
|
|
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;
|
|
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
|
-
}
|
|
7857
7854
|
}
|
|
7858
7855
|
function bindContributionProvider(bind, id) {
|
|
7859
7856
|
bind(ContributionProvider).toDynamicValue(_ref => {
|
|
@@ -7871,20 +7868,6 @@
|
|
|
7871
7868
|
return new ContributionProviderCache(id, container);
|
|
7872
7869
|
}).whenTargetNamed(id);
|
|
7873
7870
|
}
|
|
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();
|
|
7888
7871
|
|
|
7889
7872
|
class Hook {
|
|
7890
7873
|
constructor(args, name) {
|
|
@@ -7951,48 +7934,6 @@
|
|
|
7951
7934
|
const VGlobal = Symbol.for("VGlobal");
|
|
7952
7935
|
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";
|
|
7953
7936
|
|
|
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
|
-
|
|
7996
7937
|
var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
7997
7938
|
var d,
|
|
7998
7939
|
c = arguments.length,
|
|
@@ -8033,7 +7974,7 @@
|
|
|
8033
7974
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8034
7975
|
});
|
|
8035
7976
|
};
|
|
8036
|
-
let DefaultGlobal = class
|
|
7977
|
+
let DefaultGlobal = class {
|
|
8037
7978
|
get env() {
|
|
8038
7979
|
return this._env;
|
|
8039
7980
|
}
|
|
@@ -8077,19 +8018,10 @@
|
|
|
8077
8018
|
this._env || this.setEnv("browser"), this.envContribution.applyStyles = support;
|
|
8078
8019
|
}
|
|
8079
8020
|
constructor(contributions) {
|
|
8080
|
-
|
|
8021
|
+
this.contributions = contributions, this._isImageAnonymous = !0, this.id = Generator.GenAutoIncrementId(), this.hooks = {
|
|
8081
8022
|
onSetEnv: new SyncHook(["lastEnv", "env", "global"])
|
|
8082
8023
|
}, this.measureTextMethod = "native", this.optimizeVisible = !1;
|
|
8083
8024
|
}
|
|
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
|
-
}
|
|
8093
8025
|
bindContribution(params) {
|
|
8094
8026
|
const promiseArr = [];
|
|
8095
8027
|
if (this.contributions.getContributions().forEach(contribution => {
|
|
@@ -8130,6 +8062,15 @@
|
|
|
8130
8062
|
releaseCanvas(canvas) {
|
|
8131
8063
|
return this._env || this.setEnv("browser"), this.envContribution.releaseCanvas(canvas);
|
|
8132
8064
|
}
|
|
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
|
+
}
|
|
8133
8074
|
getRequestAnimationFrame() {
|
|
8134
8075
|
return this._env || this.setEnv("browser"), this.envContribution.getRequestAnimationFrame();
|
|
8135
8076
|
}
|
|
@@ -11158,7 +11099,7 @@
|
|
|
11158
11099
|
};
|
|
11159
11100
|
const VWindow = Symbol.for("VWindow");
|
|
11160
11101
|
const WindowHandlerContribution = Symbol.for("WindowHandlerContribution");
|
|
11161
|
-
let DefaultWindow = class
|
|
11102
|
+
let DefaultWindow = class {
|
|
11162
11103
|
get width() {
|
|
11163
11104
|
if (this._handler) {
|
|
11164
11105
|
const wh = this._handler.getWH();
|
|
@@ -11177,7 +11118,7 @@
|
|
|
11177
11118
|
return this._handler.getDpr();
|
|
11178
11119
|
}
|
|
11179
11120
|
constructor() {
|
|
11180
|
-
|
|
11121
|
+
this.hooks = {
|
|
11181
11122
|
onChange: new SyncHook(["x", "y", "width", "height"])
|
|
11182
11123
|
}, this.active = () => {
|
|
11183
11124
|
const global = this.global;
|
|
@@ -11185,15 +11126,6 @@
|
|
|
11185
11126
|
container.getNamed(WindowHandlerContribution, global.env).configure(this, global), this.actived = !0;
|
|
11186
11127
|
}, this._uid = Generator.GenAutoIncrementId(), this.global = application.global, this.postInit();
|
|
11187
11128
|
}
|
|
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
|
-
}
|
|
11197
11129
|
postInit() {
|
|
11198
11130
|
this.global.hooks.onSetEnv.tap("window", this.active), this.active();
|
|
11199
11131
|
}
|
|
@@ -11233,7 +11165,7 @@
|
|
|
11233
11165
|
throw new Error("暂不支持");
|
|
11234
11166
|
}
|
|
11235
11167
|
release() {
|
|
11236
|
-
return this.global.hooks.onSetEnv.unTap("window", this.active), this.
|
|
11168
|
+
return this.global.hooks.onSetEnv.unTap("window", this.active), this._handler.releaseWindow();
|
|
11237
11169
|
}
|
|
11238
11170
|
getContext() {
|
|
11239
11171
|
return this._handler.getContext();
|
|
@@ -11244,6 +11176,15 @@
|
|
|
11244
11176
|
getImageBuffer(type) {
|
|
11245
11177
|
return this._handler.getImageBuffer ? this._handler.getImageBuffer(type) : null;
|
|
11246
11178
|
}
|
|
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
|
+
}
|
|
11247
11188
|
getBoundingClientRect() {
|
|
11248
11189
|
return this._handler.getBoundingClientRect();
|
|
11249
11190
|
}
|
|
@@ -12452,17 +12393,19 @@
|
|
|
12452
12393
|
globalObj: globalObj,
|
|
12453
12394
|
domElement: domElement
|
|
12454
12395
|
} = this;
|
|
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, {
|
|
12396
|
+
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, {
|
|
12456
12397
|
capture: !0
|
|
12457
12398
|
}), this.eventsAdded = !0;
|
|
12458
12399
|
}
|
|
12459
12400
|
removeEvents() {
|
|
12401
|
+
var _a;
|
|
12460
12402
|
if (!this.eventsAdded || !this.domElement) return;
|
|
12461
12403
|
const {
|
|
12462
|
-
|
|
12463
|
-
|
|
12464
|
-
|
|
12465
|
-
|
|
12404
|
+
globalObj: globalObj,
|
|
12405
|
+
domElement: domElement
|
|
12406
|
+
} = this,
|
|
12407
|
+
globalDocument = null !== (_a = globalObj.getDocument()) && void 0 !== _a ? _a : domElement;
|
|
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;
|
|
12466
12409
|
}
|
|
12467
12410
|
mapToViewportPoint(event) {
|
|
12468
12411
|
return this.domElement.pointTransform ? this.domElement.pointTransform(event.x, event.y) : event;
|
|
@@ -13716,27 +13659,23 @@
|
|
|
13716
13659
|
isValidNumber$1(lastClipRange * this.clipRange) && (this.clipRange *= lastClipRange);
|
|
13717
13660
|
}
|
|
13718
13661
|
onUpdate(end, ratio, out) {
|
|
13719
|
-
if (
|
|
13720
|
-
|
|
13721
|
-
|
|
13722
|
-
|
|
13723
|
-
|
|
13724
|
-
|
|
13725
|
-
|
|
13726
|
-
|
|
13727
|
-
|
|
13728
|
-
|
|
13729
|
-
|
|
13730
|
-
|
|
13731
|
-
|
|
13732
|
-
|
|
13733
|
-
points = this.points.slice(start, end);
|
|
13734
|
-
return start = end, Object.assign(Object.assign({}, segment), {
|
|
13735
|
-
points: points
|
|
13736
|
-
});
|
|
13662
|
+
if (this.points = this.points.map((point, index) => {
|
|
13663
|
+
const newPoint = pointInterpolation(this.interpolatePoints[index][0], this.interpolatePoints[index][1], ratio);
|
|
13664
|
+
return newPoint.context = point.context, newPoint;
|
|
13665
|
+
}), this.clipRange) {
|
|
13666
|
+
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));
|
|
13667
|
+
out.clipRange = this.clipRange + (1 - this.clipRange) * ratio;
|
|
13668
|
+
}
|
|
13669
|
+
if (this.segmentsCache && this.to.segments) {
|
|
13670
|
+
let start = 0;
|
|
13671
|
+
out.segments = this.to.segments.map((segment, index) => {
|
|
13672
|
+
const end = start + this.segmentsCache[index],
|
|
13673
|
+
points = this.points.slice(start, end);
|
|
13674
|
+
return start = end, Object.assign(Object.assign({}, segment), {
|
|
13675
|
+
points: points
|
|
13737
13676
|
});
|
|
13738
|
-
}
|
|
13739
|
-
}
|
|
13677
|
+
});
|
|
13678
|
+
} else out.points = this.points;
|
|
13740
13679
|
}
|
|
13741
13680
|
}
|
|
13742
13681
|
class ClipGraphicAnimate extends ACustomAnimate {
|
|
@@ -21141,9 +21080,6 @@
|
|
|
21141
21080
|
init(contributions) {
|
|
21142
21081
|
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));
|
|
21143
21082
|
}
|
|
21144
|
-
reInit() {
|
|
21145
|
-
this.init(this.graphicRenderContributions);
|
|
21146
|
-
}
|
|
21147
21083
|
beforeRenderStep(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, graphicAttribute, drawContext, fillCb, strokeCb, params) {
|
|
21148
21084
|
this._beforeRenderContribitions && this._beforeRenderContribitions.forEach(c => {
|
|
21149
21085
|
if (c.supportedAppName && graphic.stage && graphic.stage.params && graphic.stage.params.context && graphic.stage.params.context.appName) {
|
|
@@ -21313,8 +21249,8 @@
|
|
|
21313
21249
|
};
|
|
21314
21250
|
};
|
|
21315
21251
|
let DefaultCanvasArcRender = class extends BaseRender {
|
|
21316
|
-
constructor(
|
|
21317
|
-
super(), this.
|
|
21252
|
+
constructor(arcRenderContribitions) {
|
|
21253
|
+
super(), this.arcRenderContribitions = arcRenderContribitions, this.numberType = ARC_NUMBER_TYPE, this.builtinContributions = [defaultArcRenderContribution, defaultArcBackgroundRenderContribution, defaultArcTextureRenderContribution], this.init(arcRenderContribitions);
|
|
21318
21254
|
}
|
|
21319
21255
|
drawArcTailCapPath(arc, context, cx, cy, outerRadius, innerRadius, _sa, _ea) {
|
|
21320
21256
|
const capAngle = _ea - _sa,
|
|
@@ -21489,8 +21425,8 @@
|
|
|
21489
21425
|
};
|
|
21490
21426
|
};
|
|
21491
21427
|
let DefaultCanvasCircleRender = class extends BaseRender {
|
|
21492
|
-
constructor(
|
|
21493
|
-
super(), this.
|
|
21428
|
+
constructor(circleRenderContribitions) {
|
|
21429
|
+
super(), this.circleRenderContribitions = circleRenderContribitions, this.numberType = CIRCLE_NUMBER_TYPE, this.builtinContributions = [defaultCircleRenderContribution, defaultCircleBackgroundRenderContribution, defaultCircleTextureRenderContribution], this.init(circleRenderContribitions);
|
|
21494
21430
|
}
|
|
21495
21431
|
drawShape(circle, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
21496
21432
|
const circleAttribute = getTheme$1(circle, null == params ? void 0 : params.theme).circle,
|
|
@@ -21876,8 +21812,8 @@
|
|
|
21876
21812
|
};
|
|
21877
21813
|
};
|
|
21878
21814
|
let DefaultCanvasAreaRender = class extends BaseRender {
|
|
21879
|
-
constructor(
|
|
21880
|
-
super(), this.
|
|
21815
|
+
constructor(areaRenderContribitions) {
|
|
21816
|
+
super(), this.areaRenderContribitions = areaRenderContribitions, this.numberType = AREA_NUMBER_TYPE, this.builtinContributions = [defaultAreaTextureRenderContribution, defaultAreaBackgroundRenderContribution], this.init(areaRenderContribitions);
|
|
21881
21817
|
}
|
|
21882
21818
|
drawLinearAreaHighPerformance(area, context, fill, stroke, fillOpacity, strokeOpacity, offsetX, offsetY, areaAttribute, drawContext, params, fillCb, strokeCb) {
|
|
21883
21819
|
var _a, _b, _c;
|
|
@@ -22120,8 +22056,8 @@
|
|
|
22120
22056
|
};
|
|
22121
22057
|
};
|
|
22122
22058
|
let DefaultCanvasPathRender = class extends BaseRender {
|
|
22123
|
-
constructor(
|
|
22124
|
-
super(), this.
|
|
22059
|
+
constructor(pathRenderContribitions) {
|
|
22060
|
+
super(), this.pathRenderContribitions = pathRenderContribitions, this.numberType = PATH_NUMBER_TYPE, this.builtinContributions = [defaultPathBackgroundRenderContribution, defaultPathTextureRenderContribution], this.init(pathRenderContribitions);
|
|
22125
22061
|
}
|
|
22126
22062
|
drawShape(path, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
22127
22063
|
var _a, _b, _c;
|
|
@@ -22176,8 +22112,8 @@
|
|
|
22176
22112
|
};
|
|
22177
22113
|
};
|
|
22178
22114
|
let DefaultCanvasRectRender = class extends BaseRender {
|
|
22179
|
-
constructor(
|
|
22180
|
-
super(), this.
|
|
22115
|
+
constructor(rectRenderContribitions) {
|
|
22116
|
+
super(), this.rectRenderContribitions = rectRenderContribitions, this.type = "rect", this.numberType = RECT_NUMBER_TYPE, this.builtinContributions = [defaultRectRenderContribution, defaultRectBackgroundRenderContribution, defaultRectTextureRenderContribution], this.init(rectRenderContribitions);
|
|
22181
22117
|
}
|
|
22182
22118
|
drawShape(rect, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
22183
22119
|
var _a;
|
|
@@ -22248,8 +22184,8 @@
|
|
|
22248
22184
|
};
|
|
22249
22185
|
};
|
|
22250
22186
|
let DefaultCanvasSymbolRender = class extends BaseRender {
|
|
22251
|
-
constructor(
|
|
22252
|
-
super(), this.
|
|
22187
|
+
constructor(symbolRenderContribitions) {
|
|
22188
|
+
super(), this.symbolRenderContribitions = symbolRenderContribitions, this.numberType = SYMBOL_NUMBER_TYPE, this.builtinContributions = [defaultSymbolRenderContribution, defaultSymbolBackgroundRenderContribution, defaultSymbolTextureRenderContribution, defaultSymbolClipRangeStrokeRenderContribution], this.init(symbolRenderContribitions);
|
|
22253
22189
|
}
|
|
22254
22190
|
drawShape(symbol, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
22255
22191
|
var _a;
|
|
@@ -22420,8 +22356,8 @@
|
|
|
22420
22356
|
};
|
|
22421
22357
|
};
|
|
22422
22358
|
let DefaultCanvasTextRender = class extends BaseRender {
|
|
22423
|
-
constructor(
|
|
22424
|
-
super(), this.
|
|
22359
|
+
constructor(textRenderContribitions) {
|
|
22360
|
+
super(), this.textRenderContribitions = textRenderContribitions, this.numberType = TEXT_NUMBER_TYPE, this.builtinContributions = [defaultTextBackgroundRenderContribution], this.init(textRenderContribitions);
|
|
22425
22361
|
}
|
|
22426
22362
|
drawShape(text, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
22427
22363
|
var _a, _b, _c;
|
|
@@ -22625,8 +22561,8 @@
|
|
|
22625
22561
|
};
|
|
22626
22562
|
};
|
|
22627
22563
|
let DefaultCanvasPolygonRender = class extends BaseRender {
|
|
22628
|
-
constructor(
|
|
22629
|
-
super(), this.
|
|
22564
|
+
constructor(polygonRenderContribitions) {
|
|
22565
|
+
super(), this.polygonRenderContribitions = polygonRenderContribitions, this.numberType = POLYGON_NUMBER_TYPE, this.builtinContributions = [defaultPolygonBackgroundRenderContribution, defaultPolygonTextureRenderContribution], this.init(polygonRenderContribitions);
|
|
22630
22566
|
}
|
|
22631
22567
|
drawShape(polygon, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
22632
22568
|
const polygonAttribute = getTheme$1(polygon, null == params ? void 0 : params.theme).polygon,
|
|
@@ -22681,9 +22617,6 @@
|
|
|
22681
22617
|
constructor(groupRenderContribitions) {
|
|
22682
22618
|
this.groupRenderContribitions = groupRenderContribitions, this.numberType = GROUP_NUMBER_TYPE;
|
|
22683
22619
|
}
|
|
22684
|
-
reInit() {
|
|
22685
|
-
this._groupRenderContribitions = this.groupRenderContribitions.getContributions() || [], this._groupRenderContribitions.push(defaultGroupBackgroundRenderContribution);
|
|
22686
|
-
}
|
|
22687
22620
|
drawShape(group, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
22688
22621
|
const groupAttribute = getTheme$1(group, null == params ? void 0 : params.theme).group,
|
|
22689
22622
|
{
|
|
@@ -22814,8 +22747,8 @@
|
|
|
22814
22747
|
};
|
|
22815
22748
|
const repeatStr = ["", "repeat-x", "repeat-y", "repeat"];
|
|
22816
22749
|
let DefaultCanvasImageRender = class extends BaseRender {
|
|
22817
|
-
constructor(
|
|
22818
|
-
super(), this.
|
|
22750
|
+
constructor(imageRenderContribitions) {
|
|
22751
|
+
super(), this.imageRenderContribitions = imageRenderContribitions, this.numberType = IMAGE_NUMBER_TYPE, this.builtinContributions = [defaultImageRenderContribution, defaultImageBackgroundRenderContribution], this.init(imageRenderContribitions);
|
|
22819
22752
|
}
|
|
22820
22753
|
drawShape(image, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
22821
22754
|
const imageAttribute = getTheme$1(image).image,
|
|
@@ -23142,9 +23075,6 @@
|
|
|
23142
23075
|
afterDraw(params) {
|
|
23143
23076
|
this.drawContribution.afterDraw && this.drawContribution.afterDraw(this, Object.assign({}, this.drawParams));
|
|
23144
23077
|
}
|
|
23145
|
-
reInit() {
|
|
23146
|
-
this.drawContribution.reInit();
|
|
23147
|
-
}
|
|
23148
23078
|
render(groups, params) {
|
|
23149
23079
|
this.renderTreeRoots = groups, this.drawParams = params;
|
|
23150
23080
|
const updateBounds = params.updateBounds;
|
|
@@ -23546,11 +23476,6 @@
|
|
|
23546
23476
|
constructor(contributions, drawItemInterceptorContributions) {
|
|
23547
23477
|
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();
|
|
23548
23478
|
}
|
|
23549
|
-
reInit() {
|
|
23550
|
-
this.init(), this.contributions.forEach(item => {
|
|
23551
|
-
item.reInit();
|
|
23552
|
-
});
|
|
23553
|
-
}
|
|
23554
23479
|
init() {
|
|
23555
23480
|
this.contributions.forEach(item => {
|
|
23556
23481
|
if (item.style) {
|
|
@@ -24670,9 +24595,6 @@
|
|
|
24670
24595
|
getPickerService() {
|
|
24671
24596
|
return this.pickerService || (this.pickerService = container.get(PickerService)), this.pickerService;
|
|
24672
24597
|
}
|
|
24673
|
-
reInit() {
|
|
24674
|
-
this.renderService.reInit(), this.pickerService.reInit();
|
|
24675
|
-
}
|
|
24676
24598
|
}
|
|
24677
24599
|
|
|
24678
24600
|
function createStage(params) {
|
|
@@ -25270,9 +25192,6 @@
|
|
|
25270
25192
|
constructor(pickItemInterceptorContributions, pickServiceInterceptorContributions) {
|
|
25271
25193
|
this.pickItemInterceptorContributions = pickItemInterceptorContributions, this.pickServiceInterceptorContributions = pickServiceInterceptorContributions, this.type = "default", this.global = application.global;
|
|
25272
25194
|
}
|
|
25273
|
-
reInit() {
|
|
25274
|
-
this._init();
|
|
25275
|
-
}
|
|
25276
25195
|
_init() {
|
|
25277
25196
|
this.InterceptorContributions = this.pickItemInterceptorContributions.getContributions().sort((a, b) => a.order - b.order), this.pickerServiceInterceptorContributions = this.pickServiceInterceptorContributions.getContributions().sort((a, b) => a.order - b.order);
|
|
25278
25197
|
}
|
|
@@ -25441,7 +25360,6 @@
|
|
|
25441
25360
|
constructor() {
|
|
25442
25361
|
this.numberType = GLYPH_NUMBER_TYPE;
|
|
25443
25362
|
}
|
|
25444
|
-
reInit() {}
|
|
25445
25363
|
drawShape(glyph, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
25446
25364
|
drawContext.drawContribution && glyph.getSubGraphic().forEach(item => {
|
|
25447
25365
|
const renderer = drawContext.drawContribution.getRenderContribution(item);
|
|
@@ -63090,7 +63008,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63090
63008
|
this._updateCurrentTheme();
|
|
63091
63009
|
this._currentSize = this.getCurrentSize();
|
|
63092
63010
|
const pluginList = [];
|
|
63093
|
-
if (
|
|
63011
|
+
if (poptip !== false) {
|
|
63094
63012
|
pluginList.push('poptipForText');
|
|
63095
63013
|
}
|
|
63096
63014
|
if (spec.type === "sankey") {
|
|
@@ -64205,7 +64123,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
64205
64123
|
};
|
|
64206
64124
|
registerVChartCore();
|
|
64207
64125
|
|
|
64208
|
-
const version = "1.13.11-alpha.
|
|
64126
|
+
const version = "1.13.11-alpha.2";
|
|
64209
64127
|
|
|
64210
64128
|
const addVChartProperty = (data, op) => {
|
|
64211
64129
|
const context = op.beforeCall();
|