@visactor/vtable-sheet 1.27.0-alpha.2 → 1.27.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/event/vtable-sheet-event-bus.js +1 -2
- package/cjs/formula/cell-highlight-manager.js +2 -1
- package/cjs/formula/index.js +1 -2
- package/cjs/managers/menu-manager.js +2 -1
- package/cjs/ts-types/base.js +1 -2
- package/cjs/ts-types/formula.js +2 -1
- package/dist/vtable-sheet.js +386 -220
- package/dist/vtable-sheet.min.js +1 -1
- package/es/event/vtable-sheet-event-bus.js +1 -2
- package/es/formula/cell-highlight-manager.js +2 -1
- package/es/formula/index.js +1 -2
- package/es/managers/menu-manager.js +2 -1
- package/es/ts-types/base.js +1 -2
- package/es/ts-types/formula.js +2 -1
- package/package.json +6 -6
package/dist/vtable-sheet.js
CHANGED
|
@@ -12719,10 +12719,18 @@
|
|
|
12719
12719
|
setAttributesAndPreventAnimate(params, forceUpdateTag = !1, context, ignorePriority) {
|
|
12720
12720
|
if (!params) return;
|
|
12721
12721
|
const keys = Object.keys(params);
|
|
12722
|
-
this.captureTransientFromAttrsBeforePreventAnimate(params, keys, context), this.visitTrackedAnimates(animate => {
|
|
12722
|
+
this.captureTransientFromAttrsBeforePreventAnimate(params, keys, context), this.syncFinalAttributesFromUpdateContext(context), this.visitTrackedAnimates(animate => {
|
|
12723
12723
|
(animate.priority !== 1 / 0 || ignorePriority) && animate.preventAttrs(keys);
|
|
12724
12724
|
}), this.applyTransientAttributes(params, forceUpdateTag, context);
|
|
12725
12725
|
}
|
|
12726
|
+
syncFinalAttributesFromUpdateContext(context) {
|
|
12727
|
+
var _a;
|
|
12728
|
+
const updateType = null == context ? void 0 : context.type;
|
|
12729
|
+
if (updateType === AttributeUpdateType.STATE || null != updateType && updateType >= AttributeUpdateType.ANIMATE_BIND && updateType <= AttributeUpdateType.ANIMATE_END) return;
|
|
12730
|
+
const finalAttrs = null === (_a = this.context) || void 0 === _a ? void 0 : _a.finalAttrs,
|
|
12731
|
+
setFinalAttributes = this.setFinalAttributes;
|
|
12732
|
+
finalAttrs && "function" == typeof setFinalAttributes && setFinalAttributes.call(this, finalAttrs);
|
|
12733
|
+
}
|
|
12726
12734
|
captureTransientFromAttrsBeforePreventAnimate(params, keys, context) {
|
|
12727
12735
|
var _a, _b;
|
|
12728
12736
|
const graphicContext = this.context,
|
|
@@ -24476,7 +24484,7 @@
|
|
|
24476
24484
|
};
|
|
24477
24485
|
}
|
|
24478
24486
|
|
|
24479
|
-
var __rest$
|
|
24487
|
+
var __rest$8 = undefined && undefined.__rest || function (s, e) {
|
|
24480
24488
|
var t = {};
|
|
24481
24489
|
for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
|
|
24482
24490
|
if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
|
|
@@ -24574,7 +24582,7 @@
|
|
|
24574
24582
|
{
|
|
24575
24583
|
textConfig = []
|
|
24576
24584
|
} = _a,
|
|
24577
|
-
rest = __rest$
|
|
24585
|
+
rest = __rest$8(_a, ["textConfig"]);
|
|
24578
24586
|
if ("Backspace" === ev.type && !textConfig.length) return;
|
|
24579
24587
|
let str = ev.data;
|
|
24580
24588
|
this.isComposing || "Backspace" === ev.type || str || (str = "\n"), this.selectionStartCursorIdx > this.cursorIndex && ([this.cursorIndex, this.selectionStartCursorIdx] = [this.selectionStartCursorIdx, this.cursorIndex]);
|
|
@@ -28970,188 +28978,6 @@
|
|
|
28970
28978
|
}
|
|
28971
28979
|
loadBrowserEnv.__loaded = !1;
|
|
28972
28980
|
|
|
28973
|
-
class NodeWindowHandlerContribution extends BaseWindowHandlerContribution {
|
|
28974
|
-
get container() {
|
|
28975
|
-
return null;
|
|
28976
|
-
}
|
|
28977
|
-
constructor(global = application.global) {
|
|
28978
|
-
super(), this.global = global, this.type = "node";
|
|
28979
|
-
}
|
|
28980
|
-
getTitle() {
|
|
28981
|
-
return "";
|
|
28982
|
-
}
|
|
28983
|
-
getWH() {
|
|
28984
|
-
return {
|
|
28985
|
-
width: this.canvas.displayWidth,
|
|
28986
|
-
height: this.canvas.displayHeight
|
|
28987
|
-
};
|
|
28988
|
-
}
|
|
28989
|
-
getXY() {
|
|
28990
|
-
return {
|
|
28991
|
-
x: 0,
|
|
28992
|
-
y: 0
|
|
28993
|
-
};
|
|
28994
|
-
}
|
|
28995
|
-
createWindow(params) {
|
|
28996
|
-
params.canvas ? this.createWindowByCanvas(params) : this.createWindowByConfig(params);
|
|
28997
|
-
}
|
|
28998
|
-
createWindowByConfig(params) {
|
|
28999
|
-
const nativeCanvas = this.global.createCanvas({
|
|
29000
|
-
width: params.width,
|
|
29001
|
-
height: params.height
|
|
29002
|
-
}),
|
|
29003
|
-
options = {
|
|
29004
|
-
width: params.width,
|
|
29005
|
-
height: params.height,
|
|
29006
|
-
dpr: params.dpr,
|
|
29007
|
-
nativeCanvas: nativeCanvas,
|
|
29008
|
-
id: Generator.GenAutoIncrementId().toString(),
|
|
29009
|
-
canvasControled: !0
|
|
29010
|
-
};
|
|
29011
|
-
this.canvas = new NodeCanvas(options);
|
|
29012
|
-
}
|
|
29013
|
-
createWindowByCanvas(params) {
|
|
29014
|
-
var _a;
|
|
29015
|
-
const canvas = params.canvas,
|
|
29016
|
-
dpr = null !== (_a = params.dpr) && void 0 !== _a ? _a : 1;
|
|
29017
|
-
let width = params.width,
|
|
29018
|
-
height = params.height;
|
|
29019
|
-
null != width && null != height && params.canvasControled || (width = canvas.width / dpr, height = canvas.height / dpr), this.canvas = new NodeCanvas({
|
|
29020
|
-
width: width,
|
|
29021
|
-
height: height,
|
|
29022
|
-
dpr: dpr,
|
|
29023
|
-
nativeCanvas: canvas,
|
|
29024
|
-
canvasControled: params.canvasControled
|
|
29025
|
-
});
|
|
29026
|
-
}
|
|
29027
|
-
releaseWindow() {
|
|
29028
|
-
this.canvas.release();
|
|
29029
|
-
}
|
|
29030
|
-
resizeWindow(width, height) {
|
|
29031
|
-
this.canvas.resize(width, height);
|
|
29032
|
-
}
|
|
29033
|
-
setDpr(dpr) {
|
|
29034
|
-
this.canvas.dpr = dpr;
|
|
29035
|
-
}
|
|
29036
|
-
getContext() {
|
|
29037
|
-
return this.canvas.getContext();
|
|
29038
|
-
}
|
|
29039
|
-
getNativeHandler() {
|
|
29040
|
-
return this.canvas;
|
|
29041
|
-
}
|
|
29042
|
-
getDpr() {
|
|
29043
|
-
return this.canvas.dpr;
|
|
29044
|
-
}
|
|
29045
|
-
getImageBuffer(type = "image/png") {
|
|
29046
|
-
return this.canvas.nativeCanvas.toBuffer(type);
|
|
29047
|
-
}
|
|
29048
|
-
addEventListener(type, listener, options) {}
|
|
29049
|
-
dispatchEvent(event) {
|
|
29050
|
-
return !0;
|
|
29051
|
-
}
|
|
29052
|
-
removeEventListener(type, listener, options) {}
|
|
29053
|
-
getStyle() {}
|
|
29054
|
-
setStyle(style) {}
|
|
29055
|
-
getBoundingClientRect() {
|
|
29056
|
-
return null;
|
|
29057
|
-
}
|
|
29058
|
-
clearViewBox(color) {}
|
|
29059
|
-
}
|
|
29060
|
-
NodeWindowHandlerContribution.env = "node";
|
|
29061
|
-
function bindNodeWindowContribution(container) {
|
|
29062
|
-
var _a, _b;
|
|
29063
|
-
(null === (_a = container.isBound) || void 0 === _a ? void 0 : _a.call(container, NodeWindowHandlerContribution)) || container.bind(NodeWindowHandlerContribution).toSelf(), (null === (_b = container.getNamed) || void 0 === _b ? void 0 : _b.call(container, WindowHandlerContribution, NodeWindowHandlerContribution.env)) || container.bind(WindowHandlerContribution).toService(NodeWindowHandlerContribution).whenTargetNamed(NodeWindowHandlerContribution.env);
|
|
29064
|
-
}
|
|
29065
|
-
|
|
29066
|
-
class NodeEnvContribution extends BaseEnvContribution {
|
|
29067
|
-
constructor() {
|
|
29068
|
-
super(...arguments), this.type = "node", this._lastTime = 0, this.supportEvent = !1;
|
|
29069
|
-
}
|
|
29070
|
-
configure(service, pkg) {
|
|
29071
|
-
service.env === this.type && (service.setActiveEnvContribution(this), this.pkg = pkg);
|
|
29072
|
-
}
|
|
29073
|
-
getDynamicCanvasCount() {
|
|
29074
|
-
return 0;
|
|
29075
|
-
}
|
|
29076
|
-
getStaticCanvasCount() {
|
|
29077
|
-
return 999;
|
|
29078
|
-
}
|
|
29079
|
-
loadJson(url) {
|
|
29080
|
-
const jsonPromise = fetch(url).then(data => data.json());
|
|
29081
|
-
return jsonPromise.then(json => ({
|
|
29082
|
-
data: json,
|
|
29083
|
-
state: "success"
|
|
29084
|
-
})).catch(() => ({
|
|
29085
|
-
data: null,
|
|
29086
|
-
state: "fail"
|
|
29087
|
-
})), jsonPromise;
|
|
29088
|
-
}
|
|
29089
|
-
loadArrayBuffer(url) {
|
|
29090
|
-
return fetch(url).then(data => data.arrayBuffer()).then(arrayBuffer => ({
|
|
29091
|
-
data: arrayBuffer,
|
|
29092
|
-
loadState: "success"
|
|
29093
|
-
})).catch(() => ({
|
|
29094
|
-
data: null,
|
|
29095
|
-
loadState: "fail"
|
|
29096
|
-
}));
|
|
29097
|
-
}
|
|
29098
|
-
loadImage(url) {
|
|
29099
|
-
const {
|
|
29100
|
-
loadImage: loadImage
|
|
29101
|
-
} = this.pkg;
|
|
29102
|
-
return loadImage ? loadImage(url).then(image => ({
|
|
29103
|
-
loadState: image ? "success" : "fail",
|
|
29104
|
-
data: image
|
|
29105
|
-
})).catch(() => ({
|
|
29106
|
-
loadState: "fail",
|
|
29107
|
-
data: null
|
|
29108
|
-
})) : Promise.reject(new Error("node-canvas loadImage could not be found!"));
|
|
29109
|
-
}
|
|
29110
|
-
loadSvg(svgStr) {
|
|
29111
|
-
const Resvg = this.pkg.Resvg;
|
|
29112
|
-
if (!Resvg) return Promise.reject(new Error("@resvg/resvg-js svgParser could not be found!"));
|
|
29113
|
-
const pngData = new Resvg(svgStr).render().asPng();
|
|
29114
|
-
return this.loadImage(pngData);
|
|
29115
|
-
}
|
|
29116
|
-
createCanvas(params) {
|
|
29117
|
-
return this.pkg.createCanvas(params.width, params.height);
|
|
29118
|
-
}
|
|
29119
|
-
releaseCanvas(canvas) {}
|
|
29120
|
-
getDevicePixelRatio() {
|
|
29121
|
-
return 1;
|
|
29122
|
-
}
|
|
29123
|
-
getRequestAnimationFrame() {
|
|
29124
|
-
return function (callback) {
|
|
29125
|
-
return rafBasedSto.call(callback);
|
|
29126
|
-
};
|
|
29127
|
-
}
|
|
29128
|
-
getCancelAnimationFrame() {
|
|
29129
|
-
return h => {
|
|
29130
|
-
rafBasedSto.clear(h);
|
|
29131
|
-
};
|
|
29132
|
-
}
|
|
29133
|
-
addEventListener(type, listener, options) {}
|
|
29134
|
-
removeEventListener(type, listener, options) {}
|
|
29135
|
-
getElementById(str) {
|
|
29136
|
-
return null;
|
|
29137
|
-
}
|
|
29138
|
-
getRootElement() {
|
|
29139
|
-
return null;
|
|
29140
|
-
}
|
|
29141
|
-
dispatchEvent(event) {}
|
|
29142
|
-
release(...params) {}
|
|
29143
|
-
createOffscreenCanvas(params) {}
|
|
29144
|
-
}
|
|
29145
|
-
|
|
29146
|
-
function bindNodeEnv(container) {
|
|
29147
|
-
var _a, _b;
|
|
29148
|
-
(null === (_b = (_a = container).isBound) || void 0 === _b ? void 0 : _b.call(_a, NodeEnvContribution)) || (container.bind(NodeEnvContribution).toSelf().inSingletonScope(), container.bind(EnvContribution).toService(NodeEnvContribution));
|
|
29149
|
-
}
|
|
29150
|
-
function loadNodeEnv(container = getLegacyBindingContext(), loadPicker = !0) {
|
|
29151
|
-
loadNodeEnv.__loaded || (loadNodeEnv.__loaded = !0, bindNodeEnv(container), bindNodeCanvasModules(container), bindNodeWindowContribution(container));
|
|
29152
|
-
}
|
|
29153
|
-
loadNodeEnv.__loaded = !1;
|
|
29154
|
-
|
|
29155
28981
|
class DefaultMathPickerService extends DefaultPickService {
|
|
29156
28982
|
constructor(contributions, pickItemInterceptorContributions, pickServiceInterceptorContributions) {
|
|
29157
28983
|
super(pickItemInterceptorContributions, pickServiceInterceptorContributions), this.contributions = contributions, this.pickItemInterceptorContributions = pickItemInterceptorContributions, this.pickServiceInterceptorContributions = pickServiceInterceptorContributions, this.global.hooks.onSetEnv.tap("math-picker-service", (lastEnv, env, global) => {
|
|
@@ -29335,6 +29161,195 @@
|
|
|
29335
29161
|
bindMathPickerContribution(c), bindMathPicker(c), bindArcMathPickerContribution(c), bindAreaMathPickerContribution(c), bindCircleMathPickerContribution(c), bindGlyphMathPickerContribution(c), bindImageMathPickerContribution(c), bindLineMathPickerContribution(c), bindPolygonMathPickerContribution(c), bindPathMathPickerContribution(c), bindRectMathPickerContribution(c), bindRichTextMathPickerContribution(c), bindSymbolMathPickerContribution(c), bindTextMathPickerContribution(c);
|
|
29336
29162
|
}
|
|
29337
29163
|
|
|
29164
|
+
class NodeWindowHandlerContribution extends BaseWindowHandlerContribution {
|
|
29165
|
+
get container() {
|
|
29166
|
+
return null;
|
|
29167
|
+
}
|
|
29168
|
+
constructor(global = application.global) {
|
|
29169
|
+
super(), this.global = global, this.type = "node";
|
|
29170
|
+
}
|
|
29171
|
+
getTitle() {
|
|
29172
|
+
return "";
|
|
29173
|
+
}
|
|
29174
|
+
getWH() {
|
|
29175
|
+
return {
|
|
29176
|
+
width: this.canvas.displayWidth,
|
|
29177
|
+
height: this.canvas.displayHeight
|
|
29178
|
+
};
|
|
29179
|
+
}
|
|
29180
|
+
getXY() {
|
|
29181
|
+
return {
|
|
29182
|
+
x: 0,
|
|
29183
|
+
y: 0
|
|
29184
|
+
};
|
|
29185
|
+
}
|
|
29186
|
+
createWindow(params) {
|
|
29187
|
+
params.canvas ? this.createWindowByCanvas(params) : this.createWindowByConfig(params);
|
|
29188
|
+
}
|
|
29189
|
+
createWindowByConfig(params) {
|
|
29190
|
+
const nativeCanvas = this.global.createCanvas({
|
|
29191
|
+
width: params.width,
|
|
29192
|
+
height: params.height
|
|
29193
|
+
}),
|
|
29194
|
+
options = {
|
|
29195
|
+
width: params.width,
|
|
29196
|
+
height: params.height,
|
|
29197
|
+
dpr: params.dpr,
|
|
29198
|
+
nativeCanvas: nativeCanvas,
|
|
29199
|
+
id: Generator.GenAutoIncrementId().toString(),
|
|
29200
|
+
canvasControled: !0
|
|
29201
|
+
};
|
|
29202
|
+
this.canvas = new NodeCanvas(options);
|
|
29203
|
+
}
|
|
29204
|
+
createWindowByCanvas(params) {
|
|
29205
|
+
var _a;
|
|
29206
|
+
const canvas = params.canvas,
|
|
29207
|
+
dpr = null !== (_a = params.dpr) && void 0 !== _a ? _a : 1;
|
|
29208
|
+
let width = params.width,
|
|
29209
|
+
height = params.height;
|
|
29210
|
+
null != width && null != height && params.canvasControled || (width = canvas.width / dpr, height = canvas.height / dpr), this.canvas = new NodeCanvas({
|
|
29211
|
+
width: width,
|
|
29212
|
+
height: height,
|
|
29213
|
+
dpr: dpr,
|
|
29214
|
+
nativeCanvas: canvas,
|
|
29215
|
+
canvasControled: params.canvasControled
|
|
29216
|
+
});
|
|
29217
|
+
}
|
|
29218
|
+
releaseWindow() {
|
|
29219
|
+
this.canvas.release();
|
|
29220
|
+
}
|
|
29221
|
+
resizeWindow(width, height) {
|
|
29222
|
+
this.canvas.resize(width, height);
|
|
29223
|
+
}
|
|
29224
|
+
setDpr(dpr) {
|
|
29225
|
+
this.canvas.dpr = dpr;
|
|
29226
|
+
}
|
|
29227
|
+
getContext() {
|
|
29228
|
+
return this.canvas.getContext();
|
|
29229
|
+
}
|
|
29230
|
+
getNativeHandler() {
|
|
29231
|
+
return this.canvas;
|
|
29232
|
+
}
|
|
29233
|
+
getDpr() {
|
|
29234
|
+
return this.canvas.dpr;
|
|
29235
|
+
}
|
|
29236
|
+
getImageBuffer(type = "image/png") {
|
|
29237
|
+
return this.canvas.nativeCanvas.toBuffer(type);
|
|
29238
|
+
}
|
|
29239
|
+
addEventListener(type, listener, options) {}
|
|
29240
|
+
dispatchEvent(event) {
|
|
29241
|
+
return !0;
|
|
29242
|
+
}
|
|
29243
|
+
removeEventListener(type, listener, options) {}
|
|
29244
|
+
getStyle() {}
|
|
29245
|
+
setStyle(style) {}
|
|
29246
|
+
getBoundingClientRect() {
|
|
29247
|
+
return null;
|
|
29248
|
+
}
|
|
29249
|
+
clearViewBox(color) {}
|
|
29250
|
+
}
|
|
29251
|
+
NodeWindowHandlerContribution.env = "node";
|
|
29252
|
+
function bindNodeWindowContribution(container) {
|
|
29253
|
+
var _a, _b;
|
|
29254
|
+
(null === (_a = container.isBound) || void 0 === _a ? void 0 : _a.call(container, NodeWindowHandlerContribution)) || container.bind(NodeWindowHandlerContribution).toSelf(), (null === (_b = container.getNamed) || void 0 === _b ? void 0 : _b.call(container, WindowHandlerContribution, NodeWindowHandlerContribution.env)) || container.bind(WindowHandlerContribution).toService(NodeWindowHandlerContribution).whenTargetNamed(NodeWindowHandlerContribution.env);
|
|
29255
|
+
}
|
|
29256
|
+
|
|
29257
|
+
class NodeEnvContribution extends BaseEnvContribution {
|
|
29258
|
+
constructor() {
|
|
29259
|
+
super(...arguments), this.type = "node", this._lastTime = 0, this.supportEvent = !1;
|
|
29260
|
+
}
|
|
29261
|
+
configure(service, pkg) {
|
|
29262
|
+
service.env === this.type && (service.setActiveEnvContribution(this), this.pkg = pkg);
|
|
29263
|
+
}
|
|
29264
|
+
getNodePackage(feature, requiredKey) {
|
|
29265
|
+
if (!this.pkg || requiredKey && "function" != typeof this.pkg[requiredKey]) throw new Error(`Node env requires node-canvas package before ${feature}. Use vglobal.setEnv('node', CanvasPkg) before createNodeVRenderApp(), or createNodeVRenderApp({ envParams: CanvasPkg }).`);
|
|
29266
|
+
return this.pkg;
|
|
29267
|
+
}
|
|
29268
|
+
getDynamicCanvasCount() {
|
|
29269
|
+
return 0;
|
|
29270
|
+
}
|
|
29271
|
+
getStaticCanvasCount() {
|
|
29272
|
+
return 999;
|
|
29273
|
+
}
|
|
29274
|
+
loadJson(url) {
|
|
29275
|
+
const jsonPromise = fetch(url).then(data => data.json());
|
|
29276
|
+
return jsonPromise.then(json => ({
|
|
29277
|
+
data: json,
|
|
29278
|
+
state: "success"
|
|
29279
|
+
})).catch(() => ({
|
|
29280
|
+
data: null,
|
|
29281
|
+
state: "fail"
|
|
29282
|
+
})), jsonPromise;
|
|
29283
|
+
}
|
|
29284
|
+
loadArrayBuffer(url) {
|
|
29285
|
+
return fetch(url).then(data => data.arrayBuffer()).then(arrayBuffer => ({
|
|
29286
|
+
data: arrayBuffer,
|
|
29287
|
+
loadState: "success"
|
|
29288
|
+
})).catch(() => ({
|
|
29289
|
+
data: null,
|
|
29290
|
+
loadState: "fail"
|
|
29291
|
+
}));
|
|
29292
|
+
}
|
|
29293
|
+
loadImage(url) {
|
|
29294
|
+
const {
|
|
29295
|
+
loadImage: loadImage
|
|
29296
|
+
} = this.getNodePackage("loadImage", "loadImage");
|
|
29297
|
+
return loadImage ? loadImage(url).then(image => ({
|
|
29298
|
+
loadState: image ? "success" : "fail",
|
|
29299
|
+
data: image
|
|
29300
|
+
})).catch(() => ({
|
|
29301
|
+
loadState: "fail",
|
|
29302
|
+
data: null
|
|
29303
|
+
})) : Promise.reject(new Error("node-canvas loadImage could not be found!"));
|
|
29304
|
+
}
|
|
29305
|
+
loadSvg(svgStr) {
|
|
29306
|
+
const Resvg = this.getNodePackage("loadSvg").Resvg;
|
|
29307
|
+
if (!Resvg) return Promise.reject(new Error("@resvg/resvg-js svgParser could not be found!"));
|
|
29308
|
+
const pngData = new Resvg(svgStr).render().asPng();
|
|
29309
|
+
return this.loadImage(pngData);
|
|
29310
|
+
}
|
|
29311
|
+
createCanvas(params) {
|
|
29312
|
+
const {
|
|
29313
|
+
createCanvas: createCanvas
|
|
29314
|
+
} = this.getNodePackage("createCanvas", "createCanvas");
|
|
29315
|
+
return createCanvas(params.width, params.height);
|
|
29316
|
+
}
|
|
29317
|
+
releaseCanvas(canvas) {}
|
|
29318
|
+
getDevicePixelRatio() {
|
|
29319
|
+
return 1;
|
|
29320
|
+
}
|
|
29321
|
+
getRequestAnimationFrame() {
|
|
29322
|
+
return function (callback) {
|
|
29323
|
+
return rafBasedSto.call(callback);
|
|
29324
|
+
};
|
|
29325
|
+
}
|
|
29326
|
+
getCancelAnimationFrame() {
|
|
29327
|
+
return h => {
|
|
29328
|
+
rafBasedSto.clear(h);
|
|
29329
|
+
};
|
|
29330
|
+
}
|
|
29331
|
+
addEventListener(type, listener, options) {}
|
|
29332
|
+
removeEventListener(type, listener, options) {}
|
|
29333
|
+
getElementById(str) {
|
|
29334
|
+
return null;
|
|
29335
|
+
}
|
|
29336
|
+
getRootElement() {
|
|
29337
|
+
return null;
|
|
29338
|
+
}
|
|
29339
|
+
dispatchEvent(event) {}
|
|
29340
|
+
release(...params) {}
|
|
29341
|
+
createOffscreenCanvas(params) {}
|
|
29342
|
+
}
|
|
29343
|
+
|
|
29344
|
+
function bindNodeEnv(container) {
|
|
29345
|
+
var _a, _b;
|
|
29346
|
+
(null === (_b = (_a = container).isBound) || void 0 === _b ? void 0 : _b.call(_a, NodeEnvContribution)) || (container.bind(NodeEnvContribution).toSelf().inSingletonScope(), container.bind(EnvContribution).toService(NodeEnvContribution));
|
|
29347
|
+
}
|
|
29348
|
+
function loadNodeEnv(container = getLegacyBindingContext(), loadPicker = !0) {
|
|
29349
|
+
loadNodeEnv.__loaded || (loadNodeEnv.__loaded = !0, bindNodeEnv(container), bindNodeCanvasModules(container), bindNodeWindowContribution(container));
|
|
29350
|
+
}
|
|
29351
|
+
loadNodeEnv.__loaded = !1;
|
|
29352
|
+
|
|
29338
29353
|
var lib$1 = {};
|
|
29339
29354
|
|
|
29340
29355
|
var gif = {};
|
|
@@ -30126,17 +30141,46 @@
|
|
|
30126
30141
|
});
|
|
30127
30142
|
}), bindGifImageRenderContribution(bindingContext), refreshRuntimeInstallerContributions();
|
|
30128
30143
|
}
|
|
30129
|
-
function
|
|
30144
|
+
function createForcedEnvParams(envParams) {
|
|
30145
|
+
if (null != envParams && ("object" == typeof envParams || "function" == typeof envParams)) {
|
|
30146
|
+
const forcedEnvParams = Object.create(envParams);
|
|
30147
|
+
return forcedEnvParams.force = !0, forcedEnvParams;
|
|
30148
|
+
}
|
|
30149
|
+
return {
|
|
30150
|
+
force: !0
|
|
30151
|
+
};
|
|
30152
|
+
}
|
|
30153
|
+
function activateRuntimeEnv(env, {
|
|
30154
|
+
envParams: envParams,
|
|
30155
|
+
force = !1
|
|
30156
|
+
} = {}) {
|
|
30157
|
+
getRuntimeInstallerGlobal().setEnv(env, force ? createForcedEnvParams(envParams) : envParams);
|
|
30158
|
+
}
|
|
30159
|
+
function installRuntimeEnvToApp(app, env, {
|
|
30160
|
+
bindEnv: bindEnv,
|
|
30161
|
+
bindCanvasModules: bindCanvasModules,
|
|
30162
|
+
bindWindowContribution: bindWindowContribution
|
|
30163
|
+
}, envParams) {
|
|
30130
30164
|
configureRuntimeApplicationForApp(app);
|
|
30131
30165
|
const bindingContext = getRuntimeInstallerBindingContext();
|
|
30132
|
-
|
|
30166
|
+
bindEnv(bindingContext), bindCanvasModules(bindingContext), bindWindowContribution(bindingContext), refreshRuntimeInstallerContributions(), activateRuntimeEnv(env, {
|
|
30167
|
+
envParams: envParams,
|
|
30133
30168
|
force: !0
|
|
30134
30169
|
});
|
|
30135
30170
|
}
|
|
30136
|
-
function
|
|
30137
|
-
|
|
30138
|
-
|
|
30139
|
-
|
|
30171
|
+
function installBrowserEnvToApp(app, envParams) {
|
|
30172
|
+
installRuntimeEnvToApp(app, "browser", {
|
|
30173
|
+
bindEnv: bindBrowserEnv,
|
|
30174
|
+
bindCanvasModules: bindBrowserCanvasModules,
|
|
30175
|
+
bindWindowContribution: bindBrowserWindowContribution
|
|
30176
|
+
}, envParams);
|
|
30177
|
+
}
|
|
30178
|
+
function installNodeEnvToApp(app, envParams) {
|
|
30179
|
+
installRuntimeEnvToApp(app, "node", {
|
|
30180
|
+
bindEnv: bindNodeEnv,
|
|
30181
|
+
bindCanvasModules: bindNodeCanvasModules,
|
|
30182
|
+
bindWindowContribution: bindNodeWindowContribution
|
|
30183
|
+
}, envParams);
|
|
30140
30184
|
}
|
|
30141
30185
|
function installDefaultGraphicsToApp(app) {
|
|
30142
30186
|
configureRuntimeApplicationForApp(app), ensureDefaultGraphicsInstalled(), installRuntimeDrawContributionsToApp(app), installRuntimeGraphicRenderersToApp(app);
|
|
@@ -31055,7 +31099,7 @@
|
|
|
31055
31099
|
registerGroup(), registerRect(), registerSymbol(), registerRichtext(), registerText();
|
|
31056
31100
|
}
|
|
31057
31101
|
|
|
31058
|
-
var __rest$
|
|
31102
|
+
var __rest$7 = undefined && undefined.__rest || function (s, e) {
|
|
31059
31103
|
var t = {};
|
|
31060
31104
|
for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
|
|
31061
31105
|
if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
|
|
@@ -31109,7 +31153,7 @@
|
|
|
31109
31153
|
const {
|
|
31110
31154
|
visible: shapeVisible
|
|
31111
31155
|
} = shape,
|
|
31112
|
-
shapeStyle = __rest$
|
|
31156
|
+
shapeStyle = __rest$7(shape, ["visible"]);
|
|
31113
31157
|
if (isBoolean$2(shapeVisible)) {
|
|
31114
31158
|
const size = (null == shapeStyle ? void 0 : shapeStyle.size) || 10,
|
|
31115
31159
|
maxSize = isNumber$3(size) ? size : Math.max(size[0], size[1]);
|
|
@@ -31210,7 +31254,7 @@
|
|
|
31210
31254
|
const {
|
|
31211
31255
|
visible: bgVisible
|
|
31212
31256
|
} = panel,
|
|
31213
|
-
backgroundStyle = __rest$
|
|
31257
|
+
backgroundStyle = __rest$7(panel, ["visible"]);
|
|
31214
31258
|
if (visible && isBoolean$2(bgVisible)) {
|
|
31215
31259
|
const bgRect = this.createOrUpdateChild("tag-panel", Object.assign(Object.assign({}, backgroundStyle), {
|
|
31216
31260
|
visible: bgVisible && !!text,
|
|
@@ -31292,7 +31336,7 @@
|
|
|
31292
31336
|
merge(theme$2.poptip, DEFAULT_THEME, defaultPoptipTheme);
|
|
31293
31337
|
}
|
|
31294
31338
|
|
|
31295
|
-
var __rest$
|
|
31339
|
+
var __rest$6 = undefined && undefined.__rest || function (s, e) {
|
|
31296
31340
|
var t = {};
|
|
31297
31341
|
for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
|
|
31298
31342
|
if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
|
|
@@ -31401,7 +31445,7 @@
|
|
|
31401
31445
|
visible: bgVisible,
|
|
31402
31446
|
square: square
|
|
31403
31447
|
} = panel,
|
|
31404
|
-
backgroundStyle = __rest$
|
|
31448
|
+
backgroundStyle = __rest$6(panel, ["visible", "square"]);
|
|
31405
31449
|
if (square) {
|
|
31406
31450
|
const maxWH = max(popTipWidth, poptipHeight);
|
|
31407
31451
|
popTipWidth = maxWH;
|
|
@@ -34064,7 +34108,7 @@
|
|
|
34064
34108
|
AnimateExecutor.builtInAnimateMap[name] = animate;
|
|
34065
34109
|
}
|
|
34066
34110
|
constructor(target) {
|
|
34067
|
-
this._animates = [], this._startCallbacks = [], this._endCallbacks = [], this._started = !1, this._activeCount = 0, this._target = target;
|
|
34111
|
+
this._animates = [], this._startCallbacks = [], this._endCallbacks = [], this._started = !1, this._activeCount = 0, this._activeConfigList = null, this._target = target;
|
|
34068
34112
|
}
|
|
34069
34113
|
get started() {
|
|
34070
34114
|
return this._started;
|
|
@@ -34173,7 +34217,15 @@
|
|
|
34173
34217
|
return parsedParams;
|
|
34174
34218
|
}
|
|
34175
34219
|
execute(params) {
|
|
34176
|
-
Array.isArray(params)
|
|
34220
|
+
if (Array.isArray(params)) {
|
|
34221
|
+
const prevConfigList = this._activeConfigList;
|
|
34222
|
+
this._activeConfigList = params;
|
|
34223
|
+
try {
|
|
34224
|
+
params.forEach(param => this._execute(param));
|
|
34225
|
+
} finally {
|
|
34226
|
+
this._activeConfigList = prevConfigList;
|
|
34227
|
+
}
|
|
34228
|
+
} else this._execute(params);
|
|
34177
34229
|
}
|
|
34178
34230
|
_execute(params) {
|
|
34179
34231
|
if (params.selfOnly) return this._executeItem(params, this._target, 0, 1);
|
|
@@ -34199,6 +34251,7 @@
|
|
|
34199
34251
|
}
|
|
34200
34252
|
executeTypeConfigItem(params, graphic, index, count) {
|
|
34201
34253
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
34254
|
+
this.syncFinalAttrsFromContext(graphic);
|
|
34202
34255
|
const {
|
|
34203
34256
|
type = "fromTo",
|
|
34204
34257
|
channel: channel,
|
|
@@ -34229,7 +34282,7 @@
|
|
|
34229
34282
|
props = params.to,
|
|
34230
34283
|
from = params.from;
|
|
34231
34284
|
const commitAttrOutChannel = this.shouldCommitAttrOutChannel(type);
|
|
34232
|
-
props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic, commitAttrOutChannel)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic, commitAttrOutChannel)), from = parsedFromProps.from), parsedFromProps.attrOutChannel && graphic.setAttributes(parsedFromProps.attrOutChannel), this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic);
|
|
34285
|
+
props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic, commitAttrOutChannel, this.getAttrOutChannelExcludedKeys(graphic))), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic, commitAttrOutChannel, this.getAttrOutChannelExcludedKeys(graphic))), from = parsedFromProps.from), parsedFromProps.attrOutChannel && graphic.setAttributes(parsedFromProps.attrOutChannel), this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic);
|
|
34233
34286
|
let totalDelay = 0;
|
|
34234
34287
|
oneByOneDelay && (totalDelay = oneByOneDelay * (count - index - 1));
|
|
34235
34288
|
const delayAfterValue = isFunction$4(delayAfter) ? delayAfter(null === (_h = null === (_g = graphic.context) || void 0 === _g ? void 0 : _g.data) || void 0 === _h ? void 0 : _h[0], graphic, {}) : delayAfter;
|
|
@@ -34251,6 +34304,7 @@
|
|
|
34251
34304
|
}
|
|
34252
34305
|
executeTimelineItem(params, graphic, index, count) {
|
|
34253
34306
|
var _a, _b, _c, _d;
|
|
34307
|
+
this.syncFinalAttrsFromContext(graphic);
|
|
34254
34308
|
const {
|
|
34255
34309
|
timeSlices: timeSlices,
|
|
34256
34310
|
startTime = 0,
|
|
@@ -34293,7 +34347,7 @@
|
|
|
34293
34347
|
props = effect.to,
|
|
34294
34348
|
from = effect.from;
|
|
34295
34349
|
const commitAttrOutChannel = this.shouldCommitAttrOutChannel(type);
|
|
34296
|
-
props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic, commitAttrOutChannel)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic, commitAttrOutChannel)), from = parsedFromProps.from), parsedFromProps.attrOutChannel && graphic.setAttributes(parsedFromProps.attrOutChannel);
|
|
34350
|
+
props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic, commitAttrOutChannel, this.getAttrOutChannelExcludedKeys(graphic))), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic, commitAttrOutChannel, this.getAttrOutChannelExcludedKeys(graphic))), from = parsedFromProps.from), parsedFromProps.attrOutChannel && graphic.setAttributes(parsedFromProps.attrOutChannel);
|
|
34297
34351
|
const custom = null !== (_a = effect.custom) && void 0 !== _a ? _a : AnimateExecutor.builtInAnimateMap[type],
|
|
34298
34352
|
customType = effect.custom ? effect.customType : getCustomType(custom);
|
|
34299
34353
|
this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic);
|
|
@@ -34314,7 +34368,7 @@
|
|
|
34314
34368
|
const customAnimate = new CustomAnimateConstructor(from, props, duration, easing, customParams);
|
|
34315
34369
|
animate.play(customAnimate);
|
|
34316
34370
|
}
|
|
34317
|
-
createPropsFromChannel(channel, graphic, includeAttrOutChannel = !0) {
|
|
34371
|
+
createPropsFromChannel(channel, graphic, includeAttrOutChannel = !0, excludedAttrOutKeys) {
|
|
34318
34372
|
var _a;
|
|
34319
34373
|
const props = {};
|
|
34320
34374
|
let from = null;
|
|
@@ -34335,7 +34389,7 @@
|
|
|
34335
34389
|
}), diffAttrs && attrOutChannel) for (const key in diffAttrs) {
|
|
34336
34390
|
const value = diffAttrs[key];
|
|
34337
34391
|
if (void 0 === value) continue;
|
|
34338
|
-
props.hasOwnProperty(key) || !!(null == from ? void 0 : from.hasOwnProperty(key)) || (attrOutChannel[key] = value, hasAttrs = !0);
|
|
34392
|
+
props.hasOwnProperty(key) || !!(null == from ? void 0 : from.hasOwnProperty(key)) || (null == excludedAttrOutKeys ? void 0 : excludedAttrOutKeys[key]) || (attrOutChannel[key] = value, hasAttrs = !0);
|
|
34339
34393
|
}
|
|
34340
34394
|
return {
|
|
34341
34395
|
from: from,
|
|
@@ -34347,8 +34401,78 @@
|
|
|
34347
34401
|
var _a, _b;
|
|
34348
34402
|
return void 0 === value ? defaultValue : "function" == typeof value && graphic ? value(null === (_b = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.data) || void 0 === _b ? void 0 : _b[0], graphic, {}) : value;
|
|
34349
34403
|
}
|
|
34404
|
+
getAttrOutChannelExcludedKeys(graphic) {
|
|
34405
|
+
var _a;
|
|
34406
|
+
const configList = this._activeConfigList,
|
|
34407
|
+
diffAttrs = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.diffAttrs;
|
|
34408
|
+
if (!configList || configList.length <= 1 || !diffAttrs) return null;
|
|
34409
|
+
let excludedKeys = null;
|
|
34410
|
+
for (let i = 0; i < configList.length; i++) excludedKeys = this.collectAnimatedDiffKeys(configList[i], graphic, diffAttrs, excludedKeys);
|
|
34411
|
+
return excludedKeys;
|
|
34412
|
+
}
|
|
34413
|
+
collectAnimatedDiffKeys(config, graphic, diffAttrs, keys) {
|
|
34414
|
+
if ("timeSlices" in config) {
|
|
34415
|
+
const slices = Array.isArray(config.timeSlices) ? config.timeSlices : [config.timeSlices];
|
|
34416
|
+
for (let i = 0; i < slices.length; i++) {
|
|
34417
|
+
const effects = Array.isArray(slices[i].effects) ? slices[i].effects : [slices[i].effects];
|
|
34418
|
+
for (let j = 0; j < effects.length; j++) keys = this.collectAnimatedDiffKeysFromEffect(effects[j], graphic, diffAttrs, keys);
|
|
34419
|
+
}
|
|
34420
|
+
return keys;
|
|
34421
|
+
}
|
|
34422
|
+
return this.collectAnimatedDiffKeysFromEffect(config, graphic, diffAttrs, keys);
|
|
34423
|
+
}
|
|
34424
|
+
collectAnimatedDiffKeysFromEffect(effect, graphic, diffAttrs, keys) {
|
|
34425
|
+
var _a;
|
|
34426
|
+
if ("update" === (null !== (_a = effect.type) && void 0 !== _a ? _a : "fromTo")) {
|
|
34427
|
+
const options = this.resolveValue(effect.options, graphic, void 0),
|
|
34428
|
+
excludeChannels = null == options ? void 0 : options.excludeChannels;
|
|
34429
|
+
for (const key in diffAttrs) Object.prototype.hasOwnProperty.call(diffAttrs, key) && void 0 !== diffAttrs[key] && !this.includesChannel(excludeChannels, key) && (null != keys || (keys = {}), keys[key] = !0);
|
|
34430
|
+
return keys;
|
|
34431
|
+
}
|
|
34432
|
+
return keys = this.collectExplicitAnimatedKeys(effect.to, diffAttrs, keys), keys = this.collectExplicitAnimatedKeys(effect.from, diffAttrs, keys), this.collectChannelAnimatedKeys(effect.channel, diffAttrs, keys);
|
|
34433
|
+
}
|
|
34434
|
+
collectExplicitAnimatedKeys(attrs, diffAttrs, keys) {
|
|
34435
|
+
if (!attrs) return keys;
|
|
34436
|
+
for (const key in attrs) Object.prototype.hasOwnProperty.call(attrs, key) && Object.prototype.hasOwnProperty.call(diffAttrs, key) && void 0 !== diffAttrs[key] && (null != keys || (keys = {}), keys[key] = !0);
|
|
34437
|
+
return keys;
|
|
34438
|
+
}
|
|
34439
|
+
collectChannelAnimatedKeys(channel, diffAttrs, keys) {
|
|
34440
|
+
if (!channel) return keys;
|
|
34441
|
+
if (Array.isArray(channel)) {
|
|
34442
|
+
for (let i = 0; i < channel.length; i++) {
|
|
34443
|
+
const key = channel[i];
|
|
34444
|
+
Object.prototype.hasOwnProperty.call(diffAttrs, key) && void 0 !== diffAttrs[key] && (null != keys || (keys = {}), keys[key] = !0);
|
|
34445
|
+
}
|
|
34446
|
+
return keys;
|
|
34447
|
+
}
|
|
34448
|
+
for (const key in channel) if (Object.prototype.hasOwnProperty.call(channel, key) && Object.prototype.hasOwnProperty.call(diffAttrs, key) && void 0 !== diffAttrs[key]) {
|
|
34449
|
+
const config = channel[key];
|
|
34450
|
+
void 0 === config.to && void 0 === config.from || (null != keys || (keys = {}), keys[key] = !0);
|
|
34451
|
+
}
|
|
34452
|
+
return keys;
|
|
34453
|
+
}
|
|
34454
|
+
includesChannel(channels, key) {
|
|
34455
|
+
if (!(null == channels ? void 0 : channels.length)) return !1;
|
|
34456
|
+
for (let i = 0; i < channels.length; i++) if (channels[i] === key) return !0;
|
|
34457
|
+
return !1;
|
|
34458
|
+
}
|
|
34459
|
+
syncFinalAttrsFromContext(graphic) {
|
|
34460
|
+
var _a;
|
|
34461
|
+
const finalAttrs = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.finalAttrs,
|
|
34462
|
+
setFinalAttributes = graphic.setFinalAttributes;
|
|
34463
|
+
finalAttrs && "function" == typeof setFinalAttributes && setFinalAttributes.call(graphic, finalAttrs);
|
|
34464
|
+
}
|
|
34350
34465
|
executeItem(params, graphic, index = 0, count = 1) {
|
|
34351
|
-
|
|
34466
|
+
if (Array.isArray(params)) {
|
|
34467
|
+
const prevConfigList = this._activeConfigList;
|
|
34468
|
+
this._activeConfigList = params;
|
|
34469
|
+
try {
|
|
34470
|
+
return params.map(param => this._executeItem(param, graphic, index, count)).filter(Boolean);
|
|
34471
|
+
} finally {
|
|
34472
|
+
this._activeConfigList = prevConfigList;
|
|
34473
|
+
}
|
|
34474
|
+
}
|
|
34475
|
+
return [this._executeItem(params, graphic, index, count)].filter(Boolean);
|
|
34352
34476
|
}
|
|
34353
34477
|
_executeItem(params, graphic, index = 0, count = 1) {
|
|
34354
34478
|
if (!graphic) return null;
|
|
@@ -34642,9 +34766,7 @@
|
|
|
34642
34766
|
return this.initAnimateExecutor(), this._animateExecutor.execute(config), this;
|
|
34643
34767
|
}
|
|
34644
34768
|
executeAnimations(configs) {
|
|
34645
|
-
return this.initAnimateExecutor(),
|
|
34646
|
-
this._animateExecutor.execute(config);
|
|
34647
|
-
}), this;
|
|
34769
|
+
return this.initAnimateExecutor(), this._animateExecutor.execute(configs), this;
|
|
34648
34770
|
}
|
|
34649
34771
|
getFinalAttribute() {
|
|
34650
34772
|
return this.finalAttribute;
|
|
@@ -34867,8 +34989,9 @@
|
|
|
34867
34989
|
return commitAttrs;
|
|
34868
34990
|
}
|
|
34869
34991
|
function commitAnimationStaticAttrs(target, keys, animate, fallbackAttrs) {
|
|
34992
|
+
var _a, _b;
|
|
34870
34993
|
const commitAttrs = buildAnimationStaticCommitAttrs(target, keys, animate, fallbackAttrs);
|
|
34871
|
-
return !!commitAttrs && (target.setAttributes(commitAttrs, !1, {
|
|
34994
|
+
return !!commitAttrs && (null === (_b = (_a = target).setFinalAttributes) || void 0 === _b || _b.call(_a, commitAttrs), target.setAttributes(commitAttrs, !1, {
|
|
34872
34995
|
type: AttributeUpdateType.ANIMATE_END
|
|
34873
34996
|
}), !0);
|
|
34874
34997
|
}
|
|
@@ -38987,7 +39110,7 @@
|
|
|
38987
39110
|
loadBasicAxis(), registerRect();
|
|
38988
39111
|
}
|
|
38989
39112
|
|
|
38990
|
-
var __rest$
|
|
39113
|
+
var __rest$5 = undefined && undefined.__rest || function (s, e) {
|
|
38991
39114
|
var t = {};
|
|
38992
39115
|
for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
|
|
38993
39116
|
if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
|
|
@@ -39094,7 +39217,7 @@
|
|
|
39094
39217
|
style: style,
|
|
39095
39218
|
state: state
|
|
39096
39219
|
} = _a,
|
|
39097
|
-
restLineAttrs = __rest$
|
|
39220
|
+
restLineAttrs = __rest$5(_a, ["startSymbol", "endSymbol", "style", "state"]),
|
|
39098
39221
|
lineAttrs = Object.assign({
|
|
39099
39222
|
startSymbol: startSymbol,
|
|
39100
39223
|
endSymbol: endSymbol,
|
|
@@ -39135,7 +39258,7 @@
|
|
|
39135
39258
|
state = {},
|
|
39136
39259
|
maxWidth: maxWidth
|
|
39137
39260
|
} = _d,
|
|
39138
|
-
restAttrs = __rest$
|
|
39261
|
+
restAttrs = __rest$5(_d, ["position", "space", "textStyle", "autoRotate", "shape", "background", "state", "maxWidth"]);
|
|
39139
39262
|
let percent = .5;
|
|
39140
39263
|
"start" === position ? percent = 0 : "end" === position && (percent = 1);
|
|
39141
39264
|
const {
|
|
@@ -39237,7 +39360,7 @@
|
|
|
39237
39360
|
text: textContent = "",
|
|
39238
39361
|
maxWidth: maxWidth
|
|
39239
39362
|
} = _c,
|
|
39240
|
-
restAttrs = __rest$
|
|
39363
|
+
restAttrs = __rest$5(_c, ["position", "space", "autoRotate", "textStyle", "background", "formatMethod", "text", "maxWidth"]),
|
|
39241
39364
|
point = this.getTickCoord(0);
|
|
39242
39365
|
"bottom" === orient || "top" === orient ? point.x = position : point.y = position;
|
|
39243
39366
|
let tickLength = 0;
|
|
@@ -41100,7 +41223,7 @@
|
|
|
41100
41223
|
loadBaseLegend(), loadSliderComponent(), registerPath();
|
|
41101
41224
|
}
|
|
41102
41225
|
|
|
41103
|
-
var __rest$
|
|
41226
|
+
var __rest$4 = undefined && undefined.__rest || function (s, e) {
|
|
41104
41227
|
var t = {};
|
|
41105
41228
|
for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
|
|
41106
41229
|
if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
|
|
@@ -41619,7 +41742,7 @@
|
|
|
41619
41742
|
space: pagerSpace = DEFAULT_PAGER_SPACE,
|
|
41620
41743
|
defaultCurrent = 1
|
|
41621
41744
|
} = pager,
|
|
41622
|
-
compStyle = __rest$
|
|
41745
|
+
compStyle = __rest$4(pager, ["space", "defaultCurrent"]),
|
|
41623
41746
|
{
|
|
41624
41747
|
isHorizontal: isHorizontal
|
|
41625
41748
|
} = this._itemContext,
|
|
@@ -41689,7 +41812,7 @@
|
|
|
41689
41812
|
space: pagerSpace = DEFAULT_PAGER_SPACE,
|
|
41690
41813
|
defaultCurrent = 1
|
|
41691
41814
|
} = pager,
|
|
41692
|
-
compStyle = __rest$
|
|
41815
|
+
compStyle = __rest$4(pager, ["space", "defaultCurrent"]),
|
|
41693
41816
|
{
|
|
41694
41817
|
isHorizontal: isHorizontal
|
|
41695
41818
|
} = this._itemContext,
|
|
@@ -44296,6 +44419,8 @@
|
|
|
44296
44419
|
};
|
|
44297
44420
|
|
|
44298
44421
|
const BOOTSTRAP_STATE = Symbol.for("vrender.bootstrap.state"),
|
|
44422
|
+
installBrowserEnvToAppWithParams = installBrowserEnvToApp,
|
|
44423
|
+
installNodeEnvToAppWithParams = installNodeEnvToApp,
|
|
44299
44424
|
pluginRegistrations = [registerFlexLayoutPlugin, registerViewTransform3dPlugin, registerHtmlAttributePlugin, registerReactAttributePlugin, registerDirectionalLight, registerOrthoCamera],
|
|
44300
44425
|
animationRegistrations = [registerCustomAnimate, registerAnimate],
|
|
44301
44426
|
legacyGraphicRegistrations = [registerArc, registerArc3d, registerArea, registerCircle, registerGlyph, registerGifImage, registerGroup, registerImage, registerLine, registerPath, registerPolygon, registerPyramid3d, registerRect, registerRect3d, registerRichtext, registerShadowRoot, registerSymbol, registerText, registerWrapText, registerStar];
|
|
@@ -44335,25 +44460,66 @@
|
|
|
44335
44460
|
seen.has(key) || (seen.add(key), app.registry.picker.register(key, picker));
|
|
44336
44461
|
});
|
|
44337
44462
|
}
|
|
44338
|
-
function bootstrapVRenderBrowserApp(app) {
|
|
44339
|
-
return ensureBootstrap(app, "browser") ? (installBrowserEnvToApp(app), installDefaultGraphicsToApp(app), installBrowserPickersToApp(app), loadBrowserEnv(), legacyGraphicRegistrations.forEach(register => register()), syncLegacyRenderersToApp$1(app), syncLegacyPickersToApp(app, CanvasPickerContribution), registerDefaultPipeline(), app) : app;
|
|
44463
|
+
function bootstrapVRenderBrowserApp(app, envParams) {
|
|
44464
|
+
return ensureBootstrap(app, "browser") ? (void 0 === envParams ? installBrowserEnvToApp(app) : installBrowserEnvToAppWithParams(app, envParams), installDefaultGraphicsToApp(app), installBrowserPickersToApp(app), loadBrowserEnv(), legacyGraphicRegistrations.forEach(register => register()), syncLegacyRenderersToApp$1(app), syncLegacyPickersToApp(app, CanvasPickerContribution), registerDefaultPipeline(), app) : app;
|
|
44465
|
+
}
|
|
44466
|
+
function resolveNodeEnvParams(envParams) {
|
|
44467
|
+
return null != envParams ? envParams : "node" === (null == vglobal ? void 0 : vglobal.env) ? vglobal.envParams : void 0;
|
|
44340
44468
|
}
|
|
44341
|
-
function bootstrapVRenderNodeApp(app) {
|
|
44342
|
-
|
|
44469
|
+
function bootstrapVRenderNodeApp(app, envParams) {
|
|
44470
|
+
if (!ensureBootstrap(app, "node")) return app;
|
|
44471
|
+
const resolvedEnvParams = resolveNodeEnvParams(envParams);
|
|
44472
|
+
return void 0 === resolvedEnvParams ? installNodeEnvToApp(app) : installNodeEnvToAppWithParams(app, resolvedEnvParams), installDefaultGraphicsToApp(app), installNodePickersToApp(app), loadNodeEnv(), legacyGraphicRegistrations.forEach(register => register()), syncLegacyRenderersToApp$1(app), syncLegacyPickersToApp(app, MathPickerContribution), registerDefaultPipeline(), app;
|
|
44343
44473
|
}
|
|
44344
44474
|
|
|
44475
|
+
var __rest$3 = undefined && undefined.__rest || function (s, e) {
|
|
44476
|
+
var t = {};
|
|
44477
|
+
for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
|
|
44478
|
+
if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
|
|
44479
|
+
var i = 0;
|
|
44480
|
+
for (p = Object.getOwnPropertySymbols(s); i < p.length; i++) e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]) && (t[p[i]] = s[p[i]]);
|
|
44481
|
+
}
|
|
44482
|
+
return t;
|
|
44483
|
+
};
|
|
44345
44484
|
const {
|
|
44346
44485
|
createBrowserApp: createBrowserApp
|
|
44347
44486
|
} = VRenderCore;
|
|
44348
44487
|
function createBrowserVRenderApp(options = {}) {
|
|
44349
|
-
|
|
44488
|
+
const {
|
|
44489
|
+
envParams: envParams
|
|
44490
|
+
} = options,
|
|
44491
|
+
entryOptions = __rest$3(options, ["envParams"]);
|
|
44492
|
+
return bootstrapVRenderBrowserApp(createBrowserApp(entryOptions), envParams);
|
|
44350
44493
|
}
|
|
44351
44494
|
|
|
44495
|
+
undefined && undefined.__rest || function (s, e) {
|
|
44496
|
+
var t = {};
|
|
44497
|
+
for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
|
|
44498
|
+
if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
|
|
44499
|
+
var i = 0;
|
|
44500
|
+
for (p = Object.getOwnPropertySymbols(s); i < p.length; i++) e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]) && (t[p[i]] = s[p[i]]);
|
|
44501
|
+
}
|
|
44502
|
+
return t;
|
|
44503
|
+
};
|
|
44504
|
+
|
|
44505
|
+
var __rest$2 = undefined && undefined.__rest || function (s, e) {
|
|
44506
|
+
var t = {};
|
|
44507
|
+
for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
|
|
44508
|
+
if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
|
|
44509
|
+
var i = 0;
|
|
44510
|
+
for (p = Object.getOwnPropertySymbols(s); i < p.length; i++) e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]) && (t[p[i]] = s[p[i]]);
|
|
44511
|
+
}
|
|
44512
|
+
return t;
|
|
44513
|
+
};
|
|
44352
44514
|
const {
|
|
44353
44515
|
createNodeApp: createNodeApp
|
|
44354
44516
|
} = VRenderCore;
|
|
44355
44517
|
function createNodeVRenderApp(options = {}) {
|
|
44356
|
-
|
|
44518
|
+
const {
|
|
44519
|
+
envParams: envParams
|
|
44520
|
+
} = options,
|
|
44521
|
+
entryOptions = __rest$2(options, ["envParams"]);
|
|
44522
|
+
return bootstrapVRenderNodeApp(createNodeApp(entryOptions), envParams);
|
|
44357
44523
|
}
|
|
44358
44524
|
|
|
44359
44525
|
let Env$1 = class Env {
|